jack: (Default)
For the propagation of news, apparently Arthur C. Clarke has died.

Of the vast number of "Gary Gygax has died. I will now demonstrate my witicitude by humorously conflating Gygax's existence with that of his creations" comments on the internet, my favourite few were:

xkcd Death: "You know how when someone dies, they challenge me to a game for their soul? I'm afraid I might be a while on this guy." (Which I think is a great comic, but not quite up to xkcd's usual staggeringly good presentation, I infer it was a little hurried and hence had more verbiage, which just goes to show how good it normally is.)
Penny Arcade A tribute banner "Gary Gygax. Rolling in his grave."
Futurama Gary: "It's a. *rolls dice* Pleasure to meet you! "

(OK, that last wasn't a tribute, it was just good. And a honourable mention to Order of the Stick, because although it's not as funny as the others it (a) fits seamlessly into the ongoing storyline of the comic and (b) says who Gygax was and what he did. I know the name, but no more about the history, but definitely do appreciate the existence of roleplaying games.)
jack: (Default)
Q: Does she play Bridge?
A: Yes.

Q: Roleplaying?
A: Yes.

Q: Board games?
A: Yes.

Q: Does she write you sonnets?
A: Yes.

Q: I've noticed an increase in the proportion of rabbinical experts on your livejournal. Is that coincidence?
A: No.

Q: So, Jewish eh? For the old snip-snip?
A: What?

Q: Come on, make with the penis gossip.
A: *Stare*

Q: Come on, you know exactly which friends are going to ask, though, you can't deny it's a FAQ. Fine, fine. Ahem. "Is the religious difference a problem?"
A: Not really. It's certainly a gulf, but we like talking about religion. Firstly we're not talking about marriage yet. Secondly, even if we were, for some people changing a religion is a big but non-fundamental point like moving to another country, something you might find it necessary to do as a gesture of solidarity. It might be convenient if I had a submerged urge to convert to Judaism, but I don't, and although it may be right for some people, for me taking a false covenant would seem a betrayal of (a) my beliefs and (b) Jewish beliefs, and I can't see how either of those things is a romantic plus :)

Q: Where did you meet? Was it a good story?
A: At pseudomonas's party. I was very bouncy, there were lots of wonderful people introduced to each other, I think we barely talked, but we got to know each other on livejournal thereafter. (Livredor, pseudomonas, can you describe the details any better?)

Q: Go on, come up with a better story!
A: OK, OK. I invited her to my party without knowing she would even be in the country, she was visiting anyway, the plane was late and she rolled into the party late on no sleep and had a wonderful time culminating in an awkward but meaningful hug.

Q: Ooh, better. More?
A: I went to her party in the Pembury, met a large number of wonderful shiny friends, and dragged her aside to tell her how I felt and to ask to see her again, alone, just before she flew out. There was surreptitious and experimental kissing.

Q: Wow! More, more!
A: OK. We met for coffee in Cambridge just before she flew away. This is where we really clicked, we didn't know each other well, but found we could just talk easily and loved doing so, and chucked out of clowns wandered on to borders where we discovered we fit in each other's arms as well as in each other's conversations. We really bonded by email thereafter, but that's the moment I remember.

Q: And the official asking out?
A: On the 29th. Had you ever heard of that custom?

Q: Of course!
A: Oh well, never mind. I hadn't, so I had no baggage, but it was definitely the right day to make things official. Mum's birthday is All Saints Day. Dad's is anti-Christmas. My anniversary with Jane was valentines. But 29th definitely wins for memorable day stakes. Obviously four years is a long time to last, but the anniversary will be unforgettable if we get there :)

Q: Lady love?
A: That's what sonicdrift jokingly called her. I'm a little amused and a little annoyed -- it sounds just about perfect, with the Victorian connotation, and she's happpy, but I'm not sure it's quite right. Any better suggestions?

Q: Beau?
A: That's what she called me :) It seemed to fit, and I liked being a beau :) Although we hope for a poll for any further suggestions.
jack: (Default)
As several people have reminded people already, if you like seeing celestial mechanics in action, you won't be able to see the moon for several hours about around 03:00 GMT tonight. It may be wise to look now for comparison: if the moon is obscured from the sun by the earth, that's a lunar eclipse, if the earth is obscured from the sun by the moon, that's a solar eclipse, but if the sun is obscured by the earth from you, that's night, that's no less special, but happens every day night, and the moon being obscured from you by the moon is also normal, and happens every month[1], and the moon being obscured from the earth by the earth is also normal, and also happens every day, but doesn't have such a good name, except "after moonset".

