August 2011
16 posts
Aug 30th
1,542 notes
4 tags
DEEENCH: “I probably don’t talk to anyone more... →
cuprous: “I probably don’t talk to anyone more than Alex [Song]; he’s a great person,” “Obviously sometimes he gets a bit funny and goes ‘Oh, Frimpong you’ve come to take over my place, you don’t want my kids to eat, how am I going to get money for them?’ and stuff like that. But he’s a great player.’ … Song is pretty funny too!
Aug 24th
14 notes
3 tags
MySQL Creating user rookie mistakes
I created a user ‘monty’ in a MySQL DB using the following command CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass'; Then tried to connect to it from the local computer: mysql -u monty -password=some_pass It never worked… I spent an hour trying to figure it out, the answer was on the page I was reading. It is necessary to have both accounts for monty to be able to...
Aug 23rd
28 notes
3 tags
“A good hockey player plays where the puck is. A great hockey player plays where...”
– Wayne Gretzky
Aug 22nd
3 tags
Aug 15th
3 notes
2 tags
Allowing SSH via private keys for new users
Create a new user: sudo useradd ‘username’ Set the password: sudo passwd ‘username’ Login to that user: su - ‘username’ Create folder ~/.ssh: mkdir ~/.ssh chmod that folder to 700: chmod 700 ~/.ssh Generate public/private key: ssh-keygen (you don’t have to put a password, but should for better protection) cat the contents of id_rsa.pub to...
Aug 13th
2 notes
6 tags
Aug 12th
11 notes
3 tags
Adding a keyboard shortcut for System Monitor in...
Being accustomed to Windows, I usually press Ctrl-Shift-Esc to open up the task manager when I want to see system information like memory usage and cpu usage. I was a bit surprised that the same key combination did nothing in Ubuntu. So I created a keyboard shortcut to open the gnome system monitor. I am doing these steps in Ubuntu 11.04 Open application ‘Keyboard Shortcuts’ Click...
Aug 6th
2 notes
3 tags
Aug 6th
2 notes
1 tag
Aug 6th
1 note
1 tag
Aug 6th
44,934 notes
2 tags
Installing mysql-python in a virtualenv →
I ran into a problem where django couldn’t find the python bindings for mysql, so I tried to pip install mysql-python, but it gave this weird error. Luckily for me, I found this blog post that showed me what to do to resolve the issue.
Aug 5th
6 notes
1 tag
Structure and Interpretation of Computer Programs →
I never knew that this book was freely available for reading online. I must read a few pages a day!
Aug 4th
2 tags
/home/vk/misc: SICP is Under Attack →
vedantk: It’s official. UC Berkeley will soon join MIT and several other universities in abandoning Structure and Interpretation of Computer Programs, widely regarded as one of the best textbooks in computer science, in favor of alternative material covering Python. This is a mistake. SICP is…
Aug 4th
65 notes
4 tags
Do I need Windows anymore?
Ever since I got my hands on a free EC2 instance, I got a lot of exposure to Linux. I would ssh in to try things out, like deploying nginx and gunicorn, using vim to configure my settings, and writing code to get django up and running. I scoured the web looking to ‘pimp’ out my vim editor, found some excellent blog post such as this one from John Anderson. Trying to get his...
Aug 2nd
9 notes
1 tag
Rain
My fiancée and I went out for a quick walk to the grocery store. As we were about to pay a huge storm broke out! It was carrying the chairs outside to the parking lots! Now we are at a coffee shop waiting the storm out, unlucky for us, the coffee is crap… :(
Aug 1st
1 note