Monday, March 21, 2016

Updating eclipse features/plugins from terminal

./eclipse -clean -purgeHistory -application org.eclipse.equinox.p2.director -noSplash -repository <update site url> -installIUs <feature ID> 


./eclipse -clean -purgeHistory -application org.eclipse.equinox.p2.director -noSplash -repository -installIUs org.eclipse.recommenders.repositories.categories.deps 

./eclipse -clean -purgeHistory -application org.eclipse.equinox.p2.director -noSplash -repository -installIUs

./eclipse -clean -purgeHistory -application org.eclipse.equinox.p2.director -noSplash -repository -installIUs

./eclipse -clean -purgeHistory -application org.eclipse.equinox.p2.director -noSplash -repository -installIUs


Closing all the Virtual running machines in the system

kondals-MacBook-Pro:~ kondalkolipaka$ VBoxManage list runningvms
"default" {f12ab661-116e-42f0-8d2b-05fc76175022}

kondals-MacBook-Pro:~ kondalkolipaka$ VBoxManage controlvm default poweroff

Here default is the VM name which is running. We can also provide UUID instead of name.

Wednesday, March 9, 2016

How to find the eclipse version number

In eclipse root directory you can find .eclipseproduct file

name=Eclipse Platform


You can also find the exact bundle id from - eclipse/configuration/config.ini


Sunday, March 6, 2016

Eclipse non-model dialog

protected void setShellStyle(int newShellStyle) {           

Friday, February 19, 2016

Text setMessage with SWT.MULTI style

Text setMessage with SWT.MULTI style - Yes, this doesn't work!.

Seems to be that's a native OS behaviour for Windows and GTK platforms.


Text  releaseNotesTxt = new Text(appPreviewComposite, SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.V_SCROLL );
releaseNotesTxt.setMessage("Enter your release notes for this build (Optional)");

But this works with SWT.Single or SWT.Search

Wednesday, December 30, 2015

Do you have any helpful habits or routines?

I felt it's very interesting write-up by Andrew Ng and which I can feel everyday in my life. Worth keeping in my notes!!

Do you have any helpful habits or routines?

I wear blue shirts every day, I don’t know if you know that. [laughter] Yes. One of the biggest levers on your own life is your ability to form useful habits. 

When I talk to researchers, when I talk to people wanting to engage in entrepreneurship, I tell them that if you read research papers consistently, if you seriously study half a dozen papers a week and you do that for two years, after those two years you will have learned a lot. This is a fantastic investment in your own long term development. 

But that sort of investment, if you spend a whole Saturday studying rather than watching TV, there’s no one there to pat you on the back or tell you you did a good job. Chances are what you learned studying all Saturday won’t make you that much better at your job the following Monday. There are very few, almost no short­ term rewards for these things. But it’s a fantastic long­term investment. This is really how you become a great researcher, you have to read a lot.

People that count on willpower to do these things, it almost never works because willpower peters out. Instead I think people that are into creating habits — you know, studying every week, working hard every week — those are the most important. Those are the people most likely to succeed. ­ 
                                                                                                                                           -Andrew Ng