<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Bloggitation</title>
    <link>http://typo.onxen.info/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Bloggitation</description>
    <item>
      <title>Cookie Based Sessions in Current Rails</title>
      <description>&lt;p&gt;Seems &lt;a href="http://ryandaigle.com/articles/2007/2/21/what-s-new-in-edge-rails-cookie-based-sessions"&gt;Cookie Based Sessions are the New Default in Edge Rails&lt;/a&gt; : &lt;em&gt;&amp;#8230;Cookie-based sessions are just faster to retrieve and process than hitting the file-system on every request. Plus, I would imagine they scale considerably better as they’re persisted on the client side and have no server-side persistence requirements&amp;#8230;&lt;/em&gt;&lt;/p&gt;


So I made a &lt;a href="http://bgjap.net/code/ruby/ror/session_store-1.13.2.patch"&gt;cookie-based sessions patch agains current Rails&lt;/a&gt; (&lt;strong&gt;actionpack-1.13.2&lt;/strong&gt;). Usage (from inside your project):
&lt;pre&gt;
rake rails:freeze:gems
cd vendor
wget http://bgjap.net/code/ruby/ror/session_store-1.13.2.patch
patch -p0 &amp;lt; session_store-1.13.2.patch
&lt;/pre&gt;</description>
      <pubDate>Wed, 21 Feb 2007 18:55:00 PST</pubDate>
      <guid>http://typo.onxen.info/articles/2007/02/21/cookie-based-sessions-in-current-rails</guid>
      <link>http://typo.onxen.info/articles/2007/02/21/cookie-based-sessions-in-current-rails</link>
      <category>Programing</category>
      <category>Ruby</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/132</trackback:ping>
    </item>
    <item>
      <title>MicroRails</title>
      <description>&lt;p&gt;minimal = &lt;span class="caps"&gt;KISS &lt;/span&gt;= i like it :)&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://camping.rubyforge.org/files/README.html"&gt;Camping&lt;/a&gt; &lt;em&gt;is a web framework which consistently stays at less than 4kb of code.&lt;/em&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://rubyforge.org/projects/mosquito"&gt;Mosquito&lt;/a&gt; &lt;em&gt;is a simple test framework for why the lucky stiff&amp;#8217;s Camping web library. It provides simple hooks and a few assertions for doing unit and functional tests on your Camping models and controllers.&lt;/em&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://www.mathewabonyi.com/articles/2007/01/10/introducing-microtest/"&gt;MicroTest&lt;/a&gt; . see also &lt;a href="http://www.mathewabonyi.com/articles/category/ruby/"&gt;Archive for the ’Ruby’ Category&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://comatose.rubyforge.org/"&gt;Comatose&lt;/a&gt; &amp;#8211; &lt;em&gt;Comatose is a micro &lt;span class="caps"&gt;CMS&lt;/span&gt;, implemented as a Rails plugin, that is designed to be easy to embed and extend.&lt;/em&gt;&lt;/li&gt;
	&lt;/ul&gt;</description>
      <pubDate>Wed, 24 Jan 2007 00:06:00 PST</pubDate>
      <guid>http://typo.onxen.info/articles/2007/01/24/microrails</guid>
      <link>http://typo.onxen.info/articles/2007/01/24/microrails</link>
      <category>Programing</category>
      <category>Ruby</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/131</trackback:ping>
    </item>
    <item>
      <title>6th Kansai Rails meeting in Kobe</title>
      <description>&lt;p&gt;After small timeout I found a time to put some  &lt;a href="http://zh.stikipad.com/notes/show/rails6kobe"&gt;notes for the last Rails meeting in Kobe&lt;/a&gt; .&lt;/p&gt;


	&lt;p&gt;Sometimes &lt;a href="http://stikipad.com/"&gt;StikiPad&lt;/a&gt; is down (specially when i need my notes ;) ), so like a work around will try to duplicate all notes on the self-hosted &lt;a href="http://www.junebugwiki.com/"&gt;Junebug&lt;/a&gt; -powered &lt;a href="http://wiki.zhekov.net/"&gt;wiki&lt;/a&gt; . For the related discussions there is a &lt;a href="http://beast.caboo.se/"&gt;Beast&lt;/a&gt; -powered &lt;a href="http://forum.zhekov.net/forums/1"&gt;forum&lt;/a&gt; . Hahahah &lt;strong&gt;&lt;em&gt;&amp;#169; Powered by RoR&lt;/em&gt;&lt;/strong&gt; site a ;) The only missing part is maybe &lt;a href="http://mephistoblog.com/"&gt;Mephisto&lt;/a&gt; for blogging. Or I can use my homemade &lt;a href="http://code.google.com/p/restolog/"&gt;Restolog&lt;/a&gt; when it&amp;#8217;s ready.&lt;/p&gt;</description>
      <pubDate>Wed, 24 Jan 2007 00:02:00 PST</pubDate>
      <guid>http://typo.onxen.info/articles/2007/01/24/rails6kobe</guid>
      <link>http://typo.onxen.info/articles/2007/01/24/rails6kobe</link>
      <category>Ruby</category>
      <category>Personal</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/130</trackback:ping>
    </item>
    <item>
      <title>Webserver with Mongrel</title>
      <description>&lt;p&gt;After seen a small webservers in &lt;a href="http://naoya.g.hatena.ne.jp/naoya/20061113/1163418064"&gt;Perl&lt;/a&gt; and &lt;a href="http://subtech.g.hatena.ne.jp/secondlife/20061113/1163419442" title="webrick"&gt;Ruby&lt;/a&gt; here is my try with using &lt;a href="http://mongrel.rubyforge.org/"&gt;Mongrel&lt;/a&gt; :&lt;/p&gt;


