Wordpress - mentaljetsam.wordpress.com - Mental Jetsam
General Information:
Latest News:
Simple HTML5 Drag, Drop and upload JQuery plugin 22 Jan 2013 | 03:46 am
The following code is based on an excellect description of working with HTML5′s ability to handle drag and drop and auto upload items to a server, found at HTML5 Drag and Drop Upload and File API Tuto...
Android JSON WebService Example 27 Sep 2012 | 10:47 am
The following code, for the Android OS, will make a HTTP request to a JSON webservice at “url” and convert the response into a JSONObject.
Calculating Android canvas device pixels sizes 26 Jul 2012 | 02:39 pm
When drawing on a Android Canvas, it’s important to take into consideration the different pixel densities when rendering lines and text. Using “pixels” can make things too small on high resolution scr...
Hiding the Android soft keyboard 19 Jul 2012 | 12:21 pm
This sounded so simple… but it wasn’t as easy as I thought. All I wanted to do was hide the soft keyboard when I was switching (using a ViewFlipper) to a view that did not require it. This is what I e...
Java Hello World 11 Jul 2012 | 08:02 am
This is a standard “hello world” program that I use when testing a java installation to make sure everything works.
Custom taglib in Tomcat 7 12 Apr 2012 | 03:22 pm
The following is a simple example for creating a custom tag library (taglib) for the Apache Tomcat JSP server and could be used as a simple template engine. Create a taglib definition file in “WEB-IN...
Google Chrome multiple browser session instances 6 Feb 2012 | 04:42 pm
Have you ever wanted to login to a website using the same browser, but with multiple different sessions. For example, log in to GMail, using Google Chrome, but as two different users. Normally, the mo...
Google Developer Day 2011 HTML 5 Challenge 22 Aug 2011 | 12:25 pm
I entered the Google Developer Day 2011 HTML5 challenge, to create a “Google doogle” of the Developer Day Logo entirely in HTML, and I actually made the cut… top 3 in Australia, I’m very happy https:...
Accessing DataSource values from within a DataList ItemTemplate 29 Jun 2011 | 02:04 pm
The following C# (ASP.NET) code example shows a couple of ways to access the values returned by a asp:SqlDataSource from within a asp:DataList asp:ItemTemplate. The difficult part was accessing the da...
Pop-up message in JQuery Mobile 10 May 2011 | 12:01 pm
The following code can be used to pop-up a message in JQuery Mobile similar to an Android “toast”. BTW… I Love JQuery Mobile!!!!