Friday, April 19, 2013

Install rmagick gem on latest imagemagick. (Problem on Mountain Lion 10.8)

I had earlier a Mac Air at hand and install my Ruby environment for web application development. I came across a problem whereby I need install the gems required to run my apps. And one of those gem that I need is RMajick, which I need to work with images in my RoR or Sinatra applications.

The issue was:  RMagick won't compile with ImageMagick formula version 6.8.0-10

I found an article that fix my problem about RMajick not compiling with ImageMagick formula version 6.8.0-10  and its here =>  https://coderwall.com/p/wnomjg


Basically just follow the link below

$ cd /usr/local/Cellar/imagemagick/6.8.0-10/lib
$ ln -s libMagick++-Q16.7.dylib libMagick++.dylib
$ ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
$ ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib

After overwriting libMagick files you can now 

brew install --fresh libtool
brew link libtool

Additionally you may switch from RMajick to MiniMajick because RMajick is quite sometime outdated and Homebrew the missing package manager for OS X isn't compiling the later formula.

Wednesday, April 17, 2013

Responsive Design with CSS3 Media Queries c",)

Recently browsing the web and looking for quick grasp of what Responsive Design technology in trend nowadays. Then I found this link http://webdesignerwall.com/tutorials/responsive-design-with-css3-media-queries which able me to read from time to bottom without a stop. I was amaze on some techniques which I may find it useful for my next projects.

 ciao!
Andre

Monday, April 8, 2013

Upgrade ruby 1.9.2 to ruby 2.0 using Mac OSX Snow Leopard

It takes me awhile to find the fix of this upgrade coz it didn't load the exact patch upgrad so I run the command. (https://github.com/wayneeseguin/rvm/issues/1671)

rvm install 2.0.0 --autolibs=4