Must have Chrome Plugins for Developers

Prompted by Kenneth Auchenberg’s article about web development workflow, I’ve switched back to Chrome to try out the development tools.

First thing on the list is to install a short list of plugins (yes, I know that Chrome splits  them into extensions/apps/themes).

Purely for future reference, in no particular order:

I’ve started using Sublime Text 2 for a work project, so the next thing is to learn to use it more efficiently.

Still a lot to do, and to quote Paul Irish:

SO MANY BEST PRACTICES…

combine and minify css and js; inline @imports; inline small images as data-uri; remove console.log ;remove unused CSS; cache manifest creation; asset revving; dead code elimination; image compression; video/audio transcoding

Not to mention the tools, boilerplate, abstractions, frameworks, workflow, tuning, building and deployment!

Posted in Uncategorized | Comments Off

Football Visualised

Following on with my previous work on a example visualisation of player data, I carried out some more research into the best colour schemes for charts. My initial design was heavily influenced on the current trend for Business Intelligence dashboards to have a dark background. Based on the work of Maureen Stone and Stephen Few, I inverted the colour scheme of the design to provide a neutral consistent canvas for the data.

Here’s the version with a black background and the same one with a light background.

croppedDesign croppedInverse

With any project, there is always a feeling that the design can be improved, but given the time constraints, I left the design work with the intention on revisiting it in the future (!).

The next step was to mark up the basic html page with a simple gridded design and then use Bootstrap css to speed up the process of styling the page. To start with I used actual content, with a plan to replace these metrics and values with placeholders. The final aim was to make the page completely dynamic so that for example, I could swap the summary data for a player based on broad roles, eg goal keeper, defender, midfield or forward.

Once the content had been defined, I modified the css to mimic the original design. I kept the css within the html page initially, purely due to the convenience of editing it. This is the html5 version. Note that the charts in the page are still image placeholders. Again the plan is use d3.js to load in the match data and process it to provide dynamic charts for each player.

Another aspects of the design work was to rough out some ideas of the structure / navigation pages for getting to the player page (with pencil and paper). At the moment the work is purely to play around with the technology and try some experiments in visualisation, but it also balanced with the eventual need to refine the data into a understandable/presentable form. (All stuff for the parts bin)

That said, the next part is to spend some more time playing around with d3 and the data. The plan is to build on the heatmap, and track a player’s position through a game and be able to see how they move around the pitch during a game.

Still no word on the #MCFCAnalytics, though I assume the January transfer window is the one of the busiest time of the year for football analysts…

 

Posted in Data Visualisation, Design, Javascript, MCFC Analytics | Comments Off

Football Analytics

I stumbled on the MCFC Analytics project over the holidays, while looking for some sample data. I’ve signed up for a copy of the full data (and also the advanced XML – does that mean there is more data than the full set?) I’m waiting to hear back from them.

I did a quick scan of other data visualisations using the sample data. The Guardian Data Blog has a couple of interesting chalkboards and there appear to be a few blogs out that that I need to look into.

I also found the Opta developer project and signed up for that – apparently they are planning to make a different set of data available to developers this month, which sounds promising.

In the meantime, I pulled together some basic positioning data and had a play around with miso and Mike Bostock’s Data Driven Documents – d3.js as a way of learning how to use the technology. Here’s a first stab at a heatmap.

One of the areas that the MCFC Analytics project is interested in, is position specific metrics. With that in mind, I took a step back from the development work and put together a sample infographic design to use for player measurement from each game. It still very much work in progress at this point, and I imagine it will change significantly when I get my hands on the data to see what I can extract. One thing that springs to mind immediately is tracking players movements off the ball. This would be essential in calculating the distance a player travels during a match and also their speed.

position

Click the cropped image to see the full graphic.

One obvious extension piece would be to map out set pieces to show player’s positions at each event and provide an animated step through control to see how each event plays out.

Another idea is to build up the player profile through the season and track the player’s performance at home and away games.

Posted in Data Visualisation, Design, Javascript, MCFC Analytics | Comments Off

Update your SDK

