Tuesday, July 3, 2012

I finally resolved my RT2800PCI Wifi Disconnecting Issue in Ubuntu 12.04 ...

.... by simply following this post:

http://ubuntuforums.org/showpost.php?p=11858549&postcount=9

Much happiness after months of my net connection dropping every few minutes.

Luckily, I use my Ubuntu partition for mostly dev work, so rarely needed much internetting... This most likely means that I'll never code again, now that I have free access to youtube whenever I want it :'(

Thursday, June 7, 2012

I figured out how to have `make` stretch my CPU's 8 cores!

While trying to build OpenCV from scratch, I continuously ran into compile errors.

These would happen ~5 minutes (25%) into the make process.

Using an i7 CPU, I wondered why the compilation was taking so long for a relatively small project. I checked the output of "top" and noticed that the load was hovering around 1, which for an 8 core processor is nothing short of lazy.

A short trip to google told me that the following will let me tell "make" how many cores I want it to use.

make -jX

e.g. make -j8 allowed me to use all 8 cores and therefore cut the compile time accordingly.

SCORE :D

Wednesday, May 16, 2012

Using Vim Tabs Instead of Multiple Vim Instances

... I found out that you can open multiple files in tabs with one instance of vim, instead of across multiple instances of vims in different terminal windows!

vim -p *.py
Will open all python source files in the current directory in tabs inside vim.

gt and gT will move forwards and backwards in your tab list.

If you want to create a new tab with vim already running, use the following command:
:tabnew
Yeow!

Slow SSH Password Prompt

... I finally solved a small, but annoying issue I'd been having with SSH. I think it'd been happening since our newer VMs started using Centos6 instead of 5.

It was taking the guts of 10 seconds for the password prompt to appear whenever I  tried to SSH into the server.

I found that this was caused by some sort of reverse DNS lookup being done on my host.

Arsebiscuits to that!

Make sure that GSSAPIAuthentication is set to no as follows in /etc/ssh/sshd_config:


GSSAPIAuthentication no
Then restart your sshd service.
... I am dying.

Finished work, went to the pub for one and then on to a mate's gaff for what turned into "The Ryan Dunn Drinking Game". This simple affair involved drinking every time Ryan Dunn appeared in shot during Jack Ass 3 and lead to extreme inebriation in a very short space of time.