RCDefaultApp Freeware Application for Mac OS X
0Recently I wanted to change default terminal application from Terminal.app to iTerm.app. While searching how to do it, I come across a very helpful application to adjust all kind of application defaults on Mac OS X, RCDefaultApp. Installation is very simple, just double click on the RCDefaultApp.prefPane file and System Preferences pane will prompt to install it. After the installation it will be added to Preferences pane as a new icon. Just open it and set the iterm as handler of ssh, telnet and x-man-page URLs. If you need to set an application as a default for certain type of extensions you can also do it here.

Blogging Softwares for Mac:MarsEdit 3.5.9 vs Metropolis 1.0.2
0I have been using MarsEdit during last month and during that time I have posted several posts using it. I have been using trial version and I was considering to buy it, though it’s $40 price is expensive for a blogging software. I have come across Metropolis from CHIARO Software. I think Metropolis is only for wordpress though. Both of them are very good applications and have very similar functions.
- HTML and Rich Text editing
- Previewing post
- Local Drafts
- Setting post properties (Publication date, tags, categories, turning comments on/off, allowing/disallowing pingbacks)
- Inserting images into posts
- Allows editing of posts and pages
- Allows custom stylesheets for previewing your post
- Spell check
- Retina display support
Pros of Metropolis:
- Twitter integration (automatically publishes your post on twitter, allows tracking who tweeted your post)
- Allows directly seeing comments on your site and approving, deleting them etc.
- Cheaper, $20 is half of the price of MarsEdit
- Formatting toolbar in Rich Text Editor
- Allows setting slug for post
- Allows editing of excerpt of your post
Pros of MarsEdit
- Media manager, allows resizing of images within the application
- Blog This bookmarklet to reblog something you have seen on the web
- Supports other blogging sites other than wordpress
- Integrates with other text editors for editing HTML Text, like BBEdit
- Allows javascript and plugins on preview screen
- Support for WordPress Private and Pending Post status
- Macro support for repeated actions


Amateur Icon Design for MilTRAC Project
0I have decided to design some icons for my current project in Milsoft. It is a MRO (Maintenance, Repair, Overhaul) application to automate complex maintenance operations, like maintenance of an aircraft. Project name is MilTRAC. Below are the various icons I have designed with Illustrator and Photoshop.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
Snapping Windows and Moving Them Between Screens in Mac OS X
0One of the best features of Windows’ user interface is its ability to snap windows to edges of the screen. Mac OS X does not have this capability natively. There are several applications that could do this and all of them are paid applications. Some of them provides just snapping capability and some also provides capability to move windows between screens. After trying a few of them I decided to go with BetterSnap Tool. It has 5 star rating in the Mac App Store. Also it is very cheap when compared to other alternatives.

You could drag windows to edges to snap them, a preview screen will be shown to indicate the window size and position after snapping it. I suggest you to auto start it when your mac starts.

BetterSnap Tool is also keyboard shortcut friendly. I have defined shortcuts to maximise, snap to left, right, top and bottom using cursor with a combination of control, option and command buttons. It is really difficult to find a suitable empty shortcut combination. I have also defined a shortcut to move current window to second monitor. I have gone with maximise on next monitor option, because my second screen’s resolution is significantly lower. If I choose the move to next monitor option window may not fit the available space.
Setup a HTML5 Development Environment with IntelliJ
0In this post I will explain you how you could set a simple web project to experiment with your favourite javascript libraries. IntelliJ has support for NodeJS, Javascript, HTML and CSS. For NodeJS support you have to install NodeJS framework to you computer. After you install NodeJS, you should install IntelliJ NodeJS plugin and allow it to download source of NodeJS core modules. Without them auto complete will not be available. If you follow default installation procedures, IntelliJ itself will find where your node executable is and with jus a few clicks it will download required sources.

After installing the plugin use the green NodeJS icon on the toolbar to start NodeJS configuration.

IntelliJ will guide you for downloading source code of core NodeJS modules.

Create a new Project with “Web Module” selection.

We will need a web server, since we have NodeJS installed we could easily run our simple web server using connect middleware for NodeJS. Open command line, and go into the your project folder and Install connect using:
$ npm install connect
This will download and install required NodeJS modules in node_modules folder. After that we could write our simple web server using JavaScript.
var connect = require('connect') connect.createServer(connect.static(__dirname)).listen(8080);
Now we will create a new launch configuration by right clicking on server.js file an selecting “Run server.js” from the menu. This will create a new launch configuration as follows:

Before running your server, you should define deployment configuration from Tools->Deployment->Configuration… menu. In this screen we will define how folders of our web project maps relative to context root of our web server we have created in above server configuration. Click + sign on top left corner and add a new “In place” deployment using the type combobox. In first screen, enter the web server root URL according to port you have specified in your server.js file. In my case it was 8080.

Click on the Mappings tab and add mappings of you project folders relative to context root of web server. In my case I have specified root of my project folder as root of my web server.

Now we can execute our NodeJS web server using the toolbar as shown below.

Clone a Postgresql Database
0May be there are more efficient ways of doing this, but I could only found following procedure:
1) Create a new DB
createdb -U db_user new_db_name
2) Dump data from original DB
pg_dump -U db_user -Fc original_db_name > dump_file_name
3) Restore to new db
pg_restore -U db_user -d new_db_name dump_file_name
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
0This error occurs when you try to reinstall an android application that is signed with a different key than already installed application. This may occur if you are a developer and installed the signed version of the application to your device (from Google Play Store) and you want to install a debug version of the same application for development purposes. To prevent this you may sign your development/debug versions with the same key that you use for publishing your application to Google Play Store. To do this you have to change your debug certificate with your real certificate. Debug certificate used is stored in the .android/debug.keystore file in your home directory. You have two options:
I will describe steps for second option.
keytool –storepasswd –new android –keystore debug.keystore
keytool –list –keystore debug.keystore
Above command will list key aliases and their corresponding certificate fingerprints. Find your key alias you have used to sign your application for Google Play Store
keytool –keypasswd –alias your_key_alias –new android –keystore debug.keystore
keytool –changealias –alias your_key_alias –keystore debug.keystore
Above command will ask you destination alias name, enter androiddebugkey. It will also ask your store password like all above commands.
After that your debug versions can be installed over the version downloaded from Google Play Store.
References:













