Re: London.pm List Weekly Summary 2001-04-16 (Attempt 2)

2001-04-23 Thread Simon Wistow

Leon Brocard wrote:

 Leon, who didn't get as many points snowboarding than he does
 in SSX. Somehow falling hurts more...

*cough*

Deja-Angst : http://www.inktank.com/index.cfm?toon=02-26-01



More Natives

2001-04-23 Thread Cross David - dcross

I thought it had all blown over. Chris had even started being civil to me
again. But over the weekend bk (who was the one who started it all) posted
the following:

=

Yea, I usually _AM_ the right one. WOW, I was wrong _1_ _fucking_ _time_.
Ooohhh, Davey intimidates me! That's why I kill people for a job, and you
write about perl... 

OOh, I'm scared. 

I'll shove a howitzer up _ALL_ of your asses. (Except those who defend me,
of course)... 

Now, take yer lame ass fountain pens, and leave me alone. I'm in Hereford,
England on business, and have _NO_ time to deal with this I'm right/your
wrong/i kill/you write crap. 

Peace! 

Dave, your book sucks, in my opinion... 

Data munging--- bah. Munging? If you note AOL dictionary... The only
definition is for mung bean. 

=

Too many openings must resist urge to reply

Dave...

-- 


The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged. If the reader 
of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  
If you have received this communication in error, please 
re-send this communication to the sender and delete the 
original message or any copy of it from your computer
system.



Re: Beginners Guide

2001-04-23 Thread Struan Donald

* at 21/04 10:14 +0100 Robin Szemeti said:
 On Fri, 20 Apr 2001, you wrote:
 
  I read it as not wanting to fund the various commercial entities one
  ends up funding in order to actual get a digital box. The idea of
  putting any more money in the Murdoch empires coffers just for the
  sake of getting News 24 and BBC Choice certainly doesn't appeal.
 
 ahh .. re read yes .. that would be another interpretation ...
 but, again,  it certainly used to be the case and AFAIK it still is that
 you can get ( it might be 3 quid or something $ trivial to cover the cost
 of hte card) a BBC only card that is free on production of your TV
 licence. I know Murdoch et al were not very keen on the idea and try and
 tell you it 'cant be done' etc but ISTR the DTI telling em to just shut
 up and do it.

and almost as if in answer to this i noticed a great many ads for
digital tv wjile vegging in front of smtv on saturday that made much
of the fact that you bought it and itv2 was free, free, free! as it
also showed tvs with news24 etc i imagine all your favourite bbc
digital channels are also free.

struan



Re: More Natives

2001-04-23 Thread Greg McCarroll

* Cross David - dcross ([EMAIL PROTECTED]) wrote:

 Data munging--- bah. Munging? If you note AOL dictionary... The only
 definition is for mung bean. 
 
 =
 
 Too many openings must resist urge to reply
 

I always find a spot of Machiavelli brings inspiration at times like this ..

And here it should be noted that hatred is acquired as much by good 
 works as by bad ones, therefore, as I said before, a prince wishing 
 to keep his state is very often forced to do evil; for when that body 
 is corrupt whom you think you have need of to maintain yourself- it 
 may be either the people or the soldiers or the nobles- you have to submit 
 to its humours

Clearly advice to flame him to a crisp.


Greg 

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: More Natives

2001-04-23 Thread Simon Wistow

Cross David - dcross wrote:

 Now, take yer lame ass fountain pens, and leave me alone. I'm in Hereford,
 England on business, and have _NO_ time to deal with this I'm right/your
 wrong/i kill/you write crap.


I used to see bk and his ilk when I used to go to Hereford - they were
hanging around outside the McDonalds wearing Adidas tracksuits and
trying to bum cigarettes off the soldiers.



Re: London.pm List Weekly Summary 2001-04-16 (Attempt 2)

2001-04-23 Thread Leon Brocard

Simon Wistow sent the following bits through the ether:

 Deja-Angst : http://www.inktank.com/index.cfm?toon=02-26-01

Hmmm, that came out on my birthday. I think it's a Sign...

Leon
-- 
Leon Brocard.http://www.astray.com/
Iterative Software..http://yapc.org/Europe/

... Computer Lie #1: You'll never use all that disk space



(possible) zip and file download problem

2001-04-23 Thread Jon Galliers

I asked a question a couple of weeks ago about using Archive::Zip, and 
although my script does work, I still have a few queries about it; I wonder 
if anyone can shed any light.

The basic idea is that there are files of multiple formats (.doc, .pdf, 
.etc) that need to be downloaded through a users browser. It also needs to 
be downloaded through the program logic, and not as a simple link.

The main problem is that the zipped file downloads as NameOfCGIFile.zip 
and not download.zip. I am also slightly more concerned about my 
(possibly pitiful) attempts at file locking, and the consequences of many 
users trying to download files at the same time. I've been playing around 
with this for some time, but I can't find a better way to do this.




