Hello.

14 August 2005

something everyone should know

Did you know there are dust devils on Mars? More importantly, did you know there are animations of such things?

10 August 2005

More Sudoku puzzles

My local newspaper started running Sudoku puzzles. I noticed (with the aid of the Sudoku Susser program I mentioned yesterday) that yesterdays puzzle had multiple solutions. I was thinking it was rather hard for three stars, and I was wondering what kind of cycle I had found in it (ooh, Fishy Cycles, ooh!), and rather than any kind of exciting cycles, it was just multiple solutions. :(

Here is the puzzle in case you are interested.

08 August 2005

Dashboard and Sudoku puzzles

I finally upgraded to OS X 10.4. So now I've gotten a chance to play around with the overhyped features, Dashboard and Spotlight.

I don't really use spotlight, I suppose I just keep my files in good order. It doesn't excite me.

Dashboard I thought would be a waste of CPU and time. But I've found so many fun things to with it, including check weather maps, NASA news feeds, translation services, seeing who is on AIM, checking gasoline prices, sun spot trackers, hurricane trackers, and so much more. It's like a shiny toy.

One of my favourite widgets is a Sudoku game. Unfortunately, I noticed while running "top", that it was the only widget hogging CPU while not active. I browsed the source (hey, kids, did you know all these widgets are written in javascript? Unlike programming for the dock, which you have to learn ObjectiveC for) and couldn't figure out what it was doing, but my javascript is very rusty.

A better Sudoku program is Sudoku Susser, which doesn't just give you random puzzles, but actually "susses" out the solution to these puzzles. The documentation for this program alone is worth downloading the program for, and then it shows you all these crazy methods of solving these puzzles. If you feed it a difficult puzzle, it will give you some detailed log files, for example:
* There is a "Fishy Cycle" in the puzzle, as follows:

{R1} -- R1C2 -- (C2) -- R3C2 -- {R3}
{R3} -- R3C6 -- (C6) -- R8C6 -- {R8}
{R8} -- R8C7 -- (C7) -- R1C7 -- {R1}

Each of the "vertex groups" (shown in {braces}) has only 2 squares that can contain a <4>. Such squares are called "conjugate pairs".

These squares are the "link squares", and the possibility they share is the "link number".

Vertex groups are linked together by "edge groups" (shown in (parentheses)). An edge group shares link squares with the two vertexes that it links.

A Fishy Cycle is a loop around the puzzle, such that each vertex in the loop is visited only once, each link square is used only once, and each edge is used only once. Also, the vertexes of a fishy cycle cannot appear as edges in the cycle.

In a fishy cycle, it is impossible for the link number to appear in any of the edge groups except in the link squares. So we can remove it if it appears in any of the other squares in the group!

Beautiful female Sudoku maniacs should be aware that if you kiss a geeky mathematician, they are pathetically grateful, and will tell you lots of stuff like this.
I find it odd that every newspaper I've seen with Sudoku puzzles asserts that there is no math involved.

Also, I should note that I've stayed up until 2:00AM trying to come up with a nice Sudoku puzzle to share with you. There is a huge difficulty in making a puzzle that isn't too hard and isn't too easy. I apologize for not including any Fishy Cycles in this puzzle. Here is the progress so far, and it hasn't been tested for perfection yet.



If you find the solution, send me an email. I'm going to bed now.

06 August 2005

Write at least one post, every day

My uncle wrote an article about how he writes, every day, whether he wants to or not, and this particular article was about why he was writing, even though he actively didn't want to. (If you ask really nicely, I might be able to find a scanned copy of the article--but don't hold your breath, I may not have it.)

So yesterday, I was playing Steamband, and while the game can be a lot of fun, I had reached the point where I was still playing it, even though I actively did not want to. At some point I stopped and asked myself why the hell was I playing this game, even though I didn't want to? At this point I thought of my uncle's article and figured if I was going to do something I didn't want to do, than I might as well do something that might be, in theory, good for me. I was going to proceed to play Dance Dance Revolution (get some excercise in, right?) but it was later enough to think of the neighbors, so I went to bed instead and lay awake wondering about the situation.

So that leads to the title of this post, and I'm not guaranteeing that I'll write an article every day, just that when I'm doing something unproductive that has lost its fun, I will stop and do something different. His article was about persistance, mine is about not persisting in unproductive matters (but unfortunately, I could go on an incredibly long philosophic garble of what is "productive" or "unproductive", so I'm not sure if this actually means anything).