Note to self: when returning to a project (JQuery, Flash, Flex, Android, Wowza, Java, Blackberry or Haxe) it is worth spending a few minutes updating any existing SDKs rather than chasing down an obscure bug, only to find that the issue is due to a previous version of the SDK.

Also remember to keep the existing copy of the SDK so that you can go back and run any existing projects with their corresponding SDK versions.

Posted in Uncategorized | Comments Off

FlashDevelop Haxe Class Not Found

I’m playing around with Haxe as part of my on-going search for a good cross platform development language. I recently got a “Class Not Found” error with FlashDevelop when I tried to add the Actuate library to my project.

I’d already installed the library via nme (haxelib install actuate) and I was able to import the code in FlashDevelop, but couldn’t build the swf. After much searching, I found some info from Joshua Granick

First include the library in the NMML project file:

<haxelib name="actuate" />

Then in FlashDevelop, go to Project > Properties, pick the Compiler Options tab and expand Libraries. Add the new library (“actuate”) on its own line. Adding it to your project file is all you need to compile properly, but FlashDevelop still needs you to add it in your project settings in order to get code completion.

Posted in Uncategorized | Comments Off

Manually adding .apk package to Android

Once you have created the .apk package, use the Android Debug Bridge (adb) to transfer the package to your Android device for testing. The adb was previously found in the SDK in the tools directory. The adb is now located in platform-tools.

The command to transfer the .apk is:
adb install pathTo/yourPackageName.apk
After the .apk is installed for the first time you may get an error message when you try to install it again: Failure [INSTALL_FAILED_ALREADY_EXISTS].

The adb requires a flag to re-install the app:
adb install -r pathTo/yourPackageName.apk
Note that this keeps any existing app data.

To uninstall the app:
adb unistall yourPackageName.apk
More information can be found on the developer site (http://developer.android.com/guide/developing/tools/adb.html) and also via the command line adb help

Posted in Uncategorized | Comments Off

Global Lightness in People’s Republic of China

欢迎’ (Huān yíng!)

Some of the Flash-based English language games I created a few years back are being used in the Hong Kong Special Administrative Region. I don’t really expect to be flooded with requests for work, but it nice to know that the resources still meet a need.

Hopefully they will bring in something like the 30, 000 US visitors that use them every month ;)

Posted in Business | Comments Off

Error: Resource entry main is already defined

I got this strange error after editing my main.xml file: “Error: Resource entry main is already defined”, with main.out.xml being created in the same folder.  A quick search then revealed that this is Eclipse, helpfully trying to transform the XML that I had edited. This is the default behaviour whenever the editor has a XML file open and in focus.

I tried to modify the Eclipse launch Configuration as follows:

Open Window>Preferences>Run/Debug>Launching>Launch Configuration.

Check the “Filter checked Launch configuration types:”

Then scroll through the list to “XSL” and check this box too, but the issue remained whenever the XML file had the focus.

The solution I used was to change the launch configuration by opening Window>Preferences>Run/Debug>Launching, and then checking the “Always launch the previously launched application” box.

Posted in Android, Eclipse | Comments Off

Installing Eclipse for Android Development

I’ve set up Eclipse using the  Java Enterprise Edition(Java EE) with Java Development Kit 1.6 (JDK6 – I’m glad it is not just me losing track of what version is what) in order to play around with Live Wallpaper and native Android applications. The installation process was a breeze compared with my previous experience with the IDE.

Configuring it to use the Android Developer Tools (ADT) plug-in was also very quick and easy. The developer guide is really clear and easy to follow – nice work!

I’ve run through the samples and got some Paint on the Canvas, but I miss Flash’s smooth vector shapes :( Next stop vector graphics…

But before that, I’ve installed the color theme, picked a nice dark theme (“inkpot”) and turned off the bold text.

Posted in Android | Comments Off

HTC Desire USB Drivers

In order to connect the HTC Desire to your computer, you need the latest USB drivers.  The simplest way to install these is to run the HTC_Sync.exe (which can be found on the phone).

As part of the initial system check the exe will allow you to install the necessary drivers (and you don’t actually need to install the sync app.)

Posted in Android | Comments Off