coderefinery

Google I/O 2013 – Cognitive Science and Design, and how it applies to Android apps

This is an excellent talk by Alex Faaborg at Google I/O 2013 about cognitive science principles and how they apply to interface design. Here’s a summary of some of the main points and how they could be used to improve your apps: We can search for objects of the same colour much faster than searching …

Google I/O 2013 – Cognitive Science and Design, and how it applies to Android apps Read More »

Data on Android device supported features

I’ve recently been experimenting with OpenGL ES 2.0 on Android for a graphical app (some excellent guides can be found at http://www.learnopengles.com/). So far so good. It turns out that gone are the days of countless fixed function calls like glBegin() glVertex3f() glColor4f() for sending vertex data, nowadays you use shaders for everything and send …

Data on Android device supported features Read More »

Linux: Fixing an unreliable network connection with ASUS P8Z 68-V onboard LAN

Recently I got a new ASUS P8Z 68-V motherboard and CPU, and had been having some strange network issues with it when running Gentoo Linux. The problems included connection failures after random periods of time and generally slow download speeds. The only way to get the connection running again after it failed (which was every …

Linux: Fixing an unreliable network connection with ASUS P8Z 68-V onboard LAN Read More »

Nosetests: Capturing log messages written to stderr

This is a tip for using the Python logging module in conjunction with unit-tests. When using the root logger to write debug messages, e.g. ¬†import logging .. logging.debug(‘x = %s’ % x) to capture the messages and write them to the console when running nosetests, pass ‘root’ to the –log-debug nosetests option. E.g. nosetests test_module1.py …

Nosetests: Capturing log messages written to stderr Read More »

Ubuntu/Debian: see files installed by package

Checking the files installed by a package is easy enough with the Synaptic package manager (Right-click package > properties > installed files tab). Here’s how to get that information without leaving the comfort (cough) of your bash terminal: $ dpkg-query -L package_name For example: $dpkg-query -L flashplugin-installer /. /usr /usr/lib /usr/lib/xulrunner /usr/lib/xulrunner/plugins /usr/lib/mozilla /usr/lib/mozilla/plugins /usr/lib/iceape …

Ubuntu/Debian: see files installed by package Read More »