Recent Posts

September 2009

(Nerd) Ubuntu + Vim + ZendFramework-1.9.2 + .pthml syntax highlighting

1) From the command line ‘cd’ to your ‘home’ directory

test-box@jbuntu:~$ cd

2a) Check to see if the .vimrc file exists

test-box@jbuntu:~$ ls .vimrc

If the terminal outputs nothing, then that means the file does not exist.

2b) If you get the following

test-box@jbuntu:~$ ls .vimrc

It means that the file does exist and we just need to edit it.

3) If the file does not exist just ‘touch’ the file. If it DOES exist, just skip this step.

test-box@jbuntu:~$ touch .vimrc

4) From this point, ‘vi’ the ‘.vimrc’ file. You primarily need the following lines and you are more than welcome to copy/paste. Write/Quite when finished.

if has("autocmd")
autocmd BufEnter *.phtml set syn=php
syn on

Now the next time you open VI it should have the desired highlighting for .phtml files found in the Zend Framework.

Below is my ‘.vimrc’ file in it’s entirety. Just for the record. It also allows for syntax highlighting to occur in CakePHP .ctp files along with some other settings that I prefer.

set tabstop=2
set shiftwidth=2
set expandtab
if has("autocmd")
autocmd BufEnter *.ctp set syn=php
autocmd BufEnter *.phtml set syn=php
syn on
set ai

(Nerd) Upgrading eeePC 1005ha Firmware

So I am trying to hack my eeePC in order to make it do…er…stuff. And in the process I realized my firmware was running a little behind. And do you know what happened when I tried to upgrade it? I got an error.

'1005ha.rom' Not Found

And so I took the following steps to fix it.

  1. Renamed my ROM file from 1005HA-ASUS-0703.ROM to 1005HA.ROM
  2. Formatted a thumb drive to FAT32
  3. Copied over the .ROM file into the root directory of the thumb drive
  4. Reboot
  5. Pressed F2 to get into BIOS
  6. Change the boot device priority to make the USB drive the Primary
  7. Went into boot settings and DISABLED ‘quiet boot’ (so that we could see POST info)
  8. DISABLE ‘Boot Booster’
  9. pressed the F10 key and saved my BIOS settings
  10. During POST I pressed Alt+F2


It found my renamed .ROM ‘1005ha.rom’ and Viola! All set.

(Nerd) Logitec MX Mouse & Snow Leopard 10.6 functionality

For hard core geeks out there, nothing is more important than peripherals. Having a solid setup makes life a lot easier when your livelihood is working on the computer day in and day out.

Keyboard = link

Mouse = link

Recently we have been testing the new and (Not Really) improved Mac operating system. I use my mouse to bounce in between virtual desktops by assigning several of my mouse buttons to the applications ‘’ and ‘’. After upgrading to 10.6 (Snow Leopard) those features ended up broken. The reason is that Snow Leopard moved the applications ‘’ and ‘’ into the ‘Utilities’ directory. The good news is that the fix is simple, all you have to to is create a couple of Symbolic links.

This is assuming you have the Logitech software installed for the mac.

1) Open the application ‘Terminal’

2) From the command line, run the following commands. You may be prompted for your password.

sudo ln -s /Applications/Utilities/ /Applications/

sudo ln -s /Applications/Utilities/ /Applications/

And that should do it!

You may need to reassign your mouse buttons again in;
‘System Preferences’->’Logitech Control Center’