Why Tor is slow
I tried the Tor browser today, and was amazed at how slow it was. As Tor’s user base has grown, the performance of the Tor network has suffered. This document describes the current understanding of why Tor is slow, and…
I tried the Tor browser today, and was amazed at how slow it was. As Tor’s user base has grown, the performance of the Tor network has suffered. This document describes the current understanding of why Tor is slow, and…
The recommended practice is to have different passwords on different websites. But how do you remember all those passwords without storing them somewhere? The tricks is, you don’t. You remember a single strong password, and use a mechanism to generate…
Note: Since writing this post, I’ve learned about the fileinput module, which turns most of the following into a oneliner: import fileinput for line in fileinput.input(): process(line)
In this post I’ll compare the running time of reading uncompressed and compressed files from disc. I’ll run a test using two files, data.txt (858M) and data.txt.gz (83M), that have the same content. About cat and zcat The well-known command…
Here is a map application that illustrates very well the different tile schemes used (TMS, QuadTree, Google Maps):
Online documentation for GDAL/OGR Python is sparse. Here I show some recommended ways of learning more about GDAL/OGR in Python. Using Python interpreter You can learn about GDAL and OGR from inside the Python interpreter. Start python interpreter: $ python…
GDAL is not very well documented, and a complete Python API documentation site is not something I’ve found. So here are the best tutorials I’ve found so far for GDAL + Python. GDAL Python samples on osgeo.org
Simple CSV file import You have a CSV file called “data.csv”. It has a header line, and is delimited using “;”. You want to import it into Postgres and a table called “your_table”: Create the database table. Set column-types so…
I was drinking a bootle of water, while listening to a group of people having a debate. As the water level sunk, I noticed something. In the beginning the bottle would resonate/vibrate when the people with higher pitch voices talked.…
Note: The word “easy” is relative to the other solutions I found for doing 3D graphics in LaTeX. The following template is adapted from the annotated 3d box example. % Template for drawing with tikz 3D package \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{3d}…