Code, Strings, and Keys

    • About Thomas Powell
    • Account
    • It’s been [0] days since [program] last updated
    • Login
    • Password Reset
    • Pianist / Accompanist / Music Director Resume
    • Reading List 2025
    • Register
    • Running Gear – Shoes, Treadmill, and Bandages
    • Site Map
Illustration of a bird flying.
  • Preferred Paper for Printing with a Canon i860

    After experimenting with various types of paper for photo printing, we’ve found that the Epson photo paper produces the best results on our Canon Printer:

    June 19, 2007
  • Turn pseudo-enums expressed as #defines into strings.

    I have an include file that has 50+ #defines with constants (0,1,2,3,…,etc). I have a dump program to dump the data structure that these #defines are used in into a .csv file. I used this little script to dump case statements out for the #defines, with readable strings instead of arbitrary constant values. cat $1…

    June 10, 2007
  • Awk script to quote all parameters for a given function name.

    I was trying to maintain a program that wrote 200+ lines to a single file, using a single repeated function call–many of which had all NULL parameters. There were also occasional loops involved. The data was position based, so NULL writes counted. I was just trying to figure out: How many times a given function…

    June 10, 2007
←Previous Page
1 … 285 286 287 288 289 … 312
Next Page→

Code, Strings, and Keys

Proudly powered by WordPress