Thursday, March 17, 2011

Beef shin hotpot

The cheesecake I described in my last blog post was absolutely delicious!

I enjoy eating beef, but the most well-known cuts are quite expensive. Shin is a less-commonly used cut (you probably won't find it in Sainsbury's), but is still delicious in stews and hotpots as long as you cook it correctly! Ask for it at the butcher or at a farmers' market. Here's a shin hotpot I enjoy making — this recipe serves 4-6.

  • 450 g shin of beef, boned and diced
  • 2 tbsp sherry vinegar
  • 1 tbsp plain flour
  • 6 pork sausages
  • 450 g potatoes
  • 1 dessert (eating) apple
  • 2 tomatoes
  • 1 onion
  • 450 ml beef stock

Put the beef and vinegar in a bowl, and cover with clingfilm. Marinate for an hour, stirring occasionally. This softens and tenderises the meat.

Pre-heat the oven to 160 °C. Thinly slice the potatoes, apple, tomatoes and onion, and cut the sausages into chunks.

Drain the beef, and (optionally) pat it dry with paper towels. Toss the sausage and beef pieces in the flour.

In a large casserole dish, start building the hotpot with layers of sliced vegetables and meat:

  1. 1/3 of the potatoes
  2. 1/2 of the apple, tomato, and onion
  3. 1/2 of the sausages and beef
  4. 1/3 of the potatoes
  5. The rest of the apple, tomato and onion
  6. The rest of the meat
  7. A top layer of potatoes (make sure you keep enough back from the previous layers to cover the casserole fully!

Give the dish a little shake to help the casserole settle, and add the stock (it should come about halfway up the casserole).

Cover and cook in the oven for 2 1/2 hours. For the last 10-15 minutes, take the lid off and turn the oven up to 200 °C to allow the top layer of potatoes to crisp up.

Serve in bowls, with plenty of the stock. Leftovers keep really well in the fridge!

Wednesday, February 23, 2011

Seattle Cheesecake recipe

Thanks to one of my colleagues, here's the cheesecake recipe I'm going to try to bake this evening. I've converted the units to metric, scaled the quantities, and added ingredients for a British-style base and an apricot topping.

Start by greasing a 20 cm spring-form tin and lining the base with a round of greaseproof paper. Pre-heat the oven to 160 °C.

Biscuit base

  • 12 digestive biscuits
  • 60 g unsalted butter

Crush the biscuits to the consistency of fine breadcrumbs. Melt butter and mix into crushed biscuits. Gently press mixture into bottom of tin using the back of a spoon to form a level base. Bake for 10-15 minutes until lightly browned and just set. Set aside for at least 5 minutes.

Bottom layer

  • 625 g cream cheese (not reduced fat, premium brand strongly recommended)
  • 140 g caster sugar
  • 3 large eggs
  • 15 ml/1 tbsp vanilla essence

Mix all the ingredients together thoroughly, and pour onto the base. Bake in the oven for about an hour. Time needed depends on atmospheric conditions, but when done the top will start to crack. When done, remove from oven and cool on a cooling rack for 30 minutes. (The cooling rack is important, as you need to get airflow underneath the cake).

Top layer

  • 330 ml sour cream
  • 30 g caster sugar
  • 15 ml/1 tbsp vanilla essence

Turn up the oven to 220 °C. Once the bottom layer is cool, mix the top layer ingredients together, and pour on top. Then return to the oven for a further 10 minutes.

Topping

  • 1/2 jar apricot preserve
  • 3-4 fresh apricots

Slice apricots. Heat jam in microwave for about 45 seconds, until runny, and spread over top of cheesecake. Arrange apricots on top.

I'll update this post later with the results!

Update: This worked out really well! The only slight problem was that the tin didn't come away from the sides totally cleanly, but the cake still looked excellent and tasted delicious!

Tuesday, July 06, 2010

Open Source in schools — not an idle fantasy

One of the policies in the Pirate Party UK's general election manifesto this year was:

We will encourage the adoption of open source software in schools, so that children won't be reliant in the future on buying a particular software package from a particular company.

Here in the UK, I still get odd looks when I say I use Linux almost exclusively on my computers. A widely-held perception seems to be that Linux is an esoteric operating system that isn't capable of doing a lot of widely-needed tasks. Certainly many of my friends would never consider running it on their own computers (despite the fact they're almost certain to have at least box running Linux in their house — but I digress).

Open Source in schools is a particularly controversial concept. 'But how will school leavers be able to function in the Real World if they haven't been taught to use the "industry standard" software?' the detractors cry, referring of course to Microsoft Office.

