Netsensei

Much Ado About Nothing

Software en Programmeren

Bookmarks van november 24th tot november 30th

BarcampGent 2

Wel, BarcampGent zit er weer op. Deze geweldige najaarseditie ging opnieuw door in het IBBT werd deze keer verzorgd door Wolf. Er kwam veel, heel veel, volk op af. Vooral veel jonge, enthousiaste en nieuwe gezichten en dat is een goed teken want dat wil zeggen dat er interesse en creativiteit te over is waarmee men wel iets wil aanvangen.

Zelf heb een presentatie gegeven over mijn plugin (uiteraard) met de titel: Mollom for WordPress… or how I outwitted spam. Ik heb onder andere een aantal ideetjes gekregen van Pascal.

Verder heb ik ook de zeer interessante sessie van Smetty bijgewoond: Getting Things Done, Tomatoes and Lifehacking. Zij vertelde over haar de ervaring die ze had met het beter inrichten van je leven, je agenda en je communicatie om dingen sneller en efficiënter te realiseren. Ik heb achteraf nog een fijn gesprek met haar gehad. Leren plannen, bewust worden van je tijdsbesteding, de voor- en nadelen van to do lists,… duidelijk niet iets wat je zomaar even aanpast. Maar wel de moeite waard! Bedankt!

Nog een leuke sessie was die van Stijn over concertfotografie. Hij heeft een pak tips gegeven over hoe je te werk moet gaan voor, tijdens en na een concert. Een aantal dingen wist ik al (oordopjes! spelen met ruimte en licht,…) maar de tips over naverwerking in Lightroom zijn toch wel goud waard. Ik ga eens met wat oude concertfoto’s uit mijn fotoarchief experimenteren.

Tenslotte heb ik heel wat leuke gesprekjes met alle usual suspects en natuurlijk ook een aantal oude-nieuwe gezichten ontmoet (zwaai zwaai). En natuurlijk ben ik heel erg dankbaar voor de lift en de leuke gesprekken in de auto met chauffeur Zipkid.

O ja, Thomas, dringend oproepje: ik heb per ongeluk mijn laptopadapter aan jou gegeven en de jouwe van je Macbook meegenomen. Help!

WP Mollom “O my god I can’t believe” 0.7.0

I just tagged major version 0.7.0 of WP Mollom in the WordPress Plugin Repository. Why a major leap (0.6 > 0.7)? Over the past month or two, in between my traveling and all that, I got my plugin taking full advantage of the great translation support in WordPress. So, it’s possible now to translate (or localize) the plugin in your own language.

Translation is very important because not everybody on the planet speaks english. Localization helps make WordPress more accessible and enables more people to pick up blogging.

WordPress, and the plugin, use GNU Gettext support for transparant and easy translation. Through userfriendly tools like POEdit, it’s very easy to translate all the strings which are contained in the interface of the plugin. All translations are bundled in a single .mo file which you need to upload with the plugin file. The code will pick up your translation depending on your WordPress settings. Of course, you can distribute the .mo file yourself or, even better, send it to me so I can bundle it with the plugin. Of course, where credit is due…

How can you help? If you are proficient in your own particular native tongue, you could pick up a tool and start translating. If you want to know more, you can read up on this tutorial. I’ve made a – provisional – example tranlation for Dutch which is stored in the wp-mollom-nl_NL.mo file that accompanies this version of the plugin.

BarcampGent 2

Zaterdag trek ook ik naar BarcampGent 2. De vorige editie in maart heeft me, via Bunker, mijn huidige job opgeleverd en mag dus terecht een succes worden genoemd. Alleen vond ik mijn eigen presentatie toen zelf wat tegen vallen. Gebrek aan een goed onderwerp en voorbereiding eigenlijk.

Voor deze editie liggen de kaarten anders. Deze keer hoop ik een timeslot te vullen met, hoe kan het ook anders, een korte toelichting over Mollom en WordPress.

Rendez-vous zaterdag in het IBBT!

Bookmarks van november 17th tot november 23rd

Ruby on Rails

Hold on to your hats, kids! Het heeft wat geduurd maar ik heb er eindelijk eens werk van gemaakt en ik ben dit weekend begonnen met Ruby on Rails te spelen. Tof dinges, ja! Ik heb de obligate Hello World! horde al genomen. Nu eerst wegwijs geraken in de documentatie en de beginselen van Ruby doorgronden.

Translation support: help needed

Translating WordPress has always been very easy through gettext and tools like poedit. The availability of a whole range of languages and dialects that can be used to replace the standard English messages in WordPress is one of the factors that has contributed to the success of the CMS.

Of course, this support for translation is also available for plugins and themes. Since language shouldn’t be a barrier, I’ve been building support for translations into WP Mollom over the past weeks. The idea is that one can download a translation libary (a .mo file with all the translated strings in his language) and install it without a hussle.

So, today I tested the whole translation support fairly thoroughly and, well, there’s this rub. If I install the plugin using the local MAMP installation on my iBook G4, all is fine. The plugin gets translated in Dutch nicely. But if I try to enable the translation on line, on this blog and the testblog running on this domain, it doesn’t budge. Everything in the on line WordPress setups get translated fine… except for the plugin. I’ve tried switching off all the plugins, veryfing and re-veryfing paths, code, translation files,… and I still don’t see what’s really causing this.

