Mandriva has updated thunderbird (multiple vulnerabilities).
Ubuntu has updated wget (arbitrary code execution).
So I got SVN access to plugins.svn.wordpress.org, but I hate SVN. Let’s just use Git instead of SVN, especially when I already have my plugin as Git on github.com :)
git svn clone -s -r283636 https://plugins.svn.wordpress.org/statusnet-widget/ git remote add -f github git://github.com/evgeni/wp-statusnet-widget.git git merge github/master git svn dcommit
(note the -r283636 – it’s very important, if you ommit it, git svn will fetch 280k revisions which takes ages, if you put it to something AFTER your repo was created, the log will be b0rked)
Done! Now you can work as usual, push to github and commit to svn via dcommit :)
PS: Dear WordPress.org Team, you have working SSL, why do you still have http-links in your mails?
As you may not have noticed, I migrated my site to WordPress some time ago as I did not want to maintain the old piece of crap I wrote myself when I was “young” ;)
Today I want to tell you a story of the development of a plugin for WordPress.
As the title says, it’s much about joy and pain and I think I should start with the pain :)
WordPress is written in PHP, so are the plugins for it. And PHP is REAL pain (but there is no decent blogging software for Django or Zope that would fit all my needs). It is especially pain when you work with Python every day. What the heck are those curly braces and dollar signs and “$this->”? That’s just not the way Guido indented it ;)
Additionally my last contacts with PHP were some time back in 2008 when I hacked on SysCP, which today result in commits like this:
- if (is_int($new_instance['max_items'])) $instance['max_items'] = $new_instance['max_items']; + if (ctype_digit($new_instance['max_items'])) $instance['max_items'] = $new_instance['max_items'];
But I have to admit that the WordPress API is pretty good. Not very well documented (the wiki pages at codex.wordpress.org are sometimes outdated), so you have to read the source and google a bit, but when you found the needed sources, it’s pretty straight forward.
My plan was to write a simple widget, displaying my Twitter and identi.ca timelines. Yes, both together, not one widget per service. The reason for this is the fact that I mostly post via identi.ca and the messages get synced over to Twitter and only the local replies and retweets/redents differ.
The basic WordPress widget would look like this (source: http://codex.wordpress.org/Widget_API#Developing_Widgets_on_2.8.2B):
class My_Widget extends WP_Widget {
function My_Widget() {
// widget actual processes
}
function form($instance) {
// outputs the options form on admin
}
function update($new_instance, $old_instance) {
// processes widget options to be saved
}
function widget($args, $instance) {
// outputs the content of the widget
}
}
register_widget('My_Widget');
One only has to modify the widget() function and here you go.
From some other Twitter plugin I knew that I only had to include rss.php and call fetch_rss(url) for every feed URL to get the timelines as an array via MagPie. But when looking at rss.php, you notice the deprecation message in the header, saying one should use SimplePie now. Some google later I knew that I had to include feed.php and call fetch_feed(url) to get a SimplePie object representing the feed contents. But SimplePie is even cooler: I can call fetch_feed(array(url1, url2)) and get a merged feed, containing both.
Now I added a duplicate filter to elliminate the messages posted to both, twitter AND identi.ca and my widget was ready.
You can find the result on http://github.com/evgeni/wp-statusnet-widget and soon on http://wordpress.org/extend/plugins/statusnet-widget/ :)
I'm shocked to learn that Frans has died.
Even more shocked to learn that, due to me sitting with my head in the sand, I almost missed it.
You'll be missed, Frans. I didn't always agree with you or your methods, but I deeply respected you for who you were, what you did, and what you were willing to do.
May you rest in peace.
Russel Garlick writes on behalf of the KohaCon10 Organising Committee:
“KohaCon10 starts on October 25th in Wellington, New Zealand. We have an exciting line up of speakers on a range of topics related to Koha and [Free and] Open Source and Open Standards in libraries. See our programme for details.
KohaCon is an opportunity for the entire Koha community, librarians and developers alike, to come together, meet each other, swap ideas and learn something new.
The conference is split into 2 parts.
The community conference will be held over 3 days – 25-27th of October. This is not just a developer’s conference. There will be presentations from librarians and developers alike.
The second part of the conference is the Hackfest for Koha developers that will be held from 29th-31st of October.
For more information see our website
KohaCon10 is a free conference (that is right it will cost nothing for you to attend), but you still need to register to reserve your place.
Registrations from the international Koha community have been very strong. Over half of all available spaces are already taken.
If you have been holding off on the premise that you will have plenty of time to do this later, then please register now. Please do not rely on there being free spaces on the day.
Registration is quick and easy via the website.
We look forward to seeing you in Wellington!”
Our co-op will be represented there. Will you?
Look at the status of debconf translations for top languages in the current ranking.
Swedish, Russian, French, German, Portuguese, Czech can make it (have you noticed that French is not leading?). For lenny, French and German succeeeded in this.
You have no idea about the tremendous and constant effort it requires for the teams...(and a little bit for me) to reach this.
So, if you're the maintainer of wireshark gnumeric tripwire request-tracker3.8 bugzilla tomcat6halevt ifetch-tools isc-dhcp foomatic-filters mailgraph gitosis fts qmail, think about it. You can make 1 to 6 people happy..:-)
The next 4th of September, the Portuguese Debian community will gather at the University of Aveiro for the third edition of the DebianDayPT
There will be several talks about about Debian/Free Software in Portuguese and as special guest, Martin Michlmayr will deliver a couple of talks titled “Contributing to Debian” and “Project Management in Free Software”. Like last year, there will be DVDs with Debian Live so people can discover, try and install upcoming Debian stable ‘Squeeze‘.
You can find more information of the event and information of how to arrive at: http://debiandaypt.debianpt.org/.
You will be missed so much. You were kind, you were fun to be around.
|
Produced by Pluto. |