Re: Online payment providers
Jason Clifford wrote: On Sun, 14 Sep 2003, nemesis wrote: Netbanx: http://www.netinvest.co.uk/ncr/netbanx/ Of the ones listed these are the only ones I would specifically avoid. On the few occassions I've had to pay via their service it's been impossible as their site only seemed to work with a browser from a certain company in Redmond. I will steer clear of these then. Worldpay: http://www.worldpay.co.uk/ I am using Worldpay and their service works really well for me. Ouch. Unless i am reading their near impossible to navigate site incorrectly, they want to charge 4.5% per transaction. Might have a look at some of their other options. Will.
Online payment providers
Hi all, I need to advise someone on online payment taking services (for a shopping cart system), but although I have a fair idea how a lot of the systems work, I have no idea if any of them are any good or what to look out for. I have found a few companies that seem well known: Netbanx: http://www.netinvest.co.uk/ncr/netbanx/ Datacash: http://datacash.com/ Secpay: http://www.secpay.co.uk/ Worldpay: http://www.worldpay.co.uk/ Protx: http://www.protx.com/ Secure Trading: http://www.securetrading.com/ E-clear: http://www.eclear.net/ But although most offer seemingly similar services, I don't know if any of them are crap. Have any of london.pm had experience dealing with these companies andwhat should I look out for? Are there any that should definatly be steered clear of? Many thanks w.
Re: any recommended web-hosting?
Dean Wilson wrote: James Campbell wrote: I'm looking for a company to host a business website. Has anyone had any good or bad experiences that they can comment on without an ensuing lawsuite? I'm in London as I am sure (some) of you are so if you know of any London based companies I would love to hear about them. My current choice is: http://www.ukfsn.org/ Competitive pricing, very responsive to queries (anytime I've asked something I've had a reply in under half an hour) and the guy running it is as clued as they come. UKFSN get my vote aswell, for the reasons Dean said. Will.
Re: Exim and HELO
Tony Kennick wrote: On Mon, 8 Sep 2003 13:14:40 +0100 Nicholas Clark <[EMAIL PROTECTED]> wrote: I thought traditional london.pm advocacy was whether Willow or Buffy was on top. Willow and Faith custard wrestling. On the note of advocacy, it is part of life, the problem with the mail wasn't that it was the one liner nature of it :-) Anyway I'm going to go back to baiting the office mac user and thinking about the first line of my mail, MMmm. On Mon, 8 Sep 2003 13:14:40 +0100 you mean? You sick puppy :-) w.
Re: Wierd file problem (perl)
Just discorvered that replacing this line: print OUTPUT $buffer; with this: print OUTPUT "."; works every time, leaving me with a file with some dots in it. Will.
Re: Wierd file problem (perl)
From a chat on IRC I realise that I haven't really included enough information. my $buffer= ""; my $buffer_size = 16384; #print "Content-type: text/plain\n\n"; I only included this line, and the exit; statement below, to debug the script. There is a header printed out later in the script. The exit was to prevent the HTML page being printed as this was not necessary for debuging. It was when I added this text/plain header that the file uploaded started to be written to the disk. open (OUTPUT, ">$filename") or die "Could not open file $filename for writing: $!"; while (read($file, $buffer, $buffer_size)) { print OUTPUT $buffer; } close OUTPUT or die "Could not close file $filename : $!"; #exit; To the point, the piece of code above works in when called from one section of my script without fail, and when called from another part of my script if fails unless that text/plain header is added. Hopefully that clears up my first post :-) Will.
Wierd file problem (perl)
Hello. I have a script that allows a user to upload images to the filesystem as part of the backend to a CGI shopping cart system has been working fine. I then added another section allowing the user to upload images for a different part of the site but this doesn't work. The code used to process the uploads is the same [0] for both upload sections and continues to work for the first upload function. This is the code that processes the uploads for the two image upload sections: - my $buffer= ""; my $buffer_size = 16384; #print "Content-type: text/plain\n\n"; open (OUTPUT, ">$filename") or die "Could not open file $filename for writing: $!"; while (read($file, $buffer, $buffer_size)) { print OUTPUT $buffer; } close OUTPUT or die "Could not close file $filename : $!"; #exit; - $filename is a correct filename and $file is the filehandle returned from CGI.pm which parses the form input. All the ownerships and permissions on the directories that are being uploaded to are the same and I am trying to upload the same files. I have noticed that if I include the two commented lines in the above script (the print.. and exit lines, uncommented of course) then it does successfully write the correct file. If they are commented out then the file is not written and no errors are trapped by die. Any ideas what is goin on here? I assume that there is a problem somewhere else in the script, but the two sections calling this subroutine seem to be pretty much the same. What should I be looking for, and why does it only work with those two lines uncommented for one upload section, but works always for the other one? Many thanks Will [0] actually the same code, in a subroutine.
Re: [Job] Looking for a Sales Guy
Nik Butler wrote: ...good sales guys ? Isn't that an Oxymoron? :-) Will
Re: perl website on CD
Randal L. Schwartz wrote: "Alex" == Alex McLintock <[EMAIL PROTECTED]> writes: Alex> And best of all - if you don't need MySQL then it is free. (Apparently Alex> you can't distribute MySQL as part of a commercial product.without Alex> paying for a license) First, I don't think that's true any more. The license is needed only if you're getting paid to set up MySQL. But I could have misread. Second, why anyone still uses MySQL on a new installation now that PostgreSQL has surpassed it and gone on to being a "baby Oracle", while MySQL plays "catch up", I can't figure out. I heard/read somewhere that although MySQL lacks the features of PostgreSQL, it is just faster for simpler operations. Maybe it isn't. Will.
Re: WWW::Map::UK::Streetmap - A tale of woe
Shevek wrote: On Tue, 11 Feb 2003, Andy Wardley wrote: I was surprised for Penny to mention that the servers were "swamped" with Perl but ran fine in C++. Hence I suspected that the large She did virtually say that they were using CGI. She wrote as a comparison with IIS/DLLs: Didn't Penny also say that they were looking into running Perl on a shared hosting platform? That couldn't help. Will.
Re: cheap-ass SSL certs
Dave Hodgkinson wrote: What's the cheapest way of doing a reasonably pukka SSL site cert? I have had success with Thawte[0] in the past. If you need to get them on the phone it is pretty easy. Unfortunatly they are owned by Verisign I think. Will. [0] http://www.thawte.com/
Re: ADSL again
Neil Ford wrote: On 18/10/02 4:14 pm, "Simon Wistow" <[EMAIL PROTECTED]> wrote: On Fri, Oct 18, 2002 at 03:56:56PM +0100, Nicholas Clark said: stuff my plan is exactly that. The box will be a Smoothwall box with two network cards and a wireless card in it for, red, green and orange zones respectively. Please, please use IPCop instead. Your life will be an awful lot simpler, especially if you ever need any help with it :-) I use ipcop (http://www.ipcop.org) and it works well. I have it running on an old p90 box. Personally I would stay away from SmoothWall. Will.
Re: HTML::Template ramblings
Mark Fowler wrote: > On Wed, 16 Oct 2002, nemesis wrote: > > >>If I preload Page.pm and have a BEGIN {} block in it that loads the >>template file into a variable for use within the module, would this >>BEGIN block get run when the module was use'ed, some other time, or not >>at all? > > > Right, this is where I explain what BEGIN time is. Thanks a lot for the information, that clears a few things up. Will
Re: HTML::Template ramblings
Leon Brocard wrote: > nemesis sent the following bits through the ether: > > >>I guess that every time this method is called HTML::Template reads in the >>the template file from disk. I think this could be faster if the template >>was in memory. > > > The docs at > http://search.cpan.org/author/SAMTREGAR/HTML-Template-2.6/Template.pm > point out that you should set cache => 1 in the constructor in order > to cache templates. For preloading templates, see "Q: How can I > pre-load my templates using cache-mode and mod_perl?". Make sure to > benchmark to see if it really makes a difference. Aaaah, thanks for that, very useful :-) Will.
Re: HTML::Template ramblings
Tim Sweetman wrote: > nemesis wrote: > >>I guess that every time this method is called HTML::Template reads in the the >>template file from disk. I think this could be faster if the template was in >>memory. > > > Um, RTFM on HTML::Template, which describes its "cache" option. There's > also an XS- or Inline-retrofitted HTML::Template on the CPAN, if memory > serves, which does something outrageous like turning templates into bits > of C and compiling them - which is also outrageously fast. /me peers more closely at the docs If used in a constructor wouldn't cache => 1 just cache for the life of the httpd thread, and not for the whole server? Sorry if this is obvious, I have only just started doing mod_perl. Will.
HTML::Template ramblings
Hi all, I have mod_perl running and I am pre-loading the HTML::Template module (among others) when Apache starts up. I also have a self written Page.pm module with the 'print' method and uses the HTML::Template module to do substitutions in a template file: sub print { my $self = shift; my $template = HTML::Template->new(filename => $self->{'_template_name'}, path => [$self->{'_path_to_templates'}] ); #more perl code... } I guess that every time this method is called HTML::Template reads in the the template file from disk. I think this could be faster if the template was in memory. I don't want to hard code the template into Page.pm to avoid the disk access, as it would make maintaining the template difficult. If I preload Page.pm and have a BEGIN {} block in it that loads the template file into a variable for use within the module, would this BEGIN block get run when the module was use'ed, some other time, or not at all? This is the only method I have thought of so far, will it work? Does anyone have a better idea than this? Thanks Will.
Re: similarity detection
alex wrote: > probably completely crap but following is an approach i have been thinking > about for a while and have been looking for the right soft/textual dataset > to try it out on. Thanks everyone for the suggestions. I certainly have some more ideass to work on. Will
Re: similarity detection
Simon Wistow wrote: > On Tue, Oct 08, 2002 at 11:23:59AM +0100, nemesis said: > >>Alternatively I could generate some stats about every field as I entered it into >>the database, ie number of words and a list of the most repeated words (minus >>common words) and their frequency. Then I could calculate similarity based on this. > > You could try diffing each entry (when it's been suitably munged such as > lower casing, removing punctuation, changing all numbers into words > or vice versa etc etc) and then try seeing if the percentage of > different lines is above a threshold. That sounds like a better idea than my first idea, but it would still mean I had to select every text field from the database to check for a dumplicate. I would rather not have a dedicated server with a mirror of the database purely for doing similatiry checks :-) Will.
similarity detection
Hello again, I have a database (mySQL) full of variable length text fields (average about 1500 characters, 250 words). Curently there are about 250 fields, but I hope this to expand to as many as possible (it is an online joke archive). I need to be able to check that when I add another field that there is not another already in the database that is the same or very similar. Checking the MD5 sum won't work[0], it will only give an exact match, and some of the jokes come in with slight variations in the wording but with that are essentially the same, but the MD5 sum will not tell me this. The solution I have thought of so far is to take a sample (say, 25) of the words from each text field search for them in all the other fields, making note of things like frequency etc, but this is going to be a real overhead and not at all scaleable. Alternatively I could generate some stats about every field as I entered it into the database, ie number of words and a list of the most repeated words (minus common words) and their frequency. Then I could calculate similarity based on this. What does everyone think, is there an easier way to do this? Are both of these solutions complete b*llocks? Will. [0] I really need a really bad hashing algorithm that creates hashes that are very *similar* for slight variences in the inputs :-)
Re: ADSL Help
nemesis wrote: > I got a free pentium (75 I think) and it is running IPcop... It doesn't have to be free, IPcop will run on purchased hardware with a almost no drop in performance :-) Will
Re: ADSL Help
David Cantrell wrote: > On Sun, Oct 06, 2002 at 10:27:09AM +0100, Robert Shiels wrote: > >>I've just about decided to go for ADSL, and Nildram have been recommended >>here, so I go to this page: >> >>https://www.getadsl.co.uk/services_home.htm >> >>and now I'm not really sure what I want. I think the cheapest option will >>probably be fine, but maybe I want a static IP address, I'm not sure. I >>don't need web space. Maybe I should be looking at their secure service >>instead! > > > A static IP is a very useful thing. Even if you don't have one right now > with whatever you use to connect at the moment, once you have one you'll > find all sorts of wonderful things to do with it. I have plus.net ADSL and I get a static IP for about £23 a month: http://www.plus.net/info2/residential/res_broadband.html I would definatly recommend a static IP. I a colleague at work who has ADSL with zen (http://www.zen.co.uk) and he claims to have 8 IP's. >>I WILL be running this on a Windows PC [1], I will be playing Unreal >>Tournament and downloading MP3 files mostly, and I'd quite like to be able >>to access my home PC remotely to retrieve files when I'm at work. > > Please tell me you won't be turning SMB on or using IIS! In any case, if > you want remote access, a static IP is a must. Yeah yeah, I know about > dyndns and stuff, but a static IP is s much better. > >>And of >>course fast surfing. I have 3 or 4 other PCs in my house with wireless cards >>in them from which I'd like to be able to access the internet through the >>ADSL connection too. >> >>Can I do all this for the £22.99 a month, and what hardware will I need to >>buy. > > If this is the "wires only" thing, then you'll need a splitter/faceplate for > the phone line (which I think BT will supply), and a router. I expect > Nildram can supply that, or recommend a supplier. If you decide to shop > around to get a good deal, don't forget that all UK DSL uses PPPoA. > > Oh, and it seems that DSL routers are built down to a chosen cost, not up > to a desired quality. That's one reason I like hiring my router - it means > that when it fails (I've killed two so far) BT replace it for free. I went for an Alcatel SpeedTouch USB (the frog) because it was second hand and really cheap. If I had had to pay full price I would have gone for one of those router things. I got two DSL splitters from dslsource: http://dslsource.co.uk/ for about £11 each. >>[1] this is a definite, so please don't tell me I should be running Linux, I >>already know :-) > > There's nowt wrong with using a Windows desktop. However, with a DSL > connection, you will be connected permanently, and the script kiddies *will* > find you. At least consider using a twenty quid piece of shit running a BSD > or Linux as a firewall and NAT box. I got a free pentium (75 I think) and it is running IPcop (http://www.ipcop.org) quite happily. I am running 4 PC's behind this including 2 desktops (1 win, 1 Linux) and a couple of webservers. It is pretty simple for a firewall but does just about all you could ask for a simple network. Another site you might want to check out is http://www.adslguide.org.uk for reviews and information about service providers. Will
Re: Regex question
nemesis wrote: > foreach my $line (@body) { > $_ = $line; > s/^(?:>|\s)*(.*)$/$1/g; > print; > } Thanks for the suggested improvements. It would have helped if @body wasn't 1 element in size and that element contained the whole of the text :-) Oh, and thanks for the phone support Dean. Will
Regex question
Hi all, I have a bunch of jokes that people have forwarded me over the years[1] and they all have really bad formatting [2]. I am lazy and want to do as much formatting of the jokes as I can automatically. I have tried this piece of code to get rid of any '>' or whitespace charachters before the 'beginning' of each line of the text, but it just returns the same text as before: foreach my $line (@body) { $_ = $line; s/^(?:>|\s)*(.*)$/$1/g; print; } Any ideas what I am doing wrong here[3] TIA Will. [1] If anyone else has any I would be very grateful if they would forward them to me as I have started an archive. [2] An example taken from one of the emails: > > Q: Why aren't the England football team allowed to own a dog? > > A: Because they can't hold on to a lead. > > > > Q: What's the difference between the England team and a tea-bag? > > A: The tea-bag stays in the cup longer. > > > > Q: What's the difference between a packet of sellotape > and Phil Neville. > > A: One's a glueless kit. > > > > Oxo were going to bring out a Euro 2000 commemorative cube > painted red, > white > > and blue in honour of the > > England squad. But it was a laughing stock and crumbled in the box. [3] I bet you do :-)
Re: webmail
Lusercop wrote: > On Wed, Sep 25, 2002 at 12:52:03AM +0100, nemesis wrote: > >>I quite like big soft MUAs like mozilla mail so I run an IMAP server on >>the machine that gets the mail and use stunnel[0] to provide an >>encrypted connection. It took about 10 minutes to set up and works like >>a dream. > > > The problem with stunnel is auditing. You see a nice, logged, connection > from J.Random.IP.Address to the stunnel, and then the IMAP server sees a > connection from localhost. Far better if you can integrate the TLS system > into the IMAP server. It's a good stopgap, though. There is a transparent mode for stunnel, this from the man page: -T transparent proxy mode Re-write address to appear as if wrapped daemon is connecting from the SSL client machine instead of the machine running stunnel. Available only on some operating systems (Linux only, we believe) and then only in server mode. Note that this option will not combine with proxy mode (-r) unless the client's default route to the target machine lies through the host running stunnel, which cannot be localhost. but I have not used it so couldn't comment on it's effectivness. Will.
Re: OT:Linux mailing list
Neil Fryer wrote: > Hi All > > Does anyone know of a Linux mailing list in the london area, as I signed up > to one that was supposed to exist, and well, nada? gllug is pretty good, it is a community mailing liust but there are quite a few technically capable people on it: http://gllug.linux.co.uk Will.
Re: webmail
Paul Johnson wrote: > My mail is sitting on my machine at home, in mbox format. I'm sitting > at work, behind a firewall. My machine at home is running Debian Woody. > > I want to read and send mail, securely. > > I tried http://jwebmail.sourceforge.net/, but it's in Java and it > doesn't "just work". And it needs tomcat, and that's a lot of overhead > for something relatively simnple. > > So what's the answer, acmemail? I quite like big soft MUAs like mozilla mail so I run an IMAP server on the machine that gets the mail and use stunnel[0] to provide an encrypted connection. It took about 10 minutes to set up and works like a dream. Will. [0] http://www.stunnel.org
Re: DBD::mysql installation problems redux
Nicholas Clark wrote: > On Tue, Sep 24, 2002 at 08:06:59AM -0700, jonah wrote: > >>On Tue, 24 Sep 2002, Nicholas Clark wrote: >> >> >>>Did you download a binary perl, or build it yourself from source? >> >>Apparently it was a binary perl. Was it a binary or source installation of mysql? I seem to remember having similar problems with a DBD::mysql installation and I think installing a source version of mysql cured the problem. It was a long time ago though so my memory is pretty hazy, I don't know if this will solve the problem. Will.
Re: DBD::mysql installation problems
John Tobin wrote: > On Sat, Sep 21, 2002 at 01:15:45PM +0100, nemesis wrote: > >>Now I ran the command: >> >># perl Makefile.PL --cflags=-I/usr/local/mysql/include/mysql >>--libs=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm > > > I think you need to put quotes around your --libs argument to stop > your shell splitting it on spaces, i.e. > "--libs=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm" > Hope this helps. Bang on :-) Thanks a lot, it worked like a dream. If I ever see you, I owe you a beer. Will.
DBD::mysql installation problems
Hi All, I have set up a new machine (to replace a crusty old server) but I am having a few problems installing DBD::mysql which I need for a few apps on the box. I installed MySQL 3.23.52 in /usr/local/mysql, not /usr/local and this seemed to cause CPAN to fail when installing DBD::mysql so I tried installing it manually. Here is what I did. # cd /root/.cpan/sources/authors/id/J/JW/JWIED/DBD-mysql-2.1019 The values for --cflags and --libs in the next step were taken from using the commands: # /usr/local/mysql/bin/mysql_config --cflags # /usr/local/mysql/bin/mysql_config --libs Now I ran the command: # perl Makefile.PL --cflags=-I/usr/local/mysql/include/mysql --libs=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm which produced the following output: Unknown option: lmysqlclient Unknown option: lz Unknown option: lcrypt Unknown option: lnsl Unknown option: lm Can't exec "mysql_config": No such file or directory at Makefile.PL line 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL line 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL line 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL line 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL line 169. readline() on closed filehandle PIPE at Makefile.PL line 171. Can't exec "mysql_config": No such file or directory at Makefile.PL line 169. readline() on closed filehandle PIPE at Makefile.PL line 171. I will use the following settings for compiling and testing: cflags(Users choice) = -I/usr/local/mysql/include/mysql libs (Users choice) = -L/usr/local/mysql/lib/mysql nocatchstderr (default ) = 0 ssl (guessed ) = 0 testdb(default ) = test testhost (default ) = testpassword (default ) = testuser (default ) = To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Checking if your kit is complete... Looks good Using DBI 1.30 installed in /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/auto/DBI Writing Makefile for DBD::mysql Then a make and make install: # make cc -c -I/usr/local/lib/perl5/site_perl/5.8.0/i686-linux/auto/DBI -I/usr/local/mysql/include/mysql -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"2.1019\" -DXS_VERSION=\"2.1019\" -fpic "-I/usr/local/lib/perl5/5.8.0/i686-linux/CORE" dbdimp.c cc -c -I/usr/local/lib/perl5/site_perl/5.8.0/i686-linux/auto/DBI -I/usr/local/mysql/include/mysql -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"2.1019\" -DXS_VERSION=\"2.1019\" -fpic "-I/usr/local/lib/perl5/5.8.0/i686-linux/CORE" mysql.c Running Mkbootstrap for DBD::mysql () chmod 644 mysql.bs rm -f blib/arch/auto/DBD/mysql/mysql.so LD_RUN_PATH="" /usr/local/bin/perl myld cc -shared -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so chmod 755 blib/arch/auto/DBD/mysql/mysql.so cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs chmod 644 blib/arch/auto/DBD/mysql/mysql.bs Manifying blib/man3/Mysql.3 Manifying blib/man3/DBD::mysql::INSTALL.3 Manifying blib/man3/DBD::mysql.3 Manifying blib/man3/Bundle::DBD::mysql.3 # make install Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Writing /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/auto/DBD/mysql/.packlist Appending installation info to /usr/local/lib/perl5/5.8.0/i686-linux/perllocal.pod Now when I run a program that uses DBD::mysql I get the error: /usr/bin/perl: error while loading shared libraries: /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init and I am completely stumped, what have I done wrong here? Is this an installation problem, or a problem with the versions of MySQL and DYD::mysql I am using? TIA, Will.
LWP::UserAgent cookie madness
Hello, I have a problem with LWP::UserAgent. I am running some performance tests on a site that uses SSL. I have Crypt::SSLeay installed and this is pretty much the code I am using to make the requests: $url = 'https://somedomain.com/some.cgi'; $ua = LWP::UserAgent->new(); $ua->cookie_jar(HTTP::Cookies->new(file => "lwpcookies.txt", autosave => 1)); $ua->agent('WebSuck/v0.1'); $req = HTTP::Request->new(POST => $url); $req->content_type('application/x-www-form-urlencoded'); $req->content('parameter=value'); $req->referer('http://www.goatpr0n.com/'); $response = $ua->request($req); Unfortunatly one part of the site that I need to access needs a cookie set in another part of the site. This works fine when not using SSL, the cookie jar updates normally, however when making the request over SSL no cookies are saved. There is no error returned, just no cookies. Has anyone else come across this problem, and is there a solution? Many thanks Will.
Re: Money and mouse clicks
Brad Bollenbach wrote: > On Thu, Sep 19, 2002 at 10:37:34AM +0100, Chris Carline wrote: > >>On Thu, Sep 19, 2002 at 10:15:19AM +0100, Brad Bollenbach wrote: >> >>>So my question is, if you can get a decent enough website going to make >>>thousands and thousands of people click on a "Send" button (Hotmail) or >>>a "Google Search" button, how then do you have any hope of actually >>>making money off that? >> >>Charge users a monthly subscription fee for the privilige of clicking >>that button. Or implement additional button services for subscribers. > > Eeek...I wouldn't use this service for a fee, so I definitely don't see > that many other people doing so. But if it were *free*, I'd use it at > least 5 times per day. License the button to other websites? If it is really good/useful websites might consider paying you to have your button on their site to make it more attractive to regular surfers/attract new visitors. Will.
Re: OT Perl
Paul Makepeace wrote: > On Wed, May 29, 2002 at 06:34:07PM +0100, nemesis wrote: > >>Hi All, >> >>I have a script that gets some pages and it needs to remember the cookies >>they so generously provide. I have dones this using the cookie jar >>functionality of the LWP::UserAgent module: >> >>my $ua = LWP::UserAgent->new(); >>$ua->cookie_jar(HTTP::Cookies->new(file => "/path/to/lwpcookies.txt", >>autosave => 1)); >> >>except most importantly for me, it doesn't update the cookie jar when I >>make the request via SSL (it is fine non-ssl). Although everything else > > > SSL listens on a different port (:443 v. :80) Yup. >so unless you have a server running this same code the chances are something entirely > different is handling it. On the serevr that is being tested, there is only a server running on port 443. The problem is that when running: $ua->scan(\&some_sub); with a some_sub that finds all the cookie headers, that the cookies headers are found both when an SSL and a standard non-SSL request is made indicating that in both cases that the cookies are being returned, when the URL being 'GOT' is over SSL the cookie_jar is not being updated, and in fact remains stoiclaly blank. This is proving to be a complete git as the server needs the cookies to be present to serve the next page... Is this a bug in one of the modules I am using, or am I just being a fuckwit? Me.
OT Perl
Hi All, I have a script that gets some pages and it needs to remember the cookies they so generously provide. I have dones this using the cookie jar functionality of the LWP::UserAgent module: my $ua = LWP::UserAgent->new(); $ua->cookie_jar(HTTP::Cookies->new(file => "/path/to/lwpcookies.txt", autosave => 1)); except most importantly for me, it doesn't update the cookie jar when I make the request via SSL (it is fine non-ssl). Although everything else about the request comes down fine like the page content, the cookies do not get added to the jar although they are retrieved from the remote server. Anyone got any ideas? I have tried sending the cookies manually as part of the header but I think they are in the wrong format when I send them. Any ideas why this is not working correctly? Will.
Re: review of Star Wars Episode 2
Randal L. Schwartz wrote: >>"David" == David Cantrell <[EMAIL PROTECTED]> writes: > > > David> The Christopher Lee impersonator they got was fantastic too. > > I thought that was merely a CG effect, like Yoda. On the digital > projection, I kept seeing flicker around his face. That must have been his ora...
Re: Website mirroring
Alex McLintock wrote: > Hi folks, > > Thanks for all your suggestions regarding mail list software. I think > the consensus is to try mailman for what I need > though of course there are still many other situations when majordomo is > more appropriate. > > --- > > I am wondering if anyone uses the LWP script lwp-rget to mirror a > website. I am trying to find any tool (windows or unix, > open or closed source) which will do what I need. I use 'wget' on Linux for this purpose. Haven't used the script you mentioned. Will.
Re: pony farm
On Tue, Mar 19, 2002 at 04:01:43PM +, jo walsh wrote: > > omg i've just seen a tv advert for a playmobil pony farm! > we should get one to stick on top of penderel to play with while > fscking it. With a plastic poseable buffy with moveable limbs and a stake?
Re: User Input at speed
Newton, Philip wrote: > Dominic Mitchell wrote: > >>german (why is "Ctrl" "Strg"?) >> > > My expansion is "Steuerung", which, I suppose, is supposed to be a > translation of "Control". But I still say "Konntrohl Tsee" for "Ctrl+C", not > "Strig Tsee" or "Steuerung Tsee". > > What I'd like to know is what "Alt Gr" stands for. I used to think it was > "Alt German", but I think also other national keyboards have it. "Alt > Graphic", perhaps? And "Alt Gr" is the same as pressing "Alt" and "Ctrl" at the same time. The "Gr" in "Alt Gr" stands for German, by the way. from http://www.monochrom.at/cracked/factoids01.htm (FACTOIDS #4/01). Wether there is any truth in this I don't know. There is an amusing picture at the top of the page too. will. -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
Re: User Input at speed
Chris Devers wrote: > As for truly faster, speech-speed input -- how about a microphone? Try visiting http://slashdot.org with voice recognition :-) -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
Re: User Input at speed
[EMAIL PROTECTED] wrote: > Vaugly off topic... not for this list :-) > Made me wonder - what is the fastest method of user input into a computer. > > We all know that the QWERTY keyboard was designed to slow us down. So, > anyone know any good mechanisms which are designed to speed us up? I think the DVORAK keyboard would be the alternative[0], designed for speed. [0]No ideas about other input methods
Re: Penderel
David Cantrell wrote: > So penderel is back after dieing yet again. I suggest that we replace it > with a machine which is actually engineered to be reliable... I would suggest this beast of a machine: http://www-ccs.cs.umass.edu/%7Eshri/iPic.html -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
Re: wanted - pants linux-capable webcam
Charlie & wrote: > I just want a good quality linux capable and usable Webcam... Someone on the gllug list mentioned Dexxa webcams (you can search tge archives, gllug.linux.co.uk) a while ago. They were dirt cheap at the time and they worked. Will. -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
Re: Guns and 'puters was Re: Wingate was Re: black hat hackers
[EMAIL PROTECTED] wrote: >>whereas a .303 rifle may only cause slight bruising/annoyance. >> > > Have you ever *held* a .303 rifle? There is less chance of a 486 jamming in the banisters on the way down, so you retain the edge. Of course you need the element of surprise, a man holding a 486 will earn less respect than a man holding the correct end of a .303 if he is seen. That said, a freind of mine once got mugged by a man who walked up to him holding a tin[0] opener (the old sort that hurt your hands with the twisty handle). He said "give he your wallet" My freind laughed at him as he brandished the can empiercement device. The man then hit him and took his wallet. My freind was not carrying a 486 unfortunatly so a comparison cannot be made as to the effectiveness it would have against the tin opener although this would be a worthy experiment, if a dangerous one. [0]This was originally accidently written as a tim opener, which it could be argued was the same thing as a tin opener as long as the offensive end was being pointed at a person going by the correct name. Will. -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
Re: OT perl question
Dominic Mitchell wrote: > nemesis <[EMAIL PROTECTED]> writes: > > >>Anyone know of a way of telling whether a perl script was called as a >>CGI (via the apache webserver) or directly (as in as a cron script or >>command line)? >> > > if (exists $ENV{SERVER_NAME}) { > print "I'm a cgi (probably)\n"; > } else { > print "I don't appear to be a cgi\n"; > } Thanks to everyone who helped. I will dump all the $ENV variable see what I can see in the different cases. Will. -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
OT perl question
Anyone know of a way of telling whether a perl script was called as a CGI (via the apache webserver) or directly (as in as a cron script or command line)? Will. -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
Guns and 'puters was Re: Wingate was Re: black hat hackers
Jonathan Peterson wrote: > David Cantrell wrote: > >>If they are allowing someone to use their machine to attack me, then *they* >>are attacking me. Not securing their own box is a sin of ommission as >>opposed to a sin of commission, so I'll let them off with a sound flaming >>instead of cutting their balls off. Being incapable of securing their own >>box is not an admissible defence. > > I guess in some places firearms are treated the same way - certainly if > criminals steal guns from a shooting club, and it's found that the guns > weren't even locked away, the club is liable. I suppose the jury is > still out as to whether something like a P2 400Mhz running Windoze is as > dangerous as a .303 rifle, but certainly many people would agree that it > is. It depends how high you drop them from. I have an old 486 which makes up for it's lack of power in weight and solid build. Dropping this onto the head of an assailant from the the top of the stairs (I live in a top floor flat) could, if the element of surprise is retained, be quite dangerous whereas a .303 rifle may only cause slight bruising/annoyance. Will.
Re: black hat hackers
Robert Shiels wrote: > From: "robin szemeti" <[EMAIL PROTECTED]> > >>google "wingate exploits" 3,300 pages .. hmmm >> >> > Hmm, maybe my version of google is different to yours: > > wingate + exploits : Results 1 - 10 of about 2,120 > > apache + exploits : Results 1 - 10 of about 19,600 > > What were you trying to prove :-) > > /Robert, thinking you can prove anything with statistics I am not sure this means anything... "you can prove anything with statistics". Results 1 - 10 of about 176 "black is white". Results 1 - 10 of about 5,200 :-)
Re: black hat hackers
Greg McCarroll wrote: > * robin szemeti ([EMAIL PROTECTED]) wrote: > >>if your scans and probes look like ... >> >>[4] PBServer/..%5c..%5c..%5cwinnt/system32/cmd.exe >> > > > >>etc etc etc ad nauseum >> >> > > nope, the sequence of events went something like this > > portscan on 145 > 20+ minutes later, portscan of 146 > 1hr+ minutes later, apache was showing attempts such as this You could set up some sort of IPTables/chains rule to block the IP (or some other action) of any host that portscans these ports. Of course he might be spoofing. > host217-35-113-70.in-addr.btopenworld.com - - [09/Jan/2002:14:36:32 > +] "GET > /cgi-bin/webspirs.cgi?sp.nextform=../../../../../../etc/passwd > HTTP/1.0" 404 275 "-" "-" > host217-35-113-70.in-addr.btopenworld.com - - [09/Jan/2002:14:36:33 > +] "HEAD /cgi-bin/DCShop/Orders/orders.txt HTTP/1.0" 404 0 "-" "-" > host217-35-113-70.in-addr.btopenworld.com - - [09/Jan/2002:14:36:33 > +] "HEAD /cgi-bin/a1disp3.cgi?/../../../../../../etc/passwd > HTTP/1.0" 404 0 "-" "-" > host217-35-113-70.in-addr.btopenworld.com - - [09/Jan/2002:14:36:33 > +] "HEAD /cgi-bin/a1stats/ HTTP/1.0" 404 0 "-" "-" If they are repeating the same scans then you could set up a tar pit! http://slashdot.org/article.pl?sid=01/09/20/1241249&mode=thread well, maybe. Of course you could use Apache redirect directives if they are requesting the same paths. We had to do this on a bunch of our UNIX webservers, redirecting the requests to a 0 byte text file. I do think BT abuse should get off their lazy behinds and do something about it though. Hmmm. -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
Re: perl acronym
Ivor Williams wrote: > Hi there, > > Just curious, what does perl actually stand for, or is it not an acronym? 'Practical extraction and reporting language' I believe Larry originally had the 'a' in there but wisely dropped it. Will -- *claw claw* *fang* *shred* *rip* *ad hominem* *slash* (more attacks will require consultancy fees.) -Nix.
Re: way OT, but I thought it was amusing.
[Warning: contains nut] - Original Message - From: "Newton, Philip" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 12:32 PM Subject: Re: way OT, but I thought it was amusing. > [Warning: contains nitpicking] > > nemesis wrote: > > #!/usr/local/bin/perl -w > > use strict; > > my $image_url = 'http://www.fyshbowl.org/temp/announcement.jpg'; > > print "Content-type: text/html\n\n"; > > print " > the URL to an amusing imageto the mailing list\">\n"; > > Someone teach this poor, misguided soul about your choice of > > (a) here docs > (b) qq|| and alternative quoting delimiters > (c) CGI.pm (if using CGI.pm for generating HTML rocks your boat) > (d) Template Toolkit > (e) -T > (f) What a DOCTYPE is and how to comply with the one you chose[1] > (g) all of the above > > :) Ooooh, picky :) Well I browse the web by sticking an ethernet cable up my nose and a toe in the electrical socket and that page came up fine for me! -- Blowey, as we liked to call him, was found in Panmure when he was 6 years old. He had been raised by air conditioning units since his parents abandoned him, sucking on the outlet pipes and extracting nutrients from the moisture in the ducts. He use to climb up and sleep in the extraction fan units during the day, and sneak down during the night when no-one was about to see him. While his air conditioning parents were unable to care for him in the traditional manner, they loved him and supported him in every way they knew how. I bring this up because of the recent developments in Chile where the young boy who was raised by dogs has just run away from his foster parent home. I really do think that often these young boys, while not having the normal comforts we take for granted, are simply far happier. I know that to us seeing Blowey cling to the side of a building sucking on a pipe just doesnt seem right, but for him it just seemed to make him happy. I think we can all take lessons from these young boys. Sage knows no wage nor any age.
way OT, but I thought it was amusing.
#!/usr/local/bin/perl -w use strict; my $image_url = 'http://www.fyshbowl.org/temp/announcement.jpg'; print "Content-type: text/html\n\n"; print "\n"; I put some perl around the comedy image URL so there was the smallest on topicness about this post. Me.
Re: REMINDER: New Heretics meeting
- Original Message - From: "Greg McCarroll" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 31, 2001 12:24 PM Subject: Re: REMINDER: New Heretics meeting > This is an incredible game, i've played it for about an hour now and I > just can't believe how much fun it is, don't even get me started on > the radio stations. The bloke who i beat up before stealing his car > had such bad taste in music station that i'm glad i went the extra > mile and battered him to a pulp on the ground as well. It is a great game (although I have only played the first two versions). I like the way that if you time a skid just right so that you hit a pedestrian as you turn you get red skid marks on the road :-) Excellent wholesome family fun.
Re: Football
- Original Message - From: "Simon Wilcox" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 29, 2001 12:55 PM Subject: Re: Football > On Mon, 29 Oct 2001, Greg McCarroll wrote: > > > surely there must be another 5 people in london.pm want to get a > > little fitter with a friendly kick about? > > Although I can actually get there does depend somewhat on where and > when. > > I'm sure Greg the squad captain, or should that be coach, will enlighten > us. Yeah, time and date will affect my ability to attend.
Re: Football
- Original Message - From: "Richard Clyne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 29, 2001 11:04 AM Subject: Football > I'll join in, but I'm not confident of getting enough players. This is one of the things I would like to do if I actually had enough time to sustain a life. If the time and place were reasonable (ie. somewhere near Putney/Wimbledon) for me then I would really like to try and have a go. Will.
Re: a really stupid idea
- Original Message - From: robin szemeti <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 11:01 PM Subject: Re: a really stupid idea > On Friday 26 October 2001 16:02, nemesis wrote: > > > The first person to realise why hellacool.co.uk is blocled by the 3Com > > office firewall wins a bag 'o' air (I actually have one, very cool). Had > > my network admin confused for... well he still is. > > errr ... its not. Exactly. But yes, the Network admin is still confused... Especially because we have a 3Com office firewall in the office. > you're simply a virtual host at rapidsite.com ( Verio inc. ) running on Irix > too I note, anyway ... for some reason you've chosen to slap a 3com gif > image on your index.html page .. lord knows why .. probably to confuse your > network admin :) Well, it is an improvement over what used to be there I am sure you will aggree. Verio is where I work. >( clues: OS reports as IRIX, not 3com firewall, server > reports as Apa-rapidsite not 3com firewall, 3com firewall doesnt have a > hellacool - perl and other stuff by default ) The title is a dead giveaway. > http://www.hellacool.co.uk/index.htm > > however is more revealing ... > > > This project involved PERL scripting with SSL (secure socket layer) > > and HTML for the interface. Darn that's old. Thanks for reminding me it was there. More interesting would be http://hellacool.co.uk/serverporn/ > well .. so long as hes' still confused I guess its worked then :) .. reminds > me of the time we used to swap keytops around with a pair of pliers and then > phone the IT helpdesk "I think I have the wrong codepage settings on my > machine ... no Ive tried codepage 435, 475 and 234 but ~ and % are still > swapped over ... can you send us a PFY to find the right codepage setting .. > ta." ... we could have them there for hours heh heh :-), Later, Will.
Re: a really stupid idea
- Original Message - From: "Simon Wistow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 3:47 PM Subject: Re: a really stupid idea > > From nemesis <[EMAIL PROTECTED]> > > > > I *knew* I should have copyrighted that :) > > Domain Name: PERLISMYBITCH.COM >Registrar: GANDI >Whois Server: whois.gandi.net >Referral URL: http://www.gandi.net >Name Server: NS1.SECURE.NET >Name Server: NS2.SECURE.NET >Updated Date: 20-jul-2001 > > > checking whois.gandi.net gives us > > person: Will Jessop > nic-hdl:WJ31-GANDI > address:46 Beacon View, Marple > address:SK6 6PX > address:Stockport > address:United Kingdom > phone: +44 (0)161 449 0782 > e-mail: [EMAIL PROTECTED] > > > and hellacool.co.uk get's a 'website blocked by 3Com office firewall' message > fom both in my office and from my co-lo box. > > Curiosuer and curiouser. > > Anyway, hello Will Jessop. helo. The first person to realise why hellacool.co.uk is blocled by the 3Com office firewall wins a bag 'o' air (I actually have one, very cool). Had my network admin confused for... well he still is. Re: domain name, I waited and waited and waited and still it was not taken, so what the hell :-) If anyone wants a nameserver or A record for whatever.perlismybitch.com then they are welcome, just sendme the details. nemesis.
Re: a really stupid idea
- Original Message - From: "Greg McCarroll" <[EMAIL PROTECTED]> To: "London.pm" <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 3:03 PM Subject: a really stupid idea > Ok, i know this is probably a really stupid idea, however ... > > Would 9 other people (or more) be interested in a game or two (maybe > regular) of 5 aside football. It would be good for our health and > shouldn't be too competitive[1]. What's football? Can I bring my swivel chair? [1]Competitive? Never...