Category Archives: homework

WWW – Simple access to web pages

I’m building an interactive experience which makes use of available weather data, much like the data services made available by the BOM or the OpenWeatherMap. This means I need to be able to load data from the web, parse it and then transform 3D geometry based on real world locations and the loaded weather data.

That’s a whole load of stuff to figure out and then pull together, so I’m making a start by learning how to load data by retrieving the contents of URLs and weather specific data, just to get the whole thing going.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//using System.Xml;
//using System;

public class SimpleWebAccess : MonoBehaviour {

	IEnumerator Start()

		WWW www = new WWW ("");
		yield return www;
		print (www.text);


Related links

Service Design Boot Camp at GA

On Saturday 20 August I attended the Service Design Boot Camp workshop at General Assembly in Melbourne, which was pretty cool. I’ve been interested in the discipline for some time, exploring aspects of design process, prototyping, testing and iterating with Coursera’s Design: Creation of Artifacts in Society open online course online course, but I’ve never had the chance to embrace it fully face-to-face, until now. Awesome.

On the promotional page for the workshop they said “This course is for anyone that has an interest in applying the design process to solve complex problems. It’s likely you’ll have many transferable skills or experiences that will be put to use through the course of the day.” Cool. That’s exactly what I want to be able to do.

What did we do?

In the workshop we worked through the components that make up the practise of service design:

  • Discovery: gaining empathy and understanding the needs and pain points of users.
  • Ideation: Developing a range of ideas on how to develop a solution to meet the needs of all users.
  • Prototyping: Testing and iterating, including the customer experience, “front of house” interactions, and back of house dependencies.
  • Communication: Articulating the many facets of your offering in a concise way.








“How might we..” “for…” “so that…”


Deliver – Service blueprinting and role play

Completed service blueprint for our solution.
Completed service blueprint for our solution.
We use role play to articulate the customer journey and services we designed.

Leading practitioners

Build failed (Error from inside the Android tools)

I’m not alone. There are others who’ve experienced the same failed build as an Error from inside the Android tools, check the console with Processing 2.1? or an Android java issue. Some have solved the issue. I haven’t. Even the working through the processing android instructions and getting busy in the terminal to make it easier to examine the file system hasn’t resulted in a successful build.

It’s terminal.


Loading text files

Making my way through the Loading text files from the hard drive recipe from the Processing 2 Creative programming cookbook source code on GitHub.

In this recipe, I learned how to use the loadStrings() function to load a text file from my hard drive into the String array. I also learned how to loop through the array in the draw() function and then use the number of characters in each line of text to calculate the diameter for the ellipse to be drawn.


I’m having trouble with the surfaceTouchEvent

I’m having trouble with the surfaceTouchEvent in the Responding to touch interaction recipe from the Processing 2 Creative programming cookbook source code on GitHub.

I’ve worked through the Troubleshooting,  Discussion and Known issues, Common problems, Understanding changes to processing.core sections of the Android page of the Processing Wiki, but still no success.

Unsurprisingly, someone else posted a similar issue with Android Multitouch on Processing 2.0.X on the Android Processing Forum. Unfortunately their solution (import. android.view.motionEvent) doesn’t seem to resolve my issue.


Time to sort this one out.

Accessing screen size and density

Making my way through the Accessing screen size and density recipe from the Processing 2 Creative programming cookbook source code on GitHub.

In this recipe I learned how to use the Android DisplayMetrics class to determine general information about the display of the device used to run the sketch.  While this is more of a diagnostic recipe than a creative one, I think it’s pretty useful way for finding out more about the capabilities of your device which could then inform the way you code your sketch. Nice.



I don’t always require an affirmation, but when I do, I prefer the Bene Gesserit’s litany against fear

Inspired by Tom Woodwards’s Dune-themed tweet on 24 April 2014, Rhys Fulber and Bill Leeb’s production on Fear Factory’s Fear Is the Mindkiller EP and the Bene Gesserit’s litany against fear and based on Jan Vantomme’s Drawing text and Running your sketch on an Android device  Processing recipes on Github, I created this portable litany against fear as a fun exercise in combining , expanding and learning further from the recipes I’ve worked through so far.


Extending the functionality

I’d like to extend the portable litany against fear by creating functionality that allows for use of:

  • sound by including pre-loaded audio samples that play as each line of the litany is displayed
  • custom text and audio affirmations to be entered by users
  • events such as display of text and playing of audio or other events to be triggered by touching and swiping of screen by the user.


Running a sketch in the Android Emulator and on a device

Making my way through the Running your sketch on the Android Emulator recipe from the Processing 2 Creative programming cookbook source code on GitHub.

In this recipe I learned how to run a sketch on my Android device. I did this by  creating a sketch from the sample code, enabling USB debugging on my device and then selecting Run on device from the Sketch menu in Processing. Processing then compiled the code and then installed it on my device. Neat.



Unfortunately, I had some issues with running my sketch in the Android Emulator. Not a huge problem.


I also learned how much fun it can be to install an Android SDK and then try and get it to work properly with Processing. I had an issue with successfully running a sketch in the emulator and on a device using Processing 2.1.2 and the latest Android SDK.


Of course, I didn’t think that I was the only person who’d ever had this issue. So, I poked around on the Processing Forum and found a forum post with solutions to the Android java issue that was similar to my own. Downgrading Processing from 2.1.2 to 2.0.3 was the solution that worked for me. Awesome.

Drawing triangle and quad strips

Making my way through the Drawing triangle and quad strips recipe from the Processing 2 Creative programming cookbook source code on GitHub.

In this recipe I learned how to use the QUAD_STRIP and TRIANGLE_STRIP parameters inside the beginShape function to draw triangle or quad 3D geometry to screen. With some work, QUAD_STRIP and TRIANGLE_STRIP could be used to draw 3D grass and lawn geometry on screen for Sew, Grow and Mow as an alternative to pre-modelled geometry. Maybe.


This code draws the QUAD_STRIP and then rotates it around the centre of the screen. I particularly like how vertex (x1, y1, 0) and vertex(x2, y2, 50 + i) are used to add two vertices to the shapes with each iteration of the for loop.