So, I would like some help and see if other people are experiencing the same problem. If you are in for a challenge and you use translation support, dowload the development version of the plugin and give it a go. Just drop the wp-mollom/ folder in the plugins/ folder and make sure you have translation support on your WordPress installation activated.

Drop me a line if you have suggestion! Thanks!

Mollom 0.6.2, the Urgent One

Since a couple of weeks people using WP Mollom got hit by some spam. On friday, Bert took the problem to Twitter, which caught my attention. Of course, we want to get rid of all the spam and so I notified Dries.

Over the weekend, Dries did some research in the logfiles and noticed some disturbing patterns concerning feedback sent from WordPress blogs using the plugin. Most moderated messages got reported as ‘profanity’ rather then ‘spam’. That led, with the much appreciated help of Pascal, to the discovery of a nasty bug in the feedback functions of the plugin.

It seems that spam was reported as ‘profanity’ and ‘unwanted’ as ‘spam’. The feedback qualifiers got totally messed up in a conditional block… and accustomed with the code as I got, I probably read over it a thousand times without really noticing the error. Through sending the wrong qualifiers, the Mollom servers can not interpret correctly what is spam or not for your blog. This has, of couse, a serious impact on the performance of Mollom.

Given the nature and the severity of the error, I corrected it and put version 0.6.2 with *only* this bugfix up for release on WordPress Extend. So, if you’re running version 0.6.1 or lower, you should download the fixed version as soon as possible.

Haxxorz l33t security

Welja, ik ben natuurlijk nieuwsgierig naar de mate waarin mijn plugin wordt geïnstalleerd en opgepikt. En natuurlijk durf ik dan al eens rond te googlen. Dus gooide ik even wp-mollom als trefwoord door Google.

Wat mij opviel in het lijstje was dit:

Inderdaad, een open directory bij Clopin. Blijkbaar heeft Clopin niet alleen de plugin op zijn blog gegooid, maar ineens de volledige wp-mollom/ folder inclusief screenshots. Via die toegang is het een koud kunstje om zijn plugins/ folder uit te lezen. En uit die informatie kan ik meteen een aantal dingen afleiden.

  • Clopin maakt – uiteraard -gebruik van WordPress.
  • Ik weet nu welke plugins Clopin op zijn WordPress blog heeft draaien.
  • Aan de hand van de data waarop de files en folders werden aangemaakt zie ik of er oudere en nieuwere plugins tussen staan.
  • Ik ken nu niet alleen de actieve plugins – waaronder de plugins die in alle stilte hun werk doen -, maar ook alle, waartussen wel eens oudere, vergeten versies zitten, inactieve plugins.
  • Ik weet meteen ook het model webserver en eventuele modules waarop Clopin.be draait.

Het spreekt voor zich dat dit vrij interessante informatie is voor kwaadwillige hackers. Door veiligheidslekken in oudere plugins uit te buiten, kunnen die wel eens lelijk huis houden. Niet dat ik daarmee iets nieuws vertel, maar ik vind het een mooie aanleiding om dit probleem even aan te kaarten. Ook anderen bloggers tonen eveneens voor Jan, Pier en Pol welke plugins ze op hun blog hebben draaien. Google indexeert die volledige folder trouwens. En nog een pak meer.

Anderen zijn voorzienig geweest en schermen de boel volledig. Probeer maar eens met die laatste google zoekopdracht dezelfde informatie te achterhalen en naar hun plugins/ folder te surfen.

Wat kan je hieraan doen?

Wel, je kan verschillende strategieën gebruiken. De meest eenvoudige is een – al dan niet lege – index.php file in de folder te droppen waardoor je de inhoud van de folder onzichtbaar wordt. Of je, als je wat avontuurlijk bent aangelegd, een .htaccess file aanmaken die toegang tot de folder blokkeert. Let wel op dat je de boel niet te hard dicht timmert waardoor je blog kapot gaat.

Lees meteen ook even dit artikel met 3 eenvoudige tips om je WordPress website te beveiligen. (via bram.us)

O ja, ik ben zelf een tweetal jaar geleden het slachtoffer geweest van een hacker. Ik heb de tips in kwestie toen al toegepast. Geen overbodige luxe dus.

Mollom 0.6.1

I just tagged version 0.6.1 of WP Mollom in the WordPress Extend repository. Which means in a few moments, you’ll be able to download the latest installment of my plugin.

So, what has changed? Well, this is a bugfix release which means no new features. Here’s the changelog:

  • Fixed: division by 0 error on line 317
  • Fixed: if ‘unsure’ but captcha was filled in correctly, HTML attributes in comment content would sometimes be eaten by kses
  • Improved: the mollom function got an overhaul to reflect the september 15 version of the Mollom API documentation
  • Changed: mollom statistics are now hooked in edit-comments.php instead of plugins.php
  • Added: _mollom_retrieve_server_list() function now handles all getServerList calls

Although almost all basic functions are up and running now, there’s still a long road ahead. Today, I’m happy with what I’ve accomplished technically so far, but such things as usability, performance, flexibility,… still need more work. For instance, there’s still no WordPress MU version, i8n support is still missing, the backend needs more simplifying and much more.

But then again, if spam annoys you as much as the mosquitos in my room did me last night, then this is the plugin for you. Download the package, drop wp-mollom.php in your plugins folder, register with mollom.com to get your keys, just configure them in the plugin and you’re all packed with some serious spam stoppage power.

Happy blogging!

« Vorige blogposts Pagina 7 van 22 pagina's Volgende blogposts »