devblog.michaelgalero.com
michael galero » Open Source
http://devblog.michaelgalero.com/category/open-source
A developer ’s blog. Setting up your Ubuntu Server for Merb. On November 27, 2008. I prepared a documentation about this for a company and I thought I might as well post it here (modified a bit). I had to make sure the setup worked from scratch so I tested it using Sun’s VirtualBox. Merb DataMapper ( SQLite 3? Deploy the Merb App. This setup was tested on the Ubuntu Server OS Hardy Heron, the latest version with LTS as of writing. Go to the Ubuntu website. 2 Package Manager: apt-get. Now update the repos...
devblog.michaelgalero.com
michael galero » Blog Archive » Programming and My Other Passion
http://devblog.michaelgalero.com/2008/07/24/programming-and-my-other-passion
A developer ’s blog. Programming and My Other Passion 11. On July 24, 2008. I sometimes wanted to write an article about Go. Board game) in this development blog, but I could never justify it. But now that a couple of Ruby/Rails blogs posted articles this year. Relating programming to Go, I finally have an excuse. The first article is from the O’Reilly Ruby blog entitled “Ruby Conferences vs. Go Tournaments”. The other one is from the Rails Spikes blog, “Why programmers should play Go”. You are not alone...
devblog.michaelgalero.com
michael galero » Merb
http://devblog.michaelgalero.com/category/merb
A developer ’s blog. Setting up your Ubuntu Server for Merb. On November 27, 2008. I prepared a documentation about this for a company and I thought I might as well post it here (modified a bit). I had to make sure the setup worked from scratch so I tested it using Sun’s VirtualBox. Merb DataMapper ( SQLite 3? Deploy the Merb App. This setup was tested on the Ubuntu Server OS Hardy Heron, the latest version with LTS as of writing. Go to the Ubuntu website. 2 Package Manager: apt-get. Now update the repos...
devblog.michaelgalero.com
michael galero » Blog Archive » Setting up your Ubuntu Server for Merb
http://devblog.michaelgalero.com/2008/11/27/setting-up-your-ubuntu-server-for-merb
A developer ’s blog. Setting up your Ubuntu Server for Merb 493. On November 27, 2008. I prepared a documentation about this for a company and I thought I might as well post it here (modified a bit). I had to make sure the setup worked from scratch so I tested it using Sun’s VirtualBox. Merb DataMapper ( SQLite 3? Deploy the Merb App. This setup was tested on the Ubuntu Server OS Hardy Heron, the latest version with LTS as of writing. Go to the Ubuntu website. 2 Package Manager: apt-get. Now update the r...
devblog.michaelgalero.com
michael galero » Blog Archive » Guide to Rails Metal
http://devblog.michaelgalero.com/2009/02/03/guide-to-rails-metal
A developer ’s blog. Guide to Rails Metal 512. On February 03, 2009. Writing a Rails Metal app can make you realize just how spoiled we’ve become with all the convenience that comes with Rails. Without the controller and view helpers, it can become a painful experience. Here’s a guide to help make it a better experience. Class Refresher Rails: Rack: Metal # the methods in here are class methods class self def call(env) . end def method . end end end. Session = env['rack.session']. We can move all these c...
devblog.michaelgalero.com
michael galero » Blog Archive » Custom rake tasks in Merb: Data Backup and Import
http://devblog.michaelgalero.com/2008/11/03/custom-rake-tasks-in-merb-data-import
A developer ’s blog. Custom rake tasks in Merb: Data Backup and Import 411. On November 03, 2008. There are a lot of data import solutions in Rails. Most of which depend on ActiveRecord. Since Merb supports ActiveRecord too, you can use those solutions in your Merb app. But I’m using DataMapper in my Merb app, so I had to look for another way. A simple rake task. When I generated my Merb app, the lib folder wasn’t generated. It looked something like this:. Desc "Print all classes that include DataMapper:...
devblog.michaelgalero.com
michael galero » Blog Archive » Metaprogramming Talk
http://devblog.michaelgalero.com/2008/05/22/metaprogramming-talk
A developer ’s blog. On May 22, 2008. As I mentioned, my talk was largely based off of Dave Thomas’ “Metaprogramming” talk. In QCon London ‘06 and Patrick Farley’s “Ruby Internals” talk. In the MountainWest Ruby Conference (MWRubyConf) ‘08. Click on the links to see/download their presentations. There are other talks related to metaprogramming in MWRubyConf ‘08. Like those by Giles Bowkett, Jeremy McAnally, and Joe O’Brien. Or just go to the Confreaks site. To check other cool talks on Ruby. Minor note: ...
devblog.michaelgalero.com
michael galero » Blog Archive » Quick notes for setting up a secure remote Git repository
http://devblog.michaelgalero.com/2008/08/29/quick-notes-for-setting-up-a-secure-remote-git-repository
A developer ’s blog. Quick notes for setting up a secure remote Git repository 96. On August 29, 2008. Toolman Tim wrote a good article about setting up a remote Git repository. It didn’t include the part of creating a git user, so I’ve created my own notes below. His article does offer more explanation on the setup so be sure to check it out. Prepare the bare Git repo:. Ssh myserver.com $ mkdir /var/git $ mkdir /var/git/myapp.git $ cd /var/git/myapp.git $ git - bare init. Create your git user:. B a href...
devblog.michaelgalero.com
michael galero » Blog Archive » Ruby 1.9 Hash in Ruby 1.8
http://devblog.michaelgalero.com/2008/04/03/ruby-19-hash-in-ruby-18
A developer ’s blog. Ruby 1.9 Hash in Ruby 1.8 527. On April 03, 2008. I’m learning about Ruby 1.9 features but I realized I won’t be able to use it in any of my projects. So I thought of an exercise where I learn Ruby metaprogramming by trying to implement some of Ruby 1.9’s new functionality. Aside from learning metaprogramming and Ruby 1.9, I’d also end up with a library. That I can use in my Ruby 1.8 projects. But first, let me introduce…. We have an alternative hash syntax in Ruby 1.9:. Looking at t...
devblog.michaelgalero.com
michael galero » Blog Archive » Grails and Rails
http://devblog.michaelgalero.com/2008/02/12/grails-and-rails
A developer ’s blog. Grails and Rails 428. On February 12, 2008. I didn’t like the idea of checking out Grails. I mean if I’m already a Rails developer, why bother checking a copycat. That’s why I’m surprised I found things I liked about it. But will I leave Ruby on Rails for it? This article is about my first impressions of Grails after reading the book Getting Started with Grails. Sections of their online documentation. And some Grails-related articles. Grails ships with HSQLDB. One of the many little ...