($file - name from database query)

my $zip = Archive::Zip-new() or die couldn't create zip $!;
$zip-addFile(/web/www.website.com/docs/$file) or die couldn't add file $!;
$zip-writeToFileNamed('/web/www.website.com/docs/download.zip');# possible 
lock error;
open (DOCZIP, /web/www.website.com/docs/download.zip) or die couldn't 
open file $!;

flock (DOCZIP, 2);

print Content-type:application/x-zip-compressed\n\n;

my $fileData;
while (read(DOCZIP, $fileData, 1024)) {
 print $fileData;
}

unlink (/web/www.website.com/docs/download.zip) or die couldn't delete 
file $!;

close(DOCZIP);





tia
Jon

*
  Jon Galliers   [EMAIL PROTECTED]
  Programmer Perl/C++/MySQL/DB2/Java
  Design Net http://www.design.net.uk
 Tel: +44(0)870 240 0088
 Fax: +44(0)870 240 0099
*




Re: (possible) zip and file download problem

2001-04-23 Thread Niklas Nordebo

On Mon, Apr 23, 2001 at 12:06:06PM +0100, Jon Galliers wrote:
 The main problem is that the zipped file downloads as NameOfCGIFile.zip 
 and not download.zip.

I think you might like to have a look at the Content-Disposition MIME
header.

Something like this:

print Content-type:application/x-zip-compressed\n .
  Content-Disposition: attachment; filename=$file\n\n;

-- 
Niklas Nordebo -- [EMAIL PROTECTED] -- +447966251290
 The day is seven hours and fifteen minutes old, and already it's
crippled with the weight of my evasions, deceit, and downright lies



Re: (possible) zip and file download problem

2001-04-23 Thread Merijn Broeren

Quoting Jon Galliers ([EMAIL PROTECTED]):
 
 
 ($file - name from database query)
 
 my $zip = Archive::Zip-new() or die couldn't create zip $!;
 $zip-addFile(/web/www.website.com/docs/$file) or die couldn't add file $!;
 $zip-writeToFileNamed('/web/www.website.com/docs/download.zip');# possible 
 lock error;
 open (DOCZIP, /web/www.website.com/docs/download.zip) or die couldn't 
 open file $!;
 
 flock (DOCZIP, 2);
 
 print Content-type:application/x-zip-compressed\n\n;
 
 my $fileData;
 while (read(DOCZIP, $fileData, 1024)) {
  print $fileData;
 }
 
 unlink (/web/www.website.com/docs/download.zip) or die couldn't delete 
 file $!;
 
 close(DOCZIP);
 
Another trick that we used was to overload the pathinfo. Just create a
URL that looks like www.website.com/cgi-bin/NameOfCGI/fileno.zip. 

Netscape and Explorer will take the last bit to prompt you with in the
Save As dialog, while the webserver will just invoke NameOfCGI, which in
turn will be able to find fileno.zip in it's path info. 

Cheers,
-- 
Merijn Broeren | Sometime in the middle ages, God got fed up with us 
Software Geek  | and put earth at sol.milky-way.univ in his kill-file.
   | Pray all you want, it just gets junked.



Re: More Natives

2001-04-23 Thread Greg McCarroll

* Marcel Grunauer ([EMAIL PROTECTED]) wrote:
  Data munging--- bah. Munging? If you note AOL dictionary... The only
  definition is for mung bean.
 
 Maybe this just says something about the AOL dictionary.
 

/me throws his copy of the OED in the bin, favouring the much more
31337 AOL dictionary. [1]

Greg

[1] i guess /me was the wrong way to beging that - how about /me2 ;-)

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: More Natives

2001-04-23 Thread David Cantrell

On Mon, Apr 23, 2001 at 02:22:45PM +0100, Greg McCarroll wrote:
 * Marcel Grunauer ([EMAIL PROTECTED]) wrote:
   Data munging--- bah. Munging? If you note AOL dictionary... The only
   definition is for mung bean.
  
  Maybe this just says something about the AOL dictionary.
  
 
 /me throws his copy of the OED in the bin, favouring the much more
 31337 AOL dictionary. [1]

/me had to look something up in a dictionary last night, and was not at
all impressed when not only did the OED not have the information I was
after (I wanted the Latin name of a particular plant) - it didn't have
the flipping thing at all!

OK, this was the CD version, so at only 650Mb it can't be as comprehensive
as the seventeen ton four mile long Real Thing, but it's a reasonably
common word and bloody well should have been in there.

-- 
David Cantrell | [EMAIL PROTECTED] | http://www.cantrell.org.uk/david/

   Rip, Mix, Burn, unless you're using our latest and greatest
 operating system which we couldn't be arsed to complete