August 2011
16 posts
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!
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...
3 tags
A good hockey player plays where the puck is. A great hockey player plays where...
– Wayne Gretzky
3 tags
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...
6 tags
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...
3 tags
1 tag
1 tag
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.
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!
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…
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...
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… :(