Skip to content

Updated Version of Dragsens

I have built a new version of the dragsens utility, which allows one to change the mouse sensitivity for detecting mouse drag actions in Windows.

This new version fulfills a request by Zach to add the capability to set the horizontal and vertical sensitivity independently. This is accomplished through two new command-line parameters, /X and /Y. Specifying just one of these parameters will change the sensitivity in only that axis:

dragsens /x 8
dragsens /y 6

It is also possible to provide both parameters at once:

dragsens /x 8 /y 6

Providing only a number on the command line will change both the horizontal and vertical axes to the same number of pixels.

dragsens 8

You may download the version 1.2 executable here:

http://www.parkscomputing.com/code/dragsens_12.zip

If you’d like to examine or modify the source code or build your own executable rather than relying on the executable above, you may download the Visual Studio 2012 project and source here:

http://www.parkscomputing.com/code/dragsens_12_src.zip

Please let me know if you encounter any problems or have any questions.

Share

My Life With Programming Languages

A language that doesn’t affect the way you think about programming, is not worth knowing. — Alan Perlis

My first programming language was Basic on a TI-99/4A. Contra Dijkstra, I don’t think it did me too much harm. Of course, I did eventually “outgrow” that language.

Just now I was pondering my progression through various programming languages and paradigms over the 28 years that I’ve been playing around with computers (almost 23 professionally as of this writing). My attitudes toward several of the languages I’ve used over that time looked something like the following:

Continue reading ‘My Life With Programming Languages’ »

Share

Facebook and Your Grandchildren

I think most people, at some point, have tried to keep a diary. Most people also gave up after a few days. Yet Facebook is like a diary that you’ll let your 900 closest friends read, and you have to try not to constantly write stuff on your page.

That realization made me wonder what it would be like if my grandparents had had Facebook pages in their teenage years. I would love to be able to read what they would have posted, or what videos and pictures they might have shared, if the technology had existed back then (in the case of my maternal grandfather, this would have been in from the 1880′s onward).

That made me wonder what my grandchildren will think when they read my Facebook page. Now, whenever I update my status or post a photo album I think about the people that might read it years from now.

The next time you type “OMG GOT SO WASTED LAST NIGHT LOL,” do think about your grandchildren before you hit the “Post” button. Of course, if you were partying with your grandchildren when you got wasted, well… okay, party on, I guess.

Share

Bragging On the GWA Marching Bulldog Band

My elder daughter, a senior at George Walton Academy in Monroe, GA, is a member of the color guard on the GWA Marching Bulldog Band. This past weekend the band competed in the USSBA Southern States Championships in Chattanooga, TN, where they placed first in the Group VI Open competition with a score of 98.563, the highest score of the competition among all bands in all classifications. This is an amazing band that performs at a high level year after year, and I’m so proud to have gotten to know the directors, students, parents, and many others that make this band what it is.

This year’s show theme was “The Carmen Project.” The show mixed music from the opera “Carmen” with other Latin themes such as Ravel’s “Boléro” while interpreting the story of the opera. It was a grand and moving spectacle that just got better and better every time I watched it. My daughter played the role of Carmen, which of course meant she got to die in dramatic fashion at the end of the show.

Here is my recording of the winning USSBA performance. The actual show starts at the 3:30 mark; before that, you can see the band marching onto the field and doing their warm-up routine.

Share

George Orwell and Effective Coding

I spend a lot of time and effort trying to get better at the craft of software development. My goal every day is to fall asleep as a better programmer than the one that awoke that morning. While this involves a lot of reading and practice within the field, I usually learn more by studying older disciplines since software development is still such a young craft.

Earlier today I read an essay on the decline of the English language by George Orwell. The essay is excellent, and I’m already trying to apply its lessons to my writing, but there was one passage that struck me as being particularly useful for software development.

When you think of something abstract you are more inclined to use words from the start, and unless you make a conscious effort to prevent it, the existing dialect will come rushing in and do the job for you, at the expense of blurring or even changing your meaning. Probably it is better to put off using words as long as possible and get one’s meaning as clear as one can through pictures and sensations. Afterward one can choose — not simply accept — the phrases that will best cover the meaning, and then switch round and decide what impressions one’s words are likely to make on another person.

To apply the quote above to software development, replace “words” with “code” and “dialect” with “programming language.” When you become accustomed to using a particular language or coding pattern, you tend to think of any new problem in those terms. If you choose the wrong strategy for solving the problem and start implementing too quickly you may end up with a solution that is too “wordy” or that does not express the abstractions accurately.

Earlier today, before I read the essay, I put this very lesson into practice without even realizing exactly why I like to do it. Whenever I come up with an idea for a new feature that I need to implement, or whenever I need to make a radical change to some system I’m working on, I’ll get up and walk away from the PC before the idea forms too fully and I start to write code. I’ll go for a walk or do some mindless activity (today it was sweeping the driveway) while I think about the idea. I’ll consider different implementations to see what problems might arise before I commit to a solution. Though I’ve never thought of it this way, it’s the same sort of process that Orwell describes in the quote above. Now that I’ve read Orwell’s precise definition of why this is good for writing prose, I better understand why it’s also effective for writing code.

