This is not a “Public” Road
Recently I came across a strange incedent, On sunday evening I was going to Vibgyor school in Kundanhalli,Bangalore.There is a mud road adjacent to SriRam Samrudhi apartment which takes you to Vibgyor school, I found two boards in middle of the road which looked like recently placed there.
The Borad stated that “This Road is not a public proverty it Belongs to XXXX” I was surprised that this way is supposed to be a propsed 40 feet road and people being waiting for this road to be done since last 4 years.
There are so many real estate projects coming up there on both sides of the road, I do not know what would be the future of those Projects!!!
How to keep a check on such cases ?
People who are plaaning to take houses in such localities better be watchfull.
Students Account by Punjab National Bank
Students Account by Punjab National Bank.
Recently I came to know about a very nice initiative started by DelhiGoverment. Under this scheme students are given Accounts with Punjab National Bank. Here students are given the facility of withdrawing money directly from ATMs , here no third party distribution is existing , directly the accounts are created under the name of the student.
Say a small amount (Rs500,Rs700 or Rs1500) are given to students at various stages of thier studies.
As I got to meet the students of Sarvodaya Vidyalaya, Sharda Niketan, Delhi-34 and they seems to be happy happy about this small contribution given by Delhi Goverment.
I also discovered few students are going to school just to get these benefits. They use this money to sponsor thier travel and other study related expenses.
This seems to be too little but I strongly believe that “A little progress everyday leads up to big results”.
The school which I mentioned above happens to be the place where I have spend 10 yrs of my life as I have done my primary Eductions from here.
I heared about other initiative like “LADLLI” where Girl child (student) gets a fixed deposit of Rs 100000 and they wil be given this amount once they get Adult(18yrs) for thier further studies.
I think Delhi Goverment is doing a good job for education.
Thanks to modern banking system and Public Distribution Systems Idea.
I hope other other Goverment Funds will find the some good utilization like this.Instead of filling the pockets of crrupt politicians.
After I heared a lot about scam @ Common Wealth Games in Delhi
this FACT really relaxed my soul a lot, I was asked by lots of people outside Delhi about the rising graph of corruption in delhi.
I think this is enough for time being
Jai Ho!
CALL options in Derivatives
From last few days I have being studying about futures and options.
Today I was having sometime to apply my book knowledge to practice.
I have studied that you can buy/sell CALL or PUT options.
I was studying that you can invest a LITTLE and can gain a lot from F&O.
Now today discovered what is the value of that LITTLE.
Say today I wanted to buy CALL option for JUN’10 series.
SUZLON-60@3.5 (lot size 3000), meaning if I want to buy a call option for suzlon june series
I have to pay a LITTLE of 3.5 *3000=10500, currently SUZLON in trading @ 59.50 in cash market.
It means I have to pay a cost of 6% (LITTLE) of the current stock price.
It’s a quite expensive deal.
As this Rs 10500 is something which will never come back to you.
But, in case SUZLON crosses 60 then I can make some money say if it will go to 65 I will make 5*3000 =Rs15000.
Profit of Rs 4500, only in case if rises by almost 10% not bad.
So try your luck but be very careful.
Car shifting/Transport
Last week I got my SANTRO CAR shifted/transported from Delhi to Bangalore.
I have checked fee Packers in Delhi but finally we decided to go with some known name, we found
Aggarwal Packers & Movers.
The service offered by them was pretty decent enough they took Rs 12000 other packers which we
enquired with were asking for Rs10000 – 10500 but went with brand and reliability , always
go to the office of the Packers and get full details.
They came to my house to pick the CAR, accepted Post Dated cheque of Rs 12000 and asked us to fuel
our Car with 10 ltrs don’t give money to them and ask them to fuel by themself.
they will take the original PUC copy and xerox of the RC and other docs like insurance.
It took almost 8 Days for my car to reach Bangalore.
While giving Car for transport do always remember to Get it instpected very well in front of the
Packer.
Keep in find few things
- Battery No.
- Tyres No. and thier conditions
- Screatches
- Any other registration of anything is there or not.
-Meter readings
These things help when you recieve your car.
They will be telling you that your Car doesn’t have enough fuel …just act smartly and try not
to pay any extra amount as you would have already paid for 10 ltrs.
Now as i have got my car in bangalore so i have to face so many new issues here
- Traffic (ITPL parking @ 1200 i preffered to go with Open parking @ 600)
- Parking
- Auto Rikshaws
- High petrol prices
- Registration related issues with Police
- I don’t know what all are the documents required
- Is there any NOC is required.
- Do i have to pay any Road Tax or somthing
_ Extra expenses..
– It fill be a touch life i guess…let’s see..pray for me.
.net Remoting
I found this article a bit easy and easily understandable and the one which you can perform and get a feel of learning Remoting.
Remoting is the process through which we can access any remote object from one application domain to another application domain.
For creating remote object the class object must be inherited by MarshalByRefObject class.
Application domain is the runtime environment of application, For MicrosoftWord, domain is MS office, For .NET programme, .NET runtime environment.
Terms Used in Remoting
Proxy: To avoid conjunction in networking. Main work is task Distributing.There are two type of proxy.
Transparent proxy (There is no physical existence , Created by IIS server)
Real Proxy (Physical Existence)
Channel: Channel provides the medium for transfer data from one location to another location. There are two types of channel.
TCP(work with Predefined root Connection oriented)
HTTP (No need predefined root)
Formatters: Change the data in an appropriate format that it can traverse through channels.
There are two types of formatters
Binary
SOAP(Simple Object Access Protocol)
Sink: Sink is used for security point of view. Before sending the data, the Data will be encrypted. Some additional bit will be added with the data to secure the data.
There are two types of sink
Envoy sink
Server Context Sink
Object Mode On Server: Two Types of Object Mode .
SingleCall
Singleton
For creating Remoting we have to create 3 applications:
class Library (Of which Remote Object will be created)
Server Application (Console Application)
Client Application (Window Application)
RemoteClass
using System;
using System.Collections.Generic;
using System.Text;
namespace remoteclass
{
public class xx:MarshalByRefObject
{
public int sum(int a, int b)
{
return a + b;
}
}
}
Remote Server
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
namespace remoteserver
{
class Program
{
static void Main(string[] args)
{
TcpChannel ch=new TcpChannel(8085);
ChannelServices.RegisterChannel(ch);
RemotingConfiguration.RegisterWellKnownServiceType(typeof
(remoteclass.xx),”rahul”,WellKnownObjectMode.Singleton);
Console.Write(“Sever is Ready……..”);
Console.Read();
}
}
}
When user run this Remote Server application.
Figure 1: Server Application.
Remote Client
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
namespace remoteclient
{
public partial class Form1 : Form
{
//TcpChannel ch = new TcpChannel();
remoteclass.xx obj = new remoteclass.xx();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, System.EventArgs e)
{
//ChannelServices.RegisterChannel(ch);
obj = (remoteclass.xx)Activator.GetObject(typeof(remoteclass.xx),
“tcp://localhost:8085/rahul”);
int x = Int32.Parse(textBox1.Text);
int y = Int32.Parse(textBox2.Text);
textBox3.Text = (obj.sum(x, y)).ToString();
}
}
}
When user run the application.
Figure 2: Client Application.
Word counts in a Text file
namespace WordsCount
{
class Program
{
static void Main(string[] args)
{
WordCount obj = new WordCount();
// read the text file
StreamReader reader = new StreamReader(@”D:\Test.txt”);
// pass the file as the string of input
string readthisline = reader.ReadToEnd();
// Console.WriteLine(obj.CountWords(readthisline));
obj.CountWords(readthisline);
Console.ReadLine();
}
}
class WordCount
{
public string CountWords(string input)
{
// ignore these words, remove these things from the final input string.
char[] delims = new char[] { ‘ ‘, ‘.’, ‘,’, ‘;’,'”‘,’?',’(‘,’)',’:'};
// prepare the words from the string
string[] wordlist = input.Split(delims, StringSplitOptions.RemoveEmptyEntries);
// this is the final word list to be counted after removing the extra things.
SortedList words = new SortedList();
//Dictionary words = new Dictionary(wordlist.Length);
// count the repetitions of the words
foreach (string item in wordlist)
{
// check for upper and lower cases as well
if (!words.ContainsKey(item.ToLower()))
// find the word and add to the list.
words.Add(item.ToLower(), 1);
else
// increment the word count.
words[item.ToLower()]++;
}
StringBuilder sb = new StringBuilder();
foreach (KeyValuePair kvp in words)
{
sb.Append(kvp.Key + “: ” + kvp.Value + “\r\n”);
Console.WriteLine(“The word is {0} and repitions {1}”, kvp.Key,kvp.Value);
}
//foreach (string item in words.Keys)
// sb.Append(item + “: ” + words[item] + “\r\n”);
return sb.ToString();
}
}
}
Interview @ Goldman Sachs , Bangalore
Written Test(.Net)
I dont remember the exact questions but i can give u brief idea what were the questions like.
I have given the test as the .Net guy.
As they are using JAVA for the rest of the project, but they are using .Net for Front end (Web , windows application).
Few concepts or questions or toppics
-As the reuirement was for UI, front end so all the questions were revolving around that.
-Dataset
-DataAdaptor
-Fill()
-Outproc(SQL Server , state server)
-DebugListner
-Trace
-Application run mode (define- Debug/Trace)
-Gridview (ButtonField,CommandField)
-Viewstate
-Property to get a column from Dataset.
-Prepare well on Threading
-Prepare well on Delegates
-Design Patterns
-BinaryTextWriter
-How to get the root node of a dataset.
Dispose
Dispose is the method, which we call usually when we want the object to be garbage collected. If u r calling Dispose() on inbuilt classes like Form, It’ll call a method Finalize() method, which will usually used to cleanup any resources used with in the form. With in this Finalize method, we call the garbage collector to recycle the memory. So, when u r using dispose method, it is used to mark the object to Garbage Collectable. Calling the Dispose dose’t means, that object will b garbage collected immidiately. GC will monitor the Managed memory for objects Marked 4 garbage collectable. The recycling of memory depends on when the GC will pay the visit.
Purely the Dispose method is not used for reseting the values in the object. It is used to mark the Object to b collected by the GC
Serialization
WHAT IS SERIALIZATION?
Serialization is the process of converting an object or a con-nected graph of objects into a contiguous stream of bytes. Deserialization is the process of converting a contiguous stream of bytes back into its graph of connected objects. The ability to convert objects to and from a byte stream is an incredibly useful mechanism. Here are some examples:
• An application’s state (object graph) can easily be saved in a disk file or database and then restored the next time the application is run. ASP.NET saves and restores session state by way of serialization and deserialization.
• A set of objects can easily be copied to the system’s clipboard and then pasted into the same or another application. In fact, Windows® Forms uses this procedure.
• A set of objects can be cloned and set aside as a backup while a user manipulates the main set of objects.
• A set of objects can easily be sent over the network to a process running on another machine. The Microsoft® .NET Framework remoting architecture serializes and deserializes objects that are marshaled by value.
Why would you want to use serialization? The two most important reasons are
• to persist the state of an object to a storage medium so an exact copy can be recreated at a later stage, and
• to send the object by value from one application domain to another.