Friday, April 26, 2013

How to put aptana launcher on Ubuntu dock

1. Create a file namely aptana3.desktop having:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Name[en_US]=Aptana Studio 3
Icon=/home/moin/Aptana\ Studio\ 3/icon.xpm
Name=Aptana
Comment=Aptana\ Studio\ 3
Exec=env UBUNTU_MENUPROXY=0 /home/moin/Aptana\ Studio\ 3/AptanaStudio3 -application com.aptana.commandline.launcher.LauncherApplication "$@" > /dev/null 2>&1 &
Categories=Development;IDE;


2. Make it executable

chmod +x /path/of/aptana3.desktop

3. Drag and drop to dock. Right click and lock to dock.

Monday, April 15, 2013

POST RAW JSON request with Basic Auth using Chrome Advance REST client

I was wondering how to POST a RAW JSON request with Basic Authentication for Advance REST client. I tried several permutation and combination and finally came up with exact way.



Notes:
1. Somehow single quote did not worked for me.
2. Json in rails way( => ) would work.
3. user = {...} will work on www-form-url-encoded but not with json.

You might be getting JSON parse error even before request reach to controller!