<?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>Savvas Georgiou</title>
	<atom:link href="http://www.savvas.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.savvas.me</link>
	<description></description>
	<lastBuildDate>Thu, 10 Nov 2011 18:56:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to uninstall all your gems</title>
		<link>http://www.savvas.me/2011/11/uninstall-gems/</link>
		<comments>http://www.savvas.me/2011/11/uninstall-gems/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 18:56:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Programming & Development]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.savvas.me/?p=80</guid>
		<description><![CDATA[If you don&#8217;t use gemsets, this can occur  to  you. Although I do use gemsets almost always I had a ruby project running on the rvm 1.9.2 with messed up gems, many versions of each one etc. Anyway I decided I want to cleanup all the gems that are installed under this ruby. The most [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t use gemsets, this can occur  to  you. Although I do use gemsets almost always I had a ruby project running on the rvm 1.9.2 with messed up gems, many versions of each one etc. Anyway I decided I want to cleanup all the gems that are installed under this ruby.</p>
<p>The most practical way to delete all gems and all versions that I run into is the following</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="terminal" style="font-family:monospace;">gem list | cut -d&quot; &quot; -f1 | xargs gem uninstall -aIx</pre></div></div>

<p>&nbsp;</p>
<p>It works! Just try it out..</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.savvas.me/2011/11/uninstall-gems/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Facebook application &#8211; deploying on the Cloud with Heroku.</title>
		<link>http://www.savvas.me/2011/10/facebook-application-deploying-cloud-heroku/</link>
		<comments>http://www.savvas.me/2011/10/facebook-application-deploying-cloud-heroku/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 23:22:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Heroku]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Server Administration - Deployment]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[scale]]></category>
		<category><![CDATA[sinatra]]></category>

		<guid isPermaLink="false">http://www.savvas.me/?p=63</guid>
		<description><![CDATA[Recently, Heroku announced a partnership with Facebook. Heroku is a famous [and my favorite] Platform as a Service for Ruby Apps and recently it launched a new stack that also supports java and python. Facebook applications were always needed be scale-ready due to the network effect that they rely on. A successful Facebook application can [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, Heroku announced a partnership with Facebook. Heroku is a famous [and my favorite] Platform as a Service for Ruby Apps and recently it launched a new stack that also supports java and python.<br />
Facebook applications were always needed be scale-ready due to the network effect that they rely on. A successful Facebook application can literrally double it&#8217;s audience every day while it spreads over the huge user base of facebook.</p>
<p>This fact has developed a trend where facebook applications&#8217; teams look for cloud solutions when deploying even small apps.</p>
<p>Facebook, listening to this trend, launched an automated way to host your app on cloud by integrating. Now when a facebook developer Creates a new app, in the first screen with all the basic options (app name, urls etc) there is a new option called &#8220;Cloud Services&#8221;</p>
<p><a href="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.01.05-AM-e1317856019969.png"><img class="alignnone size-full wp-image-71" title="Heroku Cloud Services - Integrating Facebook" src="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.01.05-AM-e1317856019969.png" alt="" width="499" height="107" /></a></p>
<p>There you can select to host your facebook application on Heroku Cloud Service and see the following screens</p>
<p><a href="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.01.19-AM-e1317856144639.png"><img class="alignnone size-full wp-image-70" title="Heroku Cloud Services - Integrating Facebook popup" src="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.01.19-AM-e1317856144639.png" alt="Heroku Cloud Services - Integrating Facebook popup" width="499" height="146" /></a></p>
<p>Then you can select the stack (programming language) of your application. Heroku will spawn a process which will automatically build a new initial facebook application in the language specified. The app will have all the basics features, meaning authenticating from facebook, asking and using some basic permissions and rendering a welcome page featuring facebook&#8217;s api.</p>
<p><a href="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.01.33-AM.png"><img class="alignnone size-full wp-image-69" title="Heroku Cloud Services - Integrating Facebook - Choosing Stack / Language" src="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.01.33-AM.png" alt="Heroku Cloud Services - Integrating Facebook - Choosing Stack / Language" width="483" height="208" /></a></p>
<p>In my case, I chose ruby and thus heroku started a new Sinatra Application, bundled with all the basic gems</p>
<p><a href="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.13.56-AM.png"><img class="alignnone size-full wp-image-74" title="Heroku - Facebook Application - Ruby - Sinatra" src="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.13.56-AM.png" alt="Heroku - Facebook Application - Ruby - Sinatra" width="283" height="202" /></a></p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">source <span style="color:#ff3333; font-weight:bold;">:gemcutter</span>
&nbsp;
gem <span style="color:#996600;">&quot;sinatra&quot;</span>
gem <span style="color:#996600;">&quot;mogli&quot;</span>
gem <span style="color:#996600;">&quot;json&quot;</span>
gem <span style="color:#996600;">&quot;httparty&quot;</span>
gem <span style="color:#996600;">&quot;thin&quot;</span></pre></div></div>

<p>&nbsp;</p>
<p>The magic part is that now heroku and facebook have complete the whole process for you and the exact application url that is spawned to start on heroku is added in the specified fields of the app configuration page.</p>
<p><a href="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.02.06-AM-e1317856179299.png"><img class="alignnone size-full wp-image-67" title="Heroku Cloud Services - Integrating Facebook" src="http://www.savvas.me/wp-content/uploads/2011/10/Screen-Shot-2011-10-06-at-2.02.06-AM-e1317856179299.png" alt="Heroku Cloud Services - Integrating Facebook" width="499" height="142" /></a></p>
<p>To go on and customize your brand new application, just wait for the email from the heroku team that gives you a git repository. You clone, edit and</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">push heroku master</pre></div></div>

<p>to deploy your app.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.savvas.me/2011/10/facebook-application-deploying-cloud-heroku/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share your localhost development environment online &#8211; The fastest and easiest way to ssh tunnel your local web server</title>
		<link>http://www.savvas.me/2011/10/share-localhost-development-environment-online-fastes-easies-ssh-tunnel-local-web-server/</link>
		<comments>http://www.savvas.me/2011/10/share-localhost-development-environment-online-fastes-easies-ssh-tunnel-local-web-server/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 17:19:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[Programming & Development]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[share localhost]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh key]]></category>

		<guid isPermaLink="false">http://www.savvas.me/?p=40</guid>
		<description><![CDATA[Today, again, I needed to show the progress of an un-deployed application to the customer. It&#8217;s not rare at all to have a request to give an online link of your localhost environment. There are a numerous of solutions to this problem, especially if you have a static ip and you fully control your router [...]]]></description>
			<content:encoded><![CDATA[<p>Today, again, I needed to show the progress of an un-deployed application to the customer. It&#8217;s not rare at all to have a request to give an online link of your localhost environment. There are a numerous of solutions to this problem, especially if you have a static ip and you fully control your router and firewall ports you can do some magick and provide a public online url for your localhost.</p>
<p>But in most cases this can be tricky or un-doable. In my opinion the most effective way to show your localhost is to use ssh tunneling. This was a common practice back when facebook apps weren&#8217;t open to cross site connection and facebook app developers where used to open an ssh tunel to test and run their app in development environement.</p>
<p>Today, I run into the easies way to share your localhost environment via ssh tunel and with the help of a ruby gem called localtunel. The project is developed by <a href="http://progrium.com/">Jeff Lindsay</a> and it is supported by <a href="http://twilio.com">Twilio</a>.</p>
<p>Let&#8217;s see now how it works.<br />
First of all you need to have ruby installed in your local evnironment. To make sure you have ruby install, run</p>

<div class="wp_syntax"><div class="code"><pre class="terminal" style="font-family:monospace;">which ruby</pre></div></div>

<p>and if you don&#8217;t get an answer try installing ruby via <a href="http://beginrescueend.com/rvm/install/">rvm</a>.</p>
<p>After that you need to install this gem in the particular ruby version. So try</p>

<div class="wp_syntax"><div class="code"><pre class="terminal" style="font-family:monospace;">sudo gem install localtunnel</pre></div></div>

<p>or try without sudo if you are using an rvm installed ruby.</p>
<p>The last thing to keep in mind is that you need to have an ssh key and provide the path of your ssh public key. In case you don&#8217;t have one, follow the <a href="http://help.github.com/mac-set-up-git/">instructions from github on how to generate an ssh key</a> .</p>
<p>Supposing that your public key is under ~/.ssh/id_rsa.pub , the last step to take is to run</p>

<div class="wp_syntax"><div class="code"><pre class="terminal" style="font-family:monospace;">Savvas-Georgious-MacBook-Pro:.ssh savvasmsc$ localtunnel -k ~/.ssh/id_rsa.pub 80 This localtunnel service is brought to you by Twilio. Port 80 is now publicly accessible from http://3a5f.localtunnel.com ...</pre></div></div>

<p>for the default port of 80 of a typical webserver or</p>

<div class="wp_syntax"><div class="code"><pre class="terminal" style="font-family:monospace;">$ localtunnel -k ~/.ssh/id_rsa.pub 3000</pre></div></div>

<p>for a typical rails server etc.</p>
<p>When finished remember to kill the tunneling that exposes the local development environment to the whole internet with a Ctrl-C.</p>
<p>You can also have a look into the source code of this implementation <a href="https://github.com/progrium/localtunnel">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.savvas.me/2011/10/share-localhost-development-environment-online-fastes-easies-ssh-tunnel-local-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloudcamp Athens, 2011- Presenting HEROKU</title>
		<link>http://www.savvas.me/2011/10/cloudcamp-athens-2011-presenting-heroku/</link>
		<comments>http://www.savvas.me/2011/10/cloudcamp-athens-2011-presenting-heroku/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 09:42:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Heroku]]></category>
		<category><![CDATA[Server Administration - Deployment]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[cloudcamp]]></category>
		<category><![CDATA[cloudcampgr]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[presentation]]></category>

		<guid isPermaLink="false">http://www.savvas.me/?p=3</guid>
		<description><![CDATA[On Saturday Oct 1st, CloudCamp Athens took place in Colab. I was happy to present Heroku as a cloud solution amongst other solutions [Google App engine, EC2, gogrid and Azure]. Here is my presentation. Cloudcamp Athens 2011 Presenting Heroku View more presentations from Savvas Georgiou]]></description>
			<content:encoded><![CDATA[<p>On Saturday Oct 1st, <a title="CloudCamp Athens 2011" href="http://cloudcamp.org/Athens">CloudCamp Athens</a> took place in <a title="Colab WorkSpace Athens" href="http://colabworkspace.com/">Colab</a>. I was happy to present Heroku as a cloud solution amongst other solutions [Google App engine, EC2, gogrid and Azure]. Here is my presentation.</p>
<div id="__ss_9510922" style="width: 510px;"><strong style="display: block; margin: 12px 0 4px;"><a title="Cloudcamp Athens 2011 Presenting Heroku" href="http://www.slideshare.net/savvasgeorgiou/cloudcamp-athens-2011-presenting-heroku" target="_blank">Cloudcamp Athens 2011 Presenting Heroku</a></strong> <object id="__sse9510922" width="510" height="426" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cloudcamp-athens-2011-heroku-111002132512-phpapp01&amp;stripped_title=cloudcamp-athens-2011-presenting-heroku&amp;userName=savvasgeorgiou" /><param name="allowscriptaccess" value="always" /><param name="allowfullscreen" value="true" /><embed id="__sse9510922" width="510" height="426" type="application/x-shockwave-flash" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=cloudcamp-athens-2011-heroku-111002132512-phpapp01&amp;stripped_title=cloudcamp-athens-2011-presenting-heroku&amp;userName=savvasgeorgiou" allowFullScreen="true" allowScriptAccess="always" allowscriptaccess="always" allowfullscreen="true" /> </object></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/savvasgeorgiou" target="_blank">Savvas Georgiou</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.savvas.me/2011/10/cloudcamp-athens-2011-presenting-heroku/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello neo4j  with ruby.</title>
		<link>http://www.savvas.me/2011/10/neo4j-ruby/</link>
		<comments>http://www.savvas.me/2011/10/neo4j-ruby/#comments</comments>
		<pubDate>Sat, 01 Oct 2011 19:52:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[neo4j]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://savvas.me/?p=14</guid>
		<description><![CDATA[Neo4j is popular Graph Database system that allows you to manipulate data as nodes related with each other. Following a graph approach on data allows you to implement applications with special characteristics such as apps where users are following other users or pages. Actually, it&#8217;s almost impossible to simulate a graph data structure with conventional [...]]]></description>
			<content:encoded><![CDATA[<p>Neo4j is popular Graph Database system that allows you to manipulate data as nodes related with each other. Following a graph approach on data allows you to implement applications with special characteristics such as apps where users are following other users or pages. Actually, it&#8217;s almost impossible to simulate a graph data structure with conventional relational databases (SQL) or even with key-value storage systems. Graph databases is a single way to go, at least if you want to be able to scale for users more than your social circle.</p>
<p>Amongst the existing graph databases solutions, neo4j is gaining popularity. This can be because of it&#8217;s robust implementation, the complete documentation that the neo4j wiki page [<a title="Neo4j" href="http://wiki.neo4j.org/">http://wiki.neo4j.org</a>]offers and the hooks for languages such as ruby, java, python.</p>
<p>In our case, the goal is to implement a simple user-following-user Ruby on Rails application that stores the following information in the graph database, neo4j.</p>
<p>First we need to install and use jruby. Relying to rvm we run start with</p>
<p><em>rvm install jruby</em></p>
<p>Then we need to generate a gemset for jruby and create a rails app, using this gemset.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">rvm use jruby<span style="color:#006600; font-weight:bold;">-</span>1.6.3
&nbsp;
rvm gemset create neotest
&nbsp;
rvm use jruby<span style="color:#006600; font-weight:bold;">-</span>1.6.3@neotest</pre></div></div>

<p>To hook the neo4j database with ruby, we should install and use (require) the neo4j gemset. So we run</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">gem install neo4j</pre></div></div>

<p>Now Let&#8217;s run a simple test. Create a file and paste the following code.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">&quot;rubygems&quot;</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">&quot;neo4j&quot;</span>
&nbsp;
<span style="color:#008000; font-style:italic;">#domain model</span>
<span style="color:#9966CC; font-weight:bold;">class</span> Waypoint
  <span style="color:#9966CC; font-weight:bold;">include</span> <span style="color:#6666ff; font-weight:bold;">Neo4j::NodeMixin</span>
  <span style="color:#008000; font-style:italic;">#the persistent properties of this class</span>
  property <span style="color:#ff3333; font-weight:bold;">:name</span>, <span style="color:#ff3333; font-weight:bold;">:lon</span>, <span style="color:#ff3333; font-weight:bold;">:lat</span>
  <span style="color:#008000; font-style:italic;">#friend relationships to other persons</span>
  has_n <span style="color:#ff3333; font-weight:bold;">:roads</span>
  index <span style="color:#ff3333; font-weight:bold;">:name</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#008000; font-style:italic;">#populate the db</span>
<span style="color:#6666ff; font-weight:bold;">Neo4j::Transaction</span>.<span style="color:#9900CC;">run</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  <span style="color:#008000; font-style:italic;">#the waypoints</span>
  NYC = Waypoint.<span style="color:#9900CC;">new</span> <span style="color:#ff3333; font-weight:bold;">:name</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#996600;">'New York'</span>, <span style="color:#ff3333; font-weight:bold;">:lon</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#006600; font-weight:bold;">-</span><span style="color:#006666;">74.007124</span>, <span style="color:#ff3333; font-weight:bold;">:lat</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#006666;">40.714550</span>
  SF  = Waypoint.<span style="color:#9900CC;">new</span> <span style="color:#ff3333; font-weight:bold;">:name</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#996600;">'San Francisco'</span>, <span style="color:#ff3333; font-weight:bold;">:lon</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#006600; font-weight:bold;">-</span><span style="color:#006666;">122.420139</span>, <span style="color:#ff3333; font-weight:bold;">:lat</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#006666;">37.779600</span>
  SEA = Waypoint.<span style="color:#9900CC;">new</span> <span style="color:#ff3333; font-weight:bold;">:name</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#996600;">'Seattle'</span>, <span style="color:#ff3333; font-weight:bold;">:lon</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#006600; font-weight:bold;">-</span><span style="color:#006666;">122.329439</span>, <span style="color:#ff3333; font-weight:bold;">:lat</span>=<span style="color:#006600; font-weight:bold;">&amp;</span>gt;<span style="color:#006666;">47.603560</span>
  <span style="color:#008000; font-style:italic;">#the roads</span>
  NYC.<span style="color:#9900CC;">roads</span> <span style="color:#006600; font-weight:bold;">&amp;</span>lt;<span style="color:#006600; font-weight:bold;">&amp;</span>lt; SF
  NYC.<span style="color:#9900CC;">roads</span> <span style="color:#006600; font-weight:bold;">&amp;</span>lt;<span style="color:#006600; font-weight:bold;">&amp;</span>lt; SEA
  SEA.<span style="color:#9900CC;">roads</span> <span style="color:#006600; font-weight:bold;">&amp;</span>lt;<span style="color:#006600; font-weight:bold;">&amp;</span>lt; SF
<span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#6666ff; font-weight:bold;">Neo4j::Transaction</span>.<span style="color:#9900CC;">run</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  <span style="color:#008000; font-style:italic;">#do a fulltext search over all Waypoints</span>
  Waypoint.<span style="color:#9900CC;">find</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:name</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#996600;">'New York'</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>x<span style="color:#006600; font-weight:bold;">|</span>
    <span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#996600;">&quot;Found Waypoint: #{x.name}&quot;</span>
  <span style="color:#006600; font-weight:bold;">&#125;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<pre></pre>
<pre>Now save the file as neotest.rb</pre>
<pre></pre>
<pre>Go to terminal and run the file</pre>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ jruby neotest.rb.</pre></div></div>

<pre></pre>
<pre>So now we have all the basic setup to start playing with neo4j graph database and ruby. As I just started messing with neo4j and graph database structure, I promise that there will be many following posts about these topics.</pre>
<pre></pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.savvas.me/2011/10/neo4j-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Heroku: How to sync your production database with your development environment.</title>
		<link>http://www.savvas.me/2011/09/heroku-how-to-sync-your-productino-database-with-your-development-environment/</link>
		<comments>http://www.savvas.me/2011/09/heroku-how-to-sync-your-productino-database-with-your-development-environment/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 16:07:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Heroku]]></category>
		<category><![CDATA[Programming & Development]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Server Administration - Deployment]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://savvas.me/?p=4</guid>
		<description><![CDATA[Apart from heroku db:pull (uses taps and imports from psql to any local sql database) there is a faster way to download and import the production data to your local server. 1. Generate a dump file of the production database using heroku pgbackups:capture This will actually run the pg_dump script on the production server 2. [...]]]></description>
			<content:encoded><![CDATA[<p>Apart from heroku db:pull (uses taps and imports from psql to any local sql database) there is a faster way to download and import the production data to your local server.</p>
<p>1. Generate a dump file of the production database using</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">heroku pgbackups:capture</pre></div></div>

<p>This will actually run the pg_dump script on the production server<br />
2. List the backups</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">heroku pagbackups</pre></div></div>

<p>3. Get the download-able url of the latest backup listed</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">heroku pgbackups {lates_backup_name}:url</pre></div></div>

<p>4. Download the file using the returned url.</p>
<p>Postgresql can use the files comming from the pg_dump with the usage of pg_restore.</p>
<p>Now try this</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">pg_restore --verbose --clean --no-acl --no-owner -h 127.0.0.1 -U savvasmsc -d sweetlifer_development ~/Downloads/b019.dump</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.savvas.me/2011/09/heroku-how-to-sync-your-productino-database-with-your-development-environment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

