Henrik Carlsson's Blog

Jul-Gin / X-mas Gin 🎅🏻

Nu har jag bokat biljett!

Arson as a Christmas Tradition: The Gävle Goat – YouTube

In Gävle, Sweden, every year they build Gävlebocken, an enormous traditional Swedish Christmas straw goat. And every year, someone tries to burn it down. Here’s to holiday traditions.

Arson as a Christmas Tradition: The Gävle Goat – YouTube

Normalize (CSS) No More. | shaunrashid . com

En bra variant på ”Irish Coffee”. Rekommenderas!

Nu har Linn och jag sett klart säsong 10 av The X Files och jag kan varmt rekommendera er att aldrig någonsin göra det. Skräp!

larsemil . se | WordCamp 2016

Min vän Emil har skrivit ett inlägg om WordCamp 2016 där han tar upp sin känsla av att konferensen inte går tillräckligt på djupet. Jag vet inte med på WordCamp i år men det var precis den känslan jag hade det året då jag var med, så jag misstänker att jag hade hållit med honom i år också.

Wi-Fi Mesh Systems Compared: eero, Orbi, AmpliFi – The Mac Observer

Wi-Fi Mesh Systems Compared: eero, Orbi, AmpliFi – The Mac Observer

How to fix yellowed plastics on old computers! – YouTube

How to fix yellowed plastics on old computers! – YouTube
Är det någon här som har erfarenhet av Eeros wifi-accesspunkter?

MacBook Pro Review: Touch Bar – YouTube

Jason Snell of Six Colors made a YouTube video as a companion to his MacBook Pro with a touch bar review. In the video he demonstrates how the touch bar behaves in different situations.

Depending on third party adoption of the touch bar, and whether Apple will roll it out to its entire product line fast enough or not, it may either be a very interning new paradigm for computer interaction or it will be a footnote on the road to touch screens everywhere.

Perfekta starten på en trött måndag, Steve McQueen med Sheryl Crow.
Idag var Magnus Carlson bäst i Så mycket bättre. #såmycketbättre

Min gamla telefon och min nya… Eller är det tvärt om?

Ett byte till Android känns alltid som mest aktuellt när jag ska återskapa en nyinköpt iPhone från en tidigare telefons säkerhetskopia.

Det här verkar skumt…

Idag fick jag en present i posten. (Från mig, till mig.)

Novelist John Green and his awesome fans – YouTube

Counted in internet time this is an ancient video but it’s still worth a watch, especially if you know little or nothing about John Green.

Novelist John Green and his awesome fans – YouTube

Dear internet, just because something isn’t spelled out in a movie doesn’t make it a plot hole. A plot hole is when it contradicts itself.

Touché – Touch bar for everyone


Touch Bar for everyone.
Simulate, show and hide, take screen captures.

Källa: Touché – Touch bar for everyone

Anime master Hayao Miyazaki is coming out of retirement to make one last film – The Verge

Back in 2013, legendary Japanese animator and director Hayao Miyazaki announced he would be retiring; making no more feature-length films in order to concentrate on smaller projects. Well, it turns out you can’t keep a good Oscar-winning artist down, and Miyazaki says he’s now coming out of retirement to make one last movie.

Källa: Anime master Hayao Miyazaki is coming out of retirement to make one last film – The Verge

More Zelda – Twilight Princess

I’m still playing Twilight Princess even though I haven’t blogged about it for almost a month. I’ve intended to but haven’t gotten around to it and rather then spend time blogging about playing, up until now I’ve chosen to play it instead.

Once more, this is a game that I think is better the less you know about it so if you haven’t played it and think that you sometime, maybe, possibly, will, stop reading.

So I’ve kept playing and I’ve finished the first two dungeons and I’m getting ready to head for the third one. As far as I can tell I’ve expelled all twilight from Hyrule, so I don’t think I’ll play as a wolf anymore. So far the game is really great. It’s one of my favorite Zelda game, maybe my absolute favorite. I like the darkness and despair about it. It’s gotten me a lot more emotionally invested in the game than I usually are in a Zelda game. The only other time that I’ve actually cared this much about the characters in the game has been Majora’s Mask, hence my idea for the perfect three days, inspired by Groundhog Day.

I like that I know so little, that everything that happens catches me by surprise and that I have very little idea of how far I’ve actually made it into the game. From what the game tells me, this third dungeon will be the last one but based on previous games I might just as well be less than half-way through at this point.

The combats are really intense, both as a wolf and as a human/hylian. Most of the combats feel very intense and the wiimote control scheme makes them feel a bit more real than in other games. You could argue, as some do, that modern Zelda game has lost some of the free world exploration that was such a big part of the first game and if you look at it that way, Twilight Princess is very low on free exploration. There are obstacles spread out all over that makes your path through both the overworld and various underworlds vary linear. However, this does not take away anything from my excitement of playing it. Sure it would be nice to be more free to explore, but I still feel like I’m making the decisions, so I’m happy.

