About | RSS

Stung Eye

The eye of the bee holder.

8-Bit skyline in Japan by @1041uuu.

More 1041uuu gifs can be found on 1041uuu.tumblr including the original daytime version of the above skyline.

Coding is Two Things

Coding is hard because it’s two things:

  1. Expressing ideas in the rigid syntax & grammar of a formal language.
  2. Problem solving.

While learning to code we often focus too much on the first. This is also true while teaching others to code.

This fall I’m going to highlight problem solving while teaching my intro programming courses. Below you will find some of the problem solving strategies I may adapt for my students.

Solving Problems in Five Acts

  1. Define the Problem
  2. Let it Simmer
  3. Plan a Solution
  4. Carry out the Plan
  5. Reflect

via: University of Waterloo Centre for Teaching Excellence

FOWL Problem Solving

Figure out What You’re Being Asked
Organize the Presented Data
Work out the Problem
Look Over Your Answer

via: Geekdad

George Pólya’s Problem Solving Techniques

  1. Understand the Problem
  2. Devise a Plan
  3. Carry out the Plan
  4. Look Back

via: George Melvin - Berkeley University

Also: Pólya’s book on the subject, How to Solve it - A New Aspect of Mathematical Method: Full PDF, AbeBooks, Amazon

Feedback

How do you solve problems?

On reviewing this post Sam suggested emphasising hypothesis and testing when teaching these strategies. I agree that formulating a hypothesis during planning makes room for false starts, while testing adds rigure to the self-assesment of the “Look Back”/Reflect phases. The wonderful part about making these two steps explicit is that we now have something akin to the scientific method:

  1. Statement of the problem.
  2. Hypotheses as to the cause of the problem.
  3. Experiments designed to test each hypothesis.
  4. Predicted results of the experiments.
  5. Observed results of the experiments
  6. Conclusions from the results of the experiments.

Language geek note: The word solve comes from the Latin solvo, to loose an object bound, to release, set free, disengage, dissolve, take apart.

Related Posts on StungEye:

Bike To Work Day Winnipeg

Fancy bike thanks to the Natural Cycle pit stop at Omands creek.

Full Grown - Trees patiently grown into art and furniture.

Ceci n’est pas un visage.

Title: Time
Artist: Kim Laughton

This is a CG rendered face, not a photograph. It was modelled using ZBrush and rendered with Arnold. It took 32 hours to render. I wonder how long it took Kim Laughton to model/sculpt it?

More Hyper-realistic CG on the HyperRealCG Tumblr.

Reading and Listening in 2014

I read twenty-five books this past year. Six more than 2013, seven more than in 2012, and nine more than in 2011. Only one of the books was read on my Kobo, the rest were deadtree. Nine of them were non-fiction and sixteen of them were fiction.

Fiction Read in 2014

Read in that order. No duds this year, although I’ve got two incompletes:

I can normally savour a slow journey but Sterling & Gibson’s creation story for the Steampunk genre lost my interest. The stories in Friend, Follow, Text were harshing my mellow, so I’ve taken a break.

Top Three Fiction Reads

The Remains of the Day

We are a story we tell ourselves, parts of which we try to forget. A gentleman butler of World Ward Two-era Britain remembers so much but admits so little.

This book was full of comments penciled in by a previous reader that shaped the way I interpreted the story.

Ishiguro wrote the first draft of this novel in four weeks.

An Instance of the Fingerpost

A murder at Oxford in the 1660s told four times by four unreliable narrators. Each telling reveals more details and yet introduces more bias.

Shares many historical characters with Stephenson’s The System of the World (up next). It also shares this theme:

Early science is messy and pious. Early medical science more so.

System of the World

I feel like I know Isaac Newton, Gottfried Leibniz, Caroline of Ansbach and the rest of them. I feel like I’ve witnessed the Great Plague, London’s Great Fire, the end of Britain’s Stuart Dynasty, and the birth of modern thinking in science, religion, politics, and business.

I know I shouldn’t trust these feeling but I do.

Some 300 years ago Newton discovered a new System of the World. The predictive power of his three laws of motion made credible the scientific method. The twin calculus methods of Newton and Leibniz gave the scientific revolution it’s analytic strength.

This book is the third and final tome in Neal Stephenson's historical sci-fi trilogy the Baroque Cycle. It is also a tale about swashbuckling pirates, currency, coinage, courage and computation.

Non-Fiction Read in 2014

I fulfilled my goal of reading more non-fiction books. Many of these were inspired by a series of audio lectures on the Eastern intellectual tradition, others were inspired by parenthood as well as our work at Open Democracy Manitoba. They were read in this order:

Audio Lectures in 2014

Great Minds of the Eastern Intellectual Tradition - TGC - Grant Hardy - 17hrs - The best series of lectures I’ve listened to, ever. The content was mind expanding. The lecturing was enthralling.

Consciousness and It’s implications - TGC - Daniel N. Robinson - 6hrs - Difficult and at times even disturbing.

Headspace - Take 5 - A Guided Introduction to Meditation - I’ve been meditating on and off since 2000 (when I took a meditation course in the rain forest near Cape Tribulation, Australia). I’m 25 days into the program and I cannot recommend it enough. Try Take 10 on the Headspace app for free. It’s 10 days of 10 minute meditation sessions. You’ll thank me.

Currently Reading and Listening

Simon SwainEmergence as a game mechanic.

Simon demos a game programmed to play itself. The game involves flocking, resource management, colonization, economics, war and the exploration of deep space. Really.

Explore Simon Swain’s Deep Space.

Uninstalling social media apps for a short break. xoxo

Internet Bots for Fun & No Profit

My talk from last November’s BSides Winnipeg 2013 Security Conference.

I spoke about @abotlafia, my Twitter bot inspired by the “bot” in Umberto Eco’s 1988 novel Foucault’s Pendulum.

To show how little code is required to create automated accounts on Twitter I demo’d a few other bots that I’ve written. Here’s one that Tweets out a random number every five minutes. A modern day Numbers Station.

require 'chatterbot/dsl'

loop do
  tweet rand(1000000..99000000).to_s
  sleep 300
end

I closed with my motivations, the security/ethical implications of algorithmic social media accounts, and the possibility of a future where we are unable to determine who is real and who is a bot on the Internet.

The slides are online, as is the Ruby source code for the bots I wrote for the talk.

BSides Winnipeg 2013 was a two day B-Sides security conference held at the King’s Head in November 2013. All the talks are available online.

UPDATE - Abotlafia’s response to my talk:

The Four Stages of Learning.

Don’t know; Don’t care.
Don’t know; Do care.
Do Know; Do care.
Do Know; Don’t Care.

via: Trivium

An Optical Poem is a visualization of Franz Liszt's 2nd Hungarian Rhapsody made in 1938 by abstract film-maker Oskar Fischinger.

Filmed in stop-motion, all visual elements are hand-placed pieces of paper on wires.

Related: Music for the Eyes - Three takes on computer generated music visualization.

A conversation between two pixel mangling Twitter bots led to some beautiful images.

The bots took turns distorting the data from this source image.

The above image was but one in the series of degraded iterations.

The Bots:

And now I want to start a noise band called Degraded Iterations.

Lift off with battery packs in series. Our new electronics activity kit!