Dont try this on a site with more than a few thousand users. really. deleting this post in 10 minutes.
OOPS Busted!!!
Dont try this on stack overflow or really any other site with more than a couple thousand users. Really Page 26 of 26 52 seconds Jeff Atwood 74 seconds Bill the Lizard 3 minutes rchern 3 minutes Don 3 minutes Nippysaurus 5 minutes Steffen Opel 7 minutes Ivo Trompert 12 minutes code poet 13 minutes Roger Pate 14 minutes Adam Smith 17 minutes ahsteele 18 minutes Mark Hurd 18 minutes Lance Roberts 22 minutes IlDan 25 minutes Sam Hasler 51 minutes pith 56 minutes coobird 61 minutes lexu 76 minutes systempuntoout 78 minutes Margaret 92 minutes ChrisF 93 minutes Andrea Ambu 117 minutes Baztoune 2 hours Jangwenyi 2 hours ChrisThomas123 2 hours Adam Wright 2 hours Yacoby 2 hours Yuval Cohen 3 hours Peter Mortensen 3 hours RegDwight 3 hours xoan 4 hours Dennis Williamson 4 hours Max Shawabkeh 4 hours Maxim Z.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="http://soapi.info/code/js/stable/scripts/Soapi.js" type="text/javascript"></script>
<script type="text/javascript">
// Soapi JavaScript Library
// http://stackapps.com/questions/494
// http://soapi.info/
var apiKey = '';
function init() {
var table = document.createElement("table");
document.body.appendChild(table);
Soapi.RouteFactory("api.stackapps.com", apiKey).Users()
.getPagedResponse(function(data) {
for (var i in data.items.sort(function(a, b) { return b.last_access_date - a.last_access_date })) {
var row = table.appendChild(document.createElement("tr"));
var cell = document.createElement("td");
cell.innerHTML = Soapi.Utilities.getTimeAgo(data.items[i].last_access_date);
row.appendChild(cell);
cell = document.createElement("td");
cell.innerHTML = data.items[i].display_name;
row.appendChild(cell);
}
}, null, function(data) { document.getElementById("status").innerHTML = "Page " + data.page + " of " + (Math.floor(data.total / data.pagesize) + 1) });
};
</script>
</head>
<body onload="init()">
<p>
Dont try this on stack overflow or really any other site with more than a couple
thousand users. Really</p>
<div id="status">
</div>
</body>
</html>