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:
@stungeye “you’re in trouble? good.”— Abulafia (@abotlafia) November 25, 2014
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.
Saturday September 6th at Cousin’s Deli, 55 Sherbrook.
A post-#OGT14-Winnipeg jam session with Richard Pietro.
A Winnipeg Open Democracy Community Hang Out. Let’s talk data and governance and reporting and technology. Perhaps you’ll drink a few wobbly pops.
Round-robin table discussions on:
- The 2014 Open Government Tour with Richard Pietro.
- Available Municipal Data From data.winnipeg.ca.
- A Citizen’s Guide to Interpreting Data.
There will be name tags. Is that a selling point? I hope so.
Register to Attend the Open Democracy Meetup #OGT14 on September 6th.
Next week, a man on a mission will ride his motorcycle into our fair city, as part of an ongoing effort to open up the world of government.
Great article by Noah Erenberg of the Community News Commons about the Winnipeg stop of Richard Pietro’s Open Government Tour.
August 11th is the Winnipeg stop of Richard Pietro’s Open Government Tour. Richard is driving his motorcycle across the country promoting democratic engagement by way of technology, transparency and accountability. I’m the Winnipeg “city champion” for the tour and am organizing the event with the help of my fellow Open Democracy Manitoba members.
The intent of his tour is to “introduce Open-Source, Open-Data and Open-Government to Canadians, hopefully acting as a spark that will help push the movements over the tipping point and change the perspective that this kind of stuff isn’t only relegated to the uber-civically engaged, politico, or super-techie.” [source]
Join us on August 11 at the Millennium Library as engaged citizens. Together we’ll explore the benefits a culture of openness can bring to government.
Confirmed local guests include:
- Representative from Winnipeg’s new Open Data Portal.
- Mary Agnes Welch of the Winnipeg Free Press.
- Colin Craig of the Canadian Taxpayers Federation.
- Charles Thirst of the International Institute for Sustainable Development.
- Dennis Lewycky of the Social Planning Council of Winnipeg.
More details about the planning of the Winnipeg Open Government Tour event.
Historically it’s been difficult to explain a mechanical universe, because it’s difficult to explain the possibilities and limitations of machines*.
It’s now posited that machines compute. That computation describes what machines can and cannot do.
The Lambda Calculus is a tiny system for describing computational machines.
*Machines here refers to mechanical entities like molecules and DNA, not dump trucks. ;)
Lift off with battery packs in series. Our new electronics activity kit!
Sweat Lodge Ceremony
On Monday I participated in a sweat lodge ceremony organized by Red River College Aboriginal Student Support & Community Relations. This took place near Libau Manitoba at the site of a yearly Sun Dance. The ceremony was a teaching lodge led by Bundle carrier, Sun dancer, and Spiritual Advisor for Corrections Services Canada, Brian McLeod.
A sweat lodge is an Aboriginal ceremony of purification, thankfulness, healing, and discovery. The lodge itself is built of saplings lashed together and hung with heavy cloth tarp. A dome maybe 10 feet (3 metres) in diameter, the shape of a great turtle shell.
We offered tobacco to the fire blazing outside the entrance of the lodge. The offering made in the name of all our relations. We knelt and entered the lodge sitting side by side on a circle of blankets. Brian spoke to us of vulnerability, of strength, and of living in a good way.
The tarp is pulled shut from outside. It is dark inside but for the red light of the Grandmothers and Grandfathers, the granite rocks pulled from the fire outside and placed into the earthen pit in the centre of the lodge.
The smell of cedar. The sound of rain. Drumming and rattles and voice. Water on stone; the hot breath of life. Hottest right before the flaps open, only to be closed again. Four cycles of heat. Four doorways. Giving thanks to all our relations. Awash in the fervour of sensation and gratitude.
Pecha Kucha Winnipeg Vol. 18
PechaKucha 20x20 is a simple presentation format where you show 20 images, each for 20 seconds. The images advance automatically and you talk along to the images.
Last night I participated in volume 18 of the Winnipeg Pecha Kucha night at the Park Theatre.
My talk went well, or at least I assume it did. It was a blur once I got on stage. The talk was delivered by auto-pilot Kyle. I found the 20x20 format challenging. With twenty 20 second slides you talk for 6 minutes and 40 seconds. I’m use to lecturing for an hour or more, so this was an interesting exercise in constraint. Producing the slides a week in advanced, and building the talk around them, had me initially trying to cram in too much. Even after a few rewrites for brevity I felt at times like a nervous robot dictating my talking points for each image. :D
Shout out to all the #pknwpg18 presenters. Exhilaration & time dilation. 6 mins felt short, while 20 secs felt long! @PKN_Winnipeg— Kyle Geske (@stungeye) May 23, 2014
The crowd was great. Very welcoming and clappy. The other speakers were engaging and passionate. I was told ahead of time that at past events an ad hoc theme for the night tended to emerge. The theme for last night’s event seemed to be social justice.
Again: social justice. Unofficial theme of #pknwpg18— PechaKucha Winnipeg (@PKN_Winnipeg) May 23, 2014
I was the first to speak. I talked about the experience of building winnipegelection.ca and manitobaelection.ca. I also argued that a well functioning democracy requires engaged and accountable citizens.
Here’s Karenia Niedzwiecki mash-up of the evening:
Government accountability requires citizen accountability. Democracy gives us the chance to say “I’m worth more than you think”. You can think of me as the travel santa… but apparently we’ve all been bad. The most successful matches are made when organizations identify the need. I’d been running for a 1000 days in a row, so I thought, let’s run a 50k for fun. I hope your next vehicle will plug in. We work hard to make this happen—grandmothers and grandchildren, happy and healthy. I know you’ve had a couple of DJs present before, but I have one thing that they don’t, and that’s offspring. Citizen journalism requires a disconnect from self-focus. That’s what I want to avoid… rejection (as a graphic designer or as a comedian).” — source
The sentence Democracy gives us the chance to say “I’m worth more than you think” was from the talk after mine by Dougald Lamont. Mr. Lamont spoke about his research into economic inequality and what we can do about it. I think our talks went well together.
The Shape of Sound - Nik Nowak designs mobile sound sculptures giving sound an extreme shape.
I’ve started blogging about the technologies and processes we are using to build and maintain the Open Democracy Manitoba websites.
Time Lapse of an incredibly detailed hand-drawn city scape. More drawings on Ben Sack’s Portfolio site.
SHE, HE, THEY
THEY had just met.
HE, wearing suit, tie; briefcase in hand.
SHE, wearing flower-print dress, necklace; purse in hand.
"You remind me", says HE, "of you".
“So I am told”, says SHE, “by you”.
THEY begin to walk.
HE, holding HIS briefcase like it was HER hand.
SHE, holding HER purse like it was HIS hand.
THEY walk without speaking for some time. Hand in hand in mind.
HE opens HIS mouth to say something. Nothing comes out.
SHE sees HIS open mouth and it makes HER yawn.
"Look!", says SHE as SHE points.
THEY watch as a crane lowers a steeple onto a now finished church.
“Complete”, says HE.
THEY play at being cranes. What fun it is to dream of strength and amazement.
"Do you think that you might love me?", says SHE.
“How can that be?”, says HE.
“Love at first sight”, says SHE.
Silence. Deep breathes. Pupils widen. Corners of lips curl.
"What does love feel like?", says HE.
“Like the opposite of a stomach ache”, says SHE, “only more pleasant.”
"I feel full", says HE, "but I think that is lunch."
THEY play at being lovers.
What fun it is to dream.
* * *
I wrote this over a decade ago and stumbled across it today while doing some digital house-cleaning. What fun it is to dream. :)
Circus performer Angelica Bongiovonni dances with a Cyr wheel in Cirque Éloize. [via: thekidshouldseethis]
Related: Etereas - Brecken Rivara & Tiana Zoumer dance with hula hoops.
"A hula hoop floats amidst a stunning location of México city. As it moves, a dancer appears and plays with the hoop. Every movement creates lines, impressive shapes and lights that float in the space as if being drawn to gradually create an impressive sculpture in movement."
Has Anyone Ever Flipped Heads 76 Times in a Row?
This article makes for a good companion piece to my post on dice probabilities.
Soon we find out that Guildenstern [in the play Rosencrantz and Guildenstern are dead] has flipped 76 coins, and all of them have come up heads. “A weaker man,” he remarks, “might be moved to re-examine his faith, if in nothing else at least in the law of probability.”
The article goes on to conclude that it’s unlikely that anyone has actually flipped 76 heads in a row. The logic is as follows:
If a coin is flipped 76 times there are 2 to the power of 76 different possible outcomes. That’s over 75 sextillion possibilities. (If it helps, you can think of these flips as a binary number composed of 76 bits.) So the chance of flipping 76 heads is incredibly rare. 1 in 75 sextillion rare.
However, a fun paradox arises: Can I not flip a coin 76 times and then state that based its rarity (1 in 75 sextillion) that I doubt this particular sequence has ever been flipped, even though it just has?!
Perhaps, but it’s important to note that this only works for ordered sequences of coin flips, not the ratio of heads to tails within. This distinction is important because many different sequences can lead to the same heads to tails ratio.
For example, if on my first flip I get tails followed by 75 heads, this is a 1 in 75 sextillion sequence. Compare this with the probability of flipping one tails anywhere amongst 75 heads. Since the lone tails could appear on any of the 76 flips, the probability is 76 in 75 sextillion.
As the heads to tails ratio approaches 50/50, the odds get much better. A sequence containing 38 heads and 38 tails should be tossed once every 11 attempts (approximately). This is due to the large number of sequences within the 75 sextillion that contain an equal number of heads and tails.
Lines Allude a Circle
Lines, lines, lines. Over the past week or so I’ve been working on a computer program (see above) that can generate images similar to my dad’s engravings (see below).*
I’m not quite done, but the eventual goal is to transfer an image generated by this process to a copper plate by way of the etching process in order to print the image to paper.
When the above program has finished, you can click it to start the process again.
Earlier versions of this program can be seen here:
- First Line Intersection Test (Hover mouse over image.)
- Sketching Lines (No circle in centre.)
- Alluded Circle (Similar to the above program but larger and not as smoothly animated.)
* Truthfully I was trying to create an algorithm for something else and stumbled across one that created dad-like images.
Data in Data out. Footage of birds, “processed to extend the moment captured to show trails of where the animal has been / will be.”
Reading and Listening in 2013
I read nineteen books this past year, one more than in 2012, and three more than 2011. Only one of the books was read on my Kobo, the rest were deadtree.
Books Read in 2013
- The Confusion - Neal Stephenson
- Travels in the Scriptorium - Paul Auster
- The Black Tower - P.D. James
- Zen and the Art of Motorcycle Maintenance - Robert M. Pirsig
- Lila - Robert M. Pirsig
- A Feast of Crows - George R.R. Martin
- Outliers - Malcolm Gladwell
- Split Infinity - Piers Anthony
- Inferno - Dan Brown
- Snow Crash - Neal Stephenson
- Virtual Light - William Gibson
- The Yiddish Policemen’s Union - Michael Chabon
- Man’s Search for Meaning - Viktor Frankl
- The Alchemist - Paulo Coelho (re-read)
- Dirk Gently’s Holistic Detective Agency - Douglas Adams
- The Diamond Age - Neal Stephenson
- Inheritance - Christopher Paolini
- Bluebeard - Kurt Vonnegut
- The Westing Game - Ellen Raskin
Read in this order. The only dud was Piers Anthony’s Split Infinity. The best of the lot were the three Stephenson novels (fan boy alert!) and Viktor Frankl’s search for meaning. Adams and Vonnegut provided the laughs. Following Snow Crash with Virtual Light highlighted the shared themes of corporate/religious nation-states, virtual worlds, and oddly, messenger culture. Zen and Lila remain fascinating fourteen years later, although I’ve switched which of the two I prefer.
- The Unconsoled - Kazuo Ishiguro
- The Annotated Turing - Charles Petzold
I’ll attempt The Annotated Turing again. I might have enjoyed The Unconsoled in a different time and place, but I filled yearly postmodern-dream-world quota with Travels in the Scriptorium.
In 2013 I listened to sixty hours of lectures across five courses. Most of these lectures were heard while running outside in both summer and winter months.
- General Philosophy - Oxford - Peter Millican 7hrs
- Psychology - Yale - Paul Bloom 18.5hrs
- Ancient Greek History - Yale - Donald Kagan 20hrs
- Physics and Philosophy - Oxford - Ankita Anirban 1.5hrs
- How We Learn - TGC - Monisha Pasupathi 11.5hrs
A New Year
This year I’ll read the thirty-six short stories featured in A Day’s Read, an audio course from The Great Courses. I also hope to read more non-fiction than in past years.
Currently Reading and Listening
- Good Omens - Terry Pratchett & Neil Gaiman
- No Death, No Fear - Thích Nhất Hạnh
- Practical Object-Oriented Design in Ruby - Sandi Metz
- Great Minds of the Eastern Intellectual Tradition - The Great Course - Audio Lectures
Stuff Dutch People Like
My sister Colleen wrote a book. Her book, Stuff Dutch People Like, is an exploration of the quirky culture of her adopted homeland the Netherlands. It’s based on her blog of the same name. The book is already selling very well in the Netherlands. I am incredibly proud of my little sister!
Although she lives in Amsterdam (and has for the past decade) she’s having a book launch here in Winnipeg this Wednesday, January 8th at 7 p.m. at McNally Robinson (Grant Park Mall). You should come, especially if you are Dutch, are of Dutch ancestry, or are married to a Dutch expat. I can’t promise you any stroopwafles, liquorice, or hagelslag, but I assure you it will be gezellig. I may even wear my red pants.
My daughter and I found a new favourite video. We love it.