You are at the newest post.

## April122017

Warning Forever (2003)

A vertical-scrolling shoot-em-up by Hikoza T Ohkubo that consists entirely of boss battles against opponents that are procedurally generated to counter the weaknesses of your fighting style. As you beat each stage, the next boss gets generated with new abilities based on how you destroyed the last one.

This kind of adaptive play, with systems that react to the player’s actions and generate new content based on them is a powerful approach. It gives the player’s actions inherent meaning, demonstrating an active recognition of the choices that are made.

This kind of intimate feedback is difficult to create by hand, because choices need to be anticipated by the designer to be recognized, resulting in a relatively limited set of verbs that the game recognizes. But if we create a procedural system that can communicate to the player in its own language, we can create a dialog between the player and the game.

## March242017

Reposted from lokrund2015 via miriamino
fahrschein-sharing
Reposted from hannes via miriamino
Reposted from jan via miriamino

## February242017

Reposted from karmacoma via qbshtall
Reposted from Flau via qbshtall
Reposted from tfu via qbshtall

## February142017

Reposted from DosAmp via Inte

## September272016

yall have no idea how much i want my job title to be “federally paid lesbian farmer”

When the Commission and the Parliament use their Brexit appointments to make fear change side.

When you brief your new intern on Plux protocols.

The Commission approach on roaming in a nutshell.

## March052016

### Parking Immunity? Diplomats Owe NYC $16 Million in Unpaid Parking Tickets. A Closer Look at the Worst Offenders. I stumbled upon a glorious data set a few weeks ago, which gives information on all unpaid parking tickets in New York City back to 1998. Sounds cool right? Whats not so cool is the fact that the City loaded many rows of the data in their twice accidentally. That meant there were multiple rows with the same ticket number and conflicting outstanding debt amounts. Though I understand that data errors happen, I don’t understand how the City can keep putting out data sets with no ownership and no effective way to send in fixes. A city who cares about the usability of its Open Data can do better. Anyway, once I cleaned up the duplicate data, the first thing I wondered was which license plate owes the most money in unpaid tickets. But when I started poking around to see which license plates had the largest outstanding fines, I noticed many of the worst offenders had a familiar pattern. License plates 001THD, 003THD, 118THD and 129THD were all towards the top of the list. After some research, I realized that these were diplomatic plates. From there, one thing led to another and I found myself calculating how much each countries diplomats currently owe NYC in outstanding parking tickets. A clickable map of the world showing just that is below: All in, diplomats owe NYC$16,024,266 in tickets. The top 20 countries in terms of their diplomatic debt are listed below.  Egypt tops the list with about 2 million dollars currently owed.  Nigeria and Indonesia round out the top 3.

This table begged the question- how did Egypt rack up so many tickets?  A quick look at the worst individual offenders list adds some color:

The car with license plate 001THD racked up $109,165 in fines, which have now ballooned into$223,350 after penalties and interest! That is 1,985 unpaid tickets on a single car (including blocking hydrants 126 times). In fact, the top four Egyptian diplomatic plates owe over $724,000! It’s also interesting to note that an Italian diplomatic plate still owes money for 747 tickets, the top of any European country. The top two hydrant blockers were two Alabanian diplomatic cars with 001GPD (247 hydrant tickets) and 006GPD (172 hydrant tickets). Digging around some more, I noticed that most of this debt is owed on tickets before 2002. What happened in 2002? Mayor Bloomberg came up with a plan where the state department would refuse to reregister cars with large outstanding parking ticket debt. The press release from the city at the time stated: The Parking Program, which finalizes an agreement reached in principle on August 9, requires Diplomatic and Consular officials to pay future parking tickets and a substantial portion of the parking debt that has accrued since 1997. … In addition, if Diplomatic and Consular officials do not pay their future parking tickets the State Department will suspend or refuse to renew their registrations and the City will reduce or eliminate the parking spaces assigned to each mission or consulate. It seems that the program did a remarkable job at reducing unpaid fines, as unpaid tickets dropped by an astounding 95% in one year! But the whole thing about the officials “paying a substantial portion of parking debt accrued since 1997?” Yeah- that clearly didn’t happen. Over the last few years, we’ve started to see the unpaid tickets start to tick back up. That may be because it takes years to pay… who knows. But I was wondering who the worst offenders are in the period after the new rules came into effect, post 2002. It looks like Indonesia has taken over Egypt’s spot on top of the unpaid ticket list, followed by Italy. Indonesian diplomats owe over$25,000 since those changes took effect.

