simple – PullMonkey Blog http://pullmonkey.com Wed, 09 Nov 2011 21:35:32 +0000 en-US hourly 1 https://wordpress.org/?v=5.6 Using ruby to consolidate a list of numbers by shortening with hyphens http://pullmonkey.com/2011/11/09/using-ruby-to-consolidate-a-list-of-numbers-by-shortening-with-hyphens/ Wed, 09 Nov 2011 21:34:09 +0000 http://pullmonkey.com/?p=57619 Check it out -

]]>
VIN API – ignore checksum validation http://pullmonkey.com/2011/10/28/vin-api-ignore-checksum-validation/ Fri, 28 Oct 2011 15:55:35 +0000 http://pullmonkey.com/?p=57615 It's been mentioned a few times that there should be a way to skip the checksum validation. This means if the check digit calculation generally fails, VIN API will continue to process the VIN to see if there is a "like" VIN match. So here it is:

]]>
2D Vector Graphics in Ruby / Rails http://pullmonkey.com/2010/11/19/2d-vector-graphics-in-ruby-rails/ Fri, 19 Nov 2010 21:42:27 +0000 http://pullmonkey.com/?p=57544 I've been working with Cairo the last day or two to build a sign generator.   I chose Cairo because it seemed like a good fit for building a sign that had to be loss-less in detail and scalable, this rang vector graphics.   I found a few good examples here and there, but they were very few and the documentation was not exactly ruby-friendly.

So I'm going to do a few posts about what I learned and I am going to start with the very basics, since all I could find were completed and elaborate images, way too complicated for a beginner.

Let's start with rotating a square box by 45 degrees.  Very simple.

rotated_square

That's it, pretty simple, right?

]]>
simpleCMS on github http://pullmonkey.com/2008/07/24/simplecms-on-github/ http://pullmonkey.com/2008/07/24/simplecms-on-github/#comments Thu, 24 Jul 2008 16:19:00 +0000 /2008/07/24/simplecms-on-github Moved simpleCMS over to github.

There were quite a few changes that were required to get it working with rails 2.1, so they are in the repository now.
So to install, you pretty much follow the same instructions from before.

The only thing I have not completely resolved is the use of the simple_cms_item partial that sits in the plugin's app/views/shared directory. I tried forever to use append_view_path to share the partial over. That worked, as in it found the partial, but the application layout went away, so instead, you can just copy the partial to your RAILS_ROOT/app/views/shared directory for now.

Additionally, you can install it through github: script/plugin install git://github.com/pullmonkey/simple_cms.git
And of course, a lot of you have asked how to just plain download it, well you can do that here, find the download button and click 🙂

Let me know how it goes.

]]>
http://pullmonkey.com/2008/07/24/simplecms-on-github/feed/ 3