Thought@Independence Day
Since last two decades, I have been seeing a continuous growth in India. Things have changed (sry its improved) a lot from 90 to 2000. But still this growth is limited to metros & cities only. We have to move ahead further to make a better India in all perspectives.
We have been blaming the system, we have been complaining about it. There would be another way of solving, what is the maximum contribution that an individual can do to make this system better rather than expecting someone to correct it. Let me put my 100% which could be almost a negligence but still it will.
I will pin point to the education system in India, which is the base for any Indian to project him/her for revamping our country. Are we right to the track? We were the Indians to bring the 1st university in the world (Nalanda University). Can I put a line graph which connects today’s education system with the historical India? Somewhere I read, Intruders came to India and they have stolen our four VEDAS, a place where all sort of knowledge have been grooved in those 4 mega books. My concern is to say, if we Indians were the ACE in education system in entire world, then why today’s India is struggling to bring a primary school to the remote villages? I thank to all those Bollywood innovators, to make a move in this regard may be its Tare Zameen Pe, 3 Idiots or Pathshala. They are not just eye-opener in fact they convey the responsibilities of each of us. I thank them to remind the Indians that despite your 9 to 5 job, there are more to do. Just don’t sleep.
Governments are planning and no doubt they are executing them successfully more or less; It’s a high time for all Indians to contribute for a better India. I will say implementation of UNIQUE ID system in India will make a big difference, just hoping the involved team gives their best. If Indian Railway (largest management in the world) website can serve the millions Indian well, then lets hope the new database will serve a better purpose. We must cooperate for any new ideas for making a better India.