The fact is, though, that Linux has been widely deployed in schools all around the world. The biggest deployment is in Brazil, where the Ministry of Education has installed Linux in labs used by 52 million schoolchildren nationwide — yes, that's fifty-two million — and it's been a great success. Not only does the 'Linux Educacional' distribution, installed in tens of thousands of school computer labs, fulfil the day-to-day needs of school ICT and computer science teaching, but has lead to a growing market for OEM Linux computers in Brazil. And no, their school leavers seem to have no difficulty whatsoever in adapting their IT skills for use in the 'real world' (whatever that is), as Brazil continues to have the strongest IT industry in South America.

Aaron Seigo mentioned this and other (huge!) educational Linux deployments in his keynote speech at this year's Akademy, the KDE developer conference. It seems to me that Linux — not to mention other great Open Source software such as OpenOffice.org, Firefox, Blender, Audacity and Inkscape — have already proven their suitability for use in schools.

Maybe it's time for British schools to step out of the muddy rut of using Microsoft everywhere 'because everybody uses Microsoft', and follow the lead of so many other countries in trying something new, exciting, and in the long run quite possibly both better and cheaper.

Friday, March 12, 2010

Blog migration

Since Blogger are discontinuing FTP and SFTP publishing at the beginning of May, I've now migrated my blog to being hosted by a Blogger "custom domain", http://blog.peter-b.co.uk.

Fortunately, I've been able to use a .htaccess file to add a mod_alias Redirect directive that ensures that old links to http://peter-b.co.uk/blog/ will continue to work. So that makes it a lot less of a hassle!

What was a hassle was figuring out the CSS to disable the Blogger navbar, since it completely destroyed the harmony of my site design. It's hard to believe that it's almost seven years old! I should probably break out the text editor and update it at some point, but after this long I can hardly remember how to use CSS and HTML; I've got a lot of catching up to do.

Banana and walnut cake

A cake recipe that I've had some success with recently is this rather delicious banana and walnut cake. It's dead simple, and takes very little time to make. There's one in the oven right now!

  • 450 g ripe bananas (weighed before peeling), mashed
  • 125 g unsalted butter
  • 150 g caster sugar
  • 2 large eggs
  • Half tsp vanilla extract
  • 50 g walnuts, chopped
  • 250 g self-raising flour
  • Pinch of salt

Pre-heat oven to 180 °C. Lightly butter a 25x10 cm loaf tin. Cream butter and sugar together until smooth and pale.

Add eggs one at a time, beating well. Fold in mashed bananas, vanilla and walnuts. Sift in flour and salt and fold in.

Spoon mixture into loaf tin, and bake for one hour or until a knife pushed into centre of cake comes out dry. Cool in tin for at least 20 min before turning out.

My chocolate brownies have also been popular recently, this time with the University of Surrey Mountaineering Club!

Saturday, February 20, 2010

GTK+ no longer supports Windows, apparently

When writing computer programs, I try to ensure that they are portable enough to run on as many different platforms as possible without modifying the source code. This becomes tricky when I'm writing in C and I want to provide a vaguely-modern-feeling user interface. Since about 2006, I've relied on GTK+, the basis of the GNOME desktop environment, as my GUI library of choice. A good example of a piece of GTK+-based software for which I'm a member of the development team is the gEDA project, a collection of tools for electronics design.

One of the attractions of GTK+ for me has always been its ability to be used on both X Window System-based operating systems (e.g. Linux and BSD) and on Microsoft Windows. Unfortunately, it seems that Windows support has now been discontinued.

Back in September, GTK+ 2.18 was released. Unfortunately, it contained a large regression which has caused some headaches for people working with GTK+ on the Windows platform (essentially, GTK+ applications would be completely unusable in some cases). Furthermore, a rewrite of some core GTK+ code inbetween 2.16 and 2.18 left the GTK+ on Windows infested with a host of other minor but annoying bugs.

Now, what normally happens when an Open Source program upon which literally thousands of applications and millions of users depend has a major stable release containing a large regression on one of the major supported platforms? Well, in most such cases, the software's developers figure out a workaround as quickly as possible and make sure that those affected know about it, and then make haste to track down the source of the bug, fix it, test the fix, and issue a point release or set of patches with which their users can obtain a working version.

Apparently not so in the case of GTK+. Four months later, GTK+ 2.18.x is still pretty much unusable on Windows, and the general consensus is to use 2.16.x. Dominic Lachowicz, a GTK+ developer, has is still warning people not to use 2.18.x on Windows:

Look before you leap. GTK 2.18 on Windows is very buggy.

