Re: Crazy maths proof
On 2002-12-02 21:40:47, Paul Makepeace [EMAIL PROTECTED] said: I should point out I was shooting for first post to get it in before Shevek, Tony, Chris et al rather than any real attempt at technical accuracy :-) :-) Why, I'm honoured to be included with such eminent mathematicians[1]. I'm only a lowly CS undergrad. :-) P (I think it's right though...) Me too. Another common feature of these sorts of puzzles is tricking you with a division error or something. This one took me longer than it should have done: (with lame markup from the original left intact) == assume two numbers a b, where a = b. step 1: a = b step 2: a2 = ab [ after you multiply both sides by a ] step 3: a2 - b2 = ab - b2 [ subtract b2 from both sides ] step 4: (a + b)(a - b) = b(a - b) [ factor both sides ] step 5: (a + b) = 1b [ divide both sides by (a - b) ] step 6: 2b = 1b [ since a = b, (a + b) = 2b ] step 7: 2 = 1 [ after you divide both sides by b ] == - Chris. [1]: You were talking about me rather than another Chris, right? :-) -- $a=printf.net; Chris Ball | chris@void.$a | www.$a | finger: chris@$a | We just typed make -- Stephen Lambrigh, Director of Server Product | Marketing at Informix, about porting Informix to Linux.
RE: Crazy maths proof
: assume two numbers a b, where a = b. : : step 1: a = b : step 2: a2 = ab [ after you multiply both sides by a ] pffft but it did confuse me for about 10 minutes. --cal ** For great Emap magazine subscription gift offers visit http://www.emapmagazines.co.uk ** The information in this email is intended only for the addressee(s) named above. Access to this email by anyone else is unauthorised. If you are not the intended recipient of this message any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. Emap plc and or its subsidiaries do not warrant that any attachments are free from viruses or other defects and accept no liability for any losses resulting from infected email transmissions. Please note that any views expressed in this email may be those of the originator and do not necessarily reflect those of this organisation.
Re: Crazy maths proof
On Tue, 3 Dec 2002, Chris Ball wrote: On 2002-12-02 21:40:47, Paul Makepeace [EMAIL PROTECTED] said: I should point out I was shooting for first post to get it in before Shevek, Tony, Chris et al rather than any real attempt at technical accuracy :-) :-) Why, I'm honoured to be included with such eminent mathematicians[1]. I'm only a lowly CS undergrad. :-) I'm a what? I'm thinking the best explanation is that Any instance of the original formula for a given x is only true exactly at that x anyway. so the whole thing doesn't make a lot of sense. The x + .. + x = x^2 is not a functional equality, it's simply a statement that For a given y, x*y=x^2 at x=y and only there. So the whole differentiation thing makes no sense. step 1: a = b step 2: a2 = ab [ after you multiply both sides by a ] step 3: a2 - b2 = ab - b2 [ subtract b2 from both sides ] step 4: (a + b)(a - b) = b(a - b) [ factor both sides ] step 5: (a + b) = 1b [ divide both sides by (a - b) ] = 0, as we all know. step 6: 2b = 1b [ since a = b, (a + b) = 2b ] step 7: 2 = 1 [ after you divide both sides by b ] S. -- Shevek I am the Borg. sub AUTOLOAD{my$i=$AUTOLOAD;my$x=shift;$i=~s/^.*://;print$x\n;eval qq{*$AUTOLOAD=sub{my\$x=shift;return unless \$x%$i;{$x}(\$x);};};} foreach my $i (3..65535) { {'2'}($i); }
[OT] RedHat upgrade
Sorry for the terribly off topic posting but has anyone done a RedHat 7.x upgrade to 8.0? I was going to take the publisher's edition of RedHat8 and drop it in my Linux box's CD drive and see if it could update it automatically. It is just my development box, so I can downgrade apache if necessary. Alex
Perl Vacancy in Watford
Hello Perl Programmers Based Watford. I am looking for Perl programmers to work for Tuskerdirect Ltd (www.tuskerdirect.com). We are a web-based vehicle leasing business with a small but competent development team.We have won three industry awards for our website and are currently adding some major new products and services to it. Environment is Perl / Apache / Oracle using mod_perl, DBI, DBD::Oracle and HTML::Templates. If you are interested please call me. Regards, Gavin Young IT Director Tuskerdirect Ltd 01923 651 460
Samsung DCS system
I have a system that we have replaced: DCS CArds - One each of BRIN, 8SLI, PRI, PSU, ROM2 and three DLI, PRI 21 phones with digital display KPDCS 12 BLCD and a DSS sidepanel for reception. Are you interested in buying? John John McAreavey CA Tel 0131 624 9069 mailto:[EMAIL PROTECTED] Please visit our website: www.rettie.co.uk for a selection of properties currently available. This email is confidential and privileged and intended only for the stated addressee(s). If you have received this in error, please inform us immediately and delete it and all copies from your system. Any information that does not relate to business of Rettie Co. shall be understood as neither given nor endorsed by it. Property information supplied by this email does not constitute any part of an offer or contract and is subject to Rettie Co.'s usual terms and conditions. This email and any attachments are believed to be free of any virus, or defect, but it is the responsibility of the recipient to ensure this. Rettie Co. does not accept responsibility or liability for any loss or damage arising in any way from its receipt or use or for any errors or omissions in its contents which may arise as a result of its transmission. This letter/email is not intended to, nor shall it, form part of any legally enforceable contract and any contract shall only be entered into by way of an exchange of correspondence between our client's solicitors. Rettie Co. 1 India Street, Edinburgh EH3 6HA, Tel: 0131 220 4160, Fax: 0131 220 4159
Re: Perl Vacancy in Watford
On Tue, Dec 03, 2002 at 06:09:15PM -, Gavin Young wrote: I am looking for Perl programmers to work for Tuskerdirect Ltd (www.tuskerdirect.com). I have reason to believe that, unlike some job postings, this is a genuine vacancy. Roger
Email full html with images
Hi folks, I'm thinking of throwing together a christmas card by email system for a friend who designs stuff, including cards. I can handle the sort of email where it says Someone has sent you an electronic card, you can view it at this URL. but what if I want to include the whole graphic in html email. Is there a standard CPAN module for that? (I can send attachments - but am not sure I understand how images are used in html email). And perhaps most importantly... What sort of things do I have to check for to reduce the likelyhood of my script being used by spammers? Cheers Alex Openweb Analysts Ltd, London. Software For Complex Websites http://www.OWAL.co.uk/ Open Source Software Companies please register here http://www.OWAL.co.uk/oss_support/
Re: Email full html with images
On or about Wed, Dec 04, 2002 at 12:20:28AM +, Alex McLintock typed: but what if I want to include the whole graphic in html email. Is there a standard CPAN module for that? (I can send attachments - but am not sure I understand how images are used in html email). In the HTML part, give a filename for the image. That filename should match the filename in the image part. Easy, innit? (I use MIME::Lite.) And perhaps most importantly... What sort of things do I have to check for to reduce the likelyhood of my script being used by spammers? Require a valid email address for the sender - validate it by sending a confirmation code to that address and requiring it to be entered in the site. Then put some sort of rate-limiter (by time or IP address) on it. Roger
Re: Email full html with images
On Wed, Dec 04, 2002 at 12:20:28AM +, Alex McLintock wrote: I'm thinking of throwing together a christmas card by email system for a friend who designs stuff, including cards. I can handle the sort of email where it says Someone has sent you an electronic card, you can view it at this URL. but what if I want to include the whole graphic in html email. Is there a standard CPAN module for that? (I can send attachments - but am not sure I understand how images are used in html email). I use MIME::Lite for sending out comics in email. Dunno how well it'll play with HTML, or how you refer to the embedded images from the HTML. And perhaps most importantly... What sort of things do I have to check for to reduce the likelyhood of my script being used by spammers? I have to say that I despise this sort of service. I don't particularly care how well-meaning the site is, or who thinks I might be interested in getting a card from them, but AFAIC it is as near as damnit spam. So I guess you can't stop it :-) But if you insist on doing it ... do not allow users to specify any text apart from a maximum of two words* and 30 characters for the names of the recipient and sender; only allow a single message from users at a given IP per hour; only allow a single message to a given email address per hour; and certainly don't let users supply their own images; make it possible for entire domains (eg *@cantrell.org.uk) and specific mail servers (eg plough.barnyard.co.uk, or 195.149.50.61) to be blocked so that when an admin screams at your client they can truthfully promise to stop spamming the users. Feel free to use my server and my domains to get your database started. * - word defined as \b\w+\b or something similar. You might like to ban numbers and punctuation altogether. -- David Cantrell | Member of the Brute Squad | http://www.cantrell.org.uk/david Liver with fava beans and a nice chianti is less appealing if the donor has cirrhosis -- after Coyu, in soc.history.what-if
Re: Email full html with images
On Wed, Dec 04, 2002 at 12:20:28AM +, Alex McLintock said: I can handle the sort of email where it says Someone has sent you an electronic card, you can view it at this URL. but what if I want to include the whole graphic in html email. Is there a standard CPAN module for that? (I can send attachments - but am not sure I understand how images are used in html email). From the MIME::Lite perldocs Send an HTML document... with images included! $msg = MIME::Lite-new( To ='[EMAIL PROTECTED]', Subject ='HTML with in-line images!', Type='multipart/related' ); $msg-attach(Type = 'text/html', Data = qq{ body Here's imy/i image: img src=cid:myimage.gif; /body } ); $msg-attach(Type = 'image/gif', Id = 'myimage.gif', Path = '/path/to/somefile.gif', ); $msg-send();
Re: Email full html with images
On Wed, 4 Dec 2002, David Cantrell wrote: I use MIME::Lite for sending out comics in email. Dunno how well it'll play with HTML, or how you refer to the embedded images from the HTML. Not that I've used it, but there is the extension to MIME::Lite, MIME::Lite::HTML which seems to do all that hard work for you and reduce all the thinking that you might otherwise have to do. It also has a table of how well it works with different mail clients. http://search.cpan.org/author/ALIAN/MIME-Lite-HTML/HTML.pm Mark. -- Mark Fowler http://www.twoshortplanks.com/ The 2002 Perl Advent Calendar [EMAIL PROTECTED] http://www.perladvent.org/2002/ a different perl module featured every day
Re: Email full html with images
On Wed, 2002-12-04 at 00:47, Simon Wistow wrote: From the MIME::Lite perldocs Careful, there's a mistake in those docs, the example produces non-RFC-compliant mails that break in most mailers that I tried. I sent a bug report in October but didn't get a response. $msg-attach(Type = 'image/gif', Id = 'myimage.gif', the rest is ok, but this line should read Id = 'myimage.gif', then putting img src=cid:myimage.gif; in the html part will work (or does in all the places I tried so far). alex
Re: Email full html with images
On Wed, Dec 04, 2002 at 12:38:49AM +, David Cantrell wrote: * - word defined as \b\w+\b or something similar. You might like to ban Are those \b's not redundant? P -- Paul Makepeace ... http://paulm.com/ What is the diameter of Marilyn Monroe's clitoris? Decapitated heads in a field of sunflowers. -- http://paulm.com/toys/surrealism/
User Groups Can Win a Pass to an O'Reilly Conference
Have a look at this. Seems like a great idea, 'til you hit Rule 2. Gah! Paul Enter your group to win one pass to: The O'Reilly Bioinformatics Technology Conference Westin Horton Plaza February 3-6, 2003--San Diego, CA http://conferences.oreilly.com/biocon The lucky winning group will be given a conference sessions only pass to attend the conference, valued at $1175.00. O'Reilly assumes that if your group is the lucky winner, as the user group representative, you will distribute the winning pass to a group member, using a method appropriate for your group (drawing, raffle, etc.) The winning pass* includes: -Access to all conference sessions February 4, 5, 6 including keynotes* -Admission to Exhibit Hall -Admission to all on-site evening events -All conference handouts (excluding tutorial materials) *Pass does not include tutorial fees, lodging, food, and transportation. Please email your entry to Marsee Henon at [EMAIL PROTECTED] Deadline for entries is December 12, 2002. In the subject line of your email, please say Raffle Entry. The winning group leader will be contacted on December 13, 2002 by email--unless a phone call is requested (phone number must be provided). Only one attendee per pass will be allowed. Two people cannot share the same pass to attend the conference on separate days. For more information about the O'Reilly Bioinformatics Technology Conference, please visit our website: http://conferences.oreilly.com/biocon Early bird registration ends December 16, 2002. O'Reilly User Group Program members receive 20% off conference session and tutorial fees. Register before December 16, and receive 20% off already discounted Early Bird pricing. After December 16, 20% discount will be applied to standard pricing. When registering online, please enter the discount code: DSUG, where it says: If you received a discount code, please enter it here. If registering by phone, please give the customer service representative the DSUG discount code. If the winner of the pass has already registered for the conference, the winner will be reimbursed for conference session fees paid. If you would like brochures for your members, I'd be happy ship them. Now for the Rules and Regulations--I apologize for the length, they're really quite simple: ***These rules constitute the official rules of this raffle. By participating in the raffle, entrants agree to be bound by the official rules and the decision of the judges, which are final and binding in all respects.*** 1. Entry: No purchase is necessary to enter the raffle. To enter the raffle, Please email Marsee Henon at [EMAIL PROTECTED] and tell her to enter your group for the raffle. Entries must be received at O'Reilly Associates by December 12, 2002. Limit one entry per group, per email address. O'Reilly Associates and its agents are not responsible for lost, late, misdirected, incomplete, illegible or damaged email that results from any source. By entering, entrant agrees to abide by and be bound by the Official Rules. O'Reilly Associates reserves the right to cancel the raffle if it becomes technically corrupted. 2. Eligibility: The O'Reilly Raffle is open to all who are 18 years of age or older, and reside in the U.S. or Canada, except employees of O'Reilly Associates. Anyone else directly involved in this raffle is ineligible to participate. Raffle void where prohibited by law. All federal, state, and local laws apply. 3. Selection and Notification: The winners will be chosen at random from all eligible entries submitted by December 12, 2002. O'Reilly will notify winners by email or phone. A prize not claimed by January 27 will not be awarded. The odds of winning depend on the number of eligible entries received. 4. Other Rules: a) The prize is nontransferable and non-endorsable; no cash or other substitutions will be offered. All federal, state, and local taxes and delivery charges are the sole responsibility of the winner. b) The winner consents to the use of his/her name and/or likeness for publicity, advertising, and commercial purposes, in perpetuity, without further compensation unless prohibited by law. O'Reilly Associates and its agents are not responsible for lost entries, or for and availability of information or for Internet, for whatever reason. Entries will be disqualified if O'Reilly Associates determines, at its sole discretion, that entrants have attempted to circumvent the terms and conditions of these rules. All decisions by O'Reilly Associates are final. c) By participating in this raffle, entrants agree to release and hold O'Reilly Associates (and their employees, agents, representatives, or affiliated companies) harmless from any and all losses, damages, rights, claims, and actions of any kind in connection with the prize, including, without limitation, personal injuries, death or property damage, and claims based on publicity rights, defamation, or invasion of
NetMD::libomd created
Hi all, I have finished version 0.1 of NetMD::libomd. This is a Perl module which just simply presents your (NetMD connected)[1] minidisc as a tied array. Currently it uses Pete Bentley's libomd library for access, and in a rather inefficient manner too. I'll get a better version out using proper perl XSUBs sooner or later, but its been awhile since I've coded XS. This upshot of this library is that you can now run regexes over tracks :) eg: Want to convert underscores to spaces? It's (almost) as easy as: foreach (@track) { s/_/ /g; } Do you have compilations out of MP3s, where each track starts with a number,which is (a) wrong and (b) redundant due to the MD track numbers? (eg. 02. The running man/09. Careful with that axe eugene/01. Hyperform) Well, just run a regex on them to fix it up: foreach (@track) { s/^\d+\.\s*//; } Anyway, its handy for a few things. This module is available from: http://wintrmute.net/software/ It's a little rough at the moment, and documentation could be better, but hey, its a start. The tarball also includes libomd by Pete, it's a modified version and excludes the Xmd GUI too. Further instructions are contained in NOTES and README. Let me know how you go, and if it works for you or not. Also, suggestions on the interface -- do you like the way it works, or is it confusing? Can you think of a better name? Seeya Toby [1]: NetMD is a protocol that various MiniDisc recorders use, which allows you to transfer music to them via USB, and also do titling, and other such things. The Open/NMD project is attempting to reverse engineering this protocol, thus allowing non-Windows systems to utilise it. See here for details: http://gargoyles.monochromatic.net/cgi-bin/mailman/listinfo/netmd-dev