free -m alternative for Mac OS X

Posted on 23rd December 2012 in Mac OS | No Comments »

On Linux console it’s easy to get free memory with free -m. On Mac the utility is not directly available. The alternative is to fetch it from vm_stat.

There’s a great small Ruby script to do the job and display free memory in a simplistic form with a command free in a following few steps:

  1. Download the free-memory.rb script (direct download link)
  2. Copy it to a folder on your Mac, e.g. to /Applications/Utilities
  3. Create an alias for a free command by editing the bash profile in Terminal:
    1. nano ~/.bash_login
    2. At the end of the file, add 
      alias free='ruby /Applications/Utilities/free-memory.rb'
    3. source ~/.bash_login

You’re done. Type free and you’ll see something like 3.98G of 8.19G free.

Switching from Aptana’s Git implementation to eGit

Posted on 27th August 2012 in Aptana | 1 Comment »

AptanaBy default Aptana is configured to work with its own Git implementation meaning that whenever you add a Git repository and import it to the workspace, the default Aptana Git functionality is available in the project. The problem is, it doesn’t always deliver, e.g. for GitHub, nor is it visually as complete and readable.

The alternative is the more comprehensive eGit plugin for Eclipse. To switch over to eGit, just tick off Preferences > Team > Git > Automatically attach our git support to projects added that have git repositories.

This feature landed in Aptana Studio 3 roughly a year ago, see Preference for git – egit integration.

HTML5 fragmentation: WHATWG and W3C mishap

Posted on 21st July 2012 in HTML5, Open Standards | No Comments »

In the past days the fragmentation of web technologies was mainly caused by the corporate interests and while it has gone nowhere, it has shown some considerable improvement over the past years (see IE dumping CSS hacks or IE8 to pass Acid2 from 2008). Nevertheless, what we’re witnessing today, is of a different kind. Two main open standards bodies involved in HTML5 development, WHATWG and W3C, are struggling to find the common ground.
Read the rest of this entry »

phpMyAdmin configuration for Mac OS X bundled PHP and Apache

Posted on 14th July 2012 in Developer tools, PHP | No Comments »

If you’re not into using XAMPP/MAMP for your local development sandbox and you’d like to go with the stack that comes preinstalled on a Mac, you could have trouble configuring phpMyAdmin.

Read the rest of this entry »

Installing Drush on Mac OS X the developer way

Posted on 10th April 2012 in Drupal | 1 Comment »

This is a quick walkthrough of how to somewhat painlessly install the Drupal Shell – Drush.

Read the rest of this entry »

Workaround for ImageMagick convert returning 5

Posted on 25th October 2011 in Developer tools | 2 Comments »

If you’ve installed ImageMagick from MacPorts, e.g. for a 32-bit Mac for which there are no prebuilt binaries, you could have seen ImageMagick not working with PHP exec() on localhost even though it works from  the command line. Read the rest of this entry »

Get a taste of pro Flash development with FDT 4 trial

Posted on 10th September 2010 in Developer tools, Flash | No Comments »

Powerflasher has just announced FDT 4 Open Beta programme according to which all are eligible for a fully-flavoured FDT 4 until October 17th 2010. It’s a 1-month trial software that you can try out before FDT 4 gets out of the RC status and hits the streets.

Get your free licence code from
Read the rest of this entry »

Drupal multisite vs single site performance on Debian

Posted on 4th August 2010 in Drupal | No Comments »

The following benchmark proves that a traditional single site Drupal setup isn’t any faster than its multisite counterpart.

Tested setups:

  1. Single site installation of Drupal 6.17 from
  2. Multisite installation of Drupal 6.6 from Debian Lenny. Although there’s a version difference and Debian’s release lags behind by a number of versions, it has the latest security patches applied.

Benchmark data by ApacheBench as per commands:

  1. ab -n 100 -c 10 http://drupal_single_site_address.tld
  2. ab -n 100 -c 10 http://drupal_multisite_address.tld

Read the rest of this entry »

Protect your ActionScript code with SWF Protector

Posted on 22nd July 2010 in ActionScript, Developer tools | 3 Comments »

Even though the point of code obfuscation will always remain arguable, it may sometimes be a good idea to mess around a bit and make your ActionScript code harder to steal. The following review will highlight the features of SWF Protector, analyse the code and impact on SWF file size as well as performance. Read the rest of this entry »

Configuring Eclipse to compile Flash with Cmd + Enter

Posted on 26th June 2010 in Developer tools, Eclipse, Flash | 1 Comment »

If for whatever reason a lot of your work gets done in Flash IDE and you’re working on the open-source Eclipse Flash development platform, it may get seriously annoying to seek for that tiny Run button on the Eclipse toolbar. To hook up Cmd + Enter* in Eclipse, do the following:

  1. Open the Preferences of your Eclipse IDE
  2. Locate General > Keys
  3. Type Run in the field with type filter text tip in it
  4. Scroll down and find the Run command,  it should display Shift + Cmd + F11 by default
  5. Click Unbind Command
  6. Click the Binding field and Cmd + Enter to set the new shortcut
  7. Click Apply and Ok to finish

* the guide applies to Mac OS X version of Eclipse, but can easily deployed for Ctrl + Enter on Windows (or Linux). Read the rest of this entry »