The attitude of the maintainer of the Windows port, Tor Lillqvist, has been quite alarming. In comments on the GNOME bugtracker, he gave no impression of any intention of resolving the issues himself, saying:

You want ot use some new API present only in 2.18? Please then consider helping in actually debugging and fixing the problems in GTK+ 2.18 on Windows.

... perhaps you should just use the version of software as it was before the "introduction" of the bug? I mean, nobody promised you there would be any updates of Windows-specific functionality, or otherwise, in GTK+, right? So just use GTK+ as it was before "somebody broke it".

It's becoming distressingly clear that there is no-one in the current GTK+ development team with any particular commitment to keeping the Windows support in working order. Furthermore, it seems clear to me that the hostile and confrontational attitude of people like Tor will tend to drive away any new developers interested in taking the work on. It's already hard enough to get patches into GTK+ as it is -- even complete and tested patches tend to hang around in the GNOME bugtracker for weeks or months before being dealt with.

Going forward, I think that I'll need to find an alternative set of libraries that I can use for cross-platform GUI programming and get a well-integrated 'look and feel' with. The Qt toolkit has a good reputation for documentation and support, but doesn't seem to support applications written in C. Are there any other alternatives I've missed?

Monday, February 01, 2010

Project Postcard

I recently wrote a blog posting for the Pirate Party UK website about my latest publicity initiative: Project Postcard!

The election is fast approaching, and the time has come to really press on with raising our profile. All our members need to be doing their part if we're going to make an impact on the UK political landscape. I personally have been aiming to do something meaningful & constructive for the party every day -- and I recommend to you all to make a similar commitment. Even little things can make a real difference.

One way you might be able to help is to get involved with my 'Project Postcard' initiative. I'm shortly going to be ordering a few thousand professionally-produced postcard-like flyers, printed with information on who we are and what we stand for, as well as details of how to find out more.

Read the full article on the PPUK blog.

Tuesday, November 10, 2009

From the ridiculous to the... even more ridiculous?

I've been following the progress of In Re Bilski before the US Supreme Court, because it's got the potential to set the rules for business method (and thus software) patents for the next few years.

Unfortunately, it seems that lawyers' view of what constitutes a "good" patent has hit a new and hilarious low. Take this extract from the oral arguments (thanks to Groklaw for pointing it out):

JUSTICE KENNEDY: But it would be different, it seems to me, than what you are -- let's assume you can't patent an alphabet. I assume that is true. And you can take an alphabet to make beautiful words, and -- and so forth. You -- you want to say that these -- these electronic signals can be used in a way just like the alphabet can be used. And many of the scientific briefs say that their process is different, that they are taking electronic signals and turning them into some other sort of signal. But that's not what you are doing.

MR. JAKES: That may be, but those signals could also be transmitted. On -- on your question about the alphabet you said look at the Morse claim 5, which was an alphabet to Morse Code. That's exactly what it was.

CHIEF JUSTICE ROBERTS: So you reject -- you reject the substitute. You think you can patent an alphabet because it is a process of forming words.

MR. JAKES: It could be, yes.

In what world does this seem like a sane and reasonable way for patentability rules to evolve?

Thursday, November 05, 2009

ACTA: write to them!

I've now written to both the Green MEP in my region, Caroline Lucas, and my MP, Humfrey Malins.

My e-mail to Caroline Lucas was fairly straightforward to write. Firstly, she's an MEP, and thus European-level matters are more directly relevant to her interests. Additionally, the Commission have been ignoring direct calls, by MEPs, lead by the Green Party, for more transparency in ACTA, so I know that she already agrees that there's a problem.

Dear Dr. Lucas,

In December 2008, lead by the Green Party, the European Parliament adopted a resolution regarding ACTA which:

"... Calls on the Commission and the Member States to negotiate ACTA under conditions of the utmost transparency towards EU citizens, especially with regard to the definitions of the terms "counterfeiting" and "piracy" and the criminal sanction measures foreseen; takes the view that the social impact of the agreement as well as the impact on civil liberties must be assessed; supports the establishment of a task force to examine the implementation of the agreement, by promoting this subject in dialogue between the European Union and third countries and as part of cooperation measures with those countries..." [P6_TA(2008)0634]

Furthermore, in March 2009, the Parliament and Council adopted a Regulation that required that:

"In accordance with Article 255(1) of the EC Treaty, the Commission should immediately make all documents related to the ongoing international negotiations on the Anti-Counterfeiting Trade Agreement (ACTA) publicly available. [Am 109]" [P6_TA-PROV(2009)0114]

