NetBSD over git- call for collaboration, 2009-11-09 00:00:00 #
shows that the git server needs to be fast! If anyone would like to retry what I did, please read the above-mentioned email and look at the commands after you checkout netbsd's src from git: git clone http://ftp.netbsd.org/pub/NetBSD/misc/repositories/git/src The NetBSD src tree is roughly four-times larger than the linux kernel and dragonflybsd, so it's definitely one of the larger projects to take on git. Let us know your findings.
greed in apache rewrite rules, 2009-10-31 00:00:00 #
In modern apache, mod_rewrite uses PCRE instead of your system's regexp. One thing to watch out for in rules is greediness. Basically, each matching rule will attempt to match the maximum amount allowable to satisfy a rule. This, however, is rarely what you want when using statements like (.*) in the middle of a RewriteRule. (although it's usually exactly what you want at the end of a rule). Here's a basic demonstration (watch how $1 takes the largest possible string): #Rewriting with two greedy capture anything statements split by a '/' RewriteRule ^/test/(.*)/(.*)$ /foo?one=$1&two=$2 [R,L] Results: Now switch to non-greedy mode: #Rewriting with one non-greedy capture anything followed by a greedy (see how $1 takes the smallest possible string) RewriteRule ^/test/(.*?)/(.*)$ /foo?one=$1&two=$2 [R,L] Results: When using aggressive captures (.+) or (.*) in the middle of your rule, think carefully about using the ? to modify greed characteristics to make sure you get exactly what you want. For extra testing confusion, a test with just two parameters (GET /test/foo/bar HTTP/1.1) would have shown these two rules to be exactly the same.
pkgsrc openjdk7 gets better java font support, 2009-10-21 00:00:00 #
Fonts in java have always been a challenge for everyone involved as java is supposed to provide a portable environment for programs to run- including GUI! Java in netbsd has always been even more of a challenge, but now its font support is getting improved:
NetBSD gets usb device access from userland, 2009-10-17 00:00:00 #
USB device support in userland: This already works for usb storage devices, so let's try to get some sound cards, network devices, and input devices moved into userspace.
monitoring systems and the sysadmin intranet, 2009-09-09 00:00:00 #
Recently at work I got myself involved in revamping our monitoring system. This got me thinking about all of of the things a monitoring system should do for you and the needs of systems people for internal tools. Basically, for each type of system you want to monitor (os, jvm, webserver, etc) certain aspects should be defined on both the front-end and back-end of the app. And that doesn't even start to get into the front-end needs for OLAP-style reporting needed for all of this stuff, a wiki to document everything, an admin interface to define new templates and collections, etc etc etc. Another important aspect is a decent live console for 24/7 operations to watch for all of those Alerting things.