I have a love for many things, from monster trucks, to symphonies, and due to my wide variety of activities, I find it difficult to keep tabs on everything that I would like to do, hence…a data based activity planner. What exactly is that, you might ask? Well all activities have conditions that make them better or worse, the most obvious is the weather…you probably wouldn’t go swimming in the Atlantic in Canada in January. But…
"Idea: Data Based Activity Planner"Author: Hashim
Today I got a little bored with my standard rails buttons Not bad…but could use a little pizazz. So I decided to take a crack at jQuery UI. A great javascript and style framework that promised to be easy to use and provides theme-able styles. Once you’ve got jQuery UI integrated nicely into your rails project (note i had to change my url paths in the stylesheet), you can style your submit button easily by…
"Custom jQuery UI Form Rails Button Helper"Just found out today that you can attach a javascript variable to the window effectively making it a variable global to the window. You can define it like this: window.myboolean = false ; And then you can access the same variable anywhere in your window. Pretty Cool Huh? The reason I needed a global variable in the first place was due to some neat javascript hackery. In some of my tables, I have made an entire row…
"Add Global Javascript Variables to Window"The easiest way to install RMagick is to download the script from: http://onrails.org/2009/09/04/rmagick-from-source-on-snow-leopard.html and to execute it by entering into terminal sudo sh rmagick-build.sh If you get errors related to “jpeg” or “jpg” then make sure you don’t have the macports library installed: sudo port uninstall jpeg Then run this install script for only installing image magick and all of its dependencies: http://github.com/masterkain/ImageMagick-sl After that install RMagick, and you should be good to go sudo…
"Install RMagick and MySQL with Snow Leopard"So, you’ve go ruby on rails up and running, and now you’ve installed Rmagick, and you want to manipulate some images. Grab an image, throw it in your public folder, lets call it myimage.jpg. Run script/server to start your server, and in a controller somewhere put this: require ‘RMagick’ def show image = Magick::ImageList.new(”public/images/myimage.jpg”) image = image.rotate(90) image.write(”public/images/myimage.jpg”) end then in your show.html.erb you can show your picture: < img src = “/images/myimage.jpg” /> Every…
"Crazy Easy Intro to RMagick – Ruby on Rails Image Manipulation"