WISH YOU ALL A HAPPY INDEPENDENCE DAY. JAI HIND, JAI BHARAT.
PRAYAS: An attempt to innovate.
Packages in Java
Packages are containers for classes. They keep classes into diff compartments. Hence provide a visibility control mechanism.
Define a package:
package <package_name>;
or
package <package_name1>.<package_name2>.<package_nameN>;
Underlying files should be present exactly into a similar pathed directory as of your package hierarchy.
If you omit package declaration, java puts them into default package which has no name.
A package may contain more than one files.
package java.awt.image:
Directory system will include:
Windows : java/awt/image
Linux : java\awt\image
Mac : java:awt:image
Example:
package MyPack;
Class Bname {
String name;
Bname( String nn)
{
name = nn;
}
void show() {
sop("My name is " + name);
}
}
Class Aname {
psvm(String args[]){
Bname bobj = new Bname("Prayas");
bobj.show();
}
}
Compile:
java Aname // Error, coz it can not be executed by itself
java MyPack.Aname // works .. must be qualified by its package name.
Access Protection:
a) For class members:
Private : Only within the package’s, within the class.
Protected: Within the package all classes/subclasses/other classes. In other package only the subclasses.
Public : within the package, in other packages.. hence everywhere
Default : <no access modifier has been mentioned> Within the package everywhere, outside the package no one, not even subclass
b)For class itself:
Private : Class cant be decalared as private
Protected : Class cant be decalared as protected
Public : Others can access, in other packages too.
Default: Within the same package.
Importing Packages:
The import statment occurs imm after the package name and before any class definitions.
import <package1>.<package2>.(classname | * )
import starts with a package name and ends with a classname or * (in case you want to include all the classes).
* may increase the compilation time for a larger package but it has no effect on the run-time performance of the size of your classes.
There arer NO core Java classes in the unnamed defualt package.
All the std classes are stored in some named package “java”.
The basic language functions are stored in “java.lang” and it is implicitly imported by the compiler. Hence need not to import.
Example
import java.util.*;
class MyDate extends Date {
}
The same could be written without using import
class MyDate extend java.util.Date {
}
Ref: The Complete Reference Java2 – Herbert Schildt
Layoff…jobcuts…recession
Confession {
I have taken a new house 5 months back and need to pay an EMI of 10,000 INR. But I was laid off together dozens of employees. I am helpless now.
I had a plan to marry in start month of 2009, but how will I feed her without a job?
Wish I could have continued my job for another 5 months before I have been fired.
He used to be a nice person for me but no more. I really don’t understand the diplomatic talks of management level people.
Very soon I am going to finish my MS. It took a long pain for my parents to gather a huge sum and they sent me US with a hope that after 2 Yrs. I will be given their money back with a huge compound interest. But I don’t find any job in market.
Because the industry was growing unexpectedly in last few years, I decided to do MBA and then start earning in lot……………. But it was a bad decision.
It makes me insecure when I found a statement like “Market will be continued like this till 2011”.
Why did I apply for this investment policy, which is at verge of packing up the company itself? Will I get my money back?
}
So where do I stand now?
Friends, this is not a story but a hard core fact. Though the above “I” doesn’t belong to me, but of course it belongs to someone else. Someone else is among us only, may be next to your chair, or adjacent to your cube, or in the same compound or just around your compound. But it is happening.
So my question is : Who is responsible for these layoffs?
Well the market is down, Sensex keeps falling, almost every company is recording it’s the lowest price in stock list. Most of the new projects are getting deferred as the US is trying to sustain on the remaining asset. Probably, every IT guys is expecting a lot from the new man at stand Obama. We may expect our politicians to behave aggressively into the cabinet to control this inflation.
The only advantage I find with this recession is “Filtration”.
The context of this paragraph is meaningful only if there was a proper way of showing a Pink slip is followed. And I respect the parameters taken by any management across the globe would have justified them very well, rather than adopting a concept–Yes I need to throw them out because of consequences at hand.
Whatever is it, I know it hurts them at personal level. But the layoff has forced the recruitment team to find a hole in the system. Is the employee with my organization is proper, was he performing below the expectation or none at all, wasn’t he driven by few fake certificates in his career. And of course this opens the door for them who has been awaiting for a break may be not today but very soon when IT restarts breathing in open air.
Who can help you at this miserable situation?
Your hard labor and skills earned while working. This may pop up an alternate way for you. You need to be very sensitive for any further calls in your lifeline.
Situation may demand you to learn a new technology in a marathon flow, and so work accordingly.
You are multitalented, show it to the world professionally.
Probably the money you could have saved while earning. Money you have not spent in PVR, Inox or Fames at every weekend. Lesser your frequencies to enter a Pizza hut. You could attire into a non branded elements. You might have purchased all those prerequisites in your life what we say Roti, Kapda aur Makan (food & shelter).
People who are into pipeline……
Work hard, use your neurons 24×7 and give your best. Don’t allow to pinpoint your skill easily.
Don’t migrate just for the sake of vitamin M.
Save your money, assuming there is a future lies in it.
After all,
Pursuit of happiness:
Believe in making you better and better, despite you have been fired, or into a pipeline or not yet fired. You need to learn a way to be happy into this life, if not through mechanism X, and then let’s try Y.
Converting nil
Check C,C++,Java, JavaScript or any other langugage which treats “nil” as something different–probably a meaning equivalent to “a person having 5 hands”. But in Ruby you may use
nil.to_s —>> “0″
Is this really breaking the original stream of programming languages?
Chrome: Google’s Browser
- CHROME:Hit the world
Yes I have downloaded CHROME and below are my observants:
0. Very slim look, ofcourse faster
1. A great care about Javascript (got a separte Javascript Debugger, plus the console)
2. Tabs at the very top of the window, this will give u a feeling that browser is of bit lareger size
3. Diagnose problems with runaway plug-ins easily
4. History of the sitesfor most visited
5. In the address bar, highlights the main domain
6. incognito window -> a Specail window, when u open any sites, it wont be tracked for browser history, no cookies upon closing.
7. If any problem happens in ONE of several tabs, you can close exactly the one without disturbing other tabs.
8. Your serach box and address bar is the same.
9. On startup, you can open multiple pages.
Large development@Rails
With my recent Googling, I could crawl through few sites, blogs and data analytic graphs. I was shocked to know the jumping intercourse relation of web development with RoR, Specially on the blog http://www.railsonwave.com/ about the migration of site http://www.yellowpages.com/ from JAVA to Rails with so many positive results. I won’t make you to go through the blog and read each and every line unless you want…
Yes I am up with few highlights :



