Archive for the ‘Ruby’ Category

Posting with the Ruby HTTPClient

Friday, March 19th, 2010

We’ve arrived at the final piece of the puzzle when it comes to the latest WP MU mass posting addition to SEO tools.... Read More

File uploading in RoR

Monday, March 15th, 2010

Finally we’re getting to the uploading part. Handling uploads (at least not big ones) is no biggie in Ruby on Rails. No most of the code in the listing below has to do with inserting the data we’ve uploaded.... Read More

Foreign relations in RoR models and forms

Monday, March 15th, 2010

Update: Check out the HTTP Client article for more on how the below setup is later used to make life easier.... Read More

SEO Tools, my first Ruby on Rails application

Wednesday, April 29th, 2009

So for the last two days I’ve completed my first RoR application that is actually used by somebody, my SEO colleagues to be more precise, their first wish was a script that would make it much easier to submit links to link directories, that and an article spinner.... Read More

Parsing PHP gettext strings with Ruby

Monday, December 1st, 2008

I just had the need to fetch all gettext strings from a whole project. Sure poEdit can normally do this but this project is using Smarty and {t}something to translate{/t}, poEdit can’t do the Smarty stuff so we need something custom.... Read More

A noob and Ruby on Rails 2

Friday, November 14th, 2008

Update: I just had to install the whole stack again, now apart from the gems the following is needed:
1.) Mysql drivers/libs/dev files, beats me which ones, I just installed them all in synaptic.
2.) OpenSSL libs/dev files, installed them too via synaptic.... Read More

Scraping and Converting Data with Hpricot and JSON in Ruby

Sunday, November 9th, 2008

Did you ever wonder how Warren Buffet managed to get that rich? Pure luck my friend, the man was born with perfect timing, one year after the stock market crash of 1929, at the beginning of the great depression.... Read More

Converting Folder Tree using iconv with Ruby

Sunday, November 9th, 2008

I’ve just experienced one of the strangest problems ever. A PHP project was probably copied from a Swedish Windows machine to a Linux server, set to handle Swedish somehow. From the server it was then downloaded to a Mac that was probably running Swedish too, and from the Mac to my strictly English Windows installation running Wamp and XAMPP.... Read More

Scintilla event problem in new wxRuby - kinda solved

Friday, October 31st, 2008

The onStyleNeeded method in scintilla.rb used to look like this:... Read More

Managing escaping when indenting

Sunday, October 5th, 2008

Another bug fix, phew, they do stack up when you really start using an application for real.... Read More