Henrik Carlsson's Blog

All things me.

House of Cards

posted this article on and tagged it with House of Cards TV shows

Ikväll har Linn och jag äntligen börjat titta på ”House of Cards”. Jag misstänker att vi kommer gilla den serien rejält så småningom men nu, efter ett avsnitt, känns det förvirrande med många gubbar med dolda agendor hit och dit och väldigt oklart vad någon egentligen vill.

Fördelen med att börja att se en sån här serie ganska sent är att nu har vi tre hela säsonger att se innan vi måste börja vänta på nytt.

WordPress’ Link Manager might be really powerful

posted this on

Just a quick note before I head to bed. In a comment to a post I linked to earlier Andy Sylvester points out that WordPress’ ”Link Manager” (aka ”blogroll”) could be used to generate an OPML file.

Per this WordPress support page, you can type in a URL like the following and see the blogroll or links of a WordPress weblog in OPML format:
http://www.hyperorg.com/blogger/wp-links-opml.php
http://andysylvester.com/wp-links-opml.php

To me this seems like a more or less forgotten and highly downplayed feature of WordPress that could be really, really powerful.

I’ll get back to this subject eventually.

Replies and comments

Installing River4 on Ubuntu

posted this on and tagged it with River of News

I just installed River4 on a headless Ubuntu server. Unfortunately it was not as straight forward as it was installing it on my Mac.

If you’re trying to install River4 on Ubuntu, please read this whole article. Don’t do things as you read. Reading it in its entirety will likely spare you some headaches.

Dave Winer, the creator of River4, has an easy to follow guide on how to install River4 on a Mac. To install it on Ubuntu you need to be able to wing it a bit.

The first order of business for me was to install Node.js. I tried to do that simply by running

It seems to work fine so I uploaded the River4 files via my FTP-client of choise. I then navigated to the River4 folder and tried running

And hit a big snag. It turns out installing Node via apt-get does not install NPM. So I tried

Okay, NPM got installed and I tried npm install once again. Still no luck. NPM itself ran but couldn’t download the specified packages.

After doing a bit of searching I found a Stack Overflow post that instructed me to change the way NPM got its data. I managed to do that and it seemed like the install process got further but it still ended up failing, now with and error message telling me my version of Node was too old for River4.

WTF?!? I just installed it. How can it be too old?

Well, after som more searching I found an article titled Node.js v0.12, io.js, and the NodeSource Linux Repositories. I did not read every word of it but the gist of it is that the latest versions of Node is not accessible via apt-get(!). Instead the article gives us the following command-line instructions to run:

# Note the new setup script name for Node.js v0.12
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -

# Then install with:
sudo apt-get install -y nodejs

I’m sure someone smarter than me will know the exact details of what this does. To me it was enough to know that it would allow me to install version 0.12 of Node. So I ran it and then tried to install the River4 dependencies again. Once again it didn’t work.

Out of frustration I removed the entire River4-folder from the machine, re-uploaded it via FTP and tried NPM again. This time it worked and the app could be launched with node river4.js.

When I logged out of the server it stopped working so I learned the hard way that I needed to launch it using nohup node river4.js > /dev/null 2>&1 &. This way it’ll continue running in the background indefinitely.

What to do

This is an attempt of telling you how to go about installing River4 on Ubuntu. I leave absolutely no guarantees. It might not work. It might blow up your server. It might make you sad.

  1. Install the latest version of Node.js using
    > # Note the new setup script name for Node.js v0.12
    > curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
    > # Then install with:
    > sudo apt-get install -y nodejs
  2. Install NPM using sudo apt-get install npm.
  3. Upload the River4 app via FTP.
  4. Run npm install in the River4 folder.
  5. Start the app and server using nohup node river4.js > /dev/null 2>&1 &.

If NPM gives you problems in step 4, try changing where it gets its data:

Replies and comments

What should I do? How should I prioritize my free time?

posted this on and tagged it with River of News Silos The open web

I’m having a problem. I currently feel like I need to ”accomplish” something, and that I haven’t done that in quite a while.

In reality this is so not true. For the last five weeks I’ve been on vacation and most of that time have been spent raising my baby daughter. Before that I worked and raised my baby daughter. So off course I’ve accomplished something. I’m in the middle of raising a human being!

But that doesn’t make the feeling of needing to accomplish something less urgent. What I mean in this case is that I feel that I should create something, something that is visible online.

I have a lot of ideas of things to do and a lot of started projects that doesn’t seem to ever go anywhere. Here are some of the things I want to do/have begun doing:

Make and iOS app and publish it to the App Store.

Last summer I finally managed to carve out the time to learn how to use Objective-C and how to code iOS apps.

I’ve made two apps that kind of works that’s only been used by me and my girlfriend.1 However I’ve not managed to get them polished up to the point where I’ve felt comfortable posting them to the App Store.

This is very common for me. I start something and it gets ”good enough” for me to use it, but then I never make it good enough for others to use.#

