Archive for the ‘Uncategorized’ Category

update and migration

Wednesday, June 17th, 2009

i’ve updated the site’s design and will be migrating it to a new server over the next couple of days. in the meantime, please forgive any oddities (but feel free to let me know about them – i’m currently dealing with the code examples formatting right now).

also, all the old permalinks are dead and i need to fix that.

[my] summer of code

Friday, May 22nd, 2009

iconIn preparation for several iPhone application development gigs which have lined up for the summer I’m getting back into my previous projects. Specifically, I’m going to get Follower and Pinwheel ready for release and am looking to push them out to the AppStore in the next month or so.

Also, as an exercise to get working with a web API I’m building an iPhone native client for SHIFD, called Slide. Right now it’s overly simplistic, but I much prefer the native app to the mobile web app. I’m not sure if I’m going to keep it as a learning project or also invest the time and resources to make it another released application.

All this is in service to building out cloudreader.me, the online version of the CloudReader generative text animation project. I’d like to make that something available sometime.

Vacation

Tuesday, May 19th, 2009

On a much needed vacation following the ITP Spring Show. Just back from a week in Philadelphia catching up with beloved places and friends. Looking forward to a few more days of relaxing in NYC before getting back to work.

Simple things feel so good. (warning: geekery)

Wednesday, March 4th, 2009

Toggle an integer variable between 0 and 1. Useful for a flag to control program flow in C without boolean types.

toggleVar = 1>>toggleVar;

What this is doing is right shifting the integer 1 either zero or one place, depending on the current value of toggleVar.

An 8-bit (unsigned – positive values only) integer has 256 possible values. This is a byte of information whose bits can be represented in binary as 00000000. The least significant bit, the smallest values are on the right…so, 00000001 = 1, 00000010 = 2 … 11111111 = 255.

Ok, this isn’t a binary lesson…so, right shifting is simply moving all the bits to columns to the right. 2>>1 = 1 or, 00000010 >> 1 = 00000001 (which is binary for 1).

The expression at the top does exactly this: When toggleVar is zero, it becomes 1>>0 = 1 and when toggleVar is 1 the expression is 1>>1 = 0. The last bit gets shifted right into oblivion!!! (sorry for that).

Of course, with boolean data types toggleVar = !toggleVar is still shorter, by one char! :)

Thinking Physically: brauswitch demonstration

Saturday, February 21st, 2009

kara_brauswitchFollowing up on the initial post about the brauswitch – the eyebrow activated headband switch. Here is some video with a simple application demonstrating it’s use. There are separate switches for both the left and right sides. The simple Arduino code listed below will indicate if the left, right or both sides have been activated. A Processing sketch reads the serial output of the device and plays a variety of sound samples.

There is something really nice about the amplification of a small facial movement and the larger audio/visual response of the sketch. It’s also nice to interact in a handsfree way. Oh! Fun. Code after the video. (more…)

pinwheel, pinwheel…spinning around…

Wednesday, January 14th, 2009

…look at my pinwheel and see what i’ve found.

here’s the promised update to the earlier pinwheel post with a video of it in action. this is just a demo of the animation, i’d like to work more on the compositing and to add some user interaction. i’d like to perhaps have a user blow on the phone and cause the wheel to spin more quickly. for now, this is what i’ve got.

iPhone pinwheel: 4in4 day two

Tuesday, January 13th, 2009

the iphone is missing one of my most beloved relics of os x…the pinwheel, aka beachball of doom/death. i wanted to experiment with using the core graphics framework to draw to the screen and create animation and this was an interesting experience.

the animation is too slow currently…i feel that i’m doing things in a really inefficient way at the moment. i had also tried using UIImageViews and animating them, but i couldn’t figure out a way to get the spinning layer to composite using the overlay blend mode…which you can easily do with core graphics contexts.

i’ll try again later, but i really need to get away from the computer and onto my bike to train (which is a matter of about five feet now that it’s dark and icy out). i’ll post a video if i can get the animation on the phone to happen more quickly.

pinwheel

meggy! MEGGY! (and nyc resistor)

Friday, January 9th, 2009

meggy boardnyc resistor had one of their craft nights last evening, where they invite folks to come in to work on just about anything “so you don’t have to make stuff by yourself.” i had been missing my community fix now that ITP is on winter break, so heading over there to assemble my new meggy jr rgb kit from evil mad scientist seemed like the things to do. (more…)

openID! FTW?

Wednesday, January 7th, 2009

so, i finally set up an openID service using my blog URL as the identity. it was a pretty simple affair using phpMyID….this is for a single user (me) after all. there are other openID packages…i tried simpleid first, which looked promising, but had some issues with caching persistent logins…their php scripts had a bugaboo sending an array to the md5() function when it was expecting a string. i tracked down where the array was coming from ($_SESSION['user']) but couldn’t clear the bug.

anyway…holding my brand spanking new openID high, i set out to use it to authenticate my credentials to….well, no one of consequence. for all this chatter of openID from the big players (google, yahoo, microsoft) it looks like they are all offering their own, already existing account authentication as openID providers. that’s not what i want at all. i have an openID provider…http://robertcarlsen.net/ is all the proof i need to verify my identity using openID.

someone please tell me that i’ve missed something glaringly simple….and that there are several major sites that will allow me to use my openID…not their accounts as openIDs for…who? i can’t find another major site that is allowing me to USE the openIDs they all are boasting to offer…comments?

oh, hello there.

Sunday, January 4th, 2009

oops. school’s out and i’ve completely ignored documentation. looking to correct that, please accept the following communiqué:

the winter show went very well – it seemed that cloud reader was well received. most of the favorable comments were split among two categories…those which really liked the performative aspect of the project and could envision it large on a wall….and those who reacted strongly to the intimate aspect of seeing it running on the iPhone screen.

since the project was originally designed for the small screen in ITP’s 2×2 class, the comments were enough to encourage me to finally get around to iPhone application development. i’ve looked over various objective-c, cocoa and iphone docs over the past year, but never really made a commitment to actually learn or apply it. now i’m driven, and have come to love square braces :)

separately and coincidentally, sean from golden cheetah decided to extend justin and i write access to the svn codebase and the website. he’s been quite busy and gc development has stalled for it. although i’ve been busy with school, between the three of us we should be able keep abreast of patches and implement new features.

i’m trying to be cautious with the project…i don’t want to do something that will expose me as a (programming) fraud! justin and i were able to get it working happily in xcode…although the QMAKE_CXXFLAGS += -DGC_BUILD_DATE=”`date +’\”%a_%b_%d,_%Y\”‘`” compiler directive in src.pro was causing qmake to create non-parseable xcodeproj files…i think it may have to do with escaping special characters. justin sent a bug report to Qt…hopefully we’ll hear something at some point…for the time-being i’ve commented out the line in the .pro file and added a conditional define in MainWindow.cpp.

so, tinkering with the golden cheetah code has be getting me comfortable with code that isn’t java and i think i’ll be well on my way to get to with with cloud reader for iphone…come on apple and approve my developer application!