[1] Pedant note, yes it DOES happen every month. Sometimes twice :)
jack: (Default)
Aha! I hoped I'd find someone talking about that QI episode and here it is.

http://www.qi.com/talk/viewtopic.php?t=10008&start=12&sid=8da3f18e501905ad74133159e6526839

(Worryingly, MY post is now practically the top hit for the subject.)

Thoughts:

* I don't blame QI. Although its a shame I think they were misleading, the look on Alan Davies face when he gets a "do you know the obvious" question wrong to flashing and buzzing is worth it

* And he lost about 30 points guessing wrongly (the highest score was about 2, the lowest, about -30) so it didn't make any difference.

* And he was successfully funny, which is the real point.

* There's a few more nuggests. The CIA thinks there are fifty states, and you would think they have grim-faced men in charge of collecting this sort of intelligence.

* The Secretary of the Commonwealth of Massachusetts has this to say: "Massachusetts, like Pennsylvania, Virginia, and Kentucky, is called a 'Commonwealth'. Commonwealths are states." He seems like the kind of person that ought to know.

* If the question could be phrased in such a way as to ask whether they are *called* states (a bit like asking how many countries are kingdoms, perhaps) then 46 could be the best answer.

* However, I don't think 46 is the pedantic answer. It's the answer at a very very specific level of pedantry. Sufficiently pedantic to be aware that four of the states are not entitled states, and consider that more important than what the most obvious and useful answer is. But insufficiently pedantic to consider that they are, in fact, states, and thus the literally correct answer, whether they're also commonwealths or not, is 50.

* I have a love/hate relationship with that level of pedantry. I lived in it for a while (some would say between the ages of 4 and 21). I have a lot of sympathy -- it's a genuine effort to spread correctness and knowledge of obscure topics. However, I also feel obliged to help combat it, and expand people's perceptions into more pedantic and more helpful responses.

* And, while googling, I show its not universal, but intelligent, knowledgeable people do give the 46 answer.
jack: (Default)
The other thing was the old chestnut about how many US states there are. The question is confused because several of them are commonwealths. I ignored this trivia question for ages, not knowing anything about it, but when it came up there, I finally felt impelled to look up a definitive answer.

Before that, I couldn't even have told you the traditional number with confidence. For the record, there are:

* 50 entities commonly referred to as states, including Alaska and Hawaii not contiguous with the rest
* DC
* Puerto Rico
* Some incorporated territories (mainly inhabited atols)
* Some unincorportated territories (mainly uninhabited atols)
* Some regions that may overlap with an above case (water, indian reservations, etc)

People often seem to think there are 52 states. Perhaps because 50 sounds too round a number. There are a couple of suggestions for why this is. (1) People remembered Alaska and Hawaii, but thought they were as well (2) That's how many cards there are in a deck.

I certainly suffered from the second factual false friend :)

http://www.abovetopsecret.com/forum/thread212402/pg1 has a humorous description of the situation, and http://en.wikipedia.org/wiki/Political_divisions_of_the_United_States a more sober one.

However, the "trick" question is about the states.

How many US states are there in the USA?

This typically crops up in trivia questions and the like. It generally goes something like,

Person A: How many US states are there in the USA?
Person B: 50
Person A: Ha ha! You're wrong! [1, 2, 3, or 4] of them are Commonwealths!

And sometimes you get:

Person C: Ha ha! No, you're wrong!

QI stopped at line three. (Did I remember that correctly?) But I think I disagree, I think its best to say there are 50. Although, of course, if anyone ever asks the question, the Commonwealth of Virginia had better be the first thing out of your mouth if you guess that's what they meant, or they'll ignore your citations and consider you an idiot for the next week.

As I understand it, "state" was originally referring to a political entity the way "country" does. The articles of independence talk about severing ties from the state of Britain.

I use Virginia as an example. There seem to be two possibilities.

(1) Virginia is a commonwealth, not a state, although shares all properties with a US State.
(2) People are fooled into believing in false dichotomy that it must be a commonwealth OR a state, the Commonwealth of Virginia is a state the way the Kingdom of Great Britain is a country.

Or possibly somewhere in between. However, the second case looks most convincing to me.

Evidence

As far as I can see, the evidence that Commonwealth of Virginia can be described as a US State is:

* It was a state in the sense the framers of the constitution were thinking of, a political entity
* It signed the Articles of Confederation that referred to the thirteen uniting units as states
* The constitution of the Commonwealth of Virginia refers to itself as a state in at least one section
* It is one of the entities having all the rights and responsibilities of a state as described in the US constitution
* It is commonly referred to as a State, official documents mentioning US States don't have to add "and commonwealths"

