10 Print Chr (205.5+Rnd(1)); : Goto 10

January 16th, 2013 by Adrian

10 PRINT

A couple of months ago The MIT Press released 10 PRINT CHR$(205.5+RND(1)); : GOTO 10, written by Casey Reas and friends.

Here is a brief overview taken from the MIT Press website …

This book takes a single line of code–the extremely concise BASIC program for the Commodore 64 inscribed in the title–and uses it as a lens through which to consider the phenomenon of creative computing and the way computer programs exist in culture. The authors of this collaboratively written book treat code not as merely functional but as a text–in the case of 10 PRINT, a text that appeared in many different printed sources–that yields a story about its making, its purpose, its assumptions, and more. They consider randomness and regularity in computing and art, the maze in culture, the popular BASIC programming language, and the highly influential Commodore 64 computer.

You can see the result of this one line of code on YouTube here.

Casey Reas discussed it in a bit more detail during his presentation at the Eyeo Festival 2012. Check out the 30 minute mark in this Vimeo recording.

You can buy the book from Amazon.co.uk or download a free PDF version which is released under a Creative Commons licence.

 

Posted in Books, Generative Art | No Comments »

Book Review: Flash Development for Android Cookbook

September 22nd, 2011 by Adrian

Flash Development for Android Cookbook front cover

Title: Flash Development for Android Cookbook
Author: Joseph Labrecque
Publisher: Packt Publishing
Released: June 2011
Website link: http://goo.gl/icJsk
Amazon link: http://goo.gl/TGBv5

For any Flash or Flex developer looking to create applications for mobile (in particular Android ones) then this is a great book to have on your desk! Weighing in at 372 pages, there is a lot of content in there just waiting for you to try out and play with.

First things first, this is a Cookbook. It’s not a reference title listing every single API and documenting every single class available. Though to be honest, it seems to cover most of the new AIR for Android features. The idea behind a Cookbook is to provide you with a selection of ‘recipes’ or common tasks, and then explain how to go about solving them in a clear and concise way. This book does this brilliantly. It is the sort of book you can dib into when you have a specific thing to get done in your app and you’re not sure where to start. Having said that, I basically read it from cover to cover, and still found it very informative and enjoyable.

The book is broken up into the following 11 chapters …

  • Chapter 1: Getting Ready to Work with Android: Development Environment and Project Setup (10 recipes)
  • Chapter 2: Interaction Experience: Multitouch, Gestures, and Other Input (13 recipes)
  • Chapter 3: Movement through Space: Accelerometer and Geolocation Sensors (9 recipes)
  • Chapter 4: Visual and Audio Input: Camera and Microphone Access (6 recipes)
  • Chapter 5: Rich Media Presentation: Working with Images, Video, and Audio (7 recipes)
  • Chapter 6: Structural Adaptation: Handling Device Layout and Scaling (12 recipes)
  • Chapter 7: Native Interaction: StageWebView and URI Handlers (10 recipes)
  • Chapter 8: Abundant Access: File System and Local Database (7 recipes)
  • Chapter 9: Manifest Assurance: Security and Android Permissions (6 recipes)
  • Chapter 10: Avoiding Problems: Debugging and Resource Considerations (6 recipes)
  • Chapter 11: Final Considerations: Application Compilation and Distribution (10 recipes)

All these chapter are equally important and cover a wide range of features, but which ones you’ll actually need to use will depend on your project and what you are trying to achieve. Although the title of this book specifies Android, most of the code in this book will work equally well on iOS devices and the BlackBerry PlayBook. That’s the joy of developing using ActionScript and AIR! :-)

I was particularly pleased to see that nearly all the code examples were IDE agnostic and didn’t tie you in to the Flex framework. They concentrated on using pure ActionScript in whatever IDE you feel comfortable working in. In fact, Joseph even went to the trouble of explaining any IDE specific stuff using example in Flash Pro CS5.5, Flash Builder 4.5 and FDT 4.1.

Once you have had a flick through at some of the examples it quickly becomes clear that Adobe have done a really good job at providing a consistent and logical API for achieving all these new mobile specific things. And this book does a great job of demystifying it all.

My one criticism would be that there is quite a lot of repetitive code (about 14 lines) in each example, where Joseph sets up an output textfield (and accompanying textformat) for demonstration purposes. But I guess I noticed it more because I was reading the book straight through (not how it was intended to be read). At least this way, each ‘recipe’ or example is self contained and provides everything you need to get you up and running easily.

I did notice a few errors here and there (code and layout), but nothing too serious that would cause you issues.

I’d thoroughly recommend this title to anyone who is interested in creating mobile apps for either Android, iOS or PlayBook using AIR and ActionScript.

Sample Chaper
Chapter 4 - Visual and Audio Input: Camera and Microphone Access can be downloaded as a free PDF file here.

Related books by other authors and publishers include:

Posted in AIR, Android, Books, Mobile | No Comments »

Win Your Wish List with O’Reilly

January 27th, 2011 by Adrian

O'Reilly Books and Videos

O’Reilly are running a competition to ‘Win Your Wish List‘. Post your list on your blog and be in with a chance of winning the whole lot. You have until Tuesday 22nd February.

Here is my list (in no particular order) …

Fingers crossed!

Posted in Books | No Comments »

ActionScript 3.0 Quiz

April 21st, 2008 by Adrian

Learning ActionScript 3.0

I’ve just come across a little online quiz where you can test your ActionScript 3.0 knowledge. It’s a site that accompanies the Learning ActionScript 3.0 book from O’Reilly. It’s not a particulary comprehensive quiz, more of a bit of fun.

I managed to get full marks on most sections, but it looks like I need to gem up a bit on Sound and Design Patterns …

Quiz results

Give it a whirl and see how you get on.

Posted in ActionScript 3.0, Flash | 1 Comment »