<?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>Blogg - Athega AB &#187; Google</title>
	<atom:link href="http://blogg.athega.se/tagg/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogg.athega.se</link>
	<description>...</description>
	<lastBuildDate>Thu, 18 Nov 2010 22:17:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Så får du Google Sync att fungera med din iPhone</title>
		<link>http://blogg.athega.se/2009/10/01/sa-far-du-google-sync-att-fungera-med-din-iphone/</link>
		<comments>http://blogg.athega.se/2009/10/01/sa-far-du-google-sync-att-fungera-med-din-iphone/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 21:18:48 +0000</pubDate>
		<dc:creator>Christian Lizell</dc:creator>
				<category><![CDATA[Guider]]></category>
		<category><![CDATA[Teknik och prylar]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Apps]]></category>
		<category><![CDATA[Google Sync]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blogg.athega.se/?p=460</guid>
		<description><![CDATA[En guide som visar hur du synkroniserar din iPhone med Google Apps epost, kalendrar och kontakter med hjälp av Google Sync.]]></description>
			<content:encoded><![CDATA[<p>För några månader sedan flyttade vi över epost, kalendrar, kontakter och en hel del annat till Google Apps. Det kan jag verkligen rekommendera, men det är inte det vi ska prata om idag. För några dagar sedan fick Athega äntligen leveransen av alla iPhone 3GS-telefoner. Detta aktualiserade hur vi skulle få just epost, kalendrar och kontakter att synkroniseras mellan mobil, dator och Google.</p>
<p>Visst, man kan hävda att Googles iPhone-anpassade Safari-applikationer är bra nog och ibland bättre, men den här guiden visar hur du får epost, kalendrar och kontakter till de nativa motsvarigheterna i din iPhone.</p>
<p><strong>Viktigt att tänka på innan du börjar är att Google endast tillåter ett konto av detta slag (jag har exempelvis lagt till min privata gmail via vanlig IMAP).</strong></p>
<h3>Aktivera Google Sync för Google Apps</h3>
<p>För att synkroniseringen ska fungera fullt ut behöver du eller din Google Apps-administratör aktivera Google Sync. Detta görs genom att kryssa för &#8221;Aktivera Google Sync&#8221; under &#8221;Inställningar för mobilen&#8221; när du befinner dig på Tjänstinställningar för Google Apps som administratör.<br />
<img class="aligncenter size-full wp-image-465" title="Inställningar för mobilen" src="http://blogg.athega.se/wp-content/uploads/2009/10/Inställningar-för-mobilen.jpg" alt="Inställningar för mobilen" width="161" height="190" /></p>
<h3>Välj kalendrar</h3>
<p>Om du inte aktivt väljer vilka kalendrar du vill synkronisera, kommer du bara få din standardkalender. Detta kanske räcker för en del, men jag har flera olika kalendrar som jag vill få synkroniserade. Att få detta att fungera var inte helt problemfritt. Google kommer säkert förbättra detta, men när detta skrivs behöver du göra enligt nedan.</p>
<div id="attachment_466" class="wp-caption alignleft" style="width: 210px"><img class="size-medium wp-image-466" title="Svenska stöds inte" src="http://blogg.athega.se/wp-content/uploads/2009/10/IMG_0384-200x300.PNG" alt="Svenska stöds inte" width="200" height="300" /><p class="wp-caption-text">Svenska stöds inte</p></div>
<div id="attachment_467" class="wp-caption alignleft" style="width: 210px"><img class="size-medium wp-image-467" title="Nu visas Sync-ikonen" src="http://blogg.athega.se/wp-content/uploads/2009/10/IMG_0385-200x300.PNG" alt="Nu visas Sync-ikonen" width="200" height="300" /><p class="wp-caption-text">Nu visas Sync-ikonen</p></div>
<div id="attachment_468" class="wp-caption alignleft" style="width: 210px"><img class="size-medium wp-image-468  " title="Din iPhone" src="http://blogg.athega.se/wp-content/uploads/2009/10/IMG_0386-200x300.PNG" alt="Din iPhone" width="200" height="300" /><p class="wp-caption-text">Din iPhone</p></div>
<p style="clear:both;">Se till att du är inloggad med ditt Google Apps-konto och att m.google.com är <a title="Google Apps instructions" href="http://google.com/support/mobile/bin/answer.py?hl=en&amp;answer=139206">konfigurerad till din domän</a>. Tyvärr såg jag ingen Sync-ikon, efter detta. Det visade sig att jag var tvungen att ändra språk långst ner på sidan. Efter jag ändrat till &#8221;English (US)&#8221; och även land till &#8221;USA&#8221;, visades ikonen som den skulle.</p>
<p>Nästa steg är att välja din iPhone och sedan vilka kalendrar du vill synkronisera.</p>
<div id="attachment_470" class="wp-caption aligncenter" style="width: 210px"><img class="size-medium wp-image-470" title="Välj kalendrar" src="http://blogg.athega.se/wp-content/uploads/2009/10/IMG_0387-200x300.jpg" alt="Välj kalendrar" width="200" height="300" /><p class="wp-caption-text">Välj kalendrar</p></div>
<h3>Sätt upp ett Exchange-konto</h3>
<p>Detta gör du genom att välja Inställningar -&gt; E-post, kontakter, kalendrar -&gt; Lägg till konto&#8230; De inställningar du behöver hittar du <a title="Set Up Your iPhone" href="http://google.com/support/mobile/bin/answer.py?hl=en&amp;answer=138740">här</a>.</p>
<p><img class="aligncenter size-medium wp-image-461" title="Sätt upp ett Exchange-konto" src="http://blogg.athega.se/wp-content/uploads/2009/10/exchange-200x300.jpg" alt="Sätt upp ett Exchange-konto" width="200" height="300" /></p>
<p>Om du har befintliga kalendrar får du välja om du vill ersätta dem. I mitt fall ville jag det eftersom de kalendrar som redan fanns i min iPhone var samma Google-kalendrar, synkroniserade via iTunes.</p>
<div id="attachment_471" class="wp-caption aligncenter" style="width: 210px"><img class="size-medium wp-image-471" title="Radera eller spara befintliga kalendrar?" src="http://blogg.athega.se/wp-content/uploads/2009/10/IMG_0388-200x300.PNG" alt="Radera eller spara befintliga kalendrar?" width="200" height="300" /><p class="wp-caption-text">Radera eller spara befintliga kalendrar?</p></div>
<p>Så var det klart, alltid samma data i din iPhone som på Google Apps och med Push!</p>
<h3>Fördjupning</h3>
<p>Mer information hittar du hos Google:</p>
<ul>
<li><a href="http://google.com/support/mobile/bin/answer.py?hl=en&#038;answer=139635">Om begränsningar</a></li>
<li><a href="http://google.com/support/mobile/bin/topic.py?hl=en&#038;topic=14252">Översikt</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogg.athega.se/2009/10/01/sa-far-du-google-sync-att-fungera-med-din-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sinatra och Google Spreadsheet</title>
		<link>http://blogg.athega.se/2009/03/08/sinatra-och-google-spreadsheet/</link>
		<comments>http://blogg.athega.se/2009/03/08/sinatra-och-google-spreadsheet/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 00:07:55 +0000</pubDate>
		<dc:creator>Peter Hellberg</dc:creator>
				<category><![CDATA[Kod]]></category>
		<category><![CDATA[Webbutveckling]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Haml]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Sinatra]]></category>

		<guid isPermaLink="false">http://blogg.athega.se/?p=57</guid>
		<description><![CDATA[Efter att ha sett scriptet follow_iphone_devs.rb fick jag idén att kombinera Sinatra och google-spreadsheet-ruby som ett exempel på vad man kan göra i Ruby om man inte har behov av ett större ramverk som Ruby on Rails. Sinatra är ett DSL för att snabbt och enkelt skapa webbapplikationer i Ruby: # myapp.rb require 'rubygems' require [...]]]></description>
			<content:encoded><![CDATA[<p>Efter att ha sett scriptet <a href="http://github.com/timhaines/iphone-dev-tweeters-/blob/edf4ea86f3f6c9b425d2fe7cb22ba394560ed378/follow_iphone_devs.rb">follow_iphone_devs.rb</a> fick jag idén att kombinera <a href="http://www.sinatrarb.com/">Sinatra</a> och <a href="http://github.com/gimite/google-spreadsheet-ruby/tree/master">google-spreadsheet-ruby</a> som ett exempel på vad man kan göra i Ruby om man inte har behov av ett större ramverk som <a href="http://rubyonrails.org/">Ruby on Rails</a>.</p>
<p><a href="http://www.sinatrarb.com/"><img class="size-full wp-image-73 alignnone" src="http://blogg.athega.se/wp-content/uploads/2009/03/sinatra.png" alt="Sinatra" width="315" height="73" /></a><br />
Sinatra är ett DSL för att snabbt och enkelt skapa webbapplikationer i Ruby:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># myapp.rb</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'sinatra'</span>
get <span style="color:#996600;">'/'</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  <span style="color:#996600;">'Hello world!'</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<h2>Komma igång</h2>
<p>Först av allt behöver vi <a href="http://www.ruby-lang.org/en/">Ruby</a> och <a href="http://www.rubygems.org/">RubyGems</a>. Eftersom jag använder OS X så är de redan installerade. (Men se till att du har en uppdaterad version av RubyGems)</p>
<p>Om du inte redan har lagt till <a href="http://github.com">GitHub</a> i listan över dina gem sources:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gem sources <span style="color: #660033;">-a</span> http:<span style="color: #000000; font-weight: bold;">//</span>gems.github.com</pre></div></div>

<p>Nu är vi redo att installera de gems vi kommer att använda:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> sinatra gimite-google-spreadsheet-ruby haml</pre></div></div>

<p>Nu är vi redo att börja skriva vårt script:</p>
<h2>sinatra-and-google-spreadsheet.rb</h2>
<p>Först tar vi och laddar in de gems vi kommer använda (Sinatra kommer att ladda in <a href="http://haml.hamptoncatlin.com/">Haml</a> åt oss):</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;">'rubygems'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'sinatra'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'google_spreadsheet'</span></pre></div></div>

<p>Nu tar vi och aktiverar sessioner:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># We want to save the posts in a session variable</span>
set <span style="color:#ff3333; font-weight:bold;">:sessions</span>, <span style="color:#0000FF; font-weight:bold;">true</span></pre></div></div>

<blockquote><p><b>OBS:</b> Detta är självklart ingen lösning som skalar men det fungerar bra för vårt syfte.</p></blockquote>
<p>Metoderna för att hämta datat från Google Spreadsheet:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">def</span> get_posts
  <span style="color:#008000; font-style:italic;"># Retrieve and return the posts</span>
  session<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;posts&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">||</span>= retrieve_posts
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">def</span> retrieve_posts
  <span style="color:#008000; font-style:italic;"># Empty posts hash</span>
  posts = <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span>
&nbsp;
  <span style="color:#008000; font-style:italic;"># Log in to Google Spreadsheet</span>
  session = GoogleSpreadsheet.<span style="color:#9900CC;">login</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'xxxxxxxx'</span>, <span style="color:#996600;">'xxxxxxxx'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
  <span style="color:#008000; font-style:italic;"># First worksheet of </span>
  <span style="color:#008000; font-style:italic;">#  http://spreadsheets.google.com/ccc?key=peGTxx6h1WT0ihw9-QETbQg</span>
  ws = session.<span style="color:#9900CC;">spreadsheet_by_key</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;peGTxx6h1WT0ihw9-QETbQg&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">worksheets</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>
&nbsp;
  <span style="color:#008000; font-style:italic;"># Iterate over all the rows in the spreadsheet</span>
  <span style="color:#9966CC; font-weight:bold;">for</span> i <span style="color:#9966CC; font-weight:bold;">in</span> 1...<span style="color:#9900CC;">ws</span>.<span style="color:#9900CC;">num_rows</span>
    <span style="color:#008000; font-style:italic;"># Store the data Identify data using the slug</span>
    posts<span style="color:#006600; font-weight:bold;">&#91;</span>ws<span style="color:#006600; font-weight:bold;">&#91;</span>i<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006666;">1</span>,<span style="color:#006666;">5</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#006600; font-weight:bold;">&#123;</span>
      <span style="color:#ff3333; font-weight:bold;">:title</span>    <span style="color:#006600; font-weight:bold;">=&gt;</span> ws<span style="color:#006600; font-weight:bold;">&#91;</span>i<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006666;">1</span>,<span style="color:#006666;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>,
      <span style="color:#ff3333; font-weight:bold;">:content</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> ws<span style="color:#006600; font-weight:bold;">&#91;</span>i<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006666;">1</span>,<span style="color:#006666;">2</span><span style="color:#006600; font-weight:bold;">&#93;</span>,
      <span style="color:#ff3333; font-weight:bold;">:date</span>     <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#CC00FF; font-weight:bold;">Date</span>.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span>ws<span style="color:#006600; font-weight:bold;">&#91;</span>i<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006666;">1</span>,<span style="color:#006666;">3</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,
      <span style="color:#ff3333; font-weight:bold;">:author</span>   <span style="color:#006600; font-weight:bold;">=&gt;</span> ws<span style="color:#006600; font-weight:bold;">&#91;</span>i<span style="color:#006600; font-weight:bold;">+</span><span style="color:#006666;">1</span>,<span style="color:#006666;">4</span><span style="color:#006600; font-weight:bold;">&#93;</span>,
    <span style="color:#006600; font-weight:bold;">&#125;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#008000; font-style:italic;"># Return the retrieved posts</span>
  posts
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<blockquote><p>Vi använder memoization för att det bara ska bli en förfrågning till Google per session</p></blockquote>
<p>Startsida listar helt enkelt alla poster:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">get <span style="color:#996600;">'/'</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  <span style="color:#008000; font-style:italic;"># Get all the posts</span>
  <span style="color:#0066ff; font-weight:bold;">@posts</span> = get_posts
&nbsp;
  <span style="color:#008000; font-style:italic;"># Render the index template</span>
  haml <span style="color:#ff3333; font-weight:bold;">:index</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Respektive post har en &#8221;slug&#8221; som används i urlen:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">get <span style="color:#996600;">'/:slug'</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  <span style="color:#008000; font-style:italic;"># Get the post</span>
  <span style="color:#0066ff; font-weight:bold;">@post</span> = get_posts<span style="color:#006600; font-weight:bold;">&#91;</span>params<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:slug</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#93;</span>
&nbsp;
  <span style="color:#008000; font-style:italic;"># Render the post template</span>
  haml <span style="color:#ff3333; font-weight:bold;">:post</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Nu definierar vi de <a href="http://haml.hamptoncatlin.com/">Haml</a>-mallar vi använder på sidorna:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">__END__
&nbsp;
@@ layout
<span style="color:#006600; font-weight:bold;">%</span>html
  <span style="color:#006600; font-weight:bold;">%</span>head
    <span style="color:#006600; font-weight:bold;">%</span>title Sinatra <span style="color:#9966CC; font-weight:bold;">and</span> Google Spreadsheet
  <span style="color:#006600; font-weight:bold;">%</span>body
    = <span style="color:#9966CC; font-weight:bold;">yield</span>
&nbsp;
@@ index
<span style="color:#006600; font-weight:bold;">%</span>h1.<span style="color:#9900CC;">title</span> All posts
&nbsp;
<span style="color:#006600; font-weight:bold;">-</span> <span style="color:#0066ff; font-weight:bold;">@posts</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>slug, post<span style="color:#006600; font-weight:bold;">|</span>
  <span style="color:#006600; font-weight:bold;">%</span>ul
    <span style="color:#006600; font-weight:bold;">%</span>li
      <span style="color:#006600; font-weight:bold;">%</span>a<span style="color:#006600; font-weight:bold;">&#123;</span>:href <span style="color:#006600; font-weight:bold;">=&gt;</span> slug<span style="color:#006600; font-weight:bold;">&#125;</span>
        = post<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:title</span><span style="color:#006600; font-weight:bold;">&#93;</span>
@@ post
<span style="color:#006600; font-weight:bold;">%</span>h1.<span style="color:#9900CC;">title</span>
  = <span style="color:#0066ff; font-weight:bold;">@post</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:title</span><span style="color:#006600; font-weight:bold;">&#93;</span>
&nbsp;
<span style="color:#006600; font-weight:bold;">%</span>div
  Published
  <span style="color:#006600; font-weight:bold;">%</span>span.<span style="color:#9900CC;">date</span>
    = <span style="color:#0066ff; font-weight:bold;">@post</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:date</span><span style="color:#006600; font-weight:bold;">&#93;</span>
  by
  <span style="color:#006600; font-weight:bold;">%</span>span.<span style="color:#9900CC;">author</span>
    = <span style="color:#0066ff; font-weight:bold;">@post</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:author</span><span style="color:#006600; font-weight:bold;">&#93;</span>
&nbsp;
<span style="color:#006600; font-weight:bold;">%</span><span style="color:#CC0066; font-weight:bold;">p</span>.<span style="color:#9900CC;">content</span>
  = <span style="color:#0066ff; font-weight:bold;">@post</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:content</span><span style="color:#006600; font-weight:bold;">&#93;</span>
&nbsp;
<span style="color:#006600; font-weight:bold;">%</span>a<span style="color:#006600; font-weight:bold;">&#123;</span>:href <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'/'</span><span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> Back</pre></div></div>

<h2>Starta scriptet</h2>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">$ ruby sinatra<span style="color:#006600; font-weight:bold;">-</span>and<span style="color:#006600; font-weight:bold;">-</span>google<span style="color:#006600; font-weight:bold;">-</span>spreadsheet.<span style="color:#9900CC;">rb</span> 
== Sinatra<span style="color:#006600; font-weight:bold;">/</span>0.9.1 has taken the stage on <span style="color:#006666;">4567</span> <span style="color:#9966CC; font-weight:bold;">for</span> development with backup from Thin
<span style="color:#006600; font-weight:bold;">&gt;&gt;</span> Thin web server <span style="color:#006600; font-weight:bold;">&#40;</span>v1.0.0 codename That´s What She Said<span style="color:#006600; font-weight:bold;">&#41;</span>
<span style="color:#006600; font-weight:bold;">&gt;&gt;</span> Maximum connections set to <span style="color:#006666;">1024</span>
<span style="color:#006600; font-weight:bold;">&gt;&gt;</span> Listening on 0.0.0.0:<span style="color:#006666;">4567</span>, CTRL<span style="color:#006600; font-weight:bold;">+</span>C to stop</pre></div></div>

<p>Om allt går som det ska så ska vi nu ha en server på <a href="http://localhost:4567/">http://localhost:4567/</a>.</p>
<h2>Resultat</h2>
<p>Från ett kalkylblad på Google Spreadsheet:</p>
<div id="attachment_90" class="wp-caption alignnone" style="width: 650px"><img src="http://blogg.athega.se/wp-content/uploads/2009/03/data-for-the-sinatra-google-spreadsheet.png" alt="Data från Google Spreadsheet" title="Kalkylbladet som innehåller datat" width="640" height="416" class="size-full wp-image-90" /><p class="wp-caption-text">Data från Google Spreadsheet</p></div>
<p>Till en sida serverad med Sinatra:</p>
<div id="attachment_86" class="wp-caption alignnone" style="width: 474px"><img src="http://blogg.athega.se/wp-content/uploads/2009/03/sinatra-and-google-spreadsheet.png" alt="Post om Ruby" title="Post om Ruby" width="464" height="227" class="size-full wp-image-86" /><p class="wp-caption-text">Resultatet</p></div>
<p>Att man kan åstadkomma så mycket med under 100 rader Rubykod är rätt imponerande, speciellt om man tänker på att vi då även räknar in kommentarer och mallar.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogg.athega.se/2009/03/08/sinatra-och-google-spreadsheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

