Quite sure that the weather today must have been at least 20 degrees warmer today than exactly one year ago. Picture taken at Bjørkelangen earlier today, my son Anders together with two friends running out on the field trying to chase down the kite. Weather was really nice, 13 celsius. Pretty strong wind, but good for kiting.
rblog
Blog upgraded to latest version 4.1.2
Have spent some hours upgrading from 4.0.5 to 4.1.2. But note that the actual process of upgrading did not take more than an hour or so, most of the time spent uploading new files using FTP-client Filezilla. Since it had to check each file “if newer” it takes some extra time. But the actual work of upgrading took only five minutes or so.
But, yesterday I spent some hours creating a script that helped me change from the Youtube-plugin which is no longer being developed to the “out-of-the-box” video plugin.
As usual I found a script helping me almost all the way, thanks to Stackoverflow.com, but I had to fine-tune it to my needs.
First, I had to create a SQL-statement that selected all blog posts containing the tag [youtube], but also the post_render column since the video-render plugin was changed.
$sql = "SELECT post_ID, post_content,post_renderers FROM evo_items__item WHERE LOCATE('[youtube]',post_content) != 0";
Then later in the script when doing the actual work, removing the old tag replacing it with the new
$post_content = preg_replace('#\[youtube\](.*?)\[/youtube\]#', '[video:youtube:$1]', $post_content);
The regex is searching for the [youtube][/youtube]-tag, crabbing the content of it (.*?) and backreferencing it to create the new tag.
And then at last adding the post_render for the new plugin, check that it does not exist already.
$pos = strpos($post_renderers,'.evo_videoplug');
if($pos === false) {
$post_renderers = $post_renderers . ".evo_videoplug";
}
Flying from Tromsø last Tuesday
My latest book: Kåre Willoch – Erfaringer om fremtiden
Kåre Willoch, prime minister in Norway from 1981 to 1986 talks about the future by reviwing the history. A well written book which I highly recommend. It has provided me with better understanding of what “market economy” _really_ is and also a much better understanding of the Middle East conflict – focusing especially on Israel/Palestina. A wise man!
More about the book at www.cappelendamm.no
My latest book: Jesper Juul – Ditt kompetente barn
Monster Magnet – Superjudge
Tromsø – Senja – Tromsø: Høstøl, anchovy, vodka and more
Spending some days up north, came here on Friday afternoon. Spent the evening at my cousins Andre’s place, enjoying the work of his employer Mack – for example Høstøl
Early Saturday morning I headed to Senja to visit my grandmother, and then back to Tromsø yesterday – Sunday, to enjoy the evening Russian style: Toast with anchovy and cucumber with vodka on the side.
Then this morning, still in Tromsø, seeing snow for the first time this winter.
Handyman in action yet again #3
Jacobsen Dark Lager and Tyrrells crisps
Tried out Jacobsen Dark Lager
Jacobsen Original Dark Lager is based on the oldest recipe in the Carlsberg archives – JC Jacobsen’s original recipe of 1854.
and Tyrrells Hand Coocked English Crisps. Bought the crisps only based on the criteria price – the most expensive they had at Meny 🙂 Lightly sea salted it says, and yes…lightly it is…to lightly, give me more taste! But the lager, mmmmmmmmmm…beer
Coldplay – Mylo Xyloto
Iver just loves Every Teardrop is a Waterfall and since OBS had it on sale I bought it.











