author profile image

Matt Reid

Lead Software Architect. Java, Node.js and TypeScript enthusiast.

While overhauling a customer information system I found myself needing to display a map of a customers postcode without forcing the user to leave the page. Here is the solution I came up with. ``` {.js name=”code”} var map; var geocoder; function init() { geocoder = new google.maps.Geocoder(); } function...

I was recently using 2 date pickers to allow the user to select a date range and was in need of a dynamic date-restriction function. Here it is: ``` {.js name=”code”} $(‘.datePicker’).datepicker({ dateFormat:”dd-mm-yy”, showAnim:”show”, beforeShow: customRange }); <%-- the toDate can only select dates after the fromDate (and vice-versa) --%>...

A word of warning to anyone with an android phone. If your account is set up as …@gmail.com rather than @googlemail.com then you could have problems downloading from the android marketplace. Luckily some fine fellow has posted a set of simple instructions to fix this: click here  

I had to reinstall ubuntu because I messed around with it too much.Just a quick note to document installing the driver for my ATI radeon 9200se graphics cardInstructions here  

I have just managed to get DVD”s to play in Ubuntu after a lot of googling and these tutorials (here and here).Here goes: Run the following in the Terminal {.js name="code"} sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list ``` {.js name=”code”} sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update...