Monday, May 31, 2010

a hope ...

a little footprint in the shore...
a small step towards the unknown..
a apprehensive journey... to know more and more..
a hope ...
a vision.. a belief.. more importantly... WE...
bring to me my faults let me learn ..
keep pushing me more and more..
lets the boundaries fade... lets believe in the impossible.....


DREAM !! Be-live and make it happen !!

Thursday, May 27, 2010

Happy Eclipse working-IDE Shortcuts

Since long I have been using Eclipse , now I realize the necessity of using shortcuts.
Not only does it save time at the same time enriches the coding experience .
I have mentioned them here below :




Navigational Shortcuts


F10


Main menu:


Shift F10 -----------------
Context menu
Ctrl F10
-----------------View menu

Workspace navigation:


F12 -----------------
Activate editor
Ctrl+Shift+W----------
Switch editor
Ctrl F6---------------
Next editor
Ctrl Shift F6-----------
Prev editor
Ctrl F7---------------
Next workspace
Ctrl Shift F7-----------
Prev workspace
Ctrl F8
----------------Next perspective
Ctrl Shift F8 -----------
Prev perspective
Alt Left----------------
Back
Alt Right -------------
Forward

Files:


Alt Shift S -----------------
Show in…
Ctrl Shift R-----------------
Jump to file
Ctrl N ----------------------
New file
Ctrl S ----------------------
Save file
Ctrl Shift S -----------------
Save all files
Ctrl F4---------------------
Close file
Ctrl Shift F4-----------------
Close all files

Find:


Ctrl L -----------------
Goto line
Ctrl F -----------------
Find
Ctrl J-----------------
Incremental find
Ctrl Shift J -------------
Incremental find prev
Ctrl K -----------------
Find next
Ctrl Shift K -------------
Find prev
Ctrl H ------------------
Search workspace
Ctrl (dot)---------------
Navigate next
Ctrl (comma) ------------
Navigate prev

Java navigation:


F3---------------------
Goto declaration
Ctrl Shift U --------------
Find references in file
Ctrl Shift G---------------
Find references in workspace
Ctrl G ------------------
Find declarations in workspace
Ctrl Shift P---------------
Navigate to matching bracket/brace
Ctrl T--------------------
Popup type hierarchy
Ctrl Shift T ----------------
Open Type
Ctrl O--------------------
Outline of current source
Ctrl F3-------------------
Outline of current cursor position
Ctrl Shift Arrow ------------
Jump beetween methods up or down
F2 ----------------------
Show Javadoc
F4 ----------------------
Show hierarchy
Ctrl Alt H -----------------
Open call hierarchy


General editing:


Alt Arrow -----------------
Move line(s) up or down
Alt Shift Up ---------------
Expand selection to enclosing element
Alt Shift Right -------------
Expand selection to next element
Alt Shift Left---------------
Expand selection to previous element
Alt Shift Down--------------
Restore previous selection
Ctrl Alt Arrow---------------
Duplicate line(s) up or down
Shift Enter -----------------
Insert line below
Ctrl Shift Enter -------------
Insert line above
Ctrl D ---------------------
Delete line
Ctrl Shift Q -----------------
Toggle Quick Diff
Ctrl Shift Y -----------------
Convert to lowercase
Ctrl Shift X -----------------
Convert to uppercase

Java editing:


Alt Shift U -----------------
Remove occurrence annotations
Ctrl 1----------------------
Quick fix (works even when there are no errors
Ctrl Shift M -----------------
Add import
Ctrl Shift F ------------------
Reformat
Ctrl Shift O------------------
Organize Imports
Ctrl / -----------------------
Comment
Ctrl \ -----------------------
UnComment
Ctrl Shift Space--------------
Parameter hints
Ctrl ------------------------
Hyperlink identifier
Ctrl I-----------------------
Correct indentation
Shift Space -----------------
Incremental content assist

Debugger :


F5 ----------------------
Step into
F6 ----------------------
Step over
F7
----------------------Run to return
F8 ----------------------
Resume
F9 ----------------------
Relaunch last
F11 ---------------------
Run/debug last
Ctrl F11------------------
Run
Ctrl Shift B ---------------
Toggle breakpoint
Ctrl D
-------------------Display
Ctrl Q --------------------
Inspect
Ctrl R--------------------
Run to line
Ctrl U --------------------
snippet




Refactoring:


Alt T ----------------------
Refactoring menu
Ctrl Shift Z ------------------
Undo refactor
Ctrl Shift Y------------------
Redo refactor
Alt Shift R ------------------
Rename
Alt Shift V -------------------
Move
Alt Shift I--------------------
Inline
Alt Shift M-------------------
Extract method
Alt Shift L-------------------
Extract local
Alt Shift C------------------
Change method signature

Misc:


F5 ------------------
Refresh
F1 ------------------
Infopop
F2 ------------------
Show resizeable hover


Go try and have fun !!

Tuesday, May 25, 2010

My first OSGi bundle

I have shown below some basic steps in creating an OSGi bundle in Eclipse.

Step 1) First open your Eclipse IDE , right click on your package explorer and choose New---> Other





Step 2)Select Plug-in Project under the Plug-in Development Header.





Step 3) A new Plug-in Project window will open , beside the project name tab write my.first.bundle then click next.




Step 4) A new window appears as :



click Next


Step 5) Select the Hello Osgi Bundle template and click Finish.



Congrats your first bundle has been created

Step 6)Now to run the same... Right click on the bundle , go to Run Configurations



Step 7) Select the Osgi framework and right click on the same and click on new-> run








Once done ,now you should be able to see:

osgi> Persistence bundle starting...
Persistence bundle started.
Hello World!!



This was a basic and simple way to create and deploy a bundle in Eclipse... lots more in the making ...till then
Try this out !!!

Monday, May 24, 2010

A Proud Zalonian

It was a bright sunny day, way lazing around in the sun reading .. when I received a call - " No Number " , there were three people on the other side Mintu,Ben and Bijoy on the other side, who I later learnt were the torchbearers of Zaloni.We had a friendly chat , and that was how it all started.


My first emotions - " Zaloni!! what kind of work should I expect after all, it from Assam, Obviously must be something monotonic " .... errr and boy-o boy I was wrong !! And very happy at the same time. The projects and the platforms that Zaloni offers start out of Assam are commendable,don't go by my word the work speaks for itself.Everything in here the people the work the team spirit is what keeps me going.


Just a simple feeling :Proud to be a part of Zaloni.:-)

a book called kite runner

I had read this book called Kite runner a few months back.... a true masterpiece .. it really captures the plight of the children in Afghanistan.A favorite quote from the same book which moved me into tears:- "There are many children in Afghanistan but no childhood".


The books depicts a friendship between two kids a son of the servant and the other one the master.Another favorite quote from the same book - "... for you a thousand times over"

If you are a book lover seriously don't miss out on this