Ben Buckman's Tech Blog http://benbuckman.net/tech Discoveries in the midst of my digital life en Useful code snippet for Webform default values http://benbuckman.net/tech/10/03/useful-code-snippet-webform-default-values A little code snippet I expect to need again in the future: Drupal's <a href="http://drupal.org/project/webform">Webform</a> module lets <span class="geshifilter"><code class="text geshifilter-text">&lt;select&gt;</code></span> elements have default values, but if the default value isn't one of the actual items, it still shows as "select..." as the default. (This is important for validation: if the field is required but the top/blank/default value is in the value list, it'll be counted as valid.) This snippet in a hook_form_alter seems to do the trick: <div class="geshifilter"><pre class="php geshifilter-php" style="font-family:monospace;"><span class="kw2">function</span> MODULE_form_alter<span class="br0">&#40;</span><span class="sy0">&amp;</span><span class="re0">$form</span><span class="sy0">,</span> <span class="re0">$form_state</span><span class="sy0">,</span> <span class="re0">$form_id</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">switch</span> <span class="br0">&#40;</span><span class="re0">$form_id</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> <span class="kw1">case</span> <span class="st_h">'webform_client_form_NID'</span><span class="sy0">:</span> <span class="co1">// put your actual nid or other identifier here</span> <span class="co1">// change default &quot;select...&quot; to default value if default value isn't one of the options</span> <span class="re0">$list</span> <span class="sy0">=</span> <span class="sy0">&amp;</span><span class="re0">$form</span><span class="br0">&#91;</span><span class="st_h">'submitted'</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st_h">'FIELDSET'</span><span class="br0">&#93;</span><span class="br0">&#91;</span><span class="st_h">'LIST'</span><span class="br0">&#93;</span><span class="sy0">;</span> <span class="co1">// per your FAPI array</span> <span class="kw1">if</span> <span class="br0">&#40;</span> <span class="kw3">reset</span><span class="br0">&#40;</span><span class="re0">$list</span><span class="br0">&#91;</span><span class="st_h">'#options'</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="sy0">===</span> <span class="st_h">'select...'</span> <span class="co1">// unchanged from default</span> <span class="sy0">&amp;&amp;</span> <span class="sy0">!</span><span class="kw3">empty</span><span class="br0">&#40;</span><span class="re0">$list</span><span class="br0">&#91;</span><span class="st_h">'#default_value'</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="co1">// list has another default</span> <span class="sy0">&amp;&amp;</span> <span class="sy0">!</span><span class="kw3">array_key_exists</span><span class="br0">&#40;</span><span class="re0">$list</span><span class="br0">&#91;</span><span class="st_h">'#default_value'</span><span class="br0">&#93;</span><span class="sy0">,</span> <span class="re0">$list</span><span class="br0">&#91;</span><span class="st_h">'#options'</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="br0">&#41;</span> <span class="co1">// its default isn't one of the options</span> <span class="br0">&#123;</span> <span class="co1">// this is a little tricky b/c the blank-string 1st key is very important</span> <span class="kw3">array_shift</span><span class="br0">&#40;</span><span class="re0">$list</span><span class="br0">&#91;</span><span class="st_h">'#options'</span><span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="re0">$list</span><span class="br0">&#91;</span><span class="st_h">'#options'</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="kw3">array</span><span class="br0">&#40;</span><span class="st_h">''</span> <span class="sy0">=&gt;</span> <span class="re0">$list</span><span class="br0">&#91;</span><span class="st_h">'#default_value'</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="sy0">+</span> <span class="re0">$list</span><span class="br0">&#91;</span><span class="st_h">'#options'</span><span class="br0">&#93;</span><span class="sy0">;</span> <span class="br0">&#125;</span> &nbsp; <span class="kw1">break</span><span class="sy0">;</span> <span class="br0">&#125;</span> <span class="br0">&#125;</span></pre></div> http://benbuckman.net/tech/10/03/useful-code-snippet-webform-default-values#comments drupal Wed, 17 Mar 2010 19:42:18 +0000 ben 5710 at http://benbuckman.net [tweet] <p>Latest in Google v ... http://twitter.com/thebuckst0p <p>Latest in Google v Censorship: S Korea wants to regulate Android games or ban whole Android Market. <a href="http://bit.ly/ajgPiA" title="http://bit.ly/ajgPiA">http://bit.ly/ajgPiA</a></p> http://benbuckman.net/tweet/10/03/5705#comments Mon, 15 Mar 2010 23:40:22 +0000 ben 5705 at http://benbuckman.net [tweet] <p>[retweet] @DavidKaneda ... http://twitter.com/thebuckst0p <p>[retweet] @DavidKaneda Interesting mobile browser market share infographic: <a href="http://bit.ly/bYHvR9" title="http://bit.ly/bYHvR9">http://bit.ly/bYHvR9</a> &gt;&gt; Opera in Asia,Africa esp surprising</p> http://benbuckman.net/tweet/10/03/5701#comments Mon, 15 Mar 2010 18:51:58 +0000 ben 5701 at http://benbuckman.net [tweet] <p>Another great @scobleizer ... http://twitter.com/thebuckst0p <p>Another great @scobleizer interview of ALikeList. Awesome idea, checking it out now. <a href="http://bit.ly/ansDhi" title="http://bit.ly/ansDhi">http://bit.ly/ansDhi</a></p> http://benbuckman.net/tweet/10/03/5690#comments Thu, 11 Mar 2010 04:07:29 +0000 ben 5690 at http://benbuckman.net [tweet] <p>It seems like Firefox loads ... http://twitter.com/thebuckst0p <p>It seems like Firefox loads images much slower when their URLs have spaces in them. (Safari doesn't.) Can anyone corroborate this?</p> http://benbuckman.net/tweet/10/03/5688#comments Tue, 09 Mar 2010 21:53:14 +0000 ben 5688 at http://benbuckman.net [tweet] <p>Very interesting interview ... http://twitter.com/thebuckst0p <p>Very interesting interview by @scobleizer of @cloudera CEO Mike Olson on Hadoop and new scalable data technologies: <a href="http://bit.ly/cR0Kgb" title="http://bit.ly/cR0Kgb">http://bit.ly/cR0Kgb</a></p> http://benbuckman.net/tweet/10/03/5684#comments Mon, 08 Mar 2010 14:42:11 +0000 ben 5684 at http://benbuckman.net [tweet] <p>Attempting to build a ... http://twitter.com/thebuckst0p <p>Attempting to build a hackintosh before my Win7 RC expires ... so far so good. <div class="twitpic-filter-wrapper"><a href="http://twitpic.com/15x8e1" target="_blank"><img src="http://benbuckman.net/sites/benbuckman.net/files/imagecache/large_400/twitpics/twitpic_15x8e1.jpg" alt="" title="" class="imagecache imagecache-large_400" width="400" height="299" /></a></div></p> http://benbuckman.net/tweet/10/02/5669#comments Sun, 28 Feb 2010 22:30:52 +0000 ben 5669 at http://benbuckman.net New Twitpic Filter release http://benbuckman.net/tech/10/02/new-twitpic-filter-release <p>I released a new beta of my <a href="http://drupal.org/project/twitpic_filter">Twitpic Filter module</a> for Drupal, which converts <a href="http://twitpic.com">Twitpic</a> URLs (in Twitter feeds or elsewhere) to full images (with customizable formatting). This makes for a very easy mobile-photoblogging platform.</p> <p> <a href="http://drupal.org/project/twitpic_filter">Check it out</a>.</p> http://benbuckman.net/tech/10/02/new-twitpic-filter-release#comments drupal twitpic_filter Mon, 22 Feb 2010 14:26:38 +0000 ben 5646 at http://benbuckman.net The new Wired http://benbuckman.net/tech/10/02/new-wired <p><em>Wired</em> Magazine previews their Adobe AIR/iPad experience:</p> <object id="flashObj" width="404" height="436" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"><param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/1813626064?isVid=1&publisherID=1564549380" /><param name="bgcolor" value="#FFFFFF" /><param name="flashVars" value="videoId=66775419001&playerID=1813626064&domain=embed&" /><param name="base" value="http://admin.brightcove.com" /><param name="seamlesstabbing" value="false" /><param name="allowFullScreen" value="true" /><param name="swLiveConnect" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://c.brightcove.com/services/viewer/federated_f9/1813626064?isVid=1&publisherID=1564549380" bgcolor="#FFFFFF" flashVars="videoId=66775419001&playerID=1813626064&domain=embed&" base="http://admin.brightcove.com" name="flashObj" width="404" height="436" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object><p> <em>Sports Illustrated</em> and <em>Popular Science</em> <a href="http://benbuckman.net/tech/09/12/future-magazines">showed their own concepts</a> a few months ago... this is going to be awesome.</p> http://benbuckman.net/tech/10/02/new-wired#comments media Sun, 21 Feb 2010 23:25:33 +0000 ben 5645 at http://benbuckman.net [tweet] <p><div ... http://twitter.com/thebuckst0p <p><div class="twitpic-filter-wrapper"><a href="http://twitpic.com/14kqed" target="_blank"><img src="http://benbuckman.net/sites/benbuckman.net/files/imagecache/large_400/twitpics/twitpic_14kqed.png" alt="" title="" class="imagecache imagecache-large_400" width="225" height="400" /></a></div> - My first Android app!</p> http://benbuckman.net/tweet/10/02/5643#comments android Sun, 21 Feb 2010 18:12:41 +0000 ben 5643 at http://benbuckman.net [tweet] <p>Trying out Swype input on ... http://twitter.com/thebuckst0p <p>Trying out Swype input on my Droid, it's pretty awesome. <a href="http://bit.ly/dyAW2E" title="http://bit.ly/dyAW2E">http://bit.ly/dyAW2E</a></p> http://benbuckman.net/tweet/10/02/5642#comments Sun, 21 Feb 2010 00:35:34 +0000 ben 5642 at http://benbuckman.net [tweet] <p>via @phillamb168, the ... http://twitter.com/thebuckst0p <p>via @phillamb168, the "conversations" we have with poorly built (or Flash-heavy) websites... <a href="http://bit.ly/aCRx2G" title="http://bit.ly/aCRx2G">http://bit.ly/aCRx2G</a></p> http://benbuckman.net/tweet/10/02/5633#comments Fri, 19 Feb 2010 20:47:12 +0000 ben 5633 at http://benbuckman.net [tweet] <p>If Version Control Systems ... http://twitter.com/thebuckst0p <p>If Version Control Systems were Airlines (VERY funny): <a href="http://bit.ly/cT2Csf" title="http://bit.ly/cT2Csf">http://bit.ly/cT2Csf</a></p> http://benbuckman.net/tweet/10/02/5632#comments Fri, 19 Feb 2010 19:07:52 +0000 ben 5632 at http://benbuckman.net [tweet] <p>Congrats to @ginatrapani ... http://twitter.com/thebuckst0p <p>Congrats to @ginatrapani for getting hired by ExpertLabs to work on ThinkTank. I hope she'll still be on TwiG! <a href="http://bit.ly/dbBEpB" title="http://bit.ly/dbBEpB">http://bit.ly/dbBEpB</a></p> http://benbuckman.net/tweet/10/02/5626#comments Thu, 18 Feb 2010 03:47:43 +0000 ben 5626 at http://benbuckman.net [tweet] <p>Outlook 2010 gets social. ... http://twitter.com/thebuckst0p <p>Outlook 2010 gets social. Why would someone pay $200 for desktop software that does the same as free cloud apps?</p> http://benbuckman.net/tweet/10/02/5627#comments Thu, 18 Feb 2010 03:44:02 +0000 ben 5627 at http://benbuckman.net [tweet] <p>Who's going to ... http://twitter.com/thebuckst0p <p>Who's going to DrupalCon SF? Plz let me know if you'll be there!</p> http://benbuckman.net/tweet/10/02/5620#comments Tue, 16 Feb 2010 22:39:04 +0000 ben 5620 at http://benbuckman.net [tweet] <p>I run Windows 7 RC on my ... http://twitter.com/thebuckst0p <p>I run Windows 7 RC on my home desktop. On 3/1 it'll expire and shut down every 2hrs. Time to ditch Windoze for good and build a hackintosh?</p> http://benbuckman.net/tweet/10/02/5621#comments Tue, 16 Feb 2010 22:31:20 +0000 ben 5621 at http://benbuckman.net [tweet] <p>Android coming to netbooks. ... http://twitter.com/thebuckst0p <p>Android coming to netbooks. Root this &amp; you've got a touchscreen Linux device. Wonder if ChromeOS+android should merge <a href="http://bit.ly/dBQauL" title="http://bit.ly/dBQauL">http://bit.ly/dBQauL</a></p> http://benbuckman.net/tweet/10/02/5619#comments Mon, 15 Feb 2010 19:02:47 +0000 ben 5619 at http://benbuckman.net [tweet] <p>@merlinmann does the ... http://twitter.com/thebuckst0p <p>@merlinmann does the international hand gesture for regular expressions on MacBreak, <a href="http://bit.ly/cH0eJE" title="http://bit.ly/cH0eJE">http://bit.ly/cH0eJE</a> #geek</p> http://benbuckman.net/tweet/10/02/5611#comments Sat, 13 Feb 2010 20:05:39 +0000 ben 5611 at http://benbuckman.net [tweet] <p>via @garrytan: education ... http://twitter.com/thebuckst0p <p>via @garrytan: education negatively correlates with ad click rates. Makes it hard to support intelligent content. <a href="http://bit.ly/dgVa9C" title="http://bit.ly/dgVa9C">http://bit.ly/dgVa9C</a></p> http://benbuckman.net/tweet/10/02/5608#comments Sat, 13 Feb 2010 03:16:44 +0000 ben 5608 at http://benbuckman.net [tweet] <p>via @mashable, how to ... http://twitter.com/thebuckst0p <p>via @mashable, how to integrate Facebook &amp; Twitter into Gmail. Goodbye TweetDeck. <a href="http://bit.ly/9eqqnh" title="http://bit.ly/9eqqnh">http://bit.ly/9eqqnh</a></p> http://benbuckman.net/tweet/10/02/5609#comments Sat, 13 Feb 2010 03:11:26 +0000 ben 5609 at http://benbuckman.net [tweet] <p>Why is there no live video ... http://twitter.com/thebuckst0p <p>Why is there no live video online of the opening ceremony? #Olympics</p> http://benbuckman.net/tweet/10/02/5610#comments Sat, 13 Feb 2010 02:55:44 +0000 ben 5610 at http://benbuckman.net [tweet] <p>[retweet] @chrismessina: ... http://twitter.com/thebuckst0p <p>[retweet] @chrismessina: Dear Google Buzz: 4 Features You Need to Add Now - <a href="http://bit.ly/bb9ple" title="http://bit.ly/bb9ple">http://bit.ly/bb9ple</a> /via @mashable tip @techmeme (good stuff in th ...</p> http://benbuckman.net/tweet/10/02/5603#comments Fri, 12 Feb 2010 04:53:43 +0000 ben 5603 at http://benbuckman.net [tweet] <p>This is a beautiful way to ... http://twitter.com/thebuckst0p <p>This is a beautiful way to hire programmers. <a href="http://www.quora.com/challenges" title="http://www.quora.com/challenges">http://www.quora.com/challenges</a></p> http://benbuckman.net/tweet/10/02/5604#comments Fri, 12 Feb 2010 04:49:46 +0000 ben 5604 at http://benbuckman.net [tweet] <p>I gotta say, that Acquia D7 ... http://twitter.com/thebuckst0p <p>I gotta say, that Acquia D7 webinar was disappointing. 7mo behind schedule, tons of crucial UI fixes not started yet.</p> http://benbuckman.net/tweet/10/02/5602#comments Thu, 11 Feb 2010 20:42:23 +0000 ben 5602 at http://benbuckman.net [tweet] <p>Figuring out how to ... http://twitter.com/thebuckst0p <p>Figuring out how to integrate Buzz into my social flow. Can I integrate it nicely with Twitter? <a href="http://goo.gl/hRQV" title="http://goo.gl/hRQV">http://goo.gl/hRQV</a></p> http://benbuckman.net/tweet/10/02/5600#comments Thu, 11 Feb 2010 20:08:40 +0000 ben 5600 at http://benbuckman.net [tweet] <p>Watching Acquia webinar on ... http://twitter.com/thebuckst0p <p>Watching Acquia webinar on Drupal 7 usability enhancements <a href="http://bit.ly/9mMBVH" title="http://bit.ly/9mMBVH">http://bit.ly/9mMBVH</a></p> http://benbuckman.net/tweet/10/02/5599#comments Thu, 11 Feb 2010 19:41:51 +0000 ben 5599 at http://benbuckman.net [tweet] <p>... mobile buzz.google.com ... http://twitter.com/thebuckst0p <p>... mobile buzz.google.com is working now</p> http://benbuckman.net/tweet/10/02/5591#comments Tue, 09 Feb 2010 19:26:46 +0000 ben 5591 at http://benbuckman.net [tweet] <p>Just discovered <a ... http://twitter.com/thebuckst0p <p>Just discovered <a href="http://fastflip.googlelabs.com" title="http://fastflip.googlelabs.com">http://fastflip.googlelabs.com</a> - like flipping thru a newspaper stand. (try it on a mobile)</p> http://benbuckman.net/tweet/10/02/5592#comments Tue, 09 Feb 2010 19:23:26 +0000 ben 5592 at http://benbuckman.net [tweet] <p>... but there's ... http://twitter.com/thebuckst0p <p>... but there's nothing new in my gmail and mobile site is 404'ing. #googlebuzz #fail</p> http://benbuckman.net/tweet/10/02/5593#comments Tue, 09 Feb 2010 19:15:36 +0000 ben 5593 at http://benbuckman.net [tweet] <p>[retweet] @chrismessina: ... http://twitter.com/thebuckst0p <p>[retweet] @chrismessina: And, we're live! <a href="http://buzz.google.com" title="http://buzz.google.com">http://buzz.google.com</a> #googlebuzz</p> http://benbuckman.net/tweet/10/02/5594#comments Tue, 09 Feb 2010 19:10:05 +0000 ben 5594 at http://benbuckman.net [tweet] <p>Motorola Droid getting ... http://twitter.com/thebuckst0p <p>Motorola Droid getting Android 2.1 this week, including multitouch. (Part of the "shooting war" betw Google &amp; Apple) <a href="http://bit.ly/ciUNy6" title="http://bit.ly/ciUNy6">http://bit.ly/ciUNy6</a></p> http://benbuckman.net/tweet/10/02/5590#comments Tue, 09 Feb 2010 18:34:45 +0000 ben 5590 at http://benbuckman.net [tweet] <p>[retweet] @dweinberger: ... http://twitter.com/thebuckst0p <p>[retweet] @dweinberger: Fred Chang's theory of how Google was hacked: More by espionage than tech. <a href="http://bit.ly/cqqVRX" title="http://bit.ly/cqqVRX">http://bit.ly/cqqVRX</a></p> http://benbuckman.net/tweet/10/02/5587#comments Sat, 06 Feb 2010 18:09:39 +0000 ben 5587 at http://benbuckman.net [tweet] <p>...well twitroid does have ... http://twitter.com/thebuckst0p <p>...well twitroid does have geo/local search and clipboard integration. Hmm. #droid</p> http://benbuckman.net/tweet/10/02/5585#comments Sat, 06 Feb 2010 04:56:20 +0000 ben 5585 at http://benbuckman.net [tweet] <p>Seesmic now supports ... http://twitter.com/thebuckst0p <p>Seesmic now supports multiple accounts. Any reason not to uninstall Twitroid? #droid</p> http://benbuckman.net/tweet/10/02/5584#comments Sat, 06 Feb 2010 04:50:10 +0000 ben 5584 at http://benbuckman.net [tweet] <p>Wow - Twitter's ... http://twitter.com/thebuckst0p <p>Wow - Twitter's development history in color and sound using Code Swarm. <a href="http://bit.ly/aLH4To" title="http://bit.ly/aLH4To">http://bit.ly/aLH4To</a></p> http://benbuckman.net/tweet/10/02/5582#comments Sat, 06 Feb 2010 00:50:12 +0000 ben 5582 at http://benbuckman.net HipHop PHP Engine by Facebook http://benbuckman.net/tech/10/02/hiphop-php-engine-facebook <p>Facebook formally <a href="http://www.ustream.tv/recorded/4409735">presented</a> its HipHop project last night. (Video below.) PHP is written in C but interpreted and runtime, and trades code simplicity for performance. So HipHop aims to convert PHP into optimized C++ "just in time" (which I think is the same as runtime), then compile that C++ and run it much faster than PHP would otherwise run. They've been running it live for six months and claim it uses 50% less CPU than the standard engine with equal traffic, and 30% less CPU with twice the traffic (compared to the Zend engine with <a href="http://pecl.php.net/package/APC">APC</a> opcode cache).</p> <p>Most of the "magical" features supported in PHP (but not in C++) were preserved, but <span class="geshifilter"><code class="text geshifilter-text">eval()</code></span>, which allows arbitrary code to be run in the script, was removed. This means Drupal can't use HipHop, for one thing.</p> <p>The optimization potential depends on "how much of your code looks like C++?" Flexible variable types, for instance, run slower than type-cast variables, so HipHop has an "inference engine" to convert to C++ variable types, gaining performance for clear types but not so much when using "variant" types.</p> <p>HipHop also uses its own HTTP server, so no Apache support (yet). Tabini <a href="http://blog.tabini.ca/2010/02/hiphop-what-you-need-to-know/">notes</a>, "Of course, this doesn’t preclude you from running one or more HipHop projects against separate ports on the same machine and then use Apache (or Squid, or any other server) to reverse proxy to them."</p> <p>It'll all be open source, of course: the project home is <a href="http://developers.facebook.com/hiphop-php/">here</a>, and code will be on GitHub "soon."</p> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="386" id="utv409402" name="utv_n_730885"><param name="flashvars" value="autoplay=false" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.ustream.tv/flash/video/4409735" /><embed flashvars="autoplay=false" width="480" height="386" allowfullscreen="true" allowscriptaccess="always" id="utv409402" name="utv_n_730885" src="http://www.ustream.tv/flash/video/4409735" type="application/x-shockwave-flash" /></object><p> Update: Four Kitchens <a href="http://fourkitchens.com/blog/2010/02/03/making-drupal-pressflow-more-mundane">ponders</a> ways Drupal could be modified to support HipHop. (The changes suggested there should probably be done regardless.) I look forward to seeing that in their <a href="http://pressflow.org/">Pressflow</a> distribution.</p> http://benbuckman.net/tech/10/02/hiphop-php-engine-facebook#comments facebook hiphop php Wed, 03 Feb 2010 15:38:12 +0000 ben 5570 at http://benbuckman.net [tweet] <p>Facebook announced its ... http://twitter.com/thebuckst0p <p>Facebook announced its re-engineered PHP engine HipHop last night, <a href="http://bit.ly/971Kjy" title="http://bit.ly/971Kjy">http://bit.ly/971Kjy</a> (article) <a href="http://bit.ly/aMFzSy" title="http://bit.ly/aMFzSy">http://bit.ly/aMFzSy</a> (video)</p> http://benbuckman.net/tweet/10/02/5569#comments Wed, 03 Feb 2010 14:38:30 +0000 ben 5569 at http://benbuckman.net [tweet] <p>For the web developer in ... http://twitter.com/thebuckst0p <p>For the web developer in your life -- an Internet Explorer Voodoo Doll <a href="http://bit.ly/9lrnqt" title="http://bit.ly/9lrnqt">http://bit.ly/9lrnqt</a></p> http://benbuckman.net/tweet/10/02/5567#comments Mon, 01 Feb 2010 14:42:14 +0000 ben 5567 at http://benbuckman.net [tweet] <p>[reply to @davewiner] on ... http://twitter.com/thebuckst0p <p>[reply to @davewiner] on NY-SF flight: # of open standards necessary to make global in-flight internet work "makes the mind spin" <a href="http://r2.ly/tmqr" title="http://r2.ly/tmqr">http://r2.ly/tmqr</a></p> http://benbuckman.net/tweet/10/01/5566#comments Mon, 01 Feb 2010 00:48:45 +0000 ben 5566 at http://benbuckman.net The beauty of open standards http://benbuckman.net/tech/10/01/beauty-open-standards <p>Dave Winer, <a href="http://www.scripting.com/stories/2010/01/31/whatIfFlashWereAnOpenStand.html#comment-32241074">pondering</a> Apple and Flash on a NY-SF flight:</p> <blockquote><p>BTW, how lovely are open standards? I'm writing this post from an American Airlines flight from NY to SF. Do you have any idea how many open standards were necessary to make this work? Makes the mind spin. And it all works exactly the same if I fly Virgin America or Air Egypt. In an Apple-designed world how much of this would work? Imho, not very much.</p></blockquote> http://benbuckman.net/tech/10/01/beauty-open-standards#comments open Mon, 01 Feb 2010 00:46:55 +0000 ben 5565 at http://benbuckman.net [tweet] <p>[retweet] @techdispenser: ... http://twitter.com/thebuckst0p <p>[retweet] @techdispenser: Google joins the 'kill IE6' campaign <a href="http://bit.ly/91PZPP" title="http://bit.ly/91PZPP">http://bit.ly/91PZPP</a></p> http://benbuckman.net/tweet/10/01/5564#comments Sun, 31 Jan 2010 22:43:39 +0000 ben 5564 at http://benbuckman.net USB stops working on Dell XPS http://benbuckman.net/tech/10/01/usb-stops-working-dell-xps <p>In case anyone else has the same problem -- the USB ports on my Dell XPS 450 (running Windoze 7) desktop suddenly stopped working today. <a href="http://en.community.dell.com/forums/p/18917360/19411022.aspx#19040477">This solution</a> fixed it: 1) Shutdown, 2) Unplug, 3) Press and hold the power button for 30 seconds.</p> http://benbuckman.net/tech/10/01/usb-stops-working-dell-xps#comments Sat, 30 Jan 2010 23:36:48 +0000 ben 5562 at http://benbuckman.net 50 Android Games http://benbuckman.net/tech/10/01/50-android-games <p>via <a href="http://www.engadget.com/2010/01/28/50-android-games-demonstrated-in-one-video-who-says-android-c/">Engadget</a>, <em>50 Android games demonstrated in one video -- who says Android can't game?</a></p> <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/mn-XaaQXIxw&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_GB&feature=player_embedded&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/mn-XaaQXIxw&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_GB&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object> http://benbuckman.net/tech/10/01/50-android-games#comments android Thu, 28 Jan 2010 22:13:55 +0000 ben 5559 at http://benbuckman.net [tweet] <p>"Apple has decided ... http://twitter.com/thebuckst0p <p>"Apple has decided that openness is not a quality that’s necessary in a personal computer. That’s disturbing." <a href="http://bit.ly/blq8iG" title="http://bit.ly/blq8iG">http://bit.ly/blq8iG</a></p> http://benbuckman.net/tweet/10/01/5557#comments Thu, 28 Jan 2010 20:52:42 +0000 ben 5557 at http://benbuckman.net [tweet] <p>Maybe Apple was going for a ... http://twitter.com/thebuckst0p <p>Maybe Apple was going for a Star Trek reference with the iPad ... it's a lot more advanced than the 24th century PADD's <a href="http://bit.ly/Oy3Na" title="http://bit.ly/Oy3Na">http://bit.ly/Oy3Na</a></p> http://benbuckman.net/tweet/10/01/5558#comments Thu, 28 Jan 2010 20:50:26 +0000 ben 5558 at http://benbuckman.net Apple needlessly expands its walled garden http://benbuckman.net/tech/10/01/apple-needlessly-expands-its-walled-garden <p>I followed yesterday's Apple event live like everyone else, and I was very impressed, but also underwhelmed, and a little troubled.</p> <p>First the positives: it's a beautifully designed device, apparently feels very sturdy, fun to use. It's clearly a Kindle killer, with its super-sharp resolution, ePub book support plus the existing Kindle-iPhone app. It's fast, the apps demonstrated are great, it's a great device for sitting on a couch or bed.</p> <p>But in the end, it's really just a big iPhone. There was no revolutionary interface as expected, just more context menus added into the new real estate. The keyboard was supposed to have some kind of <a href="http://www.appleinsider.com/articles/09/12/24/possible_apple_tablet_multi_touch_tactile_keyboard_detailed.html">tactile</a> feedback. It still doesn't multitask - a limitation I can't understand, since multitasking is so basic to the way I use computers and my Droid. This could have been an amazing videoconferencing device, but it doesn't have a camera.</p> <p>And I'm troubled by the lack of open standards. Google has been pushing for a browser-centric digital experience: open standards, allowing common experiences across multiple platforms and devices. Special interface features like multitouch, gestures, and location could be built into this open web (and Google is promoting that approach).</p> <p>But Apple's taking it in the opposite direction: the interface is proprietary and closed-source, and revolutionary UIs need apps filtered through their closed App Store. <em>Sports Illustrated</em> can have its <a href="http://benbuckman.net/tech/09/12/future-magazines">21st century experience</a>, but it'll only work on the iPad. Competing tablets will need their own special versions, and content distribution will become fragmented.</p> <p>I understand Apple's business logic: for years, they kept their hardware and software tightly coupled and were criticized for not opening up the way Microsoft did. This coupling made even more sense with the iPhone, where device-specific functionality - touch, GPS, lack of multitasking, etc - made device-specific development a reasonable approach. And now with the iPad, if you want the new all-in-one experience, not available anywhere else, you have to buy their product (and Microsoft is looking increasingly obsolete). </p> <p>But the advantages of closed-app over open-browser don't need to apply to tablets. The iPhone and its progeny popularized functionality not found on regular computers (touch, GPS, phone, lack of multitasking, etc), so it made sense for developers to target each device's unique capabilities. But tablets are in a space in between laptops and smartphones, so Apple had a choice: They could have decided to build on (and enhance) existing web standards to achieve the same interface experience, or enlarge the walled garden of iTunes/AppStore and contribute nothing to the open web. Rather than think of phones and tablets as new types of computers, they chose to make the future of computers more like phones. I think that's a mistake.</p> <p>I'd like to see Android-based tablets (or laptops with touch screens) that derive revolutionary uses from open standards. Then Apple (or someone else) can add iPad support for those standards, content creators will be dissuaded from building platform-specific experiences, and we'll all be better off.</p> <p>For now, I'm perfectly happy with my Kindle for most books, my Droid is great for mobile computing, and my MacBook is great for everything else - so an iPad isn't on my wish list just yet. I also think Android's open approach is inherently more beneficial to technological advancement, so while I love the design and innovation of Apple products, I'm still much more of a Google fan at heart.</p> http://benbuckman.net/tech/10/01/apple-needlessly-expands-its-walled-garden#comments android ipad Thu, 28 Jan 2010 15:42:26 +0000 ben 5555 at http://benbuckman.net Bookshelf http://benbuckman.net/tech/10/01/bookshelf <img src="http://26.media.tumblr.com/tumblr_kwx8q4DGkV1qz7ywoo1_500.png" /> http://benbuckman.net/tech/10/01/bookshelf#comments ipad Wed, 27 Jan 2010 20:02:14 +0000 ben 5551 at http://benbuckman.net [tweet] <p>iPad book resolution is ... http://twitter.com/thebuckst0p <p>iPad book resolution is "far superior to the Kindle" -- eInk's only advantage now is battery life. <a href="http://bit.ly/t3fY0a" title="http://bit.ly/t3fY0a">http://bit.ly/t3fY0a</a></p> http://benbuckman.net/tweet/10/01/5552#comments Wed, 27 Jan 2010 19:58:33 +0000 ben 5552 at http://benbuckman.net [tweet] <p>[retweet] @rorris: still ... http://twitter.com/thebuckst0p <p>[retweet] @rorris: still no way to watch Netflix or Hulu on the iPad? &gt;&gt; leaves room for competitors (Android tablet...?) w/ more open channels</p> http://benbuckman.net/tweet/10/01/5543#comments Wed, 27 Jan 2010 19:27:54 +0000 ben 5543 at http://benbuckman.net