flak rss random

thoughts on hyperthreading

From the time Intel released CPUs with hyperthreading until quite recently, I was a skeptic. A hater even. But now that I own some computers that feature hyperthreading, I’ve naturally had to change my mind, so now I like it.

more...

Posted 07 Sep 2012 21:17 by tedu Updated: 09 Mar 2013 21:46
Tagged: computers thoughts

Windows 8 Preview

Bit the bullet and installed the Windows 8 Release Preview on my HP laptop for poking around. Here are some initial impressions, likely to be updated as time goes by. I haven’t yet done anything with it, this is just from an hour of trying to bludgeon the system into shape.

more...

Posted 05 Sep 2012 09:05 by tedu Updated: 04 Apr 2013 13:22
Tagged: review software windows

flak has comments

Assuming you have discovered the secret login ritual, flak now supports posting comments. This post mostly exists to live test the feature. You can reply to a comment, but there’s no replying to replies. Deeply nested comment threads just don’t work well, so not supporting them is my way of hinting that “you are communicating incorrectly”.

Or did.

Posted 03 Sep 2012 22:49 by tedu Updated: 29 Nov 2014 03:49
Tagged: flak

AppleID confirm mail fail

I realized I was using an old email address for my Apple account. Besides some bizarre rules which make it hard to juggle active and backup emails, they send broken confirmation emails.

Here’s what I read:

Just click the link below to verify, sign in using your Apple ID and password, then follow the prompts.

Verify Now >

Yes. That’s the link. They oh so helpfully took the HTML part of the email:

Just click the link below to verify, sign =
in using your Apple ID and password, then follow the prompts. <br><br><a hr=
ef=3D"https://id.apple.com/..." cla=
ss=3D"aapl-link" style=3D"color:#0088cc">Verify Now ></a>

And converted it to text for me. Thanks! The ... part of that, btw, is about 400 chars of base64 encoded something. I approve, except unquoting and line folding it by hand is quite the chore. The strangest part is I have three slightly different emails from Apple, regarding my primary email, my backup email, and my security questions. Some of them have the above link, but omit other links.

Posted 01 Sep 2012 21:04 by tedu Updated: 01 Sep 2012 21:09
Tagged: mailfail

mail fail

I’m going to start posting examples of broken emails that companies send me. It’s 2012. What are you using to send this crap? I plan to exclude spam, which is almost always broken in some way (perhaps on purpose, the theory being that spam is designed to target the people who don’t filter it), but large companies which should know better.

Posted 31 Aug 2012 17:32 by tedu Updated: 31 Aug 2012 17:32
Tagged: mailfail rants

amazon mail charset fail

Amazon can’t pick a charset in their order emails. I bought an MP3 album by The Crüxshadows (let’s not discuss that right now, or ever). Here’s part of the email:

------=_Part_10851441_1164149591.1346373530449
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
...
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-1">
...
The Cr=C3=BCxshadows

Yes, it’s quoted printable and it is utf-8. So why is there a meta tag saying it’s latin-1? End result? This shit: The Crüxshadows

Posted 31 Aug 2012 17:32 by tedu Updated: 31 Aug 2012 17:32
Tagged: mailfail

writing an FFI interface

In ruby, the new cool thing to do when interfacing with a C library is to use FFI. The same is true with luajit as well. Instead of writing a bunch of C code, you just declare the existing C functions you want to use, and the runtime mostly handles things for you. There’s still a bit of a mismatch, because you’re not writing in C, so I generally stack a couple layers of abstraction over the top.

more...

Posted 31 Aug 2012 00:01 by tedu Updated: 23 Apr 2013 05:52
Tagged: programming software

three unimaginative sequels

I watched three movies recently.

The Dark Knight Rises

Hero defeats Bad Guy. What’s next? Hero fights Son of Bad Guy. Really? Hey, remember when the Joker made the people of Gotham participate in a social experiment game? That was really edgy, let’s do that again! Probably wouldn’t have been so bad with more Batman being cool and less Bruce Wayne moping about.

The Bourne Legacy

Let’s have an operative of a secret government project befriend a lady in distress and run away with her. What really disappoints here is that you only get half a movie. The other half of the time we’re watching news footage about the events of The Bourne Supremacy. Do I care about Pamela Landy climbing into a car? Not in this movie. Then we cut to Edward Norton shuffling some files around on a table to remind us, hey, look how many different secret programs there. See how imaginative we are.

Underworld Awakening

Especially after the third Underworld movie, I think expectations were set pretty low, but as far as sequels go, this is actually pretty good. It introduces new good guys and new bad guys, and they aren’t generic clones of the previous generation. It’s vampires versus werewolves, for sure, and of course the ultimate bad guy is even more ultimate, but now the humans are somewhat involved and they updated the look to a more futuristic urban environment. Also, the occasional daytime scene. More unique ideas here than in the above two movies combined.

Posted 28 Aug 2012 20:40 by tedu Updated: 29 Aug 2012 03:51
Tagged: moviereview

OpenBSD and VMWare Player

First off, don’t use VirtualBox. It’s terrible for running OpenBSD. I’ve had zero problems with VMWare Player. I installed using an OS type of FreeBSD, though it doesn’t seem to matter much. (This post was written against Player 4. Player 5 may sort out the networking issues. It provides a few more options in the machine configurator.)

more...

Posted 21 Aug 2012 21:46 by tedu Updated: 15 Mar 2013 02:28
Tagged: computers openbsd review software

USB 3 back compat

Newest laptop has some USB 3 ports, and one USB 2, which I’m thankful still exists. USB 3 isn’t quite fully backwards compatible. Sure, all the old USB devices work when plugged into a working USB 3 port, but the key point there is it has to be a working USB 3 port.

USB 3 controllers (xhci) differ from USB 2 controllers (ehci) from the host computer’s viewpoint. Drivers for ehci won’t work with xhci. At all. No driver, no port, no back compat.

Where does one find ehci drivers, but no xhci drivers? In my BIOS. External keyboard doesn’t work at the truecrypt boot prompt unless it’s plugged into a USB 2 port. In VMWare. USB passthru only works for devices plugged into the USB 2 port. Anything plugged into the USB 3 ports is simply invisible to VMWare, at least until they update their own USB driver to handle xhci as well. (Update: The recently released Workstation 9 and Player 5 are supposed to support USB 3. I haven’t upgraded yet.) In OpenBSD or any other operating system not yet updated to include xhci.

The situation is somewhat analogous to gigabit ethernet. It, too, had back compat with fast ethernet, in that you could plug it into a fast ethernet switch and everything worked. But you can’t generally use whatever fast ethernet driver you had with a new gigabit adapter. It’s a little simpler with USB, since the controller interface is fixed and doesn’t vary by manufacturer.

There are some completely logical reasons why xhci controllers shouldn’t provide ehci interfaces, but at least for now, it’s important that hardware continue to include some USB 2 ports. Something to consider when looking at hardware that includes only USB 3 ports, like the newest Macbook Air. My BIOS appears to have an option to turn the USB 3 port into a USB 2 port, which may be an effective workaround, but then I’d lose the ability to get super speeds from USB 3 devices. Untested.

Posted 20 Aug 2012 19:27 by tedu Updated: 09 Mar 2013 18:16
Tagged: computers thoughts