<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CloudMade &#187; tips</title>
	<atom:link href="http://blog.cloudmade.com/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cloudmade.com</link>
	<description>The CloudMade Blog</description>
	<lastBuildDate>Tue, 20 Dec 2011 12:03:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CloudMade releases Style Editor 1.1</title>
		<link>http://blog.cloudmade.com/2009/07/16/cloudmade-releases-style-editor-11/</link>
		<comments>http://blog.cloudmade.com/2009/07/16/cloudmade-releases-style-editor-11/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 14:05:22 +0000</pubDate>
		<dc:creator>Cragg</dc:creator>
				<category><![CDATA[cartography]]></category>
		<category><![CDATA[cloudmade]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[openstreetmap]]></category>
		<category><![CDATA[style editor]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.cloudmade.com/?p=280</guid>
		<description><![CDATA[Great news for Style Editor users: we&#8217;ve launched an updated version of Style Editor (v1.1) that makes discovering, sharing and creating new map styles even easier!
Style Editor is CloudMade&#8217;s online cartography tool for creating customized map styles.  Application developers can use Style Editor to quickly create their own map styles that give applications a unique [...]]]></description>
			<content:encoded><![CDATA[<p>Great news for <a title="Style Editor" href="http://maps.cloudmade.com/editor#" target="_self">Style Editor</a> users: we&#8217;ve launched an updated version of Style Editor (v1.1) that makes discovering, sharing and creating new map styles even easier!</p>
<p>Style Editor is <a title="CloudMade" href="http://www.cloudmade.com" target="_self">CloudMade</a>&#8217;s online cartography tool for creating customized map styles.  Application developers can use Style Editor to quickly create their own map styles that give applications a unique look &amp; feel.  Style Editor gives you complete control over which objects are displayed on the map, and how they will appear on your map at each zoom level.  Developers use CloudMade&#8217;s Style Editor to design customized maps built for a particular use.   For example, if you were building a cycling application that helps users get from point A to point B by bicycle, you&#8217;d want to highlight the cycle paths and roads better suited for cyclists while de-emphasising main roads and motorways.</p>
<div id="attachment_282" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.cloudmade.com/wp-content/uploads/2009/07/style-gallery.png"><img class="size-medium wp-image-282" src="http://blog.cloudmade.com/wp-content/uploads/2009/07/style-gallery-300x143.png" alt="Style Editor now has a style gallery for discovering new map styles" width="300" height="143" /></a><p class="wp-caption-text">Style Editor now has a style gallery for discovering new map styles</p></div>
<p>The most important improvements in Style Editor 1.1 is the addition of the style gallery.  Style gallery will allow you to quickly discover public map styles created by CloudMade and our community.  Style Editor also allows for private styles available only to the author, which you can view by pressing the My Styles tab on the Style Editor toolbar.  By default the map styles are sorted by popularity.  You may also chose to look for CloudMade styles which were created by professional cartographers including some by <a title="Stamen Design" href="http://stamen.com/" target="_self">Stamen Design</a> by clicking on the CloudMade tab.  Or you can browse the featured styles (Featured tab) which showcase a mix of CloudMade and community styles that our cartographers deem fantanstic!</p>
<div id="attachment_285" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.cloudmade.com/wp-content/uploads/2009/07/toolbar.png"><img class="size-medium wp-image-285" src="http://blog.cloudmade.com/wp-content/uploads/2009/07/toolbar-300x16.png" alt="The Style Editor tool bar allows for quick discovery of public maps styles for editing or direct use" width="300" height="16" /></a><p class="wp-caption-text">The Style Editor tool bar allows for quick discovery of public maps styles for editing or direct use</p></div>
<p>Another cool new feature in style gallery is the ability to sort map styles based on color.  To the top of the Style Editor toolbar is a Color Filter control.  This control will filter map styles in the gallery based on where you drag the Color Filter bar.  The default setting on the far left shows all colors.  By dragging the Color Bar towards the right, you can select only the map styles with a particular shade of yellow, for example.  In this way you can find map styles that suit the look and feel of your website or application.  Don&#8217;t forget to reset the Color Bar back to the far left when your done so that you can see all the styles again.</p>
<p>Each map style in the style gallery shows the style name, author and style ID.  The style ID comes in handy when coding with <a title="Developer Zone" href="http://developer.cloudmade.com" target="_self">CloudMade&#8217;s API libraries</a>.  You can quickly change the Style ID and see a completely different map in your app!  The search bar in the far right of the tool bar allows for style searches based on style name, author or style ID.</p>
<p>The last new feature we wanted to talk about is the Style RSS feed.  You can now subscribe to all new style updates via RSS.  This is a super easy way to get all the latest updates to Style Gallery via RSS.  You can subscribe <a title="Style Editor new style feed (RSS)" href="http://maps.cloudmade.com/editor/feed" target="_self">here</a>.</p>
<dl>
<dt> Style Editor is open to the public and available to use as a free service <a title="Style Editor" href="http://maps.cloudmade.com/editor#" target="_self">here</a>.   So go ahead and start creating your own new map styles and publish them to Style Gallery so the world can see and use them! </dt>
</dl>
<p>Style Editor Team @CloudMade</p>
<p style="text-align: center;">
<div id="attachment_290" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.cloudmade.com/wp-content/uploads/2009/07/deepblue-middle-east.png"><img class="size-medium wp-image-290" src="http://blog.cloudmade.com/wp-content/uploads/2009/07/deepblue-middle-east-300x156.png" alt="Creating new map styles is simple with CloudMade's Style Editor" width="300" height="156" /></a><p class="wp-caption-text">Creating new map styles is simple with CloudMade&#39;s Style Editor</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmade.com/2009/07/16/cloudmade-releases-style-editor-11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get through the first stage of the job interview process</title>
		<link>http://blog.cloudmade.com/2009/04/04/how-to-get-through-the-first-stage-of-the-job-interview-process/</link>
		<comments>http://blog.cloudmade.com/2009/04/04/how-to-get-through-the-first-stage-of-the-job-interview-process/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 20:18:34 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[cloudmade]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.cloudmade.com/?p=213</guid>
		<description><![CDATA[CloudMade is hiring.  We&#8217;re looking for Community Ambassadors, Product Managers and a Senior Director of Developer Outreach to join our growing team.  The current job market favours employers &#8211; there are a lot of highly qualified people looking for work.  So how can you make sure that your CV gets in front [...]]]></description>
			<content:encoded><![CDATA[<p>CloudMade is hiring.  We&#8217;re looking for <a href='http://cloudmade.com/careers/community-ambassador'>Community Ambassadors</a>, <a href='http://cloudmade.com/careers/product_manager'>Product Managers</a> and a <a href='http://www.linkedin.com/jobs?viewJob=&#038;jobId=655426'>Senior Director of Developer Outreach</a> to join our growing team.  The current job market favours employers &#8211; there are a lot of highly qualified people looking for work.  So how can you make sure that your CV gets in front of the right person and you get your dream job?  Here are five tips that will help you get through the first stage of an interview process and get a first interview at your future employer.</p>
<p><strong>Professional</strong></p>
<p>Around 10% of the CVs and applications I receive have spelling, grammar or formatting errors in them.  No matter what role you are applying for, obvious errors like this are un-professional.  The problem is not that you can&#8217;t spell.  It&#8217;s that you have not taken the time or been resourceful enough to make sure that your work is produced to a professional standard.  I consider a candidate&#8217;s CV to be their first assignment.  If they don&#8217;t deliver a professional CV, they aren&#8217;t going to deliver professional work as an employee.  Ask your friends and family to read over your CV and covering letter for you &#8211; a fresh set of eyes often spots unseen errors.  </p>
<p> <strong>Pre-Emptive</strong></p>
<p>Make the hiring manager&#8217;s life easy for them.  If the job notice asks for CV as a PDF, send a PDF.  Give your CV a sensible file name, like joe_blogs_cloudmade_cv.pdf and not jb_cm_cv.pdf.  As an employee you wouldn&#8217;t want to make your manager&#8217;s life difficult, so don&#8217;t do it as a candidate.</p>
<p> <strong>Personal</strong></p>
<p>Address the hiring manager and the company personally.  &#8220;Dear Sir or Madam&#8221; is just lazy.  Find out who the hiring manager is.  If the job notice does not have this information, call the hiring manager&#8217;s PA or the company secretary and find out.  Make contact with the hiring manager on LinkedIn and follow them on Twitter.   </p>
<p> <strong>Personalize</strong></p>
<p>Find out what the company you are applying to does and what they want from the position.  If you are applying for a position as a Developer Evangelist and your cover letter and CV do not mention developer evangelism activities you are not going to get through the first round.</p>
<p> <strong>Persistent</strong></p>
<p>If you really, really believe you are right for the job, don&#8217;t give up.  Maybe your CV or cover letter were not quite right.  You&#8217;ll never know unless you keep on trying.</p>
<p>Consider your job application your first piece of work for your prospective employer.  Really try to think about what they want to see in a candidate and make sure your CV and covering letter sells your unique qualities to your now employer.</p>
<p>The news is full of stories about lay-offs and job cuts &#8211; but lots of companies are still hiring.  You have to compete with more candidates, so follow these tips and give yourself the edge.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmade.com/2009/04/04/how-to-get-through-the-first-stage-of-the-job-interview-process/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Introducing the CloudMade Developer Zone</title>
		<link>http://blog.cloudmade.com/2009/02/09/introducing-the-cloudmade-developer-zone/</link>
		<comments>http://blog.cloudmade.com/2009/02/09/introducing-the-cloudmade-developer-zone/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 08:45:52 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[api]]></category>
		<category><![CDATA[cloudmade]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[products]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.cloudmade.com/?p=121</guid>
		<description><![CDATA[The CloudMade Developer Zone launched last week in San Francisco.  We&#8217;ll be bring the launch to London this Thursday February 12th.  There will be keynotes, live demonstrations from CloudMade partners that will include social networking, navigation, real estate, personal tracking, fleet tracking applications and more.  There are only a few places left, [...]]]></description>
			<content:encoded><![CDATA[<p>The CloudMade Developer Zone launched last week in San Francisco.  We&#8217;ll be bring the launch to London this Thursday February 12th.  There will be keynotes, live demonstrations from CloudMade partners that will include social networking, navigation, real estate, personal tracking, fleet tracking applications and more.  There are only a few places left, so please <a href="http://developer.cloudmade.com/event/launch">sign-up now</a> to avoid disappointment.</p>
<p>The CloudMade Developer Zone has all the resources developers need to get started building awesome location based applications.  Here are some highlights:</p>
<h3>Video Tutorials</h3>
<p>Video tutorials are a great way to get started with a new tool quickly.  We&#8217;re going to be publishing lots more screen casts, like this one about our Style Editor:</p>
<p><object width="400" height="302"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=3051909&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=3051909&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="302"></embed></object><br /><a href="http://vimeo.com/3051909">CloudMade StyleEditor ScreenCast</a> from <a href="http://vimeo.com/user1244922">CloudMade</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>If you&#8217;ve been using any of our tools or APIs, you can create a screen cast and have it featured on the site.  You could show how to make an amazing map style using the Style Editor, how to take our Ruby API and integrate it into a Rails application or how to use our open source repositories to modify our iPhone Maps Library.  Email in your screen casts <a href='mailto:screencasts@cloudmade.com'>here</a> and we&#8217;ll get back to you.</p>
<h3>Open Source Libraries and APIs</h3>
<p>We want to make it as easy as possible for you to get started using our services.  So that you can be up and running with as little hassle as possible, we have open source libraries for Ruby, Java, Python and iPhone Objective-C.  From the Developer Zone you can browse and check-out the source code, join the project and contribute back to the community.  There&#8217;s also step-by-step tutorials for each library and wiki pages where you can add any tips you might have.</p>
<p>You can find out more about the Developer Zone <a href='http://developers.cloudmade.com/projects'>here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmade.com/2009/02/09/introducing-the-cloudmade-developer-zone/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Hexaflexamaps</title>
		<link>http://blog.cloudmade.com/2008/11/12/hexaflexamaps/</link>
		<comments>http://blog.cloudmade.com/2008/11/12/hexaflexamaps/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 18:56:32 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.cloudmade.com/?p=99</guid>
		<description><![CDATA[Looking through a very old copy of Martin Gardner&#8217;s Mathematical Games, I stumbled upon his article about Flexagons and thought &#8220;what would these look like with maps on them?&#8221;. This is what they look like (at a really low resolution), but it is much more fun to make your own&#8230;


You can either start with this [...]]]></description>
			<content:encoded><![CDATA[<p>Looking through a very old copy of Martin Gardner&#8217;s <a href="http://www.amazon.co.uk/Hexaflexagons-Probability-Paradoxes-Tower-Hanoi/dp/0521735254/">Mathematical Games</a>, I stumbled upon his article about <a href="http://en.wikipedia.org/wiki/Flexagon">Flexagons</a> and thought &#8220;what would these look like with maps on them?&#8221;. This is what they look like (at a really low resolution), but it is much more fun to make your own&#8230;</p>
<p><a href="http://video.google.com/videoplay?docid=8566006444099268533&amp;hl=en"><img class="alignnone size-medium wp-image-111" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa-snapshot.jpg" alt="Video of hexaflexamap flexing." width="300" height="169" /></a><br />
<span id="more-99"></span><br />
You can either start with this <a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexagon1.jpg">pre-made image</a>, or download a <a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexagonrb1.gz">ruby script</a> (requires <a href="http://rmagick.rubyforge.org/">RMagick</a> and <a href="http://rubyforge.org/projects/proj4rb/">proj4r</a>) and you can make your own.The pre-made image shows the area around CloudMade&#8217;s London offices in three styles; <a href="http://cloudmade.com/products/web-maps-lite">Web maps style</a>, <a href="http://cloudmade.com/products/mobile-tiles">Mobile maps style</a> and the award-winning <a href="http://www.opencyclemap.org/">OpenCycleMap</a> style. Web maps style is a clean, general-purpose style showing the rich dataset that OpenStreetMap provides. Mobile maps style is a simple, high-contrast style which is ideal for low-resolution devices. The OpenCycleMap style is a specialist style created for cyclists using data from OpenStreetMap to highlight cyclepaths, bike parks, cycle shops and other features that are relevant to cyclists.</p>
<p>To assemble, you&#8217;ll need scissors and glue or tape. Start by printing the image.</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage01.jpg"><img class="alignnone size-medium wp-image-100" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage01.jpg" alt="The printed hexaflexamap." width="300" height="225" /></a></p>
<p>Now cut out the image.</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage02.jpg"><img class="alignnone size-medium wp-image-101" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage02.jpg" alt="The hexaflexamap after being cut out." width="300" height="225" /></a></p>
<p>Fold along the centreline so that maps are showing on both sides, except for two triangles at the ends.</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage03.jpg"><img class="alignnone size-medium wp-image-102" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage03.jpg" alt="After folding into a single strip." width="300" height="234" /></a></p>
<p>Holding the hexaflexamap by the near end in the picture above, fold the rest of the strip behind at the first join between two different map styles.</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage04.jpg"><img class="alignnone size-medium wp-image-103" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage04.jpg" alt="After the first fold. " width="300" height="231" /></a></p>
<p>Fold behind again after the next change in map style.</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage05.jpg"><img class="alignnone size-medium wp-image-104" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage05.jpg" alt="After the second fold." width="300" height="206" /></a></p>
<p>Bring the tail end (on the right above) on top of the head.</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage06.jpg"><img class="alignnone size-medium wp-image-105" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage06.jpg" alt="" width="300" height="253" /></a></p>
<p>Fold the white tab visible above and fold underneath, so that it faces the white tab that we started with and glue them together with paper glue. Tape also works, but thickens the hexaflexamap, which can make it more difficult to flex later on.</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage07.jpg"><img class="alignnone size-medium wp-image-106" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage07.jpg" alt="After gluing." width="300" height="243" /></a></p>
<p>After waiting for the glue to dry, fold the hexaflexamap along its lines of symmetry and pinch one of the visible seams.</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage08.jpg"><img class="alignnone size-medium wp-image-107" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage08.jpg" alt="Pinching a seam." width="300" height="275" /></a></p>
<p>Looking into the centre, you should now be able to open out the hexaflexamap to reveal a new layer!</p>
<p><a href="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage09.jpg"><img class="alignnone size-medium wp-image-108" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/flexa_stage09.jpg" alt="The new layer." width="300" height="245" /></a></p>
<p>Have fun with hexaflexamaps!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmade.com/2008/11/12/hexaflexamaps/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Where&#8217;s interesting?</title>
		<link>http://blog.cloudmade.com/2008/11/07/wheres-interesting/</link>
		<comments>http://blog.cloudmade.com/2008/11/07/wheres-interesting/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 13:40:27 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[openstreetmap]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.cloudmade.com/?p=97</guid>
		<description><![CDATA[Visualising geographic statistics usually means drawing a coloured map (called a choropleth), but this can be confusing as the human brain tends to associate importance with the area covered. For example, first impressions of the choropleth for the U.S. presidential elections would give the misleading impression that the Republicans won, as 56% of the map [...]]]></description>
			<content:encoded><![CDATA[<p>Visualising geographic statistics usually means drawing a coloured map (called a <a href="http://en.wikipedia.org/wiki/Choropleth_map">choropleth</a>), but this can be confusing as the human brain tends to associate importance with the area covered. For example, first impressions of the choropleth for the <a href="http://en.wikipedia.org/wiki/Image:US_Electoral_College_Map_2008.svg">U.S. presidential elections</a> would give the misleading impression that the Republicans won, as 56% of the map pixels are red. However, there is a different style of maps (called <a href="http://en.wikipedia.org/wiki/Cartogram">cartograms</a>) in which the map is warped such that the area is proportional to the data being visualised.</p>
<p>We can use cartograms of OpenStreetMap data to present a more visually striking and interesting view of the world. For example, here is a cartogram of the distribution of Points of Interest (POIs). It is immediately obvious that most of the POIs in the world are either in the United Kingdom or Germany, but there are other interesting POI-rich pockets; the Philippines, Brasil, South Africa and Eastern Australia. Many thanks to all the contributors in these areas for their fantastic work!</p>
<p style="center;"><a href="http://wiki.openstreetmap.org/images/c/c4/Cartogram-poi.png"><img class="size-full wp-image-98 aligncenter" src="http://blog.cloudmade.com/wp-content/uploads/2008/11/cartogram-poi-small.png" alt="Derived from OpenStreetMap data, CC-BY-SA OpenStreetMap and contributors" width="500" height="361" /></a></p>
<p><span id="more-97"></span></p>
<p>Generating cartograms can be quite easy as the authors of &#8220;<a href="http://www.pnas.org/cgi/content/abstract/101/20/7499">Diffusion-based method for producing density equalizing maps</a>&#8221; have generously made their software <a href="http://www-personal.umich.edu/~mejn/cart/">available</a> online.</p>
<p>First the data needs to be collected. For the case of the POI cartogram, I used the PostGIS database commonly used for Mapnik rendering to extract the geographic distribution of POIs on an evenly spaced grid 1024&#215;1024 pixels in size. When formatted as an ASCII text file, one line per row of space-separated decimal numbers, it can be fed into the cartogram software. This takes a while and tends to converge slowly when the deformation is very large &#8211; about 2 hours for the POIs graph on my laptop.</p>
<p>The cartogram software then outputs a 1025&#215;1025 file in the same format giving the new locations for each of the pixel corners in the input file. This can be used to warp a shape file, in this case <a href="http://wiki.openstreetmap.org/index.php/Mapnik#World_Boundaries">world_boundaries_m</a>, and render with <a href="http://openjump.org/wiki/show/HomePage">OpenJUMP</a> to produce the pretty output above!</p>
<p><strong>by Matt Amos, CloudMade London</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmade.com/2008/11/07/wheres-interesting/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Add Custom SQL to Rails Active Record Migrations</title>
		<link>http://blog.cloudmade.com/2007/04/10/add-custom-sql-to-rails-active-record-migrations/</link>
		<comments>http://blog.cloudmade.com/2007/04/10/add-custom-sql-to-rails-active-record-migrations/#comments</comments>
		<pubDate>Tue, 10 Apr 2007 16:35:48 +0000</pubDate>
		<dc:creator>nick-import</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.cloudmade.com/2007/04/10/add-custom-sql-to-rails-active-record-migrations/</guid>
		<description><![CDATA[Ruby on Rails&#8217; Migrations offer a nice alternative to traditional SQL DDL statements, that fit in with the Rails agile development philosophy.  Migrations let you use Ruby code to create, alter and drop databases and tables, allowing you, amongst other things to switch databases mid-development, without having to refine your SQL.
Such convenience can sometimes [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rubyonrails.org/">Ruby on Rails&#8217;</a> <a href="http://api.rubyonrails.org/classes/ActiveRecord/Migration.html">Migrations</a> offer a nice alternative to traditional SQL DDL statements, that fit in with the Rails <em>agile development</em> philosophy.  Migrations let you use Ruby code to create, alter and drop databases and tables, allowing you, amongst other things to switch databases mid-development, without having to refine your SQL.</p>
<p>Such convenience can sometimes mean a lack of flexibility.  If you are trying to add a column to a MySQL database with type <em>bigint unsigned</em>, you&#8217;ll run into problems as ActiveRecord does not support unsinged bigints.  You can solve the problem with some creative use of Ruby&#8217;s command line execution features &#8211; any code in a ruby file that is included between backticks(&#8217; ` &#8216;)  will be executed as a command line argument &#8211; so now you can include custom SQL statements without losing the benefits of Migrations:</p>
<p><code></p>
<pre>
class MyClass < ActiveRecord::Migration
  def self.up
    remove_column :mytable, <img src='http://blog.cloudmade.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ld_column
    puts `mysql database -u user -ppassword
    -e 'alter table mytable add column new_column bigint unsigned'`
  end
..
..
end
</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cloudmade.com/2007/04/10/add-custom-sql-to-rails-active-record-migrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

