MojoMagick: Ruby Image Library (for ImageMagick) 4

Posted by science on January 30, 2008

Magick!

Science releases MojoMagick, an Ruby language image library “that does very little” ™. There are several useful image tools that “do a lot” - MojoMagick is designed to just a few things: Continue reading…

Passing Multiple Arguments in Ruby: “*” is your friend

Posted by science on January 30, 2008

Arguments

Passing multiple arguments in Ruby is easy. You can pass any number of arguments, and even vary the class/types according to context. You can even vary the number of arguments passed. The receiver has to deal with this somehow, but even that’s pretty easy to manage. It’s a little trickier if the receiver has to delegate an unknown number of arguments to another receiver, but the * does the job for you - a great example of Ruby syntax that works for you. What follows is some simple example code to illustrate the idea. Continue reading…

On magnifying glasses, microscopes and the act of looking.

Posted by science on January 27, 2008

map-of-universe-spaceshots-posters.jpg

A larger world exists, but we have never looked at it. We are too concerned with our microscopes or our magnifying glasses. We try to make things large by using magnifying glasses—but we have never looked at outer space with our naked eyes. If we looked into it, we could find it—but we don’t have to use our binoculars and telescopes. We don’t need them, they are false pretenses. We don’t need any means to do this; we could just simply look at it, whatever it is, and enjoy it. An immensely larger version of thinking and of celebration is taking place. That seems to be the very important point.

- Chögyam Trungpa Rinpoche