<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5" -->
<rss version="0.92">
<channel>
	<title>myGrid developer blog</title>
	<link>http://www.mygrid.org.uk/dev/blog</link>
	<description>The developers of myGrid tell of their quest of the code</description>
	<lastBuildDate>Fri, 16 Dec 2011 12:37:24 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Ruby on Rails and IIS on Windows 7</title>
		<description>Here are the steps I needed to install ruby 1.8, rails 2.3, sqlserver to run our https://github.com/myGrid/methodbox codebase on a Windows 7 platform and run  it all under IIS. It should also work for any rails 2 or 3 project.  If you use rmagick or libxml-ruby then pay attention ...</description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=41</link>
			</item>
	<item>
		<title>Ruby, Windows and RMagick</title>
		<description>Been doing a lot of rails work on windows recently and ran into some issues that needed solved.  Just like on Unix, to get the RMagick gem working on a windows platform you need to install ImageMagick.  Go to http://www.imagemagick.org/script/binary-releases.php?ImageMagick=uteqfietdab37ghqrvfuvoul55#windows and download http://www.imagemagick.org/download/binaries/ImageMagick-6.7.3-7-Q16-windows-dll.exe

Double click and go through the installer, selecting ...</description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=40</link>
			</item>
	<item>
		<title>Sun/Oracle Java on Ubuntu</title>
		<description>Ubuntu Lucid Lynx (10.04) does not have the sun java repositories available by default.  You need to add them like this:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Then update the packages available:

sudo apt-get update

Then you can install Sun's (Oracles?) Java

sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin </description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=39</link>
			</item>
	<item>
		<title>Bundler, OSX and the MysqlCompat::MysqlRes error</title>
		<description>If you get the uninitialized constant MysqlCompat::MysqlRes error when trying to run your Rails app all the evidence points to it being a 32 v 64 bit issue.  However, I had built mysql for the x86_64 architecture and the mysql gem installed was also for 64 bits.  So why was ...</description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=38</link>
			</item>
	<item>
		<title>Tab navigation and tooltips</title>
		<description>We use the tabifier javascript from barelyFitz in a few places in MethodBox.  However, I wanted it to have a different, more descriptive tooltip than the tab title.  The default code doesn't seem to do this so I added a couple of little changes to make this happen.

You can see ...</description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=37</link>
			</item>
	<item>
		<title>Looping over javascript arrays with Prototype framework</title>
		<description>Had an array in javascript and tried to loop over it using
for (x in array){

...some code

}
I was confused why it seemed to have lots more members than I had put in with contents that seemed to be functions.  So I used console.log and firebug to print out the array members ...</description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=36</link>
			</item>
	<item>
		<title>RServe on OSX Snow Leopard</title>
		<description>I always seem to have some difficulty getting the Rserve component of the R stats library up and running on OSX.  Installing it via install.packages("rserve") from within R  appears to work but when running R CMD Rserve I usually get some sort of error like:

/Library/Frameworks/R.framework/Resources/bin/Rcmd: line 62: exec: Rserve: not ...</description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=34</link>
			</item>
	<item>
		<title>Obscure mysql bug number 1153 (08S01) (my packet&#8217;s too big)</title>
		<description>Ok, here's one you don't see every day.

Importing a mysql dumpfile results in "ERROR 1153 (08S01) at line 265: Got a packet bigger than 'max_allowed_packet' bytes"

Errm.

Log in to a mysql console,

enter the magic commands:

set global net_buffer_length=1000000;

set global max_allowed_packet=1000000000;

Modify your import to include the command:

--max_allowed_packet=100M

so you have something like

mysql --max_allowed_packet=100M -u ...</description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=33</link>
			</item>
	<item>
		<title>Taming the Savage Beast (Forums)</title>
		<description>We needed a forum for one of our web projects written in rails and a quick google revealed Savage Beast.  It seemed to fit the bill although needed some css tweeks to co-exist with what we currently have.  However, when clicking on its RSS feed icon it threw an ActionController::Request.relative_url_root ...</description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=32</link>
			</item>
	<item>
		<title>&#8216;Nicer&#8217; URLs for Rails</title>
		<description>URLs pointing to resources in a Rails app tend to look like www.somesite.com/people/1

Add this to your model:

def to_param
"#{id}-#{title.downcase.gsub(/[^[:alnum:]]/,'-')}".gsub(/-{2,}/,'-')
end

Where title is whatever you want to appear after the id and you will get URLs like

www.somesite.com/people/1-Ian

More info from here </description>
		<link>http://www.mygrid.org.uk/dev/blog/?p=31</link>
			</item>
</channel>
</rss>

