-
Recent Posts
Archives
Categories
Twitter Updates
- RT @texasdemocrats: “While CPAC unpacks their clown car on a convention stage in front of all of America, parents are shopping for supplies… 7 months ago
- RT @scalzi: I do wonder if Greg Abbott woke up yesterday concerned that he wasn't doing enough to bump up Texas' teen suicide rate. 1 year ago
- RT @tonroosendaal: Blender Internal (render) just got removed from the 2.8 branch. Bye bye, you served us well! #b3d https://t.co/4ixOZ8JmcX 4 years ago
- First post in a while. Drawing a bounding box over an image in C#/.net/WinForms. chrisheydrick.com/2016/10/27/dra… 6 years ago
- RT @SwiftOnSecurity: Blue Bell manufacturing plants are dirtier than an NTFS volume after an unclean shutdown 6 years ago
Category Archives: Hobbies
Passing a ctypes array of struct from Python to .dll
I’m working on a small project that requires interfacing Python to a C .dll. I’ve never had to pass an array of structures by reference before with ctypes, so here’s a quick sanity check I did to make sure I … Continue reading
Posted in Hobbies, Programming, Technology
Leave a comment
Brief Example of Calling .dll Functions in C#
I don’t like C#, but the free version of Visual Studio only lets you use the interface builder in C#/.net programs, so here we are. My goal was to cheat and write the interesting parts of the program in C/C++, … Continue reading
File Open Dialog Box in Python
I’m putting the finishing touches on a side project at work that requires opening a file as an argument at the command line, or through a file open dialog box. Here’s a snippet that demonstrates how I implemented it. … Continue reading
Posted in Programming
Leave a comment
FlightGear panic button with an Arduino
I like flight simulators, but I’m not very good at them. What I need is a panic button that puts me at a safe altitude for recovery. Fortunately the flight simulator I’m playing right now, FlightGear, has a way to … Continue reading
Posted in Hobbies, Programming, Technology
Leave a comment
How to revive a dead character in Baldur’s Gate:EE
This took me forever to figure out. Xzar died on me early in the game and I couldn’t figure out how to revive him at a temple (which is what a few Internet sources said to do). You must go … Continue reading
Posted in Technology
2 Comments
How to read serial data from an Arduino in Linux with C: Part 4
Parts one, two, and three dealt with non-canonical reading of serial data coming from an Arduino. Part 4 is how to do it in canonical mode. I programmed the Arduino to wait until it receives a byte from the PC and … Continue reading
Posted in Hobbies, Programming
14 Comments
Ported fill and stroke Cairo drawing example on Zetcode.com to GTK+3
If you do any searching for Cairo or GTK+ tutorials, you’ll eventually wind up on zetcode.com. I’d be content with only a fraction of this guy’s talent for explaining difficult subject matters with such brevity and clarity. It’s not coincidence … Continue reading
Posted in Hobbies, Programming
3 Comments
Another way to receive serial data from an Arduino
I stumbled across this: http://stackoverflow.com/questions/7276797/reading-from-an-arduino-tty-with-file?rq=1 I’d very much like to subscribe to that guy’s newsletter.
Posted in Hobbies, Programming
Leave a comment
How to read serial data from an Arduino in Linux with C: Part 3
Preface: Part 1 covered the sketch the Arduino will run for this example, and part 2 covered the resources and other people’s code I used to make sure everything works as expected. In part 3 I’m going to go through … Continue reading
Posted in Hobbies, Programming
16 Comments
How to read serial data from an Arduino in Linux with C: Part 2
Edit: Part 3 and Part 4 of the writeup. Preface: In Part 1 I covered the Arduino sketch that will output serial data to read on the PC it’s connected to. Next I’ll go over the resources I used to … Continue reading
Posted in Hobbies, Programming
1 Comment