Enough Packaging?
24 September 2007
I’m all for my package arriving in good condition, and this extra padding certainly facilitates that, but was all that necessary? Oh well, it works!
24 September 2007
10 May 2007
8 May 2007
person_id |
transaction_id |
|---|---|
| 1 | 1 |
| 2 | 1 |
| 1 | 2 |
| 1 | 3 |
SELECT `person_id` FROM ( SELECT `person_id` FROM `table` WHERE `transaction_id` IN (1, 2) ) AS `people` GROUP BY `person_id` HAVING COUNT(`person_id`) = 2
SELECT returns all those people that have been in either of the two transactions. The second groups the people, and selects those that appear twice — in other words, those that were in both transactions. It looks so simple in hindsight!SELECT by using GROUP_CONCAT(), but that loses some of the functionality — as well as the elegance.
3 May 2007 | 3 comments
30 April 2007
recent:username@gmail.com”, rather than the usual “username@gmail.com”. This is apparently automatic on mobile devices, but I don’t see why it’s not the default…
20 April 2007
1 April 2007
'.'” with “'” would work. Nope./path/to/page-with'apostrophe actually went to /path/to/page-with& and tried to find an anchor called 039;apostrophe. So I needed to get the name of the anchor requested as well.if (!isNaN(parseInt(window.location.hash.substring(1, 2)))) { window.location = window.location.href.replace(/&#(d+);/g, function(w, p) { return String.fromCharCode(+p); }); }
CDATA (either through name or id), it must begin with a letter, so only incorrect anchors are checked.
23 March 2007
17 February 2007 | 2 comments
14 February 2007 | 1 comment