&lt;em&gt;Start an webserver on all interfaces (0.0.0.0), port 3002, serving static pages from ./html/ directory:&lt;/em&gt;
&lt;pre&gt;
require 'mongrel'

config = Mongrel::Configurator.new :host =&amp;gt; "0.0.0.0", :port =&amp;gt; 3002 do
  listener { uri "/", :handler =&amp;gt; Mongrel::DirHandler.new("html/") }
  trap("INT") { stop }
  run
end

config.join
&lt;/pre&gt;

And with adding some statistics (on &lt;em&gt;http://.../status/&lt;/em&gt; &lt;span class="caps"&gt;URL&lt;/span&gt;):
&lt;pre&gt;
#!/usr/bin/env ruby
require 'rubygems'
require 'mongrel'
require 'yaml'

stats = Mongrel::StatisticsFilter.new(:sample_rate =&amp;gt; 1)

config = Mongrel::Configurator.new :host =&amp;gt; "0.0.0.0", :port =&amp;gt; 3002 do
  listener do
    uri "/", :handler =&amp;gt; Mongrel::DirHandler.new("html/")
    uri "/", :handler =&amp;gt; stats
    uri "/status", :handler =&amp;gt; Mongrel::StatusHandler.new(:stats_filter =&amp;gt; stats)
  end

  trap("INT") { stop }
  run
end

puts "Mongrel running on 0.0.0.0:3002 with docroot ./html/" 
config.join
&lt;/pre&gt;

	&lt;p&gt;I&amp;#8217;m using it for serving static pages, generated with &lt;a href="http://rote.rubyforge.org/"&gt;Rote&lt;/a&gt; &amp;#8211; pretty fast ;)&lt;/p&gt;</description>
      <pubDate>Mon, 13 Nov 2006 21:49:00 PST</pubDate>
      <guid>http://typo.onxen.info/articles/2006/11/13/webserver-with-mongrel</guid>
      <link>http://typo.onxen.info/articles/2006/11/13/webserver-with-mongrel</link>
      <category>Programing</category>
      <category>SysAdmin</category>
      <category>Ruby</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/129</trackback:ping>
    </item>
    <item>
      <title>The tao of MOOOO</title>
      <description>&lt;p&gt;Just a &lt;a href="http://zh.yazzy.org/blog/archives/2003/06/17/the-tao-of-moooo/"&gt;copy from my old blog&lt;/a&gt; . I&amp;#8217;m not using it anymore, but don&amp;#8217;t want to lose this post:&lt;/p&gt;


&lt;em&gt;I &amp;#8216;saw’ several times people to welcome each other in #netbsd with &amp;#8216;mooooooooooooo’. I wanted to know why? What is the meaning? What is relation between the cows and &lt;span class="caps"&gt;BSD&lt;/span&gt;? The answer from &lt;a href="http://www.advogato.org/person/gilbou/"&gt;gilbert fernandes&lt;/a&gt; follows (thanks a lot for this, gilb):&lt;/em&gt;
&lt;pre&gt;
11:08 &amp;lt; gilb&amp;gt; it all started on openbsd with monkeys
11:08 &amp;lt; gilb&amp;gt; monkeys is another name for some breed of hackers
11:08 &amp;lt; gilb&amp;gt; like dug song
11:08 &amp;lt; gilb&amp;gt; people that develop tools aimed at security/hacking and so on
11:08 &amp;lt; gilb&amp;gt; so for fun, people on openbsd started creating a bestiary
11:08 &amp;lt; gilb&amp;gt; the monkey is the advanced user of openbsd
11:09 &amp;lt; gilb&amp;gt; it’s not only a developer but someone that’s able to write programs to
                     enhance use of openbsd
11:09 &amp;lt; gilb&amp;gt; like dsniff for example ;)
11:09 &amp;lt; gilb&amp;gt; but the monkeys usually write programs fast and spread them,
                     it’s not always cute code
