Homework

Nov
21

Homework: Twitter Earth


texturedSphere2

First of all, have a lovely Thanksgiving break. (Our class will not meet this coming week.)

Email
It’s time to start thinking about your final projects. Select a social network data source (if you have an alternate type of source discuss it with me first) that frequently updates and returns a lot of information. I recommend Twitter, but if you’re attached to another live dataset that’s acceptable. Does it provide user names? Date and time? Geographic locations? Locations within a connectivity network? A text payload? Avatars? Hyperlinks? Links to other users / items / objects in the network? List as many items as you can for your data source. Then imagine some creative ways of harnessing or comparing those pieces of data. How can relationships between separate pieces of data reveal something new? How can 1+1=3? And what story does this tell? How can a data visualization have a narrative? For this Tuesday, email me answers to the above and a synopsis of your attack plan. You may complete your final project solo, or in groups of 2 or 3. Let me know who your partners are.

Build
For next class, show me Twitter. Pick aspects of Twitter data that appeal to you and represent that somehow on a sphere. You might think of this a two problem project. The first problem is accessing data from Twitter that includes latitude, longitude, and some payload that you would like to display. (You might try looking at the Twitter4J library, HTML and RSS scraping, or other.) The second problem is displaying this on a sphere. To partially answer Peter’s question, here’s a cluttered example of plotting points according to lat/long that maintain a “pleasant” rotation: texturedSphere2.zip. Remember, you don’t need to do anything to the latitude and longitude values (other than use the radians function) because lat and long were devised for plotting points on a sphere. This means you do not need to worry about Map Projections or converting to Cartesian space, etc. So how might you add Paths and Agents to this to make easy animations? What about being able to save animation frames, or render out movie frames? Wow me.

Contemplate
If you choose to continue using Twitter for your final presentation then this may build towards that goal. If not, that’s also acceptable. (And your final need not be on a sphere!) While you’re working on this project I want you to continue to think about your final. How will it differ? What things have you learned from this semester that you might incorporate into your final project? For this week’s homework do your own exercise independently, but for the final you may choose to work with one or two other partners.

Listen
Also, listen to Paul Graham’s “Hackers and Painters” interview. I realized that the earlier Paul Graham listening that I assigned you my have been too off-putting to get at the really interesting ideas he proposes. What does he say painters and hackers have in common? (In contrast to say, how architects and engineers might interact.) Please respond to this listening on your blog before next class.

Nov
21

Mapping Points to a Globe


globe_1

Hey y’all. I’ve written a class for mapping points to a globe based on latitude and longitude. It works fairly well so far, but I’m having a few problems  (As you can see, London refuses to map to the correct position). Also , I haven’t figured out how to rotate the boxes so they appear at the correct angle to the sphere. Any ideas?

Here’s a link to the download – hack away and let me know if you have any success!

The Sketch: mapped_globe.zip

My Email: peter.esveld[at]gmail.com

Nov
03

Homework: Schedule Update


I’ve received feedback in regards to your current schedules and have decided to extend the deadline for this week’s homework assignment, Pimp my Data, until next week. (You can let out a big exhale now.)

Here are the specifics: For this Thursday I do expect you to have completed points 1 and 2 of the assignment (respond to the prompts about Edward Tufte and Jonathan Harris on your blogs). Point 3, the weighty part of the assignment, may be a work in progress. You must have your group together, or if you are working solo that’s also acceptable. You must have your three found-images chosen. You must run those images through Processing and display the RGB data somehow. (This could be very light, like just displaying the RGB numbers in space, it does not need to be resolved at all for this week.) I want to see your original images, to hear what data these images are representing, and your plan (vague is fine) for displaying this data in a superior format to the original. We’ll also chat a bit about how to present this next week.

So respond to Tufte and Harris. Show me some RGB numbers in Processing. Convince me you have some goals in mind for your newly-extended presentation deadline. And for reference, here’s the original assignment description.

Oct
30

Homework: Pimp my Data


pimpMyData

1. Edward Tufte
Take a gander at Edward Tufte’s website. If you’ve not seen his books you ought to flip through one the next time you’re in the library or book store. For next week digest the following videos :
1. iPhone Resolution by Edward Tufte (5:46).
2. Edward Tufte interview, August 2009 (10:49).
Expand on the following questions via your blog: With Tufte’s close examination of the iPhone, did you find yourself alerted to interface elements you were aware of but hadn’t paid attention to? Does Tufte make assertions that you disagree with? (Choose a specific example and explain.) Where does Tufte think the best visualizations of today are published? What’s his logic for this conclusion? In general who does he see as the creators of great data visualizations? Scientists? Graphic Artists? Programmers? What’s your own opinion, and what do you consider your label or role to be? How might an “anti-social network” function?

Continue reading →

Oct
24

Image as Mystery Data


mysteryData

For clarification: there is a PNG titled “mystery.png” in the data folder of the example code for your latest homework assignment. This image is 48 pixels wide × 48 pixels high. Each of those pixels contains color data; separate values for the Red, Green, and Blue color channels. (Clearly, the fact that a pixel is made up of RGB is not news to any of you.)

Continue reading →

Oct
23

Homework: Decomposing Images


imageAsData

This week’s assignment focuses on some programming techniques in Processing. Some of you have already created or used Classes in your programs, represented as additional tabs in your Processing sketch. (My latter Weather Example Code used a Class called “Agent” to create and draw many moving red boxes.) For this assignment Classes (and Objects) are a requirement. If you’re still not comfortable with Classes and Objects please read the Processing.org Tutorial on Objects. And don’t hesitate to email me with questions.

Continue reading →

Oct
19

Homework: Weather more (update)


This Thursday we’ll spend the majority of our class time presenting final versions of your Weather assignment. Please take a look again at the assignment’s criteria. Amendments for this revision:

Continue reading →

Oct
16

Homework: Weather More


Next week we’ll spend the majority of our class time presenting final versions of your Weather assignment. Further details to be posted later today… ;)

Oct
10

Homework: XML Weather


Processing Exercise
In class I created a quick demo that grabbed the current New York weather according to the Yahoo! Weather RSS Feed. (I did this using Processing’s XMLElement class.) The feed URL accepts two parameters: 1. p, a US ZIP Code or International Location ID, 2. u, to select between Fahrenheit and Celsius for degree units. For more information see the Yahoo! Weather RSS description.

Continue reading →

Oct
01

Homework: Mystery Data


Mystery CSV Data
Initially many of the responses to the Theme and Variation assignment weren’t “generative” enough. [Edit: I'm very happy to say your second crack at it was great!] They weren’t bottom-up investigations of data. For next week import this Mystery CSV Data and visualize it. (You’ll know what it is when you plot it correctly, but it will require actually playing with the data.) Here it is : mysteryData.csv

Continue reading →