Posts tagged Ruby
Install RVM, Passenger, Nginx and Rails 3 on Ubuntu Lucid Lynx
This has been a problem encountered by several developers including myself:
Getting RVM, Passenger and Rails3 to work
Here's a quick and short post. Supposing you already have updated Ubuntu and have Ruby installed.
Continue reading »Rails 3 Upgrade Resources
Many of us have several existing 2.x applications and would want to upgrade without pulling our hair because we can't figure out something or we are wary of consuming too much time. I'm about to post several links where you could find useful advice on upgrading Rails 3. Feel free to share other links if you know some.
Continue reading »Syntax Highlighting for Ruby
There are more than couple of ways to do syntax highlighting for Ruby code. Your geek blog doesn't look nice if the code cannot be read properly or cannot be copied easily. Gists work well. Most blogs now would probably just use gist.github.com especially if it's lengthly file or there are way to many stuff on it that you don't want to scare your visitors. By naming the file "syntax.rb" on gist.github.com for instance, it would know what code you are using and syntax highlighting will be based on the filename. See syntax.rb .
Continue reading »How to Get Amazon Data Using Ruby
This is post is inspired by several posts of Greg Moreno on RubyonCloud. Check out the site.
Install the Amazon ECS gem. If you're already using Amazon s3 gem, you don't need to create a new config/yaml file.
Continue reading »Command aliases for Subversion, Git and Rails
I got a Peepcode unlimited last year which came with a nice video about the command line. Check it out.
Not too many people will find this interesting. For me, it's something I just want to do for myself (and for those I'd work for if I'm still employed).
Continue reading »Sinatra Gems and Frameworks You Should Know About
The godfather of Sinatra. Those who like Rails will probably want to start with Padrino rather than just bare-bones Sinatra DSL. Check out the blog tutorial.
Continue reading »How to Install and Use Rails 3 Generators
This is why Rails3's philosophy is agnosticism:
You can override default template engine (erb) through config/application.rb. So if you use HAML, running scaffold generator will create HAML files for the views. If you use Rspec for testing as most Ruby developers do, you may also specify rspec as the default test framework.
Continue reading »Rails 3 on Ubuntu Karmic Koala (Fivebean)
This is one of my "Getting Things Right" posts, a.k.a, "How The Hell Do I Set Up My Rails Site on a VPS host." It’s almost always more difficult to get things right than get things done. I tried Slicehost and Linode before and I always ended up rebuilding because I couldn't get the right setup.
Continue reading »Why Are Spreadsheet Applications Still Better Than Personal Finance Applications?
I spent about 4 hours yesterday trying to get back to basic finance and tracking my own cash flows. It’s trite to do these kind of things but it’s necessary. I once handled book of accounts of our business and it was frustrating in several different ways. However it was simple - it was a spreadsheet that showed cash inflows and outflows and a record of all our inventory. I have reason to believe that spreadsheet applications (Excel or its open source alternatives) are better than using “simply inefficient” applications that never seem to meet your needs.
Continue reading »How to Install RVM and Rails 3 on Snow Leopard
This is a continuation of my post on installing Ruby version manager or multiple versions of Ruby for Unix. This time it's about OS X 10.6.1 or the Snow Leopard.
Snow Leopard includes Ruby and Rails by default if you install XCode. The version is 1.8.7 and 2.2.2 for each, respectively. This would not suffice for most developers because we need to start porting to Ruby 1.9 and start experimenting with Rails 3. The goal is to just keep moving forward and use the best version that exists.
Continue reading »Don't Make Rails A Beast
Ruby on Rails is a beautiful framework. And by that I mean, it is a framework which can help developers create applications with code that is not "obnoxious" or unnecessarily complex.
Ruby on Rails still relies on developers all over the world to make it better. Your application is a reflection of yourself. Although most of the time, your application is a reflection of your client and his/her specifications and your interpretation of those specifications.
Continue reading »How to use multiple versions of Ruby in Ubuntu, Leopard and other Unix Operating Systems using RVM
There are many ways on how to run multiple versions of Ruby on Unix. The most simple solution is by creating a shell script.
Michael Greenly wrote a script to do just that and it worked great for me for several months.
Continue reading »Installing Ruby Gems on Dreamhost
Before I move on to posting about installation instructions, some people might wonder why I am using Dreamhost.
Would I recommend Dreamhost for Rails hosting?
I wouldn't recommend it to people with budget and have little patience. You can go for Heroku, Slicehost and Linode. I've tried Linode and it's a very good option for advanced users, a.k.a, Unix nerds. Clients have used Slicehost and other VPS hosts. Point is, VPS rules. Dreamhost has it PS plans but if you are serious about business go for the so-called cloud services offered by Rackspace. (And just an F.Y.I, Rackspace also owns Slicehost).
Continue reading »Capistrano Task For Loading Production Data Into Your Development Database
Great Sunday. I just finished backing up data of two of my sites. This blog site of mine is using Sinatra DSL which is an alternative to Ruby on Rails framework. Another site of mine runs in Drupal 6. I was able to successfully local production database for both without using PHPMYADMIN. It's all done via command line. For me, it was a time-saver.
Continue reading »Viral Apps in Rails
I am not a computer science graduate but probably feel more confident than most due to my experience working for several people with different nationalities and personalities. In retrospect, I would have not chosen Computer Science as my major even if I knew that 6 years later, it would be my job to do web applications. I would have chosen either Commerce (which I did finish) or Psychology. Why Psychology? If you understand people and organizations, you win. And I think I see a lot of companies who are really good at making apps that attempt to understand people including the company that just hired me (Thank you very much to the project manager and CEO for considering me for the job).
Continue reading »Geographical Data For Your Ruby on Rails Application
Recently found some interesting gems that allow you to search postal codes via Geonames web service. In my case, I need more than just the country names, city names and region names. I need more relevant information like the currency code.
Continue reading »Using Ruby for System Administration
What is Sytem Administration?
System Administration is a specialization in the I.T industry. These are people who handle the "dirty stuff." Some call them janitors while some call them "gods." Regardless of these perceptions, I think they play a very important role in the industry. They are not doing low-level stuff for sure. They do not care about cross-browser compatibility or making that wretched star blink in flash but they handle things that could probably matter more than you could imagine like working with enterprise data, network monitoring and handling server security. Of course, in small consulting-type companies, they are not even sought.
Continue reading »Hello, Sinatra
Hello, Sinatra
My post earlier was about porting my blog to Adva CMS. It has a lot of really nice features that I don't need. I actually don't need translation feature for my blog. I don't even need Wordpress. And not even Rails for my purpose. I am venturing into Ruby development, not Rails development. After some digging on Github, I came across "Scanty," a very simple blog application that's nearly nothing. It's up to the developer to extend, hack and modify everything as needed. It was built on Sinatra Framework, yet a another framework for building Ruby apps. Sinatra does not have too many built-in helpers that come with Rails but it does have everything you need to build a web application. The RSpec framework (for Behaviour-driven development) for instance can still be used with Sinatra. RSpec is framework-agnostic and there are several ruby gems out there that are not Rails-centric.
Continue reading »Adva CMS - A new state-of-the-art CMS
Hello. Finally got to blog but I'm still porting some of my old Drupal posts to Adva CMS. And I've got to say I am a recovered Drupal addict.
Comparing Drupal with Adva CMS seems to be more appropriate than comparing the Ruby on Rails framework with Drupal. Today I got a facebook message: "how well-versed are you with Drupal?"
Continue reading »Thoughts and tips on using CSS Frameworks
I used to know how to design well. Until I realized I've been too confined with my own self-discovered processes. Here are my thoughts and tips on using of CSS Frameworks and tools like Compass, Blueprint CSS, 960 GS and many others:
Continue reading »