Bytecode size histograms for popular Java-based projects (April 30, 2016)
Here are the bytecode histograms showing method size distributions for popular Java-based projects such as Android Studio, Scala, Groovy, Gradle, Eclipse, as well as the JDK and JavaFX....
More Bytecode Geekery with JarScan (April 10, 2016)
Statistical Analysis of Core Libs Bytecode using JarScan (February 17, 2016)
The JarScan tool (part of the JITWatch project) can perform static analysis of your bytecode; counting allocated types, popular instruction sequences, most invoked methods, and methods above the FreqI...
HTTP headers to protect your website against XSS attacks (January 11, 2016)
Upgrade Apache 2.2 localhost configuration to work with 2.4 (January 9, 2016)
Upgrading to Apache 2.4 (e.g. Wheezy to Jessie) can break localhost Apache configs and fail with the message AH01630: client denied by server configuration. Here is how to fix it...
JDK8 fastdebug crib sheet (December 21, 2015)
Jessie qmail daemontools (December 16, 2015)
Tripwire on Debian Jessie (December 1, 2015)
Xen hypervisor reset guest root password from host (November 19, 2015)
Claw back netbook performance after upgrading to Debian Jessie (November 17, 2015)
Debian Jessie feels quite a bit slower than Wheezy on my Samsung N220. Here's how to get some performance back...
Website checking tools (November 13, 2015)
Recover lost form posts in Firefox (November 11, 2015)
MySQL dump table as inserts (November 4, 2015)
Linux find and replace in files (November 4, 2015)
Convert time_t to string in C++ (September 16, 2015)
Copy Debian installed packages (May 28, 2015)
SOLVED - 3TB hard drive only shows 746.52GB in Windows 7 (May 11, 2015)
wget show only response headers (April 23, 2015)
Testing webrev patches on your local OpenJFX clone (April 16, 2015)
SOLVED: icedove hangs with 100% CPU on Debian (April 8, 2015)
OpenJFX Nightly Builds for Linux amd64 and armv6hf for Raspberry Pi (March 31, 2015)
Build server producing nightly builds of OpenJFX. Add JavaFX support to Zulu JDK and JDK 8u33 for ARM...
Add JavaFX support to Azul Systems' Zulu JDK using OpenJFX (February 12, 2015)
JarScan comparison between 8u31 and 8u40 rt.jar (February 10, 2015)
Comparison of the methods above the 325 FreqInlineSize inlining limit between the two latest Oracle Java releases...
[SOLVED] Windows Update on Windows 8 shows 0% downloaded 0KB (January 23, 2015)
Development Goals for 2015 (January 1, 2015)
CPU pinning Java threads with jstack and taskset (October 17, 2014)
The power of JIT inlining (September 9, 2014)
A contrived example to show the impact of disabling method inlining in the HotSpot JVM using a Scala method call vs a tailrec...
Building OpenJDK 9 and OpenJFX from source on Debian (September 2, 2014)
Recover LVM volume over iSCSI after array server failure (July 31, 2014)
Building hsdis-amd64.dylib on Mac OSX (May 12, 2014)
Can splitting Java core class methods increase performance? (February 20, 2014)
An experiment to see if splitting hot methods that are too big to inline can increase performance...
Enable OpenSSL hardware acceleration (February 11, 2014)
Switching to the hardware accelerated aes256-cbc cipher on modern Intel, AMD, and Via CPUs gives a massive boost in crypto performance....
Java acronyms (January 30, 2014)
By getting involved in the Java community, I've come across a new set of acronyms like JSR, JEP, FFI, JCP that I needed to learn...
Location of Java applet log on Windows XP (January 30, 2014)
PostgreSQL 9 pgcrypto Debian (November 4, 2013)
Examination of PerformanceTools using JITWatch (October 29, 2013)
Analysis of why using an Exception outperforms an array bounds check in Francesco Illuminati's TryCatchVsCheckPerformanceTest...
Building hsdis on Linux amd64 on Debian (October 29, 2013)
Maven add local custom jar using mvn install (October 26, 2013)
Update Java plugin used by OSX (October 18, 2013)
Maven OSX JAVA_HOME (September 12, 2013)
[SOLVED] Mac OSX Samba / CIFS through SSH tunnel error The server 'localhost' is available on your computer (September 11, 2013)
Add JavaFX, JUnit, tools.jar as dependencies to your maven pom.xml (September 3, 2013)
Going from ant to maven feels a bit like going from svn to git. Once it clicks, happiness will reign!...
Debian - make icedove open links using iceweasel and not Konqueror (August 30, 2013)
Understanding HotSpot logs (August 27, 2013)
Raspberry Pi TFT hack and video glasses, wearable Pi project (August 12, 2013)
Maven setup (August 6, 2013)
After the initial horror and sheer wtf factor, here are a few hints to getting the Maven build tool up and running...
Compiling JDK8 lambdas on Eclipse Luna using Ant (July 29, 2013)
Want to try out JDK8 lambdas using Eclipse? Use an Ant script to invoke the JDK javac compiler instead of using the built in Eclipse ECJ compiler...
Reading and writing bytes between Java and Obj-C (July 13, 2013)
Just squashed a tricky bug that was showing up intermittently when decoding certain values written in Java and read in Obj-C...
Postgresql increase SHMMAX with sysctl (June 28, 2013)
Java JIT analysis and code coverage (June 12, 2013)
OSX encode mp3 on command line (June 10, 2013)
iPhone forensics. How to recover deleted messages from SMS, iMessage, Call History, WhatsApp (June 8, 2013)
Builder Pattern (June 4, 2013)
The builder design pattern lets you construct objects with many or optional parameters without having to write multiple overloaded constructors....
iPhone skip music tracks without unlocking (June 4, 2013)
Refactoring old style Java synchronized code with CopyOnWriteArrayList and Collections.unmodifiableList (May 29, 2013)
While refactoring some old core code I've learnt a better way to make read-only List copies using java.util.concurrent...
iPhone how to kill an app (May 15, 2013)
Jenkins CI quickstart guide (May 9, 2013)
Avoiding Dante's 9th Circle of Hell (hint: git branch) (May 1, 2013)
Quick guide to using git branch to keep those changesets apart and avoid getting into merge/rebase/stash hell...
Cross platform SWT dispatch loop idiom (May 1, 2013)
What is the @ (at sign) in OSX file attributes (April 29, 2013)
The @ (at sign) means the file has extended attributes such as the quarantine attribute which can prevent certain actions being taken on the file...
git stash (April 24, 2013)
Eclipse Job found still running after platform shutdown (April 12, 2013)
Clear Linux buffers, cache when benchmarking filesystem (March 12, 2013)
If you are trying to optimise a filesystem operation, remember to clear Linux buffers and cache between benchmarks or some of the file reads will be served from memory!...
Debian perl Can't locate Date/Calc.pm in @INC (March 11, 2013)
Postgresql add cascade to existing foreign key constraint (March 8, 2013)
If you created a foreign key constraint but forgot to add cascading updates here is how to fix it...
Debian squeeze scponly for secure remote backups (March 6, 2013)
Linux increase console resolution (March 6, 2013)
JavaFX MediaPlayer crash (Debian amd64) playing mp3 and displaying graphics (February 18, 2013)
Java on Mac OSX 10.8 Safari broken by XProtect.meta.plist whitelist update (January 31, 2013)
Updated Tutorial for JDK8 early access on Raspberry Pi (January 29, 2013)
PostgreSQL output query result to file (January 28, 2013)
Using vi as a hex editor (January 28, 2013)
PHP generate stack trace (January 28, 2013)
Debian upgrade to Linux kernel 3.2 (January 20, 2013)
Using Java jarsigner to check a jar signature (January 17, 2013)
Eclipse can't find import javafx (January 16, 2013)
JavaFX Ensemble sample won't run from Eclipse due to bad server config (January 16, 2013)
Running the main method in the JavaFX sample src/Ensemble/Ensemble2.java gives the following error...
Java applet deployment using deployJava.js (January 16, 2013)
deployJava.js fails to install Java when Java not present (January 15, 2013)
jusched.exe still running after Java uninstalled (January 15, 2013)
High performance modulo operation (January 9, 2013)
If you are using modulo to select a processor for an input then this clever trick can give you a performance boost...
Generate Apache2 OpenSSL key and Certificate Signing Request (CSR) (January 7, 2013)
Mac OSX crib sheet (January 3, 2013)
VirtualBox on Mac OSX (January 3, 2013)
gpg crib sheet (January 2, 2013)
Debian NFS Server (January 2, 2013)
Linux fdisk and mkfs.ext4 quick guide (January 2, 2013)
Mac OSX batch convert PNG to JPEG with quality setting (January 2, 2013)
Debian batch process (resize) JPEG files using ImageMagick into output folder (December 26, 2012)
OSX Take Screenshot (December 21, 2012)
Applet graphics corruption in Java 7 update 10, 11, 13 on Mac OSX (December 21, 2012)
A change in Java 7 update 10 on the Mac OSX operating system means that some applets are now showing graphics corruption...
ncurses type applications in Java on Raspberry Pi (Lanterna Console) (December 12, 2012)
Xen dynamically change RAM allocated to domU (December 12, 2012)
OpenJDK IcedTea plugin java debugging (December 12, 2012)
scp through ssh tunnel (December 11, 2012)
Debian iceweasel KEYEXPIRED 1352888501 (December 5, 2012)
[SOLVED] xen domU console hangs (December 4, 2012)
grep tips (November 29, 2012)
[SOLVED] qmail Unable_to_chdir_to_maildir._(#4.2.1) (November 27, 2012)
Raspberry Pi Wireless config for Edimax EW-7811UN (November 25, 2012)
git delete branch (November 23, 2012)
Wearable Raspberry Pi Project (November 22, 2012)
Linux reset root password using GRUB (November 20, 2012)
Raspberry Pi Java Applets - Iceweasel OpenJDK IcedTea plugin (HardFloat) (November 19, 2012)
Remote syslog over secure tunnel (November 18, 2012)
[SOLVED] Debian ./java: No such file or directory (November 13, 2012)
Using PHP + MySQL with UTF-8 support for correct encoding (November 13, 2012)
If you are having problems with non-ASCII encodings such as the British pound sign then you are probably not using UTF-8 all the way through your HTML, PHP, and database....
xen delete vm (November 12, 2012)
[SOLVED] PHP unexpected T_PAAMAYIM_NEKUDOTAYIM (November 9, 2012)
Objective C for Java Programmers (October 25, 2012)
Analyse your website and webserver (October 18, 2012)
[SOLVED] STOP 0x0000007B (0xF78D2524,0xC0000034,0x00000000,0x00000000) (October 15, 2012)
[SOLVED] Find missing network drivers Windows XP (October 15, 2012)
Mac OS X mount remote filesystem locally using sshfs (October 11, 2012)
ssh SOCKS 5 proxy and Firefox for securing traffic on untrusted networks (October 11, 2012)
Virtualbox tips for Mac OS X (October 11, 2012)
[SOLVED] VirtualBox headless VRDE server failed to start (October 11, 2012)
VRDE server is inactive. If you get this error make sure that the VM config does not contain any VRDE parameters that are no longer valid!...
Mac OS X netstat show PID process ID (October 11, 2012)
On most Linux flavours, netstat can show the process using the port with the -p switch. Here is how to get the same information on OS X...
Mac OS X install subversion using MacPorts (October 10, 2012)
Git unstage changes (roll back a commit) (September 28, 2012)
Linux wipe SD card partition table (September 25, 2012)
[SOLVED] How to fix a corrupted partition table and fdisk is giving the error: You must set cylinders...
[SOLVED] Raspberry Pi PANIC: VFS: Unable to mount root fs on unknown-block(179,2) (September 25, 2012)
Mac OS OSX add jars to Eclipse build path (September 19, 2012)
[SOLVED] How to add jar files to the Eclipse build path in osx when the jars are inside the Java library bundle?...
Which Debian package contains the svc command? (August 24, 2012)
While installing qmail I found that the svc program was not installed. Here is how to install svc in Debian...
Debian find which package contains command (August 24, 2012)
Xen hypervisor on minimal Debian squeeze (August 21, 2012)
Excel join columns together (string concatenation) (August 13, 2012)
Word insert reference to custom field (August 10, 2012)
Eclipse Juno set tab font size manually (August 10, 2012)
On a netbook, the font size for Eclipse's tabs is far too large and there is no way to set it through the preferences, here is how to change it manually....
Raspberry Pi mount Raspbian img on loop device (August 6, 2012)
[SOLVED] Raspberry Pi won't boot 6 flashes of LED after rpi-update (August 6, 2012)
After running rpi-update on my Raspbian Wheezy my Pi wouldn't boot and gave the 6 flashes error. Here is how to solve it...
[SOLVED] ssh sshd error: key_read: uudecode (August 3, 2012)
PHP strip pound signs from form input (July 31, 2012)
Debian squeeze nvidia packages (July 23, 2012)
[SOLVED] sshfs with private key what is the syntax? (July 18, 2012)
Concatenate 2 files in Linux with cat (July 18, 2012)
[SOLVED] Eclipse Java autocomplete not working (July 10, 2012)
After upgrading Eclipse my Java autocomplete suggestions (Ctrl-Space) stopped working. Here is how to fix it...
Debian Squeeze install Microsoft TTF TrueType fonts (July 10, 2012)
If you are using the PDT (PHP Development Tools) feature and Eclipse is hogging up your system doing DLTK indexing then this might help...
[SOLVED] Debian killall command not found (July 4, 2012)
Java trace memory leaks with hprof and verbose:gc (July 3, 2012)
Java Unsupported major minor version 51.0 (July 2, 2012)
Raspberry Pi github for tracking kernel/firmware issues (June 27, 2012)
Raspberry Pi Debian Wheezy beta is now available (2012-06-18) (June 27, 2012)
Raspberry Pi heatsink mod (June 26, 2012)
Raspberry Pi eth0: kevent 4 may have been dropped (June 26, 2012)
A log file full of kevent 4 may have been dropped messages could indicate a power problem with your Pi...
If your postgres pg_xlog directory is filling up with 16777216 byte WAL files then your archive_command is failing...
git rebase (June 21, 2012)
git rebase - changes depends on abandoned changes (June 21, 2012)
Raspberry Pi update firmware using Hexxeh's rpi-update script (June 21, 2012)
Mozilla Firefox 13 EPIC SECURITY FAIL with New Tab thumbnails (June 20, 2012)
Mozilla needs to quickly fix the new tabs page so that it does not show thumbnail images from HTTPS protected content....
How do you dynamically resize the Raspberry Pi Debian 2GB image partition to make full use of a 32GB SD card?...
[SOLVED] No sound in Raspberry Pi after startx X windows (June 16, 2012)
ssh chained tunnels to access servers behind gateway machines (June 15, 2012)
Here is how to enable anti-aliasing in AWT using reflection in a way that is compatible with Java 1.1 AWT...
Bat and Ball Puzzle (June 13, 2012)
Getting Started with Raspberry Pi (June 10, 2012)
Install Java on the Raspberry Pi (June 10, 2012)
Getting started with Java on Raspberry Pi (June 10, 2012)
git revert (reset) a single file (June 6, 2012)
How to you undo uncommitted changes to a single file and revert it back to the previous version in git?...
Permission denied: /home/chris/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable (May 31, 2012)
Apache MySQL PHP quick build (May 31, 2012)
Debian add user to existing group (May 29, 2012)
PostgreSQL drop unique constraint (May 29, 2012)
Ubuntu 12.04 resolv.conf (May 28, 2012)
Ubuntu now overwites /etc/resolv.conf on reboot so you can no longer manually set your nameservers here...
Create Ubuntu 12.04 USB installer from Debian (May 28, 2012)
Ubuntu 12.04 install Nvidia drivers from ppa (May 28, 2012)
[SOLVED] Raspberry Pi won't boot, red power LED on (May 28, 2012)
Raspberry Pi install Debian image to SD card (May 27, 2012)
Ubuntu Unity show desktop (May 24, 2012)
Raspberry Pi battery power calculations (May 22, 2012)
git reset instead of rebase (May 18, 2012)
If your branch was taken from HEAD and you just want to merge your changes back with HEAD then you can git reset and re-add rather than rebase...
Debian squeeze syslog-ng 3 upgrade config files (May 18, 2012)
There has been a change in the syslog-ng.conf format between v2.x and v3.x so any pre-squeeze config files will need to be updated...
Easy way to send apache2 logs to syslog-ng (May 18, 2012)
Very easy way to send both Apache2 access and error logs via syslog-ng with no changes to Apache config...
Git rename files under version control (May 15, 2012)
git simple checkout, create new branch, add, commit (May 14, 2012)
Simple example for checking out (cloning) a repo, making your own branch, adding files, and committing...
Debian add multimedia codecs (May 12, 2012)
git list files not under version control (May 11, 2012)
ZTE Blade clear contacts (May 2, 2012)
Thunderbird from the Ubuntu repositories is about to go obselete. Here is how to upgrade to the official Mozilla PPA version...
Ubuntu Natty Narwhal switch back to Classic desktop instead of Unity (April 18, 2012)
If you've upgraded your Ubuntu to Natty Narwhal (11.04) and switched from Unity back to Classic desktop you may find your scrollbars are missing in Eclipse and Nautlius file explorer. Here is how to r...
Debian / Ubuntu php-gd function imageantialias() not implemented (April 12, 2012)
Trying to use the PHP function imageantialias from GD under PHP on Debian or Ubuntu? Here is why it doesn't work and what you can do about it...
PostgreSQL DROP NULL constraint on COLUMN (April 5, 2012)
Java wrapper around an external process (April 5, 2012)
How to invoke an external process from Java and collect the standard error output. This example converts a PDF using a Java wrapper around the Linux program pdftotext...
Map JDBC types to Java primitive and Object types (March 29, 2012)
Windows 7, XP, Vista add persistent route (March 23, 2012)
If you need to add a static or persistent network routes to Windows 7, XP or Vista here is the command line syntax...
java.io.IOException: Too many open files (March 20, 2012)
If your Java program throws this exception then you have run out of file handles / pipes / domain sockets (depending on how your OS represents files). Here is how to debug the error on Linux...
ls sort by date and time (March 20, 2012)
Low latency Java tips (March 6, 2012)
When building a Java trading application there are several steps you can take to reduce delays (latency) at the network and transaction processing level...
SQL get MAX value or NULL (LEFT JOIN example) (March 5, 2012)
Thunderbird pressed A key email disappeared (February 28, 2012)
If you have an email selected in Thunderbird and you accidentally press the "a" key when trying to type in another window then your email will disappear. Here is how to get it back...
Neat PHP oneliner to calculate days in a given month (February 24, 2012)
A neat little one line solution for calculating the days in a month given the month and year that relies on PHP's intepretation of 0 (false) or non-0 (true)...
qmail 5.1.2 error when sending to multiple recipients with Outlook 2010 (February 24, 2012)
qmail is very fussy about extra quotes and spaces appearing in email addresses when there are multiple recipients. This can cause problems with Outlook 2010 whose address book manager makes it quite e...
Export data from MySQL into CSV file (February 23, 2012)
init.d script to create essential dirs (apache, postgresql, debconf) when mounting /var on tmpfs (February 22, 2012)
If you are mounting log, cache, and tmp directories on a tmpfs filesystem then you may encounter problems with programs failing to start or work correctly due to missing folders. By using a simple ini...
STOP: 0xC0000221 Unknown Hard Error SystemRoot System32 ntdll.dll (February 16, 2012)
MySQL create database with underscore or dash in the database name (February 15, 2012)
qmail change maximum retry time (February 14, 2012)
By default, qmail will try to deliver a mail for 7 days before giving up. Many users do not realise this and will assume the mail was received but unanswered. Here is how to change the maximum retry t...
Select correct SWT jar for your OS and JVM at runtime (February 10, 2012)
Here is a method to dynamically classload the correct SWT jar depending on your operating system and whether it is 32 or 64 bit. It relies on a little code smell (hack) using reflection but this is mu...
qmail alias for email address with dot (February 9, 2012)
Debian dist-upgrade lenny to squeeze (February 9, 2012)
Poweredge 1750 Debian Squeeze tigon3 firmware (February 9, 2012)
The tigon3 gigabit network driver is now available in the apt repository. Here is how to install it....
Find open ssh servers on a network using nmap on Linux (February 3, 2012)
ssh tunnel through gateway to svn repository server on remote LAN (February 3, 2012)
Microsoft Excel Yes/No drop box (February 1, 2012)
Microsoft Word cross reference clauses and update them in a contract (January 20, 2012)
Java can an int fit inside a float or a double without loss of precision? (January 11, 2012)
I've recently upgraded our FIX trading software to support fractional quantities and needed to know if using double as the underlying storage for quantity could ever cause a loss of precision when sto...
Java concatenate null String with += (January 10, 2012)
Here's a stupid mistake I made concatenating a null (reference) String in Java so you don't have to make it!...
Ubuntu sudo postgres createdb (January 9, 2012)
STOP 0xC000021A Fatal System Error on Windows 7 (0xC0000034 0x0010037C) (January 4, 2012)
Acer Aspire enter recovery mode (January 4, 2012)
VirtualBox Linux host add user to vboxusers group to access USB devices. (January 3, 2012)
Linux find and move old files (December 30, 2011)
HP Pavilion laptop restore Windows 7 from WIM file on recovery partition (December 30, 2011)
Progress so far on restoring a HP laptop with a failed hard disk using the WIM file from the recovery partition...
Windows 7 install The product key does not match current Windows SKU (December 29, 2011)
Use 64 bit Sun Java plugin in Firefox on Ubuntu (December 23, 2011)
bash rename files using a for loop (December 23, 2011)
Cisco PIX show single object-group (December 22, 2011)
Debian add new Samba user for Windows fileshare access (December 20, 2011)
openSSL convert PEM certificate and import to Java keystore (December 13, 2011)
Need to convert an x509 secure certificate so that it can be imported into a Java keystore? Here is how to do it using an intermediate DER format certificate....
Install latest iceweasel (firefox) on Debian (December 13, 2011)
[SOLVED] Windows 7 won't boot STOP 0x0000007B INACCESSABLE_BOOT_DEVICE (December 5, 2011)
If you get error 0x0000007B when booting Windows 7 or Windows Vista then this means that the operating system can't find a driver for the device you are booting from. Here is how to fix it....
mod_rewrite protect your pagerank by redirecting unused subdomains (November 27, 2011)
If your site serves the same content on URLs with and without the www subdomain then search engines will treat them as two different sites and your pagerank will suffer. Unify them with these mod_rewr...
[SOLVED] Floppy drive light on all the time (November 27, 2011)
If you've just installed a new floppy drive in your PC and the disk activity light is on all of the time then you have installed the power cable incorrectly....
Reset PS3 controller (November 27, 2011)
[SOLVED] Playstation Network Error 80550F17 (November 27, 2011)
[SOLVED] Brother printer error 41 (November 27, 2011)
Linux show routing table without being root (November 24, 2011)
[SOLVED] SWF Flash movie overlaps CSS menu (November 22, 2011)
Java short form array iteration using for-loop (November 18, 2011)
Select unique values in postgres (November 18, 2011)
Java for loop syntax to replace Iterator (November 14, 2011)
One of the new features introduced in Java 1.5 was a for-loop syntax similar to PHP's foreach loop to replace the use of java.util.Iterator...
Java String.split include empty trailing strings (November 10, 2011)
How to avoid getting banned from Google AdSense (November 9, 2011)
ChrisWhoCodes AdSense Protection Script (November 9, 2011)
This PHP script can help you to avoid an AdSense ban by filtering adverts by IP address, HTTP referrer, and page URL...
Load specific columns from CSV file into PostgreSQL (November 9, 2011)
MySQL fails to start after package update: unknown variable lc-messages-dir (November 8, 2011)
After a package update on Debian my MySQL refused to start and syslog contained the following message [ERROR] /usr/sbin/mysqld: unknown variable 'lc-messages-dir=/usr/share/mysql'...
Android data network indicators G, E, 3G, H mean? (November 8, 2011)
Java variable scope in switch statement (November 4, 2011)
Variable scope inside the case clauses of a Java switch statement is not always obvious. This example will help understand how it works....
ERROR 2003 (HY000): Can't connect to MySQL server on '10.0.0.1' (113) (November 3, 2011)
How to solve MySQL Error 2003 (HY000) when trying to connect to a MySQL server on a remote machine?...
Postgres copy table structure inside database without data (November 3, 2011)
Debian bash can auto-complete program switches (November 2, 2011)
Today I discovered by accident that bash can auto-complete command line switches to certain programs...
tar: time stamp is in the future (October 31, 2011)
How to solve the time stamp is in the future error when you unpack a tar file on a system where the clock is behind the system clock on which you created the tar archive...
[SOLVED] CSS border-collapse render bug on iPad (October 30, 2011)
If you are using CSS background-image in a table with border-collapse and your images get squashed when viewing on an iPad, iPhone, or iPod then this PHP code snippet will detect and fix the rendering...
Change the hostname on a Linux system (October 28, 2011)
PostgreSQL config, data, log files on Debian (October 28, 2011)
Where does PostgreSQL store the data and config files like postgresql.conf, pg_hba.conf on Debian...
PostgreSQL Debian make a baseline backup for PITR (October 28, 2011)
tar list contents of file (October 28, 2011)
How to change a car battery safely (October 25, 2011)
svnserve start on boot using update-rc.d on Debian Squeeze (October 24, 2011)
How can you get svnserve to start on boot by creating an init.d script and linking using update-rc.d...
What is MsMpEng.exe and why is the CPU usage so high? (October 21, 2011)
Here is an explanation of what the process MsMpEng.exe does and how it can result in high CPU usage...
Binary file (standard input) matches when grepping tail (October 21, 2011)
You are tailing a growing log file using 'tail' and piping the output into grep and you get the error Binary file (standard input) matches when grepping tail and the command exits. ...
Java defensive programming - compare variable with constant (October 16, 2011)
Here's an easy way to eliminate NullPointerException when you compare a variable against a constant...
Logic puzzle - buckets of water 4L 7L make 5L (October 14, 2011)
mscorsvw.exe high CPU usage (October 13, 2011)
SWT Canvas plot centred text (October 13, 2011)
plugin-container.exe high CPU on Firefox (October 13, 2011)
If you are using a modern version (3.6+) of Mozilla Firefox then there is a new safety wrapper around plugins which can make your PC run very slowly....
virtualbox-4.1 conflicts with virtualbox (October 12, 2011)
Lateral thinking puzzle - 3 switches 3 lightbulbs (October 2, 2011)
FATAL: sorry, too many clients already (PostgreSQL) (September 26, 2011)
Getting a 'too many clients already' error from your database driver when opening a connection? Use this Java design template to ensure you are not leaking resources....
Java numerical overflow (September 26, 2011)
How Java handles numerical overflow (result of an operation is too large to be represented in the result variable)...
[SOLVED] Invalid machine name or UUID! VirtualBox (September 22, 2011)
Business Insider's UBS Quant puzzle solution (September 21, 2011)
An interviewee at UBS for a math-heavy quant job was asked one of the toughest Wall Street interview questions we've seen yet....
The Monty Hall Problem (September 21, 2011)
Useful diff examples (September 19, 2011)
svn db/txn/current-lock: Permission denied (subversion) (September 14, 2011)
Java return code in Linux shell script (September 13, 2011)
Java primitives in size order (September 12, 2011)
How many bytes do Java primitive types (boolean, byte, char, short, int, float, double, long) take up?...
Comment syntax for Java, HTML, CSS (September 12, 2011)
SWT literal ampersand instead of keyboard hotkey (September 9, 2011)
If you call setText() on SWT components with a String containing an ampersand then the ampersand will be converted into a keyboard hotkey on the next character. Here is how to use a literal ampersand ...
Elegant use of Java's Math.max() to prevent negative numbers (September 9, 2011)
Debian Linux 2-NIC router (September 1, 2011)
Debian N220 netbook power saving script (August 31, 2011)
Google AdSense URL channels should I include www ? (August 29, 2011)
Ebuyer non 0871 number (August 25, 2011)
Java remove non alphanumeric characters from String (August 25, 2011)
Need to sanitise a Java String containing user input? This simple regular expressions will clean it for you...
[SOLVED] Windows could not start because the following file is missing or corrupt: C:WINDOWSSYSTEM32CONFIGSYSTEM (August 23, 2011)
If you get this error message when booting your Windows PC then this trick might just save the day...
SWT best practice - single Display multiple Shells (August 19, 2011)
Here is a design pattern for an SWT single document interface (SDI) with one Display dispatch loop handling for multiple windows (Shells)...
Log to syslog with PHP 5 and syslog-ng (August 18, 2011)
[SOLVED] Dell PowerEdge 1750 Can't install GRUB (August 12, 2011)
Problem: you install Debian or any GRUB or LILO based operating system on your Dell 1750 but when you reboot after installation it hangs at the bootloader stage...
[SOLVED] Dell PowerEdge 1750 only 256MB RAM available (August 12, 2011)
If your Dell PowerEdge 1750 is only showing 256MB of RAM available and there is more RAM installed then you have OS Install Mode enabled in the BIOS...
PIX show MAC address (August 12, 2011)
PIX ASDM 6 [ERROR] threat-detection statistics host number-of-rate 0 (August 10, 2011)
[SOLVED] Ubuntu ssh Too many authentication failures (August 10, 2011)
[SOLVED] gpg: [don't know]: invalid packet (ctb=2d) (August 3, 2011)
If you get this error when decrypting using an external key then you probably exported your keyrings as ASCII armoured!...
Convert milliseconds timestamp into Excel date and time (August 3, 2011)
If you have a CSV file containing timestamps as milliseconds then this formula will convert into Excel date time...
Xeon family 15 model 4 stepping 1 is 64 bit (August 1, 2011)
CSS padding shortcuts (July 27, 2011)
Linux find grep and rm with a massive number of files (July 22, 2011)
Got a directory with a bazillion files and need to delete the ones containing a certain text string? Here is how you can do it with a simple one-liner....
Run PostgreSQL queries from the command line and export data (July 22, 2011)
Need to dump some data from your database into a file but want to use SQL to intelligently select what you export? Here is how to run SQL from the command line using the psql tool...
Sort files by size in Debian (July 22, 2011)
[SOLVED] syslog-ng Error opening file for writing (July 20, 2011)
If your syslog-ng runs as root but still won't create the logfile for writing then you have probably missed the following options from your config....
PostgreSQL convert BIGINT to date (July 19, 2011)
If you are storing your timestamp data with millisecond accuracy in a PostgreSQL BIGINT column then you can use the following SQL to retrieve the value as a date....
Get SEDOL from ISIN using SQL (Postgres) (July 19, 2011)
The SEDOL identifier for UK stocks is a substring of the ISIN code. Here is how to extract it using a PostgreSQL SELECT statement....
Linux redirect standard out and standard err to dev null (July 18, 2011)
If you don't care about any stderr and stdout output from a process (e.g. you are running a script from cron and don't want to be bombarded by emails containing the process debug) use these redirects ...
VirtualBox Windows guest stuck in shutting down state (July 14, 2011)
If your Windows guest VM gets stuck in a state when you can no longer enter commands (such as a bluescreen of death, or the shutting down process) then you can perform the equivalent of pulling the po...
/etc/apt/sources.list for dist-upgrade lenny to squeeze (July 4, 2011)
Volatile no longer exists starting with Debian Squeeze so here are the apt sources.list lines you need to dist-upgrade from Lenny....
Find biggest tables in postgres (July 4, 2011)
My Samsung SyncMaster 913N only detects modes up to 1024x768 in Debian and Ubuntu, here is how to add the 1280x1024 native resolution using xrandr....
Virtualbox install extension pack on headless server (June 30, 2011)
If you get the error VRDE: VirtualBox Remote Desktop Extension is not available when trying to start a headless VM on VirtualBox 4 or greater then it is because you have not installed the extension pa...
Hot key for NEWLink NLKVM P2PC 2 Port Micro KVM (June 28, 2011)
Linux remove duplicate lines from file (June 28, 2011)
Create svn mirror over a network (June 21, 2011)
If you need a hot-spare of your svn repository or want an easy way to migrate your repo to a new server without dumping, copying, and reloading then use this technique to clone your repo over the netw...
Disable exim4 MTA startup on Debian squeeze (May 26, 2011)
Postgres list databases (May 25, 2011)
Here is how to list your databases in postgres from the command line (using psql) and from within psql....
Debian Squeeze Mozilla GPG keys (May 25, 2011)
Install these GPG keys if you want to add the Mozilla apt repository to Debian Squeeze. W: GPG error: http://mozilla.debian.net squeeze-backports Release: The following signatures couldn't be verified...
Install pgcrypto for Postgres encryption in Debian Lenny (May 17, 2011)
If you need database level encryption in postgresql you can add it easily using the functions in the pgcrypto contrib module....
Postgres invalid byte sequence for encoding UTF8 (May 16, 2011)
Trying to restore a postgres database dump taken from an old version of postgresql? Your database might not be in UTF8 format and might be in an older format such as SQL_ASCII. Here is how to create y...
Dotdeb packages need GPG key (May 16, 2011)
W: GPG error: http://packages.dotdeb.org oldstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E9C74FEEA2098A6E Dotdeb packages are now s...
Create and export PGP keys for Postgresql (May 16, 2011)
Here is how to generate the PGP public and private keys needed for encrypting/decrypting column data in postgres using the pgp_pub_encrypt and pgp_pub_decrypt functions from pgcrypto....
Postgres list user-defined stored procedures (May 12, 2011)
Need to get a list of stored procedures but don't want to wade through all of the built in ones? Use this query to get them....
[SOLVED] Error bumping revisions post-commit svn (April 21, 2011)
If you have your working copy on a Samba share and your samba is an old version that contains a bug then you will get an error about bumping revisions post commit. Here is how to solve it....
[SOLVED] Excel 2010 very slow to open files (April 19, 2011)
Got a whizzy new PC with Office 2010 and sometimes Excel documents are taking ages (minutes) to open? This fix worked for me and now the documents open instantly....
Fix VirtualBox clock drift (April 13, 2011)
I've noticed the system clock in my VirtualBox XP guest is drifting so that after a few hours is can be 30 seconds behind the host OS clock. This VBoxManage command will fix that....
The 8 Commandments for Securing Your Users' Passwords (April 6, 2011)
Developing a client server application that authenticates over a network? Here is how to make sure your client's passwords are stored securely in your database and are protected from rainbow table att...
Remove file from svn repository but keep local copy (March 31, 2011)
So you've added a file to the subversion repository in error but you still want to keep a local copy? Examples are committing your personal .classpath and .project settings for Eclipse when developing...
Remove .svn folders on Linux (March 31, 2011)
Mapping a drive in Virtualbox Windows guest with net use (March 31, 2011)
Here is how to map a Windows network drive to a Virtualbox shared folder (set up the share in the Virtualbox VM settings before you start the guest VM)....
Open port range on Cisco PIX firewall (March 29, 2011)
Postgres dump database schema with or without data (March 28, 2011)
Need to copy the database schema (table structure) with or without the table data from an existing postgres database?...
Virtualbox NSIS can't write bytes to output (March 21, 2011)
Something has broken in Virtualbox 3.2.12 (Linux 64 bit host, XP 32 bit guest) and it's no longer possible to run a NSIS installer script on a Virtualbox shared folder: Error: can't write 19678836 by...
Ubuntu remove OpenJDK and use Sun Java as default (March 3, 2011)
Now that Sun Java is in the Maverick partner's repositories you can use Sun's JDK and JRE easily in Ubuntu....
warning, in file '/var/lib/dpkg/status' near line 42896 package 'virtualbox-3.2': error in Version string '3.2.12-68302_Ubuntu_jaunty': invalid character in revision number ...
Postgres server to server database copy performance boost (February 22, 2011)
[SOLVED] Windows 7 hang on boot (Classpnp.sys) (February 16, 2011)
Which process is using port with lsof or netstat (solve bind errors) (February 1, 2011)
You've got a bind error because a process is already listening on your port. Here are two different ways to find the offending process (Linux/UNIX/etc)...
Generate SSL CSR for apache2 (January 26, 2011)
How to generate a Certificate Signing Request (CSR) for a new SSL certificate for an apache2 webserver....
[SOLVED] Linux route command takes a long time to complete (January 26, 2011)
If your routing table takes a long time to display then you may have a DNS resolution issue causing the slowdown. Here is the solution:...
[SOLVED] svn commit problems with missing files (January 13, 2011)
You svn add some files but then delete them from your local filesystem. Some time later you try to commit but the commit fails due to the missing files. AAAAAAARRRRRRRGGGGGGGGGHHHHHHH!...
Cisco PIX site-to-site VPN with NAT before encryption (January 10, 2011)
How to set up a site-to-site VPN on a Cisco PIX firewall using Policy NAT to mangle your internal addresses to match the internal addresses of your VPN counterparty....
Ashes Jokes and Cricket Jokes after England beat Australia (January 7, 2011)
Ashes Jokes, Australia Jokes, Cricket Jokes, Ashes 2010 Jokes, Ashes 2011 Jokes, England win ashes Jokes. In case you were wondering, this article is a search test for topical news....
VirtualBox installation on headless server (December 8, 2010)
Instructions for installing Sun/Oracle VirtualBox on a headless Debian server. In this example you can learn how to install a Windows XP guest on a headless Debian server using just the command line....
Ubuntu fix 'Load balancing tick' problem (December 3, 2010)
Kernel 2.6.35 introduced a bug with scheduling on dual core processors that caused high numbers of Load balancing tick events which prevent the CPU from entering deep sleep states. This increases heat...
Debian software RAID 1 on non boot disk (October 12, 2010)
Headless start and stop multiple VirtualBox guests using VBoxHeadless and VBoxManage (October 12, 2010)
How to start and stop your VirtualBox guests from the host's command line using VBoxHeadless and VBoxManage....
Move svn repository onto a new server (October 12, 2010)
Headless VirtualBox multiple guests with bridged networking (October 11, 2010)
Want to have multiple guests inside a single host that can communicate with each other, with the host, and with the internet? Here is how to configure configure a headless host using VBoxManage....
[SOLVED] dmsetup /proc/misc: No entry for device-mapper found (October 5, 2010)
OpenOffice Calc horribly slow to open spreadsheet? (September 7, 2010)
Recently I've been having problems with a certain Excel97 formatted spreadsheet in OpenOffice Calc. It takes about 30 seconds to load and only has about 30 rows. I thought the problem was to do with s...
Ubuntu /media/Stick_ (with underscore) (September 6, 2010)
Find and Replace with nano (September 3, 2010)
nano is a simple text editor for Linux and UNIX systems and I've been using it for years but only discovered the search and replace function today....
Remove subversion information from a directory tree (August 31, 2010)
If you use the subversion (svn) version control system you might find yourself needing to remove the .svn directories from your tree for things like backups and build processes. This simple Linux comm...
Java can't delete directory (August 31, 2010)
Java can't delete a directory if it is not empty. The following code uses recursion to delete the directory tree....
Three Mifi enable web interface via Netvigator firmware upgrade (August 27, 2010)
The excellent little Three Mifi (a branded Huawei E5830 wifi to 3G routing modem) has had it's web interface disabled by the network provider which removes several useful features such as MAC-address ...
I recently checked the log files of one of my websites to discover a set of guestbook spambots were hitting a non-existent page about every 10 seconds which resulted in my site returning a 5KB respons...
$_FILES array empty on PHP file upload (August 13, 2010)
Trying to upload a file from an HTML form and the PHP superglobal array $_FILES is empty. Here is my solution....
Wattson smart energy meter (August 5, 2010)
PHP Validate currency with preg_match (August 5, 2010)
In PHP 6 the ereg() functions for POSIX regular expressions will be removed and you will need to use the PERL preg_match() regex functions which are harder to use in my opinion. Here is a regular expr...
Samsung N220 netbook with Intel Atom N450 dual core CPU (August 5, 2010)
A great little dual-core netbook with a nice keyboard, decent sound, and a better graphics chip than the first generation netbooks....
Fixing VirtualBox fullscreen on wrong monitor (July 9, 2010)
Since upgrading to VirtualBox 3.2.x (Ubuntu host, XP guest) my guest OS always goes to the primary monitor even when I hit ctrl-F when the windowed guest is on the secondary screen....
Decrypting gpg file using an external keyring (June 30, 2010)
It's good security practice to keep your gpg keyrings separate from the files they encrypted. Here is how to decrypt your files using keyrings stored on an external filesystem (USB stick etc)....
Updating virtualbox public key in apt from Sun to Oracle (June 21, 2010)
Oracle has taken over Sun so if you are managing your Virtualbox installation in Debian using the apt package manager you will need to update your public key to avoid public key errors with apt-get up...
Generate ssh public key from private key using ssh-keygen (June 4, 2010)
Virgin Media Netgear WN111 on Ubuntu Linux (June 3, 2010)
Virgin Media are supplying a Netgear WN111v2 wireless N USB adapter with their 50Mb service. Here's how to get it working under Linux (I used Ubuntu 9.10 Karmic Koala)...
Deadlock when 2 threads write to the same HashMap (May 4, 2010)
If 2 or more threads are writing to the same java.util.HashMap then take the following advice to avoid deadlock....
Create ISO from CD or DVD in Linux (April 30, 2010)
If you are using VirtualBox or another virtualisation system and need to make some ISO images from your installation media for quick VM creation then use this command to easily create an ISO image fro...
Secure network backup (scp) with bandwidth throttling (April 23, 2010)
Ever needed to do a big backup or file copy from a remote site but don't want to max out your local connection? Use this little-known switch to the scp command to get your files securely at a rate tha...
Solving Reverse DNS problem for multiple domains (April 15, 2010)
If you use virtual mail hosting to host multiple domains on a single mail server (e.g. qmail with vpopmail) and you are having problems with mail being rejected due to rDNS (reverse DNS) failures then...
Demoscene (February 21, 2010)
LifeHacker (February 20, 2010)
Model Rocketry (February 20, 2010)
Help Me Chill (February 20, 2010)
Available via DAB, Digital TV, and Internet radio. A very relaxing selection of chill electronica....
CMS linking to external sites (February 20, 2010)
For now these are simple links but later on I will be routing all of these external URLs through a tracker to monitor the exit points from my websites....
What is a Content Management System? (February 20, 2010)