I just completed exporting my Vox to Typepad. Quite a trip down memory lane; back to the golden age of blogging. I'm thinking kind thoughts for Six Apart right now -- I know this can't be an easy transition they're going through.
1 min read
I just completed exporting my Vox to Typepad. Quite a trip down memory lane; back to the golden age of blogging. I'm thinking kind thoughts for Six Apart right now -- I know this can't be an easy transition they're going through.
3 min read
It appears that Fedora 12 moved to a new boot init system called dracut. Sadly due to a number of odd circumstances this has caused me much pain. Here's my basic config
# dmraid -r
/dev/sdd: sil, "sil_aiabafajfgba", mirror, ok, 488395120 sectors, data@ 0
/dev/sdc: sil, "sil_aiabafajfgba", mirror, ok, 488395120 sectors, data@ 0
fprintf(stderr, Name ": WARNING %s and %s appear"
" to have very similar superblocks.\n"
" If they are really different, "
"please --zero the superblock on one\n"
" If they are the same or overlap,"
" please remove one from %s.\n",
devices[best[i]].devname, devname,
inargv ? "the list" :
"the\n DEVICE list in mdadm.conf"
Drats! the mirrored fake raid had already mangled my second drive by duplicating the superblock! Plus since all this was going on in dracut I couldn't fix it. So I removed the nodmraid option in grub during boot and dug a little deeper. I found that I could keep dracut from doing all this nonsense by adding the following kernel options:
rd_NO_MD rd_NO_DM nodmraid
mdadm --zero-superblock /dev/sdd1
And then rebooting (again!)
# mdadm --manage /dev/md_d0 --add /dev/sdd1
To get rid of the false-positive fake raid setup I found that you can do this with the dmraid tool itself:
[root@mirth ~]# dmraid -E -r /dev/sdd
Do you really want to erase "sil" ondisk metadata on /dev/sdd ? [y/n] :y
[root@mirth ~]# dmraid -E -r /dev/sdc
Do you really want to erase "sil" ondisk metadata on /dev/sdc ? [y/n] :y
2 min read
In the beginning I used elm to read my mail. This was somewhat radical, especially as I worked with the team that created POPMail for the mac and Minuet for the PC, and everyone else moved to pine. Then came Mutt -- happy days -- I was able to slice and dice email with amazing speed.
3 min read
Using an SSL Accelerator like a Netscaler is really useful, you can offload a lot of work to a device that supports this in hardware and can use SSL session affinity to send requests to the same backend. In the simplest setup the SSL Accelerator accepts the request and proxies it to your internal set of hosts running on port 80.
import java.io.IOException;
import javax.servlet.ServletException;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.apache.catalina.valves.ValveBase;public class NetscalerSSLValve extends ValveBase {
@Override
public void invoke(Request req, Response resp) throws IOException, ServletException {
if ("On".equals(req.getHeader("Front-End-Https"))) {
req.setSecure(true);
req.getCoyoteRequest().scheme().setString("https");
req.getCoyoteRequest().setServerPort(443);
}
if ( getNext() != null ) {
getNext().invoke(req, resp);
}
}
}
1 min read
Speaking at "Meet the Containers", "Shindig 101" and "OpenSocial Fireside Chat".
All at Moscone West, check it out!
4 min read
"Two Characters Sets? Seems like plenty!"
So I've been pushing Java to it's limits lately and finding some real nasty concurrency issues inside the JRE code itself. Here's one particulary ugly one -- we had 700 threads stuck here:
1 min read
Why am I so tired?
Been working hard to implement features decribed here..:
hi5 Launches New Music Applications By iLike and Qloud
No more music royalties for hi5. Cost center is now a profit center...