Archive for the ‘Technical’ Category

OSX PPTP: Only route VPN traffic to VPN

No Comments »

So my new macbook air ‘out of the box’ wasn’t able to connect to one of my data centres which requires connection via PPTP VPN.

This was very annoying, as a mobile solution for accessing the network was the macbook Air’s primary job in life.  Few googles later I found the solution.  The OSX vpn client doesn’t automatically create the relevant routes.  There is an option to push all traffic through the VPN, or none.  What if you just want to push relevant traffic to the VPN? ie. to access intranet or internal VPN services?

The steps I took: Read the rest of this entry »


Microsoft Windows Free Antivirus

No Comments »

Just keeping and sharing this link with everyone – if your like me you have never really had a need for antivirus – however I’m developing some funky software which may open malicious websites accidentally – so putting this on as a free, non-bloat antivirus/spyware option.

http://windows.microsoft.com/en-GB/windows/products/security-essentials


Plesk upgrade from PHP 5.1 to latest

No Comments »

Its quite simple actually – but I had to google for ages trying to find the answer.

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
yum upgrade php* mysql*

Bear in mind this will do a server upgrade – but seeing as this is a webserver, its probably best to have the latest versions for everything in terms of less security vulnerabilities.

EDIT> More things I needed to document. Incresing the amount of IMAP connections allowed as Thunderbird was erroring out.

Read the rest of this entry »


JQuery – Traversing the DOM

No Comments »

I was writing a little script to make my Click to Call product talk nicely with JQuery and encountered many problems – so I thought I would put some of the problems and my solutions to them.

Firstly, the goal was to create a ‘dynamic’ version of the click to call service – which previously has been hardcoded using element ID’s with remote javascript.
So the first goal was removing all that and using classes and relying on the DOM to make sure I had the correct elements selected.

The Click to Call system uses a timer with a curl request to the switch to monitor progress of the call – so I needed to make sure I had state and kept track of which ‘click to call’ form was being used.

Read the rest of this entry »


Remote Backup Database and Directories

No Comments »

Here are some nifty commands to backup a directory:

ssh user@host "tar zcf - /the/dir/" > filename.tgz

And then to backup a database
Read the rest of this entry »