Re: [OT] Any Mini owners on this list?
On Thursday, July 3, 2003 15:17 +0100 Lusercop `the.lusercop'@lusercop.net wrote: On Wed, Jul 02, 2003 at 06:45:59PM +0100, Blackwell, Lee [IT] wrote: And I mean BMW Mini as opposed to the classic Mini. Just curious. How is this off-topic? I don't see any mention of Perl... :-) I also see no Buffy. -- David Cantrell
Re: Hundredweight was Re: UK Money, again
At 11:31 04/07/03 +0100, Peter Haworth wrote: Come to think of it, why aren't zetta and yotta the other way round? That way you'd at least get (e)x y z at the end, which would make some kind of sense. Cause zetta and yotta are greek letters and that is the order they come in the greek alphabet? At least that is what my greek teacher told me. http://www.ibiblio.org/koine/greek/lessons/alphabet.html Alex Egho Then Mila Ellinika (Which means I don't speak greek in greek)
Re: Hundredweight was Re: UK Money, again
On Fri, Jul 04, 2003 at 11:56:04AM +0100, Alex McLintock wrote: Cause zetta and yotta are greek letters and that is the order they come in the greek alphabet? At least that is what my greek teacher told me. http://www.ibiblio.org/koine/greek/lessons/alphabet.html He was, as you see, lying. R
Re: Hundredweight was Re: UK Money, again
Peter Haworth said: On Tue, 1 Jul 2003 21:28:07 -0400, muppet wrote: kbyte 1024 byte megabyte 1024 kbyte gigabyte 1024 megabyte +terabyte1024 gigabyte +petabyte1024 terabyte +exabyte 1024 petabyte +zettabyte 1024 exabyte +yottabyte 1024 zettabyte Come to think of it, why aren't zetta and yotta the other way round? That way you'd at least get (e)x y z at the end, which would make some kind of sense. It was supposed to be exa, yetta, zotta, but they had a German temp and no one noticed until too late. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net
FreeTDS DBD::Sybase Netcool
Anyone had any experience with FreeTDS DBD::Sybase Netcool? Andy
Re: FreeTDS DBD::Sybase Netcool
On Fri, Jul 04, 2003 at 12:45:21PM +, Andy Ford wrote: Anyone had any experience with FreeTDS DBD::Sybase Netcool? Yes, but not all in combination and more of the former two than the latter. R
Re: Hundredweight was Re: UK Money, again
On Fri, Jul 04, 2003 at 11:31:46AM +0100, Peter Haworth wrote: megabyte 1024 kbyte gigabyte 1024 megabyte +terabyte 1024 gigabyte +petabyte 1024 terabyte +exabyte1024 petabyte +zettabyte 1024 exabyte +yottabyte 1024 zettabyte her reply: that bytes. Well, she has a point. Those multipliers should all be 1000. To use multipliers of 1024, the units are kibibyte, mebibyte, gibibyte, tebibyte, pebibyte, exbibyte, zebibyte and yobibyte. Surely everyone is using these by now? :-) I thought I had problems with standards and common practice differing as a Web developer - I should know better than to get involved with scientific things. I realise my changes aren't officially accurate, but at least they're consistent. If units(1) uses a multiplier of 1024 for kilo-, mega- and giga- bytes, it should do so for the others, rather than inheriting the default multiplier of 1000. I wonder what the value should be for a trilobyte. Hey, who locked me in this bike shed? Tom
Re: FreeTDS DBD::Sybase Netcool
On Fri, Jul 04, 2003 at 12:45:21PM +, Andy Ford wrote: Anyone had any experience with FreeTDS DBD::Sybase Netcool? I use FreeTDS DBD::Sybase at work to talk to a MS SQL Server - works fine. (Although i do feel a bit dirty afterwards) Haven't used netcool though. What's up? Toby -- Turning and turning in the widening gyre The falcon cannot hear the falconer; Things fall apart, the centre cannot hold; Mere anarchy is loosed upon the world.
Text::CSV_XS
I've had a quick google and can't find anything mentioned out there, so I thought I'd ask the other hackers out there if they've had any problems with Text::CSV_XS. Let me explain; I've got a text file, where the fields are TAB-separated, and there isn't any quoting (or more precisely quotes aren't supposed to be special in any way). So for example: onetabtwotabthree Should give me three fields: one two three The code I'm using to read and parse this is: cut here #!/usr/bin/perl -w use strict; use IO::File; use Text::CSV_XS; use Data::Dumper; my ($csv, $io, $columns); $csv = Text::CSV_XS-new({ 'binary'= 1, 'sep_char' = \t, 'quote_char'= undef, }); $io = new IO::File testquote.csv; if (not defined $io) { warn can't open IO for testquote.csv: $!; return undef; } while ($columns = $csv-getline($io)) { # when there are no columns we've read the file # Text::CSV_XS is a bit pants when it reaches the end of the file last if not scalar @$columns; print Dumper($columns); $csv-combine(@$columns); print $csv-string, \n; } cut here and a representation of the file I'm testing with is: cut here onetabtwotabthree onetabtwotabthree onetabtwotabthree fake line my onetabtwotabthree cut here THe output I'm getting is a little worrying: cut here $VAR1 = [ 'one', 'two', 'three' ]; one two three $VAR1 = [ 'one', 'two three' ]; one two three $VAR1 = [ 'one two three fake line' ]; one two three fake line $VAR1 = [ 'my one', 'two', 'three' ]; my one two three cut here All of these (with the exception of fake line) should have three fields. As you can see this isn't the case. Has anyone else experienced this? Is it a bug in Text::CSV, or have I inadvertently created a non-CSV that looks a lot like one? Once again, input and comments most appreciated, Chisel -- e: [EMAIL PROTECTED] | They asked how many employees we had, w: www.herlpacker.co.uk | broken down by sex. Told them drugs gpg: D167E7FE | and alcohol was more of a problem.
Re: Text::CSV_XS
Chisel Wright wrote: I've had a quick google and can't find anything mentioned out there, so I thought I'd ask the other hackers out there if they've had any problems with Text::CSV_XS. $csv = Text::CSV_XS-new({ 'binary'= 1, 'sep_char' = \t, 'quote_char'= undef, }); The default escape char is , have you tried to set it to undef or the empty string? It looks as if it's escaping \t and \n -- Robin Berjon [EMAIL PROTECTED] Research Engineer, Expwayhttp://expway.fr/ 7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488
Re: Text::CSV_XS
On Fri, Jul 04, 2003 at 06:02:23PM +0200, Robin Berjon wrote: The default escape char is , have you tried to set it to undef or the empty string? It looks as if it's escaping \t and \n setting escape_char to undef seems to do exactly what I was expecting it to do before. why didn't I try that earlier? (probably because RTFMing didn't make the difference clear to me) Chisel -- e: [EMAIL PROTECTED] | They asked how many employees we had, w: www.herlpacker.co.uk | broken down by sex. Told them drugs gpg: D167E7FE | and alcohol was more of a problem.
Re: [OT] Any Mini owners on this list?
* Jasper McCrea ([EMAIL PROTECTED]) wrote: Joel Bernstein wrote: On Thu, Jul 03, 2003 at 06:23:05PM +, Andy Ford wrote: 6'4 and 16 1/2 stone - I'd need a convertible, the wheel in the middle and sit on the rear seat!! No, you don't sound very Mini. I'm 6'3, and there's plenty of room in both types of mini for me. I'm not so generously proportioned, though :) an old school friend of mine was 6'6 not particularly broad, but he still drove a old style mini comfortably, the seats went really far back, so i guess it would have been a problem if more than myself (a mere 6', but fairly 'broad') and him were in the car. i also seem to remember that mini's were great fun for hand brake turns - but i was young and silly then, (as opposed to old and silly), Greg -- Greg McCarroll http://www.mccarroll.org.uk/~gem/ jabber://[EMAIL PROTECTED] msn://[EMAIL PROTECTED]
Re: Text::CSV_XS
Chisel Wright wrote: On Fri, Jul 04, 2003 at 06:02:23PM +0200, Robin Berjon wrote: The default escape char is , have you tried to set it to undef or the empty string? It looks as if it's escaping \t and \n setting escape_char to undef seems to do exactly what I was expecting it to do before. why didn't I try that earlier? (probably because RTFMing didn't make the difference clear to me) I thought about it because CSV is a terrible, terrible format and I got bitten by it badly much more than once. Baah. For tiny databases, DBD::SQLite is *much* better. Heck, as much as I bitch about people misusing XML for a small table I'd use XML over CSV any day. At least if some guy starts dumping Latin-9 in your nice UTF-8 it'll blow up instead of feeding junk to your application. -- Robin Berjon [EMAIL PROTECTED] Research Engineer, Expwayhttp://expway.fr/ 7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488
Re: OSCON
On Thu, 3 Jul 2003 17:07:40 +0100, Andy Wardley wrote: So who is going to be at OSCON? Sadly, this will be the first one I've missed, having been to every TPC since the first one. Neither IOPP nor myself can afford to send me this year. Will London.pm field a team in the quiz (I'm up for it!) I've been in the London.pm team each time it entered the quiz, so I'm glad Jon decided to have a child this year, so as not to buck that trend :-) Will beer be drunk? I don't like the stuff, but have fun, the rest of you! -- Peter Haworth [EMAIL PROTECTED] Signature lost in transit. We apologise for any inconvenience caused.
Re: Using LWP for protected pages
Piers [EMAIL PROTECTED] writes: - Piers (a different one!) Argh! But which of us is the anti-Piers? Will there be mutual destruction if we end up in the same place? -- Piers
Re: list all installed perl modules
Nicholas Clark [EMAIL PROTECTED] writes: On Wed, Jul 02, 2003 at 05:22:17PM +0100, Leon Brocard wrote: Redvers Davies sent the following bits through the ether: Speak to shiny, orange acme and acquire cpanstats. http://www.astray.com/cpanstats/ Look, okay, I'm sorry. I broke cpanstats a while ago and have zero free time to fix it. I'm sorry, very sorry. But if you will go and sell yourself to Elaine and Jos, what did you expect would happen? He didn't sell himself. I sold him. And judging by his expression when I started taking bids, he didn't quite realise it was for real... -- Piers
Re: OSCON
Andy Wardley [EMAIL PROTECTED] writes: So who is going to be at OSCON? Me! Will London.pm field a team in the quiz (I'm up for it!) No quiz! Will beer be drunk? Probably. -- Piers
Re: Hundredweight was Re: UK Money, again
Steve Mynott [EMAIL PROTECTED] writes: Roger Horne wrote: On Fri 27 Jun, Philip Newton wrote: You have: cwt You want: Definition: hundredweight = 100 pounds = 45.359237 kg which sounds as if it *is* 100 somethings. But is wrong. There are 112 pounds in a hundredweight (or were when I was at school). See http://home.clara.net/brianp/weights.html You are both right depends whether you are talking about an American or English hundredweight. GNU units has 'brhundredweight' defined whereas the FreeBSD 4.5 units(1) doesn't (and probably should). I'm not sure which version of units one finds on Mac OS X, but its units.lib has an entry for 'longhundredweight', which is the 'right' hundredweight. -- Piers
Re: Text::CSV_XS
On Fri, Jul 04, 2003 at 06:54:52PM +0200, Robin Berjon wrote: I thought about it because CSV is a terrible, terrible format and I got bitten by it badly much more than once. Baah. For tiny databases, DBD::SQLite is *much* better. Heck, as much as I bitch about people misusing XML for a small table I'd use XML over CSV any day. At least if some guy starts dumping Latin-9 in your nice UTF-8 it'll blow up instead of feeding junk to your application. Well, I'm receiving data from 'an external source'. It's going into a database at my end. I've only just dipped my perl-toes into the XML water myself, so I wasn't familair enough with it to force the external source to transfer data in XML. Anyway, since I got to choose the format this time, at least I chose tab-delimited (since the data should never contain tabs), as opposed to their format which was pipe-delimited, with no restrictions on text fields. I had some fun populating fields with the pipe character. :) Cheers for your help, Chisel -- e: [EMAIL PROTECTED] | They asked how many employees we had, w: www.herlpacker.co.uk | broken down by sex. Told them drugs gpg: D167E7FE | and alcohol was more of a problem.
Re: Hundredweight was Re: UK Money, again
On Fri, 4 Jul 2003, Tom Hukins wrote: I wonder what the value should be for a trilobyte. /me, impressed by this riff, tries to pick up from there... $ grep 'byte$' /usr/share/dict/words presbyte $ dict presbyte 1 definition found From Webster's Revised Unabridged Dictionary (1913) [web1913]: Presbyte \Presbyte\, n. [Gr. ? an old man.] Same as {Presbyope}. $ dict presbyope 2 definitions found From Webster's Revised Unabridged Dictionary (1913) [web1913]: Presbyope \Presby*ope\, n. (Med.) One who has presbyopia; a farsighted person. From WordNet (r) 1.7 [wn]: presbyope n : a person with presbyopia; someone who is farsighted resulting from the progressive loss with aging of the elasticity of the crystalline lens $ /me gives up So, how 'bout them milli-Helens? -- Chris Devers[EMAIL PROTECTED] http://devers.homeip.net:8080/resume/ Turing machine, n. [After Alan M. Turing (1912-1954), British mathematician and computer pioneer.] The earliest but still the fastest and most reliable computing system ever conceived. Dis maschine vill run und run (K. Godel). -- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995