Code

Post Reply
Javier
Posts: 11
Joined: Tue Sep 21, 2010 6:01 pm

Code

Post by Javier » Fri Jan 14, 2011 10:36 am

Code Files for the lab sessions will be posted here.

Javier
Posts: 11
Joined: Tue Sep 21, 2010 6:01 pm

Files for Lab 1

Post by Javier » Fri Jan 14, 2011 10:57 am

These are the 3 processing examples used on Lab 1:
xmlStripper.pde : reads all the xml files on the data directory and parse them to a text file, all the check in files for oct 29 2010 are included on the data folder.
DewVsnoDewVis1.pde: Reads the text file generated by the xmlstripper and plots 3 types of graphs -> bargraph, a spine plot graph and a grayscale tile map.
CheckTime.pde: It reads from the text file and plots a scatter graph showing the time an item has been check out against Dewey category. The number of items is mapped to dot size.
Attachments
Lab1.zip
(2.98 MiB) Downloaded 386 times

Javier
Posts: 11
Joined: Tue Sep 21, 2010 6:01 pm

Files for lab 2

Post by Javier » Fri Jan 14, 2011 11:32 am

Dayfromdatabase_pde.pde: Reads a hard -coded day from the mysql databases to to fill the Dewey and NonDewey information, then it plots the same 3 graphs from previous lab.
FreqQueryTotxt.pde: Makes a query of number of transactions with some specific string on the title. A query is made on each month from 2007 to 2010. The results of the query are save to a text file.
Plotbarfreqfromtext.pde: Uses the text files generated from previous sketch to plot a bar graph. Test files for the search terms: che Guevara, Michael Jackson, garfield and 2012 are included.
mysql commands.txt: some examples of mysql queries.
Attachments
Lab2.zip
(35.45 KiB) Downloaded 383 times

Javier
Posts: 11
Joined: Tue Sep 21, 2010 6:01 pm

Files for using IDs

Post by Javier » Tue Jan 25, 2011 11:27 am

Those are the files that show alternatives for using the IDs in queries.
Attachments
DEmoIDs.zip
(17.83 KiB) Downloaded 366 times

Javier
Posts: 11
Joined: Tue Sep 21, 2010 6:01 pm

Code for lab 3 - Treemaps

Post by Javier » Thu Feb 03, 2011 9:25 am

For the Treemaps lab, we are going to use the Ben Fry's library available on:
http://benfry.com/writing/treemap/library.zip and the processing sketches attached.
Attachments
Codetreemaps.zip
(3.59 KiB) Downloaded 371 times

Javier
Posts: 11
Joined: Tue Sep 21, 2010 6:01 pm

Code for Lab 4

Post by Javier » Tue Feb 22, 2011 11:13 am

Two Sketches showing basics of animation and 3D using Peasycam and OpenGL
Attachments
Lab4.zip
(4.89 MiB) Downloaded 384 times

Post Reply