Skip to content →

Category: rants

Smullyan and the President’s sanity

Smullyan found himself in a very strange country indeed!

All the inhabitants of this country are completely truthful – they always tell you honestly what they believe, but the trouble is that about half of the population are totally mad, and all their beliefs are wrong!

The other half are totally sane and accurate in their judgments, all their beliefs are correct.

Smullyan felt honoured to be invited by the Presidential couple.

The President was the only one who said anything, and what he said was:

“My wife once said that I believe that she believes I am mad.”

What can be deduced about the President’s sanity, and that of his wife?

Reference: This is a minor adaptation of Problem 4.5 in Raymond Smullyan‘s book Logical Labyrinths.

Leave a Comment

Brancusi’s advice : avoid vampires

My one and only resolution for 2018: ban vampires from my life!

Here’s the story.

In the 1920’s, Montparnasse was at the heart of the intellectual and artistic life in Paris because studios and cafés were inexpensive.

Artists including Picasso, Matisse, Zadkine, Modigliani, Dali, Chagall, Miro, and the Romanian sculptor Constantin Brancusi all lived there.

You’ll find many photographs of Picasso in the company of others (here center, with Modigliani and Salmon), but … not with Brancusi.

From A Life of Picasso: The Triumphant Years, 1917-1932 (Vol 3) by John Richardson:

“Brancusi disapproved of one of of Picasso’s fundamental characteristics—one that was all too familiar to the latter’s fellow artists and friends—his habit of making off not so much with their ideas as with their energy. “Picasso is a cannibal,” Brancusi said. He had a point. After a pleasurable day in Picasso’s company, those present were apt to end up suffering from collective nervous exhaustion. Picasso had made off with their energy and would go off to his studio and spend all night living off it. Brancusi hailed from vampire country and knew about such things, and he was not going to have his energy or the fruits of his energy appropriated by Picasso.”

I learned this story via Austin Kleon who made this video about it:


Show Your Work! Episode 1: Vampires from Austin Kleon on Vimeo.

Leave a Comment

The joys of running a WordPress blog

Earlier today, John Duncan (of moonshine fame) emailed he was unable to post a comment to the previous post:
“I went to post a comment but somehow couldn’t convince the website to cooperate.”

There’s little point in maintaining a self-hosted blog if people cannot comment on it. If you tried, you got this scary message:

Catchable fatal error: Object of class WP_Error could not be converted to string in /wp-includes/formatting.php on line 1031

The days I meddled with wordpress core php-files are long gone, and a quick Google search didn’t come up with anything helpful.

In despair, there’s always the database to consider.

Here’s a screenshot of this blog’s database in phpMyAdmin:

No surprise you cannot comment here, there isn’t even a wp_comments table in the database! (though surprisingly, there’s a table wp_commentmeta…)

Two weeks ago I moved this blog to a new iMac. Perhaps the database got corrupted in the process, or the quick export option of phpMyAdmin doesn’t include comments (unlikely), or whatever.

Here’s what I did to get things working again. It may solve your problem if you don’t have a backup of another wordpress-blog with a functional wp_comments table.

1. Set up a new WordPress blog in the usual way, including a new database, let’s call it ‘newblog’.

2. In phpMyAdmin drop all tables in newblog except for wp_comments.

3. Export your blog’s database, say ‘oldblog’, via the ‘quick export’ option in phpMyAdmin to get a file oldblog.sql.

4. If this file is small you can use phpMyAdmin to import it into newblog. If not you need to do it with this terminal-command

mysql -h localhost -u root – p newblog < oldblog.sql

and have the patience for this to finish.

5. Change in your wp-config file the oldblog database to newblog.

Happy commenting!

Leave a Comment