Henrik Carlsson's Blog

All things me.

Johan Norberg: Du har mer pengar än de fattigaste två miljarderna

posted this on

Johan Norberg har många viktiga poänger om förmögenhetsfördelningen i världen:

Men något är konstigt. Min dotter har en förmögenhet på ungefär hundra kronor i sin spargris. Det är nästan ingenting, men jag ser i Oxfams tabeller att hon därmed har mer pengar än de fattigaste två miljarderna har tillsammans! Hur kan det vara möjligt? För att de två miljarderna inte har några tillgångar alls. Det krävs alltså bara några kronor för att vara rikare än dem, och det räcker att de 62 rikaste människorna i världen har 0,7 procent av världens rikedom för att de ska ha mer än den fattigaste hälften.

Johan Norberg: Du har mer pengar än de fattigaste två miljarderna

Och den viktigaste:

Problemet är inte att min dotter har hundra kronor, utan att två miljarder inte har någonting. Problemet är inte ojämlikhet, utan fattigdom.

posted this on

En närstående hävdar att det jag sopsorterar, utom metall och glas, slängs i samma hög i slutänden. Ni som är smartare än jag, är det sant?

(Även på twitter.)

Replies and comments

posted this on

PSA: Idag är sista dagen att göra momsdeklaration för oktober-december 2015 för de av oss som gör sånt kvartalsvis.

Building a WordPress plugin

posted this on and tagged it with Narrating my work WordPress WP River (.js) Reader

Today I started working on a WordPress plugin (I’ll tell you more about it soon). To do that I needed to brush up a bit on my plugin-writing skills. I’ve always found making WordPress plugins unnecessary frustrating but as I searched for some articles about it today I found this:

Since WordPress 2.8, building widgets has been a matter of extending WordPress’ own widget class, WP_Widget, resulting in your custom widget only having to focus on 4 main functions:

  1. Initialisation (__construct) – handles actions to take when the widget is first created such as enqueueing specific javascript or stylesheets in the output
  2. Front-end display (widget) – handles the generation of the widget’s HTML output
  3. Back-end form (form) – handles the generation of the form controls that make up the widgets edit interface in the Admin interface
  4. Update (update) – handles the form submission from the back-end form, updating stored data as necessary

How To Build WordPress Widgets Like A Pro – WPMU DEV

I had completely missed this. In my mind plugins was still this boiler-plate filled bag of hurt. Instead all you got to do is subclassing WP_Widget and replacing a couple of methods. Wow!

As I took the approach suggested in the article and based my code on the sample code in it, I got up and running super-quick. A beta version of the plugin is actually running on my local machine already, after maybe an hours worth of work. The fact that it was so easy makes me very happy and gives me the urge to write more plugins.

Gentlemen & Gangsters

posted this on and tagged it with Böcker Gangsters Gentlemen TV shows

Jag hade tänkt rekommendera tv-serien Gentlemen & Gangsters som sändes i SVT runt nyår men det verkar tyvärr som att tiden då den finns på svtplay har tagit slut. Så du får helt enkelt hitta den på andra sätt.

Gentlemen & Gangsters är en filmatisering av Klas Östergrens böcker Gentlemen och Gangsters. Två olika böcker som släpptes med tjugofem års mellanrum. Gentlemen släpptes som film sent 2014 och nu har den alltså klippts samman med Gangstersmaterialet och gjorts till en miniserie om totalt sex timmar.

Jag började läsa Gentlemen för många år sedan och det är en sådan bok som tog otroligt lång tid att slutföra, inte för att den var dålig eller tungläst utan tvärtom för att den var så intressant och förtjänade att ta tid. I slutänden fick jag ta till ljudboken inläst av Björn Kjellman för att ta mig i mål första december 2014. Det är en brokig rövarhistoria om författaren Klas Östergrens möte med, och skildring av, bröderna Henry och Leo Morgan och om Sverige från fyrtiotal hela vägen fram till sjuttiotalets slut. Det är en historia som tar väldiga turer och som är proppfull med bikaraktärer varav somliga aldrig riktigt får ett avslut. En fantastisk bok helt enkelt!

Jag såg tv-serien när den sändes och fastnade för historien igen. Jag misstänker att serien kan vara rörig för den som inte läst åtminstone en av böckerna, eftersom det är så otroligt mycket som ska klämmas in på kort tid. Men den är spännande och framförallt otroligt snygg och stämningsfull.

