WordPress 2.8 loves your proxy

Up until version 2.7.1, running WordPress on an intranet was a real pain in the ass. It connects to the outside world to look for updates, to check comments for spam (using Akismet) or to fetch RSS-feeds for widgets if you configured those on your blog, … But as you typically don’t have direct internet-access on an intranet and as there was no way of letting WordPress know about a proxy, your blog timed out while it was trying to fsockopen those external sites.
chet bakerBut that was yesterday, because the recently released WordPress 2.8 “Baker” (which is chock-full of new features) has support for internet-connections through a proxy, thanks to its great HTTP API. Don’t bother looking for it in the admin-screens, you’ll need to configure the proxy-settings in your wp-config.php.
Here’s what you’ll have to add (values are examples which you’ll have to replace with settings for your environment off course):

define('WP_PROXY_HOST', '192.168.22.1');
define('WP_PROXY_PORT', '9099');

If you need to authenticate to access the proxy you can add your credentials this way:

define('WP_PROXY_USERNAME', 'frank');
define('WP_PROXY_PASSWORD', 's3cr3t');

You can also exclude requests for specific hosts from going through the proxy:

define('WP_PROXY_BYPASS_HOSTS', 'localhost, blog2.corpintranet');

And finally you can block all outgoing requests by default and add domains to a whitelist to only allow those to connect:

define ('WP_HTTP_BLOCK_EXTERNAL', 'true');
define ('WP_ACCESSIBLE_HOSTS', 'api.wordpress.org, akismet.com');

Off course some WordPress-plugins do not use the HTTP API yet (e.g. Lifestream and wp-security-scan rely on Simplepie, which does not use the proxy-aware wp_remote_get-function), so you might have to be careful when installing plugins that need internet-access.

Goedgemutst op de fiets

mijn giro flak pispotAangezien het op de vouwfiets in Brussel niet altijd even rustig cruisen is, aangezien biker chic Elise hier toch ook moedig met een ARH door de straten flitst en omdat ze vorige week zelfs op deredactie schreven dat ge met een helm minder kans op hoofdwonden hebt (tiens tiens); ziehier mijn nieuwe passief-agressieve fietsmuts.
Nu zien dat ik niet overmoedig word natuurlijk 😉

deredactie.be down, depannage-versie op futtta.be

Het loopt niet zo lekker op deredactie.be; de videozone deed firefox en safari crashen, invalid atom-feeds veroorzaakten stack-traces op http://m.beta.deredactie.be en de hele site is momenteel kapot.
Wie op deze blog terechtkomt op zoek naar deredactie; op http://futtta.be/deextractie/mobile.php?deffont=medium kun je tijdelijk de inhoud van deredactie raadplegen. Het is een onafgewerkte (en normalerwijs overbodige) light versie van deredactie op basis van de eveneens onofficiele volledige feed die op http://feeds.feedburner.com/deprotestactie te vinden is.
Yet another great post powered by mlogger

Webscene 2009 in 3 quotes and a coffee

webscene logoAs could be expected after having visited the event the past 2 years, I attended Webscene 2009 yesterday. I didn’t “liveblog”, as there really wasn’t enough “hard info” for my likings. Maybe Frederik Marain and Jo Caudron could have changed that perception, but I didn’t make it to their presentation (networking is a bitch).
Here’s the stuff I did write down, just some quotes really;

“[With Tridion] We’ve got a Rolls Royce, but when we need to cross the desert we prefer to use the SUV [which is Drupal]” (Bart Van Herreweghe about using Tridion for belgium.be and Drupal for smaller, web2.0-oriented fast-track sites)

“When you use Google Apps, which is “Platform As A Service”, you’re tied into their platform, you can’t just take your application and put it elsewhere.” (Terramark Terremark’s Kurt Glazemakers trying to position his “Infrastructure As A Service” virtualized hosting solution, forgetting Amazon or Akamai.)

“Web 2.0 was a bust, will web 3 succeed?” (the challenging title of Charles Chrouch’s presentation about the lack of financially sound business models in social media, he didn’t explain how Twitter could make money)

Not a lot more to mention, except maybe that the new Cultuurnet-database should become available (through an API I guess) for non-commercial use. Anyone want to write UiTmaps or UiT.mobi? And One Agency has its own mobile platform, GlowBox, which is Drupal with some custom-written plugins, integrated with Siruna.
While missing out on presentations, I met various people I know from past and present stages of my work-life (great to hear things are going well Tjorven, sorry to have mistaken Panoptic for Amplexor Igor) and that’s always nice. But I would especially like to thank Tom Remans. It’s always great to chat with Tom and -even more important- he provided me with real good coffee, which (for reasons I just don’t want to understand) was only available for exhibitors. Thanks mate, really!

3 is a magic number (en 7 ook)

