I had an unsuccessful hour of trying to teach myself R today. I’m trying to build a tool to scrape information out of Twitter and then do clever things with it, but sadly it’s not working. What’s more frustrating is that it used to work. Then I upgraded.
Technically speaking, the problem is to do with an OAuth authentication handshake. I seem to have everything in the right place, except I’m meant to plug a URL into a browser and get back a code, and instead … I get nothing. Not a code, not an indication of why I haven’t got a code, nada. Unfortunately, every other person who’s been in this situation and asked about it on the internet has not had the last hurdle in the process, which either means the advice is useless to me, or I’m too ignorant to understand it … and as a result the advice is useless to me. It’s so bizarrely opaque that I suspect there’s something wrong with my head that needs a few hours of sleep to correct it.
And I need sleep. We went to bed just slightly too late last night, but then the woman who screams at the top of her voice at six every morning … started screaming at the top of her voice at five this morning. All her screaming (one phrase in a Chinese dialect, over and over again) woke up the giant Asian cuckoos, which then started their aa-aak-aa-aak-aa-aak chant an hour early, and it didn’t matter if we locked our windows shut and stuck pillows over our faces: we weren’t getting any more sleep.
I went for a run, an epic one-and-a-half miles, rendered agonising by my legs, still sore from yesterday’s workout. (Or Friday’s idiot-dancing.) I came back, slumped on the sofa, and had to resist the temptation to see who won last night’s motorcycle race in Qatar. The race would have begun about 1am, Singapore time and I had resolved to avoid any mention of the result until we had a chance to watch the whole thing.
At 11 this morning, I glanced up and saw the winner, named on the office TV. The actual results of the race were still a great surprise to me, and it was much more exciting to watch than last year’s snoozefests, but it meant I was in a sulk for the rest of the day. Grumpiness and sleep deprivation didn’t help when I needed to connect my statistical contraption to Twitter, and I suppose an intelligent person would have admitted defeat much earlier.
Tonight I’ll sleep, tomorrow I will triumph.
