UrbanTakeover soup http://urbantakeover.soup.io/ UrbanTakeover soup http://urbantakeover.soup.io/ http://0.asset.soup.io/asset/0043/2144_ff59.png 48 48 this is where team urbantakeover blogs. "&#8220;# view # controller auto_complete_for :contact, :name&#8221;" {"tags":[],"type":"quote","title":"\u0026mdash; \u003Ca href=\"http://demo.script.aculo.us/ajax/autocompleter\"\u003Escript.aculo.us - web 2.0 javascript demos\u003C/a\u003E","source":null,"body":"\u0026#8220;\u003Cp\u003E# view\u003Cbr /\u003E\u003C/p\u003E\n\n\u003Cp\u003E# controller\u003Cbr /\u003E\nauto_complete_for :contact, :name\u003C/p\u003E\u0026#8221;"} <p>"&#8220;<p># view<br /></p> <p># controller<br /> auto_complete_for :contact, :name</p>&#8221;"</p><p>&ndash;&mdash; <a href="http://demo.script.aculo.us/ajax/autocompleter">script.aculo.us - web 2.0 javascript demos</a></p>Sun, 11 May 2008 09:32:19 GMThttp://urbantakeover.soup.io/post/2715051/8220-view-controller-auto-complete-for-contacturn:www-soup-io:1:2715051quote "&#8220;We recently introduced a new feature in autoki called the social feed...." {"tags":[],"type":"quote","title":"\u0026mdash; \u003Ca href=\"http://upstream-berlin.com/blog/2007/10/27/using-and-testing-activerecordrails-observers/\"\u003Eupstream agile - software\u0026#160;\u00bb Using and Testing ActiveRecord/Rails Observers\u003C/a\u003E","source":null,"body":"\u0026#8220;We recently introduced a new feature in autoki called the social feed. It\u2019s basically a yellow box displaying any events on the platform relevant to the current user, like a friend has posted a new photo, or a new interesting car was uploaded. The data model behind this is pretty straightforward, we have a FeedEvent class and all kinds of subclasses, e.g. a MessageReceivedEvent. Each event belongs to a user and an event source, in this example the user would be the user who received the message and the event source would be the message itself. For each user, we simply display all the events that belong to him or her.\u0026#8221;"} <p>"&#8220;We recently introduced a new feature in autoki called the social feed. It’s basically a yellow box displaying any events on the platform relevant to the current user, like a friend has posted a new photo, or a new interesting car was uploaded. The data model behind this is pretty straightforward, we have a FeedEvent class and all kinds of subclasses, e.g. a MessageReceivedEvent. Each event belongs to a user and an event source, in this example the user would be the user who received the message and the event source would be the message itself. For each user, we simply display all the events that belong to him or her.&#8221;"</p><p>&ndash;&mdash; <a href="http://upstream-berlin.com/blog/2007/10/27/using-and-testing-activerecordrails-observers/">upstream agile - software&#160;» Using and Testing ActiveRecord/Rails Observers</a></p>Fri, 09 May 2008 09:55:51 GMThttp://urbantakeover.soup.io/post/2678660/8220-We-recently-introduced-a-new-featureurn:www-soup-io:1:2678660quote packaging for free sticker packs? via www.trappertricks.de {"tags":[],"type":"image","source":null,"body":"packaging for free sticker packs? via \u003Ca href=\"http://www.trappertricks.de/images/briefumschlag.gif\"\u003E\u003Ca href=\"http://www.trappertricks.de\"\u003Ewww.trappertricks.de\u003C/a\u003E\u003C/a\u003E","url":"http://2.asset.soup.io/asset/0065/1506_7464.png"} <p><a href=""><img alt="1506_7464_400" height="444" src="http://2.asset.soup.io/asset/0065/1506_7464_400.png" width="400" /></a></p> <p>packaging for free sticker packs? via <a href="http://www.trappertricks.de/images/briefumschlag.gif"><a href="http://www.trappertricks.de">www.trappertricks.de</a></a></p>Mon, 05 May 2008 13:13:52 GMThttp://urbantakeover.soup.io/post/2601587/packaging-for-free-sticker-packs-via-wwwurn:www-soup-io:1:2601587image Ceci n´est pas le capitalisme… (via rebel:art  Â» Blog Archive  Â» Ceci n´est pas le capitalisme…) {"tags":[],"type":"image","source":null,"body":"\u003Cp\u003ECeci n\u00b4est pas le capitalisme\u2026 (via \u003Ca href=\"http://www.rebelart.net/diary/?p=508\"\u003Erebel:art \u0026#160;\u00bb Blog Archive \u0026#160;\u00bb Ceci n\u00b4est pas le capitalisme\u2026\u003C/a\u003E)\u003C/p\u003E\n\u003Cp\u003E\u00a0or maybe it is\u0026#8230;\u00a0\u003C/p\u003E","url":"http://7.asset.soup.io/asset/0063/3159_dfc5.jpeg"} <p><a href=""><img alt="3159_dfc5_400" height="270" src="http://7.asset.soup.io/asset/0063/3159_dfc5_400.jpeg" width="400" /></a></p> <p><p>Ceci n´est pas le capitalisme… (via <a href="http://www.rebelart.net/diary/?p=508">rebel:art &#160;» Blog Archive &#160;» Ceci n´est pas le capitalisme…</a>)</p> <p> or maybe it is&#8230; </p></p>Thu, 01 May 2008 03:51:50 GMThttp://urbantakeover.soup.io/post/2517107/Ceci-n-est-pas-le-capitalisme-viaurn:www-soup-io:1:2517107image now with sparklines via google graphs (aka google charts) {"tags":[],"type":"image","source":null,"body":"now with sparklines via\u00a0\u003Ca href=\"http://code.google.com/apis/chart/\"\u003Egoogle graphs\u003C/a\u003E\u00a0(aka google charts)","url":"http://d.asset.soup.io/asset/0057/6749_6cc8.png"} <p><a href=""><img alt="6749_6cc8" height="227" src="http://d.asset.soup.io/asset/0057/6749_6cc8.png" width="256" /></a></p> <p>now with sparklines via <a href="http://code.google.com/apis/chart/">google graphs</a> (aka google charts)</p>Wed, 16 Apr 2008 10:28:34 GMThttp://urbantakeover.soup.io/post/2250091/now-with-sparklines-via-google-graphs-akaurn:www-soup-io:1:2250091image What’s Wrong with this Picture? {"tags":[],"type":"video","source":null,"body":"\u003Cp\u003E\u003Ca href=\"http://current.com/items/88887930_what_s_wrong_with_this_picture\"\u003EWhat\u0026#8217;s Wrong with this Picture?\u003C/a\u003E\u003C/p\u003E\n\u003Cp\u003Emight have to consider that for flickr foto proofs in the usa.\u00a0\u003C/p\u003E","embedcode_or_url":"\u003Cobject height=\"400\" width=\"400\"\u003E\u003Cparam name=\"movie\" value=\"http://current.com/e/88887930\" /\u003E\u003Cparam name=\"wmode\" value=\"transparent\" /\u003E\u003Cparam name=\"allowfullscreen\" value=\"true\" /\u003E\u003Cparam name=\"allowscriptaccess\" value=\"always\" /\u003E\u003Cembed allowfullscreen=\"true\" src=\"http://current.com/e/88887930\" allowscriptaccess=\"always\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" height=\"400\" width=\"400\"\u003E\u003C/embed\u003E\u003C/object\u003E"} <object height="400" width="400"><param name="movie" value="http://current.com/e/88887930" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><embed allowfullscreen="true" src="http://current.com/e/88887930" allowscriptaccess="always" wmode="transparent" type="application/x-shockwave-flash" height="400" width="400"></embed></object><p><a href="http://current.com/items/88887930_what_s_wrong_with_this_picture">What&#8217;s Wrong with this Picture?</a></p> <p>might have to consider that for flickr foto proofs in the usa. </p>Mon, 14 Apr 2008 00:11:25 GMThttp://urbantakeover.soup.io/post/2195174/What-s-Wrong-with-this-Pictureurn:www-soup-io:1:2195174video In general git has some terrible cryptic error messages. {"tags":[],"type":"regular","title":"In general git has some terrible cryptic error messages.","source":null,"body":"\u003Cp\u003E\u003Ci\u003Efrom\u00a0\u003C/i\u003E\u003Ca href=\"http://blog.floopily.org/2007/11/26/in-critique-of-git/\"\u003E\u003Ci\u003EStories from the Land of Rob:\u003C/i\u003E\u003C/a\u003E\u003Ci\u003E\u00a0\u00a0\u003C/i\u003E\u003C/p\u003E\n\u003Cp\u003EMy favourite example is if you modify a file and then pull a change that modifies that file before you commit it:\u003C/p\u003E\n\u003Cp\u003E\u003Ccode\u003EUpdating beb8c37..b953e6f\u003Cbr /\u003Etest: needs update\u003Cbr /\u003Efatal: Entry 'test' not uptodate. Cannot merge.\u003C/code\u003E\u003C/p\u003E\n\u003Cp\u003EWTF? what does uptodate mean? why isn\u2019t it up to date? whats gone wrong? what should i do?\u003Cbr /\u003ESurely something like:\u003C/p\u003E\n\u003Cp\u003E\u003Ccode\u003ECancelling pull as 'test' has changes that would be overwritten by this pull. Please commit your changes or force an overwrite using the '--force' flag\u003C/code\u003E\u003C/p\u003E\n\u003Cp\u003Ewould be a lot better?\u003C/p\u003E"} <p><i>from </i><a href="http://blog.floopily.org/2007/11/26/in-critique-of-git/"><i>Stories from the Land of Rob:</i></a><i>  </i></p> <p>My favourite example is if you modify a file and then pull a change that modifies that file before you commit it:</p> <p><code>Updating beb8c37..b953e6f<br />test: needs update<br />fatal: Entry 'test' not uptodate. Cannot merge.</code></p> <p>WTF? what does uptodate mean? why isn’t it up to date? whats gone wrong? what should i do?<br />Surely something like:</p> <p><code>Cancelling pull as 'test' has changes that would be overwritten by this pull. Please commit your changes or force an overwrite using the '--force' flag</code></p> <p>would be a lot better?</p>Sat, 12 Apr 2008 20:18:50 GMThttp://urbantakeover.soup.io/post/2177872/In-general-git-has-some-terrible-crypticurn:www-soup-io:1:2177872regular "Twitter As An Early Stage Warning System For Brands And Companies" {"tags":[],"type":"quote","title":"\u003Ca href=\"http://www.techcrunch.com/2008/04/06/comcast-twitter-and-the-chicken-trust-me-I-have-a-point/\"\u003EComcast, Twitter And The Chicken (trust me, I have a point)\u003C/a\u003E","source":null,"body":"Twitter As An Early Stage Warning System For Brands And Companies"} <p>"Twitter As An Early Stage Warning System For Brands And Companies"</p><p>&ndash;<a href="http://www.techcrunch.com/2008/04/06/comcast-twitter-and-the-chicken-trust-me-I-have-a-point/">Comcast, Twitter And The Chicken (trust me, I have a point)</a></p>Mon, 07 Apr 2008 09:46:51 GMThttp://urbantakeover.soup.io/post/2080811/Twitter-As-An-Early-Stage-Warning-Systemurn:www-soup-io:1:2080811quote "&#187; @status.created_at = Time.utc 2008, 1, 1 &#187; @status.created_at" {"tags":[],"type":"quote","title":"\u003Ca href=\"http://weblog.techno-weenie.net/2008/2/6/timezone-awareness-in-rails\"\u003ETimezone awareness in Rails\u003C/a\u003E","source":null,"body":"\u0026#187; @status.created_at = Time.utc 2008, 1, 1\u003Cbr /\u003E\n\u0026#187; @status.created_at"} <p>"&#187; @status.created_at = Time.utc 2008, 1, 1<br /> &#187; @status.created_at"</p><p>&ndash;<a href="http://weblog.techno-weenie.net/2008/2/6/timezone-awareness-in-rails">Timezone awareness in Rails</a></p>Sun, 06 Apr 2008 07:37:25 GMThttp://urbantakeover.soup.io/post/2063019/187-status-created-at-Time-utc-2008urn:www-soup-io:1:2063019quote Throbber generator {"tags":[],"type":"link","title":"Throbber generator","source":"http://www.ajaxload.info/","body":null} <p><a href="http://www.ajaxload.info/">http://www.ajaxload.info/</a></p>Sun, 06 Apr 2008 07:08:29 GMThttp://urbantakeover.soup.io/post/2061524/Throbber-generatorurn:www-soup-io:1:2061524link new in urban takeover: the urban takeover mac application & get stickers. {"tags":[],"type":"image","source":null,"body":"new in urban takeover: the urban takeover\u00a0\u003Ca href=\"http://urbantakeover.at/map/app\"\u003Emac application\u003C/a\u003E\u00a0\u0026amp;\u00a0\u003Ca href=\"http://urbantakeover.at/stickers\"\u003Eget stickers\u003C/a\u003E.","url":"http://c.asset.soup.io/asset/0053/2908_6744.jpeg"} <p><a href=""><img alt="2908_6744_400" height="304" src="http://c.asset.soup.io/asset/0053/2908_6744_400.jpeg" width="400" /></a></p> <p>new in urban takeover: the urban takeover <a href="http://urbantakeover.at/map/app">mac application</a> &amp; <a href="http://urbantakeover.at/stickers">get stickers</a>.</p>Sun, 06 Apr 2008 06:53:26 GMThttp://urbantakeover.soup.io/post/2061528/new-in-urban-takeover-the-urban-takeoverurn:www-soup-io:1:2061528image Sparkline Graphs in Ruby {"tags":[],"type":"link","title":"Sparkline Graphs in Ruby","source":"http://redhanded.hobix.com/inspect/sparklinesForMinimalists.html","body":null} <p><a href="http://redhanded.hobix.com/inspect/sparklinesForMinimalists.html">http://redhanded.hobix.com/inspect/sparklinesForMinimalists.html</a></p>Sun, 06 Apr 2008 06:03:14 GMThttp://urbantakeover.soup.io/post/2061529/Sparkline-Graphs-in-Rubyurn:www-soup-io:1:2061529link claim that! (via claimrfk) {"tags":[],"type":"image","source":null,"body":"claim that! (via \u003Ca href=\"http://flickr.com/photos/mrfk\"\u003Eclaimrfk\u003C/a\u003E)","url":"http://3.asset.soup.io/asset/0051/4227_f7bc.jpeg"} <p><a href=""><img alt="4227_f7bc" height="500" src="http://3.asset.soup.io/asset/0051/4227_f7bc.jpeg" width="352" /></a></p> <p>claim that! (via <a href="http://flickr.com/photos/mrfk">claimrfk</a>)</p>Wed, 02 Apr 2008 14:12:46 GMThttp://urbantakeover.soup.io/post/1988564/claim-that-via-claimrfkurn:www-soup-io:1:1988564image Missing House (via Appealing) {"tags":[],"type":"image","source":null,"body":"Missing House (via \u003Ca href=\"http://flickr.com/photos/appealing\"\u003EAppealing\u003C/a\u003E)","url":"http://3.asset.soup.io/asset/0051/1427_a3d7.jpeg"} <p><a href=""><img alt="1427_a3d7_400" height="300" src="http://3.asset.soup.io/asset/0051/1427_a3d7_400.jpeg" width="400" /></a></p> <p>Missing House (via <a href="http://flickr.com/photos/appealing">Appealing</a>)</p>Tue, 01 Apr 2008 23:12:52 GMThttp://urbantakeover.soup.io/post/1976671/Missing-House-via-Appealingurn:www-soup-io:1:1976671image fm4.ORF.at / Today's webtip: Urbantakeover {"tags":[],"type":"link","title":"fm4.ORF.at / Today's webtip: Urbantakeover","source":"http://fm4.orf.at/daddyd/222104/main","body":null} <p><a href="http://fm4.orf.at/daddyd/222104/main">http://fm4.orf.at/daddyd/222104/main</a></p>Tue, 01 Apr 2008 17:30:04 GMThttp://urbantakeover.soup.io/post/1971107/fm4-ORF-at-Todays-webtip-Urbantakeoverurn:www-soup-io:1:1971107link "  I&#8217;m a turncoat   A traitor. A lowly dog. Up until this morning I was ..." {"tags":[],"type":"quote","title":"\u003Ca href=\"http://fm4.orf.at/daddyd/222104/main\"\u003Efm4.ORF.at / Today\u0026#8217;s webtip: Urbantakeover\u003C/a\u003E","source":null,"body":"\u00a0 I\u0026#8217;m a turncoat\u003Cbr /\u003E\n\u00a0\tA traitor. A lowly dog. Up until this morning I was committed to helping team dirtychai take over Vienna. But then I changed my mind, decided to make the game urban takeover a webtip and form my own team to rule em all. Team_sheesh. And since I am telling you all about this little project by an Austrian developer I expect all of you to run out and join in, actively taking over bits of property in the name of team_sheesh. See the idea is that you can claim places for yourself or your team, and then post the location using the webform or sms, and get more and more area, fame and glory. Or something like that. Go check it out . And if you play, make sure you play for team_sheesh. urbantakeover.at"} <p>"  I&#8217;m a turncoat<br />   A traitor. A lowly dog. Up until this morning I was committed to helping team dirtychai take over Vienna. But then I changed my mind, decided to make the game urban takeover a webtip and form my own team to rule em all. Team_sheesh. And since I am telling you all about this little project by an Austrian developer I expect all of you to run out and join in, actively taking over bits of property in the name of team_sheesh. See the idea is that you can claim places for yourself or your team, and then post the location using the webform or sms, and get more and more area, fame and glory. Or something like that. Go check it out . And if you play, make sure you play for team_sheesh. urbantakeover.at"</p><p>&ndash;<a href="http://fm4.orf.at/daddyd/222104/main">fm4.ORF.at / Today&#8217;s webtip: Urbantakeover</a></p>Tue, 01 Apr 2008 01:13:18 GMThttp://urbantakeover.soup.io/post/1958083/I-8217-m-a-turncoat-A-traitorurn:www-soup-io:1:1958083quote claiming europe :) {"tags":[],"type":"image","source":null,"body":"\u003Cp\u003Eclaiming europe :)\u003C/p\u003E\n\u003Cp\u003E\u003Cb\u003ETHANKS COMMUNITY!!!\u00a0\u003C/b\u003E\u003C/p\u003E\n\u003Cp\u003Ealso: flickr :D\u00a0\u003C/p\u003E","url":"http://c.asset.soup.io/asset/0050/7164_5ce3.png"} <p><a href=""><img alt="7164_5ce3_400" height="280" src="http://c.asset.soup.io/asset/0050/7164_5ce3_400.png" width="400" /></a></p> <p><p>claiming europe :)</p> <p><b>THANKS COMMUNITY!!! </b></p> <p>also: flickr :D </p></p>Mon, 31 Mar 2008 19:03:40 GMThttp://urbantakeover.soup.io/post/1955833/claiming-europeurn:www-soup-io:1:1955833image Our manual we send with the stickers. {"tags":[],"type":"image","source":null,"body":"Our manual we send with the stickers.","url":"http://e.asset.soup.io/asset/0050/7166_04ea.png"} <p><a href=""><img alt="7166_04ea_400" height="546" src="http://e.asset.soup.io/asset/0050/7166_04ea_400.png" width="400" /></a></p> <p>Our manual we send with the stickers.</p>Mon, 31 Mar 2008 18:40:06 GMThttp://urbantakeover.soup.io/post/1955835/Our-manual-we-send-with-the-stickersurn:www-soup-io:1:1955835image "tumblr supports group blogs, which makes it easier for us to ... you know ......" {"tags":[],"type":"quote","title":"team uto","source":null,"body":"tumblr supports group blogs, which makes it easier for us to ... you know ... group blog.\u003Cbr /\u003E\u003Cbr /\u003Eso we moved to \u003Ca href=\"http://urbantakeover.tumblr.com/\"\u003Ehttp://blog.urbantakeover.at/\u003C/a\u003E\u003Cbr /\u003E\u003Cbr /\u003Ealso: soup removed our google analytics. *grr"} <p>"tumblr supports group blogs, which makes it easier for us to ... you know ... group blog.<br /><br />so we moved to <a href="http://urbantakeover.tumblr.com/">http://blog.urbantakeover.at/</a><br /><br />also: soup removed our google analytics. *grr"</p><p>&ndash;team uto</p>Mon, 31 Mar 2008 17:01:12 GMThttp://urbantakeover.soup.io/post/1950868/tumblr-supports-group-blogs-which-makes-iturn:www-soup-io:1:1950868quote += flickr {"tags":[],"type":"image","source":null,"body":"+= flickr","url":"http://1.asset.soup.io/asset/0050/7169_7f79.png"} <p><a href=""><img alt="7169_7f79_400" height="295" src="http://1.asset.soup.io/asset/0050/7169_7f79_400.png" width="400" /></a></p> <p>+= flickr</p>Mon, 31 Mar 2008 16:52:39 GMThttp://urbantakeover.soup.io/post/1955838/flickrurn:www-soup-io:1:1955838image "To demonstrate:class MyClass private def say_hello(name) p..." {"tags":[],"type":"quote","title":"\u003Ca href=\"http://joshstaiger.org/archives/2006/12/the_ruby_send_h.html\"\u003EJosh Staiger: The Ruby send hack: how to gain access to an object's privates\u003C/a\u003E","source":"http://joshstaiger.org/archives/2006/12/the_ruby_send_h.html","body":"\u003Cp\u003ETo demonstrate:\u003C/p\u003E\u003Cpre class=\"code\"\u003Eclass MyClass\r\n private\r\n def say_hello(name)\r\n puts \"Let's go back to my place, #{name}.\"\r\n end\r\nend\r\n\r\nmy_object = MyClass.new\r\n\u003C/pre\u003ESo we get smacked if we try:\u003Cpre class=\"code\"\u003E\u003E my_object.say_hello\r\nNomethoderror: private method `say_hello' called for #\u0026lt;MyClass:0x820b4\u003E\r\n\tfrom (irb):8\r\n\tfrom :0\u003C/pre\u003Ebut instead:\u003Cpre class=\"code\"\u003E\u003E my_object.send :say_hello, \"world\"\r\nLet's go back to my place, world.\u003C/pre\u003E\u003Cp\u003ETouch\u00e9!\u003C/p\u003E\u003Cp\u003ENow, honestly, this strikes me as odd. Conceptually, I don't see why\u003Ccode\u003Esend\u003C/code\u003E\u00a0should function differently from an ordinary method call with respect to access control.\u003C/p\u003E"} <p>"<p>To demonstrate:</p><pre class="code">class MyClass private def say_hello(name) puts "Let's go back to my place, #{name}." end end my_object = MyClass.new </pre>So we get smacked if we try:<pre class="code">> my_object.say_hello Nomethoderror: private method `say_hello' called for #&lt;MyClass:0x820b4> from (irb):8 from :0</pre>but instead:<pre class="code">> my_object.send :say_hello, "world" Let's go back to my place, world.</pre><p>Touché!</p><p>Now, honestly, this strikes me as odd. Conceptually, I don't see why<code>send</code> should function differently from an ordinary method call with respect to access control.</p>"</p><p>&ndash;<a href="http://joshstaiger.org/archives/2006/12/the_ruby_send_h.html">Josh Staiger: The Ruby send hack: how to gain access to an object's privates</a></p>Sat, 29 Mar 2008 20:15:45 GMThttp://urbantakeover.soup.io/post/1917154/To-demonstrate-class-MyClass-private-def-sayurn:www-soup-io:1:1917154quote Ask E.T.: Sparklines: theory and practice {"tags":[],"type":"link","title":"Ask E.T.: Sparklines: theory and practice","source":"http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR\u0026topic_id=1\u0026topic=","body":null} <p><a href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&amp;topic_id=1&amp;topic=">http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&topic_id=1&topic=</a></p>Sat, 29 Mar 2008 20:15:27 GMThttp://urbantakeover.soup.io/post/1917148/Ask-E-T-Sparklines-theory-and-practiceurn:www-soup-io:1:1917148link Git - SVN Crash Course {"tags":[],"type":"link","title":"Git - SVN Crash Course","source":"http://git.or.cz/course/svn.html","body":"git for slackers :D\u003Cdiv class=\"tags\"\u003ETags: \u003Ca href=\"http://del.icio.us/tag/development\"\u003Edevelopment\u003C/a\u003E \u003Ca href=\"http://del.icio.us/tag/git\"\u003Egit\u003C/a\u003E \u003Ca href=\"http://del.icio.us/tag/rails\"\u003Erails\u003C/a\u003E \u003Ca href=\"http://del.icio.us/tag/rubyonrails\"\u003Erubyonrails\u003C/a\u003E \u003Ca href=\"http://del.icio.us/tag/subversion\"\u003Esubversion\u003C/a\u003E \u003Ca href=\"http://del.icio.us/tag/svn\"\u003Esvn\u003C/a\u003E \u003Ca href=\"http://del.icio.us/tag/versioncontrol\"\u003Eversioncontrol\u003C/a\u003E \u003Ca href=\"http://del.icio.us/tag/webdevelopment\"\u003Ewebdevelopment\u003C/a\u003E\u003C/div\u003E"} <p>git for slackers :D<div class="tags">Tags: <a href="http://del.icio.us/tag/development">development</a> <a href="http://del.icio.us/tag/git">git</a> <a href="http://del.icio.us/tag/rails">rails</a> <a href="http://del.icio.us/tag/rubyonrails">rubyonrails</a> <a href="http://del.icio.us/tag/subversion">subversion</a> <a href="http://del.icio.us/tag/svn">svn</a> <a href="http://del.icio.us/tag/versioncontrol">versioncontrol</a> <a href="http://del.icio.us/tag/webdevelopment">webdevelopment</a></div></p> <p><a href="http://git.or.cz/course/svn.html">http://git.or.cz/course/svn.html</a></p>Sat, 29 Mar 2008 20:15:19 GMThttp://urbantakeover.soup.io/post/1917144/Git-SVN-Crash-Courseurn:www-soup-io:1:1917144link Sparkline PHP Graphing Library {"tags":[],"type":"link","title":"Sparkline PHP Graphing Library","source":"http://sparkline.org/","body":"But where's the Ruby Version? -_-"} <p>But where's the Ruby Version? -_-</p> <p><a href="http://sparkline.org/">http://sparkline.org/</a></p>Sat, 29 Mar 2008 20:05:56 GMThttp://urbantakeover.soup.io/post/1916995/Sparkline-PHP-Graphing-Libraryurn:www-soup-io:1:1916995link " = Exception Notifier Plugin for Rails First, include the ExceptionNotifi..." {"tags":[],"type":"quote","title":"script/plugin install \u003Ca href=\"http://svn.rubyonrails.org/rails/plugins/exception_notification/README\"\u003Ehttp://svn.rubyonrails.org/rails/plugins/exception_notification/\u003C/a\u003E","source":"http://svn.rubyonrails.org/rails/plugins/exception_notification/README","body":"\u003Cpre\u003E\r\n= Exception Notifier Plugin for Rails\r\n\r\nFirst, include the ExceptionNotifiable mixin in whichever controller you want\r\nto generate error emails (typically ApplicationController):\r\n\r\n class ApplicationController \u003C ActionController::Base\r\n include ExceptionNotifiable\r\n ...\r\n end\r\n\r\nThen, specify the email recipients in your environment:\r\n\r\n ExceptionNotifier.exception_recipients = %w(joe@schmoe.com bill@schmoe.com)\r\n\r\nAnd that's it! The defaults take care of the rest.\r\n\u003C/pre\u003E"} <p>"<pre> = Exception Notifier Plugin for Rails First, include the ExceptionNotifiable mixin in whichever controller you want to generate error emails (typically ApplicationController): class ApplicationController &lt; ActionController::Base include ExceptionNotifiable ... end Then, specify the email recipients in your environment: ExceptionNotifier.exception_recipients = %w(joe@schmoe.com bill@schmoe.com) And that's it! The defaults take care of the rest. </pre>"</p><p>&ndash;script/plugin install <a href="http://svn.rubyonrails.org/rails/plugins/exception_notification/README">http://svn.rubyonrails.org/rails/plugins/exception_notification/</a></p>Sat, 29 Mar 2008 11:11:54 GMThttp://urbantakeover.soup.io/post/1906049/Exception-Notifier-Plugin-for-Rails-First-includeurn:www-soup-io:1:1906049quote I <3 Ruby On Rails {"tags":[],"type":"regular","title":"I \u003C3 Ruby On Rails ","source":null,"body":"at my ruby nightjob i hack for fun. this is a part of the urbantakeover \"who or what the fuck are you looking for?\" just like Wikipedia's \u003Ca href=\"http://en.wikipedia.org/wiki/Desu\"\u003Edisambiguation pages\u003C/a\u003E.\u003Cbr /\u003E\u003Cbr /\u003EThe quick \u0026amp; dirty way only searches for Users and Spots at the moment, which works for \u003Ca href=\"http://urbantakeover.at/astera\"\u003Eastera\u003C/a\u003E (spot \u0026amp; user) but fails at \u003Ca href=\"http://urbantakeover.at/metalab\"\u003Emetalab\u003C/a\u003E\u003Cem\u003E\u003C/em\u003E (spot \u0026amp; team).\u003Cbr /\u003E\u003Cbr /\u003EThus we'll hack together a dynamic solution:\u003Cbr /\u003E\u003Cpre\u003Estuff = []\u003Cbr /\u003E[User, Spot, Team].each do |model_class|\u003Cbr /\u003E stuff \u0026lt;\u0026lt; model_class.find_by_name params[:name]\u003Cbr /\u003Eend\u003Cbr /\u003E\u003Cbr /\u003Eif stuff.size == 1\u003Cbr /\u003E thing = stuff.first\u003Cbr /\u003E\u0026nbsp; redirect_to :controller =\u0026gt; thing.class.name.downcase, :action =\u0026gt; 'show_by_name', :name =\u0026gt; thing.name\u003Cbr /\u003Eelse\u003Cbr /\u003E #shows a wikipedia style \"disambiguation\" page\u003Cbr /\u003E @things = stuff\u003Cbr /\u003E render :template =\u0026gt; 'disambiguate'\u003Cbr /\u003Eend\u003C/pre\u003E \u003Cem\u003Enote, i haven't tried this yet, but it *should* work.\u003C/em\u003E"} at my ruby nightjob i hack for fun. this is a part of the urbantakeover "who or what the fuck are you looking for?" just like Wikipedia's <a href="http://en.wikipedia.org/wiki/Desu">disambiguation pages</a>.<br /><br />The quick &amp; dirty way only searches for Users and Spots at the moment, which works for <a href="http://urbantakeover.at/astera">astera</a> (spot &amp; user) but fails at <a href="http://urbantakeover.at/metalab">metalab</a><em></em> (spot &amp; team).<br /><br />Thus we'll hack together a dynamic solution:<br /><pre>stuff = []<br />[User, Spot, Team].each do |model_class|<br /> stuff &lt;&lt; model_class.find_by_name params[:name]<br />end<br /><br />if stuff.size == 1<br /> thing = stuff.first<br />&nbsp; redirect_to :controller =&gt; thing.class.name.downcase, :action =&gt; 'show_by_name', :name =&gt; thing.name<br />else<br /> #shows a wikipedia style "disambiguation" page<br /> @<a href="http://things.soup.io">things</a> = stuff<br /> render :template =&gt; 'disambiguate'<br />end</pre> <em>note, i haven't tried this yet, but it *should* work.</em>Fri, 28 Mar 2008 21:08:48 GMThttp://urbantakeover.soup.io/post/1896718/I-3-Ruby-On-Railsurn:www-soup-io:1:1896718regular eval is your friend {"tags":[],"type":"regular","title":"eval is your friend","source":null,"body":"at my python dayjob i'm writing a chat protocol. it should be possible to extend the protocol later on by adding\u0026nbsp;new subprotocols (command sets) to achieve this i use listeners for each additional subprotocol.\u003Cbr /\u003E\u003Cbr /\u003Ethe quick and dirty way to get some is:\u003Cbr /\u003E\u003Ccode\u003E\u003C/code\u003E\u003Cpre\u003Eself.listeners = {\u003Cbr /\u003E 'chat' : ChatListener(environment, self),\u003Cbr /\u003E 'table' : TableListener(environment, self),\u003Cbr /\u003E 'stats' : StatsListener(environment, self) }\u003C/pre\u003E\u003Cbr /\u003Ebut as soon as you have to add a lot of listeners it get's tedious to duplicate all the \u0026lt;code\u0026gt;*Listener(environment, self)\u0026lt;/code\u0026gt; cruft.\u003Cbr /\u003E\u003Cbr /\u003Eso to keep things \u003Ca href=\"http://en.wikipedia.org/wiki/DRY\"\u003EDRY\u003C/a\u003E i took the dynamic route:\u003Cbr /\u003E\u003Ccode\u003E\u003C/code\u003E\u003Cpre\u003Elistener_names = ['chat', 'table', 'stats', 'more', 'evenmoar', 'cthulhu', 'lol', 'catz']\u003Cbr /\u003Eself.listeners = {}\u003Cbr /\u003Efor listener_name in listener_names:\u003Cbr /\u003E _class = eval(\"%sListener\" % listener_name.capitalize())\u003Cbr /\u003E self.listeners[listener] = _class(environment, self)\u003C/pre\u003E\u003Cbr /\u003Ewhich looks super confusing, but is SUPER EFFECTIVE!\u003Cbr /\u003E\u003Cbr /\u003Ealso circular references are teh suck. i want code running in\u0026nbsp;contexts. to be able to omit the self parameter.\u003Cbr /\u003E\u003Cbr /\u003Ebut maybe i'm doing it wrong.\u003Cbr /\u003E\u003Cbr /\u003E@hacking @starred"} at my python dayjob i'm writing a chat protocol. it should be possible to extend the protocol later on by adding&nbsp;new subprotocols (command sets) to achieve this i use listeners for each additional subprotocol.<br /><br />the quick and dirty way to get some is:<br /><code></code><pre>self.listeners = {<br /> 'chat' : ChatListener(environment, self),<br /> 'table' : TableListener(environment, self),<br /> 'stats' : StatsListener(environment, self) }</pre><br />but as soon as you have to add a lot of listeners it get's tedious to duplicate all the &lt;code&gt;*Listener(environment, self)&lt;/code&gt; cruft.<br /><br />so to keep things <a href="http://en.wikipedia.org/wiki/DRY">DRY</a> i took the dynamic route:<br /><code></code><pre>listener_names = ['chat', 'table', 'stats', 'more', 'evenmoar', 'cthulhu', 'lol', 'catz']<br />self.listeners = {}<br />for listener_name in listener_names:<br /> _class = eval("%sListener" % listener_name.capitalize())<br /> self.listeners[listener] = _class(environment, self)</pre><br />which looks super confusing, but is SUPER EFFECTIVE!<br /><br />also circular references are teh suck. i want code running in&nbsp;contexts. to be able to omit the self parameter.<br /><br />but maybe i'm doing it wrong.<br /><br />@<a href="http://hacking.soup.io">hacking</a> @starredFri, 28 Mar 2008 21:08:38 GMThttp://urbantakeover.soup.io/post/1896714/eval-is-your-friendurn:www-soup-io:1:1896714regular Bam Oida! :-) {"tags":[],"type":"image","source":"http://flickr.com/photos/asterasnowwhite/2359595706/in/pool-urbantakeover","body":"Bam Oida! :-)","url":"http://a.asset.soup.io/asset/0048/4970_0837.jpeg"} <p><a href="http://flickr.com/photos/asterasnowwhite/2359595706/in/pool-urbantakeover"><img alt="4970_0837_400" height="224" src="http://a.asset.soup.io/asset/0048/4970_0837_400.jpeg" width="400" /></a></p> <p>Bam Oida! :-)</p><p>[Reposted from <span class="user_container user4952" ><a class="" href="http://upsidedown.soup.io"><span class="name">upsidedown</span></a></span>]</p>Fri, 28 Mar 2008 10:51:21 GMThttp://urbantakeover.soup.io/post/1889245/Bam-Oidaurn:www-soup-io:1:1889245image UTO invades hamburg (thanks astera) :D {"tags":[],"type":"image","source":null,"body":"UTO invades hamburg (thanks \u003Ca href=\"http://urbantakeover.at/astera\"\u003Eastera\u003C/a\u003E) :D","url":"http://c.asset.soup.io/asset/0048/9052_2ae7.png"} <p><a href=""><img alt="9052_2ae7_400" height="289" src="http://c.asset.soup.io/asset/0048/9052_2ae7_400.png" width="400" /></a></p> <p>UTO invades hamburg (thanks <a href="http://urbantakeover.at/astera">astera</a>) :D</p>Fri, 28 Mar 2008 10:47:43 GMThttp://urbantakeover.soup.io/post/1889225/UTO-invades-hamburg-thanks-astera-Durn:www-soup-io:1:1889225image "1 799 U.S. dollars = 1 146 Euros" {"tags":[],"type":"quote","title":"OMG LOL! via \u003Ca href=\"http://www.google.at/search?hl=de\u0026amp;client=firefox-a\u0026amp;rls=org.mozilla%3Aen-US%3Aofficial\u0026amp;hs=ccW\u0026amp;q=1799USD+in+EUR\u0026amp;btnG=Suche\u0026amp;meta=\"\u003EGoogle\u003C/a\u003E","source":"http://www.google.at/search?hl=de\u0026client=firefox-a\u0026rls=org.mozilla%3Aen-US%3Aofficial\u0026hs=ccW\u0026q=1799USD+in+EUR\u0026btnG=Suche\u0026meta=","body":"1 799 U.S. dollars = 1 146 Euros"} <p>"1 799 U.S. dollars = 1 146 Euros"</p><p>&ndash;OMG LOL! via <a href="http://www.google.at/search?hl=de&amp;client=firefox-a&amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;hs=ccW&amp;q=1799USD+in+EUR&amp;btnG=Suche&amp;meta=">Google</a></p>Fri, 28 Mar 2008 10:36:01 GMThttp://urbantakeover.soup.io/post/1889194/1-799-U-S-dollars-1-146urn:www-soup-io:1:1889194quote also: you can change your teamcolour now and everything is nicer. {"tags":[],"type":"image","source":null,"body":"also: you can change your teamcolour now and everything is nicer.","url":"http://4.asset.soup.io/asset/0048/4772_c5ea.png"} <p><a href=""><img alt="4772_c5ea_400" height="280" src="http://4.asset.soup.io/asset/0048/4772_c5ea_400.png" width="400" /></a></p> <p>also: you can change your teamcolour now and everything is nicer.</p>Thu, 27 Mar 2008 09:32:25 GMThttp://urbantakeover.soup.io/post/1869168/also-you-can-change-your-teamcolour-nowurn:www-soup-io:1:1869168image due to a code error we now again have colour circles: {"tags":[],"type":"image","source":null,"body":"due to a code error we now again have colour circles:\u003Cbr /\u003E\u003Cbr /\u003Ealso: preparations for flickr are done.\u003Cbr /\u003Ealso: email notifications should work shortly\u003Cbr /\u003Ealso: different city guy still missing %/","url":"http://0.asset.soup.io/asset/0048/4768_9358.png"} <p><a href=""><img alt="4768_9358_400" height="295" src="http://0.asset.soup.io/asset/0048/4768_9358_400.png" width="400" /></a></p> <p>due to a code error we now again have colour circles:<br /><br />also: preparations for flickr are done.<br />also: email notifications should work shortly<br />also: different city guy still missing %/</p>Thu, 27 Mar 2008 09:27:34 GMThttp://urbantakeover.soup.io/post/1869137/due-to-a-code-error-we-nowurn:www-soup-io:1:1869137image o_O {"tags":[],"type":"image","source":"http://flickr.com/photos/24840502@N03/2349892366/in/pool-urbantakeover","body":"o_O","url":"http://4.asset.soup.io/asset/0046/0180_1962.jpeg"} <p><a href="http://flickr.com/photos/24840502@N03/2349892366/in/pool-urbantakeover"><img alt="0180_1962_400" height="300" src="http://4.asset.soup.io/asset/0046/0180_1962_400.jpeg" width="400" /></a></p> <p>o_O</p>Fri, 21 Mar 2008 20:31:33 GMThttp://urbantakeover.soup.io/post/1763635/o-Ourn:www-soup-io:1:1763635image el kris {"tags":[],"type":"image","source":"http://ffffound.com/image/d34410ce77604edd9b12ad043459f0edd454f1f0?c=655099","body":"\u003Ca href=\"http://kpbear.tumblr.com/post/28320108\"\u003Eel kris\u003C/a\u003E","url":"http://f.asset.soup.io/asset/0043/6943_7f82.png"} <p><a href="http://ffffound.com/image/d34410ce77604edd9b12ad043459f0edd454f1f0?c=655099"><img alt="6943_7f82_400" height="244" src="http://f.asset.soup.io/asset/0043/6943_7f82_400.png" width="400" /></a></p> <p><a href="http://kpbear.tumblr.com/post/28320108">el kris</a></p><p>[Reposted from <span class="user_container user19811" ><a class="" href="http://web.soup.io/post/1669166/el-kris"><span class="name">web</span></a></span> via <span class="user_container user15830" ><a class="" href="http://soup.dickert.org/post/1677023/el-kris"><span class="name">Sven</span></a></span>]</p>Wed, 19 Mar 2008 12:37:08 GMThttp://urbantakeover.soup.io/post/1714989/el-krisurn:www-soup-io:1:1714989image typocode: http://ilovetypography.com/img/99-words.gif {"tags":[],"type":"image","source":null,"body":"\u003Cp\u003E\u003Ca href=\"http://typocode.tumblr.com/post/29078740\"\u003Etypocode\u003C/a\u003E:\u003C/p\u003E \u003Cblockquote\u003E\u003Ca href=\"http://ilovetypography.com/img/99-words.gif\"\u003E\u003Ca href=\"http://ilovetypography.com/img/99-words.gif\"\u003Ehttp://ilovetypography.com/img/99-words.gif\u003C/a\u003E\u003C/a\u003E\u003C/blockquote\u003E","url":"http://7.asset.soup.io/asset/0044/1111_09f4.png"} <p><a href=""><img alt="1111_09f4_400" height="159" src="http://7.asset.soup.io/asset/0044/1111_09f4_400.png" width="400" /></a></p> <p><p><a href="http://typocode.tumblr.com/post/29078740">typocode</a>:</p> <blockquote><a href="http://ilovetypography.com/img/99-words.gif"><a href="http://ilovetypography.com/img/99-words.gif">http://ilovetypography.com/img/99-words.gif</a></a></blockquote></p><p>[Reposted from <span class="user_container user22620" ><a class="" href="http://dkoder.soup.io/post/1681814/typocode-http-ilovetypography-com-img-99-words"><span class="name">dkoder</span></a></span> via <span class="user_container user15830" ><a class="" href="http://soup.dickert.org/post/1681854/typocode-http-ilovetypography-com-img-99-words"><span class="name">Sven</span></a></span>]</p>Wed, 19 Mar 2008 12:33:41 GMThttp://urbantakeover.soup.io/post/1714950/typocode-http-ilovetypography-com-img-99-wordsurn:www-soup-io:1:1714950image uto {"tags":[],"type":"regular","title":"uto","source":null,"body":"\u0026nbsp;+= tupalo integration.\u003Cbr /\u003E\u003Cbr /\u003Eclaim any spot without an address. works if it's on tupalo. yay hooray!\u003Cbr /\u003E\u003Cbr /\u003Ealso: bugfixes and stuff."} &nbsp;+= tupalo integration.<br /><br />claim any spot without an address. works if it's on tupalo. yay hooray!<br /><br />also: bugfixes and stuff.Wed, 19 Mar 2008 12:20:51 GMThttp://urbantakeover.soup.io/post/1714785/utourn:www-soup-io:1:1714785regular Wenn Programmierer Flugzeuge bauen (würden) {"tags":[],"type":"video","source":null,"body":"\u003Ca href=\"http://www.dobszay.ch/2008-02-18/wenn-programmierer-flugzeuge-bauen-wuerden/\"\u003EWenn Programmierer Flugzeuge bauen (w\u00fcrden)\u003C/a\u003E","embedcode_or_url":"\u003Cobject height=\"355\" width=\"425\"\u003E\u003Cparam name=\"movie\" value=\"http://www.youtube.com/v/UZq4sZz56qM\u0026amp;rel=1\u0026amp;border=0\"\u003E\u003C/param\u003E\u003Cparam name=\"wmode\" value=\"transparent\"\u003E\u003C/param\u003E\u003Cembed src=\"http://www.youtube.com/v/UZq4sZz56qM\u0026amp;rel=1\u0026amp;border=0\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" height=\"355\" width=\"425\"\u003E\u003C/embed\u003E\u003C/object\u003E"} <object height="355" width="425"><param name="movie" value="http://www.youtube.com/v/UZq4sZz56qM&amp;rel=1&amp;border=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/UZq4sZz56qM&amp;rel=1&amp;border=0" wmode="transparent" type="application/x-shockwave-flash" height="355" width="425"></embed></object><a href="http://www.dobszay.ch/2008-02-18/wenn-programmierer-flugzeuge-bauen-wuerden/">Wenn Programmierer Flugzeuge bauen (würden)</a><p>[Reposted from <span class="user_container user19811" ><a class="" href="http://web.soup.io/post/1264230/Wenn-Programmierer-Flugzeuge-bauen-w-rden"><span class="name">web</span></a></span> via <span class="user_container user21813" ><a class="" href="http://apoc.soup.io/post/1697978/Wenn-Programmierer-Flugzeuge-bauen-w-rden"><span class="name">apoc</span></a></span>]</p>Wed, 19 Mar 2008 12:19:57 GMThttp://urbantakeover.soup.io/post/1714769/Wenn-Programmierer-Flugzeuge-bauen-w-rdenurn:www-soup-io:1:1714769video war? {"tags":[],"type":"image","source":"http://www.flickr.com/photos/asterasnowwhite/2338771988/in/pool-urbantakeover/","body":"war?\u003Cbr /\u003E\u003Cbr /\u003Ethis reminds me get a non-competitive element in the game.\u003Cbr /\u003E\u003Cbr /\u003Ealso: yay for using the stickers to post notes/comments!","url":"http://4.asset.soup.io/asset/0044/5716_a5bd.jpeg"} <p><a href="http://www.flickr.com/photos/asterasnowwhite/2338771988/in/pool-urbantakeover/"><img alt="5716_a5bd" height="500" src="http://4.asset.soup.io/asset/0044/5716_a5bd.jpeg" width="281" /></a></p> <p>war?<br /><br />this reminds me get a non-competitive element in the game.<br /><br />also: yay for using the stickers to post notes/comments!</p>Tue, 18 Mar 2008 17:00:06 GMThttp://urbantakeover.soup.io/post/1698533/warurn:www-soup-io:1:1698533image custom stickers? yeah! {"tags":[],"type":"image","source":"http://www.flickr.com/photos/kewagi/2342434309/in/pool-urbantakeover","body":"custom stickers? yeah!","url":"http://2.asset.soup.io/asset/0044/5714_8ff4.jpeg"} <p><a href="http://www.flickr.com/photos/kewagi/2342434309/in/pool-urbantakeover"><img alt="5714_8ff4_400" height="300" src="http://2.asset.soup.io/asset/0044/5714_8ff4_400.jpeg" width="400" /></a></p> <p>custom stickers? yeah!</p>Tue, 18 Mar 2008 16:58:45 GMThttp://urbantakeover.soup.io/post/1698525/custom-stickers-yeahurn:www-soup-io:1:1698525image Flickr: The urban takeover Pool {"tags":[],"type":"link","title":"Flickr: The urban takeover Pool","source":"http://www.flickr.com/groups/urbantakeover/pool/","body":"w00t!"} <p>w00t!</p> <p><a href="http://www.flickr.com/groups/urbantakeover/pool/">http://www.flickr.com/groups/urbantakeover/pool/</a></p>Tue, 18 Mar 2008 16:58:27 GMThttp://urbantakeover.soup.io/post/1698522/Flickr-The-urban-takeover-Poolurn:www-soup-io:1:1698522link