I och med tittandet på serien fick jag alltså uppleva Gangsters också. Den delen av historien har jag svårare att komma överens med och sättet på vilken den får läsaren/tittaren att totalt omvärdera Gentlemen på är inte bara bra. Men jag är nyfiken, nyfiken på hur berättelsen är i bokform. Så idag har jag börjat lyssna på en ljudboksversion av Gangsters, läst av Reine Brynolfsson. Hittills har jag inga åsikter om den men det ska bli spännande att uppleva den.

Just det, jag höll på att glömma. Det var fantastiskt att i serien äntligen få höra Europa, Vittrande fragment. Vackert.

posted this on

Tydligen i iBooks.

http://macworld.idg.se/2.1038/1.621379/storsatsning-pa-ljudbocker-i-ios-84

posted this on

Var hittar jag mina ljudböcker i iOS9? De verkar inte vara i ”Musik”-appen där de var förr.

posted this on and tagged it with json jsonp Narrating my work php

Link: Extract JSONP Resultset in PHP

Introducing River5

posted this on and tagged it with River of News

Dave Winer has now formally announced River5. I’m a user of River4, and I’m really liking it. If you don’t yet have a River of News you should check it out.

RSS is alive and kicking and ready to act as the open distribution format for news for many years to come.

Introducing River5

I think Dave is right. RSS is definitely not dead, as some people has implied. It’s more alive and more important now than it has been for a long time. It’s an important piece of the puzzle that let us breath new life into the open web.

I saw The Force Awakens a second time, this time in IMAX 3D

posted this on and tagged it with IMAX Movie reviews Star Wars The Force Awakens

Once again there will be spoilers for Star Wars, The Force Awakens.

A few weekends ago my brother, his girlfriend and me went to see The Force Awakens in the IMAX theater at ”Mall of Scandinavia” in Stockholm. It was an interesting experience since it’s the first feature film that I ever saw in iMax and also the first time I saw a whole movie in 3D.

I am nearsighted and ever since I started wearing glasses I think going to a movie in a theater lost something for me. I can easily start obsessing over almost non-existing smudge on my glasses, to the point that I loose focus on the movie. This problem has been solved since I stared using contact lenses.

Why do I tell you about this? Because the 3D makes this problem a problem again and in a big way. Not only am I wearing glasses again, I’m wearing glasses that has been used and smudged by someone else. Given the look of the glasses the person using them before me must have tried to wipe them clean using a potato chip. So the glasses were gross and that took me out of the movie from time to time.

Even disregarding that, the 3D didn’t do it for me at all. I think it made the movie seem less real, not more as I hope is the intent. It is something about when the depth of a shot, and size of a person in it doesn’t match the apparent distance to which he/she is standing from me that makes my brain cringe. In 2D a great movie can feel like I’m watching actual events unfold. In 3D The Force Awakens felt more like watching a video game from time to time.

Ignoring the 3D, rewatching the movie was great. I had been slightly worried that it would be as great the second time but I do think it was. Yes I laughed/gasped slightly less at somethings but I also feel like I appreciated the story and the whole of it more.

In my earlier review I criticized the movie for the Starkiller Base plot-point.

Which brings me to the Episode IV rehashing. The whole idea of this new super weapon (The ”Starkiller”) and the comparison between it and the Death Star felt silly. I think the plot didn’t need this. The search for the map to Luke Skywalker had been enough for me. That would probably also meant that the filmmaker had found a better way to get the story to the point of the meeting between him and Rey.

It felt really jarring when a super-weapon was suddenly fired after General Hux’s Hitler speech and felt the whole operation against it felt rushed. I felt a whole lot less of this is the second viewing. Now that I knew there would be a super-weapon the pacing of the movie around it felt much better. Because of that I do think that it should have been introduced in the opening crawl. Just a quick sentence about how the First Order is working on getting its super-weapon operational would have been enough for me, I think.

All in all the movie was just as great the second time around and I do want to watch it again and again, maybe even once more in the theater. But I do not recommend anyone to see it in IMAX 3D. Use the money from the expensive tickets to see it twice in a regular 2D theater instead.

Oh, one more thing. Something that I sort of missed the first time was how badly injured Kylo Ren is before his battle with Finn and Rey begins. Off course I didn’t missed the fact that Chewie shot him but on the first viewing I didn’t really think about how clear the movie makes it that Chewie’s bow-caster is a really, really powerful weapon. Everyone that’s being shot by it in this movie is not only dead but also literally blown away from the spot where they stood. Worth noting for those who think that Rey is ”overpowered” and that she should have been crushed by Ren.