Related Posts
How to convert Android GPS coordinates into X,Y coordinates.
Without further math bullshit about all the conversion systems, when you have a bunch of Android GPS coordinates (which are compatible with Google Earth and Google Maps), and you want to draw them on a finite 2D plane, here’s what worked for me. [java] int x = (int) ((PLANE_WIDTH/360.0) * (180 + lon)); int y […]
jQuery tag wrapping
Many times you’ll be working on something in HTML that could be long and repetitive, and then for some reason you need to edit the entire thing to wrap each of the tags on some other tags, a common example would be to link many elements. Take this example, there’s a bunch of photos, they’re […]
Script to automatically detect and ban malicious IPs that try to brute force SSH accounts
We’ve noticed that most of our servers have been under heavy attack from random IP addresses to break via SSH. With the help of the last post on how to ban an IP, and the following python script, you’ll be able to have a cronjob that runs once or twice a day and automagically bans […]