Archive for July, 2010
Aliasing Loopback on OSX
aka…how to make it possible to use 127.0.0.2, 127.0.0.3, … on your Mac. This post comes from a need I had to start cassandra in multiple instances on a single Mac (testing a cluster configuration out), and failing to do so. Previously on Linux, I had configured multiple instances to bind to 127.0.0.1 and 127.0.0.2 [...]
July 26, 2010
В·
polesen В·
No Comments
Tags: cassandra, mac, OSX В· Posted in: Operating Systems
A Non-Blocking Process.waitFor()
When calling java.lang.Process.waitFor() the call will block (wait()) until the process actually exits. The waitFor() call is blocking, which is pretty irritating sometimes, for instance when #&%€! wine decides to hang itself, hereby stealing my tomcat execute threads and database connections in production Well, here’s a quick and dirty solution to creating a non-blocking waitFor() [...]
July 16, 2010
В·
polesen В·
One Comment
Tags: Java В· Posted in: Programming
