Archive for December, 2007

1 Year of Ruby on Rails Programming

Friday, December 21st, 2007

Over the past year I have made the change to Ruby on Rails as my programming language and framework of choice. The reason is simple, Ruby on Rails manages enough of the tedious tasks faced by most developers fairly easy. With that said it is also safe to say it makes me more productive, and increases the quality of my work. The pros outweigh the cons by far. I would encourage anyone programming in PHP, ASP/ASP .NET, C+, C++, JAVA, or even Cold Fusion to give Ruby on Rails a shot. Most likely you will hit the Rails and never look back, yeah it’s that great. It has now been one year since I originally Installed Ruby, Installed Rails and dug deep into the code. While I am still learning a great deal about some of Ruby’s more advanced functionality I have mastered for the most part the entire framework from unit testing to model associations. If you are just getting started in Ruby I would be glad to answer some of your questions, simply send me an email or comment on this post below.

Best regards,

Tim Matheson

SSH Copy files from one server to another using rsync clie tool

Wednesday, December 12th, 2007

Ok so you have a file and want to move it to another server on another network. What to do what to do. Well you could just FTP it to your local machine then FTP it up to the new server, but this file is 300mb and that would take a long time. Being the lazy programmer you are you may seek another more ‘geek friendly’ way of doing this. There is a tool called rsync that does just that. It will login to one server, shake hands and then begin transferring your data to the specified new directory. I tested this on BlueHost and no dice. Authentication failed however I am sure if you have time to try and configure the two machines to talk you could do it. This would be great if you had root access to both machines. In my case I only have root to the destination server and not the source server. BlueHost technical support said that the port rsync uses is blocked. Im not sure what that port is but if you found out you could configure rsync as a daemon service and bind it to that port. I will be looking into this in the future and posting more about it in a follow up post.

Happy tunneling.

rsync -av -e ssh username@oldserverhost:/home/old_home/ /home/new_home/

This command was gracefully copied from [Tony Spencer's Website] it’s a great website I highly recomend it if you like my site (even has the same ndesign Word Press theme as my blog).

New Ruby on Rails site

Thursday, December 6th, 2007

I recently deployed a few Ruby on Rails sites to a production server. If anyone wants to check one of them out they can visit Barksnbubbles.com Dog Food, Dog Toys, and Pet Supplies online retailer. If you have any suggestions for the site please let me know.

Best regards,

Tim Matheson