Matt Reid | Senior Software Developer

Matthew Reid is a Full Stack web developer, specialising in Java and the JVM, js and web frameworks. He has a passion for clean code, entrepreneurship, company culture and making the world a better place.

Just a quick note, I had the following exception when adding tabs to a tabhost in an android app that I”m building 11-03 22:54:09.530: ERROR/AndroidRuntime(508): at android.widget.TabHost.addTab(TabHost.java:207) The fix (after some googling) seems to be to add the following before adding any tabs to a tabhost tabHost.setup();  

I recently needed to work out the intersection of 2 text files and the lines that didn’t match in 2 documents, after some googling I found the following 2 lines of script that take 2 files and pipe the output to a new file Intersection of 2 files grep -Fxv...

Having moved my blog over to use facebook’s comments plugin I needed a new way to display the number of comments for each of my links. It turns out to be very easy. Simply making a request to URL_TO_COUNT_COMMENTS returns a json string with the following format { “http://www.matt-reid.co.uk/blog_post.php?id=68”: {...

I recently needed to be able to kick off a jar file running for a batch job in the background from a linux shell. After some googling I found the required steps. Save the following into your .sh file, replacing the jar file name #!/bin/bash nohup java -jar JARFILENAME.jar &1...

I have been writing some data import programs recently and have had trouble with foreign characters in a text file I was reading. The solution is in fact very simple. To create a BufferedReader for a file in UTF-8 format, simply write the following: new BufferedReader( new InputStreamReader( new FileInputStream(file),...