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:
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. Which means that Spotify is keeping 45% of my subscription, and only paying 55% to artists.
Data Visualization: It Matters How we Show Graphs
Should we show graphs using horizontal lines like this:

Or using “slanted” lines like this? :

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.
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
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.
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.
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.
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.
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. They’ve been lurking around in there undetected for 6 months. Do you believe that is all they’ve had access to? In 2011 Pentagon Admitted 24,000 Files Were Hacked too.
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. “Hey, I’d like a Coke”, so I opened the fridge. No Cokes. Should probably put some in the fridge for next time I want a Coke. I went to the utility room, and suddenly it hit me: That is what I was doing in the storage room! Getting Cokes for the fridge!