Deploying your project with Envoyer on cPanel hosting

With Envoyer you can easily deploy your PHP projects without any downtime. You can connect your Github, BitBucket or any other git source and let Envoyer deploy your application to one or more servers. Although Envoyer is made by Taylor Otwell, the developer who created Laravel, it’s not restricted to Laravel. You can deploy any PHP project and is pretty affordable too.

Continue reading “Deploying your project with Envoyer on cPanel hosting”

Gnome 3: Desktop sharing arrow key behaviour

In Gnome 3 there’s an option available to activate desktop sharing, which behind the dialog is just a VNC server. This option can be found under System Tools -> Preferences -> Desktop Sharing. In the dialog itself you can allow viewing and/or controlling of the desktop.

desktop-sharing

Unfortunately I encountered a problem while connected. The arrow keys where behaving different, the up en down key maximized or minimized the window. After a little search and some attempts to fix this behaviour, I found out the keys did behave as expected when I hit the super (Windows) key at the same time. That was the key for solving this issue.

Continue reading “Gnome 3: Desktop sharing arrow key behaviour”

Disabling or changing CPU frequency scaling

The CPU of your pc probably doesn’t need to use it’s full power the whole time. By down scaling the frequency of the CPU, it consumes less power and as a result of that, the CPU can be cooled with less airflow which results in a more quiet environment. CPU frequency scaling is available in the Linux kernel and is called cpufreq. Almost every new Linux system will have the CPU frequency scaling automatically activated. In some cases this scaling can be annoying because the system still needs some (although, very little amount) time to change the CPU frequency. In linux you are able to control this scaling and even set the CPU to a specific frequency.

Continue reading “Disabling or changing CPU frequency scaling”

DirectAdmin: apt libz error

When updating Debian Squeeze on a VPS with DirectAdmin, the following error occurred:

/usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
/usr/lib/apt/methods/http: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libapt-pkg.so.4.10)

This error is easy to fix by pointing the symlink to the correct file:

rm /usr/local/lib/libz.so.1.2.3
ln -sf /usr/lib/libz.so.1.2.3.4 /usr/local/lib/libz.so.1

Minecraft server 1.7+ memory leak caused by having the wrong java version

Yesterday I encountered a problem with the minecraft server version 1.7.2 and 1.7.4. When a specific user was logging in, the memory use of the minecraft service raised to 100% of the available memory and the server started swapping. This causes a very slow responding server and all the players where disconnected because of a timeout. Every time this users logs in this problem occurs. After some searching I found out it has something to do with the installed java version.

Continue reading “Minecraft server 1.7+ memory leak caused by having the wrong java version”