And the evidence that it isn't a state:

* It doesn't use "State" in its official title, whereas other states do.

It comes down to the meaning of the words. I think the meaning I'm thinking of for "state" is the only reasonable one in the context, and normally intended. I think "commonwealth" is more fuzzy, to some extent it describes entities having some philosophy, but a lot it just refers to several sets of entities that have come to be identified in that way. Like, if you ask "How many kingdoms are there," you might have to ask "Do you meant, how many countries technically ruled by a monarch? Or how many countries called 'kingdom'?"

If so, it sounds to me like the Commonwealths mentioned are definitely *also* states. So mentioning this distinction is sensible, but "50" is the only correct answer.

However, I've probably missed *something*, possibly something important. Can anyone add anything? Does the constitution treat them in any way differently (I thought I remembered that it did, but couldn't find anything.)

ETA: Followup post here

Ceilidh

Apr. 23rd, 2007 12:55 pm
jack: (Default)
For anyone else who likes warning, there's a round ceilidh on Saturday (check the website for location change).
jack: (Default)
Google sync will probably take care of me. But in case you're curious, here's what I would do if I could, it sounds simple enough. Does anyone write Firefox extensions, please implement it! I might get round to it, but not soon.

* Remember the time of the last sync and if since then:
** If the local is unchanged and the remote has changed, copy the remote to the local.
** If the remote is unchanged and the local has changed, copy the local to the remote.
** If both have changed, "merge" the files.

* Merge means, examine both markup-language trees and put in the output everything in either input

* The above sync operation should be run:
** Automatically before adding a bookmark
** Automatically after adding a bookmark
** Automatically on opening the browser
** Automatically, [once] a day
** Manually with a button that shows the current state and says "upload" "download" or "merge"

I think this has all the properties I want. So long as both computers are online while I'm using them, bookmarks will propagate not slower than 24 hours, and never become conflicted.

The worst that can happen is that one computer be offline when I use it and that I then delete or move a bookmark in one browser and do anything to a bookmark in the other (which is unlikley, if it's offline, I'm probably not firefoxing, am I?). In that case, the bookmark will have to be redeleted. You could fix this by adding mark-up elements to indicate which computer did what, but it's probably not worth it.

Note, this works because I don't use add bookmarks all the time. Opening an scp connection every two minutes could be wasteful, but one a day is fine :)

Also, you could do something similar external to Firefox, but you'd have to watch the bookmark file and see when it changes, and have a cache from before it changed. And it works fairly easily because of the tree-nature: you *can* sync text files, but merging is confusing.
jack: (Default)
http://en.wikipedia.org/wiki/Five_by_five

In voice procedure (the techniques used to facilitate spoken communication over two-way radios) a station may request a report on the quality and strength of signal they are broadcasting. In the military of the NATO countries, and other organizations, the signal quality is reported on two scales; ... for signal strength, and ... signal clarity. Both these scales range from one to five, ... The listening station reports these numbers separated with the word "by".

Five by five therefore means a signal that has excellent strength and perfect clarity — the most understandable signal possible. Five by five by extension has come to mean "I understand you perfectly" ...

The term "five by five" was popularized by the character Faith in
Buffy the Vampire Slayer. Faith Lehane used it frequently ... meaning that things were good.

(Someone was asking me what this means. Here, suckle at the informational teat :) There isn't a citation, so I don't know for sure this is completely correct, but I'm sure it's why she says it.)

Presents

Jan. 1st, 2007 12:51 pm
jack: (Default)
What are presents? Shall we say, giving someone something they wouldn't have had otherwise. However, the reasons why they don't have that differ. For a child, it's probably "your parents haven't bought it yet." For many people, it's "I can't afford to buy that." However, a pleasant middle-class household *could* afford any thing they wanted, all the way up to £200,000 if they chose; but they can't afford *all* things, so you chose which to spend surplus income on. Then the limiting factor is almost "thoyling." A present to myself is something I can afford, that's fun, but that I'm being profligate for :) If you're actually pretty rich, then you have the "already got everything problem."

The *other* limiting factor is knowing you wanted something, or that something existed. That's why buying presents can be so difficult, you're looking for something you know someone would like, that they wouldn't. Meeting both factors is more "wow-ful" though meeting either is fine. For someone very rich, this is about the only way. For someone very poor, it's obviously better, but there would be many things you both know you want, that would be very acceptable. If you can't meet either, that's when you exchange book tokens, which is perfectly fine, but isn't special.

Of course, there are other things as well. You might give someone something they couldn't have for any combination of reasons including the above and: you were married to them didn't previously want them to; they would be embarrassed to buy it; they would have had to get it shipped from another country; etc.

