Nice and simple. In your CSS: img.center { display: block; margin-left: auto; margin-right: auto; } And then in your HTML: Courtesy of about tech
Center an image with CSS
ClickHandler for AnchorElement in GWT
ClickHandlers can only be added to Anchors in GWT, and not AnchorElements. The solution however is to wrap the AnchorElement in an Anchor and add the ClickHandler to the Anchor:…
spotify: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory – SOLVED Ubuntu 15.10
A minor issue with Spotify on Ubuntu 15.10. First install Spotify on Ubuntu 15.10 as per normal, and then execute the following commands: wget http://security.debian.org/debian-security/pool/updates/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u3_amd64.deb And then: sudo dpkg -i…
Screencasting in Ubuntu
I have tried a good number of screencasting programs and neat little program which records good quality video and voice is Kazam. It can be downloaded here:
Move Android apps to SD card
To move apps from your internal storage to external SD card storage, follow these steps: Go to settings, and click on “Application manager” Select the app to be moved from…
Fixing Warning: require_once(Cache/Lite.php): failed to open stream Joomla SOLVED
When moving Joomla from one server to another you might come across this nasty little error. To solve, simply edit configuration.php in your www or public_html directory and locate <code…
File and folder permissions Linux
You can execute the following commands to modify file/folder permissions and ownership on Linux: Change permissions chmod Change ownership chown Imagine a folder called *Books* on the Desktop to which…
Creating a desktop/application launcher Ubuntu
Start off by executing the following command: sudo nano /usr/share/applications/YOUR-PROGRAM-NAME.desktop Add the following to the file: [Desktop Entry] Version=13.0 Type=Application Terminal=false Icon[en_US]=/home/USERNAME/PATH-TO-PROGRAM-FOLDER/PROGRAM-ICON.png Name[en_US]=PROGRAM-NAME Exec=/home/USERNAME/PATH-TO-PROGRAM-FOLDER/PROGRAM-NAME.sh Name=PROGRAM-NAME Icon=/home/USERNAME/PATH-TO-PROGRAM-FOLDER/PROGRAM-ICON.png Change permissions and ownership…
Syntax for Secure Copy (scp) Linux
SCP allows files to be copied from one host to another over SSH. Copy the file “foobar.txt” **from the REMOTE HOST to the LOCALHOST** scp username@remote-host-ip:foobar.txt /home/ranzy/Desktop/ Copy the file “foobar.txt” **from…
Install mod_jk to remove Tomcat port 8080 from URL
mod_jk is an apache module which connects Tomcat to webservers. What this allows is for you to remove any port numbers from the url. In short mod_jk forwards requests from…









