Author Archives: lucaslongo

Happiness

For Computers for the Rest of You we had to read “Happiness In Everyday Life: The Uses of Experience Sampling” by Mihaly Csikszentmihalyi and Jeremy Hunter.

For me the most interesting aspect of this paper is to show how smart nature is. Basically our bodies trigger happiness in us when we are socializing and doing activities that are not stressful but require us to think and use our abilities – from that we see that nature is basically tricking us into finding a partner and evolving into something better by giving us a “cookie” when we are doing such activities. Another interesting finding of the study was that those who actually spent time studying or reading, which bring on lower levels of happiness, report a higher than average level of happiness when doing sports or socializing proving the concept that you cannot know true happiness if you’ve never experienced true sadness.
The second part of our homework was to think of the logging project we want to work on. I am thinking of the following:

  • One illusion I have is that I am a very active person when I am awake and when I sleep I am motionless. To test that I want to use an accelerometer to see how much of my day is actually producing movement. I would use the Nokia accelerometer coupled with a bluetooth equipped cell phone to record and log the information. I would attach the accelerometer to a hat to include class room time as active time – if it was in my pocket the accelerometer would be still. I am also interested in measuring how much I move around at night while sleeping.
  • Another illusion we have is that pictures represent more than what is actually framed. I want to enhance that illusion by recording the gps location, the ambient sound during the time I am taking pictures as well as record what music I was listening to during that moment. This will add some context about the framed object, its surroundings as well as the photographer’s mood. I intend to do this by coupling a GPS, a sound recorder and my iPod/iPhone to the camera. The click of a picture should trigger the GPS for a reading, record ambient sound for 30 seconds and log the name and artist of the song that is playing on my iPod. Some more about this idea here.
  • Inclusive Pong – version 1

    So the new Pong is almost ready – have to figure out some mouseButton bugs… right now you can only adjust the settings of the game OR play it…
    To see the adjust settings game click HERE.
    To play the game without adjustments, click HERE.
    Will post the final version soon.
    As per the documentation I included, here are some features I still need to include:

    • Allow user to change color of background
    • Allow user to change color of text elements
    • Include a color-blind mode – gray scale applied to the entire game
    • Allow user to adjust the speed of the ball
    • Allow user to adjust the speed of the enemy
    • Allow user to play with the keyboard

    iPhone SIM unlocked on a Mac OSX tested on Brazilian carrier roaming on T-Mobile!

    After thinking I would have to go to an Apple store and invent some story that “a friend” messed up with my iPhone and it does not work any – I want a new one – I was able to unlock the iPhone for any carrier!
    It is a “painful” process but with the help of some sites and UNIX knowledge it is done.

    1. To start off with, make sure your iPhone is updated by iTunes (check for updates).
    2. Then you have to “unshackle” the iPhone. I used iFuntastic. Get it here.
    3. Got through the unshackle process.
    4. On the iPhone, run the Installer app that should appear on your home screen and install the following three applications, in this order:
      1. Community Sources
      2. BSD Subsystem (might take some minutes)
      3. OpenSSH
      4. Term vt-100
    5. Back on your computer download the following files to your computer – open the downloaded folder.
    6. Using iFuntastic’s File Manager, navigate to the /usr/bin/ directory and copy the following files to that directory:
      1. iUnlock
      2. ICE03.14.08_G.fls
      3. nor
      4. minicom
      5. bbupdater
    7. Navigate back to the /usr/ directory and now create a new folder called local. Within the local folder, create a new folder called etc. So you should have /usr/local/etc/ in your iPhone’s folder/directory structure.
    8. Back on the iPhone, go to the Home -> Settings -> General -> Auto Lock and set it to Never (this is so that the WiFi connection does not drop during the process)
    9. Now you have to run stuff on the iPhone. Open Terminal (Applications -> Utilities -> Terminal) and SSH into the phone by typing in ssh root@10.0.1.5 (this is your iPhone’s IP address – to find what it is go to Settings -> WiFi and click on the blue arrow next to your WiFi connection). The password is dottie. Then type in the following commands:
      1. cd /usr/bin/
      2. chmod +x bbupdater
      3. chmod +x iUnlock
      4. chmod +x minicom
      5. launchctl unload -w
      6. /System/Library/LaunchDaemons/com.apple.CommCenter.plist
      7. iUnlock ICE03.14.08_G.fls nor
    10. Once that finishes, type in minicom
      1. After the application starts, type in AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0 and then return.
      2. No results were printed out on my screen but it worked.
      3. I was not able to quit minicom so I just exited the entire Term-vt100 by pressing the Home button and entering Term-vt100 again.
    11. Type in the following command in Term-vt100
      1. launchctl load -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist

    That did it for me… put in my Brazilian SIM card from TIM and there I was roaming on T-Mobile’s network… Made a call and it worked. My AT&T card is also working – tested a call, SMS and the EDGE network.
    Ufff!!
    More information about this entire process with more detailed instructions and things to do if something goes wrong: http://iphone.unlock.no/
    Also – this seems to be the wiki with the most up to date information – http://iphone.fiveforty.net/wiki/index.php/Latest_Progress_Report – there is a GUI app called anySIM that they released but it did not work on my phone – had to go the manual way described above.

    Inclusive Pong Documentation

    For “Inclusive Game Design” we had to implement changes in the game to make it more accessible for people with disabilities.

    I’ve identified the following problems with the original game:

    • PROBLEM: The speed of the game can be an issue for the motion or learning impaired. Reference/source:
    • SOLUTION: Allow user to change the speed of the game and skill level of computer, as proposed in the following article:
    • IMPLEMENTATION: I created a settings menu that allows the user to:
      • Adjust the speed of the ball.
      • Adjust the speed of the computer player.
    • RE-BALANCE GAME: Adjusted the skill level settings of the computer player and limited how fast and how slow the game can be set to.
    • PROBLEM: There is no audio feedback for the learning or visually impaired. Reference/source:
    • SOLUTION: Add sounds that indicate game play events, as proposed in the following article:
    • IMPLEMENTATION: Add sounds
      • Game begins
      • Ball hitting the paddle
      • Player scores
      • Game ends
    • RE-BALANCE GAME: Tested different sounds to see which one would fit the game play.
    • PROBLEM: The game has no instructions or a pause when a player scores which could be a problem for the learning or motion impaired. Reference/source:
    • SOLUTION: Provide instructions for the user, as proposed in the following article:
    • IMPLEMENTATION: Added a start screen with instructions and a pause screen in between scores.
    • RE-BALANCE GAME: Added a counter to start the game once the user clicks to start/continue.

    Now have to dive into the code to make all this work 🙂