Faster your mail.app

Posted on March 02, 2007
macOSXHints explains how his database stored phantom messages from an Exchange server he used over Summer. By quitting Mail application, dragging the Envelope Index folder to the Desktop, restarting Mail and allowing it to reindex his emails, cut its size from 200MB to 2MB. After, the Mail.app will definetely increase. Rob Griffiths reduced his from 25.9MB to 4.5MB.
There is still another way to do it, using sqlite3 command.
How to do it?
1. Quit your Mail.app
2. Open Terminal.
3. Type the following:

rubify:~$ cd ~/Library/Mail
rubify:~/Library/Mail chardy$ sqlite3 Envelope\ Index
rubify:~/Library/Mail chardy$ sqlite> vacuum subjects;

When the sqlite prompt returns, type Control-D to exit. Restart Mail and enjoy the extra speed. I reduced from 37.5MB of "Envelope Index" folder to 4.4MB . Quite cool.

rubify:~/Library/Mail chardy$ du -hs Envelope\ Index 
4.4M    Envelope Index


Cheer.

Mac Start-Up Command

Posted on January 18, 2007
For every mac users, i think these command you should know.

Action/Explanation Keystroke
Eject CD on boot Hold Mouse button down immediately after powering on
OS X Safe boot Press Shift during startup
Start up in FireWire Target Disk mode Press T during startup
Startup from a CD Press C during startup
By passing primary startup volume and seek a different startup volume (CD, etc.) Press Cmd-Opt-Shift-Delete during startup
Choose Startup disk before booting Press Option during startup
Start up in Verbose mode Press Cmd-V during startup
Start up in Single-User mode (command line) Press Cmd-S during startup
Force Macbook screen reset Press R during startup
Force OS X startup Press X during startup

Apple 2007

Posted on January 02, 2007

Full Ruby on Rails Installation on Mac Intel

Posted on January 02, 2007

Installing Ruby on Rails development platform, its a long process, which we need to do with our terminal, from download the source files itself to the installation part. Make it simple. Here, I just provided the installation script for Mac Intel platform since i am using it ;p and it proven. Just run a shell script file and run the whole installation. Download the file below:

Download Mac Intel Script Here

The Installation including:

  • Ruby 1.8.4
  • Rails Edge
  • Gems
  • FastCGI
  • Lighttpd
  • Image Magick (also as RMagick gem)

Those are the basic installation of so-called rails ready platform. For some cases you need to install your own gem by yourself.

After download rails-intel.tar.gz, just run the command:

$ tar zxf rails-intel.tar.gz

Then open up the script file to get better understanding how it work and all the installation pointing to /usr/local (you can change it, just change the PREFIX), Next, its better to set the path correctly for your sheel environment, normally the file to set will be .profile or .bash_login under your home folder:

export PATH="$PATH:$HOME/bin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
export MANPATH="/usr/local/man:$MANPATH"

Before you run the script, just better create a directory 'src' inside your home folder and run the script from '~/src/' as the starting point. Next, run the script:

$ sudo ./rails-intel.sh

Wait for the installation finishing, the last piece of installation process running is mysql installation. After mysql installation done, viola.. run the script below for mysql gem

# TODO Do this after MySQL is installed
# NOTE: You may have to do "sudo gcc_select 3.3" first.
sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql

Done!