This is why I like books. If you *really* want a book, you can buy it, but there are too many good books, so having that specific one is a little extra unjustified luxury. And there will *always* be books you might like but haven't read. It's difficult to know what, but at least you stand a *fair* chance of picking right :)

For myself, I always like:

* Things I didn't know I wanted, geek toys, etc.
* Music. I listen to almost no music, so if you want to impress your tastes upon me, try, please! :)
* Books. Pick something you like and think I might like, and it'll always be gratefully received.
* Chocolate. I don't *especially* like chocolate, but it's always very nice and I never buy it :)
jack: (Default)
However, when many Poohs are moving close to each other, the processing can be more complicated. If you have "Pooh, Pooh, space" and both Poohs run right, you would naturally expect that the second would move into the empty square, and the first into the second's square. If the second's move function happens first, this is indeed what happens. However, if the first's move function happens first (as it would if the Poohs start moving right, not left), the square it moves into is blocked. (Or, it moves regardless, overwriting the contents of the next square!)

This manifests as in the first tick, only the second Pooh moving forward, and thereafter them always having a blank square between them. In fact, this looks quite good, but it isn't what the logic demands: in real life, they'd both move a fraction of a centimetre, and the one ahead wouldn't block the one behind, it only does because they move in a square jump at once.

What can you do? It's hard to know the best order to process them in beforehand, you'd have to keep shuffling the array.

Make the first check if the second is moving, and if so, move? But then if there second were moving sideways but in fact was blocked by a wall it would stay where it was after all. Check if it's able to move? But it might be unable to move for many many reasons not even coded yet -- next year I may include sticky mud.

You basically need to do the entire movement routine on the second Pooh, once you realise the first one is blocked. But that's exactly what you want. The answer: The move function checks if movement is blocked by another character. If so, it calls the move function for that character, and when it's complete, checks then if the original movement is still blocked or not.

If you have a line of five Poohs moving left, this never happens. If they're moving right, the first tries to move, tells the second to move before it completes it's move, the second tells the third, and you get recursion five-deep, ending with the rightmost completing the move first, then the next-rightmost, etc.

I thought this was a pleasingly elegant solution. (Of course, you don't need recursion, you could permute the array instead.)

The thought occurs to me, I invented the solution, it's not *necessarily* obvious. But everyone writing a characters-moving-on-tiles games must have done something similar. (Admittedly, mine depends on character interactions more than many. If you have a thousand characters, you fudge this sort of thing. If you have two, they're practically AIs anyway.)

So, experienced programmers, tell me. Was that obvious to you? Had you seen it before? Where should I have been reading/hanging out to have heard of it myself? :)
jack: (Default)
By the way, this came up on monday, and it is as I thought, and in case it wasn't clear at the time: the film for which what Soylent Green is is a spoiler is "Soylent Green".

PS. And please don't say what it is in a comment to be funny. I know the meme is more popular than the movie now, and everyone knows what happens (the last person who didn't was told on monday today) but just humour me, the irony would be too painful otherwise.

Edit: PPS. Other spoilers are as ok as normal though. Elim Garak, I am your father!

PPPS. I think this being the first time I've made explicit a comment policy. I know some people explain, but I've always left it implicit, assuming that the default amongst people I know is clear, even if it annoys some people, being approximately the rules of the living room:

* I reserve the right to enforce my will on my place, but in actual fact everything will be controlled by social etiquette.
* Except people I don't know trying to sell stuff to people indiscriminantly. They will be ejected.
* People breaking the law in a major way, ditto.
* Be polite, no gratuitous hate, no gratuitously work unsafe stuff, be careful with legally dodgy stuff. Or I'll ask you nicely not to :)
* Never edit something without making it clear, if it changes the meaning.
* Everything I write copyright me. Everything you write, I'm not sure.
* If I ask you to abide by an etiquette, please do.
jack: (Default)
Problem: What is the shortest base-d sequence which contains all sequences of n d-digits?

I think I have a solution, but it's a bit of a sketch. The best possible is length d^n, assuming all adjacent sequences overlap (n-1), and I aim to show how to make one that length.

Instead of a sequence, consider a loop. We write this as a sequence, but consider the ends to be joined. This is because there's enough symmetry we can probably solve the one problem if we can solve the other, and because we can combine sequences without having to have n-1 tails hanging off the ends.

For instance, for 3-sequences of 2-digits, the loop 00010111 contains all 2^3 3-sequences, two of them wrapping round the end.Spoilers :) )

Active Recent Entries