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:
- Download the free-memory.rb script (direct download link)
- Copy it to a folder on your Mac, e.g. to /Applications/Utilities
- Create an alias for a free command by editing the bash profile in Terminal:
nano ~/.bash_login
- At the end of the file, add
alias free='ruby /Applications/Utilities/free-memory.rb'
source ~/.bash_login
You’re done. Type free and you’ll see something like 3.98G of 8.19G free.
By 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.
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 »
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 »
This is a quick walkthrough of how to somewhat painlessly install the Drupal Shell – Drush.
Read the rest of this entry »
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 »
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 www.fdt.powerflasher.com/getlicense.
Read the rest of this entry »
The following benchmark proves that a traditional single site Drupal setup isn’t any faster than its multisite counterpart.
Tested setups:
- Single site installation of Drupal 6.17 from Drupal.org
- 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:
ab -n 100 -c 10 http://drupal_single_site_address.tld
-
ab -n 100 -c 10 http://drupal_multisite_address.tld
Read the rest of this entry »
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 »
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:
- Open the Preferences of your Eclipse IDE
- Locate General > Keys
- Type Run in the field with type filter text tip in it
- Scroll down and find the Run command, it should display Shift + Cmd + F11 by default
- Click Unbind Command
- Click the Binding field and Cmd + Enter to set the new shortcut
- 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 »