zero size objects
What’s the difference between the following length and pointer pairs?
more...
What’s the difference between the following length and pointer pairs?
more...
Recently was reminded of an old string handling function I used for programming interviews.
more...
The OpenBSD Firefox package includes the en-GB dictionary. This results in lots of red squiggly lines. There are additional en language packs localized for AU, CA, GB, and ZA, but no US package. There is also a firefox-i18n-en-US package but it doesn’t do anything except print a message that you can change the useragent locale from its default of... en-US.
If you want an Americanized spelling dictionary, you’re out of luck. Debian to the rescue! Start with the hunspell source package page and download the big orig.tar.gz file. Extract it and copy the two en_US files to /usr/local/share/mozilla-dicts/
. Restart Firefox and right click in a text area to change language.
Save a step! This is apparently just a bug in Firefox because it should also be looking in /usr/local/lib/firefox-*/dictionaries
which includes US dictionary files. These files are a little different (smaller), but they too could simply be copied or symlinked into the above location.
There was a recent bug in OpenBSD install kernels. At random times during the install, messages like the following would appear:
more...
More ghostly followup. There was a thread on Hacker News wherein it was claimed that using rust would have prevented Heartbleed. Specifically, it would not have even compiled. That sounds like a challenge!
more...
It’s still fashionable to explain why (random internet company) is going downhill, right? Here’s why Twitter sucks. They have a spam problem and they’re not doing anything about it.
I occasionally search twitter for OpenBSD. Unfortunately, it’s been taken over by ad bots. Is it necessary to do the realtime search? Often times, yes. Otherwise Twitter tends to keep showing me the same set of tweets from last week over and over.
Exhibit 1:
How can Twitter not detect bullshit accounts like this? You can try reporting them, which I have, but obviously that has had no effect.
For more giggles, exhibit 2:
When the name of the account even includes the word spam, surely that must be a hint?
Twitter does have a spam filter! After posting this tweet I was notified I was posting too much spam and my account was locked.
Hi Ted Unangst,
Your account appears to have exhibited automated behavior that violates the Twitter Rules.
Nothing to worry about. Twitter’s spam team is on the ball.
Every time I watch a full screen video, Chrome feels the need to tell me that YouTube is now full screen. Oh really? I already knew that. How did I know that? Because I just clicked the fucking full screen button.
Why is Chrome compelled to tell me something I already know? Oh, right, new users. Maybe somebody clicked the button by accident. So that justifies, what? One, two warnings? Three? Surely not three hundred. This isn’t accommodating; this is aggravating.
Let’s say I decide to relax and spend an hour watching music videos (it’s cold outside!). In that span, I will be faced with 20 reminders that yes, once again, YouTube is full screen. (There’s no search in full screen mode, and while I may enjoy one Cars video, I don’t need to watch the entire set.) By now even a lobotomized lab rat will have figured out that, just like the previous 19 times this happened, I can press Esc to exit. But not me. Chrome isn’t quite sure I’m smart enough to remember which key to press. Thanks for the vote of confidence, guys.
Now assuming I do have the memory of a gold fish, how does the reminder at the beginning of the video help? By the time I’ve watched the video, I’ve surely forgotten the annoying popup that was blocking my view and which I didn’t read. Once I do find the Esc key, however, be sure to remind me about it again seven seconds later when I play the next video.
It’s the Return of Clippy. I noticed you’re watching a video full screen. Does that mean you want to see the whole thing? Is this dialog interfering with your viewing? Would you like this dialog to go away and never come back? Don’t worry, I’ll be right over here in case you need me.
Ironically, Internet Explorer does get this right. Asks me once, the first time, if I want to switch to full screen. Yes. Never a peep after that.
A review of the X1 Carbon hardware. Some thoughts on the initial software experience.
more...
In regards to the glibc gethostbyname buffer overflow, some thoughts on release schedules and long term support. Per the advisory, this was fixed in 2013. The commit was May 21 and the release August 12. Sourceware git says the patch itself was authored as far back as January 21.
more...
New Thinkpad X1 Carbon arrived today. After unboxing and inspecting for signs of NSA interdiction, first thing to do is turn it on and setup Windows.
more...