Sunday 4 October 2015

Sublime IDE to develop Java code on Windows Machine

I was trying to find a text editor which can quickly let me develop & run Java code without leaving the editor. Popular ones ( Eclipse,IntelliJ etc) are extremely powerful & offers too many options which we do not need all the time. Specially, for a beginner in coding, those professional editors might look a bit overwhelming at first.

In comes Sublime. Whats best is the simplicity.

Here is how you can develop core java in Sublime 2.

1. Edit the : C:\Users\palash.mukhopadhyay\AppData\Roaming\Sublime Text 2\Packages\Java\JavaC.sublime-build
2. Change the default options with :
{  "cmd": ["javac", "$file_name","&&","java", "$file_base_name"],  "file_regex": "^(...*?):([0-9]*):?([0-9]*)",  "path": "C:\\jdk1.8.0_51\\bin\\",  "selector": "source.java",  "shell": true  }
3. Save changes.
4. Create a new java class.
5. Run it using : "Ctrl+B"


Tuesday 9 September 2014

Wireless Networks : Future looking really exciting

With the launch of Firefox OS, and the smartphone market buzzing with activity, end users have every right to feel excited about the future. With that excitement, I was trying to look at the speed limits and the future wireless networks that are going to come in near future. Here is a very interesting comparison of data transfer rate and bit rate of popular wireless technologies :
3G = 2.1 GHZ with wave length 14.3 cm, 4G = 10 times more powerful than 3G. 5G is going to be called "mm wireless" , with a rate of : 60 GHz. No wonder it is called "beyond 2020 wireless technology". Looking at the speed difference, we can imagine how powerful is it going to be. Already feeling excited.

Tuesday 10 June 2014

How to upgrade Eclipse to work with new Oracle JDK 1.8 compiler setting

Here are the steps to upgrade the existing Eclipse installation to work with newly released jdk 1.8.
Go to Help -> Install New Software. In the pop-up, in the "Work With" option, add : "http://download.eclipse.org/eclipse/updates/4.3-P-builds/". Then Accept the license agreement and install the update. Restart your eclipse workspace. Then, once your new workspace loads, select the new java 1.8 setting in the Project Facet and that's it, you can work with all the exciting new features of jdk 1.8. 

Tuesday 27 May 2014

Steps to set java version in your Ubuntu machine

Following are the steps to switch the java version of your Ubuntu machine , which is really useful to switch the default java version of your machine :

# sudo update-alternatives --install /usr/bin/java java <jdk_or_jre_firectory_where_u_unzipped_jdk_or_jre>/bin/java -1

Then execute the following command to pick which version you want to set:
#sudo update-alternatives --config java