Mijn dochterken kan goed verjaren en de 3 staat haar beeldig, toch? En mijn vrouwken kan als geen ander een verjaardagsfeestje in elkaar steken en dat ik trots ben vandaag 7 jaar met haar getrouwd te zijn! Ik zie mijn vrouwkes zo graag …
3X7=21, 2+1=3, 3 is a magic number!
En nog even over Elises magische 3; De La Soul haalde de mosterd blijkbaar bij een soort Schooltelevisie-project.

Surfen en duiken met vader Piccard

Surfen is al muisklikkend leren. Gisterenavond bijvoorbeeld, las ik op deredactie.be over de onderwaterrobot Nereus die in de 11km diepe Mariana-kloof dook en dat de bemande Trieste daar in 1960 al tot diezelfde diepte afdaalde. Leergierig gooide ik “Trieste” in de Wikipedia search en las  daar dat die Italiaanse bathyscaaf begin jaren ’50 werd ontworpen door de Zwitser Auguste Piccard (die van 1922 tot 1954 Professor Fysica aan de ULB was). Nadat de Amerikaanse marine in 1958 eigenaar van de diepzee-duikboot was geworden, daalde zoon Jacques Piccard in 1960 inderdaad mee af in die Mariana-kloof. En terwijl ik de pagina verder scan (lezen is zo passé), zie ik deze tekening:
de trieste op wikipedia, klik door voor de svg-versie

Die ken ik ergens van! Suske en Wiske! Ik Google nog een beetje en inderdaad, in “De IJzeren Schelvis” stond een dwarsdoorsnede van de gelijknamige bathyscaaf van Professor Barabas;

de ijzeren schelvis

Nog wat rond klikken op Wikipedia en zoeken in het fantastische Time-archief en het wordt duidelijk waar Willy Vandersteen z’n inspiratie voor de duik-wedstrijd tussen “De IJzeren Schelvis” en de “Barracuda” vandaan haalde. In 1954, het jaar van publicatie van “De IJzeren Schelvis” in De Standaard, waren de Franse marine en het Italiaanse Trieste-team rond vader en zoon Piccard verwikkeld in een wedloop  om het diepzee-duikrecord op te eisen. De Franse bathyscaaf was overigens een gewijzigde versie van de eveneens door Piccard ontworpen Belgische FNRS II (FNRS was de naam van geldschieter “Nationaal Fonds voor Wetenschappelijk Onderzoek” dat ook Piccards’ stratosfeer-ballon financierde).
Professor Barabas’ Schelvis was, getuige de tekening hierboven, een geduchte concurrent voor de FRNS III en de Trieste; 4000 meter was maar een fractie minder dan de recorddiepte die de Franse bathyscaaf in maart 1954 bereikte. Maar in tegenstelling tot Auguste en Jacques Piccard, zijn Suske en Wiske en Professor Barabas de daaropvolgende jaren niet meer teruggegaan. Maar eenmaal je de parels van het geluk in Alanta hebt gevonden, is er niet veel reden om nog terug te gaan, toch?

MSIE 6 drops anchor in Location-header, must die!

http://ripie6.com/Last week colleagues of mine had a problem with an e-mail newsletter they wanted to send out; everything worked OK in Firefox and IE 7, but MSIE 6 displayed the wrong part of the page.
The setup was pretty basic; the URL in the newsletter pointed to the servers of the mailinglist-provider, where each request got logged and the browser was redirected (with a http 302 status-code and Location in the http response-header) to the target URL on one of our servers. That target URL contained an anchor to have the browser to display a specific tab on the page thanks to some jQuery-magic, which worked perfectly in Internet Explorer 6 in a non-redirect scenario.
The problem seemed as simple as it was annoying; MSIE 6 dropped everything starting with the ‘#’ from the URL when performing a redirect. Google pointed me to some sites that claimed that adding an ampersand should solve this, but that did not work. I made a little PHP-script to test with different encoding-tricks, but that did not work. So that old fart of a browser indeed did not support anchors in redirect-URL’s and that’s what I told the colleagues last Thursday.
Yesterday I started writing this post, thinking it was a great time to demand the death of the piece of junk that Microsoft unleashed on us back in 2001 and which, believe it or not, still has 16,94% market share. So  I replaced the company-specific address in the php-script with the URL of the wikipedia-page about anchors and … it just worked, even in MSIE 6! And then I remembered getting that silly popup in MSIE 6, warning me that “The current website is trying to open a site in your Trusted sites list”. Apparently the ugly bugger does not only ask you if he can redirect, but also eats the anchor in target-URL’s that are in your Trusted sites.
So dear colleagues, in case you’re reading this; you can send out that newsletter now, it’ll work for everyone except for those who are silly enough to use MSIE 6 with our site in their “Trusted sites”-list. And let’s not forget; MSIE 6 must die is dead!