<?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>larsemil &#187; Allmänt</title>
	<atom:link href="http://larsemil.se/category/allmant/feed/" rel="self" type="application/rss+xml" />
	<link>http://larsemil.se</link>
	<description></description>
	<lastBuildDate>Fri, 04 May 2012 08:06:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Rotten apples</title>
		<link>http://larsemil.se/rottenapples/</link>
		<comments>http://larsemil.se/rottenapples/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 09:23:21 +0000</pubDate>
		<dc:creator>Emil</dc:creator>
				<category><![CDATA[Allmänt]]></category>

		<guid isPermaLink="false">http://larsemil.se/?p=4755</guid>
		<description><![CDATA[So i was bored a night during the end of 2011 and i wrote this. Its a short story that came to me, and I felt like writing it down. Please read and give feedback! I knew things would get weird as my parents got a divorce. One week with my father and one with [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>So i was bored a night during the end of 2011 and i wrote this. Its a short story that came to me, and I felt like writing it down. Please read and give feedback!</em></strong></p>
<p>I knew things would get weird as my parents got a divorce. One week with my father and one with my mother. Weeks came and went, i moved here and there, and as soon as i got settled it was time to move again.<br />
Well friends, I will see you in school next week, but I can’t play after class as I have to go take the bus outside of town to my father. It’s too long of a distance to stay later in the afternoon. See you monday, play with you in a week.<br />
But the weeks at my fathers were not boring, no rather quite the opposite. The house was an old house made by clay, painted dark brown which gave it a cottage-like look that could be from something out of a fairytale. The grass was always cut short, my father tended to the garden with all his heart and pride. Now as autumn sneaked upon us the trees were all full of fruit and i loved running around there, in between the trees, climbing the branches to get to the fruit in the top of the tree. No matter how many times my father told me that the fruit on the ground actually was the one most ripe i wanted to climb.</p>
<p>&nbsp;</p>
<p>I remember one time from last autumn as my father was gathering all rotten apples in a pile to remove from the garden while i as usual was climbing above him, singing and rhyming while doing so. I don&#8217;t remember if i stopped singing before or after the foot slipped, sometimes one can just feel things are about to go wrong, but I do know that as i fell i screamed. Like a baby. My voice carried over the garden as I smacked into the ground with my father running towards me. It did not hurt, not a bit. When touching my back with my fingers I first thought i felt a bloody moist, but quickly realised it was cold and that I’d managed to fall into the pile of rotten apples. It took the whole afternoon for my father to get the sweet and rotten smell out of my hair. Well this autumn I did not fall. Not in the way people most often fall, from an object into something else, most often the ground. No, this autumn I more, drifted into something, something .. unlikely?</p>
<p>It all started with Ian.<br />
-”Why you taking that bus every week? Don&#8217;t you go to school like normal people?”<br />
The voice came from behind me as i waited for the bus. Turning around i saw a boy about my age, freckles covering his face. Sitting on a grand-mother-like bike with a smile on his face.<br />
-”I see you here quite often, you live by the cottage house don’t you?”<br />
-”Yeah, I do. Mother lives downtown and I go to school there. Living here every other week. “<br />
He smiled again, showing even more teeth.<br />
-”You got any friends around here then? I could show you a thing or two. “ On the back of his head he had two dreadlocks pointing out from a otherwise short-trimmed head.<br />
-”No. Or i mean, yes i guess you could”.<br />
-”Cool. I will meet you at the cottage tonight. See ya.”<br />
As he pedaled away the bus turned into the bus stop and as I sat on my usual spot I felt quite excited for the coming afternoon.</p>
<p>A couple of hours later the bus stopped at the very same bus stop again. When it made that typical buss &#8211; farting &#8211; on leaving sound and turned out on the road again i turned around and he was already waiting.<br />
-”Lets go!? Jump up on the back and lets get out of here!” He pointed towards the luggage rack and I slipped up behind him and we started moving. -”So how was city school today? Stock lectures?” He grinned.</p>
<p>He took me to an old barn. Red, and huge and in the middle of nowhere. Left of the door the roof had caved in, and it looked like it happened lots of years ago.<br />
-”What is this place?” I realised my yaw must be somewhere between my knees and quickly closed my mouth. “Anyone using this place?”<br />
-”Well i am. Come, what i want to show you is on the backside of the barn, but we have to go through it to get there. “<br />
If it looked big from the outside it felt even bigger when coming inside. The caved in roof gave the left side a look of ‘you can only se half of the barn, but it goes on forever behind the caved in roof’. The right side on the other side ended a couple of meters in, but still big enough for a couple of tractors or so. But no sign of tractors here, instead all kinds of old junk where lying around. A old rocking chair lying next to half of a spinning wheel. In a crate old half rotten wool was lying around giving the whole place a smell of wet rotten sheep. In front of us was an even bigger door then the one we came through which squeaked open as Ian gave it a push.<br />
-”We came in the from the back door, and what we want is on the inside. Come on.”<br />
As we stepped out on the yard &#8211; and truly a yard it was &#8211; the surroundings gave me a feeling of traveling 100 years back in time. There was another house that could not be seen from where we came, it was an old mansion with most of the roofs and walls caved in. Some benches made of a big tree still stood upright surrounding a old stone table that looked like it easily could stand there for a thousand years more without breaking. From the forest came a road leading up to the barn, surrounding a well and a flagpole. The road made of gravel was now covered with dandelions.<br />
-”This place is amazing. How come no one has renovated it? How do you know of it?”<br />
He smiled.<br />
-”I don’t know. My father showed it to me. Apparently my fathers grand grandfather lived here, as a cattle herder. But something happened to the family owning the place and they moved. Maybe to the city, I don’t know. My ancestor moved as well and since then the place has been empty except for some rats and bats.<br />
-”Rats and bats ey. I could tell. “ The wind blew up some dust and a cold chill went down my spine.<br />
-”Come on. I want to show you the well. Its older then the mansion and rumour is its a true wishing well. Throw something precious inside, make a wish and it will come true.”<br />
-”There is no such thing as a real wishing well. You talk of fairy tales!” Even though i put a mocking smile to my lips when i said it was intrigued.<br />
-”And how do you know that you are currently not living in a fairytale? Do you think Rapunzel knew she was? Its the tales making its way from mouth to mouth that gives it life. When your children will talk about this to their grandchildren about how you made a wish that came through it will be a tale. “ No grin this time. His face had a thoughtful look as he said it.<br />
-”In a fairytale no one ever goes to school learning all the boring things we do every day.” I countered. “Hence this can’t be a fairytale”. Even though i wanted to behave mature, and logical, this whole situation just made me feel more childish than ever. Ian looked quite the opposite of childish.<br />
-”But why do you go to school then? Why don’t you live everyday as if it was a fairytale? Stop arguing now, what do you have to lose anyway? Give a gift to the well, whisper your wish to it and come back to me. I will be waiting by the barn. “<br />
And he walked away leaving me with the well, my thoughts and my childish pride. It could not be for real. If it was real, people would be lining up to get their wishes granted. Anyway I stood waiting, thinking of my whish.<br />
-”Remember you have to give the well a gift of meaning. Something precious to you. Otherwise it will not work.” Ian&#8217;s voice came from behind me and I nodded to him without turning around.<br />
It occured to me at once. I’d give it my shoes. I slipped out of them, now two years old that had kept amazingly well together and put them to my breast. I spin in them and let them fall over the edge of the fern covered well and as in slow motion they disappeared in the depth of the well some second before there came a splash. Suddenly a bit stressed about what to wish for i gathered my thoughts. First there was nothing. And then it came to me, the one thing i whispered out in the dark every now and then before falling asleep. Now i whispered it down the well, with the my voice bouncing between the walls like the sound of a snake.<br />
Let my mother and father find back to each other again. Not for my sake, but for their. Let them love each other again, like they did when they first met each other and let the love stay with them until the end.<br />
I kissed the ferny rocks and turned around giving the deep well a last look and for a second it almost looked like something was glimmering in the water. Wish accepted it said. But when looking more thoroughly i saw nothing but darkness.<br />
-”Your shoes huh? Good thinking there, although I would not want to walk through the barn barefoot with all the junk lying there. “<br />
-”It will be allright, i am used to walking barefoot. What did you give it?” I looked him in the eyes, i felt no more like a child, but more like i had done something good.<br />
-”I gave it my gameboy. It was maybe two weeks after my father showed me this place, and i realised i did not want to spend my days gaming. So i threw it in and havent played an hour tv or computer games since.” He looked me in the eyes, cleared his throat and continued. “There are some more rules you should know about. You are only allowed to show this place to one person. Not two, not three. Only one. If you break the rule your wish will not be granted, and if it’s already been it will be taken from you.”<br />
-”By who? Who can take a granted wish from me?” This confused me quite a bit. No more logical thoughts in my head, now believing that my wish truly could be granted.<br />
-” I don’t know” he answered. “But my guess is that it&#8217;s the same being that grants the wish. I have not met him, her, it and I don’t plan to either. I am happy knowing that my wish is granted, it was fulfilled and I don’t want that taken from me. “<br />
-” ah. okay. “ i did not know what to say. this was strange.<br />
-”Lets get you home before you freeze your toes off. Come on!” And we walked back through the barn.</p>
<p>As we got home Ian left me by the gates. As i approached the house i could see father was playing music, I don’t know how, but even before the sound reached through the thick walls I just knew it. The house was warm and as i stepped inside i could feel my feet starting to itch as they started to warm up. “Dad i am home!”<br />
-”Where have you been love?, You did not come home from school?” He did not sound worried, I was a big girl.<br />
-”Found myself a friend, been out all afternoon. Need to wash myself before dinner!”<br />
-”Okay, it’s finished already, I will put it on the table.” He started moving.<br />
-”And dad, i kinda lost my shoes, so I need some new ones.” And before he could answer i was on my way to the bathroom.</p>
<p>Next day mother drove in through the gates. She never came here. I usually just took the bus.<br />
-”Hello darling, thought i would pick you up today. Haven’t been here for a long time. “ I saw here standing there, smiling. Yet I could not believe this happening. My parents, on the same location, not arguing.<br />
-”Is that your father over there at the apple trees? Did he do something to his hair? He looks different.”<br />
And from that moment i knew the well had accepted my offer.</p>
]]></content:encoded>
			<wfw:commentRss>http://larsemil.se/rottenapples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boktips tack!</title>
		<link>http://larsemil.se/boktips-tack2/</link>
		<comments>http://larsemil.se/boktips-tack2/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 14:12:55 +0000</pubDate>
		<dc:creator>Emil</dc:creator>
				<category><![CDATA[Allmänt]]></category>

		<guid isPermaLink="false">http://larsemil.se/?p=4727</guid>
		<description><![CDATA[Jag är helt fast på fantasy nu.  Efter att ha läst Name of the wind och Wise mans fear av Pathrick Rothfuss så vaknade mitt gamla fantasyintresse till liv, borta var de smått barnsliga böckerna som jag läste under finniga tonnår. Inte bara jag hade mognat, utan så även fantasygenren. Hurra tänkte jag och slukade Left hand [...]]]></description>
			<content:encoded><![CDATA[<p>Jag är helt fast på fantasy nu.  Efter att ha läst <a href="http://www.adlibris.com/se/product.aspx?isbn=0575081406" target="_blank">Name of the wind</a> och <a href="http://www.adlibris.com/se/product.aspx?isbn=0575099569" target="_blank">Wise mans fear</a> av Pathrick Rothfuss så vaknade mitt gamla fantasyintresse till liv, borta var de smått barnsliga böckerna som jag läste under finniga tonnår. Inte bara jag hade mognat, utan så även fantasygenren. Hurra tänkte jag och slukade<a href="http://www.adlibris.com/se/product.aspx?isbn=0141042370" target="_blank"> Left hand of god</a> samt<a href="http://www.adlibris.com/se/product.aspx?isbn=0718155203" target="_blank"> last four things</a> och hela<a href="http://www.adlibris.com/se/product.aspx?isbn=0345529057" target="_blank"> game of thrones serien</a>. Bra böcker, precis det jag är på jakt efter. Nu senast så har jag streckläst <a href="http://www.adlibris.com/se/product.aspx?isbn=0316033669" target="_blank">de</a> <a href="http://www.adlibris.com/se/product.aspx?isbn=0316033677" target="_blank">här</a> <a href="http://www.adlibris.com/se/product.aspx?isbn=0316033650" target="_blank">böckerna</a> av Brent Weeks så har jag helt plötsligt fått slut på ideer över vad jag ska läsa. Några tips har jag <a title="Boktips: Kingkiller triology" href="http://larsemil.se/boktips-kingkiller-triology/">fått här</a> men är på ständig jakt efter fler tips! Så snälla, har du ett tips på bra fantasy som jag bör läsa &#8211; hojta till på en gång!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://larsemil.se/boktips-tack2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Yogahuset Falun!</title>
		<link>http://larsemil.se/yogahuset-falun/</link>
		<comments>http://larsemil.se/yogahuset-falun/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 19:28:02 +0000</pubDate>
		<dc:creator>Emil</dc:creator>
				<category><![CDATA[Allmänt]]></category>

		<guid isPermaLink="false">http://larsemil.se/?p=4605</guid>
		<description><![CDATA[Nu kan du göra Yoga i Falun! Nästa vecka så slår yogahuset i Falun upp portarna. De ger en hel vecka full med gratis provapå-pass innan det kör igång med de regelbundna passen. En av initiativtagarna är ingen mindre än min älskade MA och hennes företag Dalayoga. Så om du är det minsta intresserad av [...]]]></description>
			<content:encoded><![CDATA[<p>Nu kan du göra <a title="Yoga i Falun" href="http://yogahusetfalun.se" target="_blank">Yoga i Falun</a>! Nästa vecka så slår yogahuset i Falun upp portarna. De ger en hel vecka full med gratis provapå-pass innan det kör igång med de regelbundna passen. En av initiativtagarna är ingen mindre än min älskade MA och hennes företag <a title="Dalayoga" href="http://dalayoga.se" target="_blank">Dalayoga</a>.</p>
<p>Så om du är det minsta intresserad av Yoga och bor i Falun så åk dit under nästa vecka och prova! Det finns <a title="Schema prova-på veckan" href="http://yogahusetfalun.se/2011/08/schema-prova-pa-veckan/" target="_blank">pass</a> som passar alla sorters människor!</p>
]]></content:encoded>
			<wfw:commentRss>http://larsemil.se/yogahuset-falun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mugshot från sswc</title>
		<link>http://larsemil.se/mugshot-fran-sswc/</link>
		<comments>http://larsemil.se/mugshot-fran-sswc/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 15:53:50 +0000</pubDate>
		<dc:creator>Emil</dc:creator>
				<category><![CDATA[Allmänt]]></category>
		<category><![CDATA[Dalnix]]></category>
		<category><![CDATA[Webb]]></category>
		<category><![CDATA[bild]]></category>
		<category><![CDATA[emil]]></category>
		<category><![CDATA[mugshot]]></category>
		<category><![CDATA[sswc]]></category>

		<guid isPermaLink="false">http://larsemil.se/?p=4586</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_4587" class="wp-caption aligncenter" style="width: 409px"><a href="http://www.flickr.com/groups/1782567@N22/pool/"><img class="size-large wp-image-4587" title="6045475336_a578d33b5c_o" src="http://larsemil.se/wp-content/uploads/2011/08/6045475336_a578d33b5c_o-399x600.jpg" alt="" width="399" height="600" /></a><p class="wp-caption-text">Mugshot sswc</p></div>
]]></content:encoded>
			<wfw:commentRss>http://larsemil.se/mugshot-fran-sswc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hittade mig själv på youtube</title>
		<link>http://larsemil.se/hittade-mig-sjalv-pa-youtube/</link>
		<comments>http://larsemil.se/hittade-mig-sjalv-pa-youtube/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 17:59:44 +0000</pubDate>
		<dc:creator>Emil</dc:creator>
				<category><![CDATA[Allmänt]]></category>
		<category><![CDATA[Dalnix]]></category>
		<category><![CDATA[dalnix]]></category>
		<category><![CDATA[emil]]></category>
		<category><![CDATA[Företag]]></category>

		<guid isPermaLink="false">http://larsemil.se/?p=4584</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="349" src="http://www.youtube.com/embed/0HZrxG5FQO0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://larsemil.se/hittade-mig-sjalv-pa-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guide: Ruby on Rails på Ubuntu med Mysql, passenger och vhosts.</title>
		<link>http://larsemil.se/guide-ruby-on-rails-pa-ubuntu-med-mysql-passenger-och-vhosts/</link>
		<comments>http://larsemil.se/guide-ruby-on-rails-pa-ubuntu-med-mysql-passenger-och-vhosts/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 07:15:26 +0000</pubDate>
		<dc:creator>Emil</dc:creator>
				<category><![CDATA[Allmänt]]></category>
		<category><![CDATA[Teknik]]></category>
		<category><![CDATA[Webb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[webb]]></category>

		<guid isPermaLink="false">http://larsemil.se/?p=4556</guid>
		<description><![CDATA[Ruby on Rails är ett framework för att utveckla webapplikationer. Det bygger på ruby som är ett objektorienterat högnivårspråk. Det skiljer sig i mångt och mycket från det vanligare språket php. Det som är spännande med just ruby är dels att objektorienteringen är så djupt integrerad som den är, samt att det tillsammans med frameworket [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby on Rails är ett framework för att utveckla webapplikationer. Det bygger på ruby som är ett objektorienterat högnivårspråk. Det skiljer sig i mångt och mycket från det vanligare språket php. Det som är spännande med just ruby är dels att objektorienteringen är så djupt integrerad som den är, samt att det tillsammans med frameworket Rails blir en fantastisk plattform att utveckla på.</p>
<p>Googla efter guider om hur man kommer igång med Ruby on Rails, den här guiden handlar istället om hur man sätter upp en Ubuntu server för att kunna köra webbapplikationer byggda med just Ruby On Rails.</p>
<p>Jag använde mig av en Ubuntu 10.04 som är en long time support när jag gjorde det här och valde att köra Apache som webbserver då jag har  erfarenhet av den sen förut.</p>
<p>Det första jag behövde göra var att installera paketet build-essential. Det innehåller diverse verktyg för att bygga och kompilera paket från källkod, vilket vi kommer behöva i den här guiden. Vi installerar också programmeringsspråket ruby.</p>
<p><em><strong>OBS!</strong>Den här guiden kräver att du har administratörsrättigheter(sudo) på servern du vill installera det på. </em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby-full build-essential</pre></div></div>

<p>När det är klart så behöver vi installera webbservern apache, och lite paket som hör till den.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 apache2-mpm-prefork apache2-prefork-dev</pre></div></div>

<p>Vi vill också aktivera några moduler som vi vill att apache2 ska använda, och när det är gjort så startar vi om apache.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod proxy
<span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod proxy_http
<span style="color: #c20cb9; font-weight: bold;">sudo</span> a2enmod rewrite
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<p>När det är klart så vill vi installera mongrel. Mongrel är också en webbserver, men i den här setupen så använder vi den tillsammans med proxy_http modulen med apache som en lastbalanserare.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mongrel</pre></div></div>

<p>Sådär. Nu ska vi ta och installera gems till ruby. Gems är vad man kan likna vid plugins eller moduler till språket. Rails är ett gem så för att ha senaste versionen att leka med så installerar vi rubygems.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>production.cf.rubygems.org<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>rubygems-1.8.6.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-zxvf</span> rubygems-1.8.6.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> rubygems-1.8.6<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ruby setup.rb
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem update <span style="color: #660033;">--system</span></pre></div></div>

<p>Så där, nu kan vi använda kommandot gems för att installera de gems vi vill ha. Eftersom vi vill sätta upp rails så är det vad vi nu vill göra.</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> rails</pre></div></div>

<p>Eftersom vi också vill att rails ska kunna integrera med en databas, i det här fallet mysql så installerar vi de kopplingar som behövs för det, samt också själva mysql-servern.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server libmysql-ruby libmysqlclient-dev</pre></div></div>

<p>Vi kommer också att behöva passenger, som även det är ett ruby-gem. Passenger (som även kallas mod_rails ibland) är en modul till apache för att köra ruby web applikationer i apache.<br />
För att kunna installera det måste vi först installera några andra paket.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2-dev libapr1-dev libaprutil1-dev</pre></div></div>

<p>Och sen kan vi köra igång med installationen av passenger.<br />
Följ instruktionerna som dyker upp på skärmen.</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> passenger
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sudo</span> passenger-install-apache2-module
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libcurl4-openssl-dev
<span style="color: #c20cb9; font-weight: bold;">sudo</span> passenger-install-apache2-module</pre></div></div>

<p>För att få apache att känna av det här så lägger vi till följande rader i filen /etc/apache2/apache2.conf som du kan öppna med din favoriteditor(vim, nano)</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">#Rails specific
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7
   PassengerRuby /usr/bin/ruby1.8</pre></div></div>

<p>Och när det är gjort så startar vi om apache.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> service apache2 restart</pre></div></div>

<p>Nu är vi egentligen klara att köra. Hur du bygger din webbapplikation är något som den här guiden inte tar upp, men jag bifogar ett exempel på en vhostfil som du kan använda när du sätter upp din applikation.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;VirtualHost *:80&gt;
      ServerName railstest.daladevelop.se
      DocumentRoot /var/www/railsapplication/public$    # &lt;-- be sure to point to 'public'!
      &lt;Directory /var/www/railsapplication/public&gt;
         AllowOverride all              # &lt;-- relax Apache security settings
         Options -MultiViews            # &lt;-- MultiViews must be turned off
      &lt;/Directory&gt;
   &lt;/VirtualHost&gt;</pre></div></div>

<p>Om allt gått som det ska så är du nu redo för att sjösätta din första webbapplikation skriven med ruby on rails. Förhoppningsvis så går det som på räls. Pun intended. Lycka till!<br />
<em>Kommentera gärna om det är något som inte fungerar så ändrar jag</em></p>
]]></content:encoded>
			<wfw:commentRss>http://larsemil.se/guide-ruby-on-rails-pa-ubuntu-med-mysql-passenger-och-vhosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebookutvecklare kopierar Google+ väncirklar</title>
		<link>http://larsemil.se/facebookutvecklare-kopierar-google-vancirklar/</link>
		<comments>http://larsemil.se/facebookutvecklare-kopierar-google-vancirklar/#comments</comments>
		<pubDate>Sun, 03 Jul 2011 17:50:51 +0000</pubDate>
		<dc:creator>Emil</dc:creator>
				<category><![CDATA[Allmänt]]></category>

		<guid isPermaLink="false">http://larsemil.se/?p=4520</guid>
		<description><![CDATA[En av de stora funktionerna som Google+ slår på stora trumman med i marknadsföringen om sin nya tjänst är deras sociala cirklar. Med deras hjälp kan man lätt administrera sina vänner och ange inställningar för hur publika cirklarna ska vara. T.ex så kan man ange att det här är min inre familj, och de har [...]]]></description>
			<content:encoded><![CDATA[<p>En av de stora funktionerna som Google+ slår på stora trumman med i marknadsföringen om sin nya tjänst är deras sociala cirklar. Med deras hjälp kan man lätt administrera sina vänner och ange inställningar för hur publika cirklarna ska vara. T.ex så kan man ange att det här är min inre familj, och de har full tillgång till din data, medans de här är flyktiga bekanta som kanske inte ska ha tillgång till allt du delar. Nu har några facebookutvecklare gått ihop och utvecklat facebookpluginen/tjänsten <a title="Circlehack" href="http://www.circlehack.com" target="_blank">circlehack</a> som låter dig administrera din vänlistor på facebook på ett lika enkelt sätt som i Google+.</p>
<p>Det här är något vi kommer att se mera av framöver om Google+ lyckas att slå sig in och faktiskt ta en del av marknaden av giganten Facebook, för det kommer att tvinga Facebook att faktiskt utvecklas mer, och de kommer att ha någon att titta över axeln på för första gången sedan de utrotade alla småcommunitys som fanns(lunarstorm etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://larsemil.se/facebookutvecklare-kopierar-google-vancirklar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tacopajdeg</title>
		<link>http://larsemil.se/tacopajdeg/</link>
		<comments>http://larsemil.se/tacopajdeg/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 15:12:07 +0000</pubDate>
		<dc:creator>Emil</dc:creator>
				<category><![CDATA[Allmänt]]></category>
		<category><![CDATA[deg]]></category>
		<category><![CDATA[recept]]></category>
		<category><![CDATA[tacopaj]]></category>

		<guid isPermaLink="false">http://larsemil.se/?p=834</guid>
		<description><![CDATA[Återigen &#8211; note to self. Varje gång jag ska göra tacopaj måste jag googla det här: ﻿﻿ Alternativ pajdeg utan förgräddning: 4 dl vetemjöl 2 tsk bakpulver 0,5 tsk salt 50 g smör 1,5 dl mjölk]]></description>
			<content:encoded><![CDATA[<p>Återigen &#8211; note to self. Varje gång jag ska göra tacopaj måste jag googla det här:</p>
<p>﻿﻿</p>
<h3>Alternativ pajdeg utan förgräddning:</h3>
<ul>
<li>4 dl vetemjöl</li>
<li>2 tsk bakpulver</li>
<li>0,5 tsk salt</li>
<li>50 g smör</li>
<li>1,5 dl mjölk</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://larsemil.se/tacopajdeg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: larsemil.se @ 2012-05-19 06:15:38 by W3 Total Cache -->