11:09 &amp;lt; gilb&amp;gt; there is an other breed: the cows
11:09 &amp;lt; gilb&amp;gt; the cows do things slowly but with care
11:09 &amp;lt; gilb&amp;gt; they chew code like real life cows chew grass
11:10 &amp;lt; gilb&amp;gt; code is written, written again and again, and has to pass all checks and so on
11:10 &amp;lt; gilb&amp;gt; cows are also considerated as meditative users
11:10 &amp;lt; gilb&amp;gt; they spend a lot of time reading and fixing code, porting code, writing docs :)
11:10 &amp;lt; gilb&amp;gt; the cows take things slowly to get farther
11:11 &amp;lt; gilb&amp;gt; while monkeys choose a target and fulfill it
11:11 &amp;lt; gilb&amp;gt; thus the cow has a wider scope and aims. that’s the tao of the cow
11:11 &amp;lt; gilb&amp;gt; then we got the weasels
11:11 &amp;lt; gilb&amp;gt; and dragons
11:11 &amp;lt; gilb&amp;gt; dragons = senior developer
11:12 &amp;lt; gilb&amp;gt; a weasel is an admin
11:12 &amp;lt; gilb&amp;gt; an openbsd admin is a weasel
11:12 &amp;lt; gilb&amp;gt; expert is making sure a server is up all the time, day and night
11:12 &amp;lt; gilb&amp;gt; the dragons are the keepers of thy code
11:12 &amp;lt; gilb&amp;gt; their lair contains a lot of ancient and rare machines
11:12 &amp;lt; gilb&amp;gt; and their pride is porting bsd code to those machines
11:12 &amp;lt; gilb&amp;gt; like VAX, old IBM servers and so on
11:13 &amp;lt; gilb&amp;gt; and they protect that lair like dragons protect their gold
11:13 &amp;lt; gilb&amp;gt; they are also called dragons because they usually burn people down in FLAMES
11:13 &amp;lt; gilb&amp;gt; :&amp;gt;
11:13 &amp;lt; gilb&amp;gt; like: “get a life, move away from BSD and don’t write on our mailing-list ever.
                     even if you reincarnate.”
