Archive for the ‘Science/Technology’ Category.

Bilefox

Did you know that recent versions of Firefox block attempts to connect to http servers on non-standard ports? That there is no dialog box to make Firefox connect to those ports? Did you know that Internet Freaking Explorer respects its users enough to connect to whatever port they specify, while Firefox obstructs and then obfuscates? I am the user, a human being with executive decision-making capacity. The browser is a tool and I will be thrice-damned if it will dictate to me how I am to use it.

agittins wrote up this workaround:

  • Go to about:config in your Firefox browser.
  • Right click somewhere, and choose “New => String”
  • In the setting Name box type “network.security.ports.banned.override”
  • In the Setting Value box, type “1-65535″. Yep, that’s all of ‘em
  • Click OK
  • As I said, that’s a workaround. The solution is this: I probably ought to just finish making my switch to Opera — don’t know why I’ve been putting it off. Maybe I was thinking I’d miss access to the source code, but my lack of time and interest keeps me from contributing to Mozilla (or even reading their code) anyway.

    Feature request: trust

    I just suggested a feature for WordPress… Trust.

    • If I put a div into my content, it’s because I wanted a div, not a p. It is none of WP’s business why.
    • If I nest elements like divs, it’s because I wanted them nested.
    • If I put an <a name=”…” / > into my content, it’s because I want an anchor. It’s not a malformed link.
    • If I am smart enough to edit in HTML mode, I would like to be treated as smart enough to solve my own HTML problems.
    • In short, I never want to “UPDATE posts” again; it obviates the entire purpose of having a CMS. I want a mode in the editor where it just smilingly takes the HTML I feed it, pushes it into the DB, and lets me shoot myself in the foot if what I need is a hole in my shoe.

    The Disable wpautop plugin is kind of a start, and I will probably implement a counterfeature in my own installation to undo WP’s alleged HTML correction feature (both “correction” and “feature” are being modified by “alleged” there), but I sense that I’m not the only one who wants WordPress to just trust me. I sense this because no one who has anything to say about wpautop, the function in wp that “corrects” your HTML, has anything nice to say about it.

    Also, the 2.1 post editor is a huge step backwards. I am seriously considering downgrading. I miss 2.0.x’s html editing mode; 2.1’s Code editing mode is nearly useless. It is really hard to make 2.1’s editor as nice as 2.0.x’s.

    Update: The plugin mentioned above wasn’t working for some reason, probably because it was written for 2.0.x. I’ve gotten the 2.1 editor doing almost exactly the right thing by lobotomizing the functions wpautop() and cleanpre() in wp-include/formatting.php — that is, reducing the function bodies to return $pee; and return $text; respectively— and then turning off the per-user “Use the visual editor when writing” setting on my user profile. balanceTags() seems like it might be genuinely useful, and could benefit from a more selective brain surgery down the road. I will probably try to come up with something better than complete decerebration later, but for now frustration > will to code.

    Anyone who wants a copy of the “fixed” (in the same sense that a dog is “fixed” I guess) formatting.php can get it here. I’m offering it as is, with no support and no warranty of fitness for any particular purpose, etc etc. Sorry if it makes your web site a-splode. Remember to back up your current copy of formatting.php before putting my dumber version in its place.

    “lolcats”

    In the Internet’s fastest-working meme labs — places like 4chan, fark, Something Awful, YTMND, etc — a phenomenon has grown up of adding captions to (typically) animal pictures, often featuring Vazquez-esque tortured syntax and spelling for added humor value (”for the lolz,” one might say). The archetypal image of this type is certainly the O RLY? owl.

    But the greatest consumer of captioned animal images appears to be Caturday — at least, this is what they tell me, as I have no plan of going anywhere near the place — which calls for captioned cat images, and so I believe it is fair to adopt the world “lolcat” to describe the class. It is the tag that the new-as-of-this-year blog I CAN HAS CHEEZBURGER? has come to apply, I think most fittingly. What a great word! It is officially my Favorite New Word of 2007 So Far.

    I HAS A FLAVOR

    Also, kitten.

    The voice of god

    CNN The AP is reporting that God has told the execrable Pat Robertson that a terrorist attack with a significant body count will occur in (late) 2007. In other news, God spake also unto me, saying that the weather on the Arabian Peninsula will be hot and dry, that a prominent American politician will be jailed for corruption next year, and that there’s good money in prophesying situations with a prior probability near or above 50%. Hallelujah!

    Foundational information theorist Claude Shannon was the first to understand clearly that the quantity of information in a signal can be measured in terms of the unlikeliness (that is, the inverse prior probability) of the situation that the signal conveys. A good intuitive way to visualize this is in terms of gambling. Suppose that we are betting on the outcome of a coin flip: You put a dollar in the pot, I put a dollar in the pot, we flip a coin, and you call it, winner taking the pot. If there were a perfectly reliable oracle that could tell you how the coin would fall, you’d be rationally willing to pay up to 99¢ to the oracle for the tip, which would ensure that you’d come out ahead on every single flip. Consider, now, a different case: instead of flipping a coin, I’ll roll a six-sided die, which you’ll attempt to predict the outcome of. To make the payoffs fair again, I’ll be putting $5 into the pot each time, and you’ll be putting $1 in. The value of the oracle’s tip is now as much as $4.99, and the reason is that any given outcome of the die roll is much less likely than any given outcome of the coin flip — that is, it is less likely that I’ll roll a ‘3′ than that I’ll flip up ‘heads.’ (In fact, Shannon’s argument would be that the value of the fair wager that I have to make follows from the precise same logic; I pay more to “get a more reliable signal” and become more certain of the outcome.) Robertson is making a prediction on an event that is nearly 100% likely to occur somewhere in the world — his value as an oracle in this matter is much less than that of the hypothetical oracle’s prediction of a 50%-likely event like whether a coin flip will come up ‘tails.’ We shouldn’t reward him. He, in fact, should be paying extra for the kind of insurance that such a no-brainer prediction provides!

    On a separate note: The CNN AP article also makes the mistake, memorably skewered by arch-skeptic Richard Dawkins in his book Unweaving the Rainbow under the rubric of PETWHAC (Population of Events that Would Have Appeared Coincidental), of giving Robertson partial credit for a vague fulfillment of a prediction:

    In May, Robertson said God told him that storms and possibly a tsunami were to crash into America’s coastline in 2006. Even though the U.S. was not hit with a tsunami, Robertson on Tuesday cited last spring’s heavy rains and flooding in New England as partly fulfilling the prediction.

    No, just no. By that same logic, if I predicted that Pat Robertson would have a fatal heart attack, and some other person who attends his church had one (and the odds are good, since church congregations are full of older men and other bad heart disease risks), I’d get partial credit as a prophet. And if, further, one of his high-school classmates had a bad bout of pneumonia, but recovered, I’d get the same credit as he’s getting here for the “heavy rains and flooding” bit.

    I suspect CNN.com the AP is publishing a lightly-edited press release. Bad CNN! No biscuit!

    Update: CNN.com appears to have simply picked up a lazily-written AP story. So, actually, bad AP! No biscuit!

    Press “play”… no, the other “play”

    Photo by Colin: Visualizing Metallica, The Thing That Should Not Be
    Much prettier to look at than Metallica themselves, honestly

    The XBox 360 ships with a highly non-trivial music visualization application, called Neon, built by category captains Llamasoft. It is sufficiently non-trivial, in fact, that it has a manual. I was surprised when I grabbed my controller and the graphics seemed to be changing in response to my joystick maneuvers, and then really just kind of bemused. Now I’m enjoying it - it’s a little bonus game, in effect, which happens to showcase 360’s ability to maintain a steady frame rate at any resolution, and to give additional weight to the 360’s ability to read music files (in a somewhat disappointly narrow range of formats, which sadly does not include FLAC) from its LAN-mates.

    All it needs now is to expose its web browser functionality — I would not be unhappy to see a third-party browser, either — to be the very best device ever to wear the “set-top box” tag.

    The Call of 8500, part 3

    3-Toed Sloth. From Wikipedia, PD
    Do ya think I’m… sexy?

    Cingular’s DNS (name lookup) service has all the celerity of… celery. It’s slightly slower than glacial creep, but a hair faster than the San Andreas fault. Occasionally, it fails in its mission to provide same-day service. If you use IE, perhaps you’ve stared at the “Locating…” message in the status bar, waiting for any omen that you’d be connected to your desired host at some point. I recommend action.

    OpenDNS is fast and free. Its creators make many (perhaps extravagant) claims on its behalf, but none of those claims is as interesting as the brute fact that their DNS servers don’t suck yard after yard of floppy folivore phallus, like those of a certain wireless carrier. To configure your Windows Mobile 5 device to take advantage of their service, start the Settings application and go to Connections, GPRS, and whatever your GPRS connection is called. Scroll down to the Primary and Secondary DNS text fields, and input 208.67.222.222 and 208.67.220.220, respectively. Restart your phone, and send those randy sloths elsewhere. Yay! DNS, FTW, kthxbye.

    Previous entries in this series: prequel, part 1, part 2, guide

    The Call of 8500, part 2

    8500 front view
    But wait, there’s more!

    Now that I’ve had the Qtek 8500 i-Mate Smartflip (see below for details) for a few weeks, I’m ready to continue my review. It came to light in the weeks following its release that the 8500 was saddled with a showstopper bug. Apparently, if left idle for ten minutes, the phone would go into deep power-saving mode, turning off its radio to conserve power. No radio means no calls, no ringing, no indication of missed calls, no voicemail indicator, nothing. I was mostly unaffected by the bug, probably because of my habit of leaving an IM client running almost all day, and possibly because of my constant use of an A2DP stereo Bluetooth headset whose buttons I press frequently to adjust volume and so on. But I reproduced it easily enough, realized that I had been surprised by voicemail a few times, listened to my friend Ian’s tale of woe… and decided to take action. (I’ve got some good things to say too.) Read on for the stirring saga!.

    Continue reading ‘The Call of 8500, part 2’ »

    The wild Adirondacks

    I’ve reported before on my installation of the Akismet comment-spam-fighting plugin, and it continues to amaze with its accuracy and precision. As far as I know, just one spam comment has gotten through since I installed it, and it has yet to flag a legit comment as spam.

    But I still review the spam comments from time to time, not out of any lack of confidence in Akismet, but because occasionally, there’s a gem. Among the ph@rm.acy ads, pointers to nu.de höt téèns, and so on, I’ve gotten a spate of chair spam in the last week. Things like (spammer information removed)…

    1. Name: adirondack chair wooden | URI: http://www.ANOTHERSPAMHAUS.info/ adirondack-chair-SPAM.html | IP: 212.56.202.147 | Date: 21 July, 2006 adirondack chair wooden…Thanks for clearing this up ….

    Chair spam! I am imagining this spammer at 212.56.02.147, apparently in Amsterdam. It’s not just the money for him - he’s got a passion. After a lifetime of just sitting in one, now he’s got a line on a container full of Adirondack chairs, and if just one blog reader clicks on his link to buy “d3ck furnitre”, he makes back the buck he spent mass-posting comments, and introduces one more person to his true love. He’s sitting, even as he runs his spambot, in that Adirondack, using his notebook computer, no doubt on his balcony overlooking the Amstel (but in his heart of hearts, he prefers to think of it as East Lake George). He’s sipping an iced tea, and he and his chair alike are pining for Upstate New York; he’s always wanted to visit the natural habitat of his favorite seating, little knowing that it’s nearly extinct there. But in the wild, romantic Adirondacks of his imagination, the Mohicans still spend afternoons sitting in heavy wooden chairs, hunting the abundant elk in the cool parts of the day, feasting on the trout that thickly school in the lakes, and assembling in backwoods lodges by night to listen to Borscht Belt comedians who are passing through. Perhaps sometimes they Dirtily Dance, but when their feet tire, they always return to the comfort of their chairs.

    Oh, 212.56.02.147, the Upstate of your dreams is not, and never has been. But I can’t bring myself to tell you the truth in the face of so beautiful a lie. Sleep well, my spammer friend.

    Deb, 8500, Alexander/Sarticious

    Our friend Deb was in town two weekends ago, and among other adventures, we visited Alexander Cellars / Sarticious Spirits, located in a charming industrial space in Santa Cruz. This sounds strange until you consider… Santa Cruz. Everything there is charming, basically.

    Deb, Jeff, and Punam at SarticiousWe smelled the distillery running from a block away, and it smelled sweet. The operator, Jeff, was at work on a not-yet-announced spirits project, but I can tell you that I had no trouble identifying it, and appreciating it, at fifty paces. Jeff was kind enough to educate us about what he’d been up to, allow us to sample (really, nose) the new product, and pose for this picture with Punam and Deb. It’s a fair, though not ideal, sample of what the 8500 can do as a camera (click for the full-size version). Note the full-size pot still running in the back, and closer to the foreground, the pilot-sized still, which is one awesome toy.

    I’m not big on recommending spirits, simply because I know I haven’t tried many, but Sarticious Gin is an intense, herbal preparation which I enjoy immensely. It’s made with the spirits equivalent of dry-hopping, and consequently, it’s the spirits equivalent of an Anderson Valley beer (where the hops just may have been tweezed out of the bottle five minutes before shipping). So, my first spirits recommendation, and not even for a whisk(e)y!

    Now with Ajax!

    I finally got around to polishing off an Ajax version of Bob vs Sam, just as a little tech demo to make sure I’ve got the concepts under control. It’s something I had been putting off for a while. But now that it’s done, there’s no page reloading or re-rendering, and the Bob vs Sam performance is significantly better, thus alleviating concerns which were often keeping me up at night. Just in case you may not have been around for the beginning of Bob and Sam’s gripping Peano-inspired donnybrook, they’re racing… to infinity… and they need your help.

    The actual coding was pretty straightforward. If you go to the web toy - open it in another tab or something, go ahead - and View Source, you’ll see that most of the intelligence is in the “client,” written in Javascript and embedded in the recalculate() function up in the <head> element of the HTML. There are some gotchas.

    Continue reading ‘Now with Ajax!’ »