It'll Never Fly

Clever… not good, but clever.

Go Riders!

On July 28th, 2012 by Bob
Go Riders!, by wqoq

New design on my SmallWorks.com Brickcase.

Mighty Beanz

On July 21st, 2012 by Bob
Mighty Beanz, by wqoq

Just testing Flickr uploads again. Got tired of the little thumbnails, so we’re going with a big splash instead. I’m just trying to write something long enough and interesting enough so that I get some text wrapping, and so it doesn’t look so top heavy. Blah, blah, blah.

Site Update: H. P. Lesscruft

On July 18th, 2012 by Admin
#, #, #, #

So you might notice things are a little different around here. That’s right, I changed the background colour.

But seriously though, I did make quite a few changes to the blog, though mostly back-end changes. I keep trying to lower the barrier-to-re-entry for myself, thinking I’ll eventually get back into writing long-form stuff again.

Comments are turned off. Like anyone would notice. And with that, I’ve removed all of the “Recent Posts” links, and moved them into a single “Archives” page, where you can jump around by year and stuff.

My auto-posted links are moved out of the main blog and into their own “Links” section.

I’ve turned off a lot of my old plugins I wasn’t using anymore, so some archived posts might not display correctly. Also, by turning comments off, I’ve removed the need for some other plugins I had installed simply to maintain them. All in all, I took another step towards a more streamlined page.

And I really did change the background colour.

Found my books!

On August 14th, 2011 by Bob

Found my books!Via Flickr:
My paperbacks I packed away when I graduated from high school. Ever since I started an account on GoodReads.com, I’ve been trying to remember when I stored it away. I was sure it was in my parents garage, but several attempts turned up nothing. Finally, a couple weeks ago, I took a few days off work with the soul purpose of turning the garage inside out. Thankfully the weather cooperated, and after a scraped knee and a few nicks and bruises on my hands and arms, I finally found it. It wasn’t in an old computer/monitor box as I originally thought, but instead was in my old stereo box. I had forgotten I lined the box with garbage bags in case it ever got wet from the bottom, which it slightly did. I was thrilled to open it and find them all in as good a condition as the day I packed them.

I think for next Bobtober…

On March 22nd, 2011 by Bob
#, #, #, #, #

Everyday app for iPhone

[Video link]

Assuming I’ll have an iPhone 5 by this October, I think I’ll make this my project for the year. That’s right… a picture a day… every day… of my face… for a year. Lord help us all.

Only thing I worry about is showing how boring my life is, and how boring my wardrobe is.

If you’re gonna suspend your iPhone above you with funtac before you go to sleep, make sure to set the sleep timer first, or else the warmth will soften the funtac, causing the iPhone to hit you in the face while you’re asleep, and you’ll freak out like a spaz at 4:00 in the morning.

As promised…

On March 22nd, 2010 by Bob
#, #

Here’s my INI settings I use for GDI++. Getting Tahoma to look right has
been the hardest part so far; getting it dark and crisp without muddying
it when it’s bolded.


[General]
Name=Bob_1
Icon=%systemroot%\system32\shell32.dll,-155

HookChildProcesses=1
FontLoader=0
WidthMode=1
HintingMode=1
AntiAliasMode=2
TextTuningR=0
TextTuningG=1
TextTuningB=2
NormalWeight=0
BoldWeight=0
ItalicSlant=0
MaxHeight=0
LoadOnDemand=0
LcdFilter=1
GammaMode=0
GammaValue=1.2
Contrast=1

[Individual]
Courier New=1,2,+32,,,
Tahoma=2,1,+8,-32,,
;Name=H,A,N,B,I,K

[Exclude]

[ExcludeModule]
fontview.exe
msdev.exe
;devenv.exe
gditray.exe
safari.exe

[FontSubstitutes]

At work last week, it became necessary to develop our own custom message boxes. I wanted the message box to auto-size to its content: an optional image on the left, any number of custom labeled buttons along the bottom, and a label that auto-sizes itself vertically. The message box sizing to fit its content, and the first two criteria were fairly straightforward. The only real challenge was creating a label control that will auto-size itself vertically. It turns out it's actually quite easy, once you realize you have to manually take control of its drawing routine. Looking at examples from the web, it was a simple matter of setting up a region that defines the label's maximum dimensions and then making use of the Graphics.MeasureString and Graphics.DrawString routines in .NET.

