Wordpress - kahdev.wordpress.com - Kah - The Developer

Latest News:

Mocking Java classes in Groovy vs Mockito 14 Feb 2013 | 05:43 pm

While experimenting with using an ODF parser in Groovy, I was attempting to write unit tests in Groovy and mocking objects from the ODF parser library was required in my tests. Prior to this, most of ...

[Vim] Diff and merge using Vim 28 Jan 2013 | 12:31 pm

After performing a system update on my Linux machine, the package manager placed a copy of an updated configuration file on the system – it couldn’t overwrite them as I had previously modified it. Sin...

[Junit] Including the parameters in the names of parameterized tests 19 Nov 2012 | 06:35 pm

Junit 4.11 has added the ability to include the name of the parameters in a Parameterized test. This is done by providing a String to the name argument of the @Parameters annotation. Here is an exampl...

[Bash] Reading from Standard Input 27 Oct 2012 | 10:05 am

To read from standard input in a Bash shell, use read. The following script reads content from stanard input and outputs the content: The call to read at line 6 will read a line and assign the words i...

[Sed] Editing files in place 13 May 2012 | 03:38 pm

Sed provides the -i or --in-place option for saving changes made to the file. For example, you can replace all tabs with a space with the following: If you want to keep a backup of the file, option a...

[Grails] Creating a weekly view of a calendar 12 May 2012 | 02:04 pm

Lately, I’ve been trying to learn Grails and started a little project as part of the learning exercise. I started off by creating weekly view of a calendar. The code for rendering this calendar can be...

[Android] Parsing JSON with JsonReader 11 Mar 2012 | 08:41 pm

Back in Parsing JSON with JSONObject, I covered parsing JSON using JSONObject, where the object is created after reading the entire data into a String. Here, the same application will be created, but ...

[Android] Allowing the user to enter a filter for a ListView 2 Mar 2012 | 02:54 am

Back in Using an ArrayAdapter to Control a ListView’s Data, I wrote about filtering a ListView using its setTextFilterEnabled method. One of the comments reminded me that that not all devices have a p...

[Java] Setting the Window Title Font with the Substance Look and Feel 20 Feb 2012 | 04:24 am

Fonts for various aspects of the UI is usually by putting the font as a default property in UIManager or UIDefaults. However, there doesn’t seem to be one for the window title. If you were using the S...

[Android] Parsing JSON with JSONObject 19 Feb 2012 | 10:23 pm

Android provides JSONObject and JsonReader for parsing JSON. JSONObject has been around since API level 1 (the first Android release), whereas JsonReader has been around only since API level 11 (Andro...

Related Keywords:

android menu, android menu example, android menu tutorial, android context menu, arrayadapter count android, arrayadapter, context menu android, arrayadapter example, android create menu, android custom view

Recently parsed news:

Recent searches: