Category Archives: Uncategorized

mitmproxy and ec2-api-tools

Here’s how you can mitmproxy on OS X to see which URLs the ec2-api-tools are querying against. 1. Install mitmproxy: sudo pip install mitmproxy Start it up: mitmproxy -p 8080 Configure the Java keystore to trust the mitmproxy CA certificate: … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

mod_auth_openid on OSX

I wanted to play with mod_auth_openid on my Macbook Pro. OS X ships with Apache installed, so all I needed to do was build the module and edit the Apache configuration. I wasn’t able to build mod_auth_openid from the git … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Networking Heisenbugs

While debugging an issue with OpenStack and floating ips, I ran into a strange issue where running tcpdump on the bridge interface on the network controller would cause packets to be forwarded successfully to a compute node, but if I … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

XPath and Chrome dev tools

Here’s a simple way to get the XPath of an element on an HTML page in page. Right-click on the element on the web page, choose “Inspect Element” from the context-menu Right-click on the highlighted HTML line that appears in … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Fun with Windows TCP/IP debugging

Today I learned… In Windows, if a process listens on a port, spawns a child, then dies, then no other process can listen on that port until all of the children have been terminated. So, if you were running, say, … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Test, test

Test, test Testing out the new Byword functionality of posting to WordPress.

Posted in Uncategorized | Leave a comment

It’s a one-line function that returns a constant. What could go wrong?

Here’s a function: def get_foo(): return None Simple, right? I don’t need to unit test that. Except I did, because that method was part of a mixin: class MyMixin(object): def get_foo(): return None And that mixin was attached to a … Continue reading

Posted in Uncategorized | Leave a comment