Re: Database Design Advice

2013-11-18 Thread Philip Skinner
Auto-increment a double column primary key, something like: uid int(11) not null auto_increment, revision int(11) not null auto_increment, primary key(uid, revision) ; works in mysql. You won't have your concurrent query issues there, for the most part anyway. Maybe marking a records as taint

Re: Quarantining crap HTML?

2013-05-23 Thread Philip Skinner
On 05/22/2013 07:53 PM, David Dorward wrote: On 22 May 2013, at 16:29, DAVID HODGKINSON wrote: On 21 May 2013, at 13:14, Philip Skinner wrote: You can specify the content of an iframe using a javascript call in the src: Upon sleeping on it, this was the direction I was headed in. The

Re: Quarantining crap HTML?

2013-05-21 Thread Philip Skinner
\ On 05/21/2013 02:28 PM, Ben Vinnerd wrote: What if the HTML contains single or double quotes? On 21 May 2013 13:14, Philip Skinner wrote: You can specify the content of an iframe using a javascript call in the src: On 05/21/2013 01:57 PM, Ben Vinnerd wrote: You could try putting it

Re: Quarantining crap HTML?

2013-05-21 Thread Philip Skinner
You can specify the content of an iframe using a javascript call in the src: On 05/21/2013 01:57 PM, Ben Vinnerd wrote: You could try putting it in (which doesn't support inline html, so you'd have to load it with src="/path/to/buggered_html_loader") On 21 May 2013 12:31, Dave Hodgkinson

Re: Updating lots of database fields in a single row

2013-01-22 Thread Philip Skinner
Maybe something like: my $qry = $self->dbh->prepare("UPDATE table SET " . join (sort(@fields), '=?, ') . " WHERE id=?"); my $affected = $qry->execute(@hash{sort(keys %hash)}, $id); Though I've had quite a bit to drink. On 01/22/2013 10:57 PM, Andrew Beverley wrote: I've not been developing w

Re: Laptop Recommendation

2012-01-24 Thread Philip Skinner
Apart from the lack of a # keyoh and a crap enter key. Infact anything to do with actually typing is generally pretty crappy. Home and end don't function as nature intended (really really really annoying, until you change it). That new back animation in safari is pretty cool though. I own t

Re: [ANNOUNCE] Technical meeting: An evening of dynamic languages

2009-05-19 Thread Philip Skinner
I try to book, and it tells me: "Bookings You have not selected any options. Please click the back button to select your options." When I have selected "options". Nice. On Tue, 2009-05-19 at 14:52 +0100, Graham Seaman wrote: > Léon Brocard wrote: > > It's not very clear, but you need to sign u

Re: Hack Day 2009

2009-05-06 Thread Philip Skinner
Hello, I'm attending this one again, don't have anything to hack on or have any ideas (haven't thought about it much though), so if anybody needs a hand I'm willing. Thanks, Philip. On Wed, 2009-05-06 at 08:32 +0100, Dave Cross wrote: > It's Hack Day (well, weekend really) this weekend. See >

Re: Unlimited?

2008-10-31 Thread Philip Skinner
On Fri, 2008-10-31 at 04:43 -0700, Ovid wrote: > --- On Fri, 31/10/08, Denny <[EMAIL PROTECTED]> wrote: > > > http://petitions.number10.gov.uk/notlimited/ > > Next we should create a petition which bans pet stores from labelling > termites as "cats". Think of all of those poor kiddies whose pa

Re: Is -C useless?

2008-09-11 Thread Philip Skinner
On Thu, 2008-09-11 at 13:11 +0100, Paul LeoNerd Evans wrote: > Consider the following: > > #!/usr/bin/perl -COL > > print "Hello w\xe9rld\n"; > > $ perl test.pl > Too late for "-COL" option at test.pl line 1. > > WTF?? If that's "too late", where else can I put it? > > If I remove it