<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><description>More of a programming nerd than is strictly healthy. See also {nevyn.nu, thirdcog.eu, twitter}</description><title>Overooped</title><generator>Tumblr (3.0; @nevyn)</generator><link>http://overooped.com/</link><item><title>Real time tracking — this is absolutely fantastically...</title><description>&lt;iframe src="http://www.snotr.com/embed/1340" width="400" height="330" frameborder="0"&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href="http://www.snotr.com/video/1340"&gt;Real time tracking&lt;/a&gt; — this is absolutely fantastically great! No real-world markers or in-system knowledge about the surroundings beforehand, only extrapolating point-by-point the surroundings and using recent points as the basis for new points. I can’t wait to use this!</description><link>http://overooped.com/post/39417646</link><guid>http://overooped.com/post/39417646</guid><pubDate>Sun, 22 Jun 2008 20:56:08 +0200</pubDate></item><item><title>Man gets Windows Vista to work with printer</title><description>&lt;a href="http://blog.seattlepi.nwsource.com/microsoft/archives/141343.asp"&gt;Man gets Windows Vista to work with printer&lt;/a&gt;: Actual headline. Just can’t resist reblogging this; there’s just so much wrongness in it. One thing: apparently Vista *redirects* writes to a sensitive folder to *another location* on the system. This wouldn’t have *that* bad, if the alternate location wasn’t as sensitive as the first! I don’t have the details, but the article says the drivers were still active, which implies that wherever Vista redirected the files, they were still loaded at that location. Actually, it *had* been that bad: how does it make any sense at all to not just write-protect the folder instead? Oh, old installers would stop working then, you say? But apparently those that would’ve stopped working then are those that aren’t compatible with Vista anyway! Urrgh, I can’t stand it.</description><link>http://overooped.com/post/39135959</link><guid>http://overooped.com/post/39135959</guid><pubDate>Fri, 20 Jun 2008 11:29:35 +0200</pubDate></item><item><title>Stump The Experts 2008 (Audio only)</title><description>&lt;a href="http://nevyn.nu/Stump_The_Experts_2008.m4a"&gt;Stump The Experts 2008 (Audio only)&lt;/a&gt;: &lt;p&gt;I recorded the Stump The Experts session at WWDC 2008 with my MBP. I missed the first ten minutes or so, unfortunately.&lt;/p&gt;&lt;p&gt;Adding a player here as soon as I’ve uploaded the audio in mp3…&lt;/p&gt;</description><link>http://overooped.com/post/38312124</link><guid>http://overooped.com/post/38312124</guid><pubDate>Fri, 13 Jun 2008 22:45:24 +0200</pubDate></item><item><title>lol.via boxbrown</title><description>&lt;img src="http://media.tumblr.com/MLhBbCcsb9jdgl3eiYFyFDM4_500.gif"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;lol.&lt;/p&gt;&lt;p&gt;via &lt;a href="http://www.webcomicsnation.com/boxbrown/bellen/series.php?view=single&amp;ID=42318"&gt;boxbrown&lt;/a&gt;&lt;/p&gt;</description><link>http://overooped.com/post/36317266</link><guid>http://overooped.com/post/36317266</guid><pubDate>Wed, 28 May 2008 13:18:03 +0200</pubDate></item><item><title>“My God. Whoever created this has won the internet....</title><description>&lt;object width="400" height="336"&gt;&lt;param name="movie" value="http://www.youtube.com/watch?v=lsd96jy3GWY"&gt;&lt;/param&gt;&lt;param name="wmode" value="transparent"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/lsd96jy3GWY" type="application/x-shockwave-flash" width="400" height="336" wmode="transparent"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;“My God. Whoever created this has won the internet. Forever.” And I can’t but agree.</description><link>http://overooped.com/post/35788132</link><guid>http://overooped.com/post/35788132</guid><pubDate>Fri, 23 May 2008 14:21:33 +0200</pubDate></item><item><title>Weekend Hacking</title><description>&lt;p&gt;I had a lot to do this weekend and decided to do none of it, and instead &lt;a href="http://thirdcog.eu/apps/cfxr"&gt;ported&lt;/a&gt; &lt;a href="http://www.cyd.liu.se/~tompe573/hp/project_sfxr.html"&gt;sfxr&lt;/a&gt; to Cocoa, with a native UI and proper save/load :) My version’s called &lt;a href="http://thirdcog.eu/apps/cfxr"&gt;cfxr&lt;/a&gt; (as in “Cocoa sfxr”) and is available at &lt;a href="http://thirdcog.eu/apps/cfxr"&gt;http://thirdcog.eu/apps/cfxr&lt;/a&gt; . I’m not saying it’s better than sfxr, only different and more native. If you’ve got a 10.5 Mac, &lt;a href="http://thirdcog.eu/apps/cfxr"&gt;check it out&lt;/a&gt; and let me know what you think :) It’s basically just an experiment to learn &lt;a href="http://cocoadevcentral.com/articles/000085.php"&gt;Core Data&lt;/a&gt; and &lt;a href="http://cocoadevcentral.com/articles/000080.php"&gt;Bindings&lt;/a&gt; (Thanks, &lt;a href="http://theocacao.com/"&gt;Scott&lt;/a&gt;!), and a reason to make save/load work better on the Mac.&lt;/p&gt;&lt;p&gt;The sfxr code (more specifically, the sdl port), when I first saw it, seemed like the worst mess I’ve ever seen. Sure, it’s a quick hack, but not even keeping state in a struct? OMG. But after working with this code for a weekend, it’s surprisingly good for what it is! “Porting” it to Cocoa was as easy as finding out which globals were properties of the sound (that is, attributes), and adding “sound.” before all accesses to those, and #defining objc syntax as C syntax for the four major playback methods. I guess I could’ve #defined the sound attribute accesses as well, making an upgrade as easy as a copy-paste, but I felt I had already done enough code generation for one day :P (Check out the legacyAccessors.m in the source to see what I mean :P Not very good looking code but it got the job done.)&lt;/p&gt;&lt;p&gt;It’s a rough 0.1 and might need some work. I was also thinking about making the playback part an AudioUnit or VST (just for fun) to make the playback more flexible. It works pretty nice as it is though, so do &lt;a href="http://thirdcog.eu/apps/cfxr"&gt;check it out&lt;/a&gt; :)&lt;/p&gt;</description><link>http://overooped.com/post/35236556</link><guid>http://overooped.com/post/35236556</guid><pubDate>Sun, 18 May 2008 20:12:00 +0200</pubDate></item><item><title>Lazy Man's Logging</title><description>file_put_contents(…, FILE_APPEND) to log is a bad idea and you know it, but it’s sometimes good enough, or you just don’t get paid enough to make something serious. I just let you make it a tiny bit more serious, a whole lot more dependable, and still just change a single line of code.&lt;pre name="code" class="php"&gt;  /// Creates a table called $table as (id, when, message) if none such exists, and inserts a row with $message in it.  /// If no connection details are given, it uses the current database connection. Same goes for $database and $when.  ///  /// @returns TRUE on success or FALSE on failure.  ///  /// @example mysql_put_contents("orders", "I CAN HAZ CHEEZBURGER?", "mysite", NULL, "127.0.0.1:3306", "mysite_user", "secret") or die(mysql_error());  /// @example mysql_put_contents("guestbook", "Longcat says: I'm loooooooooooong") or die("Errorz!");  function mysql_put_contents($table, $message, $database = NULL, $when = NULL, $host = NULL, $user = NULL, $pass = NULL) {    if($host)    mysql_connect($host, $user, $pass);  if($database)    mysql_select_db($database);  $qry = "CREATE TABLE IF NOT EXISTS `$table` (             `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,             `when` TIMESTAMP DEFAULT NOW(),             `message` TEXT NOT NULL           );";    $result = mysql_query($qry);    if($result === FALSE)      return FALSE;          $qry = "INSERT INTO `$table` VALUES(NULL, ".($when ? $when : 'NULL').", '".mysql_real_escape_string($message)."');";    $result = mysql_query($qry);    if($result === FALSE)      return FALSE;          return TRUE;  }&lt;/pre&gt;</description><link>http://overooped.com/post/35063696</link><guid>http://overooped.com/post/35063696</guid><pubDate>Fri, 16 May 2008 23:40:10 +0200</pubDate></item><item><title>"The simple fact that most or all of [Apple’s] competition haven’t really comprehended..."</title><description>“The simple fact that most or all of [Apple’s] competition haven’t really comprehended what Apple’s advantage is yet - it’s ascribed to design as in “pretty”, strong brand as in “luxury” and customer loyalty as in “Apple users are fools”. This cluelessness has given Apple a head start unlike a common technology arms race, and frankly there’s no sign that their competitors are about to “get it”.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Arru in the comments to Moonwatcher’s &lt;a href="http://globelogger.com/2008/05/why-doesnt-appl.html"&gt;Why Doesn’t Apple Face The Innovator’s Dilemma?&lt;/a&gt;&lt;/em&gt;</description><link>http://overooped.com/post/34683317</link><guid>http://overooped.com/post/34683317</guid><pubDate>Tue, 13 May 2008 19:41:34 +0200</pubDate></item><item><title>(Adium 1.2.5, when sending a file to a meta-contact (someone in...</title><description>&lt;img src="http://media.tumblr.com/MLhBbCcsb8vft2bgKIlw9lmL_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;(Adium 1.2.5, when sending a file to a meta-contact (someone in my contact list who I have multiple accounts on))&lt;/p&gt;&lt;p&gt;Eh. Very nice, Adium. Classy. I like the unique identifiers. Thought Adium was above bad UIs :P&lt;/p&gt;</description><link>http://overooped.com/post/34451324</link><guid>http://overooped.com/post/34451324</guid><pubDate>Sun, 11 May 2008 19:17:53 +0200</pubDate></item><item><title>Gin, Television, and Social Surplus</title><description>&lt;a href="http://www.herecomeseverybody.org/2008/04/looking-for-the-mouse.html"&gt;Gin, Television, and Social Surplus&lt;/a&gt;: &lt;p&gt;What I got out of this article is (and yes, I’m going to ruin the punch line now), if the US tv-watching population got up and wrote a few words on wikipedia every time ads came on, and wikipedia was started, completely from scratch, on Friday night, the entire history of wikipedia — every page, every edit, every talk page, every line of code, in every language that Wikipedia exists in — would have been completed by Sunday night. One weekend. Just the time spent watching ads during one weekend. That completely boggles my mind.&lt;/p&gt;&lt;p&gt;(&lt;a href="http://blip.tv/file/855937"&gt;video version&lt;/a&gt;, via &lt;a href="http://daringfireball.net/linked/2008/april#mon-28-shirky"&gt;gruber&lt;/a&gt;)&lt;/p&gt;</description><link>http://overooped.com/post/33109637</link><guid>http://overooped.com/post/33109637</guid><pubDate>Mon, 28 Apr 2008 16:27:00 +0200</pubDate></item><item><title>"The men who program in C are Real Men. The women who program in C are Real Men too. You can spot a C..."</title><description>“The men who program in C are Real Men. The women who program in C are Real Men too. You can spot a C programmer from their testosterone fueled swagger, and the unbelievable amount of contempt they inject into the phrase Java “programmer”.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://xrl.us/bjwcq"&gt;Urban Dictionary: C++&lt;/a&gt; via &lt;a href="http://twitter.com/violasong/statuses/798518022"&gt;@violasong&lt;/a&gt;&lt;/em&gt;</description><link>http://overooped.com/post/33086643</link><guid>http://overooped.com/post/33086643</guid><pubDate>Mon, 28 Apr 2008 10:54:00 +0200</pubDate></item><item><title>PHP: Timeout on file_get_contents</title><description>&lt;p&gt;Since there doesn’t seem to be a single piece of documentation or example on the use of the context option for file_get_contents, and everyone’s actually setting the PHP app’s ini value for timeout (euugh) instead of doing it right, I thought I’d feed this to google:&lt;/p&gt;&lt;div style="text-align:left;color:#000000; background-color:#ffffff; border:solid black 1px; padding:0.5em 1em 0.5em 1em; overflow:auto;font-size:small; font-family:monospace; "&gt;&lt;span style="color:#825900;"&gt;$ctx&lt;/span&gt; = &lt;span style="color:#661aa9;"&gt;stream_context_create&lt;/span&gt;(&lt;span style="color:#881350;"&gt;array&lt;/span&gt;(&lt;br/&gt;    &lt;span style="color:#eb7300;"&gt;‘http’&lt;/span&gt; =&gt; &lt;span style="color:#881350;"&gt;array&lt;/span&gt;(&lt;br/&gt;        &lt;span style="color:#eb7300;"&gt;‘timeout’&lt;/span&gt; =&gt; &lt;span style="color:#0000ff;"&gt;1&lt;/span&gt;&lt;br/&gt;        )&lt;br/&gt;    )&lt;br/&gt;);&lt;br/&gt;&lt;span style="color:#003369;"&gt;file_get_contents&lt;/span&gt;(&lt;span style="color:#eb7300;"&gt;“http://google.com/”&lt;/span&gt;, &lt;span style="color:#0000ff;"&gt;0&lt;/span&gt;, &lt;span style="color:#825900;"&gt;$ctx&lt;/span&gt;);&lt;/div&gt;&lt;p&gt;The unit on the timeout argument is seconds as a float; that is, it is possible to use fractions (e g set timeout to 0.1).&lt;/p&gt;</description><link>http://overooped.com/post/31812358</link><guid>http://overooped.com/post/31812358</guid><pubDate>Tue, 15 Apr 2008 11:30:29 +0200</pubDate></item><item><title>My girlfriend will love this. (Viajonic).</title><description>&lt;img src="http://media.tumblr.com/2bzuZxyp97ae5lf3PbUkMcIE_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;My girlfriend will love this. (Via&lt;a href="http://tumblr.100yen.co.uk/post/31302436"&gt;jonic&lt;/a&gt;).</description><link>http://overooped.com/post/31459484</link><guid>http://overooped.com/post/31459484</guid><pubDate>Fri, 11 Apr 2008 14:34:35 +0200</pubDate></item><item><title>Dr. Albert Bartlett: Arithmetic, Population and Energy</title><description>&lt;a href="http://globalpublicmedia.com/transcripts/645"&gt;Dr. Albert Bartlett: Arithmetic, Population and Energy&lt;/a&gt;: These were not &lt;i&gt;really&lt;/i&gt; things that I didn’t already know. Stated so boldly, however, the facts really shock me. I get the sudden urge to build a bunker powered by solar cells, and prepare for the inevitable war for our dwindling resources. (&lt;a href="http://video.google.com/videoplay?docid=-5051121482067161853&amp;q=%22Arithmetic%2C+Population+and+Energy%22&amp;total=11&amp;start=0&amp;num=10&amp;so=0&amp;type=search&amp;plindex=0"&gt;Video&lt;/a&gt;, &lt;a href="http://media.globalpublicmedia.com/RM/2005/08/Bartlett.mp3"&gt;audio&lt;/a&gt;, &lt;a href="http://globalpublicmedia.com/transcripts/645"&gt;transcript&lt;/a&gt;)&lt;p style="font-size: 1.5em;"&gt;&lt;i&gt;“So no matter how you cut it, in your life expectancy, you are going to see the peak of world oil production.”&lt;/i&gt; &lt;/p&gt;</description><link>http://overooped.com/post/31394988</link><guid>http://overooped.com/post/31394988</guid><pubDate>Thu, 10 Apr 2008 23:53:00 +0200</pubDate></item><item><title>Trouble in Rails Land - order_id is null </title><description>&lt;a href="http://rafb.net/p/j1omDW48.html"&gt;Trouble in Rails Land - order_id is null &lt;/a&gt;: Can someone please explain to me why this is fails? I’d be very, very grateful. I must be missing something very essential, and I thought I had begun to grok rails by now… It worked great for a while, and then suddenly stopped working.</description><link>http://overooped.com/post/31272608</link><guid>http://overooped.com/post/31272608</guid><pubDate>Wed, 09 Apr 2008 20:31:00 +0200</pubDate></item><item><title>Location bar autocomplete in Safari rocks.</title><description>&lt;object type="application/x-shockwave-flash" width="400" height="311" data="http://vimeo.com/moogaloop.swf?clip_id=865596&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF"&gt;&lt;param name="quality" value="best" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="scale" value="showAll" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=865596&amp;server=vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF" /&gt;&lt;/object&gt;&lt;br/&gt;&lt;br/&gt;Location bar autocomplete in Safari rocks.</description><link>http://overooped.com/post/30935987</link><guid>http://overooped.com/post/30935987</guid><pubDate>Sun, 06 Apr 2008 12:35:33 +0200</pubDate></item><item><title>Re: Firefox 3 vs. Safari 3</title><description>&lt;p&gt;I agree with &lt;a href="http://daringfireball.net/2008/04/firefox_3_safari_3"&gt;everything that Gruber writes about in his latest article&lt;/a&gt;. &lt;a href="http://voxar.net/"&gt;A friend of mine&lt;/a&gt; went majorly goddamned-mac-zealot on me and his article (had to explain not once but *twice* that Gruber wasn’t saying “FF should be exactly as Safari” but “Safari beats the Mac port of FF on a number of points” :P) All is well and good though, as he found a fix for the most annoying UI element of FF3 for me: single-click-selects-entire-URL. I almost screamed from frustration from just trying to edit the URL a few days ago. Here’s how to fix it, though:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Go to about:config (type it in the location bar and type enter)&lt;/li&gt;&lt;li&gt;Filter on “clickSelects”&lt;/li&gt;&lt;li&gt;Double-click on the row that says “browser.urlbar.clickSelectsAll” to set it to false.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Now when you single-click in a Firefox location bar, it’ll place the caret in it; double click will select word; and triple-click will select the whole line, just like in a Mac app.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Addendum&lt;/b&gt;: Okay, so Voxar tried to convince me that Safari’s location bar was idiotic and illogical (of course only from reading Gruber’s article and not trying it out, even though he has a Mac on his desk :P), and challenged me: if Safari always highlights the first autocomplete entry when you type an url, wouldn’t it be VERY cumbersome to enter e g “http://daringfireball.net/2008/” when the only URL in your history is “http://daringfireball.net/2008/04/firefox_3_safari_3”? The answer is of course, no :) In Safari, you type “da[right-arrow]2008[backspace][enter]” and you’re done with it. The same scenario in Firefox would require you to type the entire URL in by hand, since the autocomplete would be completely useless (even the &lt;a href="http://ed.agadak.net/2007/11/smartbar-to-awesomebar"&gt;AwesomeBar&lt;/a&gt; would be stumped!). Now I remember why I love Safari :) (&lt;a href="http://overooped.com/post/30935987"&gt;Watch It In Full Motion.&lt;/a&gt;)&lt;/p&gt;</description><link>http://overooped.com/post/30932542</link><guid>http://overooped.com/post/30932542</guid><pubDate>Sun, 06 Apr 2008 11:32:00 +0200</pubDate></item><item><title>"Micro-benchmarks are pretty irrelevant, and you would think Sun’s big honchos would know that...."</title><description>“Micro-benchmarks are pretty irrelevant, and you would think Sun’s big honchos would know that. However, when you realize that J2EE is a huge pile of steaming manure weighing down the people unfortunate enough to be using it, I guess it makes sense to shout “but our arithmetic is really fast!”.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://www.cincomsmalltalk.com/blog/blogView?showComments=true&amp;printTitle=Earth_to_Sun&amp;entry=3384074930"&gt;Earth to Sun&lt;/a&gt;&lt;/em&gt;</description><link>http://overooped.com/post/30688439</link><guid>http://overooped.com/post/30688439</guid><pubDate>Thu, 03 Apr 2008 18:27:13 +0200</pubDate></item><item><title>Human Computation</title><description>&lt;a href="http://video.google.com/videoplay?docid=-8246463980976635143"&gt;Human Computation&lt;/a&gt;: This data set could be really, really, really useful.</description><link>http://overooped.com/post/30278634</link><guid>http://overooped.com/post/30278634</guid><pubDate>Sun, 30 Mar 2008 20:36:00 +0200</pubDate></item><item><title>build_hd_index is evil.</title><description>&lt;a href="http://devnevyn.livejournal.com/3558.html"&gt;build_hd_index is evil.&lt;/a&gt;: &lt;p&gt;An old blog entry of mine about my arch-nemesis build_hd_index. I once disabled it by chmod 000’ing the file. I have now learned that this is a very bad idea. The 10.5.2 Server updater has a new version of this file. When Installer tries to install it, it fails. However, it does not rollback, which means that your system has just been screwed.&lt;/p&gt;&lt;p&gt;Target Disk Mode and &lt;a href="http://www.charlessoft.com/"&gt;Pacifist&lt;/a&gt; are my very best friends.&lt;/p&gt;</description><link>http://overooped.com/post/30167945</link><guid>http://overooped.com/post/30167945</guid><pubDate>Sat, 29 Mar 2008 11:26:54 +0100</pubDate></item></channel></rss>