The apps are a photo app to create time-lapse photos of something that slowly changes (like a pregnant woman’s belly) and a private photo sharing app that uses WordPress as a backend.

I also have an idea for a River of News based RSS reader.

Remake this blog/website.

Lately I’ve been really interested in the idea of owning your content, in ”POSSE” and the whole indie web, or silo-less web or whatever you want to call it. That has gotten me to start changing things around on this blog to accommodate ”microblog”, ”link blogs” etc. etc. (I’m also highly anticipating Manton Reece’s upcoming microblogging service.)

This has led to some progress but also to a cluttered site, both in terms of the content but mostly in terms of the underlying code and the services I use (for instance IFTTT and Radio3) to make this happen.

I would like to clean up the code and at the same time move forward in adding functionality, like webmentions and some sort of backfeed of comments from Twitter and App.Net.

At the moment it seems like it would be faster to actually start creating a new theme from scratch (although with the same basic look) rather than refactoring the one I’m using. But it also feels like a drag to do that. It feels like I once again start over in something rather then polishing something up. (Do you see a pattern here?)

On the other hand, working on the theme might result in some open source code and that would really be me making something.

Do something cool with one or more River(s) of News

A couple of days ago I installed a River of News aggregator on my computer and I got blown away by it. Unlike other forms of RSS aggregation this seems like the perfect way to consume a large number of current topics via RSS. I also have a strong feeling that rivers of news will be important in a possible future with a more open web. Hell, Twitter is basically a bunch of rivers of news!

Today I also read a post that, among other things, requested a better way for blogs to recommend each other to readers and to curate content from each others blogs. This is likely accomplished by rivers and the OPML files that are the foundations of the rivers.

So I have multiple ideas of things to do involving rivers.

Playing Zelda

Or, I could just continue to Zelda: Majora’s Mask 3D. Sometimes playing a video game can feel like I’m accomplishing things.

Read a book

I really, really, love to read but I read way to seldom. So maybe I should just continue reading Spook Country.

So, what do I do?

I don’t know. Hopefully something productive. I guess time will tell.


  1. Or should I call Linn my domestic partner? Or my fiancé? We are engaged but have no actual plans of getting married. We’ve been a couple for well over a decade, we’ve lived together for eight years and we have a daughter. I this case the English language is really lacking for not having an equivalent to the Swedish word ”sambo”. 

Twitterdiskussion om ”Tvillingupproret”

posted this on

Eftersom Twitter är ett dåligt medium för längre diskussioner så tänkte jag använda den här bloggposten till att skriva ett inlägg i en twitterdiskussion.

Nyligen länkade jag till en ledarartikel på dt.se angående ”tvillingupproret” och kommenterade att jag tyckte att det var Rimlig kritik av tvillingupproret.

Jag fick mothugg på Twitter från Käthe Nilsson (@kathes):

@synvila nej det räcker inte eftersom det behövs två hemma vid tvillingar.

https://twitter.com/kathes/status/625666057068498946

På detta svarade jag genom att fråga, Hur funkar det i länder där det inte finns så generösa föräldraförsäkringar?

och fick två tweets till svar/som motargument:

@synvila det går alltid att hitta andra barn i andra länder som har det sämre.

https://twitter.com/kathes/status/625679495723397120

@synvila varför ska det vara skillnad på enlingar och flerlingar i samma land?

https://twitter.com/kathes/status/625679697767190529

Att säga att man aldrig ska gnälla så länge någon annan har det sämre är ett dåligt argument, det håller jag med om. Men det är inte det jag vill säga med min fråga om andra länder. Min poäng var att ifrågasätta påståendet att antalet föräldradagar (480 + 180) inte räcker, att det behövs två hemma för att ta hand om tvillingar. Detta är uppenbarligen inte sant eftersom det redan idag fungerar med tvillingar utan dubbla antalet föräldradagar (i så väl Sverige som andra länder).

Angående att göra skillnad på ”enlingar” och ”flerlingar” så är det snarare ett ökat antal föräldradagar vid tvillingar (eller fler) som gör att det görs skillnad. 480 dagar är 480 dagar, alldeles oavsett hur många barn som föräldern är hemma med, eller hur? Så eftersom tvillingföräldrar potentiellt är hemma mera med sina barn så får alltså dessa barn fler dagar med förälder hemma än vad ”enlingar” får.

Om tvillingupproret menar att det för millimeterrättvisans skull krävs att varje barn får exakt samma uppmärksamhet räknat i minuter – att 480 dagar hemma med två barn i praktiken innebär 240 dagar per barn – så kan det bli ett problem att ha en förälder hemma med fler än ett barn i jämförelse med en förälder och ett barn. Men även om ”tvillingdagarna” skulle utökas till 480 + 480 så skulle man ha problem eftersom olika familjer hanterar sin föräldraledighet på olika sätt och dessutom kan samma familj hantera det olika vid olika barn beroende på olika livssituation. Att försöka hitta någon exakt rättvisa här går inte.

