Making TextMate recognize .html.erb files
I’m using TextMate to edit some Ruby on Rails code. I noticed that when I edit the view pages (i.e. index.html.erb) it does not do syntax highlighting. It turns out this is because the Ruby on Rails TextMate bundle thinks that ruby view pages are .rhtml, which is the old Ruby on Rails format. You [...]
Adding an alias to the Tcsh Shell
If you run a command frequently, you can create what is called an alias. The alias is usually a shorter form of the original command. To make these aliases permament, you should edit .tcshrc in your home directory. Add a line of text of the format “alias YYY ‘ZZZ’” where YYY is the command you [...]
Adding an alias to the Bash Shell
If you run a command frequently, you can create what is called an alias. The alias is usually a shorter form of the original command. To make these aliases permament, you should edit .bashrc in your home directory. Add a line of text of the format “alias YYY=’ZZZ’” where YYY is the command you want [...]
Adding an alias to the Tcsh Shell
If you run a command frequently, you can create what is called an alias. The alias is usually a shorter form of the original command. To make these aliases permament, you should edit .tcshrc in your home directory. Add a line of text of the format “alias YYY ‘ZZZ’” where YYY is the command you [...]
Free Online Books
A co-worker pointed me to a bunch of free online books. Looks pretty cool, I’ll have to check a couple of them out.
Google Chrome first experience
I just installed Google Chrome, a new web browser by Google. Below is my first experience:
Allow rails users to login via vsftpd
So you’ve installed Ruby on Rails with Postgres, and now you want to allow your users to login to your server via FTP. First we need to install our FTP server. (In the config window, I left the defaults) Edit the vsftpd conf file. Create the vsftpd startup script. We also need to install the [...]
Installing Ruby on Rails in FreeBSD with Postgres
After setting up a minimal FreeBSD install, I want to get Ruby on Rails up and running. Let’s see what’s available in the ports tree. The ruby-gems port looks promising. Let’s install it. The install requires ruby to be installed, so it installs that for us (if it’s not currently installed). I enabled RDOC and [...]
Updating the ports tree in FreeBSD
After setting up a minimal FreeBSD install, I want to update the ports tree to the latest available. FreeBSD provides a program to do this. It’s called cvsup (cvs update). To find the program, I search the ports tree. I want the cvsup without the gui, so I change into that directory and install it. [...]
Setting up a FreeBSD VM with Parallels under OS X Leopard
To read this post with screen shots, use one of the following links: HTML PDF PDF Zip My goal is to have a FreeBSD 7.0 based virtual machine running under Parallels on my OS X 10.5 Leopard iMac. Open Parallels and select File -> New As my server is just for local development, I didn’t [...]