Sunday, October 2, 2016

Getting Angular-CLI on Fedora 24

Well we all love Angular :). But for a developer who is stepping from Java Maven world into Javascript client side development with Angular2, nodejs, webpack etc is some what alien. Well the thing is there are so many built tools, packging tools out there for javascript which is hard to grasp the standard to start with.

But like the prayers been answered we have Angular-CLI. But it was bit of a bumpy ride for me to get it started on Fedora24 box. So here are the steps to get you going

1. You need to install g++ if you don't have it yet, run the following command to install it.
$ sudo dnf install gcc-c++
2. Then update the npm to latest, i mean the very latest or next version by running the following command
$ npm -g install npm@next
3. Clean the npm module cache by running the following command
$  npm clean cache
4. Now you can install angular-cli by running
$ npm install -g angular-cli
Thats it, Now you can follow documentation on and start developing your first angular2 application.

Saturday, April 16, 2016

Perfect GTK styles for Eclipse

Recently i switch to KDE and i had to work on the eclipse gtk settings again to get rid of huge toolbars. But lucky ubuntu forums had lot of help and the following particular forum post helped to solve it.

Now before you start you need to make sure the eclipse is running in gtk2 mode. Basically you can do it with a small shell script as below.

export SWT_GTK3=0
Now you need to create a gtkrc file which you can select any name you like, But i choose it to name as .eclipse-gtkrc-2.0. Now copy the following content into this file and save it.

include "/home/{user.home}/.gtkrc-2.0-kde4"
style "gtkcompact" {
style "compact-toolbar"
GtkToolbar::internal-padding = 0
xthickness = 1
ythickness = 1
style "compact-button"
xthickness = 0
ythickness = 0
class "GtkToolbar"   style "compact-toolbar"
widget_class "**" style "compact-button"
class "GtkWidget" style "gtkcompact"
{user.home} must be replaced with the user home folder name of yours.

Now update the shell script that you have made to run eclipse in gtk2 mode as follows.

export SWT_GTK3=0
GTK2_RC_FILES=~/.eclipse-gtkrc-2.0 $ECLIPSE_HOME/eclipse
Update the paths to suite you and that's it. Your eclipse will look as follows

Enjoy :)

Sunday, April 10, 2016

Huawei E3131 on Ubuntu 15.10

This post is about getting the Huawei E3131 usb modem to work smoothly on Ubuntu 15.10. If you are a user who is using this modem you must have experienced that the modem fails to connect on a cold start. You need to unplug it and plug it again after you logged in to get the modem working. Well while doing some digging in the internet i came across the following bug report which helped me to fix the problem.

What i did was the following

  • Copy /lib/udev/rules.d/40-usb_modeswitch.rules to /etc/udev/rules.d/40-usb_modeswitch.rules 
  • Edit /etc/udev/rules.d/40-usb_modeswitch.rules and add the following rule at the end of the rule list. Make sure its above the LABEL
# Huawei E3131H
ATTR{idVendor}=="12d1", ATTR{idProduct}=="14fe", RUN+="/usr/sbin/usb_modeswitch -v12d1 -p14fe -J"
  • Comment the following rule as below
# Generic entry for all Huawei devices, excluding Android phones
# ATTRS{idVendor}=="12d1", ATTRS{manufacturer}!="Android", ATTR{bInterfaceNumber}=="00", ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch '%b/%k'"
Thais it with the configuration. Now shutdown the pc and start it to see if it is working :)


The configuration file is no longer needed since the rule uses the huawei mode switch.

Sunday, March 15, 2015

The first release of eclipse-themes

The first release is out for Eclipse-Themes plugin which contains some themes which are inspired by Google Materiel Design Colors. More information at Release 1.0.0

Tuesday, February 24, 2015

Getting the USB dongle to work after latest updated in Ubunutu 14.10

After updating the Ubuntu 14.10 my BandRich C120 dongle stops working. The network manager couldn't detect the modem. While looking into more i found out that actually the udev fails to switch the dongle into modem mode. It was not a problem with the udev or udev rules, but instead it was something to do with the usb_modeswitch which didn't react to what udev rules passed in when calling it.

But after some time spending playing around with udev and usb_modeswitch, i found a way to write a udev rule which will perform a eject operation against the dongle using usb_modeswitch which will make the dongle to switch into modem mode.

Following is the content of the rule which is copied into

SUBSYSTEM=="usb", ATTR{idVendor}=="1a8d", ATTR{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch -v 1a8d -p 1000 -K"

If you facing the same issue and don't own the same type of dongle, just find the vendor and product id and change the rule criteria so that it will work for your dongle as well if its supports switching the mode by performing a eject operation.

Friday, February 20, 2015

Getting rid of startup applications

Recently i needed to get rid of the hp toolkit box system stray app from my KDE box. This was not shown in the start application window as well. But then i looked at the deb package to get some hints, Lucky i came across the following path


This was the startup program which is started the hp toolbox system tray. By simply removing this from the folder solved the problem of starting up hp toolbox system tray app.

Saturday, February 22, 2014

How to configure Eclipse Mylyn with Google Code project

First you need to install/upgrade the latest Mylyn snapshot version which is 3.11 from this update site

Then you need to install the Mylyn Web Template connector from the Mylyn Incubator which is at

After following the above steps you will have a Mylyn installation with Web Template connector in your Eclipse IDE.

The next part is configuring the web template connector to read issues from google code issues. There are lot of articles and posts on how to do this. But the following article was the one which worked for me with the above Mylyn version.

After configuring it you will be able to read the Google Code issues from Mylyn Task list :)