Posts
How to use Mathjax in Hugo
Hugo is the static site generator that this site is built with. This is how to enable Mathjax in Hugo so you can write LaTeX in your pages, as I’ve used e.g. in On the Economics of Streaming: Show me the money
Put this in the page source somewhere. I put it in layouts/partials/head-additions.html, but perhaps that is specific to the ananke theme:
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> Now you can put this on your page and have it rendered like you’d expect:
Posts
On the Economics of Streaming: Show me the money
I’ve never spent as much money on music or TV and movies as I do now by paying my Spotify and Netflix subscriptions. But still artists apparently aren’t getting any money for their art. How can this be? Where is the money going?
Below I’ve done a back-of-the-napkin calculation. If all the premium money went to artists we should be listening 45.5 hours/month, but on average, we actually listen 25 hours/month.
Posts
Data Visualization: It Matters How we Show Graphs
Should we show graphs using horizontal lines like this:
Or using “slanted” lines like this? :
Notice that these two graphs actually are showing the same data, just differently.
I’ll argue that it does matter which way we show graphs, and that the correct graphical representation depends on the data the graph is showing.
First, keep in mind that the graph shows values for points in time. E.g. in both graphs, the value at 5:40 was measured to be approx 750,000.
Posts
Perl: Schema for APIs with code generation?
Two things have occurred lately for me in Perl:
I’ve been bitten enough times by un(der)specified RPC and API documentation to make it worth my while to begin documenting the interfaces in schemas. I’ve been bitten by Moose. Using real objects instead of raw hashes. So now all I need to do is find a library that generates Moose classes from JSON schema. ( Nothing on Google ) .
Posts
MSDN Blogs: Looking Forward: Microsoft Support for Secure Shell (SSH)
Fantastic news! MS Windows will support SSH both as client and server. This is superb! “… and there’re not exact days yet. However the PowerShell team will provide details in the near future on availability dates.” Source: MSDN Blogs
Posts
Metadata for beginners
Many people I’ve spoken to seem to think that they don’t have anything to hide, and as long as the government isn’t listening in on the actual phone conversations, then they’re fine with it. As you might guess, I’m not. This slide from 30th Chaos Communication Congress (30C3) hits the head on the nail.
Posts
UN votes to protect privacy in digital age - Hurray!
I honestly don’t understand why this wasn’t more publicized. It is great news! UN votes to protect privacy in digital age (from Associated Press)
Fantastic! Only real good news about this whole NSA scandal I’ve heard in a long time.
Posts
Director of national Intelligence James Clapper lies to US Congress - without consequences?
So, James Clapper, US Director of national Intelligence, lies to Congress. First he calls the lie the “least untruthful” answer he could publicly provide, and then cites a momentary memory failure. Seven congressmen take issue with James Clapper’s testimony, but Obama administration unlikely to turn against director.
See: Republicans demand consequences for ‘willful lie’ by intelligence chief | World news | theguardian.com
Let me recap: James Clapper, a retired lieutenant general in the United States Air Force (you’d think he knows right from wrong, truth from lie), lies under oath to US Congress and it is not likely to have any consequences for him.
Posts
Big Brother sees all but can't keep a secret?
Two news items from this week have me quite uneasy.
The NSA is basically listening in on every US citizen. For the sake of argument, let me assume that they get everything. So far I don’t think we’re quite there yet here in Denmark.
Data held by the Danish police has been hacked. We’re not sure exactly what the hackers have had access to, but we do know they’ve had at least read+write access to all driver’s license data and read access to the Schengen Information System, a large European database on police and judicial co-operation.
Posts
Getting older?
The other day, I was cooking, and it was time to set the table.
Suddenly I found myself standing in the storage/utility room. And I had no idea why I was there. “Peter, you need to set the table! Get back on track!” - I told myself.
So I went back into the kitchen. Looked at the table: What was missing? Ah, drinks. OK, glasses, plastic cup for my daughter, pitcher of water - check.