Shortening URLS
October 12, 2009
Just added a new URL shortener … g2u.ca, you can also get counters for shortened URLs and password protect.
New site added
August 22, 2009
For places to stay in Australia … shameless self promotion, sorry.
Get WIFI status from command line on Max / OSX
August 17, 2009
call
airport -s
or use
airport -I to get current stats
from
/System/Library/PrivateFrameworks/Apple80211.framework/Resources
New version of pgAdmin
August 17, 2009
Never been a great fan of this tool, compared to the MySQL equivilents … seems to have a number of issues with threading and the application hanging during long queries. Saying that, V1.10 is out, so worth taking a look …
ffmpeg4iphone
July 29, 2009
Handy google code project -
Drawing thick lines with dot projection …
July 21, 2009
public void drawThickLine(Graphics g, int x1, int y1, int x2, int y2, int thickness) {
// The thick line is in fact a filled polygon
int dX = x2 - x1;
int dY = y2 - y1;
// line length
double lineLength = Math.sqrt(dX * dX + dY * dY);
double scale = (double)(thickness) / (2 * lineLength);
// The x,y increments from an endpoint needed to create a rectangle...
double ddx = -scale * (double)dY;
double ddy = scale * (double)dX;
ddx += (ddx > 0) ? 0.5 : -0.5;
ddy += (ddy > 0) ? 0.5 : -0.5;
int dx = (int)ddx;
int dy = (int)ddy;
// Now we can compute the corner points...
int xPoints[] = new int[4];
int yPoints[] = new int[4];
xPoints[0] = x1 + dx; yPoints[0] = y1 + dy;
xPoints[1] = x1 - dx; yPoints[1] = y1 - dy;
xPoints[2] = x2 - dx; yPoints[2] = y2 - dy;
xPoints[3] = x2 + dx; yPoints[3] = y2 + dy;
g.drawFilledPath(xPoints, yPoints, null, null);
}
Best VPS
July 12, 2009
Free advertising
but heck, I like these guys. I’m using 4 linodes now and find them to be the most reliable VPS out there. They have a great admin tool and have a bunch of extras like a DNS API etc.
Normally I don’t promote other people ( wow, that sounds back ) … but if ya do a good job then what the hey