Posted inExperience / Information Technology / Thank You Sir May I Have Another

Qt and USB – Pt. 2

Today’s post will be the first of at least two posts about identifying your USB device. I started by adding the following code. out << “ProductID: ” << desc.idProduct << endl; r0_status = libusb_open(dev, &hHandle); if (r0_status != LIBUSB_SUCCESS) { out << “Error ” << r0_status << ” opening USB device. Error text: ” << libusb_error_name(r0_status) << endl; } else { unsigned char serialNumber[255] = { }; unsigned char vendorName[1024] = { }; unsigned char … Qt and USB – Pt. 2Read more

Posted inExperience / Information Technology / Thank You Sir May I Have Another

Checking return values

Yes, I had to post one more, hopefully shorter, rant on logger.c. This has to do with “checking return values” in OpenSource code. #ifndef MSG_NOSIGNAL # define MSG_NOSIGNAL 0 #endif if (sendmsg(ctl->fd, &message, MSG_NOSIGNAL) < 0) { logger_reopen(ctl); if (sendmsg(ctl->fd, &message, MSG_NOSIGNAL) < 0) warn(_(“send message failed”)); } Code like this is rampant in OpenSource. It passes the quick and dirty teen age “code review” but it is not production quality. If Linux and the … Checking return valuesRead more

Posted inExperience / Information Technology / Thank You Sir May I Have Another

It’s okay to hate the 12 year old boys who write the bulk of OpenSource code

Even if their biological clock states they are north of 40, they never got past 12 when it comes to coding. In case you can’t see the featured image, the source file came from here. And since they will _hopefully_ sweep that up, here is the first snippet. /* this creates a timestamp based on current time according to the * fine rules of RFC3164, most importantly it ensures in a portable * way that … It’s okay to hate the 12 year old boys who write the bulk of OpenSource codeRead more

Posted inInformation Technology / Thank You Sir May I Have Another

Xterm and VT Emulation

Many years ago, when I was writing this book I did so using a Linux desktop using Xterm and the following configuration script. #!/bin/sh # vax # 09-17-96 Bob Ess – initial creation # 09-26-96 Shig Katada – Additional keybindings # # Script file to incorporate keybindings and command line # options for connecting to a VAX node # Usage statement Usage(){ echo echo ” Usage : vax -options” echo echo ” Options: -80 for … Xterm and VT EmulationRead more

Posted inExperience / Information Technology

Question From a Reader

The following question came in from a reader who happened to catch one of my posts on a programming email list. ==== As usual, I quite enjoy your detailed analysis coupled with historical contexts, since I learned my trade through those days (Sun SPARC workstations, VAX minicomputers running VMS, etc.).  They are always entertaining, usually edifying, and sometimes nostalgic for me.  :) I’m curious, though, about one particular point you made: Windows isn’t even going … Question From a ReaderRead more