And what about in 2015?  Who is the diplomatic king of parking tickets? 2015′s winner is Senegal by a long shot, whose diplomats currently owe $15,851 for 2015 tickets alone. Over all, diplomats owe$185,400 for tickets in 2015.

The diplomats from Senegal racked up 230 tickets in 2015 including 14 at hydrants, and decided to pay 30% of them, leaving 161 unpaid, more than double any other country.  License plate 0083RDD topped the list for Senegal, with 36 tickets. Note that Senegal’s 30% payment rate is substantially higher than Rawanda, which paid 2% of tickets, and Gambia, which paid 0%.

The data shows that Bloomberg’s Parking Plan worked wonders, but that there are still those who feel they can ignore the laws of the City they work in, simply because they have immunity.   I’m glad that the Open Data can put a dent in that by bringing to light when regulations are being thwarted by those who have immunity, making our city less safe as a result.

Unpaid Parking Violations found here.
All Parking Violations Tickets found here, here and here.
List of mappings from Country Code on License Plate to Country here.

## February192016

when u wake up & delete all ur personal posts from last night

“FANART IS NOT REAL ART!!!”

Do we need to talk about the relationship between the Renaissance and the Bible

I never laughed so hard.

Look I’m not really sure why but I think I made a thing that makes graphs of when people are online on Facebook. It sounds kinda creepy and uh it is. Read along so you, too, can be the NSA. ˙ ͜ʟ˙

## Little green dots

You know those green dots on the sidebar on Facebook that tell you who’s online? How do they get there?  Also there are times next to people who are offline. What are those about?

I was wondering the same things, and so one day I decided to 360 noscope hack Facebook by right clicking and selecting “Inspect Element”.

## I’M IN

We did it team. Anyway alright uhhhh let’s just uh snoop around here reallllll sneaky like

If you reload the page you’ll see approximately fifty-bajillion network requests go off as Facebook desperately tries to load all the junk that it needs to display facebook.com

You might be wondering at this point why I decided to look for interesting things in this mess instead of, I dunno, getting out more, getting a cat, that sorta thing. Anyway hey look a heading

## Finding the good stuff

What’s this “pull” thing?

THAT looks like some #datascience right there. This is the kind of 100% legit secret undocumented “API” that we came here for. Let’s do some reverse-engineering.

It looks like a mapping of Facebook user ids to… their online status? But there’s more than one value? “webStatus” and “fbAppStatus” are both there. What’s more, it tells you what the person is doing on each of the different kinds of statuses.

For example:

• “messengerStatus” : “invisible” means they’re not online on the Facebook Messenger app.
• “webStatus”: “idle” means their web browser is logged in to Facebook, and has the page open, but they aren’t doing anything on the site like moving their mouse or talking to anyone.
• Since we have both of these at the same time, we can tell that this person is likely not using their phone, and that they were using facebook.com recently, but not right now.

That’s already a little creepy that we can tell that about people. But can we do more with this?

You might also notice that there is a value called “la” that is a big integer that starts with “14″. If you I dunno, didn’t have a lot of friends in high school, you might recognise that as a UNIX time stamp - the time in seconds since midnight, January 1, 1970.

Computer Scientists thought this would be a good time to start measuring the time from because the first app was born at midnight, January 1, 1970. The app was a custom emoji pack for an ancient model of phone that would one day evolve to become the first Blackberry.

If you’re wondering why the response starts with “for (;;);”, it’s to, among other things, encourage developers to use a quality JSON decoder, instead of like, y’know, eval().

Anyway that “la” thing stands for “last active”, and tells you the last time the person was active on Facebook, down to the second. Do you see where I’m going with this?

## Roleplaying as the NSA ˙ ͜ʟ˙

So far we have a whole bunch of things which look like this

• A person
• A time
• Whether they’re online or offline or idle
• Which devices they’re online/offline/idle on

This doesn’t seem that interesting at first, since you already know who is online by looking at the sidebar. But what if there was someone always watching the little green dots?

Using the power of computers, you can just write a Python program to listen to what the /pull requests are saying all the time ever, and write it down.

Here’s a screenshot of all the log files I’ve got:

And here’s what an individual log file looks like (the first 10 lines):

