Setting up a jumpstart server for Solaris Express.
I guess this post will have a somewhat limited life span since Solaris Express is being retired in favor of OpenSolaris. However, some of the pages I always refereed to every time I needed to do this have disappeared, so I’m writing it up again anyway for future reference. Maybe I’ll update it again when […]
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 the server runs Solaris and is SPARC hardware, and I’m not going to install a […]
How to reset a wordpress user password via SQL.
I found I had forgotten an admin password on a WordPress site I run. After figuring out how to reset it, I thought I would stick it here so that I can find it myself again in the future. UPDATE wp_users SET user_pass=MD5(‘secret_password_here’) WHERE user_login = ‘yourself’;
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. Every body gets to have an untested opinion, right? I did end up doing some […]
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
Emacs Mode for Protobuf editing
I like using Google’s Protocol Buffers (aka protobuf). It is faster and more bandwidth/disk efficient than JSON, but perhaps not quite as simple or flexible. In protobuf you have messages. In messages, everything is a key/value pair. Keys are tagged to show the type of the value (int, float, string, sub-message), then followed by the […]
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. It isn’t threaded. Next step on this project is to redo this in Erlang. And […]
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 method for PHP (in the form of scripts running in mod_php) to send messages to […]
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 for tasks to execute, and when complete, they add the jobs into the finished queue. […]
Braided Cinnamon Bread
Preheat oven to 400 degrees. Follow a basic milk bread recipe (flour, sugar, salt, yeast, water, milk, shortening) through the first kneading and rising stage. Split dough into three equal portions Roll out each portion, into a roughly 4:3 shape. Cover with a mixture of sugar, butter, and cinnamon, then roll into a tube. Fan […]