Re: Surrey.pm (was: back to the 80's)
On Thu, 18 Sep 2003 19:06, Andy Wardley wrote; How about the Weyside? Not an ale pub but a few on tap, and a nice meeting spot. Yep, that works for me. How about next thursday? Still on for tomorrow at the Weyside? Straight after work? Be about 6pm-ish for me... Anying daring enough to announce this officially on the list ? :-) -- Sam Vilain, [EMAIL PROTECTED] Chance favors the prepared mind. LOUIS PASTEUR
[ANNOUNCE] Surrey.pm Social, Thursday 25 Sep
Hi all, Due to lack of anyone else suitably brave to decide on a Pub location for Surrey.pm, the one suggestion that was seconded will hereby be the designated location for the first (to my knowledge) Surrey.pm meet. This will be at the Weyside, from approximately beer O' clock until stagger home time. For a small picture, and a link to multimap see http://www.beerintheevening.com/pubs/show.shtml/491/ That's tomorrow (IYARTMT), Thursday the 25th of September. The Weyside is in Guildford, which is as we all know the capital of Surrey and therefore the only sensible place to base Surrey.pm. Items to be discussed: a) Is the Weyside a good location for meetings, or does anyone who knows Guildford surrounding towns better than myself know of a better place? b) How often should we meet, and should it be on the last Thursday of the month, or the first Thursday before the last Friday? Straws will be drawn for the Surrey.pm `leader', though quite what duties that will entail is unknown at this time. -- Sam Vilain, [EMAIL PROTECTED] The 100 per cent American is 99 per cent an idiot GEORGE BERNARD SHAW
Re: Tech Meets Plus
On Fri, 19 Sep 2003 08:00, Dave Cross wrote; 1/ Would you be interested in coming to an all-day Perl workshop? ARRR!! 2/ Would the workshop need to be on the weekend? NAY!!! 3/ Would you consider paying for the workshop? ARRR!! 4/ If you would consider paying, how much would you pay? TWO PIECES OF EIGHT! 5/ Do you have any ideas about appropriate venues? THE END O' TH'PLANK!! There are lots of very good meeting rooms in the STC, where I have just moved this week: http://www.surrey.ac.uk/stc/facilities.html The biggest one costs £30 an afternoon, so the biggest cost for people would be making it here. The only real drawback is a lack of nearby pubs, but Guildford town centre - about 15 min walk, or a bus ride, has them aplenty. Plus, soonish the centre will have an extremely decent internet connection. When that happens, there will be wireless ethernet available. -- Sam Vilain, [EMAIL PROTECTED] UNIX, n: Anything which is subtly incompatible with everything else claming to be a UNIX.
Re: Surrey.pm (was: back to the 80's)
On Tue, 16 Sep 2003 16:06, Richard Atkinson wrote; I live in Guildford, Surrey and I'm also rather partial to beer. I think it must be time to organise the second ever Surrey.pm meeting. But /are/ there any decent real ale pubs in Guildford? It's all trendy wine bars these days, from what I've seen. Oh how my heart pines for the Penderel's, the Knight's Templar or the Calthorpe :( How about the Weyside? Not an ale pub but a few on tap, and a nice meeting spot. I'd also be up for meeting at the Red Lion in Godalming, if a wide variety of ale on tap is a requirement. (Though I am definitely agreed in principle on a surrey.pm meet) Me too, living right behind Guildford train station... -- Sam Vilain, [EMAIL PROTECTED] Take what you can use and let the rest go by. KEN KESEY
Re: [OT] accessors pragma
On Wed, 17 Sep 2003 11:55, Steve Purkis wrote; Hmm, that's very similar in spirit to the 'classic' form. Will generated accessors be overridable? I can see how 'given' would be useful, but what if I wanted to say this: $grunt.name( Patton ) .rank( General ) .add_medal( Purple heart ); I just don't understand this. What practical problem does this arrangement solve? I think it's highly counterintuitive and wasteful of useful spaces for return values. This is 10 times clearer: $grunt.set(name = Patton, rank = General); $grunt.add_medal(Purple heart); No confusion, no scope for something going wrong when someone doesn't return the original object in an accessor. Also, I really think that methods which set values of an attribute, rather than performing some kind of index lookup, ie my $attribute = $class-attribute(cheese); It's fairly clear that you're fetching a value; in this case, Foo is giving more information to the accessor. However, what does this do? $class-attribute(price); Does it set, or get (and ignore)? Either of these are good IMHO: $class-set_attribute(value); $class-attribute = value; In both cases, it is 100% clear that the `$class' object it having its `attribute' member updated. Do have a look at the accessors generated by Class::Tangram objects, I've put a lot of thought into the way code looks when you use the default accessors. I know that the interface to the module itself is due for a fairly major overhaul, but try to look past that :). -- Sam Vilain, [EMAIL PROTECTED] This is an object-oriented system. If we change anything, the users object.
Re: Partitioning?
On Wed, 10 Sep 2003 21:41, Jody Belka wrote; drive1: 30meg/boot ext3 244meg/ reiserfs 750megswap remaining lvm physical volume drive2: 1024meg swap remaining lvm physical volume A good start. You don't need a seperate root boot on most modern systems, and besides that was just a workaround for a 540MB bug that you won't hit with a small root anyway. Also, you may as well mirror up your disks, given that you've proposed to allocate less than half the mirrored space from the start. Mirroring gives you much of the speed advantages of striping (reads can be distributed across the mirrors), but without the random access speed penalty. The only problem is buying the extra disks, but as they say, disks are cheap. I use: drive1: 128meg/ ext3(/dev/md0) 1024megswap(/dev/md1) remaining lvm physical volume (/dev/md2) drive2: 128meg/ ext3(/dev/md0) 1024megswap(/dev/md1) remaining lvm physical volume (/dev/md2) /tmp is tmpfs, so I don't need extra space on the root for that. You'll need to pass something like root=/dev/md0 md=0,1,/dev/sda1,/dev/sdc1, and compile in RAID 1 support to the kernel to get it to boot off a mirrored root. LILO has special support for using a mirrored root, see its man page. GRUB you need to hack; set /boot/grub/device.map to something like: (hd0) /dev/sda Then replace /dev/md0 in /etc/mtab with /dev/sda1, and run `grub-install'. Installing GRUB onto the second disk really depends on your BIOS behaviour, ie what BIOS device numbers it assigns to disks when one has failed. The PC's bootstrap system really sucks. A word of advice: if you have /usr on an LVM partition, have printouts of the man pages for the LVM commands (vg*, lv*) on hand in case of emergency system recovery. -- Sam Vilain, [EMAIL PROTECTED] In every country and every age, the priest has been hostile to Liberty. - Thomas Jefferson -
Re: Partitioning?
On Wed, 10 Sep 2003 22:28, Paul Makepeace wrote; Think about the major apps on your machine. If you're going to have databases consider where you'll be keeping them. PostgreSQL for example eats multiples of 16MB for its pg_xlog files. I have quite a bit going on but not much really in terms of pure dump volume, yet 135MB in /var/lib/postgres (Debian's default.) Ah, but if you're using the LVM, you can create LV's for your database to use as raw tablespace/log space - skipping the VFS layer altogether, and not using a scrap of space on /var. If you use MySQL/InnoDB 4.0.14 +, you can turn on O_DIRECT, and skip the Buffercache as well 8-). Linux is then reduced to being a glorified SCSI driver for MySQL :-). -- Sam Vilain, [EMAIL PROTECTED] If youve seen one redwood, youve seen them all. RONALD REAGAN
Re: Spam tarpits...
On Wed, 10 Sep 2003 15:13, Nicholas Clark wrote; I'm not sure who the dragon could be, given that dragons usually like amassing and hoarding treasure. (Although breathing fire seems to be something else characteristic of a dragon) I thought most dragons were intelligent and polite, too. -- Sam Vilain, [EMAIL PROTECTED] Don't go around the world saying it owes you something. It owes you nothing. It was here first! -- Mark Twain
Re: Exim and HELO
On Mon, 08 Sep 2003 10:58, Lusercop wrote; how can it now be unsupported?. Just upgrade. It will make your life *so* much easier. (there are actually .debs of exim4 around if you want it to sit nicely with your package management). Yes. Upgrade. To postfix. -- Sam Vilain, [EMAIL PROTECTED] Real software engineers eat quiche.
Re: [OT] Web Hosting on Linux with ssh access
On Wed, 03 Sep 2003 09:49, Andy Williams wrote; I'm looking for a hosting company for a website I want to set-up. It'll need the following: - ssh access - a database of some sort (mySQL, postgresql) - perl with a good selection of cpan installed - be reasonbably cheap. - can be on a shared machine but own box would be great. Check out http://www.webhosting.uk.com/hostingpackages.html A flatmate recently put his music on their servers (see ffield.net). Extremely cheap for an account with shell access and 5GB/month. I don't think that their servers are actually based in the UK though. -- Sam Vilain, [EMAIL PROTECTED] Real computer scientists don't write the user interfaces, they merely argue over what they should look like.
Re: Bad C Source (Re: gzipping your websites WINRAR 40 days trial)
On Wed, 03 Sep 2003 11:17, Rafael Garcia-Suarez wrote; However most of gotos appear to be in the tokenizer and in the regular expression engine. Thoee are based on state machines, and IMHO gotos are legitimate in state machines. Right, and we all know that every program can be considered a state machine, as it has a set of states and means of transitioning between those states. So, therefore goto is valid everywhere! :-) -- Sam Vilain, [EMAIL PROTECTED] The pursuit of truth and beauty is a sphere of activity in which we are permitted to remain children all our lives. ALBERT EINSTEIN
Re: compression (was: gzipping your websites)
On Mon, 01 Sep 2003 21:11, Tom Hukins wrote; Also, I suspect the case for bzip2 becomes stronger in the future. Assume Moore's Law continues to hold for CPU speed increase. Disk and This argument is irrelevant in general, because the size of files to be compressed in general also increases with Moore's law. Just look at the Linux kernel source tree :-). memory capabilities increase faster, so none of these things matter as much as now. Bandwidth increases less rapidly than other factors[1], so for downloading files over the Internet, size becomes relatively more important. An algorithm like `lzop' would be best for on-the-fly compression IMHO. -- Sam Vilain, [EMAIL PROTECTED] The first duty of a revolutionary is to get away with it. ABBIE HOFFMAN
Re: Fave calendering software?
On Tue, 02 Sep 2003 01:17, Paul Makepeace wrote; The only challenge was /running/ the damn thing. I have no idea how to launch it from Firebird. It's possible to launch FB from it by clicking on the M logo but the selected profile is ignored (at least bookmarks didn't show up). Anyone? Obviously you've never pointed Mozzy to this URL then: chrome://navigator/content/navigator.xul -- Sam Vilain, [EMAIL PROTECTED] The most merciful thing in the world ... is the inability of the human mind to correlate all its contents. H P LOVECRAFT
Re: Mercury Amalgam (was: insidious biometrics, identity crises)
On Tue, 02 Sep 2003 15:48, Philip Hellyer wrote; To my knowledge, there is no filling that requires mercury amalgam, although I have heard that many dentists say that they do. I think that these statements stem from a lack of ability on the part of the dentist, or a lack of commitment to mercury-free alternatives. My s.o. has both root-filled teeth and crowns, none of which are now mercury based. Root fillings are particularly nasty because not even the mercury-free dentists agree on what substances are safe to use. My other half is a dental assistant, so I've had some of these matters drilled into me (boom boom). Always ask for `composite' fillings. They should be a gooey plastic that is set with a blue or green light. I've had teeth that strictly speaking needed a crown (a complete reconstruction of the top of the tooth) and where 75% of the tooth was missing. There is no excuse for not using it. She had to ask around in NZ to find a dentist that would do `thermo-fill' root canal treatment. This method is fast (took under 45 minutes for me) and safe. -- Sam Vilain, [EMAIL PROTECTED] Civilization is a movement, not a condition; it is a voyage, not a harbor. - Toynbee -
Re: DOS/WIN archivers of the mid 1990s
On Tue, 02 Sep 2003 14:25, Roger Burton West wrote; I thought that Java's JAR files were just Java-tARballs. Mostly they're Zip-files, actually.. Which makes sense, because .ZIP is a file format with an index at the end designed for random access, whereas .tar files need to be scanned to work out where each file starts and ends. And plain `ar' doesn't do compression. -- Sam Vilain, [EMAIL PROTECTED] What would life be if we had no courage to attempt anything ? VINCENT van GOGH
Re: Mercury Amalgam (was: insidious biometrics, identity crises)
On Tue, 02 Sep 2003 22:30, Adam Turoff wrote; Right. That's the amount determined to stave off scurvy[1]. The RDA doesn't say anything about if you should have more, or the benefits of having more vitamin C in your diet. Linus Pauling had some pretty strong opinions on this -- grams per day IIRC. You're much better off just eating more fruit and vegetables though. Get lots of Vit. C and other antioxidants at the same time. No sense in overdosing on just one. -- Sam Vilain, [EMAIL PROTECTED] America is the only country that went from barbarism to decadence without civilization in between. OSCAR WILDE
Re: Getting a Hashkey for a Perl Data Structure
On Sat, 30 Aug 2003 16:08, Nicholas Clark wrote; NC Okay, so is there a module that will produce an identical NC serilisation of data structures for all versions of perl? As NC you also want for all versions of the module I think you're asking for the module author to perform an impossible request, to substitute for a lack of correct system testing on the part of the user. -- Sam Vilain, [EMAIL PROTECTED] Chance favors the prepared mind. LOUIS PASTEUR
Re: insidious biometrics, identity crises
On Fri, 29 Aug 2003 17:17, Chris Benson wrote; CB Talk of adding bad (for TB) oils to TB treatments and CB recommending people doing the cure *not* to eat oily-fish etc. Heh, it's fish oil not snake oil - it doesn't cure everything. I've forwarded the mention of this to the author of the book, see what he's got to say. -- Sam Vilain, [EMAIL PROTECTED] Grand Master Turing once dreamed that he was a machine. When he awoke he exclaimed: I don't know whether I am Turing dreaming that I am a machine, or a machine dreaming that I am Turing!
Re: Bug in perl?
On Thu, 28 Aug 2003 22:13, David Cantrell wrote; DC die(need to provide a Baz) unless($params{baz}-isa('Baz')); DC Can't call method isa on an undefined value at ... DC Help me Obi-London.pm, you're my only hope! You're not using Attribute::Handlers anywhere are you? I noticed something similar recently. Actually in this case a method from the wrong stash was being called. Devel::Peek and Scalar::Util are your friends debugging these sorts of problems. Perhaps changing it to something like: (blessed $params{baz} and $params{baz}-isa(Baz)) -- Sam Vilain, [EMAIL PROTECTED] If you're sick and tired of the politics of cynicism and polls and principles, come and join this campaign. - George W. Bush, quoted in Hilton Head, S.C., Feb. 16, 2000
Re: insidious biometrics, identity crises
On Thu, 28 Aug 2003 21:39, Nicholas Clark wrote; NC Like Soylent Green? :) NC Imagine the heath warnings that would have to carry, if it were NC made in the US. NC (My immediate thought was the fat per 100g, based on my NC impression of US obesity statistics, but it occurs to me that NC may cause altzheimers or CJD would be the more worrying NC problem.) Interestingly, Alzheimer's is a condition which is easily reversable by a well managed dietry programme and lots of fish (or fish oil). It is almost certainly caused BY government dietary recommendations. They need that warning label on their food pyramid. Recent medical breakthroughs are revealing that a lot of modern conditions are due to overloading on carbohydrates and a lack of intake of fish - or, rather, the long chain omega 3 fatty acids EPA and DHA. The situation if you follow the government dietary recommendations and eat 6-8 servings of carbohydrates a day is that your insulin system goes bananas, which sets off a whole chain of events too complex for me to grasp fully let alone reproduce here, and ends up with every single cell in your body not functioning correctly (apparently ending in the inhibition of cyclic AMP production). I never studied biology, but I got a lot of this from reading what from the cover looks to be one of those Fad Diet books. Except unlike most of those books, about 20% of the book is the bibliography. For a few of the conditions he's claimed to be able to fix, I've done a little poking around on various web sites (especially PubMed) and his claims seem to correlate with real research. I'm not going to say what book it was, because I don't want any of you to attach previous associations you might have with other diets that promise similar things (eg, the Atkin's diet ... heh, Dr. Atkins died recently of heart disease, bless his cotton socks). So I'll just grossly oversimplify his suggestions with Less bread, more fruit and greens, and eat lots of fish or cod liver oil :-). Don't cut fat out either, unless it's saturated fat (eg, animal fat) - you need it. Olive oil is best. His Soylent Green would have 40% calories from complex carbohydrates and fructose, 30% from protein and 30% from fat, and give 2.5g of long-chain Omega 3 proteins per day. A couple of relevant studies for from PubMed: http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=12432919dopt=Abstract http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=12065621dopt=Abstract -- Sam Vilain, [EMAIL PROTECTED] If everything would be permitted to me, I would feel lost in the abyss of freedom IGOR STRAVINSKY
Re: London.pm identity cards
On Fri, 29 Aug 2003 09:26, Michel Rodriguez wrote; MR (where is the pound sign when you need it?). Try AltGr+Shift+3 (or AltGr+#) with a standard XFree86 keymap... -- Sam Vilain, [EMAIL PROTECTED] This year's modesty award is given for a phrase spoken by a lecturer after a rather difficult concept had just been introduced. You may feel that this is a little unclear but in fact I am lecturing it extremely well.
Re: London.pm identity cards
On Fri, 29 Aug 2003 10:35, Ben wrote; Be That's the second pseudo-Kornerism you've sigged us with Be today. Is there a reason? Sheer chance I'm afraid :-) -- Sam Vilain, [EMAIL PROTECTED] $h=$ENV{HOME};@q=split/\n\n/,`cat $h/.quotes`;$s=$h/.s .ignature;$t=`cat $s`;print$t,\n,$q[rand($#q)],\n;
Re: insidious biometrics, identity crises
On Fri, 29 Aug 2003 12:24, HellyerP wrote; He IIRC, research at the University of Calgary has recently He demonstrated that the brain changes associated with Alzheimer's He are directly attributable to Mercury poisoning. Of course, He that's largely in your head[1], as the standard 'silver' He fillings are comprised of just over 50% mercury. Not to mention He its use in anti-fungals, pesticides, etc., and the high levels He typically found in sea food. He does mention mercury and PCB contamination as one potential drawback with using average fish oil. That research is interesting, though I wonder if they are showing correlation or causitive effect. If Alzheimer's is a condition caused by brain degeneration, presumably there are several ways that this can happen. It is possible to get fish oil which has had these contaminants removed... perhaps this is more important than I thought. In his book he details several cases of literally reversing patients with alzheimer's disease back to full memory capacity personality in months using an Insulin regulating diet and (clean) concentrated fish oil. If you're interested, I'll send you a link to the book, it's a good read. He My s.o. has been ill for years with extreme pain, fatigue, and He brain troubles. She's starting to recover after having had her He fillings exchanged for composite ones last year. Without doing He much in the way of detox, some of her symptoms have almost He completely gone, and the rest about half better. /me considers getting all his amalgam fillings changed to composite... -- Sam Vilain, [EMAIL PROTECTED] A seeming ignorance is often a most necessary part of worldly knowledge. - anon.
Re: request for supercited mails
I think the supercite Simon is talking about is the Simon = Simon Wistow [EMAIL PROTECTED] wrote: followed by lines beginning with Simon style; LookOut users (IME) tend not to add quote leaders at all, settling instead for bunging the entire previous message at the bottom of a new message, possibly preceded by a line saying Begin original message or similar. There's always RMS' extremely spartan quoting style. -- Sam Vilain, [EMAIL PROTECTED] I either want less corruption, or more chance to participate in it. ASHLEIGH BRILLIANT
Re: insidious biometrics, identity crises
On Thu, 28 Aug 2003 19:29, Chris Benson wrote; CB I thought it already was ... thinks: prison statistics/ I thought that the US prison statistics were because of the War on Drugs. -- Sam Vilain, [EMAIL PROTECTED] To know the truth is to distort the Universe. -- Alfred N. Whitehead (adaptation)
stop this slrn nonsense
It's screwing up the threading!
Re: Mr. Brocard database tools in focus
On Fri, 22 Aug 2003 11:52, Steve Keay wrote; SK http://www.prevayler.org/wiki.jsp?topic=PrevalenceSkepticalFAQ SK These guys are a little evangelical but I find the idea SK intriguing. I'm still not too sure how easy it would be to SK remember to have the data migrate itself when you change your SK classes. I think you'd need some fairly rigorous run-time SK consistency checks. Both Pixie and Tangram are based on this principle; Tangram calls it `orthogonal' storage of data; in essence, it's not interfering with the damned objects just for your persistence mechanism. For most applications, Pixie will be faster and more convenient, but for some types of data access (eg, OLTP) it really reduces the number of times that you have to hit the disk if you know your record size up front - in which case a system like Tangram where you have to explicitly tell the tool what columns you've got, and how big they are is better. -- Sam Vilain, [EMAIL PROTECTED] The flush toilet is the basis of Western civilization. ALAN COULT
Re: [OT] SQL woes
On Thu, 21 Aug 2003 16:12, Toby Corkindale wrote; TC Ick. Have they got around to supporting transactions yet? :P No, they're too dumb for that - but a company called InnoDB basically re-wrote the core parts of MySQL and called it a storage back-end. It's free and included in the MySQL distribution, except the hot backup license (very smart move). In fact, it's even compiled in by default with Debian stable, all you need to do is change some config options, bounce MySQL, re-create all your tables reload your data :-) and you're away laughing ... works very well using raw LVM partitions as tablespaces (I haven't yet found a way to add more table space online, but I may just be overlooking the obvious). http://www.innodb.com/features.html -- Sam Vilain, [EMAIL PROTECTED] UNIX, n: Anything which is subtly incompatible with everything else claming to be a UNIX.
Re: Prevayler
On Fri, 22 Aug 2003 13:13, Nigel Hamilton wrote; NH Yes ... just imagine a world where we had terrabytes of RAM - NH everything would be stored in vast object pools. FWIW, the NZ Stock Exchance runs on a replicated RAM database (on Linux). -- Sam Vilain, [EMAIL PROTECTED] Among economists, the real world is generally considered to be a special case. - anon.
Re: Installing Perl on End Of Lifed Irix 5.3
On Fri, 22 Aug 2003 10:28, Chris Young wrote; CY B. Do I take older versions of the packages I need to go with my CY old hardware, old OS and old database? Try DBI 1.14 or a near later version. That was the earliest known stable version AFAIK. -- Sam Vilain, [EMAIL PROTECTED] An OO surgeon would hand the scalpel to the patient and say: now perform this operation on yourself!.
Re: OSX - 'the real question'
The consensus seems to be to *always* leave the system software (Perl et al) alone, and put your stuff in a custom directory such as /usr/local, /opt, or /sw. Tinkering with the contents of /{usr,}/{bin,sbin} is generally seen as something that shouldn't be done in most cases. I think a better way to put this is that all changes to the OS owned directories should be made through the OS' native packaging system. -- Sam Vilain, [EMAIL PROTECTED] When I sell liquor, its called bootlegging; when my patrons serve it on Lake Shore Drive, its called hospitality. AL CAPONE
Re: @INC
If I remember correctly, I installed it with configure --prefix=/usr instead of accepting the defaults!! Out of curiosity, did you try the pre-compiled Solaris 8 packages at http://www.sunfreeware.com/ ? Why is the path hard coded in the perl binary? Surely it should change dependant on your prefix path!? Sheer logistics, where else would it look? The registry? -- Sam Vilain, [EMAIL PROTECTED] For even the strongest force will weaken with time, And then its violence will return, and kill it. - from the _Tao Te Ching_, chapter 30
Re: Bra
This counts as art rather than debauchery? On the basis that debauchery is frowned on at social meetings? /me smells a what is art? debate coming on... /me farts in order to mask any such smell before things get out of hand. -- Sam Vilain, [EMAIL PROTECTED] A seeming ignorance is often a most necessary part of worldly knowledge. - anon.
Re: text'd or texted
Also following the recent discussion on pronunciations, the words text'd or texted do not exists in the dictionary. Which do you think will make it first!? You forgot: txt'd, txted ... pronounced teksd of course :-) -- Sam Vilain, [EMAIL PROTECTED] Never invest your money in anything that eats or needs painting. BILLY ROSE
Re: Reordering Arrays.
On Wed, 13 Aug 2003, Nicholas Clark wrote: I'm not convinced that it's a great idea to sit it in a top level namespace. Is it about cartography? Or data manipulation? List::Maptastic? One function is for mapping hashes. So it would have to be Collection::Maptastic, or Collection::Map. But really, is anyone really going to use that namespace for anything? ;-) -- Sam Vilain, [EMAIL PROTECTED] Never invest your money in anything that eats or needs painting. BILLY ROSE
Re: [OT] Bananas
You lot know I have an alter ego as Deep Purple's web slave, and one or two of you even know who they are. We just went live with a one-track-per-day listening party today: Deep purple are also touring with Uriah heep in November: http://www.uriah-heep.com/livedates/index.html -- Sam Vilain, [EMAIL PROTECTED] Real software engineers write in languages that have not actually been implemented for any machine, and for which only the formal spec (in BNF) is available. This keeps them from having to take any machine dependencies into account. Machine dependencies make real software engineers very uneasy.
Re: Reordering Arrays.
If you nab mapcar[0] this is insanely simple Shortly to be released to CPAN as Maptastic, as soon as I figure out the iteration semantics. Pre-release available at http://vilain.net/pm/Maptastic-0.99.tar.gz, which has mapcar and mapcaru in it. Feedback most welcome. [0] http://www.perlmonks.org/index.pl?node_id=44763 -- Sam Vilain, [EMAIL PROTECTED] He who shits on the road will meet flies on his return. SOUTH AFRICAN SAYING
Re: HTML::Parser
I need to parse an HTML file [0] and pull out all the form elements and put them into a data structure. What I can't seem to do is when I have found a select tag is then parse the associated option tags! If you're getting valid xhtml: use XML::Sablotron::DOM; my $situa = new XML::Sablotron::Situation(); my $doc = new XML::Sablotron::DOM::Document(SITUATION = $sit); $doc-parseBuffer($situa, $buffer); my @options = $doc-xql(//form//select//option); -- Sam Vilain, [EMAIL PROTECTED] The best mirror is a friend's eye. GAELIC PROVERB
Re: General UNIX type question hmmmmm!!
I was on the box editing a perl script at the time and shell completely froze on me. I was then unable to set up another ssh or telnet session to it. The problem seemed to clear itself some three hours later when the shell reponded again. The box was continually pingable during the shell outage!! Hmm, look for messages in `dmesg'. My understanding is that when a system is sitting with a lot of *runnable* blocked or paged out processes like that it is because they are waiting for some kernel resource that isn't becoming available. Your scan rate (sr) column was low, so the system isn't thrashing. One of the standard ps columns should be the process state, probably W or D is the state you're looking for. Other good ideas: - get the latest patch cluster from SunSolve.sun.com for your Solaris rev, which includes a kernel patch. - turn on the System Activity Reporter (SAR) and after the machine comes back, have a look in the logs to see what it was doing over the time. - Get to the console while it is in the problem, Press STOP+A (or send a break signal if using an RS-232 console), then type sync to get a crash dump, and forward the auto-analysis of it to your local Sun support team :-) - Join this great mailing list: http://www.sunmanagers.org/ -- Sam Vilain, [EMAIL PROTECTED] Real software engineers admire PASCAL for its discipline and Spartan purity, but they find it difficult to actually program in. They don't tell this to their friends, because they are afraid it means that they are somehow Unworthy.
Re: interactive tests
On Wed, 30 Jul 2003 14:56, Dominic Mitchell wrote: That's what OS packages are for. Or CPAN bundles. As yet another example of why I don't want interactive Makefiles / tests. Yes, which is why modules are broken if they don't work when you: perl -MCPAN -e'install Bundle::Foo' /dev/null -- Sam Vilain, [EMAIL PROTECTED] You can judge your age by the amount of pain you feel when you come in contact with a new idea. JOHN NUVEEN
Re: multi-module packaging question
On Tue, 29 Jul 2003 10:07, Jo Walsh wrote: i want to make an RDF::Simple package that will eventually have both Serialiser.pm and Parser.pm in it, but i'm not sure how to make a package for more than one module - so a user can 'install RDF::Simple' and get everything in it, including some utility modules. 'perldoc perlnewmod' isn't really helping me out much here. Obviously you weren't at the ExtUtils::ModuleMaker talk! It's a souped up `h2xs' that handles this sort of case really well. the little serialiser is TT based; if i need to stick a TT template somewhere on the filesystem in a default INCLUDE_PATH, how would i do that as part of the regular module install process, and where might be the best place to put it? If you're going to go down the ExtUtils::MakeMaker path, rather than Module::Build, and you really want to put the file in the TT include dirs (rightly so!), in your Makefile.PL: - load the Template::Config module to determine the local INCLUDE_PATH - Create in the MY namespace; - a postamble sub that contains Makefile commands to install the files - an install sub that adds your new Makefile sections to the targets for the make install command - a contants sub that defines any variables that deserve to be in the Makefile eg, something like this: use ExtUtils::MakeMaker; use vars qw($template_dir $prefix); # use eval so that dependancy processing works normally eval 'use Template::Config; $template_dir = Template::Config-instdir(templates);'; use Config; $prefix = $Config{prefix}; # Try to express the TT dir relative to the prefix, so that things # like `dh-make-perl' and `cpanflute' still work $template_dir =~ s{^\Q$prefix\E}{\$(PREFIX)} if ($template_dir and $prefix); package MY; sub postamble { return 'EOF'; install_templates :: # If you need a script, otherwise just use `cp' #$(PERL) bin/install_templates $(TT_TDIR) # another hack for the CPAN to package converters [ -d $(TT_TDIR) ] || mkdir -p $(TT_TDIR) cp template1 template2 $(TT_TDIR) EOF } sub install { my $class = shift; my $basic = $class-SUPER::install(@_); $basic =~ s/^(install\s+::\s+.*)$/$1 install_templates/m; $basic; } sub constants { my $class = shift; my $basic = $class-SUPER::constants(@_); $basic = TT_TDIR = $main::template_dir\n$basic; $basic; } package main; WriteMakefile (...) Good luck, -- Sam Vilain, [EMAIL PROTECTED] (To Walter Cronkite): Well Walter, I believe that the Good Lord gave us a finite number of heartbeats and I'm damned if I'm going to use up mine running up and down a street. NEIL ARMSTRONG
Re: Yet Another Eurostar ticket to Paris for YAPC::Europe 2003
Hi all, My spare ticket as below is now free to a good home. If anyone can be bothered to drag their sorry ass out of bed to get to Waterloo before 8am tomorrow morning, their passage will be free. Sam. On Mon, 14 Jul 2003 18:08, Sam Vilain wrote: Here's another couple of tickets going to Paris for YAPC::Europe 2003; Departing from LONDON WATERLOO INT ( 22/07/2003 at 08:23) Going to PARIS NORD ( 22/07/2003 at 12:23) Return journey Departing from PARIS NORD ( 27/07/2003 at 17:10) Going to LONDON WATERLOO INT ( 27/07/2003 at 19:14) I was planning on going with a friend, who has since said he's unable to come. I'll probably end up using Earle's other ticket, but I'm sure that just about any arrangement is possible, so if you haven't got your ticket yet, talk to me or Earle! The tickets cost me £59 each (hence the early departure time), I'd be looking to recover as much of that as possible. I'm on IRC as mugwump (though not necessarily in #London.pm). Otherwise you can try me on 07906 189 456. -- Sam Vilain, [EMAIL PROTECTED] Java: The COBOL of the 21st century
Re: License question
On Tue, 15 Jul 2003 09:59, Nigel Wetters wrote: I have some code that can't be included in the Debian project because it doesn't work without some bundled data. The bundled data is free (as in beer), but has a non-Debian-compliant license (it cannot be used to spam people). Oh, excellent, so it has all of the drawbacks with none of the advantages of an open source license then! Does anyone *really* think that putting a clause against using a piece of software to spam in the license will work? -- Sam Vilain, [EMAIL PROTECTED] An eye for eye only ends up making the whole world blind. -- Mahatma Gandhi
Yet Another Eurostar ticket to Paris for YAPC::Europe 2003
Here's another couple of tickets going to Paris for YAPC::Europe 2003; Departing from LONDON WATERLOO INT ( 22/07/2003 at 08:23) Going to PARIS NORD ( 22/07/2003 at 12:23) Return journey Departing from PARIS NORD ( 27/07/2003 at 17:10) Going to LONDON WATERLOO INT ( 27/07/2003 at 19:14) I was planning on going with a friend, who has since said he's unable to come. I'll probably end up using Earle's other ticket, but I'm sure that just about any arrangement is possible, so if you haven't got your ticket yet, talk to me or Earle! The tickets cost me £59 each (hence the early departure time), I'd be looking to recover as much of that as possible. I'm on IRC as mugwump (though not necessarily in #London.pm). Otherwise you can try me on 07906 189 456. -- Sam Vilain, [EMAIL PROTECTED] UNIX, n: Anything which is subtly incompatible with everything else claming to be a UNIX.
Re: Apache mod_perl on Windows 2000
Alex, You best bet is probably FastCGI; you should then be able to set up a number of back-end FastCGI processes serving pages. Converting mod_perl CGI scripts to FastCGI is pretty easy, as long as you stayed away from the Apache API. See the man page for CGI::Fast for an example, or http://www.fastcgi.com/ It also scales a lot more gracefully than mod_perl, and if you like you can offload your dynamic page generation to another machine, or install Zeus (the Daddy of fast web servers) if Apache starts busting at the seams. Sam. Alex McLintock [EMAIL PROTECTED] wrote: Hi folks, I've been contacted about a site which is an Apache/mod_perl website. The problem is that the live production server is Windows 2000 and not negotiable :-( In theory this is ok - Apache and mod_perl should run ok on Windows 2000 shouldn't it? Unfortunately when even ultra simple cgi scripts get called the apache process starts sucking up memory a lot. I'm no expert on Windows boxes - I haven't written a perl cgi script for one in over a year. Can anyone suggest what I could do to diagnose this problem? Anyone with experience of Apache and mod_perl on Windows 2000 that we can email soon with more info? I haven't dug my fingers into the problem yet but have read all the FAQs/Docs I can.
Re: War stories on releasing code
Read the GPL carefully. Read your employment contract carefully. Remember you can't un-GPL source code; all you need is a GPL'ed core that you can build on, that can be produced by anybody. Perhaps yourself if works created in your own time are your own property. Then just make sure you're not specifically prohibited from sharing the changes. My opinion is that this is acceptable except where the changes you are making need to be kept secret for competitive advantage, in which case you need permission. Sam. On Tue, 19 Mar 2002 09:20:22 - Clayton, Nik [IT] [EMAIL PROTECTED] wrote: Morning, [ Apologies if there's any misformatting, or a horrendous disclaimer at the end. ENOCHOICE about using Outlook. . .] So I'm writing some (hopefully) fairly useful Perl modules at $dayjob, and want to release them to the outside world. I suspect this is going to be a novelty to the corporate lawyers. Has anyone here had experience of doing this sort of thing at large companies, and making the arguments for open source'ing your code? Any war stories, or tips you can pass on? N ([EMAIL PROTECTED], for those of you that know me there. . .) -- Sam Vilain, [EMAIL PROTECTED] WWW: http://sam.vilain.net/ 7D74 2A09 B2D3 C30F F78E GPG: http://sam.vilain.net/sam.asc 278A A425 30A9 05B5 2F13 Hi, I'm a .signature virus! Copy me into your ~/.signature, please!
Re: Apache mod_perl on Windows 2000
Jonathan Peterson [EMAIL PROTECTED] wrote: Given the way Apache is going, I'd have thought dealing with threading would be quite a priority for mod_perl, no? Look out for it in mod_perl 2.0, so I've heard. It will keep a pool of interpreter threads for creating dynamic pages. -- Sam Vilain, [EMAIL PROTECTED] WWW: http://sam.vilain.net/ 7D74 2A09 B2D3 C30F F78E GPG: http://sam.vilain.net/sam.asc 278A A425 30A9 05B5 2F13
Re: OT perl question
On Wed, 16 Jan 2002 09:20:49 +0100 Newton, Philip [EMAIL PROTECTED] wrote: FYI, the Xitami web server (at least on Win32 systems) doesn't output any of the CGI's output to the client until the CGI is done, so perhaps it implements CGI with STDOUT directed to a file, which it then reads -- in which case you couldn't even rely on dev ino fields of stat(STDIN). I thought that was just how pipes work in DOS. Sam.
Re: Debian testing excuses
On Mon, 19 Nov 2001 00:24:37 -0800 Paul Makepeace [EMAIL PROTECTED] wrote: If you've ever wondered why a Debian package is in unstable but is taking forever to make it into testing, check this page, http://ftp-master.debian.org/testing/update_excuses.html (841KB now) I was looking for Xalan which has a grave bug listed against it and it's waiting for a MIPS recompile. Why wait? echo deb-src http://ftp.uk.debian.org/debian/ unstable main non-free contrib /etc/apt/sources.list apt-get update apt-get source package cd package-N.NN dpkg-buildpackage -b -uc -rfakeroot cd .. dpkg -i package-N.NN*deb Sam.
PerlMonks mugs
I notice that PerlMonks are selling PerlMonks coffee mugs. Perhaps it would be a good idea to buy a medium sized box of these and fob them off at london.pm meetings? Sam.
Re: Movie rant
On Mon, 1 Oct 2001 12:25:45 -0400 (EDT) Chris Devers [EMAIL PROTECTED] wrote: It's worth noting that this was apparently not just another gratuitous Spielbergism. It was apparently part of the story as Kubrick was planning on telling it, and as produced by Speilberg was true to that. Can you back that up at all? I'd be interested to know. Sam.
Re: Recommended agents
On Mon, 1 Oct 2001 14:31:33 +0100 (BST) Simon Wilcox [EMAIL PROTECTED] wrote: However you look at it, no amount of documentation makes up for practical experience of the system you are supporting. If you change sys admins every 6-12 months you end up with a layered environment, each layer developed to a sysadmins personal taste with probably all sorts of little incompatibilities. Then set up a WikiWiki for your documentation. It's quick and easy enough that it actually gets used. Note - this is in a small company scenario where there is rarely any kind of handover period from one person to the next, unlike a larger company where you might change 1 of 4 or more and have the benefit of collective experience. This collective experience should be minimised; staff should use the rule that no knowledge only in their head(s) should be critical to the operation, maintenance or further development of your systems. As my father said to me, the biggest problem with the computer industry is all of the gurus Sam.
Re: Chocolate/beer (was Film Recommendation)
On Sat, 29 Sep 2001 15:07:18 + (GMT) Redvers Davies [EMAIL PROTECTED] wrote: First time I was let loose in an American town I Jaywalked by way from one side to the other. The typical cross halfway, down the road a bit cross the rest strategy of road traversal it seems is not appreciated in the Americas ;) I was J-walking the other day ... all the way from Hyde Park Corner to Trafalgar Square. I was even rolling J's as I walked, and lit one up in front of a police van.
Re: Headphones.
Mark Fowler [EMAIL PROTECTED] wrote: Erk! At 300usd I'd expect to be able to read my mail on them too! Are there similar kinds of thing in the 0-60ukp mark[1] To my ears the Sony studio grade headphones sound very good, and should be well within that price range. Make sure the frequency response specified is at least 10Hz to 20kHz. For instance, this model: http://www.sonystyle.com/electronics/prd.jsp?hierc=8632x8746x8750catid=8750pid=4070type=s Specifies: Impedance: 24 ohms Sensitivity: 105 dB/mW Frequency Response: 10 -- 25,000 Hz Which is pretty good as headphones go. The impedance is a bit low, but as long as you turn the volume down it shouldn't be too much of a battery drain. That model is listed as USD 80, so should be within your budget. You might even be able to find a more portable version of the headphones that has the same specs, I have a pair that folds up into a space only slightly larger than a tennis ball and yet has the same stats as the above. -- Sam Vilain, [EMAIL PROTECTED] WWW: http://sam.vilain.net/ 7D74 2A09 B2D3 C30F F78E GPG: http://sam.vilain.net/sam.asc 278A A425 30A9 05B5 2F13 Hi, I'm a .signature virus! Copy me into your ~/.signature, please!
Re: NMS [formmail]
I hear that one problem with that script is the security problem that if it is not altered, then it is possible to send mail from any address, effectively allowing you to spam with it. What I suggest for NMS scripts is that they have an internal configuration function, whereby the script will refuse to run unless it is configured. In fact, if it is unconfigured, then present a configuration interface, unless they can't find an appropriate place writable to store configuration. In that case, instructions are presented for logging into their ftp account and making a world-writable directory for the script to write to (perhaps this could be a URL to a NMS help system), or instructions for manually customising the script to close security holes etc. Sound good? Sam. On Mon, 17 Sep 2001 23:06:02 +0100 Dave Cross [EMAIL PROTECTED] wrote: I've just released a first draft of FormMail. It's at http://www.dave.org.uk/nms/ I would have put it in CVS on penderel, but it seems to be configured so that only Greg can use it :) Incidently, perlfaq9 says that when using sendmail from a Perl script, you should use the flags -oi -t -odq. I found that when I used -odq, the mail wasn't delivered. Any ideas why that might be? Dave... -- Don't dream it... be it
Re: dha
On Fri, 14 Sep 2001 19:38:29 -0400 (EDT) Chris Devers [EMAIL PROTECTED] wrote: paid 6.50 pounds ( 10 dollars :) for a large coke once at a French resort once[1]. Go to Canada or the US ski resorts and some places even seem to have *cheaper* than normal prices ... and they where cheap to start off with. amazing. ...and ski resport prices are usually exhorbitant by our standards... :) If food's so cheap there, it's no wonder that starving countries found terrorist organisations to bring it down!
Re: dha
On Fri, 14 Sep 2001 12:07:08 +0100 David Cantrell [EMAIL PROTECTED] wrote: I strongly recommend Quillans on Buckingham Gate. It's the best curry house in the world, according to the Curry Club. It's certainly the best I've been to. The best curry I've had was from Panshi, who are on Malvern Road in Kilburn/Maida Vale. A very classy restaurant with half price before 7:30pm...