White to move and win material

White to move

This is from a game my father played today. His opponent (rated 300 points higher at ELO 2200) was white and offered a draw in this position, which my father accepted. How could white have proceeded instead to gain a significant advantage? Try to solve it completely without moving pieces or using a computer. It is difficult and very interesting. :)

Posted in Chess. 5 Comments »

What is Scratchpad?

I came back to my initial idea to have two separate kind of windows: The spatial single document UI and the (also spatial) project interface. Similar to the way Nautilus works, directly opening a document would open the document interface, while opening the editor itself would create a project interface.

While creating the new window base class I decided to rewrite the entire window code, so it’s non-functional right now. The new project window is coming along nicely however.

Just like the document interface, I want to keep the project interface as simplistic as possible, while retaining a maximum of functionality. On the left side you see a tree view, which easily lets you add folder or document references (not yet) to the current project, similar to TextMate. Just selecting a document will load it in the textview and since Scratchpad does autosave, you never have to worry about unsaved changes.

The part on the lower left contains the ten most recently accessed documents, which allows you to quickly switch between them (for example by pressing CTRL+their number). All those ten “buffers” stay into memory, so they also help to speed up switching between documents. So in effect this is a kind of pseudo MDI interface which acts like an SDI interface. One advantage to traditional MDI text editors is, that you never have to bother closing documents (you can’t actually).

All state for each document is still being saved, so even if you switch to a document that isn’t in your recent buffer list anymore, it will still appear just like you left it.

Of course I have a lot more ideas to build around this interface, but this is the basic setup I’m shooting for. No extra tabs, docks or toolbars are planned (for now).

I’m not quite sure yet how to actually store the projects. One option would be to save them to regular files (I think that’s what TextMate does). Another option would be to keep them at a hidden place and only let the user choose between them on startup. I think I prefer the latter option, especially since it makes creating new projects easier (I can just ask the user to enter a project title on startup). Your comments are welcome!

In case you are puzzled, Scratchpad is a spatial text editor which I have started… quite a while ago actually. It is written in C# and based on gtksourceview. I will likely write a detailed description about it soon, for now let’s just say that it’s different in more than one way. :-) Since I have mainly written the editor to scratch my own itch, I have been very bad at getting releases out (and the last server I put a release on doesn’t even exist anymore…). Hopefully writing blog entries will motivate me to distribute it more actively.

New Monitor

My old CRT was feeping for quite a while already, but recently it suddenly got a blurry and overly bright picture. So I decided it would be time for my very first LCD screen and after some googling decided for the BenQ FP71GX. It’s a remarkably cheap 17″ TFT with a very good picture (for the price) and it’s one of the fastest around. Since I used to play fast 3D games, I wanted to be on the safe side. It also looks very neat:

So far I’m very happy with my choice and have not noticed any problems. Once again however I’m amazed at how different the colors appear on a different monitor and even on the same monitor, if I adjust the color preset. It is important to keep this in mind when arguing about color nuances. :)

Back to Normal

Last week I visited London to work with Richard and some Canonical guys on the Ubuntu Dapper UI. Richard uploaded a group picture. Our initial goal was to make sure that Clearlooks-Cairo would be ready and nicely polished, but we ended up redesigning almost every element in the process. I’m very happy with the result and I think it will give Dapper a fresh new face:

(click image for Dapper Flight 5 release notes with more screenshots)

It was a great experience to work with so many skilled and nice guys in one room and I think we got a lot done for just five (albeit long) days of work. Seeing London was very nice as well, although we didn’t have a lot of time to actually look at it. Maybe I’ll later show the two or three pictures I made, but it will take a while since I still use an archaic analog camera. :)