I use this blog as a soap box to preach (ahem... to talk :-) about subjects that interest me.
Saturday, January 1, 2011
A New Year's Tale
As soon as the starship enters the solar system, the board AI begins the process of thawing the crew. Despite the powerful zero-point energy propulsion, the trip from Tau Ceti 4 has lasted almost three decades.
Friday, December 24, 2010
A programmer's Taboo
This post is about GOTOs.
Wednesday, December 22, 2010
Silence
For a month now I haven’t written any new posts. The problem is that I have been working at two books and haven’t found time for blogging. I know: if I stop making new posts, I will lose the few readers I have, but...
Monday, November 22, 2010
Marriage for all
This post describes my position concerning gay marriages.
Wednesday, November 17, 2010
Sudoku - Programming the XY-chain strategy
XY-chain is a generalisation of Y-wing. Essentially, instead of looking for a chain of three pairs, you look for longer chains in which the intersection cell of the Y-wing is expanded to a chain. The chain can be surprisingly long (one day, I might try to find out how long...), as shown in the following examples (only the relevant cells are shown).
Friday, November 12, 2010
Sudoku - Programming the Y-wing strategy
On the web there are many explanations of the Y-wing strategy, but none seems to go to the core of the issue. The only clear statement I found was that Y-wing doesn’t solve cells, but only eliminates possible candidates.
Strategy
Look for cells that contain only two candidates each. Among those cells, look for three cells that satisfy the following two conditions:
- The arrangement of candidates in the cells is AB, AC, and BC. That is, no two cells have the same pair of candidates.
- The cells are in two intersecting groups. This is equivalent to say that the two wing cells cannot share any group and can only happen in two ways: row+column (one of the cells shares the row with one of the other two cells and the column with the third one) and line+square, where ‘line’ stands for either ‘column’ or ‘row’ (one of the cells shares the line (row or column) with one of the other two cells and the square with the third one).
Sunday, November 7, 2010
Sudoku - Programming the rectangle strategy
Every now and then I like to solve a sudoku puzzle. There are three things that interest me in sudoku: how to measure the difficulty of puzzles, how to write a program to solve puzzles, and how to write a program to create puzzles.
A program able to create puzzles must first of all be able to solve them, and to grade puzzles it is necessary to have a large number of solved puzzles. Therefore, the first step is to write a sudoku solver. There are many around, but for me part of the fun is to write the program. Years ago, I already wrote at least two sudoku-solving programs in Java. They were OO programs, but I was never particularly happy with the implementation. For this latest attempt, I have decided to ditch OO and use plain old “C” as a programming language.
In this post, I will describe a strategy that I call ‘rectangle’. It is sometimes called ‘hollow rectangle’ (you will later understand why). I intend to describe the strategy and then provide some development notes. To display the examples, I shall use snapshots of the program “Sudoku Training Software 1.1”, which runs under Windows. You can freely download it by clicking here. This is the first program I found on the Web for generating the snapshots. I use it only for that and I have no idea whether its other functions are good or bad. If you would like to suggest some other application, perhaps for the Mac, please tell me.
Sunday, October 31, 2010
The day I was arrested
This post is about what happened to me one early morning of 1977.
Monday, October 25, 2010
I am an apostate
Yesterday, I stumbled onto the blog danein.blog.kataweb.it/2009/07/31/scomuniche/ (warning: it is in Italian). The author, a declared atheist, said (my translation): “Is there anybody who can help me to get a serious excommunication, possibly signed by the Pope?” This motivated me to write this post, because I did get an official letter of excommunication from the Catholic Church, albeit not from the Pope himself. Perhaps, others will be inspired by my action and do the same.
Thursday, October 21, 2010
The Catholic Church
Reading “The Case of the Pope” by Geoffrey Robertson QC I am discovering a lot of interesting facts concerning the current pope and the way in which the Vatican operates. It was written in a somewhat boring way and contains several repetitions, but I recommend it to both catholics and non-catholics.
Tuesday, October 19, 2010
Mussolini's Racism
While researching for the historical novel I am writing, I stumbled onto the so called “Manifesto of Race”, signed by ten Italian scientists and published in the magazine “La difesa della razza” (“The Defence of the Race”) on August 5, 1938. It provides a glimpse into the Fascist ideology concerning an area that, I believe, is poorly known. Somehow, I feel compelled to translate the document into English for those who don’t understand Italian.
Tuesday, October 12, 2010
Is this true about Islam?
Earlier today, I viewed a YouTube video that makes statements about Islam. I confess that I found it a bit disconcerting. Unless somebody managed to get it removed, you will find it at www.youtube.com/watch?v=Ib9rofXQl6w&f.
Tuesday, October 5, 2010
Photovoltaic Panels Update
At the end of the post titled “Photovoltaic Panels” of September 8th, I talked about my intention to extend my PV system. I did, and here is a new picture of my roof showing the new array.
Monday, October 4, 2010
The responsibility of the pope
I just finished watching the Australian talk show Q&A (Questions and Answers), in which a panel of five well known people (politicians, intellectuals, journalists, etc.) answers questions asked by the public. One of the panelists, Geoffrey Robertson QC, is known to have suggested that the Pope should be formally held responsible for the abuses of catholic priests against children. During the programme, he was asked to explain why the pope should be held accountable for what he clearly condemns. Obviously, being a lawyer, he answered in a very articulate manner, but one sentence stroke me as being central to his argument, and I feel compelled to report it here. He said: “If you have got the power to stop a crime, you have the duty to do it.”
This is a very compelling statement and, in my opinion, at the heart of the issue. For years the catholic church has been transferring to other dioceses priests who had been accused of abusing children. The fact that the pope recently apologised for the abuses doesn’t cut it. If he really wanted to stop them, he could, right now. He would only need to tell the bishops that any case of suspected abuse should be transferred to the local police. Easy. As long as he will fail to do so, he will make himself a potential accomplice of the crime after the fact.
Writing timelines
This post is for fiction writers, and especially for those who are not particularly IT-savvy. Obviously, most authors of fiction are familiar with word processing programs like Microsoft Word and OpenOffice Writer, but not with spreadsheets like Microsoft Excel and OpenOffice Calc. It turns out that the programs designed to process tables of numbers are the perfect tool for writing and maintaining the timeline of a novel.
Tuesday, September 28, 2010
A message from the FBI?
This post is about somebody impersonating the Director of the FBI on Facebook.
Yesterday, I received the following request from Facebook:
Yesterday, I received the following request from Facebook:
Subscribe to:
Posts (Atom)


