Archive

Archive for the ‘Uncategorized’ Category

August 31, 2011 Leave a comment

Advertisements
Categories: Uncategorized

Jazz lists 2010

December 27, 2010 Leave a comment

A Blog Supreme — an NPR jazz blog — has posted links to a bunch of Best Of 2010 lists. I’ve compiled most of these lists in a CSV file (see below). I made this by hand, typing each entry, so I expect there to be errors. I’ll probably put some time into checking and correcting, but for now, beware. I also decided to make a kind of visual summary, which I put here.

It probably won’t work for anyone using Internet Explorer, and it uses JavaScript. And by the way, the visual summary only includes those CDs which got more than one mention.

Here is the current version of the (tab-delimited) CSV file: jazzlists_edit00.csv.

I tried to include every CD mentioned, but I did not record the CD’s position in the list, even if the CD is listed under a category like “Also good” or “Recently reissued” or whatever. The only exception is when the reviewer clearly marked a section of CDs as not jazz. In that case I did not include those CDs. Otherwise I made no effort to exclude CDs that were not jazz. (So, for instance, Kanye West’s CD appears in the CSV file because he was in several reviewers’ lists next to jazz CDs.)

More info about the CSV file: Row 1 should have links to the original reviews in columns 4 through the 4th-from-last.
Row 2 should have the names of the reviewers in the same columns.

For the rest of the rows:

  • Column 1 has the label name (or is empty),
  • column 2 has CD title,
  • column 3 has the name(s) of the performer(s),
  • columns 4 through the 4th-to-last should have a 1 if the corresponding reviewer mentioned the CD, otherwise is empty,
  • 3rd-to-last column has the number of times the CD was mentioned in the lists,
  • 2nd-to-last has an iTunes link or is empty,
  • last column has an iTunes link to the explicit version of the CD — this is for only one CD; for all others this column is empty.

More info about the visual summary:

  • Each column corresponds to one reviewer, with the tags across the top giving the name.
  • Click on any reviewer’s name to go to the page the list originally appeared on.
  • Each row corresponds to one CD, with the number of mentions given on the far left, and an iTunes link (if available).
  • In the big board in the middle, a square is darkened if the reviewer in that column mentioned the CD in that row.
  • Click on a triangle next to a CD name to bring to the left all of the reviewers that mentioned that CD.
  • Click on a triangle next to a reviewer’s name to bring to the top all of the CDs that the reviewer mentioned.
  • Edit: Added the ability to highlight a row and/or column.  To highlight a row or column, click on the orange triangles on the left or top.  This might be useful for orientation if the user is scrolling in the middle of the board.
Categories: Uncategorized

Screenshots of tkintermap31.py

October 29, 2010 Leave a comment

Categories: Uncategorized

tkintermap32.py

October 28, 2010 Leave a comment

In case anyone finds this blog randomly, I’ll explain what the previous post is about.

In response to this FlowingData.com post, I have made an interactive version of the maps there with Python and tkinter. (I made a comment over there pointing back here to the post below, but that comment is still awaiting moderation. First time that’s happened. Now I feel guilty of something. What did I do?!)

WordPress won’t allow me to upload a text file, so I’ve given the file a .doc extension. The file is here (direct link). To use it, just change the .doc extension to .py and it should work fine.

By the way, this program is a first, rough draft. It’s disorganized. I’ll post updated versions when I get them written.

Categories: Uncategorized

Instructions for tkintermap31.py

October 28, 2010 Leave a comment

tkintermap31 is written in Python 3.1.  If seems to work fine on Windows XP machines running Python 3.1.  This is a first draft.

To run this, you need:

The SVG file from Wikimedia, here (My copy obtained 26 Aug 2010)
The processed data file from FlowingData.com, saved as a .csv file  (My copy obtained 26 Aug 2010)
Correct 3 errors in the SVG file.  tkintermap31 will not run correctly without these corrections:
1) Line   189: In “Yukon-Koyukuk, AL”, change “AL” to “AK”
2) Line  7108: Change “NO” to “MO”
3) Line 15095: Change “WIO” to “WI”
You might want to check that the file names are the same as appear near the top of tkintermap31.py.

When you run the program (if it works) here is what should happen: You’ll see a map of the US, colored in a red-ish color scheme (like in FlowingData.com’s maps).  There should be 3 listboxes on the right, allowing you to choose the data set you want represented, the month within that data set, and the states you would like to select (no need to select any).

Instructions:

Selecting counties:

1) click on a single county to select it
2) control-click on a single county to add it to the selection
3) click and drag mouse to select a rectangle of counties (all counties that _intersect_ the rectangle are selected)
4) select one or more states from the “Select states” menu by clicking, control-clicking, shift-clicking, etc.

Selected counties will be outlined in black.
You cannot individually de-select counties or rectangles of counties.
4) does not work in combination with 1)-3)

Zoom:

If one or more counties are selected, pressing “z” or “Z” will zoom in on the selected counties.

Un-Zoom:

If zoomed, pressing control-z or control-Z will return you to the full map.
(Be patient, it takes a while to draw the map.)

Resizing:

If you have resized the window, and want the map resized as well, press “r” or “R”.
(Again, be patient if resizing the full map.)

Errors:

If you find any errors, typos, whatever, please let me know.

Categories: Uncategorized