What do you do when you add an element to a linked list, but that element itself links to other elements?
Before now, I've always ignored the extra links so they get lost but it seemed sort of incomplete. Today I kept them and inserted them into the list at the appropriate point but I'm not entirely sure that's what someone might expect.
Hmmmm.....
Also, php is weird. Why compare two objects based on the values of their attributes rather than whether they are references to the same objects or not?
Friday, 31 August 2007
Thursday, 30 August 2007
Books I Read in August
Total: 6 books.
Voice of the Gods (Trudi Canavan)
Digging To America (Anne Tyler)
PostSecret (Frank Warren)
Dear Nobody (Berlie Doherty)
Persuading Annie (Melissa Nathan)
The C Words (Mark Mason)
I borrowed Voice of the Gods from Kimball as it's only just been released in hardback and I own the other two in paperback. The nice thing about Trudi Canavan's books is that you don't wait for the next one only to discover it's half as good as the last. I read this in bits over a couple of days finishing on the 14th. A fairly easy fantasy read which I shall acquire in paperback at some point.
Digging To America was a Borders Oxford Street buy (they'll be getting scarcer now). I think it was an Orange Shortlist book. I've been quite a while reading it, lots of little bits with long breaks. It follows two families after they each adopt a child from abroad.
Not really a book of much reading, PostSecret is one of Lizi's arty books. I'm pretty sure I'd read about this before I read it. The book is a collection of postcards from a group art project in which people were invited to anonymously contribute their secrets in a creative manner on one or more postcards. This book is the kind of thing I really like to look at but would never have myself so it was really good to have a look at. I sat down and read through these on the sunny afternoon of the 5th.
Another book from Lizi's shelves, Dear Nobody is/was a GCSE(?) text so I've read it many times before. It was kinda nice to read it again having mostly forgotten the details. It's pretty short but enjoyable. This was possibly the first time in a while I've finished two books in one day (05/08), but I had started it the day before.
Persuading Annie (05/08) was the other half of a buy-one-get-one-half-price at Borders Stockport (the other book being England England). Another chick-lit, but one by an author I know to be ok. It was a little predictable but a not-too-boring easy read. Lizi wants to read it and then it's going to Kathryn (UK) via BookMooch.
I don't think I've ever read a man-authored chick-lit that hasn't been brilliant, until now. The C Words (commitment, coupledom, children) is like the many decidedly average girly novels of the world. (I'm not entirely sure why so many of them continue to be published, it's not like the ideas are new and unique). I picked this one off the many on Lizi's bookshelf and read it in the morning on 4th August after a rather nice after-camp shower. Mmmm, hot shower...
Voice of the Gods (Trudi Canavan)
Digging To America (Anne Tyler)
PostSecret (Frank Warren)
Dear Nobody (Berlie Doherty)
Persuading Annie (Melissa Nathan)
The C Words (Mark Mason)
I borrowed Voice of the Gods from Kimball as it's only just been released in hardback and I own the other two in paperback. The nice thing about Trudi Canavan's books is that you don't wait for the next one only to discover it's half as good as the last. I read this in bits over a couple of days finishing on the 14th. A fairly easy fantasy read which I shall acquire in paperback at some point.
Digging To America was a Borders Oxford Street buy (they'll be getting scarcer now). I think it was an Orange Shortlist book. I've been quite a while reading it, lots of little bits with long breaks. It follows two families after they each adopt a child from abroad.
Not really a book of much reading, PostSecret is one of Lizi's arty books. I'm pretty sure I'd read about this before I read it. The book is a collection of postcards from a group art project in which people were invited to anonymously contribute their secrets in a creative manner on one or more postcards. This book is the kind of thing I really like to look at but would never have myself so it was really good to have a look at. I sat down and read through these on the sunny afternoon of the 5th.
Another book from Lizi's shelves, Dear Nobody is/was a GCSE(?) text so I've read it many times before. It was kinda nice to read it again having mostly forgotten the details. It's pretty short but enjoyable. This was possibly the first time in a while I've finished two books in one day (05/08), but I had started it the day before.
Persuading Annie (05/08) was the other half of a buy-one-get-one-half-price
I don't think I've ever read a man-authored chick-lit that hasn't been brilliant, until now. The C Words (commitment, coupledom, children) is like the many decidedly average girly novels of the world. (I'm not entirely sure why so many of them continue to be published, it's not like the ideas are new and unique). I picked this one off the many on Lizi's bookshelf and read it in the morning on 4th August after a rather nice after-camp shower. Mmmm, hot shower...
Wednesday, 15 August 2007
I would fall for the geek and the gentleman
You would fall part for the geek.
If you're looking for love, consider spending a little more time studying up in the library... (image)
You would fall part for the gentleman
...you'll end up with the guy who's suave, sophisticated, and classy through-and-through. (image)
Is there such a thing as a sophisticated, classy geek?
Sunday, 12 August 2007
Yawn
It's far too easy to be tired. I've done some good being tired today. It gets too hot to do proper sleeping at night but then all the little bits of sleep don't join up to make you awake.
More napping!
More napping!
Thursday, 9 August 2007
That alt key
There seems to be an alt key in my way when I steal other people's computers. Where's that one that does stuff - where's my Apple key?
Gr.
Somehow my hands have taught themselves that the button of usefulness is just that bit further over than the control key. Ah well.
Wednesday, 8 August 2007
If at first you don't succeed
...use maths.
I have finally conquered the puzzle. The solution looks something like
Every piece now has an A point, a B point and a C point. I was just about to rule out 5 as a point when the last possible combination of pieces just worked!
Assuming I've already ruled out the two other points of 5 as being the top, then:
I have finally conquered the puzzle. The solution looks something like
5 | ||||
8 | 7 | 6 | ||
4 | 2 | 3 | 9 | 1 |
Every piece now has an A point, a B point and a C point. I was just about to rule out 5 as a point when the last possible combination of pieces just worked!
Assuming I've already ruled out the two other points of 5 as being the top, then:
- 5 forces 7 at its bottom.
- On the LHS of 7 I must place either 8 or 9.
- On the bottom of 9 I must put either 2 or 6.
- 2 forces 3 on its LHS.
- 7 forces 6.
- 6 forces 4 and then this solution doesn't work.
- Going back to follow on from step 2, on the RHS of 7 I must put either 2 or 6.
- If I have a 2 I can place pieces below the 2 and the 8 but then can't place a piece between these.
- Going back to follow on from step 7, 6 forces 1.
- 9 forces 3.
- This solution works!
When even Google won't solve your problem
Keep looking :)
In the meantime, I have actually found the puzzle online (with the reminder that there are two solutions). The puzzle is the "Dizzy Dolphins Tricky Triangles at the bottom of this page. The solution pictured is the one I've always been able to find and is numerically (my numbers) presented as:
In the meantime, I have actually found the puzzle online (with the reminder that there are two solutions). The puzzle is the "Dizzy Dolphins Tricky Triangles at the bottom of this page. The solution pictured is the one I've always been able to find and is numerically (my numbers) presented as:
4 | ||||
7 | 5 | 3 | ||
8 | 2 | 9 | 1 | 6 |
Subscribe to:
Posts (Atom)