Many times I find myself needing to keep track of a host on a DHCP’d network where its IP address is subject to change. Here are a collection of command line methods for discovering your IP using both curl/http and dns lookups. HTTP based lookups curl icanhazip.com curl -s 'http://checkip.dyndns.org' […]
hosting
I’ve been setting up a Cuckoo cluster and the most tedious part of that involves configuring the guest VMs. To make a long story short, I needed to manually set the IP address of all my guest VMs. At first I started doing this the visual way by clicking through […]
Manhandling windows with applescript
Here is a MongoDB script for presenting index information in a more concise way than getIndexes() provides. This script also presents an index’s total size along with a breakdown of its size on all of the shards. //mongo --eval="var collection='file';" var ret = db[collection].getIndexes().map(function(i){ return {"key":i.key, "name":i.name}; }); var o […]
Getting useful index information from MongoDB
Recently I found the need to create an init.d script and since I had a hard time finding an example elsewhere1, here’s the overly simple script I came up with to get the job done: #!/bin/bash # myapp daemon # chkconfig: 345 20 80 # description: myapp daemon # processname: […]
Simple init.d script template
Here is a simple script I’ve found to be quite helpful for monitoring the status of background index builds across shards on a system: var currentOps = db.currentOp(); if(!currentOps.inprog || currentOps.inprog.length < 1) { print("No operations in progress"); } else { for(o in currentOps.inprog) { var op = currentOps.inprog[o]; if(op.msg […]
MongoDB script to check the status of background index builds
Here is a great video I found on Youtube on displaying lots of markers (more than a couple hundred points) through tile layers. He makes some great points, but I like my raphael overlay system I used in the church heatmap project.
Simulating Markers with Tile Layers
Recently I’ve been playing with a few new technologies. Some are new to me while most are simply new. My base project to use these technologies is a heatmap visualization of churches in Georgia. While heatmaps in themselves aren’t exactly exciting, having the ability to map more than 10,000 data […]
Fun with heatmaps
We had an excellent 2010 and I want to share with you some of the highlights: We only had about 10 hours of downtime. This means your website was up over 99.99% of the time in 2010. The utilization of our server has remained steady at under 10%. This means […]
New year, new developments at Werx Limited
Learning CSS can be a bit daunting if you’ve never encountered it before. Likewise, if you’ve only had limited exposure to CSS, the various ways browsers implement various aspects of the CSS standard (or make up their own) can leave you with the impression that it is all a giant […]
A Cascading Style Sheets (CSS) Beginner’s Tutorial
I get asked many times from friends and family what the best storage solution is for ensuring data they find to be critical is not lost or corrupted. Whatever storage solution you decide to use it needs to be unobtrusive and largely automated because, if not, then you’ll find out […]