Sometimes I can’t help myself. This week, I read a blog post asking what was wrong with a dialog. I found plenty of stuff wrong, so I decided to write a response and create a replacement dialog. This is not intended as an attack on the dialog author. I hope it’s not received that way. […]
I have various files that download to my computer automatically. They arrive at different times of the day or night. When they do, I like to transfer them to a network drive on another computer automatically. But there’s a wrinkle. When the files auto-download to my computer, they go into one folder automatically, but when […]
On US tax day 2010, OpenWrt’s “qt4” feed got support for MySQL and SQLite. And there was much rejoicing among Qt developers. A big thanks to Mirko Vogt for porting the build system to OpenWrt and letting me help out with the SQL stuff.
For a while, I haven’t been able to get scp to work between Linux and Mac OS X. This only happened when I used the scp command on my Linux box, with Mac OS X acting as the ssh server. Here’s the symptom: On Linux: $ scp user@192.168.1.5:~/Documents/Some/File.txt /tmp/. Password: $ It disconnected me after […]
After a stress-free build, the ParkZone Habu gave me two stress-free maiden flights. I’ll let the video do all the talking:
Today’s reminder comes from the “magic number” department, where we remind you to never hard-code a magic number in your software. For example, the value for ETIMEDOUT on Linux can vary depending on your C library. glibc, for example, defines it as 110, but uClibc defines it as 145. This tends to matter when you […]
M&Ms are yummy. At work we have ginormous bags of M&Ms to snack on. One day I reached into the bag and pulled out a handful (about 8 M&Ms). I happily munched until there were 4 left. Lo and behold! The remaining 4 were all blue. “What are the odds,” I asked myself. So I […]
My new Parkzone Habu ducted fan jet arrived in the mail this week. I put it together and provide this walkthrough for the benefit of those who have not yet purchased their Habu (hint: just do it). Stay tuned for the flight report in a couple weeks. Parkzone Habu Walk Through from djsmith on Vimeo. […]
My office has a piece-of-junk Comcast cable modem that often needs to be rebooted. I got tired of walking back to the network closet, so I bought a USB relay for $30. Yeah, I could have simply bought a better modem, but where’s the fun in that? Here’s a photo of the relay board: After […]
Seriously. I don’t know how I ever created a Qt user interface without using stylesheets. This was, by far, the best idea Trolltech ever had. For today’s show-and-tell, I give you a nifty-looking QSlider with some nice gradient style applied to it: The handle has a nice hover effect, the bar has a moving gradient […]