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. [text] 11:32:07 /Users/jasonn $ vi ~/.tcshrc [/text] Add a line of text of the format “alias YYY […]
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. [text] 11:32:07 /Users/jasonn $ vi ~/.bashrc [/text] Add a line of text of the format “alias YYY=’ZZZ’” […]
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. [text] 11:32:07 /Users/jasonn $ vi ~/.tcshrc [/text] Add a line of text of the format “alias YYY […]
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) [text] freebsd-vm# cd /usr/ports/ftp/vsftpd freebsd-vm# make install cd /usr/ports/ftp/vsftpd && make config; […] ports included in […]
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. [text] freebsd-vm# make search key=gem | grep Path: | grep ruby Path: /usr/ports/audio/rubygem-mp3info Path: /usr/ports/benchmarks/rubygem-railsbench Path: /usr/ports/databases/ruby-dbd_pg Path: /usr/ports/databases/ruby-rdbc1 Path: /usr/ports/databases/rubygem-activerecord […] Path: /usr/ports/devel/ruby-gemfinder Path: /usr/ports/devel/ruby-gems Path: /usr/ports/devel/rubygem-activesupport […] Path: […]
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. [text] freebsd# cd /usr/ports freebsd# make search key=cvsup | grep Path: Path: /usr/ports/chinese/auto-tw-l10n Path: /usr/ports/lang/ezm3 Path: […]
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 […]