March 16, 2009 by jerome
… without clicking 8216 times on the spam link in worpdress; you do that like this:
DELETE from wp_comments WHERE comment_approved = ‘0′;
* as Pierre just remarked, it has a name: WordPress macro via SQL
** if you didn’t install it already, Akismet will help drastically reduce any spam on your blog.
Tags: admin, comment, mysql, spam, wordpress | Comments (0)
March 12, 2009 by jerome
Just noticed that one: the link of author commenting on Capacity were broken. I managed to fix this by editing the comments-templates inside the /includes - I’m not sure this is a WP2.7 issue but i thought it might help to get a not on this in the future…
/wp-includes/comment-templates.php line 148: replace the single quotes by escaped double quotes
$return = "<a href=\"$url\" rel=\"external nofollow\" class=\"url\">$author\</a>";
Comments (2)
January 13, 2009 by jerome
This morning i played with Infinite Scroll, a wordpress plugin that make just that: your page becomes infinite…
* on the way i spotted 2 small errors in the code of the plugin; for those who like me have wordpress in distinct directories: you will have to edit wp_infinite_scroll.php and make sure that get_option(’home’) on line 48 and on line 401 is get_option(’siteurl’) otherwise you wont have the little loader image neither will it find the plugin directory.

Tags: infinite scroll, wordpress | Comments (2)
October 5, 2008 by jerome
* Tlktlk is using the Twitter Updater plugins. It’s quite a nice plugin, really usefull to do automated posting to a twitter account.
But for a reason I didn’t quite grok, the twitter account was updated even when editing (save post) and/or (maybe) trough the autosave function of the new 2.6. On a few other blogs I decided to desactivate it since it was creating twits based on revision not accessible to general plugin and resulting in a 404.
This afternoon I had a look in the WP Codex page for Actions’ Hook and I tried to replace the hook from the plugin (line 108: twitter_updater.php) and posted a new event on the blog; so far it seems it worked like a charm:
add_action ( 'publish_post', 'vc_twit');
//add_action ( 'save_post', 'vc_twit');
Tags: patch, plugin, twitter, wordpress | Comments (2)
September 30, 2008 by jerome
I just had some troubles for a few days trying to figure out why some of my feed were disappearing from Magpie when the website was using feedburner’s services ; the problem was coming from user agent - feedburners apparently has some troubles answering application with a ‘weird’ name.
The solution I found (here) is to declare Magpie useragent as being something more traditionnal:
define('MAGPIE_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1');
* Magpie is a RSS parser for PHP; it allows for quick prototyping. It is super simple and easy to use. It is a very nice way for using similar concepts as the Yahoo Pipes RSS parser in custom code.
Tags: feed, feedburner, magpie, user agent | Comments (5)
September 15, 2008 by pierre
Tags: dalston, posters, public notices, typography | Comments (0)
September 4, 2008 by pierre
There has been two intresting posts on Word Aligned about software documentation as a “genre” and more specifically humour in documentation. The first one was a review of the documentation litteracy ideas and was a quite interesting starting point. But I found the second post yet more interesting : it explores the link between this form of humour and the notion of “syntactic sugar” in programming… and it is very simple and well written, I recommend it.
Makes me think of another idea that I like: the fact that formal systems like programming languages or math proofs (any form of constructed, artificial language) can be used for other things than computing or calculating, for example things like jokes or poetry*, usually associated to natural languages (english, body lanuage, etc…).

To which, Possibly Philosophy answered :
They eventually resolved this self-reference, but Cantor’s ‘everything-in-the-fetish-book-twice’ parties finally sunk the idea.
* or music. Speaking of which: I like a lot the non-orthodox definition on the first line of the wikipedia article on serial music :
“a technique for composition that uses sets to describe musical elements, and allows the manipulation of those sets.”
there is an intresting Stanford Encyclopedia of Philosophy article on set theory for some background.
Tags: documentation, formal systems, humour, jokes, litteracy, philosophy, programming | Comments (0)
August 15, 2008 by pierre
Ian M. Banks, Consider Phlebas (thanks Jérôme!), The Algebraist. First time I read a book from the Culture cycle. The Algebraist is sci-fi as well but not from the same cycle.
William Gibson, Pattern Recognition and Spook Country.
Greg Egan, Riding the Crocodile and the serie Oracle | Singleton. Via Tom Moody
Three lectures by Per Martin-Löf. “On the Meanings of the Logical Constants and the Justifications of the Logical Laws.” Nordic Journal of Philosophical Logic, 1(1): 11-60, 1996 http://www.hf.uio.no/filosofi/njpl/vol1no1/meaning/meaning.html
Uh… this is not what I read all the time, but it happened like this.
Comments (2)
August 12, 2008 by pierre
I’m working on PDF templates using FPDF, the templates are based on a grid and I had to find how much of the grid’s units different images are using, e.g. if an image width is 1.3 units I need to make 2 units space for it in the the grid.
In other words I needed to “round” a floating point number, but always to a bigger number so the round php function would not be usefull :
echo round(1.2); // 1
echo round(1.6); // 2
Then I thought that what I wanted was the “next bigger integer”, and it felt in place : change the float to an integer and add one.
echo ((int) 1.2) + 1; // 2
echo ((int) 1.6) + 1; // 2
This is super simple but it seem to me a good exemple of how formulating what you want to do in english can help when programming.
Tags: maths, php, type | Comments (4)
July 24, 2008 by jerome
An experiment in the economics of production: how can we shift focus from consumption of a finished product to investment in the processes of design, print & production?

This is a poster and a text: an analog R-Echos
Would you be interested in investing in the tangible production of this work?
1. You can download the digital archive
and decide wether or not you’re interested in particpating in this project.
2. Each participant donate a minimum of £8
3. The publication is produced
4. We share the publications
which means each participant own a fair amount of publications and participants decide (collectively or individually) what to do with it.
minimum £8
Comments (0)