Permalink
Browse files

Update to latest Jekyll, use Redcarpet for markup

  • Loading branch information...
1 parent 0ce94c8 commit c99655d9c5a81ca6bc98883b87a53539f986947f @radar committed Jun 12, 2013
Showing 348 changed files with 6,744 additions and 4,742 deletions.
View
@@ -1,2 +1,5 @@
auto: true
permalink: /:year/:month/:title
+markdown: redcarpet
+redcarpet:
+ extensions: [footnotes]
@@ -1,9 +1,9 @@
----
-wordpress_id: 108
-layout: post
-title: "Restful Routing: An Overview"
-wordpress_url: http://frozenplague.net/?p=108
----
+---
+wordpress_id: 108
+layout: post
+title: "Restful Routing: An Overview"
+wordpress_url: http://frozenplague.net/?p=108
+---
Here's something I posted on rubyonrails talk:
In truth, restful routing is plain and simple. It's like those books you wrote when you were a kid in kindergarten that if a book critic were to read them he would jab his eyes out with a pen.
@@ -15,7 +15,9 @@ It all starts with the good 'ol config/routes.rb file. In here is where all the
map.resources :forums, :has_many => :topics
map.resources :topics, :has_many => :posts
map.resources :posts</pre>
+
Not running on Rails 2.0? Then this is the code you want:
+
<pre lang="rails">
map.resources :forums do |forum|
forum.resources :topics, :name_prefix => "forum_"
@@ -25,7 +27,9 @@ map.resources :topics do |topic|
topic.resources :posts, :name_prefix => "topic_"
end
-map.resources :posts</pre>
+map.resources :posts
+</pre>
+
This defines routes like:
<pre>/forums/1</pre>
- Show a forum
@@ -181,3 +181,5 @@ RVM is such a powerful tool and comes in handy for day-to-day Ruby development.
Thanks to <a href='http://twitter.com/krainboltgreene'>krainboltgreene</a> for pointing out that the guide needed to install the packages specified by rvm requirements. He's got a similar <a href='http://krainboltgreene.github.com/l/3'>write up here for Ubuntu 10.04</a>. Some of the instructions in this guide were "inspired" by that post.
+This article has been translated to <a href="http://science.webhostinggeeks.com/zivot-radara">Serbo-Croatian</a> language by Anja Skrba from <a href="http://webhostinggeeks.com/"> Webhostinggeeks.com</a>.
+
View
@@ -0,0 +1 @@
+RewriteRule /feed /feed.rss
@@ -13,17 +13,18 @@ <h1 align='center'><a href='http://ryanbigg.com'>The Life of a Radar</a></h1>
<small>29 May 2007</small><br>
<p>The Friday just gone (well, 4 days ago), was my last day working at Coles. A customer with her kid came through my register, and the kid was coughing up BOTH lungs and sounding not all that good about it.</p>
-<p>I joked about it, &#8220;Wouldn&#8217;t it be funny if I got sick on my last day?&#8221;</p>
+<p>I joked about it, &quot;Wouldn&#39;t it be funny if I got sick on my last day?&quot;</p>
-<p>It happened. I now have a cold which I think I&#8217;m smack-bang in the middle of. It&#8217;s wrapped itself around my vocal chords and my voice cracks whenever I try to speak, even saying something simple like &#8220;Bye&#8221; comes out all distorted.</p>
+<p>It happened. I now have a cold which I think I&#39;m smack-bang in the middle of. It&#39;s wrapped itself around my vocal chords and my voice cracks whenever I try to speak, even saying something simple like &quot;Bye&quot; comes out all distorted.</p>
-<p>I hope that this thing goes away before Monday. Wouldn&#8217;t that be horrible? Turning up to a new job and being sick on the first day.</p>
+<p>I hope that this thing goes away before Monday. Wouldn&#39;t that be horrible? Turning up to a new job and being sick on the first day.</p>
-<p>My energy&#8217;s completely shot by about 6&#8217;oclock every night and I haven&#8217;t been able to have a good sleep-in because my throat&#8217;s been feeling like crap.</p>
+<p>My energy&#39;s completely shot by about 6&#39;oclock every night and I haven&#39;t been able to have a good sleep-in because my throat&#39;s been feeling like crap.</p>
<p>If anyone wants my cold, they may take it, $4.95 + Postage &amp; Handling.</p>
-<p><span>img</span>/img/funny/colds-rock.jpg<span>/img</span></p>
+<p>[img]/img/funny/colds-rock.jpg[/img]</p>
+
</article>
</div>
<div id='disqus_thread'></div>
@@ -11,13 +11,14 @@ <h1 align='center'><a href='http://ryanbigg.com'>The Life of a Radar</a></h1>
<article>
<a href="/2007/05/clothes-go-here"><header>Clothes Go Here</header></a>
<small>24 May 2007</small><br>
- <p><span>img</span>/img/funny/clothes-go-here.jpg<span>/img</span></p>
+ <p>[img]/img/funny/clothes-go-here.jpg[/img]</p>
<p>My brother seems to not know where they go, so I made that little sign so that he knows.</p>
-<p>In other news, tomorrow is my last day at <span>s</span>Hell<span>/s</span> Coles, and it&#8217;s casual day! I hope everything goes smoothly and I&#8217;ll see you on the other side.</p>
+<p>In other news, tomorrow is my last day at [s]Hell[/s] Coles, and it&#39;s casual day! I hope everything goes smoothly and I&#39;ll see you on the other side.</p>
+
+<p>Oh, and about Monday Night, it starts at 6:30, at my house. If you don&#39;t know where that is you know how to contact me. Bring $5 for pizza.</p>
-<p>Oh, and about Monday Night, it starts at 6:30, at my house. If you don&#8217;t know where that is you know how to contact me. Bring $5 for pizza.</p>
</article>
</div>
<div id='disqus_thread'></div>
@@ -11,17 +11,26 @@ <h1 align='center'><a href='http://ryanbigg.com'>The Life of a Radar</a></h1>
<article>
<a href="/2007/05/im-open"><header>I'm Open!</header></a>
<small>20 May 2007</small><br>
- <p>A lady approached my checkout today with a large trolley with green bags hung over one of the loops on the baby seat. &#8220;Are you open?&#8221; she asked, innocently. &#8220;Well, that depends.&#8221; &#8220;What on?&#8221; &#8220;Well, if today is Monday and the time is between 7am and 11am, during which time I am required by penalty of death or loss of my dearly-beloved job to work, then the answer is yes. Also if the little red sign, similar to one of these,&#8221; I say, grabbing the close sign from under my register and holding it up, &#8220;is <em>not</em> placed at the end of my register then yes, I am open. Also, if I have a look on my face that closely resembles boredom the answer is still most probably yes.&#8221; &#8220;So are you open?&#8221;</p>
+ <p>A lady approached my checkout today with a large trolley with green bags hung over one of the loops on the baby seat.
+&quot;Are you open?&quot; she asked, innocently.
+&quot;Well, that depends.&quot;
+&quot;What on?&quot;
+&quot;Well, if today is Monday and the time is between 7am and 11am, during which time I am required by penalty of death or loss of my dearly-beloved job to work, then the answer is yes. Also if the little red sign, similar to one of these,&quot; I say, grabbing the close sign from under my register and holding it up, &quot;is <em>not</em> placed at the end of my register then yes, I am open. Also, if I have a look on my face that closely resembles boredom the answer is still most probably yes.&quot;
+&quot;So are you open?&quot;</p>
+
+<p>It&#39;s hard to soar like an eagle when you&#39;re surrounded by turkeys.</p>
+
+<hr>
-<p>It&#8217;s hard to soar like an eagle when you&#8217;re surrounded by turkeys.</p>
-<hr />
<p>Today was one of the very, very few days of the year that I actually get mail. It was a small package with a slight bulge in it, and I assumed either it was a nice lump of cash or something from my future employer.</p>
<p>I opened it and read the first page:</p>
-<p>&#8220;Dear Ryan, This letter is to confirm our verbal offer of employment and acceptance to the position of Web Developer - for a six month contract.&#8221;</p>
+<p>&quot;Dear Ryan,
+This letter is to confirm our verbal offer of employment and acceptance to the position of Web Developer - for a six month contract.&quot;</p>
<p>Awesome.</p>
+
</article>
</div>
<div id='disqus_thread'></div>
@@ -11,41 +11,42 @@ <h1 align='center'><a href='http://ryanbigg.com'>The Life of a Radar</a></h1>
<article>
<a href="/2007/05/new-server"><header>New Server</header></a>
<small>16 May 2007</small><br>
- <p>Sometimes I don&#8217;t know why I do it. I turn on my computer before going off to do other things. Then when I inevitably return, there&#8217;s a few messages of people screaming bloody murder because my site has an error, or they want to look at a piece of code. The last thing I want to do when I get home is to &#8220;help&#8221; people. That&#8217;s what I do all day at work. Give me time to sit down, eat dinner, get out of my work clothes, read a comic or three and then I&#8217;ll jump straight back into working on fixing whatever bugs you may find. I&#8217;ll even be nice.</p>
+ <p>Sometimes I don&#39;t know why I do it. I turn on my computer before going off to do other things. Then when I inevitably return, there&#39;s a few messages of people screaming bloody murder because my site has an error, or they want to look at a piece of code. The last thing I want to do when I get home is to &quot;help&quot; people. That&#39;s what I do all day at work. Give me time to sit down, eat dinner, get out of my work clothes, read a comic or three and then I&#39;ll jump straight back into working on fixing whatever bugs you may find. I&#39;ll even be nice.</p>
-<p>You may realise by now that there isn&#8217;t a blog post before this one. This is because some idiot (me) forgot to backup his MySQL database, I had everything else backed up except that. It only had one blog post in it anyway, and I wish to re-write it. The blog post was titled &#8220;Goodbye, Good Luck and Get Out of my Store&#8221; and here&#8217;s how I want to write it today:</p>
+<p>You may realise by now that there isn&#39;t a blog post before this one. This is because some idiot (me) forgot to backup his MySQL database, I had everything else backed up except that. It only had one blog post in it anyway, and I wish to re-write it. The blog post was titled &quot;Goodbye, Good Luck and Get Out of my Store&quot; and here&#39;s how I want to write it today:</p>
-<p>Dear Customers, I have been working at Coles for 2 years, 2 months and 6 days now. It&#8217;s time for me to leave, I have found another job somewhere else, that pays more and has better working conditions (including chairs). You may know me as the &#8220;spiky-haired guy&#8221; or the &#8220;one-with-the-grumpy-face&#8221;, but that&#8217;s only some of the time. I can be nice, but sometimes it takes a little incentive. That&#8217;s just how I am. I would like to address you in groups.</p>
+<p>Dear Customers,
+I have been working at Coles for 2 years, 2 months and 6 days now. It&#39;s time for me to leave, I have found another job somewhere else, that pays more and has better working conditions (including chairs). You may know me as the &quot;spiky-haired guy&quot; or the &quot;one-with-the-grumpy-face&quot;, but that&#39;s only some of the time. I can be nice, but sometimes it takes a little incentive. That&#39;s just how I am. I would like to address you in groups.</p>
-<p><span>b</span>The Elderly<span>/b</span> I don&#8217;t know how you do it, but every day you manage to bring in those green bags of yours. Equally repetitive is your famous catch-cry of &#8220;Hold on, Dear! I have green bags.&#8221; as I start scanning them items you put up before your green bags.</p>
+<p>[b]The Elderly[/b]
+I don&#39;t know how you do it, but every day you manage to bring in those green bags of yours. Equally repetitive is your famous catch-cry of &quot;Hold on, Dear! I have green bags.&quot; as I start scanning them items you put up before your green bags. </p>
-<p>Yes, you can be slow, and lets face it, I&#8217;m an impatient bastard, but you do eventually give me a friendly smile and say goodbye. This makes you unique, in a special way. You can give me the correct change most of the time also, which is sometimes a good thing.</p>
+<p>Yes, you can be slow, and lets face it, I&#39;m an impatient bastard, but you do eventually give me a friendly smile and say goodbye. This makes you unique, in a special way. You can give me the correct change most of the time also, which is sometimes a good thing.</p>
-<p><span>b</span>The Asians<span>/b</span> If it wasn&#8217;t for your consistent buying of discounted items our bins would be over-flowing with out of date stock. You are reliable, efficient and smart. You stare at the monitor looking for mistakes, and if there&#8217;s one you kindly remind me. Sometimes I&#8217;ll miss one, but you can just go up to the Service Desk and get your 18c refund.</p>
+<p>[b]The Asians[/b]
+If it wasn&#39;t for your consistent buying of discounted items our bins would be over-flowing with out of date stock. You are reliable, efficient and smart. You stare at the monitor looking for mistakes, and if there&#39;s one you kindly remind me. Sometimes I&#39;ll miss one, but you can just go up to the Service Desk and get your 18c refund.</p>
-<p><span>b</span>The People Who Talk On Mobile Phones Whilst Being Served<span>/b</span> I find you funny, most of the time. Other times you&#8217;re tolerable, but I would prefer it if you put your mother on hold for the &lt; 2 minutes it takes me to serve you. You don&#8217;t need to shout &#8220;HELLO?!&#8221; down the phone. We don&#8217;t get signal in the building. Don&#8217;t ignore me when I tell you that we don&#8217;t, believe me, I&#8217;ve tried.</p>
+<p>[b]The People Who Talk On Mobile Phones Whilst Being Served[/b]
+I find you funny, most of the time. Other times you&#39;re tolerable, but I would prefer it if you put your mother on hold for the &lt; 2 minutes it takes me to serve you. You don&#39;t need to shout &quot;HELLO?!&quot; down the phone. We don&#39;t get signal in the building. Don&#39;t ignore me when I tell you that we don&#39;t, believe me, I&#39;ve tried.</p>
-<p>In short: Hang up, at least say &#8220;hello&#8221; to me, get served, get out, and then call them back when you&#8217;re not inside.</p>
+<p>In short: Hang up, at least say &quot;hello&quot; to me, get served, get out, and then call them back when you&#39;re not inside.</p>
-<p><span>b</span>The Parents With Screaming Kids<span>/b</span> This is Coles. Last I know, Coles is not a kindergarten, creché, or any other child-care facility. I respect the fact that you don&#8217;t want to leave your kids home alone, or in the car, but please, keep them under control when you&#8217;re in the store. Occasionally I&#8217;m tempted to call security because your children are being absolute ferals. Control your kids.</p>
+<p>[b]The Parents With Screaming Kids[/b]
+This is Coles. Last I know, Coles is not a kindergarten, creché, or any other child-care facility. I respect the fact that you don&#39;t want to leave your kids home alone, or in the car, but please, keep them under control when you&#39;re in the store. Occasionally I&#39;m tempted to call security because your children are being absolute ferals. Control your kids.</p>
<p>Aside: Apparently I used to be one of those kids too. Thankfully, they grow up.</p>
-<p><span>b</span>FlyBuys users<span>/b</span> Lets point out a few points that you should know during the transactional process:</p>
+<p>[b]FlyBuys users[/b]
+Lets point out a few points that you should know during the transactional process:
+1. Before handing me the cash, it is wise to hand me the flybuys card. You may also do this during the process, but not after. I have very quick fingers that like to hit the Cash -&gt; Enter button. My job is to scan your items and get you out of the store.
+2. You can not use your FlyBuys on the $1.00 bread you bought. It only works for amounts of $5 and over.
+3. You get 2 points / $5. Get a life, seriously.
+4. If I &quot;forget&quot; to ask you, it&#39;s not my fault. Would you be sick of asking for FlyBuys for every customer?</p>
-<ol>
-<li>Before handing me the cash, it is wise to hand me the flybuys card. You may also do this during the process, but not after. I have very quick fingers that like to hit the Cash -&gt; Enter button. My job is to scan your items and get you out of the store.</li>
-
-<li>You can not use your FlyBuys on the $1.00 bread you bought. It only works for amounts of $5 and over.</li>
-
-<li>You get 2 points / $5. Get a life, seriously.</li>
-
-<li>If I &#8220;forget&#8221; to ask you, it&#8217;s not my fault. Would you be sick of asking for FlyBuys for every customer?</li>
-</ol>
-
-<p>For this point let&#8217;s elaborate some. Say, on average, it takes me 1 minute to serve customers (on express). Over a 9 hour day I take 1 1/2 hours for lunch &amp; tea breaks. So that&#8217;s 7.5 hours, or 450 minutes. So that&#8217;s 450 times I have to ask for FlyBuys. Not going to happen.</p>
+<p>For this point let&#39;s elaborate some. Say, on average, it takes me 1 minute to serve customers (on express). Over a 9 hour day I take 1 1/2 hours for lunch &amp; tea breaks. So that&#39;s 7.5 hours, or 450 minutes. So that&#39;s 450 times I have to ask for FlyBuys. Not going to happen.</p>
<p>That is, unless someone can provide me with a YakBak. Those things were cool back in the day.</p>
+
</article>
</div>
<div id='disqus_thread'></div>
Oops, something went wrong.

0 comments on commit c99655d

Please sign in to comment.