The end- almost

Packup

I had to pack up two years worth of stuff in my studio space today because our program is painting/remodeling the space. I didn’t want to have to do this until the actual end of my stay here, but I guess I should really start adjusting to the fact that even though I will be in Doha for roughly six more months I’m really just in a place of transition.. wrapping up the space helped me identify some of the more meaningful things I have collected during my stay. I was even pleasantly surprised when the flowers I pressed more than a year ago fell out of one of the textbooks I was packing into a box.. I pressed them because they are the same blossoms I grew up with in Kuwait.

I know most people don’t need tangible manifestations of their experiences with people and places to retain a sense of them, but I do.. and its incredibly important to me to hold onto these things as witnesses of my life narrative, or something like that 😉

peace, love, and cupcakes,

LM

Processing and Twitter

Screen shot 2013-03-06 at 1.06.42 AM

Recently I’ve been looking into creating some design that is heavily reliant on code and coding. I’m absolutely amazed by all the people out there willing to post the entire code of their sketches, or post regularly to help forums.. I don’t think I’d be able to get through an inch of the world of code without all these amazing and helpful people. Which got me to thinking that perhaps in return when I stumble on things that work I should also share my learning with people so they can gain from it too.

So, this week I was interested in collecting data off of twitter through processing. I found a really straight forward tutorial by Jer Thorp and through tinkering for a few hours I was able to get the sketch to function and collect tweets #Tasmeem.

This is the link to the original post, where you can find all the steps. I am only going to be writing about the things I needed to tweak to get it to run for me, and where I found those tweaks online:

http://blog.blprnt.com/blog/blprnt/updated-quick-tutorial-processing-twitter

Regarding the twitter oAuth process there are a few steps that are different, but its not something you can’t just messing around and figure out. Don’t forget you need all four codes for this to run.

To import the twitter4j library you can’t just simply drag and drop the file into the sketch as is it mentioned on Jer’s blog. You need to manually install the library following the steps listed here:

http://wiki.processing.org/w/How_to_Install_a_Contributed_Library

Here is an image, all the highlighted text had to be edited after I unzipped the twitter4j file, and placed into my sketch folder.

Screen shot 2013-03-07 at 12.16.51 AM

Over and over again I got the error “Cannot find a class or type named Tweet”. I found two really helpfully links:

https://forum.processing.org/topic/twitter4j-error-cannot-find-a-class-or-type-named-configuration-builder

http://stackoverflow.com/questions/14510641/twitter4j-not-recognizing-setrpp-or-tweet-class

Which made me add the following code:

import twitter4j.*;

import twitter4j.conf.*;

And switch out the lines of code about Tweet t = (tweet).. to:

Status t=(Status) tweets.get(i);
User u=(User) t.getUser();
String user=u.getName();

[If you are getting an error about setRpp the last link above had a solution to that also, I didn't]

Here is the edited code:

import twitter4j.*;

import twitter4j.conf.*;

import java.util.List;

//Build an ArrayList to hold all of the words that we get from the imported tweets
ArrayList<String> words = new ArrayList();

void setup() {
  //Set the size of the stage, and the background to black.
  size(1300,800);
  background(0);
  smooth();

  //Credentials
  ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setOAuthConsumerKey("XXXXXXXXXXXXXXXXXXX");
cb.setOAuthConsumerSecret("XXXXXXXXXXXXXXXXXXX");
cb.setOAuthAccessToken("XXXXXXXXXXXXXXXXXXX");
cb.setOAuthAccessTokenSecret("XXXXXXXXXXXXXXXXXXX");

  //Make the twitter object and prepare the query
  Twitter twitter = new TwitterFactory(cb.build()).getInstance();
  Query query = new Query("#tasmeem");

  //Try making the query request.
  try {
    QueryResult result = twitter.search(query);
    ArrayList tweets = (ArrayList) result.getTweets();

    for (int i = 0; i < tweets.size(); i++) {
Status t=(Status) tweets.get(i);
User u=(User) t.getUser();
String user=u.getName();
      String msg = t.getText();
      Date d = t.getCreatedAt();
      println("Tweet by " + user + " at " + d + ": " + msg);
      //Break the tweet into words
      String[] input = msg.split(" ");
      for (int j = 0;  j < input.length; j++) {
       //Put each word into the words ArrayList
       words.add(input[j]);
      }
    };
  }
  catch (TwitterException te) {
    println("Couldn't connect: " + te);
  };
}

void draw() {
  //Draw a faint black rectangle over what is currently on the stage so it fades over time.
  fill(0,1);
  rect(0,0,width,height);

  //Draw a word from the list of words that we've built
  int i = (frameCount % words.size());
  String word = words.get(i);

  //Put it somewhere random on the stage, with a random size and colour
  fill(255,random(50,150));
  textSize(random(10,30));
  text(word, random(width), random(height));
}

Traveling Tap 2

Tap2

Ghadah Alkandari is one of my favorite artists of all time, and she happens to be Kuwaiti. Today I got a chance to participate in a project she is working on called The Traveling Tap. Basically each person who gets a hold of one of the 5 traveling taps she painted gets to take a photo of it, and then upload that image to Instagram with specific hash-tags and location information. I think its a wonderful project, I love how her taps are traveling the world and living a life of their own. I’m honored to have been allowed to take a photo for the project.

Aisha

1 21

Over the past few months I’ve gotten really close to a fellow grad student. She has become my confidant and partner in crime. I don’t think I’ll ever share the same kind of relationship with another person.. I just wanted to make sure my rarely used blog has this moment in its archives, so when after grad school I’m blessed again with the luxury of time I can go back and explain more how great it is to have a true friend like her.

Today is the is the 6th day of the 3rd week of our last semester (Inshallah). Its ticking away so quickly..

Design Crossing

 

Clearly I haven’t kept up with my 60 days sketch project; I got really sucked into reading on my topic.. Oh well..

Our semester started yesterday, and I can tell that with all the work ahead its going to fly by (thankfully). We started our first design project today (during orientation!), which is a group proposal for the Tasmeem design conference. Working in groups is extremely difficult, but it seemed so much easier with the guidance of our new associate director. We brainstormed for a while, put all our ideas on a board and then as a group we clustered those ideas into meaningful proposals. I was the only one to break out and put my own cluster together, and it was accepted. So tomorrow we are taking our four new directions and “exploding them” as Paolo likes to say. I’m supper excited because that means I have a one in four chance of having my idea being chosen by the group as our proposal.. But even if it doesnt get chosen I’ll be just as happy to exhibit work in the conference within the scope of the other proposals since they are all looking really interesting at the moment.

Day 47 – Mother

Obviously not all the work I am doing for my thesis is sketches and experiments, a great deal or it is reading and note taking. I’m really liking my new notebook. Above are the notes I took from a book that focused on the very first and most important relationship in most peoples lives; their relationship with their mothers. Everything I’ve read on the topic is fascinating. This isn’t the first time I’ve been interested in exploring this relationship either, clip here to see my photographic project on the same topic.

Day 51 – Truth or Truth

There we sat, the five of us, on the last day of our field study, in a Muslim run Italian restaurant in the heart of Amsterdam. Not wanting the night to end one of us suggested a game of truth or dare. However after reviewing the types of dares that might be suggested we decided to stick with playing our slightly modified version of the traditional game. It was that game that finally allowed us to put down the masks we so desperately clung to every day of our lives. For a short while in Amsterdam we allowed ourselves to be seen as exactly who we are.

That night changed everything for me.