In defence of Polyglot Fri 09 Nov 2012 at 11:58 I see that Henri Sivonen is once again being snarky without backing his position . I’ll state my position, namely that something like the polyglot specification needs to exist, and why I believe that to be the case. The short version is ...
4 1.9.3 4.0 44 tests, 130 assertions, 5 failures, 0 errors 2012-10-03 13:32:02 4 1.8.7 3.2 44 tests, 137 assertions, 0 failures, 0 errors 2012-10-02 16:23:04 4 1.9.3 3.2 44 tests, 137 assertions, 0 failures, 0 errors 2012-10-03 04:25:20 4 1.8.7 3.1 44 tests, 137 assertions, 0 failures...
EPUB in effect takes the Wild, Wild Web and tames it. EPUB for example requires use of the XML serialization of HTML5 (XHTML5), rather than “Tag Soup” aka “Street” HTML. This means that EPUB content, unlike arbitrary web pages, can be reliably created and manipulated with XML tool cha...
require 'dbus' # gem install ruby-dbus bus = DBus::SessionBus.instance sm = bus.service('org.gnome.SessionManager').object('/org/gnome/SessionManager') sm.introspect sm.default_iface = 'org.gnome.SessionManager' cookie = sm.Inhibit($0, 0, 'inhibiting', 4).first at_exit { cookie = sm.U...
Amusing exercise: compile a list of OS vendors who, by default, ship a non-Unicode-capable ("narrow") build of Python. Posted by Jacques Distler at 20:34 I gather that I’m one of the lucky ones: $ python Python 2.7.3 (default, Apr 20 2012, 22:39:59) [GCC 4.6.3] on linux2 Type "help", ...
There is a chain of lexical scopes, each with local variables. When code needs to lookup a variable, it while search that environment, by iterating up that chain until it finds it. A closure is an function object that references a specific inner scope. It is said to “capture” that lex...
I can’t begin to imagine what use anybody could have for this code, but how does MIT sound? The L-system doesn’t do filling, what are your rules for that? There actually is an interesting story behind that. This started out as a Ruby application that generated a static SVG with a sing...
Ubuntu 12.04 and Ruby 1.9.3 Sat 23 Jun 2012 at 22:45 I previously had installed Ubuntu 12.04 on a NetBook, and my overall impression was simply that it was more stable than its predecessor — particularly for Unity. For the first time I tried it on a desktop, and to my surprise the fol...
Ubuntu 12.04 and Ruby 1.9.3 Sat 23 Jun 2012 at 22:45 I previously had installed Ubuntu 12.04 on a NetBook, and my overall impression was simply that it was more stable than its predecessor — particularly for Unity. For the first time I tried it on a desktop, and to my surprise the fol...
(sorry for the delay, the first version of this article died in a spectular system crash) Nelson Minar and Sam Ruby point out that Google is an interesting corner case in its adaption to the Web architecture. Because it uses an "innovative" business model for its new "API", it present...
Support for -moz-border-radius* and -moz-box-shadow has been removed. Authors should use unprefixed border-radius or box-shadow instead. See bug 693510
Prefixed no more Thu 07 Jun 2012 at 12:33 Firefox 13 for developers: Support for -moz-border-radius* and -moz-box-shadow has been removed. Authors should use unprefixed border-radius or box-shadow instead. See bug 693510
You can get the code for this branch via: git clone https://github.com/rubys/venus.git Updates can be obtained via: git pull Alternately, you can also download the convenient tgz or zip files, or browse the individual files below: Index Name Last modified Size Description Parent Direc...
Twitter -= #! Tue 29 May 2012 at 21:50 Dan Webb : The first thing that you might notice is that permalink URLs are now simpler: they no longer use the hashbang (#!). While hashbang-style URLs have a handful of limitations , our primary reason for this change is to improve initial page...
Twitter -= #! Tue 29 May 2012 at 21:50 Dan Webb : The first thing that you might notice is that permalink URLs are now simpler: they no longer use the hashbang (#!). While hashbang-style URLs have a handful of limitations , our primary reason for this change is to improve initial page...
Rails and Snowmen Thu 29 Jul 2010 at 15:03 People have started to notice that Rails is adding a snowman to their URLs. There even is now a website devoted to this. These types of social implications of technical decisions fascinate me. Here’s some further background that I have pieced...
WebSocket Demos Mon 30 Apr 2012 at 01:33 chat implements a shared textarea field across multiple clients. Demonstrates bi-directional communication. diskusage is more typical of my usage. The `du` command produces tabular output that the user may want to sort different ways and yet is...
Wunderbar on Rails Tue 24 Apr 2012 at 21:12 Usage: add wunderbar and nokogiri to your Gemfile and run bundle install . Template extensions supported are _html and _json . Examples: view , layout , json . Note that as Rails layouts and views are predicated on the assumption that output...
Hacked Mon 02 Apr 2012 at 11:16 This site was hacked. A reader of the site noted that Google’s index of this site had been co-opted by dubious pharmaceutical offerings. I’ll gladly thank that individual publicly if they give me permission to do so; but my email reply got bounced as sp...
Hacked Mon 02 Apr 2012 at 11:16 This site was hacked. A reader of the site noted that Google’s index of this site had been co-opted by dubious pharmaceutical offerings. I’ll gladly thank that individual publicly if they give me permission to do so; but my email reply got bounced as sp...
Improved Wunderbar JSON support Sun 01 Apr 2012 at 12:57 I’ve integrated jbuilder like functionality into Wunderbar . Key differences? A DSL that doesn’t suck, and output that isn’t ugly. To harsh? You be the judge. Compare jbuilder ("json dot bar json bar json dot child bang") vs Wun...
Comparing characters and uris is surprisingly more difficult and important than you might otherwise imagine (think: security holes) Layering is the problem, not the solution
The previous error that was caught was connection pool of new applications have size 1 . This demonstrates the unique value that my tests bring to the table. Outside of my tests, the bulk of the test of Rails is an impressive array of unit tests (which verify that the connection pool ...
Hearing Aid Sat 25 Feb 2012 at 12:34 I now have an open fit hearing aid device for my left ear. That ear has experienced tinnitus for approximately 10 years. An ABR test given at that time found nothing. My hearing loss is primarily in the 2000 Hz and above. Last night, I went to dinn...
OpenID upgrades Sun 19 Feb 2012 at 19:09 As a part of my server move , I’ve upgraded my consumer logic to Python openid-2.2.5 and provider from phpMyID to SimpleId 0.8.1 . In theory, I should now support OpenID 2.0 . The one small API change I noted in this process is in the consumer....
WunderWiki Sat 18 Feb 2012 at 16:20 I added a simple wiki as a demo for WunderBar . It demonstrates shelling out to handing multiple URIs, handing get/post, dealing with both unescaped text and markup, shelling out to commands, AJAX, CSS, jQuery. The demo relies on git and rDiscount t...