General

Vibrant Ink for Snow Leopard Terminal

If you’re on Leopard (Mac OS X 10.5), follow the instructions on the following post: Vibrant Ink for Leopard Terminal

Here’s a preview of what we’re trying to achieve:

vibrant-ink-1

Instructions
1. Download and install the SIMBL plugin on the website. There’s instructions on how to install the SIBML plugin there.
Download SIMBL: SIMBL website

2. Install the TerminalColors hack for Leopard. Extract to ~/Library/Application Support/SIMBL/Plugins
Download TerminalColors: TerminalColors 64 bit | Mirror

3. Install the Vibrant Ink for Snow Leopard Terminal Theme.
Download theme: Vibrant Ink for Snow Leopard Terminal Theme

4. Launch Terminal. Type in the following command:

pico .bashrc [PRESS ENTER]

OPTIONAL: If you’re on ZSH, type in the following command:

pico .zshrc [PRESS ENTER]

5. Copy the following command and paste them into your terminal screen.
# START COLOR #
export GREP_OPTIONS='--color=auto'
export CLICOLOR=1;
# END COLOR #

vibrant-ink-2

6. Press CTRL + X.

7. Press Y to save the file.

8. Voilà! You’re done! Close your terminal and your Terminal should look something like the screenshot above! I use Pragmata font in the screenshot above, so feel free to change the font to what you heart desire.

Standard
Apple

Setting Paste and Match Style as default

One of the most annoying things about Mail.app application in Leopard is its paste with formatting feature. Some might find this useful, but I ended up with emails that looked like this!

Sample Mail

That’s surely unprofessional by any standard.

There’s already a simple fix for this however. You can just press Command + Option + Shift + V. Try that. Seriously. Try and press all that 4 buttons together. I don’t think anyone would want to repeat that command stroke every single time.

In order to set “Paste and Match Sytle” as the default paste command, just complete the following instructions:

  1. Launch System Preferences.
  2. Select Keyboard & Mouse.
    System Preferences - Keyboard & Mouse
  3. Select the Keyboard Shortcuts tab. Scroll down and select All Applications.
    Keyboard Shortcuts Tab
  4. Click on the small + box at the bottom left of the window.
  5. Fill up the dialog with the following details:
    Application: All Applications (Or the name of the application)
    Menu Title: Paste and Match Style
    Keyboard Shortcut: ⌘V (Command + V)
    Paste and Match Style Dialog

There you have it. Perfectly formatted pasted information in your mail (or any other applications that comes with the feature) all the time.

Standard
General

Install CakePHP on ServerFreak

CakePHP-1.1-iPad01-light

To get CakePHP to work with ServerFreak or any other hosting (e.g. IPSERVERONE, 1&1, Godaddy) that serves from a user directory that already uses mod_rewrite, all you have to do is add RewriteBase statements to the .htaccess files that CakePHP uses:

  • /.htaccess
  • /app/.htaccess
  • /app/webroot/.htaccess

Here’s how they should look like after modification.

/.htaccess

<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</ifmodule>

/app/.htaccess

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ /webroot/ [L]
RewriteRule (.*) /webroot/$1 [L]
</IfModule>

/app/webroot/.htaccess


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
</IfModule>

Once you have completed all the steps above, you should have a working CakePHP installation!

Source: 3.3.4 Apache and mod_rewrite (and .htaccess)

Standard