Category Archives: Linux

Python Shell Commands, /bin/sh: Syntax error

This semester, Derek and I have been doing some work on Postgres’ buffer management system for my CSC443 Database Systems Technology course.  Derek, wrote a nice little Python script that parses various Postgres outputs and does a bit of math on it. However, when I tried to run his script on my machine, I got an [...]
Also posted in Tech, python | Tagged , , , , , , , , | Leave a comment

Speed Reader

I spent a small portion of my free time this week working on a small Java application that would help me do a bit of speed reading. For those who are unfamiliar with the concept, you can read more about it on the wiki article here.  The basic idea is to increase the speed at which [...]
Also posted in Java, Mac, Tech, Win32 | Tagged , , , , , , , | Leave a comment

Drawing Strings in Swing using Graphics2D

I’ve started a new project again, and this time I’m working on a speed-reader application using Java (more details on that later) One of the problems that I’ve always had with Java Swing UIs is figuring out how to directly draw centered Strings while inside of a paintComponent(Graphics g) method of some JComponent So let’s say you’re [...]
Also posted in Java, Mac, Tech, Win32 | Tagged , , , , , , , , , | Leave a comment

Unbricking Your Router

I live in a house where I’m the resident tech guru, so its pretty much my responsibility to fix any technical glitch regardless of who actually caused them. Last Friday, one of my family members got the bright idea to do a firmware update on our router…too bad he used the wrong firmware version for our [...]
Also posted in Mac, Tech, Win32 | Tagged , , , , , | Leave a comment

Flush Your DNS for CSLab Connections

Computer Science students at the University of Toronto are more than familiar with this problem.  You want to use the cslab wifi network, but you accidental opened Firefox before you ssh-ed in to bypass the firewall.  Great, now you don’t have access to you homepage (which is really inconvenient if Google is your homepage) or [...]
Also posted in Mac, Tech, UofT, Win32 | Tagged , , , , , | 1 Comment