11:13 &amp;lt; gilb&amp;gt; well.. you know what a flame is :)
11:14 &amp;lt; gilb&amp;gt; the bestiary is just geek talk
11:15 &amp;lt; gilb&amp;gt; the newbies do not exist in the bestiary
11:15 &amp;lt; gilb&amp;gt; they are in the void
11:15 &amp;lt; gilb&amp;gt; casted into null pointers
11:15 &amp;lt; gilb&amp;gt; :)
11:15 &amp;lt; gilb&amp;gt; a cow is like a buddha-wanabee
11:16 &amp;lt; gilb&amp;gt; the tao of the cow explains there is no beginning
11:16 &amp;lt; gilb&amp;gt; it’s just a cycle
11:16 &amp;lt; gilb&amp;gt; the cow or monkeys end up being dragons someday, sometimes they don’t
11:16 &amp;lt; gilb&amp;gt; where all begin and ends: it doesn’t matter where you start and where you go
11:17 &amp;lt; gilb&amp;gt; what matters is what you are, and what the tao tells you : what you could become
11:17 &amp;lt; gilb&amp;gt; in fact, we are all already dragons wanabees
11:17 &amp;lt; gilb&amp;gt; we just need to find ourselves, though work and learning
11:17 &amp;lt; gilb&amp;gt; learning programming, unix lore, source code, hacking..
11:18 &amp;lt; gilb&amp;gt; and someday people all around see you shine differently and ask you for guidance
&lt;/pre&gt;</description>
      <pubDate>Fri, 15 Sep 2006 00:11:00 PDT</pubDate>
      <guid>http://typo.onxen.info/articles/2006/09/15/the-tao-of-moooo</guid>
      <link>http://typo.onxen.info/articles/2006/09/15/the-tao-of-moooo</link>
      <category>Fun</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/128</trackback:ping>
    </item>
    <item>
      <title>ruby-1.8.5</title>
      <description>&lt;p&gt;&lt;em&gt;We have just released the latest stable version of Ruby. This is a bug fix release. There should be no big difference from 1.8.4.  We hope &lt;a href="ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz"&gt;1.8.5&lt;/a&gt; is more stable and reliable than its preceding versions.&lt;/em&gt;&lt;/p&gt;


	&lt;p&gt;&amp;#8212;Yukihiro Matsumoto&lt;/p&gt;


	&lt;p&gt;And the &lt;a href="http://eigenclass.org/hiki.rb?ruby+1.8.5+changelog"&gt;change summary by Mauricio Fernandez&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 25 Aug 2006 03:18:00 PDT</pubDate>
      <guid>http://typo.onxen.info/articles/2006/08/25/ruby-1-8-5</guid>
      <link>http://typo.onxen.info/articles/2006/08/25/ruby-1-8-5</link>
      <category>Programing</category>
      <category>Ruby</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/127</trackback:ping>
    </item>
    <item>
      <title>nginx notes</title>
      <description>&lt;p&gt;I put some &lt;a href="http://zh.stikipad.com/notes/show/nginx"&gt;notes for nginx on my wiki&lt;/a&gt; .&lt;/p&gt;


	&lt;p&gt;The rails system administration is like waves &amp;#8211; somebody found a new software and the community just fulfill it. Maybe there must be some name for this effect. Something like &lt;a href="http://en.wikipedia.org/wiki/Digg_effect"&gt;digg-effect&lt;/a&gt; but maybe &lt;a href="http://www.linuxjournal.com/node/1000085"&gt;Rails wave&lt;/a&gt; hahaha.&lt;/p&gt;


	&lt;p&gt;First there was &lt;a href="http://www.lighttpd.net/"&gt;lighttpd&lt;/a&gt; , now &lt;a href="http://sysoev.ru/nginx/"&gt;nginx&lt;/a&gt; comming. Maybe your piece of code will be the next. Are your ready? ;)&lt;/p&gt;</description>
      <pubDate>Fri, 25 Aug 2006 02:59:00 PDT</pubDate>
      <guid>http://typo.onxen.info/articles/2006/08/25/nginx-notes</guid>
      <link>http://typo.onxen.info/articles/2006/08/25/nginx-notes</link>
      <category>SysAdmin</category>
      <category>Ruby</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/126</trackback:ping>
    </item>
    <item>
      <title>[ANN] Restolog-1.2 (beta1)</title>
      <description>Created a &lt;a href="http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/4220cb6cd6c29e67/d8b452c1c86fdaa0#d8b452c1c86fdaa0"&gt;first beta version of Restolog-1.2&lt;/a&gt; . What&amp;#8217;s new in it:
	&lt;ul&gt;
	&lt;li&gt;Textile markup for articles body (act_as_textiled plugin)&lt;/li&gt;
		&lt;li&gt;&lt;span class="caps"&gt;REST&lt;/span&gt; client (&amp;#8216;script/rester&amp;#8217;)&lt;/li&gt;
		&lt;li&gt;New &lt;span class="caps"&gt;REST API&lt;/span&gt; calls added (mostly for articles and comments)&lt;/li&gt;
		&lt;li&gt;Some documentation (README, &lt;span class="caps"&gt;USAGE&lt;/span&gt;, CHANGELOG)&lt;/li&gt;
	&lt;/ul&gt;


Download:
	&lt;ul&gt;
	&lt;li&gt;tarballs: &lt;a href="http://bgjap.net/code/ruby/ror/restolog-1.2b1.tgz"&gt;restolog-1.2b1.tgz&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;span class="caps"&gt;SVN&lt;/span&gt;: &lt;em&gt;svn checkout http://restolog.googlecode.com/svn/trunk/ restolog&lt;/em&gt;&lt;/li&gt;
	&lt;/ul&gt;


Why it is still beta?
	&lt;ul&gt;
	&lt;li&gt;update via &lt;span class="caps"&gt;XML&lt;/span&gt; still do not work&lt;/li&gt;
		&lt;li&gt;authentication via keys inside the &lt;span class="caps"&gt;URL&lt;/span&gt; still not possible (Basic Authentication for now)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;And by request from &lt;a href="http://rubyonrailsblog.com/"&gt;Benjamin&lt;/a&gt; there is &lt;a href="http://bgjap.net/code/ruby/ror/RESTOLOG_USAGE.txt"&gt;pretty detailed Restolog &lt;span class="caps"&gt;USAGE&lt;/span&gt; file&lt;/a&gt; included. Enjoy&lt;/p&gt;</description>
      <pubDate>Thu, 24 Aug 2006 01:57:00 PDT</pubDate>
      <guid>http://typo.onxen.info/articles/2006/08/24/ann-restolog-1-2-beta1</guid>
      <link>http://typo.onxen.info/articles/2006/08/24/ann-restolog-1-2-beta1</link>
      <category>Ruby</category>
      <category>Programing</category>
      <category>REST</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/125</trackback:ping>
    </item>
    <item>
      <title>MapReduce for Ruby: Ridiculously Easy Distributed Programming</title>
      <description>&lt;p&gt;Google’s &lt;a href="http://tech.rufy.com/2006/08/mapreduce-for-ruby-ridiculously-easy.html"&gt;MapReduce is now available for Ruby&lt;/a&gt; (via &lt;em&gt;gem install starfish&lt;/em&gt; ). &lt;a href="http://labs.google.com/papers/mapreduce.html"&gt;MapReduce&lt;/a&gt; is the technique used by Google to do monstrous distributed programming over 30 terabyte files.&lt;/p&gt;


Here is the basic code that will get you up and running with MapReduce in &lt;a href="http://rufy.com/starfish/doc/classes/Starfish.html"&gt;Starfish&lt;/a&gt; .
&lt;pre&gt;
    # item.rb
    ActiveRecord::Base.establish_connection(
      :adapter  =&amp;gt; "mysql",
      :host     =&amp;gt; "localhost",
      :username =&amp;gt; "root",
      :password =&amp;gt; "",
      :database =&amp;gt; "some_database" 
    )

    class Item &amp;lt; ActiveRecord::Base; end

    server do |map_reduce|
      map_reduce.type = Item
    end

    client do |item|
      logger.info item.id
    end
&lt;/pre&gt;
Now just run:
&lt;pre&gt;
    starfish item.rb
&lt;/pre&gt;
and Starfish takes care of the rest. The code above does the following:

	&lt;ul&gt;
	&lt;li&gt;The server grabs all the items via: &lt;em&gt;Item.find(:all)&lt;/em&gt;&lt;/li&gt;
		&lt;li&gt;Each of the clients grab an item from the collection&lt;/li&gt;
		&lt;li&gt;When there are no more items to be grabbed, everything shuts down&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Just add &lt;span class="caps"&gt;REST &lt;/span&gt;(and it&amp;#8217;s come by default with the Edge Rails) and you&amp;#8217;ll have your own &lt;a href="http://aws.amazon.com/s3"&gt;S3&lt;/a&gt; or GDrive for free ;)&lt;/p&gt;</description>
      <pubDate>Mon, 21 Aug 2006 00:03:00 PDT</pubDate>
      <guid>http://typo.onxen.info/articles/2006/08/21/mapreduce-for-ruby-ridiculously-easy-distributed-programming</guid>
      <link>http://typo.onxen.info/articles/2006/08/21/mapreduce-for-ruby-ridiculously-easy-distributed-programming</link>
      <category>Ruby</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/124</trackback:ping>
    </item>
    <item>
      <title>[ANN] Restolog - RESTful blog example</title>
      <description>&lt;p&gt;I modified a little the &lt;a href="http://randomoracle.com/stuff/RestBlog.tar.gz"&gt;original Alisdair McDiarmid&amp;#8217;s RestBlog sources&lt;/a&gt; and
created very simple blog system. Made an announce to the Rails ML. The copy of it follows:&lt;/p&gt;


Very simple blog system based on &lt;span class="caps"&gt;REST&lt;/span&gt;/CRUD ideas. Sources (all credits
going to the authors, i just combined their work):
	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://randomoracle.com/stuff/RestBlog.tar.gz"&gt;RestBlog by Alisdair McDiarmid&lt;/a&gt; &lt;/li&gt;
		&lt;li&gt;&lt;a href="http://svn.techno-weenie.net/projects/plugins/restful_authentication/"&gt;restful_authentication plugin by techno-weenie&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://www.thelucid.com/articles/2006/07/26/simply-restful-the-missing-action" title="delete  without JavaScript enabled"&gt;graseful delete degradation&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;The purpose is mostly proof of concept, not typo/mephisto etc. competition.&lt;/p&gt;
&lt;h2&gt;Requirements&lt;/h2&gt;


	&lt;ul&gt;
	&lt;li&gt;ruby-1.8.4 (i&amp;#8217;m using mongrel, do you? ;)  )&lt;/li&gt;
		&lt;li&gt;sqlite3&lt;/li&gt;
		&lt;li&gt;edge rails&lt;/li&gt;
	&lt;/ul&gt;


	&lt;h2&gt;Features&lt;/h2&gt;


	&lt;ul&gt;
	&lt;li&gt;Pretty &lt;span class="caps"&gt;CRU&lt;/span&gt;Ded &amp;#8211; using only standard action names
(index,show,new,create,edit,update,destroy)&lt;/li&gt;
		&lt;li&gt;tags taxonomy &amp;#8211; more flexible than categories&lt;/li&gt;
		&lt;li&gt;graceful delete degradation &amp;#8211; you can delete without JS enabled&lt;/li&gt;
		&lt;li&gt;Multiuser:
	&lt;ul&gt;
	&lt;li&gt;only logged in users can post&lt;/li&gt;
		&lt;li&gt;user can delete only his own articles&lt;/li&gt;
		&lt;li&gt;user can delete only comments to his own articles&lt;/li&gt;
		&lt;li&gt;&amp;#8216;admin&amp;#8217; user can delete everything&lt;/li&gt;
		&lt;li&gt;only &amp;#8216;admin&amp;#8217; user can delete tags&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
		&lt;li&gt;blogs per tag ( &lt;em&gt;/tags/?&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;blogs per user ( &lt;em&gt;/users/?&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;&lt;span class="caps"&gt;RSS2&lt;/span&gt;.0/Atom feeds with suitable mime-types ( &lt;em&gt;/articles.atom&lt;/em&gt; and
&lt;em&gt;/articles.rss&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;Some &lt;span class="caps"&gt;REST&lt;/span&gt; services (more will come):
	&lt;ul&gt;
	&lt;li&gt;all articles ( &lt;em&gt;/articles.xml&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;specific article ( &lt;em&gt;/articles/?.xml&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;tags list ( &lt;em&gt;/tags.xml&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;still missing: users list, create/update (authentication)
articles, articles per tag and per user, delete (hm, is it good to
make delete web service at all?)&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;/ul&gt;


&lt;span class="caps"&gt;REST &lt;/span&gt;Problems (for me, not in general ;)  ):
	&lt;ul&gt;
	&lt;li&gt;how to exclude fields from the &lt;span class="caps"&gt;XML&lt;/span&gt; output? For example &lt;em&gt;@users.to_xml&lt;/em&gt;
will include also the password field in the output.&lt;/li&gt;
		&lt;li&gt;how to deal with the action needed authentication &amp;#8211; like
create/update &amp;#8211; usual way is to include some token in the &lt;span class="caps"&gt;URL&lt;/span&gt;, but how
to do it with Rails?&lt;/li&gt;
	&lt;/ul&gt;


	&lt;h2&gt;Installation&lt;/h2&gt;


	&lt;ul&gt;
	&lt;li&gt;Get the sources:
	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://bgjap.net/code/ruby/ror/restolog-1.1.tgz"&gt;tarballs&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://code.google.com/p/restolog/source"&gt;SVN&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
		&lt;li&gt;untar if needed&lt;/li&gt;
		&lt;li&gt;cd to the sources directory&lt;/li&gt;
		&lt;li&gt;Bind it to the Edge Rails, create the database and start it:&lt;/li&gt;
	&lt;/ul&gt;


&lt;pre&gt;
 rails freeze_edge
 rake migrate
 server/start
&lt;/pre&gt;

	&lt;ul&gt;
	&lt;li&gt;Create the user with login &lt;em&gt;&amp;#8217;admin&amp;#8217;&lt;/em&gt; &amp;#8211; power user, can delete
everybody posts, comments, tags etc. (hm, maybe &lt;em&gt;&amp;#8217;rake bootstrap&amp;#8217;&lt;/em&gt; step
will be good)&lt;/li&gt;
		&lt;li&gt;Logout and create usual user&lt;/li&gt;
		&lt;li&gt;Start posting articles&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Still a lot is missing (user management, password change, pagination,
text markup &amp;#8211; textile etc.), but I think it&amp;#8217;s pretty good starting
point.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Aug 2006 20:30:00 PDT</pubDate>
      <guid>http://typo.onxen.info/articles/2006/08/10/ann-restolog-restful-blog-example</guid>
      <link>http://typo.onxen.info/articles/2006/08/10/ann-restolog-restful-blog-example</link>
      <category>Ruby</category>
      <category>Programing</category>
      <category>REST</category>
      <trackback:ping>http://typo.onxen.info/articles/trackback/123</trackback:ping>
    </item>
  </channel>
</rss>