But I noticed something amiss between our message boxes and the built-in message boxes. Even with the same font at the same size, our message boxes looked like crap. The text looked like it had been run through some fun house mirror filter. Without getting too technical, it's apparently a difference between Windows' different graphics interfaces, GDI and GDI+, and resolution-independence. This was something Microsoft noticed with .NET 2.0 and thus came out with a TextRenderer object with methods MeasureText and DrawText which accomplish roughly the same effect.

All this examination of fonts lead me to start looking at ClearType, Microsoft's name for sub-pixel rendering technology that attempts to make text more legible at small sizes on a discreet display medium like the computer monitor. It's not a new idea, but it's only become become prevalent in recent history because of the advent of LCD monitors. Any major desktop operating system will have some form of it built-in or at the very least have the ability to turn it on. Having said that though, there's no one right way to accomplish it, because different people perceive things differently. It's actually quite a polarizing topic. There are several different ways to do it, but basically they fall into one of two camps, and it's all about the pixel grid.

Microsoft's theory is essentially a kind of "snap to grid" approach; adjust the font so that it mainly fits along discreet points of the pixel grid. The idea being that this increases the "crispness" of the text, thus making it more legible. In theory, this is good, but in practice there's really one big caveat: unless a font is designed with this in mind, you can end up with some quite jarring results (the fun house mirror effect I alluded to earlier). This is now why you see a whole new rash of fonts coming out of Microsoft, especially designed for ClearType, and quietly replacing their old tried and true fonts with every new Office or Windows product. They themselves know how poorly fonts look with ClearType turned on if they weren't designed for it (and vice versa, I should point out).

Apple's approach is more benign. Rather than cram the font into a box, they elect to display it as best they can keeping the font in tact, potentially at the cost of crispness of display. The net effect is fonts rendered in OS X tend to look "smoother" and more appealing to the eye, but also "blurry" to some people. The upside is you don't need fonts designed especially to work with OS X's rendering technology. It "just works".

So it all boils down to personal preference. Frankly, I find fonts rendered with ClearType to look broken, faint, and/or fuzzy (with multihued outlines) and really distracting as I read (though it's better than turning it off completely). I don't find fonts rendered in OS X to be blurry at all. They look more natural and "intact" to me. Now perhaps it's my monitor at home, which is the new 27" iMac, because when I tried XP with ClearType through VirtualBox it looked way better than it did at work with the same settings (though I could still detect the fuzziness I see, but not as bad). This is even after using the ClearType Tuner, which helped greatly, but I was still never able to find the perfect setting. Though, if you’re going to stick with ClearType on XP, I highly recommend it .

Regardless, I'm stuck using XP at work with aliased fonts, or broken/multi-hued fonts in ClearType. This became even more noticeable when I installed Safari 4 and turned on its built-in "Medium" font-smoothing. It really made me want to find a way to turn that on system-wide. Luckily, some Japanese programmers also came to the conclusion that ClearType sucks for displaying their ligatures and decide to do something about it. GDI++ is a tool that uses the FreeType open source font engine for rendering fonts in Windows, and you can customize it (albeit in a very non-user-friendly way) to your own preference.

Now I'd only advocate using GDI++ if you're like me, and stuck in an XP world. If you're on Vista or Windows 7, their latest advances in DirectWrite and Direct2D appear to me to be a vast improvement over anything you can accomplish in XP, either built-in or through a third-party (mind you, I'm basing that strictly on screenshots I've seen, having never used Vista nor Windows 7). Unfortunately, Microsoft has decided no to support XP at this time with either of those technologies. But if you're up for a little tinkering, GDI++ is the way to go. I'll attach my settings, which attempt to mimc my Mac, once I get back in to work.

Testing posting to WordPress via email

Working on some PHP code for my WordPress blog to clean up the content it gets from Posterous.

Need a test message to tinker with.

Here’s another paragraph.

Me, too!
What happens if I only hit return once?

Last one. iPhone really could use an easier way to resend emails.

I lied, but possibly the second last time I'll be doing this. :)