Category Archives: Programming
rQuote – Ruby on Rails Stock Quote Plugin
I merged some stock quoting stuff I had into a Rails plugin today. If you’d like to be able to simply grab real time stock quotes in your Rails app, this will do the job. Pretty much any stock symbol will work and you can enter as many as you’d like, you’ll get [...]
Also posted in Geeky, Linux, Ruby, Ruby On Rails, stocks 6 Comments
rDigg – Ruby on Rails Digg API plugin
I’ve sort of finished up rDigg today. It’s to the point I’m comfortable letting other people start to play with it anyways.
As you’d expect, rDigg is a Digg API wrapper in the form of a Ruby on Rails plugin. It still needs some work, but works pretty well.
For example:
#create new Rdigg object
digg [...]
Super Simple Ruby Web Scraper
Alrighty folks. Quick walk though for scraping remote web data with Ruby. This is how I did it for my little web scraper I wrote on Saturday..
DISCLAIMER: Web Scraping is kind of a gray area.. don’t steal things that are copywritten and don’t be a jerk. Give credit where credit is due..
First [...]
Also posted in Ruby On Rails Tagged How to, mechanize, open uri, Ruby, Ruby On Rails, sweefner.com, web scraper Leave a comment
Slicehost problems with Gem *FIXED*
Today I set up 470.johnyerhot.com and set up a Rails app I worked on to run there, but I needed to install the Pdf-writer Gem for proper functionality. Low and behold when I tried
sudo gem install pdf-writer
I was greeted with nothing, just
Updating Gem source index for: http://gems.rubyforge.org
and that was it. After searching and [...]
Also posted in Ruby On Rails, Slicehost Tagged gem, problems, Ruby On Rails, Slicehost Leave a comment
Weekly Roundup
Heres the week in review:
-Linux Mint home networking is now done and working beautifully. Had some trouble getting the onboard Via Chrome9 Video working correctly, but I followed the instructions here(compiling it from source) and everything was great. I wanted to use the OpenChrome driver instead of the VESA driver because the OpenChrome [...]
Also posted in Geeky, Linux, Royner, Ruby On Rails Tagged apache, deprec, Linux Mint, nginx, openchrome, Royner, xvmc Leave a comment
Rake Leaves
Yeah, I came up with this little Rails rake task called ‘rake leaves’. It will just create a text file that has all your tables, column names, and their data types. I’ve always thought it would be handy to have this so you don’t need to switch to MySQL and spend the time [...]
Also posted in Rake Leaves, Ruby On Rails 1 Comment
Rails: Using Helpers in Your Controller.
This morning there was a guy in the rails IRC room asking about using helpers in his controller and I recently wrote an app that used the great pdf-writer gem to generate some pdfs and used helpers in the controller for formatting in the pdf. If you are going to generate very complicated pdfs, [...]
Deployment Nightmare: Godaddy