Saturday, April 25, 2015

[Tech] A couple of useful Windows tools

Hi,

If you're like me, you occasionally have the need of doing Useful Things (TM) on Windows, but you have a Unix-ey background. The GUI just doesn't cut it, so you pull up CMD or, *gasp*, PowerShell. In all probability, you're also like me and CMD is both more familiar to you (from MS-DOS 6.22 days) and more common in your work. I regularly use a product that only works correctly in CMD (well, without some hackage).

Here a couple of tools that have helped make my life easier:

  • RoboCopy has many similarities to rsync. I think it might even have a proper subset of rsync functionality.
  • findstr is vaguely like grep...once you use the right command line arguments. Note that findstr does not know what the crap UCS-2 encoding (or any number of other encodings) is (are). (grep doesn't seem to either.)
  • dir /s /b is just enough like the default output of ls to pipe to findstr and do useful things.
Hopefully that helps someone.

Sunday, April 19, 2015

Das Blinkenlights!

I made some.

Do you not know what blinkenlights are? The Wikipedia page does a remarkably good job of explaining the term. I apologize--only slightly--for the awful misappropriate of German language pieces. It really should be "die Blinkenlichten." ;)

Mine were from a kit that my lovely wife got me. Hackaday is a pretty dang cool blog with an attached store that carries it. It's a bag of electronics parts and no instructions. The board-to-board and curvy-trace design elements are both reminiscent of electronics designs from the 1950s and 60s, and it reminds me of the electronics repair work I did in the physics department at my university. The point is to reverse-engineer it and put it together--which I did:

assembled Cordwood Puzzle from Hackaday.com

Amusingly, due to the lack of instructions I attached the 6-pin 100-mil connector wrong (through-hole instead of surface-mount), leaving three of the LEDs always on and making physically connecting to it difficult. I'll eventually get a solder vacuum (not solder sucker! *shudder*) and fix it.

Then, for the ward talent show last night, I combined a Raspberry Pi 2 with my cordwood LED kit and made some blinkenlights!

My Raspberry Pi 2 blinking lights and looping a video.
My Raspberry Pi 2 blinking lights and looping a video.

I then topped it off by having the Pi play a trailer for my friend's old-computer-hardware YouTube series, hence the monitor.

The rainbow ribbon cables were lovingly borrowed from my Xilinx programmer and my SmartScope.

The Bash script on the left of the monitor is the one blinking the lights; it simply echoes commands to the /sys/class/gpio tree under Raspbian Linux.

Tuesday, April 7, 2015

Sapper

You know, I kind of like the library.

Sure, it's dark, and the butler insists it's haunted. Parts of it move around inexplicably from time to time, and a vestibule might be gone tomorrow and elsewhere the day after, but overall I can find what I'm looking for and I get things done.

It rather reminds me of what I imagine an old university's library should be. The smell of old books, elaborate shelving, sweeping staircases, endless shelves upon shelves, the occasional cobweb, dim light filtering in from stained-glass windows, and at night soft light wafting down from grandiose chandeliers.

Still...