The game also keeps me on the edge of my seat because I feel like I really, really don’t want to die in it and it feels very possible that I might in encounters every now and then. I don’t know if I missed something or if it’s by design, but so far I haven’t manage to find any fairy to keep in a bottle, so I don’t have the usual ”insurance” that I tend to have in Zelda games.

And one more thing, the Shadow Beasts are really creepy! Really, really creepy.

If there’s anything negative to say about the game it’s the fact that some puzzles are hard in a way that doesn’t feel fair. Today I needed to google something for the first time in it. I had no idea about how to taw the Zora’s. (Here’s what I found online. It felt like a failure but I had tried and tried and pondered the puzzle over and over again and when I read the solution I was glad that I did google it. There’s no way I could have figured that out on my own, unless I’ve replayed the game from start and kept playing at a more regular pace. As things are now I’m playing once a week, tops. That means I forget things like a burning lava rock next to a warp portal.

And I’m also very confused by where I’m allowed to start if I’m saving and quitting, so that means I tend to not play if I don’t know that I can put at least two hours into the game.

The situation in the US is seriously fucked-up right now. I feel so much despair. Is this the beginning of the end of the free world?

Some more information on the WordPress bug that I think that I’ve found #wordpress

Yesterday I wrote about a problem that I’m having with a WordPress plugin that I’m working on, and I said that I think it’s a bug in WordPress. Here are some more information about it.

What the plugin is supposed to do

The plugin should cross-post/syndicate any new post to Twitter. There are a lot of plugins already that does this, but I wanted a few special features.

So far so good. This all works as intended. There is however one more thing that it’s supposed to do:

The technical part

The plugin hooks into the publish_post action and early on in its code it checks if ( get_post_format( $ID ) == 'link' ). If it returns true an XPath query retrieves the href of the first <a> element and uses this instead of the permalink in the Twitter post.

The XPath part works just fine in all my tests.

The problem

As long as I post from the WordPress Admin interface, everything works as intended. The problem occurs when I post using the Press This bookmarklet. When I post this way, if ( get_post_format( $ID ) == 'link' ) never returns true, regardless of the post format.

If I create the post using Press This but instead of publishing I save it as a draft and then publish from the Admin panel, it works as intended.

Do you have a solution?

If so, please let me know.

The code is available on GitHub but I’ve kept the repository private since I’m a little bit embraced by the code, but let me know if you’d like to check it out and I’ll add you to the repo.

Is this a bug in WordPress?

I’m working on a WordPress plugin to syndicate my posts to Twitter. I know, there are lots of plugins that does that already but none of the ones I’ve found does it the way I want, so I decided to roll my own. I’ve got the basics working and have been using it on my site for quite some time now. However, I’ve encountered a problem. Here’s how I want it to work:

When I publish a link post, instead of posting a link back to my site to Twitter, it should post the link to the site that I’m linking to. The plugin ”knows” whether it’s a link post or not based on

At first glance this works fine and it worked in development. However, ones I started using it on my site I realized that it only worked some of the times and other times it wouldn’t recognize a link post.

Tonight I’ve managed to narrow it down. It seems like the problem occurs when I post with the ”Press this” bookmarklet. If I do that, even a post that clearly has been givet the ”link” post format still returns false for if ( get_post_format( $ID ) == 'link' ). If I post the exact same content using the WordPress dashboard the post is recognized as a link post and everything else works as intended.

Is this a bug in WordPress? I should investigate this further but right now I need to go to bed, so I’m throwing the question out to you, smart people on the internet, instead.

Blade Runner: The Other Side of Modernity – YouTube

Blade Runner: The Other Side of Modernity – YouTube

Nintendo – Putting Play First | Game Maker’s Toolkit – YouTube

Mark Brown’s video series ”Gamemaker’s Toolkit” is very interesting to watch. In the episode Nintendo – Putting Play First I think he manages to explain to me why the games I play almost exclusively are first-party Nintendo games.

You should check it out!

Jag måste säga att jag är väldigt nöjd med utsikten från kontoret hemma.

Leonard Cohen Dead at 82 – Rolling Stone

2016 cements its status as a sad year for the arts.

Leonard Cohen Dead at 82 – Rolling Stone


Yesterday when Iris was asleep in her bed, Linn and I sat down on the couch to watch some TV. We’ve just finished the latest season on Modern Family that’s available on Netflix in Sweden1, so we needed to find something new. While browsing for a while, not managing to agree on something, Linns sleepiness got the best of her and she decided to fall asleep on the couch instead.

Even though I was really tired I decided to watch something. Initially I was going to start watching Luke Cage but while browsing a list Zodiac by David Fincher showed up. I tend to really like Fincher’s movies and since I hadn’t watched this one, and since it was still reasonably early in the evening, I went with it. At first I thought I might watch half of it or something and then continue another day but the movie drew me in.

It’s a mystery-thriller based on the actual case of a serial killer who called himself ”The Zodiac”. It features a great cast, including Jake Gyllenhaal, Mark Ruffalo, Robert Downey Jr. and Chloë Sevigny, and I loved it.

I knew very little about it when going into it. I wasn’t even sure if the text at the beginning that proclaimed it to be based on actual events were true or not2 but it totally got me hooked in just a few minutes.

The thing that I really like about David Fincher’s movies is that he thinks, or at least the movies gives the impression that he thinks, that I the viewer is an intelligent and observant person. He loves exposition but not in a bad way.

Also this movie, unlike Fight Club and Gone Girl – which are the two most Fincher movies that I saw most recently3 – is free of irony. It’s an honest thriller that has me invested in solving the crime and that, in a few instances, makes me genuinely scared.

Oh, and in case you don’t obsessive click all the links that I put in this post, you should absolutely check out this one, David Fincher – And the Other Way is Wrong, from Every Frame a Painting. It’s a great analysis of Fincher’s style and as far as I can tell it doesn’t really spoil any of his movies, so you can watch it even if you haven’t watched all his films yet.

  1. I think it’s season 7. 
  2. It is. 
  3. I saw Gone Girl for the first time, Fight Club was a rewatching. 

Do you make these 6 home mastering mistakes ? – Production Advice

Home mastering is hard – but it IS possible.

Do you make these 6 home mastering mistakes ? – Production Advice

It’s going to be okay. – The Oatmeal

It’s going to be okay. – The Oatmeal

Net neutrality is suddenly on the chopping block – The Verge

Against almost all expectations, Donald Trump has been elected president of the United States, and suddenly, the future of the open internet looks radically different.

Net neutrality is suddenly on the chopping block – The Verge

Näthatade spelprofilen Anita Sarkeesian får 2016 års Pingvinpris prisas – Dagens Nyheter

Den amerikansk-kanadensiska spelprofilen Anita Sarkeesian tilldelas svenska Pingvinpriset. Detta för modet att fortsätta sin kamp mot könsstereotyper i tv-spel, trots att hon utsatts för rena dödshot.

Näthatade spelprofilen Anita Sarkeesian får 2016 års Pingvinpris prisas – Dagens Nyheter

Who is Mike Pence – the man who looks like he’ll be Donald Trump’s vice president

Donald Trump, the Republican candidate for US president, chose Mike Pence as his vice-presidential running mate earlier this year.

The Indiana governor, 57, has had a long career in political office, but has a fairly small profile outside his home state.

Here’s what you need to know about him:

Who is Mike Pence – the man who looks like he’ll be Donald Trump’s vice president

R.E.M. – It’s The End Of The World – YouTube

R.E.M. – It’s The End Of The World – YouTube

And I feel sick. 

Regardless of the outcome today, at least it will be the last time in a few years that we need to hear about a US presidential election.

Upgrade #114: Get On Down to Dongle Town – Relay FM

Myke Hurley and Jason Snell had a good discussion on the new MacBook Pros, USB-C dongles, the lack off Mac Pros, etc. on this weeks episode of Upgrade (#114: Get On Down to Dongle Town)

. Their optimism is a nice contrast to the doom and gloom on ATP (#194). Jason has almost convinced me that the Mac Pro might indeed not be dead.

Beslutsångest! Ska jag köpa ett par Genelec 8010 som planerat eller ska jag lägga lite mera pengar och köpa 8020? Ungefär 1700:- skillnad.

Matilda Molander: Moraltanterna har bytt underkläder – Dagens Nyheter

För om man säljer underkläder är det inte mer än naturligt att de visas på halvnakna människor. Att de är sexiga är inte heller särskilt konstigt. Det är inte när kvinnor är sexiga och lättklädda i en underklädesreklam som jämställdheten är i fara. Det går utmärkt att vara stentuff svetsare, affärskvinna eller vårdbiträde med raffset under.

Problemet är att människor ständigt ska lägga sig i vad kvinnor har eller inte har på sig, och att klädvalet tros vara ett hemligt kodspråk med instruktioner för hur kvinnan i fråga bör behandlas. ”Så som hon gick klädd får hon ju nästan skylla sig själv.”

Matilda Molander: Moraltanterna har bytt underkläder – Dagens Nyheter