Because fear is the mind killer.
Warning: Some of the information here may be outdated (outdated software is vulnerable and dangerous). You should only use this document as a template (or ask a friend to do it for you, as explained below).
Because fear is the mind killer.
Warning: Some of the information here may be outdated (outdated software is vulnerable and dangerous). You should only use this document as a template (or ask a friend to do it for you, as explained below).
The "proper" way to do a "cable2graph" free-form text search would be a 3-stage process:
nbh
)g2svg
)If we want to make a cable2graph web service that responds fast enough and doesn't use too many resources, the main concern would be stage 3.
This is a proof of concept for a "search lite" process that may not yield the best possible results,
White House petitions don't have an API yet so I wrote something quick and dirty for a specific petition in reply to a tweet by @PogoWasRight.
This thing scrapes the petition's signatures and produces histograms by state and city as a javascript file called histograms.js
.
This gist contains a snapshot copy of that file (generated when there were ~32K signatures)
This means you can either clone the gist and view index.html
, or simply use Mike Bostock's magic gist viewer.
https://gist.github.com/4544529 (demo) was my first d3 adventure, where I scraped signatures from a White House petition and showed them as a pie chart.
Here, I show them as a US heat map (based on one of Mike Bostock's map demos). You can click on a state, and see how many signatures came from it.
Darker color means more signatures, but since the numbers range from a few dozens to >4500, the scale is logarithmic.
I don't know yet how to use log()
interpolators (I promise to learn), so I just did it quick and dirty with linear()
and masking tape.
Update: This prototype has turned into a bigger project: http://is.gd/CableWeaver
Here's a small gallery of Cable2Graph cable reference culsters (the graphs are named after countries, but they don't "represent" the entire body of cables related to them. It's just a handy naming convention). Each node (circle) represents a cable. Each link (line) represents reference between 2 cables.
HAI 1.2 BTW I DOAN KNOE Y I SAY STUPH LIEK 1.2 LOL | |
I HAS A FUD | |
I HAS A EMPTY ITZ FAIL | |
I HAS A STUPH ITZ MAEK EMPTY A NUMBR | |
I HAS A EATED ITZ "OM NOM NOM U HAZ NO :{FUD} I EATED IT" | |
IM IN YR KITCHEN NERFIN YR STUPH TIL EMPTY | |
VISIBLE "WUT DO U HAS?" | |
GIMMEH FUD | |
FUD, WTF? | |
OMG "NOTHING" |
I live in █████████
Http connection to wikileaks is blocked, https connection isn't (so far)
If I click on an http wikileaks link in a tweet, here's what happens
t.co
linkSince browser can't connect to the long url, it never displays the "bad" url in the url bar (so that I could add the s
to it manually)
The initial version of this page was exported from a CableWeaver story line.
Additional information was then added manually (by The Dod and Taro), and eventually - this story got published at Wikileaks Press.
The initial version of this page was exported from a CableWeaver story line.
Possibly [and hopefully], additional information was added manually. If you have anything to add to this page, don't be shy. Fork us a scoop :)
The initial version of this page was exported from a CableWeaver story line.
Possibly [and hopefully], additional information was added manually. If you have anything to add to this page, don't be shy. Fork us a scoop :)