Category Archives: Software Development

Debian, ProFTPD, FTPS, TLS, SSL, and SSL23_GET_SERVER_HELLO:unknown protocol

Recently I needed to test against an FTPS server. No big deal, I thought to myself, I’ll just set one up real quick. Boy did I end up having a hard time with that. Not because the task was actually hard but because there’s a bit of a general haziness about the whole idea of [...]

Longest Common Prefix Between Two Strings

While working on a “for fun” side project I needed to get the longest common prefix of two arbitrary strings. Since I didn’t find what I was looking for in the PHP string functions I made my own. And for some perverse reason i decided to see what the fewest number of lines I could [...]

HandlerSocket for MySQL Interpreted PHP client

In case anyone is looking for a SocketHandler client written in PHP to do some light testing with, I’ve written one and made it available

Erlang + HTML5 + IRC = pretty much awesome

as someone who uses IRC every day for work… I find this to be a very cool idea, even though I can’t really trust sending my traffic through a 3rd party. IRCCloud.com

Adding a second authentication factor to WordPress

UPDATE: I’ve added the plugin to the WordPress.org repository. If it gathers interest/attention then I may develop it further and add more stuff like SMS gateway support, configuration, etc… See: http://wordpress.org/extend/plugins/second-factor/ I really don’t know why, but the idea of adding a second authentication factor to WordPress blogs took hold of my brain tonight and [...]

Todays lesson: Check your assumptions

It’s easy to make assumptions about what we think is the problem with the speed of our code. Lets say you have a loop like so: foreach( $big_list_of_things as $thing ) { $res1 = somefunc1( $thing ); $res2 = somefunc2( $thing ); $res3 = somefunc3( $thing ); $res4 = somefunc4( $thing ); } Since its [...]

elockd [more] publicly available

I’d call this an 0.5 release. It’s now in the code repo that we at Automattic use to put out little open source tools. I’ve fixed several bugs with the code since the first time that I posted about it. It can handle at least 2k active connections, and at least 100k shared and exclusive [...]

video of a simple stress test of elockd

in case anyone is curious… elockd-in-action

elockd

I’ve been working on an erlang port of my php locking daemon in erlang (which is a more appropriate language for this kind of thing.) And I have it all tricked out (ok partially tricked out but hey it’s my first real erlang project and i’ve only spent 2 afternoons on it.) The api is [...]

Using PHP and OpenSSH with username/password auth

It turns out that this is actually a tricky problem. It’s super easy to use the OpenSSH command line stuff via PHP when you have key based authentication set up, but it’s not at all easy to use when you want to go the user/pass route. This is for a couple of reasons: First you [...]