Those blurred out things are Facebook user ids. If you think these screenshots look a little bit creepy then YEAH I KNOW RIGHT.

It runs 24/7, and it’s constantly logging online/offline activity data from those /pull URLs using my Facebook cookie.

Writing it was mostly about saying “jeez, all these parameters look complicated” and then blindly copy/pasting them anyway.

Protip, you can right click on any network request in Chrome’s Developer Tools and click “Copy as cURL”. This is amazing and lets you re-run a request from the terminal, as well as give you all the headers and cookies used to run that request in a nice copy-pasteable format.

The first step was to just run that request verbatim in a terminal with curl.

I was expecting it to not work because it looks like it has some sequence numbers in it oh boy BUT it turned out to just take a really long time. I later found out this was because the /pull endpoint is using HTTP Long Polling, which turns out to be like a streaming HTTP GET request.

The only other important parameter to worry about is “seq”, which I’m guessing is the sequence number of the response from Facebook. Just add 1 to the sequence number that the response from /pull gives for the next request and you’re good to go.

If you’re worrying about remembering all this, chill out I got yo’ back, my 100% Terms of Service Compliant implementation of this is available here on GitHub. Standard disclaimers of “I’m so sorry I wrote parts of this in like 30 minutes” apply.

One caveat of the data-collection program that I’ve noticed is that it has false negatives. That is, sometimes it won’t give you a “this person is online” data point, even though they really are online. I guess that gives plausible deniability of…. being offline?

## You should probably get out more

[worried laughter]

## So that’s the hard part done, right?

Let me paint you a word-picture. It’s 11pm, I’m listening to the soundtrack to The Social Network (ironically? meta-ironically? I don’t even know), I have six terminals tiled across two screens as well as fifty thousand browser tabs open and I’m up to my third graphing library.

Making graphs is really hard.

I used matplotlib, but I realised this wasn’t my thesis and I wouldn’t be embedding this ugly graph as a pdf into a LaTeX document that takes 3 passes of pdflatex to render because there’s been a terrible but extremely localised accident where only humanity’s LaTeX to pdf converters have been irreversibly sent back in time to the 80s.

I used bokeh, which claims to be a “matplotlib-killer”, and it was was okay until a friend told me “it isn’t the 90s anymore, you don’t generate graphs server-side. Also your graphs are ugly and you should feel ugly you utter fraud”.

This friend recommended nvd3.js, presumably because you’re not making real graphs in 2016 unless your graphing library is <something>.js and requires at LEAST one other <something else>.js as a dependency. Everyone looks at you like “what, you DON’T already use <something else>.js? Jeez say goodbye to your Hacker News karma. Just apt-get install npm && npm install bower && bower install-” NO STOP IT THIS ISN’T WHAT TIM BERNERS-LEE WANTED”.

I think it took about three times as much time to graph the data as it took to write the code to download it. And the graphs aren’t even good! I gave up on perfecting the graphs so I could just hurry up and write this questionable blog post already. Just think of me resolving pip3 dependencies when you see the ugly graphs.

(°ロ°)☝ AND ANOTHER THING when it’s midnight and your x-axis formatting function doesn’t convert UNIX times into JavaScript date objects properly because there’s no timezone information and I dunno JavaScript was written by some guy in two weeks (yeah I ain’t afraid to call it out what of it) and your binary-search based conversion of sparse timeseries data into uniformly dense timeseries data is causing so many data points to be graphed that it’s slowly crashing Chrome and you’re watching helplessly as your RAM goes up and Chrome won’t close the tab and it just doesn’t seem right that 2016, the year of the Linux Desktop has brought us this situation I mean I thought if you had enough <something>.js libraries this stuff was meant to just scale right up so tha-

## Quit stalling with graphing libraries and show me the graphs

Fine but you’re missing out on top-quality graphing-related banter.

The graphs in this section are all of the online/offline activity of some of my Facebook friends.They consented to it being on this blog post on the condition that it’s anonymous.

## Person 1

Here’s someone’s graph. The x-axis is time, and the y-axis is how online the user is. Possible states for someone’s status are “offline”, “invisible”, “idle”, and “active”. Each coloured line is a different kind of client. It’s called a client because I don’t know I’m an Information Visualisation Professional and I get to make up words like that. Here are explanations for what each of the “coloured lines” means

