Tuesday, July 26, 2016

I currently blog at several other places


https://searchvoidstar.tumblr.com (programming)
https://videomeltdown.tumblr.com (glitch art)
https://github.com/cmdcolin (github)
https://twitter.com/cmdcolin


Feel free to visit or follow/say hi

Thursday, September 15, 2011


chaotic pendulum

Tuesday, August 16, 2011

Saturday, March 12, 2011

glitchdrone



experiment with raw video codecs and synth track

Sunday, June 13, 2010

prefast code analyze

Visual C++ has a static code analyzer called PREfast that ist now ditributes in the new-ish Windows SDK v6.1. PREfast analyze used to be distributed in the DDK, and it used in part by the Microsoft Secure Development Lifecycle (SDL). The analysis basically catches stuff you forget when you're dealing with a lot of code

- Checking for NULL pointers or parameters in your functions
- Out of bounds indexing or buffer overflows for example in array indexes in 'for' loops
- Local variable scope masking other scopes

To make code analyze work with visual studio, for example VS2005, I set up this batch file

; devenv-prefast.bat
call "C:\Program Files\Windows SDK\v6.1\vcvars32.bat"
start "C:\Program Files\Microsoft Visual Studio 8.0\VC\Common7\IDE\devenv.exe" /UseEnv


This uses the PATH, INCLUDES, and LIBS from vcvars32.bat, and uses them in the Visual Studio environment. Then, you add /analyze to the Project -> C/C++ Command line options and it does the static code analysis

Saturday, April 17, 2010

dotfiles

Everyone knows linux stuff is totally customizable -- but what I figured out was that a lot of the configuration options are in hidden 'dotfiles'! I wanted to give cygwin a dark theme, so here's the most basic dark theme for vim and xterm

vim using .vimrc

" Example .vimrc here http://www.vi-improved.org/vimrc.php
" Vim colorschemes generator http://inspiration.sweyla.com/code/
" {
set background=dark " we plan to use a dark background
colorscheme inspiration907827
syntax on " syntax highlighting on
" }





xterm using .Xdefaults

XTerm*Background: black
XTerm*Foreground: grey
XTerm*utf8: 1





-- check out http://dotfiles.org/ for more of this stuff

Saturday, February 20, 2010

opengl post processing

I figured out how to use OpenGL for post processing ... finally -- sort of used it as an excuse for valentines day to make something that would run on a Mac



Uses this pixel shader to make the big pixel convolution - http://www.lighthouse3d.com/opengl/ledshader/