RedStrong Red (default) BlueCalm Blue GreenFresh Green

Chose your color scheme.

Archive for 'Programming'

Rupy 2008

Posted on April 16, 2008, by admin, under Blog, Events, Programming.

I’ve finally managed to took some time to write my trip to Poznán (Poland) to speak at the Rupy 2008 conference.

Rupy

The conference took place at the Adam Mickiewicz University, Pozna? and according to the organizers “the idea behind the conference is to try to animate Central- and East-European Python and Ruby communities. By inviting experts we want to broaden our knowledge and understanding of presented concepts. The conference is meant to serve the exchange of ideas on the scientific ground”.

I was a bit nervous because it was the first time I was talking outside of Portugal but I guess it went well, there were questions and people seemed interested. I decided to aim my talk mainly at Ruby on Rails newcomers by presenting a series of Rails projects while focusing on a particular problem and presenting the solution in various steps. I’ll try to get the slides online soon.

I enjoyed the time I spent in Poland, I got to meet some genius people (which motivated me and gave me some new goals), some of the talks were very interesting, the conference was well planned and the organization was all very nice, fun and professional.

In the meantime you can find some photos in my Flickr account.

No Comments

RMagick on Mac OS X made simple

Posted on February 16, 2008, by psousa, under Blog, Programming.

Howdy, in a attempt to present more material in this site, I’ll be inviting some friends to talk a bit about technology, music, lifestyle, programming and some somewhat geek topics. Hope you enjoy. To start, here’s some info on RMagick (again) by Rui Leitão.

- Pedro Sousa

Recently I found myself needing to install the infamous RMagick extension on several computers, some were running on Mac OS X Tiger, others on Leopard. The thing about the RMagick installation is simply that it requires A LOT of other libraries. Well, to be honest, it just requires ImageMagick or GraphicsMagick. It’s these fellows here who pose the real problem.

Nevertheless, there is a simple way of pulling the trick. No MacPorts needed. The most it will take you is 1 hour of your time. So, here’s the deal.

I’m assuming that the typical user will have, by the time the need to install RMagick comes, Ruby, Rails and rubygems working properly. There’s just one more thing you’ll need have installed before proceeding: The XCode Tools. (You can install it directly from your OS X installation DVD or, alternatively, it’s available for download from the Apple Developer Connection. The installation process is pretty straightforward.)

After that, we’re all ready to roll.

This process is based on a script available here. This will deliver all the libraries needed into your system. It will also give you a nice output so that you know what’s going on at any given moment.

After downloading the file, unzip it (I advise you to put it in your home directory) and run it from your console with ruby rm_install.rb . The script takes about half an hour to execute. It will download all the required libraries, install them, and get RMagick running properly on your system.

Just one final note: it happens that the script may install all the dependencies and not install the gem we really want (RMagick, that is). Here’s the final output I got:

Summary: There were 1 failures

libpng was installed successfully
libjpeg was installed successfully
ghostscript was installed successfully
ghostscript-fonts-std was installed successfully
FreeType was installed successfully
libwmf was installed successfully
ImageMagick was installed successfully
RMagick was not installed successfully
Removing rm_install_tmp directory...Done

Honestly, I didn’t bother finding out why that happened. We can see it installs every RMagick dependency, but not RMagick. But the solution is simple: just punch in sudo gem install rmagick, type in your password as it prompts you, and you’ll be on your way.

You may want to check out the complete RMagick installation FAQ here.

No Comments

Installing RMagick on Leopard

Posted on January 14, 2008, by admin, under Apple, Blog, Programming.

After installing Leopard on my Mac I decided to install the annoying RMagick and it’s dependences because I use it quite alot in my web apps for resizing images, cropping and so on. (Leopard already came with Ruby installed, woohoo!)

Unfortunately it’s still a game of luck, pacience and preseverance. Luckily I followed the tutorial at onRails.org and managed to get things running after some time installing everything by hand from the source.

No Comments

« Older Entries   Recent Entries »