Category Archives: Programming

Programming topics. Threads, graphics, realtime, whatever.

Circular buffers as C Macros

I was recently reviewing some FIFO based serial TX/RX circular buffer code that I thought was buggy in the FIFO part.  Since the FIFO was entwined with the ISRs, it was hard to test in isolation.  I looked around at … Continue reading

Posted in Programming | Comments Off on Circular buffers as C Macros

toStr revisited

After my initial toStr C++ exploration, I recent found myself reading about Boost’s lexical_cast, which is does something similar, albeit more general and with more verbosity. lexical_cast will not only convert nearly anything to a string, it will also do … Continue reading

Posted in Programming | Comments Off on toStr revisited

PostgreSQL connection pooling for mod_php

In a quest for better performance with postgres, I’ve been looking for connection pooling tools. There are a few quirks that I tend to require be met. First, it must run on Solaris. This isn’t so much a quirk, since … Continue reading

Posted in Programming, System Administration | Comments Off on PostgreSQL connection pooling for mod_php

Databases for simple web development

I have log been a fan of PostgreSQL over MySQL, believe that PostgreSQL is more feature complete and generally as fast or faster, with obvious caveats about being used appropriately, of course, and not to mention no real comparative testing. … Continue reading

Posted in Programming, System Administration | Comments Off on Databases for simple web development

toStr – A small C++ utility function.

This can be used as string(“bob”) + toStr(5) without declaring the type, presuming that the type can correctly be inferred by the compiler. Obviously, T must support operator

Posted in Programming | Comments Off on toStr – A small C++ utility function.

RESTful message queuing in Python

Alright.  Pass 1 is done.  Here is a link to it.  The server is in Python.  Clients in PHP and Python are provided.  It follows this design document.  On a quad Opteron, it gets about 600 short messages a second.  … Continue reading

Posted in Programming | Comments Off on RESTful message queuing in Python

A new message queuing system

First, why a new one?  Because I haven’t found any that do what I need and look simple and well supported.  Besides, it seems like a reasonable learning experience. The initial summary of what I need is a light weight … Continue reading

Posted in Programming | Comments Off on A new message queuing system

Thread Worker Pooling in Python

The worker pool pattern is a fairly common tool for writing multi-threaded programs.  You divide your work up into chunks of some size and you submit the to a work queue.  Then there is a pool of threads that watch that queue … Continue reading

Posted in Programming | Comments Off on Thread Worker Pooling in Python

Seeking

I am now looking for a new job and am no longer with Sigma Electronics. My first preference would be a position writing software for post production or visual effects at either a software company or a post production or … Continue reading

Posted in Programming | Comments Off on Seeking

About ReferURL

ReferURL.net is a link shorting service I created. You paste in a long URL (say to an eBay auction or newpaper article) and it gives you a short URL to use (http://referurl.net/123). You also have the option of picking an … Continue reading

Posted in Programming, System Administration | Comments Off on About ReferURL