Archive for the ‘Programming’ Category

Writing Win32 Applications with MinGW and Wine

by Jason Stewart
Building Under Windows with Cygwin Use Cygwin to install your favorite unix userland tools under Microsoft Windows. Be sure to include the following packages: make gdb mingw64-i686-binutils mingw64-i686-gcc-core mingw64-i686-gcc-g++ mingw64-i686-headers mingw64-i686-runtime mingw64-i686-runtime-debuginfo w32api-headers w32api-runtime w32api-headers-debuginfo Building Under Linux (Debian / Ubuntu) To build under Debian-based distributions like Ubuntu or Mint, install the following: NOTE: I’m […]

Debugging cron Scripts

by Jason Stewart
People come up with all sorts of debatable shell voodoo for debugging an errant cron job. If the script runs successfully under your interactive shell, yet fails under cron, I am 99% sure for your case (and 100% sure for my case) that it is due to a difference in runtime environments. For simple scripts, […]

Building SASS/SCSS in Sublime Text 3

by Jason Stewart
There are so many packages for building sass and scss files in Sublime Text 3, but I think a lot of them make it more complicated than it needs to be. I prefer to use the official Sass compiler already on my system and just make a .sublime-build file for it. Save this under your […]

Tweaking WordPress

by Jason Stewart
Disable Emoji Processing Sometimes WordPress translates special characters into images when I want those characters left alone. After a little digging, I learned that this was being done by the emoji translation scripts. First I tried disabling this feature from the admin panel, but the characters were still being converted. Disabling the translation scripts in […]

Favorite Free Monospace Fonts for Programming

by Jason Stewart
Most people prefer monospaced fonts for programming. A monospaced font is a font in which all characters have the same width. Such characters make it easy to vertically align variables, data, and other syntax structures for easier reading and comprehension. Here is my running list of favorites: Try Them Out!

Gearman and PHP for Web Applications

by Jason Stewart
Typically, server-side scripts that run under a web server have a time-to-live (TTL). When the TTL is exceeded, the script is force-terminated. This is done for the sake of responsiveness and security. Sometimes, you need to start a long-running job in response to a web request. How do we do that without exceeding our TTL? […]

Absolute Best Vim Tips

by Jason Stewart
Escape Key Substitutes Clipboard Editing HTML Unlocking Whitespace Conversion Bash makeand Makefiles Plugins Cheat Sheet Vim Escape Key Substitutes Constantly reaching for the Esc key is very uncomfortable on a typical 101-key desktop PC keyboard. Having an Esc alternative vastly improves the Vim experience for most desktop users. Any of the following key combinations will […]

Building a Team of Developers

by Jason Stewart
Learn the easy way what I learned the hard way.

Top Ten Must-Have Tools for Development

by Jason Stewart
How to roll like a hardcore nerd.

Intern Question #1: There are so many different programming languages. Where should I start?

by Jason Stewart
Feedback, Documentation, and Error Handling Y’all!

Fixing Double-TAB Help in GNU CLISP

by Jason Stewart
When I started using GNU CLISP, I had the darndest time finding out what the per-user config file should be named. GNU CLISP runs ~/.clisprc.lisp on startup, so you can put defaults, quicklisp, etc. in that file. GNU CLISP also attempts to open a webpage to the right page in the common lisp hyperspec when […]

Common LISP Koans

by Jason Stewart
I’m more of a hands-on learner, so these Common LISP exercises were great: LISP Koans Of course, having the LISP Hyperspec handy doesn’t hurt.