Nevertheless, many months later, the ACTA text under discussion is still being discussed behind closed doors, without the opportunity for review or discussion by those whom it will affect if adopted. I would greatly appreciate an explanation as to why this is, and what the Parliament, the Green Party and you yourself are currently doing to address this.

Yours sincerely,

Peter Brett

Writing to Humfrey Malins was more challenging. Firstly, European Commission-level negotiations aren't something that the Commons has any real direct influence on. However, the fact that the Baroness of Uphallow is the European Commissioner for Trade provided a way to demonstrate the ACTA negotiations' direct relevance.

Dear Humfrey Malins,

The UK, as part of the European Commission, is currently in the process of negotiating the plurilateral Anti-Counterfeiting Trade Agreement.

This process has been concealed behind a veil of utmost secrecy, despite repeated demands by the European Parliament and Council for greater transparency (see: P6_TA(2008)0634 and P6_TA-PROV(2009)0114). Only a rough outline of the structure of the proposed treaty is available to the billions of people who will be affected by its provisions. I do not believe that, in the case of a trade treaty, such secrecy serves the public interest. The quality and fairness of the results of the process can only be improved by allowing the people in whose name the treaty is being negotiated to see and discuss the actual provisions being suggested.

I have already written to my MEPs, but the Commission has made it quite clear that they intend to continue to ignore the European Parliament's position on this issue. Catherine Ashton is the UK Commissioner and holder of the Commission's Trade portfolio, and as such is responsible for the Commission's role in the ACTA negotiations. (It is interesting to note that the Baroness of Upholland has no background in trade issues and has never been elected to public office.)

Would you be willing to ask the Prime Minister to direct Baroness Ashton to encourage the EU ACTA delegation to open the process to public scrutiny, please? It seems to me this would greatly serve the public interest.

Yours sincerely,

Peter Brett

Hopefully I'll get some useful and timely replies. We'll see!

ACTA: what lurks in the shadows?

Over the last two years, a number of countries and multi-national blocs have been negotiating a new treaty called the Anti-Counterfeiting Trade Agreement (ACTA). The UK Intellectual Property Office, for example, claim that:

The Anti-Counterfeiting Trade Agreement (ACTA) seeks to coordinate international cooperation on IPR enforcement practices, to tackle effectively counterfeit and pirated goods.

Whether or not you feel that the premises on which the proposed treaty is founded are benign (the Pirate Party UK, of which I am a member, opposes it in principle), the most disturbing thing about this treaty is the veil of total secrecy behind which all of the negotiations and details of the proposed treaty provisions have been concealed. (Recall that, in most countries, international treaties which have been ratified by the government have the force of law).

Indeed, the public was not even aware of what, exactly, the proposed agreement would cover until a discussion paper was leaked in May 2008.

On the EU side, the negotiations are being carried out by the European Commission, which has routinely denied or stalled all attempts to give transparency to the process. They have even ignored repeated demands from the European Parliament for drafts and documentation of the process. In December 2008, for example, the European Parliament adopted a resolution which:

Calls on the Commission and the Member States to negotiate ACTA under conditions of the utmost transparency towards EU citizens, especially with regard to the definitions of the terms "counterfeiting" and "piracy" and the criminal sanction measures foreseen; takes the view that the social impact of the agreement as well as the impact on civil liberties must be assessed; supports the establishment of a task force to examine the implementation of the agreement, by promoting this subject in dialogue between the European Union and third countries and as part of cooperation measures with those countries.

The Commission failed to comply. Several months later, in March 2009, the European Parliament and Council adopted new regulations on transparency in government, and as part of this they specifically singled out the ACTA negotiations as an area in which transparency was sorely needed.

In accordance with Article 255(1) of the EC Treaty, the Commission should immediately make all documents related to the ongoing international negotiations on the Anti-Counterfeiting Trade Agreement (ACTA) publicly available.

Nevertheless, these documents are still not available. Although there are judicial procedures by which the Parliament can compel the Commission to act, these take a long time, long enough that the details of ACTA might not be made available until the negotiations are concluded and the treaty's provisions presented as a fait accompli.

It's therefore been recommended that citizens of EU countries pressure our individual governments to make the process more transparent. For example, I have recently filed a request under the Freedom of Information Act for details of the UK's part in the ACTA negotiations and, specifically, for draft documents, and I'll be writing to my MP later today to ask him whether he feels that such secrecy in negotiations of a trade treaty is really in the public interest.

Watch this space.

Update: I've made additional FOI requests of the Department for Business, Innovation and Skills, and the Foreign and Commonwealth Office.

Update 2: BIS say that I should contact UKIPO. How fortunate that I already have done so!