Re: CRUDdy DBIC question
On Thu, Jan 19, 2012 at 3:00 PM, Bob MacCallum uncool...@gmail.com wrote: Sorry about the Perl question. We have a database model where the master copy of the data is file based. Is there some DBIx::Class magic which does some kind of nested update_or_create_or_delete? For example, an object might initially be written to the db along with its three children, but then someone edits the file and removes one child, adds another, and edits an existing child. I've seen http://search.cpan.org/~scain/DBIx-DBStag-0.12/DBIx/DBStag.pm and stag-storenode.pl - if we convert our files into Stag format temporarily, maybe this could work. Are there any other options I've missed? There is: http://search.cpan.org/perldoc?DBIx::Class::ResultSet::RecursiveUpdate - but I hate it. Cheers, Zbigniew
Re: OT: HTTP server that binds tcp6
On Jan 18, 2012, at 6:42 AM, Roger Burton West wrote: I have a handy short program which is built on top of HTTP::Server::Simple. That's fine, but now people want IPv6 support. Is there a convenient server backend which offers this? I've just been looking at POE::Component::Server::HTTP and POE::Component::Server::SimpleHTTP with no joy. Any recommendations? (Or a way of getting IPv6 out of HTTP::Server::Simple would be even better.) I _believe_ there's a subclass of HTTP::Server::Simple that supports v6 well up on CPAN. There are also patches to HTTP::Server::Simple in a ticket in rt.cpan.org. I haven't taken those patches because H::S::S is very much core deps only and so far, I haven't gotten properly conditionalized patches Best, Jesse Roger
Re: CRUDdy DBIC question
On 20 January 2012 01:00, Bob MacCallum uncool...@gmail.com wrote: Sorry about the Perl question. We have a database model where the master copy of the data is file based. Is there some DBIx::Class magic which does some kind of nested update_or_create_or_delete? For example, an object might initially be written to the db along with its three children, but then someone edits the file and removes one child, adds another, and edits an existing child. I've seen http://search.cpan.org/~scain/DBIx-DBStag-0.12/DBIx/DBStag.pm and stag-storenode.pl - if we convert our files into Stag format temporarily, maybe this could work. Are there any other options I've missed? Hi Bob, Have you looked at this module? It's a nested update, maybe you could extend it to cope with create+delete as well? (I note that DBIC already copes with nested create, at least) http://search.cpan.org/~jjnapiork/DBIx-Class-ResultSet-RecursiveUpdate-0.24/ tjc -- Turning and turning in the widening gyre The falcon cannot hear the falconer Things fall apart; the center cannot hold Mere anarchy is loosed upon the world
YAPC::Europe is 20-22 August in Frankfurt
YAPC::Europe now has dates! It's Monday 20th to Wednesday 22nd August (in Frankfurt am Main, Germany) It's at the Johann Wolfgang von Goethe Universität, which isn't that far from the central station, and (like the rest of Frankfurt) is 120km from the lie that Ryanair fly to. Location: http://j.mp/xIyqQN Registration: http://act.yapc.eu/ye2012/register No call for papers (yet) or prices, but I'd guess that the latter is 100 Euros. BA fly from City to Frankfurt, which is probably nicer than most of the other options. Nicholas Clark
Laptop Recommendation
Hello. Anybody like to recommend a laptop? (Or a sane website for searching for laptops by criteria I care about, rather than first making me pick which sub-brand of laptop I want or define what sort of customer I am?) I'm hoping that finding somebody who already owns something along the following lines will be less painful than my previous approach of interrogating various websites -- which surely should be trying to take my money -- into providing useful information about what they're selling: * weight less than 1.5 kg * screen about 12 * decent touchpad (see below) * SD card slot * Bluetooth * VGA port * 3-years' on-site support (or preferably 4) * decent amount of memory * solid-state hard disk I really liked the Synaptics touchpad in the Dell X300 I bought 8 years ago. I didn't realise how good this was until I replaced that computer with a Dell D430 4 years later: that came with an Alps touchpad described as Synaptics compatible but in practice can't distinguish gestures the Synaptics one could, such as between pressing 2 and 3 fingers, and circular scrolling isn't as precise. Anybody got anything like that? The Dell Latitude E6220 looks like it might be a contender, but I couldn't find the touchpad manufacturer in its technical specs. When my previous 3-year warranty with them was expiring they offered the option to purchase a 4th year; hopefully that would be the case here as well (though I can't find anywhere which says that). Buying a Dell might have the advantage of still being able to use my existing power supplies and external DVD drive. The ThinkPad X220 also looks plausible. Anybody able to report on the touchpad? Or whether they off warranty extensions to 4 years? With a MacBook Air it looks like I'd have to get the 13.3 model to get an SD card slot (which might be either be a bit bigger than I want for convenient packing or useful extra screen pixels for the same weight as the competition). Anybody run Linux on one and able to report on the touchpad? Apparently various other companies make laptops too, but finding out about them was just too painful. Suggestions of any I should consider welcome. Thanks in advance. Smylers -- http://twitter.com/Smylers2
Re: OT: HTTP server that binds tcp6
On Fri, Jan 20, 2012 at 03:51:17PM -0800, Jesse Vincent wrote: I _believe_ there's a subclass of HTTP::Server::Simple that supports v6 well up on CPAN. There are also patches to HTTP::Server::Simple in a ticket in rt.cpan.org. The patches on CPAN don't work with the current Debian/stable version, but the ones on the Debian bugtracker do. Thanks! (Yeah, I could in theory bugfix, but I'm using the module because I want someone else to do the heavy socket programming in the first place...) In case anyone's interested, it's a BitTorrent tracker: http://firedrake.org/cgi-bin/gitweb.cgi?p=nobraketracker.git git://firedrake.org/nobraketracker.git/ https://github.com/Firedrake/nobraketracker Roger
Re: [ANNOUNCE] London Perl Mongers Technical Meeting 26th January 2012
On Tue, Jan 10, 2012 at 09:06:58PM +, Leon Brocard wrote: The next technical meeting will be on the 26th January 2012 from 7pm to 9pm (you may arrive earlier, please sign in at the reception). You have to sign up to attend, see below. It will be hosted by NET-A-PORTER.COM and held at their offices in Westfield London Shopping Centre. Many thanks to Kristian Flint, NET-A-PORTER.COM and everyone involved for allowing us to use this wonderful venue. We have the following great speakers: Gianni Ceccarelli - Dispatch tables inside regexes and nasty tricks in the name of speed Paul Makepeace - Ruby cuteness applied to testing webserving Zefram - Customising ops for semantic fun and performance profit Tomas Doran - Using ZeroMQ and Elasticsearch for log aggregation For more information and to sign up, please visit: http://londonpmtech.appspot.com/ This is this week! Please sign up. See you there, Leon.
Re: Laptop Recommendation
On 23 January 2012 12:51, Smylers smyl...@stripey.com wrote: The ThinkPad X220 also looks plausible. Anybody able to report on the touchpad? Or whether they off warranty extensions to 4 years? I have the X220. The touchpad seems OK to me. I can only compare it to the Asus Eee 901, as they are the only ones I have used, and its not quite as good as that, but close. My main problem with the X220 touchpad is when I use too fingers to scroll, it either doesn't register or ends up jumping half the page. On my Eee, I never had these problems. Of course it does also have the nipple, but can't get the hang of that. Other than the touchpad, I like the hardware buttons for volume and mute, its light and feels well built. Sorry, no idea about the warranty, its a work supplied laptop. Hope this helps, Andrew
RE: CRUDdy DBIC question
Bob MacCallum uncool...@gmail.com wrote: Sorry about the Perl question. We have a database model where the master copy of the data is file based. Is there some DBIx::Class magic which does some kind of nested update_or_create_or_delete? For example, an object might initially be written to the db along with its three children, but then someone edits the file and removes one child, adds another, and edits an existing child. I've seen http://search.cpan.org/~scain/DBIx-DBStag-0.12/DBIx/DBStag.pm and stag-storenode.pl - if we convert our files into Stag format temporarily, maybe this could work. Are there any other options I've missed? many thanks, Bob. You could use something like DBM and there's a section in the Perl Cookbook on using tie with objects but... I really question the desirability of doing something like this with anything that doesn't pass the ACID test. There are so many advantages to using a relational database (mySQL is free), I'm wondering why you're not going down that route. How much data are we talking about? Do you care about maintaining your data if your program terminates abnormally? Do you need more than one program to access it at a time? Regards Chris
Re: CRUDdy DBIC question
Thanks everyone for the replies - for some reason I only saw them today. On Mon, Jan 23, 2012 at 5:41 PM, Chris Jack chris_j...@msn.com wrote: You could use something like DBM and there's a section in the Perl Cookbook on using tie with objects but... I really question the desirability of doing something like this with anything that doesn't pass the ACID test. There are so many advantages to using a relational database (mySQL is free), I'm wondering why you're not going down that route. No, sorry for the ambiguity, we ARE using a RDBMS - postgres in fact. I meant that we'll load data in from files all the time - new data and updates (which can include deletes of child objects). The reason being mainly that there are pre-existing (bioinformatics) GUI tools for creating and maintaining the files which take care of a lot things (mainly ontology term search/suggestion) for us. How much data are we talking about? Do you care about maintaining your data if your program terminates abnormally? Do you need more than one program to access it at a time? Regards Chris
Re: Laptop Recommendation
Andrew Jones writes: On 23 January 2012 12:51, Smylers smyl...@stripey.com wrote: The ThinkPad X220 also looks plausible. Anybody able to report on the touchpad? Or whether they off warranty extensions to 4 years? I have the X220. The touchpad seems OK to me. Thanks. My main problem with the X220 touchpad is when I use too fingers to scroll, it either doesn't register or ends up jumping half the page. Hmmm, doesn't sound good. Which OS do you use? I realize that I stupidly omitted to state that I'll be running Ubuntu on whatever I buy. Is two-finger scrolling any good (when it works, obviously)? I've never had a system where that was an option. The touchpad set-up I liked (on my Dell X300, running Gnome) was: * circular scrolling (put finger at 12 o'clock to initiate, then draw clockwise circles to scroll down the page, anticlockwise for up -- much more natural in practice than it sounds to describe) * horizontal scrolling by sliding across the base of the touchpad * single-finger stab for left-click * two-finger stab for middle-click * three-finger stab for right-click I'd be very happy to get back to that, but I'm open to persuasion that something else would be even better. Smylers -- http://twitter.com/Smylers2
Re: Laptop Recommendation
On 23 January 2012 19:17, Smylers smyl...@stripey.com wrote: I realize that I stupidly omitted to state that I'll be running Ubuntu on whatever I buy. Surely not on a Macbook Air though? It ships with a far superior desktop OS. /joel
Re: YAPC::Europe is 20-22 August in Frankfurt
Yay! On another note, how do I stop myself from showing up wearing this awesome T-shirt: http://hipsterhitler.com/store/batter-of-the-bulge-t-shirt/ -Mallory On Mon, Jan 23, 2012 at 11:36:21AM +, Nicholas Clark wrote: YAPC::Europe now has dates! It's Monday 20th to Wednesday 22nd August (in Frankfurt am Main, Germany) It's at the Johann Wolfgang von Goethe Universität, which isn't that far from the central station, and (like the rest of Frankfurt) is 120km from the lie that Ryanair fly to. Location: http://j.mp/xIyqQN Registration: http://act.yapc.eu/ye2012/register No call for papers (yet) or prices, but I'd guess that the latter is 100 Euros. BA fly from City to Frankfurt, which is probably nicer than most of the other options. Nicholas Clark
Re: Laptop Recommendation
Joel Bernstein writes: On 23 January 2012 19:17, Smylers smyl...@stripey.com wrote: I realize that I stupidly omitted to state that I'll be running Ubuntu on whatever I buy. Surely not on a Macbook Air though? Yes. I'm currently running Ubuntu, on a laptop which needs replacing. It's almost certain that whichever laptop I buy will come with an OS other than Ubuntu, but I don't really care what that is. It ships with a far superior desktop OS. Possibly (though I think that's subjective; I know people who've switched each way). I'm not looking to change OSes right now though, and would rather put up with the infelicities I'm used to rather than have a whole bunch of unfamiliar ones inflicted on me. Smylers -- http://twitter.com/Smylers2
Re: YAPC::Europe is 20-22 August in Frankfurt
On 23 January 2012 19:37, Mallory van Achterberg stommep...@stommepoes.nl wrote: On another note, how do I stop myself from showing up wearing this awesome T-shirt: http://hipsterhitler.com/store/batter-of-the-bulge-t-shirt/ Nice shirt, but they used too many typefaces. Should've stuck with Heilvetica. /joel
Re: Laptop Recommendation
Hi, Whenever you find what you like, let us know. When looking for a 13 laptop last fall things sucked... if you wanted Linux. I ended up with a Sony Vaio VPC SB2 series, with problems. Why: Many of the cheaper laptops I would have considered ran Optimus. Optimus is great... if you run Windows. http://jeffhoogland.blogspot.com/2010/09/nvidia-there-is-no-optimus-support-for.html Unfortunately the advantages of power management and nice graphics have made this really popular. I also wanted a CD drive (optical disk). Not common under 15. Stay away from Sonys if you care about power management. They come with Sony software (on Windows) that manages it for you... and doesn't offer Linux any way to see these things. Older models of what I have now did offer access to things like the fan, but by my model, that was gone. Touchpad control is gone (typing sucks) and fan control is gone. Sony claimed 8 hours unplugged. Most testers saw 5 hours. But with Linux it's a little over an hour. With the extra battery slice it's about 2 hours. I have to say, I otherwise really like the thing. :( It had great weight for its screen (1.7kg), has USB2 and 3 slots (4 in total), HDMI (no idea what I would even use that for), VGA, SD card slot, HD DVD magic gate (I don't use computers for media so no idea what that's for either) and the extended battery slice basically adds a little thin layer to the bottom of the laptop and weighed 520g. Also the optical drive was a big plus: for Virtual Box, Windows7 was on a disc. Linux Mint Debian Edition was also on a disc. My music is on discs. Easier. If you registered it (I needed it working quickly, and Windoze .NET errors prevented me from making rescue discs, so registering was useless for me) for 270E or so you could have 3 years' warrenty and on-site too. Registery had issues though: you had to call tech support in the region you were registered in or something weird. So if you were at a conference in Frankfurt :) but had registered in UK it would probably suck. This is from memory of reading about registering. -Mallory On Mon, Jan 23, 2012 at 12:51:48PM +, Smylers wrote: Hello. Anybody like to recommend a laptop? (Or a sane website for searching for laptops by criteria I care about, rather than first making me pick which sub-brand of laptop I want or define what sort of customer I am?) I'm hoping that finding somebody who already owns something along the following lines will be less painful than my previous approach of interrogating various websites -- which surely should be trying to take my money -- into providing useful information about what they're selling: * weight less than 1.5 kg * screen about 12 * decent touchpad (see below) * SD card slot * Bluetooth * VGA port * 3-years' on-site support (or preferably 4) * decent amount of memory * solid-state hard disk I really liked the Synaptics touchpad in the Dell X300 I bought 8 years ago. I didn't realise how good this was until I replaced that computer with a Dell D430 4 years later: that came with an Alps touchpad described as Synaptics compatible but in practice can't distinguish gestures the Synaptics one could, such as between pressing 2 and 3 fingers, and circular scrolling isn't as precise. Anybody got anything like that? The Dell Latitude E6220 looks like it might be a contender, but I couldn't find the touchpad manufacturer in its technical specs. When my previous 3-year warranty with them was expiring they offered the option to purchase a 4th year; hopefully that would be the case here as well (though I can't find anywhere which says that). Buying a Dell might have the advantage of still being able to use my existing power supplies and external DVD drive. The ThinkPad X220 also looks plausible. Anybody able to report on the touchpad? Or whether they off warranty extensions to 4 years? With a MacBook Air it looks like I'd have to get the 13.3 model to get an SD card slot (which might be either be a bit bigger than I want for convenient packing or useful extra screen pixels for the same weight as the competition). Anybody run Linux on one and able to report on the touchpad? Apparently various other companies make laptops too, but finding out about them was just too painful. Suggestions of any I should consider welcome. Thanks in advance. Smylers -- http://twitter.com/Smylers2
Re: Laptop Recommendation
On Mon, Jan 23, 2012 at 12:51:48PM +, Smylers wrote: Hello. Anybody like to recommend a laptop? Most of our team are using Mac Book Air or Pro. That's been a painless experience, good for development, also great for face to face demos and feedback from internal customers. Two developers wanted Windows 7 so I got them Dell Precision laptops. It took me 2 hours to get the first one to connect reliably to the corporate WiFi, the Macs connected automatically. Say no more. Regards, Peter
Re: Laptop Recommendation
On Mon, Jan 23, 2012 at 06:47:12PM +, Smylers wrote: Joel Bernstein writes: On 23 January 2012 19:17, Smylers smyl...@stripey.com wrote: I realize that I stupidly omitted to state that I'll be running Ubuntu on whatever I buy. Surely not on a Macbook Air though? Yes. I'm currently running Ubuntu, on a laptop which needs replacing. It's almost certain that whichever laptop I buy will come with an OS other than Ubuntu, but I don't really care what that is. It ships with a far superior desktop OS. Possibly (though I think that's subjective; I know people who've switched each way). I'm not looking to change OSes right now though, and would rather put up with the infelicities I'm used to rather than have a whole bunch of unfamiliar ones inflicted on me. The cynic in me can't resist suggesting that if you just track current Ubuntu, you can get all of the pain of progress-free change, without actually needing to install someone else's OS.* But I think I'd feel the same about upgrading this laptop from Snow Leopard to Lion. In particular, the missing scrollbars. I can't help with laptops. All the laptop hardware I've ever had experience of is no longer in production. Nicholas Clark * If I need to build a new *nix desktop, it may well be FreeBSD, because the last time I had a FreeBSD desktop, I liked it much better than the mess that Linux installed. Currently I'm disliking what Ubuntu is doing. Although, much like Apple, I think I understand why they are doing it.
Re: Laptop Recommendation
Mallory van Achterberg writes: Hi, Whenever you find what you like, let us know. Will do. Dell are currently un-impressing with their sales team. A Senior Business Consultant had recently mailed asking if I had any IT requirements (presumably cos they have my address from previous purchases), so I sent him a list of features I'm looking for in a laptop. He replied very promptly, with a mail in which the only content was: Please provide me your contact number to call and discuss about this. I'm not looking to discuss this (let alone discuss about it)! I'm wanting facts about the products they sell. And if I'd wanted to speak to somebody, I would've phoned them in the first place rather than e-mailing. Bah. I replied saying I'd prefer e-mail (and surely a company trying to get my money would be keen to communicate in a way that suits me, and in general try not to annoy me?), and haven't heard anything since. Bah. Stay away from Sonys if you care about power management. Thanks for the advice -- dis-recommendations like this are also useful. (Also I've never been keen on giving Sony money since the root-kit audio CD incident, thought that's probably irrational of me to hold that against an entirely different part of Sony many years later and without researching what other laptop manufacturers have been up to which could be just as bad.) Smylers -- http://twitter.com/Smylers2
Re: Laptop Recommendation
Nicholas Clark writes: On Mon, Jan 23, 2012 at 06:47:12PM +, Smylers wrote: I'm not looking to change OSes right now though, and would rather put up with the infelicities I'm used to rather than have a whole bunch of unfamiliar ones inflicted on me. The cynic in me can't resist suggesting that if you just track current Ubuntu, you can get all of the pain of progress-free change, without actually needing to install someone else's OS.* Yes, but it'll be gradual change, so the cost is amortized over multiple tasks I'm actually trying to achieve rather than all at once. And I have enough Linux experience that I'm able to combat some of the undesirable changes, whereas with OS X I'd have to learn from scratch. Though I think the Ubuntu inconveniences are generally restricted specifically to the Unity desktop environment, not the underlying OS. I've given LXDE a brief try, and may well switch to that soon. All the laptop hardware I've ever had experience of is no longer in production. That's my trouble too. Laptop products don't seem to evolve gradually like, say, car models, such that there's an obvious 'current model' of one you like that you bought a few years ago. Smylers -- http://twitter.com/Smylers2
Re: Laptop Recommendation
On Mon, Jan 23, 2012 at 08:50:45PM +, Smylers wrote: Thanks for the advice -- dis-recommendations like this are also useful. (Also I've never been keen on giving Sony money since the root-kit audio CD incident, thought that's probably irrational of me to hold that against an entirely different part of Sony many years later and without researching what other laptop manufacturers have been up to which could be just as bad.) You should also be holding against Sony that they disabled an advertised feature of the Playstation 3 by remote update (the other os). Provably not a trustworthy firm. But yes, I am curious what the other scumballs get up to. Nicholas Clark
Re: Laptop Recommendation
On 23 January 2012 19:17, Smylers smyl...@stripey.com wrote: I realize that I stupidly omitted to state that I'll be running Ubuntu on whatever I buy. Surely not on a Macbook Air though? Use VirtualBox full screen and then deploy/break/OMFG/reinstall of Ubuntu won't b0rk your platform. I use it to host Windows7 on my MacBook Air solely in order to run ChessBase :-) Regards, Peter
Re: Laptop Recommendation
On 23/01/12 22:00, Peter Edwards wrote: On 23 January 2012 19:17, Smylerssmyl...@stripey.com wrote: I realize that I stupidly omitted to state that I'll be running Ubuntu on whatever I buy. I have found that Acer laptops work reasonably well under Ubuntu (or Xubuntu as I use). They seem to have decentish Synaptics touchpads etc and more or less as advertised battery life - so long as one uses the latest kernel or one from awhile back. There was a power handling regression that snuck in which has only recently been fixed. Dirk
Re: Laptop Recommendation
On 24/01/2012, at 9:56 AM, the hatter wrote: On Mon, 23 Jan 2012, Smylers wrote: Is two-finger scrolling any good (when it works, obviously)? I've never had a system where that was an option. It will become instinctive in a very short time. You will curse and swear and question the parentage of other laptops you use that lack this feature, swiping your fingers around hopelessly for an instant before pitying the poor excuse for an input device and hunting for some scroll bars or cursor keys. +1. Seriously.
Re: Laptop Recommendation
On 23 Jan 2012, at 22:56, the hatter wrote: On Mon, 23 Jan 2012, Smylers wrote: Is two-finger scrolling any good (when it works, obviously)? I've never had a system where that was an option. It will become instinctive in a very short time. You will curse and swear and question the parentage of other laptops you use that lack this feature, swiping your fingers around hopelessly for an instant before pitying the poor excuse for an input device and hunting for some scroll bars or cursor keys. I ended up buying a big bluetooth one. Multitouch is fantastic. -- David Dorward http://dorward.me.uk