Archive for the ‘Life’ Category

Changing your timezone in Debian

Tuesday, May 15th, 2012 | Life, Tech

If you want to change your timezone on Debian, use the following command.

dpkg-reconfigure tzdata

As one sun rises, another one sets

Sunday, May 13th, 2012 | Life

That’s life on a planet in a binary star system.

Having pushed back my leaving do at Buzz Sports to accommodate the other four people who were leaving, it turned out it handed directly on top of the first social event of the new organisation I’m now consulting with.

I know what you’re thinking – the obvious thing to do would have been to constantly make excuses about going to the bathroom and then rapidly running between venues pretending I was simultaneously attending both events in some kind of sitcom setup.

Unfortunately, I eventually opted for something far more pedestrian. Having worked round Sandinista, The Lounge, Mojo’s, Fibre, Revolution and Call Lane Social with Gooroo, I headed over to Maven to find the Buzz crew. By this point (11pm) there were only two of them left standing – Simundo and Ian.

As it turns out, Maven is quite a find (and number two in the best kept secrets in the UK, according to Ian). They don’t seem to have cocktail menus – I just went up to the bar and told them what ingredients I liked and two minutes later I was sipping on a very nice raspberry based long drink. Delicious. Further investigation is definitely required.

Sous le Nez

Friday, May 11th, 2012 | Food, Life, Reviews

It’s not often that I get kicked out of a restaurant.

But when you’re taking advantage of the early bird special and you then proceed to sit there for several hours, eventually they start moaning about having other bookings. You could blame me for turning up 7 minutes late, but I could tell from the waiter’s eyes that they were really saying “your mother is getting a little too lairy after that half a bottle of wine, sir.”

We were out celebrating my dad’s birthday and enjoyed a night of great conversation about how you won’t be around forever, so it’s important to spend your life’s savings before you die, while having picked the restaurant specifically because it represented a good compromise between great food and not having to pay Blackhouse prices.

I was very interested to try the pigeon available on the starters menu, but was somewhat worried I wouldn’t like it. Therefore, I did the only sensible thing to do – I made Elina get the pigeon and tried some of hers. Turns out, a pigeon is pretty delicious.

Of course, normally in these situations you would offer to pay, but having recently left my job, and having had our conversation earlier about making the most of your savings before your time is up, I thought it only fair to let me dad pick up the bill.

You can tell Sous le Nez is an authenticate French restaurant because they say everything in perfect English, but then add the word “monsieur” onto the end. So it’s a great to enjoy French food, particularly as if you actually go to France, you just get Greek food.

Manually update Awstats on cPanel

Wednesday, May 9th, 2012 | Life, Tech

Awstats is updated by cPanel once per day, but if you want to force a manual update, you can do so with the following command.

/usr/bin/perl /usr/local/cpanel/3rdparty/bin/awstats.pl -config=example.com -update

April 2012 Wendy House

Monday, May 7th, 2012 | Friends, Life

Sometimes, you must have to be bold and say “screw it, I’m going to Wendy House in a really outrageous outfit, no matter how much people stare.

That’s when I went in my Panic! At the Disco t-shirt.

Changing your SSH port

Thursday, May 3rd, 2012 | Life, Tech

If you want to change your SSH port to something a little less obvious, it’s easy to do. It’s debatable how much security it actually gives you, but it will certainly make you feel safer, and that is probably the most important thing.

pico /etc/ssh/sshd_config

I’m using pico in this example, but vim will work just as well. You should find a line which is commented out, specifying that the port is 22. This doesn’t need to be uncommented normally, as it defaults to port 22.

#Port 22

Just uncomment this and put a new port number in.

Port 8473

Now save the file and exit. Finally, restart SSH for it to take affect.

/etc/rc.d/init.d/sshd restart

Don’t forget, next time you SSH in you will need to use the new port number!

ssh -p 8473 hostname

Mind. Blown.

Wednesday, May 2nd, 2012 | Life

Mind fuck diagram

After I had finished explaining all this, he looked at me and said “that may be the case sir. But that’s still no excuse for doing 37 in a 30 zone.”

Worth a try, anyway.

Table is full MySQL error

Saturday, April 21st, 2012 | Life, Tech

If you’re using MySQL’s MEMORY table storage engine for anything intensive, you may run into the following error.

Table is full

This means what it says – memory tables have a fixed size they are allowed to me, 16mb by default, and once they reach this size, MySQL will prevent you from inserting any more data, to prevent the table from using too much memory.

If you run into this error, you can either increase the size in MySQL’s configuration, or you can switch to a disk based table engine such as Archive or InnoDB.

Jet2.com refund

Wednesday, April 18th, 2012 | Life

In February, I went to Paris.

However, despite having paid for reserved seating on my flight out there, we ended up getting moved to a different part of the plane to balance out the weight. It didn’t exactly fill me with confidence that a jet airliner could be so fragility held in the sky that someone sitting in the wrong place could bring it down, but I went with it.

That said, I was rather aggrieved that I had paid for reserved seating and not been given it. So, on my return I wrote a letter of complaint to Jet2 as they don’t seem to have email and I would need to take a personal loan out to fund phoning their premium rate customer service line. So I went old school and wrote a letter.

I’m pleased to say that a month later I have received a letter back from them saying that they will be refunding the money I paid for allocated seating, within the next two weeks.

Using locate to search for files from the terminal

Sunday, April 15th, 2012 | Life, Tech

Need to locate a specific file somewhere on your system? Luckily, there is an appropriated named search tool which you can use to do that. It’s called locate and it’s very similar to file search in Windows file manager.

Not all Linux installs come with locate, so you may need to install it.

yum install locate

Also, the first time you run it, it will need to build the database, so that will take a little longer. But once it is up and running, it is pretty fast. Simply use the command followed by a file name, or even just part of a file name, to get a list of all the files on your system that match.

locate httpd.conf