User:452
Contents
Status
Edit: "ERR_CONNECTION_REFUSED". :(
- I'm now unblocked, so apparently it's only temporary. Resuming at 1 request per 30 seconds.
Feed
Structure
- feed: Array[3] {
- Objectid: "a88f9898-8ae9-5b33-93e6-a5993daa922c"
- img: "022f762b-9483-519c-8e6e-bd7a0ed5e2ba"
- kind: "post"
- poster: "Frances51"
- profpic: "user-14.png"
- text: "Never will follow the instructions on google maps again."
- }
- prompt {
- reason: "RDBMS completely forgot how inner joins work"
- id: "21bd52d8-a3a4-590f-8888-db854fb52ce3"
- poster: "Bool Hand Luke"
- profpic: "user-4.png"
- img_id: "21bd52d8-a3a4-590f-8888-db854fb52ce3"
- captions: Array[5]
- text:"just two more trips over the horizon"
- album: Array[5]
- }
Prompt varies between:
- img_id and captions array
- text and album array
Script
xkcd = new Object(); xkcd.reasons = new Array(); xkcd.promptusers = new Array(); xkcd.prompttext = new Array(); xkcd.promptcaptions = new Array(); xkcd.feedusers = new Array(); xkcd.feedtext = new Array(); function check(field, value) { if (typeof value == "object") { for(i in value) { if (xkcd[field].indexOf(value[i]) == -1) { xkcd[field].push(value[i]); console.log(field+" "+xkcd[field].length+": "+value[i]); } } } else { if (xkcd[field].indexOf(value) == -1) { xkcd[field].push(value); console.log(field+" "+xkcd[field].length+": "+value); } } } function next() { $.getJSON('http://c0.xkcd.com/xb/feed').done(function (data) { check("reasons", data.prompt.reason); check("promptusers", data.prompt.poster); if (typeof data.prompt.text != "undefined") check("prompttext", data.prompt.text); if (typeof data.prompt.captions != "undefined") check("promptcaptions", data.prompt.captions); for(i in data.feed) { check("feedusers", data.feed[i].poster); check("feedtext", data.feed[i].text); } }); } next(); setInterval('next()', 60000);
(Go to xkcd, and paste it in the browser console.) I've determined 10 seconds to be the time you keep getting the same data, so there's no reason to poll the server more frequently than that.
- However, since the server is now blocking my requests after 20 minutes of doing that, perhaps 10 seconds is too frequent, so I've updated the example to only make 1 request per minute.
You can check on the xkcd variable at any time.
- The surveys do not change as often as the other data.
I'm only interested getting in the reasons, feel free to adapt this script to get whatever else.
- Script updated to get all text fields. Feel free to adapt it to get the image URLs.
Results
My array is currently:
- feedtext[601]
- feedusers[203]
- promptcaptions[441]
- prompttext[95]
- promptusers[82]
- reasons[91]
Reasons
- lights are out, hard drive is taking a nap
- could not evade skifree yeti
- CRM-114 unit malfunctioning
- Desystematized chronodynamic balancing detected in VX Module core.
- Please Insert Riven CD 4
- cat-like typing detected
- sysadmin trapped in well
- error
- butter underrun
- Something went wrong: Something went wrong (Something went wrong)
- hard drive oil depleted
- oh jeez there's a lot of you can you all just hang on for a second please oh frig this is so bad
- PRESS PLAY ON TAPE
- temporal paradox
- Main Bus B Undervolt
- tape on write-protect hole fell off
- RDBMS completely forgot how inner joins work
- undefined is not a function, which really makes you think
- database configuration violates the Prime Directive
- User is not a typewriter.
- server fell in ocean
- mean connection time exceeded
- spontaneous splinal dereticulation
- nanobots in the water
- turns out server was on circuit with lightswitch by door
- user put spaces/vowels in filename
- TRIED TO READ 9TH SIDE OF 8 TRACK
- the system / is down
- electrons too big, stuck in wafer
- error: error code [error] while decoding error code
- butter didn't suit the works
- illegal carrot detected in mail queue
- virtual memory got too real
- could not initialize sound blaster 16
- ERR:INVALID DIM
- aol window in front of netscape window
- bookmarks migrated to Venezuela
- i hurt myself today / to see if i still feel
- lp0 on fire
- unexpected timezone drift desynchronization
- the butter you have dialed is invalid or no longer in service
- butter overflow
- User accepted terms but not conditions
- wrong files
- data too big
- http is down
- server room haunted
- confirmation BIOS
- HTTP 403 and 3/4ths
- general uncertainty
- error: operation completed successfully
- hung up prematurely
- floating point unit no longer afloat
- SQL ejection
- guru meditation #00000025.65045338 press left mouse button to continue
- +++ OUT OF CHEESE ERROR. REDO FROM START +++
- CAPTCHA response indicated parahuman intelligence
- butter to text interface not found
- friday squid blogging
- server aperture too narrow for capital letters
- GSM filter change required
- screws are stripped
- sitemap was held upside down
- UTF-31 decode error
- spin number must be of the form n/2
- cumulonimbus #19 too rabbitlike
- the server is temporarily permanent. Please try another also.
- HTTP 418
- spin cycle still active
- Dave's not registered, man
- This page contains content from the Open Source Initiative, who have blocked it on copyright grounds.
- minimum recursion depth not reached
- Unable to cast variable of type Int32 to Magic Missile
- server had too much to drink
- too many hands on the keyboard
- I got pretty distracted trying to figure out how big space is
- subtle threading bug in turing-complete version numbering system
- firewall caught fire
- unimplemented trap
- helvetica scenario
- ethics in journalism
- dictionary too stiff to read
- <%= reason %>
- overcurrent undervolt caused by vacuum cleaner on same circuit
- our buffer runneth over
- insufficient smoke for current mirror array