Dessutom så drabbar denna ”orättvisa” i så fall nästan alla barn som inte är äldst i en familj eftersom äldre syskon som går på förskola får sin förskoletid kortad när en förälder är föräldraledig med ett syskon. Är detta också en orättvisa av stora mått?

Att staten bekostar att man är hemma med sina barn är ingen mänsklig rättighet. Det är en otrolig ynnest och ett privilegium som delvis bekostas av de som inte har några barn. Vi som kan få del av det privilegiet bör vara glada. Att då börja ropa om ”diskriminering” gör att man framstår som bortskämd tycker jag och det är det som gör att jag irriterar mig på tvillingupproret.

A question for WordPress developers #wordpress

posted this on

Imagine a photo-sharing site built with WordPress. For all intents and purposes it’s like Instagram. Every post has a photo, posts can’t be photo-less and you can’t have more than one photo in a post.

Would you implement this using the Featured Image property of a post or would the photo be ”hard coded” so to speak in each post using an <img> element inside the actual post content?

Any thoughts? Please let me know via App.Net, e-mail or Twitter.

A question for David Smith (@_davidsmith) regarding the Feed Wrangler API

posted this on

(This is a question for David Smith, the developer of Feed Wrangler. Since it may be interesting to more people than me I choose to ask it in this public place.)

Edited 2015-07-16 with David Smith’s response.

According to the RSS specification the title of an item is optional. This is especially useful in the context of microblogging.

In Feed Wrangler, when a post lacks a title it gets the title [Untitled]. Is there a way for a client side app to distinguish a post that actually lacks the title from a post that really is titled [Untitled]?

(I realize that this is an extreme edge case. There are probably very few blog posts floating around that is actually titled [Untitled].)


David responded to me:

I don’t expose if a post is actually titled “[Untitled]” or if I was missing its title. Where would the difference be of use?

David Smith (@_davidsmith)

Replies and comments

Vårt USA-äventyr, 2014

posted this on

För ett år sedan var Linn och jag i Los Angeles, sista stoppet på en två och en halv vecka lång resa till och i USA. Vi hann beta av New York, Washington DC, Las Vegas och Los Angeles.

Under resan bloggade vi på en tumblr-blogg och tidigare i år flyttade jag över alla inlägg till den här bloggen.

Så om du vill läsa om vad vi gjorde på vår stora äventyrsresa så kan du kolla taggen USA 2014.

Snipp snapp snut,

posted this on and tagged it with Resa USA 2014

så var resan slut.

Men vi kommer fortsätta att skriva några fler blogginlägg. Det finns dagar och händelser som vi inte skrivit om än och sen tänkte vi skriva några mera generella inlägg om respektive stad och lite allmänna tips för USA-resenärer.

Nu är vi i hemmets trygga vrå i Falun och ska sova för att få rätsida på tiden i våra huvuden.

13:e maj

posted this note on and tagged it with Los Angeles Resa USA 2014

Inför vår andra heldag i LA bestämde vi oss för att våga ge oss ut i trafiken igen. Efter en frukost på det Starbucks som ligger i en galleria som även vårt hotell är hopknutet med så bad vi om att få vår bil framkörd (vi hade den på “valet parking”) och frågade om vägbeskrivning för den bästa vägen till Santa Monica Beach.

Rådet vi fick och följde var att fortsätta nerför “vår” gata Highland Avenue och sedan ta av på den korsande Santa Monica Boulevard och följa den hela vägen till havet.

Vilken otrolig skillnad det var på bilkörningen jämfört med kvällen då vi först åkte in i LA! Nu var vi på en boulevard istället för en motorväg vilket gjorde att tempot var betydligt lägre. Även det faktum att det var dagsljus underlättade otroligt. Det var rent av lite kul att köra bil under den här turen.

Nere vid havet hittade vi Santa Monica Beach och Santa Monica Pier som vi gick ut på. Eftersom det var väldigt varmt så bestämde vi oss fort för att bada så vi köpte handdukar och badskor som komplement till våra medhavda badkläder och gick ner på stranden. Där solade och badade vi i några timmar, vilket var väldigt skönt.

Henrik på Santa Monica Pier

Därefter promenerade vi söderut längs vattenbrynet med siktet inställt på Venice och Venice Beach. Det märktes redan när vi började närma oss att Venice är ett helt annat område än Santa Monica; i Santa Monica verkar det vara “vanliga” människor som hänger medan det i Venice är mer konstnärssjälar.

I <3 Venice

I Venice åt vi en lätt tacolunch och promenerade runt bland kanalerna som har gett området dess namn.

Kanalerna i Venice

Därefter lunkade vi tillbaka mot Santa Monica längs strandpromenaden och sista biten även i vattenbrynet när vi spelade in en film som nog alla har sett. Sedan åkte vi tillbaka till hotellet, bytte om och gick ut för att äta.

Vi valde Musso & Frank som restaurang eftersom vi läst att den var något extra som alla borde prova. Vi var dock inte alls så imponerande. Helt okej men inte alls värt priserna. Trevlig personal!