Archive | geekery

11 June 2010 ~ Comments Off

Apache httpd config to cache the main maven repo

At work, I’m experimenting with Maven as a way to manage java package builds
and dependencies.

The maven mirror documentation says pretty explicitly “Do not rsync the entire
repo” – it recommends the use of caching proxies. We can do this trivially …

Continue Reading

04 June 2010 ~ Comments Off

SSL handshake latency and HTTPS optimizations.

At work today, I started investigating the latency differences for similar
requests between HTTP and HTTPS. Historically, I was running with the assumption
that higher latency on HTTPS (SSL) traffic was to be expected since SSL handshakes
are more CPU …

Continue Reading

04 June 2010 ~ Comments Off

SSL handshake latency and HTTPS optimizations.

At work today, I started investigating the latency differences for similar
requests between HTTP and HTTPS. Historically, I was running with the assumption
that higher latency on HTTPS (SSL) traffic was to be expected since SSL handshakes
are more CPU …

Continue Reading

01 June 2010 ~ Comments Off

xdotool 2.20100601 release

Thanks to some early testing and feedback from the previous xdotool release,
I’ve put together a new release that fixes a few minor problems.

Download: xdotool-2.20100601.2912.tar.gz

As usual, if you find problems or have feature requests, please…

Continue Reading

25 May 2010 ~ Comments Off

New eventmachine-tail features

I added block support to EM::file_tail in the eventmachine-tail gem. This lets
you give a handler to the tail instead of a class, which could mean less code
to write for the common case (handle lines of input):

require “rubygems”
require “eventmachin…

Continue Reading

24 May 2010 ~ Comments Off

xdotool 2.20100524 release

New xdotool for your enjoyment.

Download: http://semicomplete.googlecode.com/files/xdotool-2.20100524.2888.tar.gz

Major changes:

xdotool getmouselocation now supports –shell for outputting something you can simply eval into your shell
Ad…

Continue Reading

18 May 2010 ~ Comments Off

New project: eventmachine-tail

Logstash uses EventMachine, which is an event-driven library for Ruby. Part of
logstash’s requirements is the ability to watch logfiles like ‘tail -f’ would.
Previously, I was using File::Tail, but this was not EventMachine friendly.

Additionally, i…

Continue Reading

11 May 2010 ~ Comments Off

gzip and other file progress checking

While I wait for a mysql backup to replay against a test server, I was
wondering how far along the replay was.

I am building the database using this command:

% gzip -dc admin.sql.20100511.060001.gz| mysql -uroot -proot

Pipes have a finite buff…

Continue Reading

11 May 2010 ~ Comments Off

Headless wrapper for ephemeral X servers

For various projects I’m doing right now, I need an easy way to automatically
run code in an X server that may not necessarily be the active display. This code
may even run on servers in production that don’t have video cards or monitors
attached.

F…

Continue Reading