• status - Not sure what this is. Some kind of client-agnostic status? It doesn’t line up exactly with the activity of the other clients though
• webStatus - Chat activity on facebook.com
• messengerStatus - Status on the Messenger mobile app
• fbAppStatus - Status on the Facebook mobile app
• otherStatus - Presumably shows when people are online on other apps that can access the API that causes them to be considered “online”. OAuth? Random “apps” like Farmville? No idea

Here’s the same graph, with some clumsy drawings on it showing when I think this person is awake/asleep.

You can see the amount of rest they’re getting each day - it’s the width of the “asleep” bit.

You can also see that they were probably asleep from 3am to 10am on February 11, and BOY does it feel creepy writing this.

Of course, this isn’t perfect, since they might be awake and not using Facebook (I know). Having spoken to a few people who were graphed, it’s been a fairly accurate measure of awake/asleep time, as well as “how much do you browse Facebook at work” time ;)

Do you look at Facebook shortly after you wake up? Shortly before you sleep? If so, these graphs are a fairly accurate way to measure when you were asleep, and anyone you’re friends with on Facebook can do it.

## Person 2

I showed this person their graph and asked them some questions.

“Did you go to sleep around 11:10pm last night?”
They said yes.

“Did you wake up around 8:32? That’s a weird time. Was your alarm set for 8:30?”
They said yes.

NSA APPROVED   ✔️ 🆗👌👌 👍✔️👌🆗🆗👍

## Person 3

• The person isn’t online as frequently as the previous examples
• The person isn’t using the Messenger app nearly as much

You can see that their webStatus was “online” on and off from midnight til around 2am, and then again at 10:21am.. I’m not sure if this spiky pattern means that they really were online, then offline, then online again, or if it’s just a quirk of the dodgy undocumented “API” I’m using, or even if it’s just a problem with my code.

Similarly, I’m not sure why there are these weird spikes every three minutes (+- ~1minute) sometimes.

Also, why does “otherStatus” go to offline precisely when “webStatus” goes to online? So many questions! Let me know if you know the answers to any of these things (@Facebook employee friends ;) ;) ;))

Anyway, I hope I’ve convinced you that this is real creepy. I don’t really want to be able to have the power to do this.

## What else can you do with this data?

You can aggregate. Finding the average wake up time/sleep time/time spent on Facebook each day and then looking for outliers sure sounds like a way to find interesting things about your Facebook friends.

You can write a thing to email you every morning with the names and sleep times of everyone who’s had less than 6 hours of sleep.

You could even try and guess when your friends are talking to each other, by looking for times when only a few people are active, although I suspect this would be hard.

I’m sure you can come up with something else, too.

## Why can you do this? Can’t Facebook stop this from happening?

That’s a good question, thanks for asking.

It makes sense for Facebook to be able to do this, since they can tell when everyone is online anyway. But why can your Facebook friends do this to you?

I don’t know all the details of how facebook.com uses all the data that’s sent via the /pull endpoint, but it’s kinda creepy that I can see my friends’ status on every device? I guess they could just give me “web” or “mobile” or “offline”, rather than the full list of statuses for every client, but even that doesn’t solve the problem.

I also see the value in seeing “last active 4h ago” and “last active 1m ago” for Messenger contacts but…. I dunno, here I am making these creepy graphs.

Anyway, I just open-sourced my dodgy graph making thing so now everyone can do this. And who knows how many people have been doing it already?

I’m probably oversimplifying it, though. The smart people at Facebook who write this stuff have probably thought of all of this and found that this way was best.

## Can I stop you from doing this to me?

Kinda. Coincidentally, because my script is always running, collecting data, I show up as “online” all the time. If you were also running a script like this, it would partially prevent what I’m doing from working on you, since you always show up as “online”, no matter what you’re really doing. Activity from the Messenger app will still show up separately, though.

## tl;dr

• You can collect that information over time and use it to keep track of when people are on Facebook, and which devices they’re using.
• You can make a pretty good guess as to what time people are going to sleep and waking up
• It’s creepy, but I don’t see a way for Facebook to stop allowing this while still making their chat app good.

## So how does this make money again?

Oh, no no no. I just uh don’t get out much.

If you want to talk to me about this blog post then I dunno tweet at me I guess. You can also stalk me on GitHub if you want.

For the latest in dumb novelty websites, please direct your browser to http://oneu.se

Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.