Cogitas Blog:
Musings on developing Android apps,
machine learning and misc tech stuff.

Pick of the week links for programmers

Filed under: programming — January 4, 2013

Getting started with data science – advice from Hilary Mason from Bitly for those interested in data science. In a nutshell, “DO IT”.

Mapping with d3 library – a tutorial showing how to make a modest map from scratch using D3 and TopoJSON (by d3’s Mike Bostock).

Make learning your resolution for 2013 – a roundup of a few online courses of interest to programmers.

Mnemonic major system – a mnemonic technique used to aid in memorizing numbers, but associating a consonant sound to each digit then using them to create words. For example, “meteor” has consonants M, T and R, which stand for 3, 1 and 4.

#code2012 visualisation – a visualisation of programming languages used by developpers in 2012, data taken from the #code2012 Twitter tag. So far, javascript is in the lead, followed by java, as in 2011. Globally, the top 10 remains broadly unchanged, except for Scala that scrapped it to #10 (from #13 in 2011) and bash that lost 2 places, from #9 to #11.

Java neural network framework – Neuroph is a Java library (Apache 2.0 license) to develop neural architectures. It also comes with a GUI neural network editor.

Regular Expression for UK postcodes – very useful resource if you need to match UK postcodes! I have actually amended it slightly in the project I am working on, because users do not always provide a space between the 2 sections of the postcode, particularly on mobile devices where typing is still a bit slow. So I have changed the space in the middle of the expression to ( )?. Also, in my project, I have added P to list of possible 3rd letter (see comments on blog post regarding N1P postcodes).

Pick of the week links for programmers

Filed under: programming — December 28, 2012

What will programming look like in 2020? – an interesting thread with various programmers speculating on what programming will look like in a few years from now.

Daydream: Interactive Screen Savers in Android 4.2 – Daniel Sandler takes us through a new Android 4.2 feature called Daydream, with code example.


Pick of the week links for programmers

Filed under: programming — December 22, 2012

Gun Deaths vs. Gun Ownership visualisation – this blog article explains how the author used Wikipedia and R to create graphs that could answer the question “is there a correlation between gun ownership and gun deaths”. With R code and source data files.

Data mining conferences – a list of data mining conferences for 2013.


Pick of the week links for programmers

Filed under: programming — December 16, 2012

Things I wish I learned in engineering school – advice by Rick Cattell, who has worked at Xerox PARC and Sun Microsystems

Is the older generation getting tech-savvy? – interesting article from the BBC News website, with food for thought for hardware and software designers.

Data visualisation job board – a good place where to look if you’re after a job in data visualisation, particularly using D3

UC Berkeley Course Lectures: Analyzing Big Data With Twitter – a semester full of videos

The Guava libraries: Google’s Java core libraries for collections and other goodies – well worth having a look for Java developers, the library includes collections, caching, primitives support, concurrency libraries, common annotations, string processing and I/O

How to know when your Android MapView has stopped scrolling?

Filed under: google android, programming — June 8, 2012

When a user flings a Map on Android, the MapView carries on scrolling after the user has lifted the finger from the screen. Unfortunately, there is no method or event listener to know when the map has stopped scrolling but with a simple custom MapView, you can work it out.


Minesweeper game for Android – with a twist!

Filed under: google android, programming — June 5, 2012

As many people with a Windows computer in the 90s, I have spent several hours of my life playing minesweeper. Over the years, I have come up with variations of how I would like to play the game but done nothing about it… until a few days ago.

Over the week-end, I prototyped and coded a variation, based around bubbles rather than squares, and released it as a free game for Android yesterday.

Screenshot from Bubble Minesweeper

The game works on Android 2.2+, and is designed for both phones and tablets. It can be played in both portrait and landscape mode, though, on a phone, you will get the most of it in portrait mode. The screenshot above is in landscape mode on a tablet (Sony Tablet S).

Download Bubble Minesweeper for Android for free.

Fibonacci sequence in Common Lisp – the power of Lisp recursion

Filed under: programming — Tags: , — April 15, 2011

As I’m currently studying for a BSc in Mathematics with the Open University and I am trying to teach myself Common Lisp, I decided to try and create a function that outputs the Fibonacci nth element. Here it is, I think is a nice example to illustrate how recursion works in Lisp.
(defun fibonacci (n)
        ((> n 1) (+ (fibonacci (- n 1)) (fibonacci (- n 2))))
        ((= n 1) 1)
        ((= n 0) 0)
        (T (print "invalid number"))))

Create an Application class in Google Android

Filed under: programming — Tags: — January 3, 2011

Up until a few months ago, I never created an Application class in Android because I didn’t see the need, after all Android manages all that, right? Then I realised I had a lot of duplicated code in my onCreate() methods for my Activities.

Test tool for your regular expressions

Filed under: programming — Tags: , — December 15, 2010

While trying to understand why \b@ wasn’t matching all words starting with @, I came across this Regular Expression Tester and it helped me work it out. So if you’re stuck, get in there, and make sure to use the “replace with” field so you can actually see matches.

In my case, I needed to match \B@ instead of \b@ (non-word boundary instead of word boundary).

Apps World Conference, Day 1, London

Filed under: programming — Tags: , , , , , , , , — December 1, 2010

Yesterday, I attended the first day of Apps World in London and it was very interesting. I did spend a lot of time in the Developers’ Corner and was inspired in particular by two talks.

Older Posts »