MSVCR110.dll errors when running PHP

If you attempt to run php.exe on Windows you may get an error involving the following DLL.

MSVCR110.dll

The resolution to this is to install “Visual C++ Redistributable for Visual Studio 2012 Update 4”. Note that you should install the 32-bit version even if you are using a 64-bit operating system!

This can easily catch people out first time, however you can just install the 32-bit version over the top.

cPanel certificates expiring

If you use self-signed certificates on cPanel and WHM, they will still expire each year. You may find yourself getting an email such as:

The SSL certificate for ftp on host.example.com will expire in less than 30 days.

Your server’s SSL certificate for ftp will expire in less than 30 days. You need to install a new certificate as soon as possible. You can install a new certificate using WHM’s “Manage Service SSL Certificates” interface: https://host.example.com:2087/scripts2/manageservicecrts (Main >> Service Configuration >> Manage Service SSL Certificates).

To resolve this, click the link as suggested by the email. Then, next to each service, click “Reset Certificate”. This will generate a fresh certificate and automatically install it.

Resizing Coda’s file dialog on OS X Yosemite

Google Chrome is not the only application struggling with OS X Yosemite’s file dialog. When saving files in Coda, the dialog will continually fall off the bottom of the screen.

Currently the only known workaround for the issue is to switch to the simple view by clicking the up arrow next to the file name box, and then click it again to re-expand the dialog and then it will be probably sized again. However, you need to do this every time you save a file.

Resizing Google Chrome’s file dialog on OS X Yosemite

There is a bug in Apple’s OS X Yosemite in which the file dialog boxes grow larger than the screen. However, it does not seem Apple are in a rush to fix this.

The workaround is different for each application but for Google Chrome you can temporary solve it by running the following commands.

defaults delete com.google.Chrome NSNavPanelExpandedSizeForSaveMode
defaults delete com.google.Chrome NSNavPanelExpandedSizeForOpenMode

The box will continue to grow each time you use it, so you will have to run these commands again every time the box gets too big again.

Error resolving hostname on SSH tunnels

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

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

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

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.