Tuesday, August 26, 2008

Why Chiru?

I don't want to say Chiru will do wonders. But he is not mastered in looting the people like others. He is not an experienced Politician .Its a great Qualification.

One of my friend raised an objection here saying that " being in-experienced politican how its going to be a great qualification and do you thinking that all current politicans are bad"
i am accepting his comments and removing a few words from my article....


He is a new comer into this field, so by the time he learns how to do all these things, it will take some time. As a fresher, he will may try to do some thing good for till he get defeated.
By the track record of Chiru, i don't think, he will get defeated. Just because he became No.1 in a field which similarly ruled on the base of caste. But he conquered it not just with Charishma and acting. He know how to win.

Another comment is how chiru's past track record in Movie field will guarentee success in completely different "Political field".
It as simple as on what basis a student is get into IITs based on his performance in IIT-JEE. In IIT-JEE, he will be tested on Intermediate subjects and going to study enginnering (which branch doesn't mind).


Its the basic characterists like commitment and hardworkingness are the stepping stones to success
in every field. There is no other short cut to success.

After seeing his accomplishments and service motiveness towards society even before getting into power. I beleiving that, there is nothing wrong in giving him an opportunity.
If any one contradicts, tell who else i have to cast my vote and why?
Y.S.R is one of the bledy damn politician

1. with in one year after coming into power, most of key opposition leader are murdered. Through this, he started a new tradition. Now if TDP comes into power, obviously they too will do the same. With this Y.S.R. proved that he is the first class Faction politician and started a new tradition in AP politics.
From this point of view, i appreciate ChandraBabu. Upto now he never practiced it. But can't guarente about the feature. He may be not interested in doing these things. But to satisfy their cadre he may have to allow them what they want.

2. He Divided and started Ruling the society on Caste basis like never before. because of his caste based politics, non of the bomb blasts in Hyderabad made any progress. Just because there is no political will behind resolving it. How many innocents my die, YSR wants only votes and power nothing else

3. He allowed to flow the wine in the streets like never before. By this he severly damaged the poor families financial progress so that they will never recover from it. Even the middle class also became poorer. What a development by YSR

4. He sold nearly allmost all the public lands in Hyderabad sorrounding. For the future generations, to start up any govt venture in these areas, there is no govt land.

5. He taken up a lot of irrigation projects, but how many completed?. Its only a gimmick. They created this work only to fill their pockets in the form of commissions.

6. In his rule, corruption has reached to a new level. Non of the Govt of employee fear of being catched in a bribe case. Because they know nothing will happen. Recently they released a G.O. for awarding promotions to these curruptionists.

7. He is giving everything free to every one, which eventually crampts the economic situation of the State Govt. Now every one started to form an association and started to demand exclusive benifits to them. Because of this unplanned spending, if there is any floods etc., Govt will not have anything intheir hands to help the needy.

Towards TDP, i am little bit +Ve and specially i am fan of Chandrababu Naidu, who made Hyderabad a landmark on worldmap and presented himself as a CEO to Govt of AP. Perfectly fine, that the attitude that we want. He is a good administrater.

But during the past 4 Years, he unable to prove himself
as a good Leader from His own parties point of view OR
as a good opposition leader. And
he again again prooving himself that he is not flexible

In Assembly, He should have atleast read the headlines in from the previous Assembly session to the current session. He is failed to present the YSR's dirty politics to the normal man.

Why i said he is inflexible is
1. during his tenure in Govt, he unable to find the problems that Formers facing And he unable to do any damage control ones YSR elivated that issue through "Padayathra". He is just fixing to the opinons what he has. Not every considering others.

2. In Telanga issues also, From day one itself TDP holding on to "United AP". i don't know why... if every one in Telegana wants to get a separate state, give it away. Being a political party in Democratic country, they should reflect the aspirations of people only. He should change his policies atleast now.

Some people may argue, if every one starts asks for their own state, will i accept it. i will not rule out that option also. Its democratic country. They have that freedom to demand.
Forming a separate state is like, dividing family after marriage. similar to Forming a nuclear family. Whether it is good or bad they have to decide. What ever the result, they are the only one, who are going to taste it. Just think, if your father doesn't allowed to form a new family, do you accept it. This is the same issue with Telangana also...

Leaving Telagana issue aside, My conclusion is TDP's leader chandrababu naidu is not flexible and lacks the vision which suits all the sectors of society.

Loksatta's agenda is looks really good . But i am in doubt how they will reach each and every one in the society. I suggest Loksatta to review their purformance in recent elections in Telengana. Loksatta is also a good option to caste the vote.
But last time i saw a TV programe by JP. There he is saying that he restructure the entire Govt organization and dismiss who ever are not working properly. I wonder why he is not building his own party on the same structural lines and show its effectiveness to the people and secondly its not that much easy to fire a Govt employe based on his performance as lot of others things will dragged into the issue at that time.

I would like to see Chiranjeevi's manifest upto the mark of JP's

Even after all these things any one want to vote for YSR or TDP.If yes,just think you may be casting your vote, because you may be one of the few who got benifitted from him or based on the caste. Just think if you are on the otherside, what would be the situation. Think about next generation.Society would be good to you as long as you are on this side. Suppose if you die or you loose your financial situation, you will be thrown to otherside. Then no one can help you.Some of you may say, we are based on caste, and as long as our caste person is in rule, we will be fine. If you think so is every one in your caste getting benifited and suppose tomorrow some other caste person comes into power, they only rise their own community. Its a bad tradition.STOP IT.
If society is good and prejudice, then irrespective of caste and monetary status every get the justice.This is the "SOCIAL JUSTICE" chiru talking about.


Comments are welcomed

Wednesday, August 20, 2008

Netbeans 6.0 - Code generation


The Java editor is capable of generating often used constructs for you automatically. Press Alt+Insert to invoke the code generation menu and pick what you want to generate

To add import statements: Use error hints: Click on the error mark with the light bulb or press Alt+Enter. It will offer you a list of possible classes to import. Pick the proper hint and you are done

Use the import class dialog: Put the caret into the name of an unimported class and press Alt+Shift+I. A list of possible classes to import will appear. Use the smart fix import: Press Ctrl+Shift+I. You will get a dialog that lists all unresolved identifiers in the source. If there is more than one option for resolving the identifier you may choose using the combo box. Classes shown in gray do not fit for some reason.

Method exit points: Putting the caret on the return type of a method definition will highlight all places where the method can exit

Exception throwing points: Putting the caret on an exception in a method declaration throws clause will highlight all the places where that exception can be thrown

If you want to surround a piece of text with a template, just select the text and invoke hints with Alt+Enter

Sometimes it is useful to select text based on Java syntax. To do this, press Alt+Shift+PERIOD (Ctrl-Shift-PERIOD on a Mac) to expand the selection and Alt+Shift+COMMA (Ctrl-Shift-COMMA on a Mac) to shrink the selection based on the structure of your Java source code

How to use Live Templates

Type a few letters from the name of the template e.g. fo| and invoke the code completion.
Pick the template you want to use. If there is a suitable collection it will be filled in for you. Several parts of the template will be rendered in blue. You may cycle between them using the Tab key. Editing the fields will change the part of the code accordingly. Press Enter or Esc to finish editing the template. Notice that if you move out of the blue boxes with the cursor the "edit template mode" continues (so you may get back using the Tab key) until you actually change text outside of the blue box.

Creating a new template You can define new templates: go to Menu->Tools->Options, then choose the Editor category and the Code Templates tab. You may want to look at the existing Java templates and try to create your own

Javadoc popup window Put the caret on a symbol of choice and press Ctrl+Shift+Space. Javadoc view window Go to Window->Javadoc View in the main menu. This will open a separate window which always shows Javadoc for the element under the caret

Opening a type in the editor If you know the name of the type (class, interface, annotation or enum) you want to open, press Alt+Shift+O and type the name into the dialog. Notice that you can use prefix, camel case and wild cards

Navigating to source or declaration Place the caret on a type or variable name and press Alt+O or Alt+G. The former will open the source declaration of the type in the editor; the latter will take you to the declaration (e.g. to the place where a variable is defined.) Hyperlinking A similar action can be achieved by holding down the Ctrl key and clicking on an element with the mouse.

Implements/Overrides annotation Methods which implement or override another method are marked with a glyph in the editor gutter. Clicking the icon will take you to the overridden method or to the method from the interface. Pressing Ctrl+B does the same.

Declaration Window If you want to see the declaration of a given element but you don't want to open it in the editor, you can open the Declaration View, which always shows the declaration of the element under the caret

NetBeans 6.0 - Code Completition


1. Code completion behavior Ctrl+Space lists symbols which are already imported in your source file, plus of course symbols from the java.lang package. Pressing Ctrl+Space again will list all symbols from the project class path whether imported or not. If you want to go to the list of all types immediately you can use the All Symbols Completion, which is invoked by pressing Ctrl+Alt+Space

2. Smart completion - Notice that the standard completion list box is divided into two parts separated by a black line. The first section includes smart completion items. The editor chooses these items based on the current context (i.e. around the current caret position) when completion is invoked. See other bullet points below starting with "smart" for more information and examples of this smart completion feature

3. Completing Keywords You may use code completion for completing keywords: the editor knows which keywords fit into which place in your code.

4. Field/Variable names When you introduce a new field or variable, you often want its name to mimic its type. Code completion now supports this. To prepend a prefix to the guessed name, simply type the prefix and then invoke code completion. This works for method names as well.

CC_VariableNames.png

5. Smart completion examples

a. After new (with generics) This will help especially when you are declaring a field or variable with complicated generics.


CC_SmartNewGenerics.png

In method call parameters Smart completion will offer only those fields, variables, methods which can be passed as an argument to the method

For exceptions In a catch block smart completion will offer only those exceptions which have been thrown in the try block but not yet caught

Parameter guessing Code completion of method calls guesses which variable, field or parameter should be used based on type and similarity of the name

Code completion ending character Notice that you may select the item of choice with different keys. Selecting with Enter you'll get what you expect. Should you select the item with ".", "," or ";" code completion will append the character you typed at the end of the completed word

Creation of elements - Invoking code completion between class members will offer to create a constructor (either a default constructor or one initializing uninitialized fields), override methods or implementation methods

Tuesday, August 19, 2008

Netbeans 6.0 Shortcuts / Tips

1. If the code you pasted in is not formatted correctly, press Alt-Shift-F to reformat the entire file

2. Press Ctrl-Space to open the code completion box. A short list of possible ways to complete the word appears

3. Type sout and press Tab. The sout abbreviation expands to System.out.println(""); with the cursor positioned between the quotation marks.

4. Type psfs and press Tab. The psfs abbreviation expands to private static final String.

5. To supply command line arguments to the program Right-click the project node, choose Properties, and select the Run node in the dialog's left pane and then enter the arguments at the arguments dialog box

6. To run the project choose Run à Run Main Project (F6) from the Run menu

7. If you build a project and then later change classes, it is good to remove all build artifacts from your system and create a fresh build of the application. You can do this with the Clean and Build command (Shift-F11)

8. To create JUnit Test cases select the java file in the Project folder and (Ctrl-Shift-U)

9. To run the JUnit Test cases , select the project node in the project folder and Alt-F6

10. press Ctrl-F8 to set a breakpoint

11. To Debug Main Project Ctrl-F5

12. Click Step Into (F7) in the toolbar to step through the program

13. Generally speaking, Code Completion is useful for filling in missing code, such as symbols and keywords, automatically. As of NetBeans IDE 6.0 you can now also use Code Completion to generate whole methods. This is useful if you want, for example, to generate a constructor, override methods, or implement methods.

14. Generating Code Using the Code Generation Dialogs: Alt-Insert. Using it we can generate getters, setters, hastcode() and equal() methods

15. The IDE's Java editor provides several ways to add import statements for one or more classes, each offering you a list of possible classes to import when you click on the light bulb error mark or press the appropriate key combinations. In addition, the Editor also displays error hints that assist you with removing imports that aren't needed in your source.

16. Place the cursor on the line of the class that wasn't imported and press Alt+Enter. Alternately, you can click the warning mark in the Annotation Stripe (along Editor's left edge)

17. The IDE's Java editor also provides several other methods for managing imports, such as pressing Ctrl-Shift-I to import multiple types at once and pressing Alt-Shift-I while the cursor is positioned in a type identifier, which enables you to import that specific type

18. To duplicate/move the current line or multiple selected lines: Position the cursor on the line or selection you want to duplicate/move. Press and hold Ctrl-Shift / Alt-Shift, then press either the Up or Down cursor key to copy and paste the code above or below the original line.

19. To instantly Rename all the occurrence of a field, method, variable etc., place the cursor on the filed and press Ctrl+R and then enter the new name. To exit from it press Enter / Esc

20. To see the javadoc for an element press Ctrl+Shift+Space