Archive for the ‘Tech’ Category

The bottom half

Saturday, August 24th, 2013 | Tech, Thoughts

There is a saying, “don’t read the bottom half of the internet”. It refers to the fact that while you might get polite and intelligent content at the top of the page, you’re unlikely to once the comments section opens up.

This is a good lesson for live. People are dicks on the internet.

A lot of people don’t seem to have spent much time on the internet though, and are then surprised by the unfriendly comments that they find. Even Richard Dawkins didn’t know until 2010.

But some people think they are unfairly targeted because of who they are. Some people may be of course, but I think it’s important to remember that regardless of who you are, the background hate of the internet generally runs pretty high. Here are some of the comments I’ve picked off my YouTube channel:

All those chicks have no taste though man. SO FUCK U.

There is nothing ‘cool’ about a camera which does a good job of showcasing that face.

what a tard you are

Ur an Idiot Get urFuckin Fact Straight u White Retard

do ur homework u white piece of shit.

umm you looked kinda like you on drugs but yeah i loved that movie and you did a good job

You’re on the right track, kid, but you need to get your hair washed and trimmed.

im reckoning by your dodgy mullet that this is common in your family?? you wouldnt be out of place deep deep south playing a banjo

Fucking idiot.

xmeltrut  ur fucking a dick ibet zain buksh whould fuck ur ugly face ur video sucks and u look like a girl u dickhead

they did die ur fucking dumb

oi u fuck face they did die

Damn you’re ugly.

You look like Trevor from the Trailer Park Boys….

fuck all athiets i hope you will enjoy getting your maginas ripped off in hell death to the athiests

Lmfao, get a gf. Shag her and get a life

you look like a monkey

this guy in the video is an idiot

Lose the drug culture look and maybe i’ll watch the video next time…….Nobody will take you seriously looking like that.

peado’s say i will touch you and you will be healed

haha killing jews lol kill six million jews and burn there corpses lmao

You’re probably thinking that I’ve picked off the worst, most abusive comments. But I haven’t. In fact, the majority of the comments on my YouTube account have been deleted, because the accounts they were posted from have since been flagged as abusive or threatening. What you see above is actually the nicer disparaging comments that get posted.

The take home message is that everyone gets verbally abused on the internet. It’s sad; I wish it wasn’t the case. But for the moment, it is. And much like an insect bite, if you scratch at it, chances are it will get worse.

Here is an inaccurate meme to help you remember it.

dont-feed

It’s inaccurate because posting abusive messages online is not trolling. It’s just being a dick. But that is a different rant.

PMA_Message not found in phpMyAdmin

Thursday, May 2nd, 2013 | Programming, Tech

You may get an error similar to the following in phpMyAdmin.

PHP Fatal error: Class ‘PMA_Message’ not found in /usr/share/phpMyAdmin/libraries/Message.class.php

This is caused when Apache is unable to create a session – perhaps because of a permissions issue on the session folder, or perhaps because you have run out of disk space.

SSH tunnel command just logs you in

Friday, April 26th, 2013 | Tech

If you’re trying to create an SSH tunnel, you may find that running the command just logs you into the remote server.

ssh -L 27017:somehost:27017 user@examplehost.net

To solve this, you need to use the -N flag.

ssh -L 27017:somehost:27017 -N user@examplehost.net

This will then just set up the forwarding, and not run the command.

Error resolving hostname on SSH tunnels

Saturday, April 20th, 2013 | Tech

Lets say you are trying to create an SSH tunnel.

ssh -L 27017:somehost:27017 you@examplehost.net

You may get the following error message.

ssh: Error resolving hostname \342\200\223L: nodename nor servname provided, or not known

This is caused by using the wrong kind of minus symbol. If you have copied and pasted the command from somewhere, this is probably the case. This is easy to fix – simply paste the command into your terminal, then go through it, remove the existing minus symbol and put a new – in.

Synergy disappeared from Ubuntu desktop

Sunday, April 14th, 2013 | Tech

If you’re using Synergy for mouse and keyboard sharing, you may find that it suddenly disappears from Ubuntu. It will show up as installed in the Software Centre, but you won’t be able to remove or reinstall it, and there will be no icon on the unity bar.

If you try running it from the command line using the following command.

synergys

You may get an error similar to the following.

no configuration file found

The easiest way to solve this is to download the .deb package from the Synergy website, then open up a terminal and install it from there.

cd /home/your-name/Downloads
sudo dpkg -i synergy-1.4.10-Linux-x86_64.deb

This will then reinstall it and you should then be able to find the programme listed in the dash home.

Speed up really slow SSH connections

Monday, April 8th, 2013 | Tech

Sometimes, you might find that when you try and SSH into another server, it seems to hang, but then after around 30 seconds or so, will suddenly start working again. You can diagnose where it is stopping by using verbose mode.

ssh -vv user@example-server

If you find it is to do with GSS API, you can disable this in your SSH configuration.

cd ~/.ssh/
vim config

Add the following to it.

GSSAPIAuthentication no

This should then speed the login up.

Guest network on Linksys E1000 router

Tuesday, April 2nd, 2013 | Tech

If you’re using a Cisco Linksys E1000 router, you may have noticed that it creates a guest network – but there is no sign of how to control it or change it through the web interface!

Strangely, that is how it is – Linksys seem to have omitted any kind of control over it from the web interface. The only way you can modify it is to run the Cisco Connect software on your computer.

Launching this will bring up a control panel, of which the bottom left option will be “guest network” and from here, you can make changes.

It also appears, from the list of available wifi networks, that the guest network is not password protected. This isn’t the case if you have set a password, but it does not use the standard WPA or WEP encryption. Instead, it allows clients to connect, but them prompts them for a password before allowing them internet access.

Screen resolution drop on Ubuntu

Wednesday, March 27th, 2013 | Life, Tech

If you find your screen resolution suddenly drops too 800×600 on Ubuntu 12.04, the following set of commands may help you resolve it. First, stop the graphical environment.

sudo service lightdm stop

Now remove all the Nvidia packages and reboot the system.

sudo apt-get purge nvidia*
sudo reboot

This will reset you to the default video driver. You now need to reinstall the Nvidia driver, which you can do by going to System settings > Additional Drivers and selecting the top option with the following name.

NVIDIA binary Xorg driver, kernal module and VPDAU library

Select this and click activate. Now reboot your system again and the Nvidia drivers will be re-installed and hopefully working again.

Gnome fails to start after switching Nvidia drivers on Ubuntu

Thursday, March 21st, 2013 | Life, Tech

If you’ve tried to switch to a different Nvidia graphics driver on Ubuntu and suddenly found that X / Gnome will no longer load and all you have is a command line, you can fix it by switching back to the original driver.

jockey-text -l
jockey-text -e xorg:nvidia_current

These commands will show you a list of drivers available, and then activate the standard Nvidia driver.

Selenium Cannot assign requested address

Friday, March 15th, 2013 | Life, Tech

If you’re using BDD (Cucumber or Behat for example) with Selenium, you may find you occasionally get an error where the framework is unable to communicate with the Selenium server.

Failed to connect to 127.0.0.1: Cannot assign requested address

This seems to occur when there are two many requests going to Selenium. This can be alleviated be rewriting your tests to ensure you are now sending too many requests at once.

For example, if you’re using Behat/Mink, then avoid using the wait() function on the Session object, as this can cause excessive requests to be sent to Selenium.