Software development is hard. The job of a software developer is to turn an abstract idea into a concrete implementation in an efficient manner. Until you fully understand the abstractions, it’s impossible to consider any concrete implementation, let alone one that is efficient. I find that I write better code once I’ve thought enough about a problem to create a sort of landscape in my mind. It really is a landscape, too. It’s almost as if I can walk though the implementation in my mind and explore its darker corners. If I can find a way to build a mental model with fewer dark corners and dead-end hallways, then the concrete implementation will usually be more solid.

As you try to become a better developer, look for lessons from other fields like writing, architecture, the building trades, or any craft or profession that has been around for a long time. You’ll find that many problems that look like they’re peculiar to software development were actually considered and solved in other trades hundreds or even thousands of years ago.

Share

You Might Be an Old Hacker If…

It occurred to me recently that I’ve been using the Internet for almost 18 years now. That doesn’t put me into any particularly elite category since there were a lot of users way before I came along, but it does make me feel old to know that there are students in college now who were born after I started using the Internet.

Are you an old hacker like me? You might be if you…

  • …Remember when the word “hacker” just meant someone who tinkered with machinery or technology.
  • …Had an e-mail address that didn’t have to have numbers in it to make it unique.
  • …First accessed the Internet through a Unix shell.
  • …Ran your own SMTP server.
  • …Remember when the web was not the same as “the Internet.”
  • …Used gopher.
  • Still use gopher.
  • …Were glad that your Netcom address didn’t have an “ix.” in it.
  • …Wrote your first web site with Notepad (or vi).
  • …Wrote your first web app with CGI.
  • …Wrote your first “web app” before that term existed.
  • …Ever said to yourself, “Make money giving stuff away? That’s stupid.”
  • …Started an Internet business, decided it was a silly idea, and then watched someone become a billionaire with the same idea. (Hi, Craigslist.)
  • …Remember the first time you used NCSA Mosaic.
  • …Kept waiting for Netscape 4.0 to just die, already.
  • …Wrote Java applets when applets were the hot new thing.
  • …Wrote an HTTP server from scratch.
  • …Wrote a DOS shareware utility.
  • …Have IRC logs older than most of your shirts.
  • …Ran an FTP server on your office PC as a nifty way to access your files from home… and nobody cared!
  • …Owned a .com domain name that began with a commonly used word.
  • …Ran Linux prior to version 1.0.
  • …Browsed a web site with telnet.
  • …Lost your job in the dot-bomb.

That last one is particularly poignant. For me, 2001 was when the Internet, and by extension the web, ceased being some kind of new frontier. Maturity of a technology isn’t measured by people making a lot of money off of it, but rather by people losing a lot of money off of it. It was kind of hard knowing that I was out-of-work in a town (Seattle) where a barista at Starbucks probably had a better technology résumé than I did… and a job!

Just last week I became the last geek in the world to get a real smartphone (BlackBerries don’t count). As I marvel at all that I’m able to do with a remarkably inexpensive piece of equipment that can fit in my pocket, for which I’ve only spent a grand total of $2.99 in third-party software, I’m really glad that I’m an old hacker who got to watch this amazing world grow up right in front of me. You young kids don’t know how easy you have it.

(I’m sure there are a lot of you out there that were hacking in and around the ‘net way before I was. Let’s hear those war stories!)

Share

Comments on Accelerated C++ Solutions

I can’t begin to express how delighted I am at all of the wonderful comments, suggestions, and corrections that have been coming in on the Accelerated C++ Solutions. I would be updating the pages and replying to the comments more, but I’m horribly swamped at my day job right now and I barely have time to do anything but camp out at the office.

Please, keep the comments coming, and I’ll do my best to give them the attention they deserve in a few weeks! Thank you all so much!

Share

Google+ Is Pretty Nice

I finally got on Google+, and so far it’s pretty nice. I’ve got a bunch of invites, and after I let my friends and family get a chance at claiming them I’ll post a link here for the rest of you to use, if you’re interested in trying it out. If you’re already on Google+ you can find me here.

Lately I’ve been getting more and more frustrated with Facebook and its shortcomings. While Google has a tall mountain to climb to catch up with Facebook, I think they’ve got a pretty good start.

Share

About the Bizarre Search Results

If you happen to search Google for parkscomputing.com you’ll likely get some hits for strange, spam-sounding articles. These are the result of a wiki hack that went on for some time without my knowledge. I had a C++ wiki site for a while, but somehow it got hacked by spammers. Now there are several choice keywords that have my name and site attached to them.

I don’t know how long it will take for Google to get around to removing those links, or if they’ll ever go away.

Share

Olympic Note Passing

A good analogy can often be useful to explain intricate technical details. In an earlier article, “Wrong Fish Food”, I related an analogy that I used to describe a technical issue to a non-technical audience. This article shares an analogy I created for a technical audience, because sometimes even techies need an analogy to grasp an unfamiliar technology.

Continue reading ‘Olympic Note Passing’ »

Share