Sometimes while I work , I really get irritated especially if there is an issue which refuses to resolve fast.The other day I came across some good humor related with computers .I have mentioned them below so that you guys can aslo have a hearty laugh
1>Q: What is the difference between Windows 95 and Windows 98? A: 3 years
2>“As soon as we started programming, we found to our surprise that it wasn’t as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.”
Maurice Wilkes discovers debugging, 1949.
3>“Before software can be reusable it first has to be usable.”
Ralph Johnson
4>“The evolution of languages: FORTRAN is a non-typed language. C is a weakly typed language. Ada is a strongly typed language. C++ is a strongly hyped language.”
Ron Sercely
5>“If debugging is the process of removing bugs, then programming must be the process of putting them in.”
Edsger Dijkstra
6>“I’ve finally learned what ‘upward compatible’ means. It means we get to keep all our old mistakes.”
(Dennie van Tassel)
7>“There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.”
(C.A.R. Hoare)
8>“Keyboard not found. Press <> to RESUME. “
Source unknown (appears in many common BIOSes as a real error message)
9>“The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.”
(Seymour Cray)
10>“A great lathe operator commands several times the wage of an average lathe operator, but a great writer of software code is worth 10,000 times the price of an average software writer.”
(Bill Gates)
Hope this brought across a smile :)!
Monday, July 12, 2010
Thursday, June 17, 2010
Rmoving Restrictions on package like sun.*, java.*
The java.*, javax.* and org.* packages documented in the Java Platform Standard Edition API Specification make up the official, supported, public interface. If a Java program directly calls only API in these packages, it will operate on all Java-compatible platforms, regardless of the underlying OS platform.
The sun.* packages are not part of the supported, public interface.
A Java program that directly calls into sun.* packages is not guaranteed to work on all Java-compatible platforms. In fact, such a program is not guaranteed to work even in future versions on the same platform.
Due to the same a project give access restriction errors at the compile time ...
Access restriction: Class is not accessible due to restriction on required library";
may be shown while developing Java projects in Eclipse IDE.
Solution: follow the following steps to solve the same
1.(Your Project) Properties -> Java Compiler -> Errors/Warnings
This was all about eclipse when you deploy the same using Felix
you can either pass the VM argument as:
-Dorg.osgi.framework.bootdelegation=sun.*,com.sun.*
or you can add
Dorg.osgi.framework.bootdelegation=sun.*,com.sun.*
in the config.properties file in the conf folder of the Felix Framework
References:
1 http://java.sun.com/products/jdk/faq/faq-sun-packages.html
2 http://lkamal.blogspot.com/2008/09/eclipse-access-restriction-on-library.html
3 http://blog.springsource.com/2009/01/19/exposing-the-boot-classpath-in-osgi/
Friday, June 4, 2010
eqinox to felix - an experience
The other day I had created a few OSGi bundles in Eclipse and deployed the same in the Equinox framework of Eclipse..
These same bundles when I deployed in Felix.. it gave an error stating it was not able to find the classes .. esp those which were exposing the services.Next I added the following bundles in the manifest of each of the bundles:
- javax.naming
- javax.naming.event
- javax.naming.spi
And VOILA !!! it worked .... :-)
These same bundles when I deployed in Felix.. it gave an error stating it was not able to find the classes .. esp those which were exposing the services.Next I added the following bundles in the manifest of each of the bundles:
- javax.naming
- javax.naming.event
- javax.naming.spi
And VOILA !!! it worked .... :-)
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 !!
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 !!
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 !!!
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.:-)
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.:-)
Subscribe to:
Posts (Atom)
