Skiing in Romme (Sweden) on April 1, 2016

Lovely, just lovely. You can’t have more luck with the weather this far south in Sweden with spring already arriving. What made it so great was the fact that I was accompanied by two first-time skiiers who really went for it. Damn proud I am of them!

20160401_0298 20160401_0285 20160401_0280 20160401_0279 20160401_0266 20160401_0256

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

Snabbt alternativ till lunch, om man tycker om protein från Budo Fitness och protein bars från Maxim

MorningGloryOm du som jag har lite bråttom runt lunch ibland och inte riktigt får tiden att räcka till, så kan Black Madness Morning Glory från Budo Fitness vara ett alternativ. Tillsammans med en schysst proteinbar från Maxim så blir det ett någotsånär mättande energiintag. Black Madness Morning Glory heter förvisso Morning Glory, men fungerar precis lika bra runt lunch faktiskt.

Däremot kan jag verkligen inte rekommendera någon proteinbar från Budo Fitness då de mest säljer skräp och godisliknande produkter i den kategorin. Maxims produkter tycker jag håller absolut högsta klass vad gäller “bars”. T ex deras 40% protein bar (Double Chocolate, Almond Caramel och Brownie) för att inte tala om deras 54% bars som också dem finns i flera bra smaker. Förvisso har Maxim också “godisprodukter”, men de är ganska tydliga med att deras XL bars innehåller socker.

 

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

wget segfault | wget segmentation fault

We mirror the Webmin website to bring it somewhat closer to Sweden, and recently I had to move the hosted mirror to another of our servers running Debian 8. All of a sudden, a cron job that had been working for many years went tits up with a segmentation fault.

Odd, to say the least. It became even more strange when I turned on “verbose” (-v) output and wget told me that “UTF8 cannot be converted to UTF8”. This is a truly silly error message, imho. wget apparently knows the local encoding, and it apparently knows the remote encoding, so why is it attempting a conversion when there’s non conversion needed?#stupid

Hello?

Adding –no-iri to the wget command-line solves this issue.

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

Adele på Tele2, biljetter via AXS och Stockholm Globe Arenas, ett ord #fail

AXS_Adele_StockholmGlobeAXS och Stockholm Globe Arenas. Adele på Tele2-arena.

Det är din tur.

Välj platser. 4. Accepterar utspridda platser. Bästa lediga plats. OK. Finns inga.

Välj platser. 3. Accepterar utspridda platser. Bästa lediga plats. OK. Finns inga.

Välj platser. 2. Accepterar utspridda platser. Bästa lediga plats. OK. Finns inga.

Välj platser. 1. Bästa lediga plats. OK. Finns inga.

Ehm … OK … skall jag välja noll platser nästa gång?

VEM I HELVETE HAR SKRIVIT DEN HÄR BOKNINGSAPPLIKATIONEN? Det kanske inte är läge att börja testa en installation i samband med att Adele släpper biljetter. Ni borde f-n skämmas. #fail

Stockholm Globe Arenas och AXS … leta efter andra utvecklare. Hallelujah!

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

Discrimination should be annihilated / Diskriminering borde utrotas

Discrimination in all its forms should be annihilated. The rest is just a bunch of politically correct bullshit from people who feel comfortable hugging the staircase railing of their wanna-be comfort zone crowd. Are we equal, hell no. Do we deserve the same rights, support, possibilities and responsibilities, hell yes. When the shoe fits …

 

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

Using Shared Resources from your Linux workstation in your RemoteDesktop (RDP) environment and Windows Server

remminaIf you, like me, are using Ubuntu – or similar – for your daily stuff and need to connect to a Windows Server by using RemoteDesktop (RDP) / TerminalServer, you may find that local (Linux) resources are not made available to you on the Windows side.

The Remmina client on at least Ubuntu 14.04.LTS is very outdate. Go grab the latest version directly from their site. Installs without issues and gives you a “somewhat” more up-to-date RemoteDesktop Client for Ubuntu Linux.

sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
sudo apt-get update
sudo apt-get install libfreerdp-plugins-standard remmina remmina-plugin-rdp

#remmina #linux #rdp #remotedesktop

 

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

Brit Floyd @ Cirkus, Stockholm (Sweden) 19-Oct-2015

First time I’ve seen this act, but probably not the last. I’ve seen several Pink Floyd concerts over the years. The first time was during the Delicate Sound of Thunder tour, at Globen in Stockholm. I was surprised at how tight and well played the concert at Cirkus in Stockholm was last night. And it was Brit Floyd, not Pink Floyd! 🙂 Very impressive. Kudos!

You’ll find some (smartphone) pictures below as well as some videos embedded from Flickr.

Brit Floyd - Comfortably Numb  Brit Floyd @ Cirkus, Stockholm 2015-10-19

 

Brit Floyd @ Cirkus, Stockholm 2015-10-19

 

20151019_194810 20151019_204000 20151019_204119 20151019_204235 20151019_204702 20151019_204723 20151019_205115 20151019_205121

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

Making SimpleXML truly simple using JSON in PHP

JSON_vs_XML
So using SimpleXML in PHP is possibly one of the worst hells of typecasting and data extraction procedures one can encounter, or close to it 🙂 But more the point, you don’t need to walk down that road alone, enter JSON.

In the simplest of ways, this will typically get you something useful:

    $pvar = json_decode ($xml);

 

(Where $xml is a SimpleXML-type object) This returns a “slightly easier to manage” PHP array.

If you want an associative array, do this:

    $pvar = json_decode ($xml, true);

 

To get it back to JSON, you simply use:

    $json = json_encode ($pvar).

 

You may need to handle XML data, but you don’t necessarily need to work with it in XML form inside your application. The above examples may not work fully for you if you have to deal with “foreign” files or clean the input data prior to conversion, but you get the idea.

This is, obviously, obvious to many. It’s a lifesaver for others 🙂

LinkedIn:
www.linkedin.com/pulse/making-simplexml-truly-simple-using-json-php-joaquim-homrighausen

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

Eat your Cancer, now with every Lenovo sleeve

It seems like Lenovo (and most likely others) have their own Volkswagen Gate to deal with. I don’t know if this warning has been on all their sleeves or if this is a recent addition. Perhaps the US State of California has threatened to sue them. Regardless, I’d like Lenovo to inform their customers about what’s going on … ?

Warning: This product contains chemicals known to the State of California to cause cancer and birth defects or other reproductive harm. Manufactured for Lenovo 2015-06-05. ThinkPad 12″ fitted reversible sleeve (P/N: 4X40E48909).

LenovoCancer_1 LenovoCancer_2

 

Share:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Google Buzz
  • Technorati
  • LinkedIn
  • Live
0

Powered by WordPress. Designed by WooThemes