scrap dump
Jun. 6th, 2014 05:15 amI had intentions to write a blog post declaring 2011 as the Year of the Hacker but never got around to it. We had LulzSec, J3ster, and Web Ninjas. We had Stuxnet. We had Iran hacking certificate agencies. We had the iPhone "Towson" hack. We had noobs getting arrested for using LOIC from home. We had a virus hit control computers for the CIA's drones.
The benefit of modern Javascript+HTML is that you can do anything with it. The drawback of making Javascript+HTML a Turing-complete environment is that you can do anything with it.
I was studying Android programming a few months years ago, and they made this recommendation: "Don't call the UI-construction code directly! Use XML for your interfaces!"
The Android XML format is so painful to look at that I thought it worth my time to design my own alternate domain-specific language rather than use the one they gave me. (I never finished it)
The old practice of web development
<HTML> <HEAD> <TITLE>My Webpage</TITLE>
The new practice of web development
var node_html = document.createElement("HTML");
var node_html_head = document.createElement("HEAD");
var node_html_head_title = document.createElement("TITLE");
node_html_head_title.innerHTML ="My Webpage"
Android and the Web seem to be going in opposite directions there.
I propose a new baseball statistic that weights and combines multiple different types of failure. Call it Derps Per Perp.
For pitchers:
- any appearance including:
- an inning surrendering four or more runs, OR
- any appearance of under one inning that is not the final appearance of that inning.
for batters:
- Hitting into double and triple plays
- Fielding errors
Divide batter stats by factors related to at-bats
Divide pitcher stats by factors related to innings pitched
Statistics for the AL might need to be adjusted due to pitchers not hitting and designated hitters not fielding.