Archive for the ‘Programming’ Category

Customizing Vim CtrlP Find

by Jason Stewart
CtrlP is a popular Vim plugin for jumping to files & buffers by typing a fragment of the path or filename. Its fuzzy-find is a little too fuzzy for my taste. We can fix that with a custom match function! Per CtrlP documentation: Example: let g:ctrlp_match_func = { 'match': 'Function_Name' } Structure of the function: […]

Writing Win32 Applications with MinGW and Wine

by Jason Stewart
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 typically writing 32-bit windows applications. […]

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!

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 […]

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.

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/eggplant.pro/site/blog/wp-content/themes/eggplant2/inc/nav.php on line 14