Re: fork()ing in perl

2003-07-18 Thread Niklas Nordebo
On Fri, Jul 18, 2003 at 02:45:29PM +0100, Iain Tatch wrote:
> CW>  1. what's happening
> 
> Perl is doing nothing more than calling your operating system's underlying
> fork() call -- see `man 2 fork'.

Do that, and on Linux you'll see this:

   Under Linux, fork is implemented using copy-on-write pages, so the only
   penalty incurred by fork is the time and memory required  to duplicate
   the parent's page tables, and to create a unique task structure for the
   child.

Copy-on-write means that your kid processes have may have a lot of memory
allocated, but until they or the parent change the data it's only used once
by the operative system. So if you have 10 child processes using 10 MB memory
each, they may be using less than 100 MB together since they have the exact
same memory pages allocated.

So make sure that you are actually using as much memory as you think you
are before you try making your kiddies smaller, it may well be that you
haven't got a problem.

-- 
niklas nordebo -><- [EMAIL PROTECTED]
Holy Shit! You must die to preserve life on Earth as we know it!



Re: Report on the Glasshouse Stores

2002-05-23 Thread Niklas Nordebo

On Thu, May 23, 2002 at 11:17:51AM +0100, Simon Wistow wrote:
> Does SMIRNOFF ICE^(TM) have vodka?
> NO. SMIRNOFF ICE^(TM) was created as a beer alternative; brewing it
> using a malt base enabled us to create a recipe that could be sold and
> consumed just like a beer here in the United States.

There are similar "ciders" in Sweden brewed on malt so they can be sold in
normal shops just like beer[0]. No idea what they taste like.

[0] Beer up to 3.5% alcohol can be sold in normal shops here in Sweden, all
other alcoholic drinks are only sold in the government monopoly shops
"Systembolaget".

-- 
Niklas Nordebo -><- [EMAIL PROTECTED] -><- +447966251290
i want to be different just like you




Re: Rindolf again

2002-03-12 Thread Niklas Nordebo

On Tue, Mar 12, 2002 at 10:26:48AM +, [EMAIL PROTECTED] wrote:
> The phrase 'September that never ended' was already in live use before
> AOL gave Usenet access. I can't now remember whether the Jargon File
> entry cites Prodigy or Delphi as the original offenders, but trust me
> on this, AOL were latecomers. I was there.

>From Jargon File (4.3.0, 30 APR 2001) [jargon]:

  September that never ended All time since September 1993. One of the
 seasonal rhythms of the Usenet used to be the annual September influx of
 clueless newbies who, lacking any sense of {netiquette}, made a general
 nuisance of themselves. This coincided with people starting college,
 getting their first internet accounts, and plunging in without bothering
 to learn what was acceptable. These relatively small drafts of newbies
 could be assimilated within a few months. But in September 1993, AOL
 users became able to post to Usenet, nearly overwhelming the old-timers'
 capacity to acculturate them; to those who nostalgically recall the
 period before hand, this triggered an inexorable decline in the quality
 of discussions on newsgroups. See also {AOL!}.

-- 
Niklas Nordebo -><- [EMAIL PROTECTED] -><- +447966251290
thank you mario, but our princess is in another castle




Re: call LEVEL oddness

2002-01-22 Thread Niklas Nordebo

On Tue, Jan 22, 2002 at 05:50:45PM +, Redvers Davies wrote:
> > I hate to poke my head above the parapet, but just where did English get
> > this 'difficult to learn' reputation? English is not tonal, not
> 
> Consistancy.  English has none.

As opposed to Esperanto and, er, maybe Lojban, and what else?

Natural languages aren't very consistent, and as a non-native English
speaker I wouldn't say English is that hard.

You don't have arbitrary genders, for instance, or arbitrary different
counting words depending on what you're counting.

-- 
Niklas Nordebo -><- [EMAIL PROTECTED] -><- +447966251290
 "a windows based machine should not be connected to the internet unless
accompanied by a small, female zebra." -- Robin Szemeti




Re: [OT] schrodinger's hash key

2002-01-18 Thread Niklas Nordebo

On Fri, Jan 18, 2002 at 05:57:11PM +, Chris Ball wrote:
> OOI, does '&&' have a higher precedence than 'and' in perl?  This seems
> to be the case in php.  I haven't worked out why yet; they're definitely
> both comparison rather than bitwise.  It confuses me.

Yes, 'or' and 'and' has very low precedence. This is useful for writing
stuff like

  frob $foo or frob $bar;

which looks nice and DWIM, unlike

 frob $foo || frob $bar;

which doesn't do what I want, and

 frob($foo) || frob($bar);

which does what I want but doesn't look as natural language-like.

-- 
Niklas Nordebo -><- [EMAIL PROTECTED] -><- +447966251290
 "a windows based machine should not be connected to the internet unless
accompanied by a small, female zebra." -- Robin Szemeti




Re: black hat hackers

2002-01-10 Thread Niklas Nordebo

On Thu, Jan 10, 2002 at 10:16:18AM +, Roger Burton West wrote:
> Though having a web server on the box is Bad, and justifies locking down
> file permissions very hard.

Note that the web server listens on the internal interface(s) only.

-- 
Niklas Nordebo -><- [EMAIL PROTECTED] -><- +447966251290
 "a windows based machine should not be connected to the internet unless
accompanied by a small, female zebra." -- Robin Szemeti




Re: warning

2001-11-25 Thread Niklas Nordebo

On Sun, Nov 25, 2001 at 12:02:15PM -, Barry Pretsell wrote:
> I've also got Civ III, and any irrate wife for the same reasons as you.
> count me in for a london.pm game,

I feel I have to point out that Civ3 continues the old Civilization
tradition of not having a multiplayer mode. Chances are it'll be added in a
later version/expansion (full price of course).

cf. Civilization(no MP) -> CivNet(MP), Civ2(no MP) -> Civ2 Gold (MP)

-- 
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: Netiquette was Re: [Perl Jobs] CGI / MySQL developer (onsite), UK, London]

2001-10-18 Thread Niklas Nordebo

On Thu, Oct 18, 2001 at 11:20:17AM +, Steve Mynott wrote:
> Niklas Nordebo <[EMAIL PROTECTED]> writes:
> 
> > On Thu, Oct 18, 2001 at 09:33:02AM +, Steve Mynott wrote:
> > > 
> > > FLAME ON
> > 
> > paraphrased: "You're not going to get everyone to abide by those rules so
> > I'm going to jeopardy quote now just to irritate you"
> 
> That wasn't actually the intention.  I will top quote when I think it
> makes the email easier to read which I think is generally the case
> when you are writing more than you are quoting.
> 
> A drawback of bottom quoting is that you have to scroll past the quote
> in order to get the new material.  I read a _lot_ of email and such
> scrolling wastes valuable time and key strokes.  It also raises
> visability of your words.  I am well aware that its against
> USENET/mailing list tradition as codified in 1989 but I think its just
> geek snobbery against Outlook and AOL users and the like really.

Yes, a drawback of bottom quoting is that you have to scroll past the
quote, *if you quote way too much* like I just did.

And it has nothing to do with Outlook/AOL - I don't know about AOL but it's
not harder to quote after what you're quoting in Outlook than in Pine
(after you've changed a couple of settings to sane values, like putting in '>'.

> Isn't the Perl way "There is More Than One Way to Do It?"

Yes, but the london.pm list isn't in Perl, it's in English over mail.

> Bottom quoting to me only makes sense to me now if you are responding
> on a point to point basis (as I am doing now).  So I use both quoting
> styles.

AS I had before, top quoting only makes sense when you're quoting too
much. Like you did in the message I replied to.

> > fucking Microsoft Outlook and not some kind of stoneage text mail client
> > for hippy programmers.
> 
> Sorry you lost me here.  I can't understand whether you are being
> ironic or not and so your meaning is lost.

Somewhat ironic, somewhat pretty close to the mark in most cases I'd say.

> I care more about the content people post and how easy it is to read
> than the way they quote it.

How is something is to read is very much dependent on presentation such as
quoting.

There is no distinction between good design and good usability.

> > People do mistakes sometimes, especially if they're used to jeopardy
> > quoting or whatever. The fact that people *will* do something doesn't mean
> > that something isn't wrong/bad/whatever, as anyone with even a vague grasp
> > of logic will understand.
> 
> I think the solution is client-side (filtering) rather than
> server-side.

Seems like a complicated solution to a simple problem to me.

> Complaining about quoting really is petty and a total waste of time.

No, it generally helps. I'm on several mailing lists with non-technical
people who have learnt not to reply on top and quote the entire message
chain below (which I'm sure even you don't think has it's place).

> If you hate "broken quoting" so much why don't you write a Perl script
> to "fix" it to the way you like and put all your mail through it?

It's not that much of a problem, since most people I correspond with quote
in a non-broken way.

-- 
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: Netiquette was Re: [Perl Jobs] CGI / MySQL developer (onsite), UK, London]

2001-10-18 Thread Niklas Nordebo

On Thu, Oct 18, 2001 at 09:33:02AM +, Steve Mynott wrote:
> 
> FLAME ON

paraphrased: "You're not going to get everyone to abide by those rules so
I'm going to jeopardy quote now just to irritate you"

I dunno, it has worked on some mailing lists I'm on.

Of course, we do kick people out if they either can't learn to quote sanely
after a reasonable time, or if they deliberately quote improperly because
they think people who object are just stupid and old-fashioned and don't
understand that they're above all that since they're Nathans and use
fucking Microsoft Outlook and not some kind of stoneage text mail client
for hippy programmers.

People do mistakes sometimes, especially if they're used to jeopardy
quoting or whatever. The fact that people *will* do something doesn't mean
that something isn't wrong/bad/whatever, as anyone with even a vague grasp
of logic will understand.

-- 
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: The worst film of all time (The best film of all time?)

2001-09-17 Thread Niklas Nordebo

On Mon, Sep 17, 2001 at 05:52:17PM +0100, James Powell wrote:
> How about the worst
> 
> Godzilla (recent Hollywood version, biggest cinema arse-acher ever)

Nah, it gets off the worst list on a technicality: Has Jean Reno in it.

-- 
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: irc people

2001-09-16 Thread Niklas Nordebo

On Sun, Sep 16, 2001 at 04:52:50PM +0200, Niklas Nordebo wrote:
>nino
>   
>    Niklas Nordebo
>12 foot IKEA lizard
>   

Er. That wasn't me. Somebody faked a mail from my address!

Right.

-- 
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: irc people

2001-09-16 Thread Niklas Nordebo

On Sun, Sep 16, 2001 at 12:32:26PM +0100, Greg McCarroll wrote:
>   http://217.34.97.146/~gem/perl/irc_people.html


 nino

     Niklas Nordebo
 12 foot IKEA lizard


-- 
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: TT & new website

2001-07-02 Thread Niklas Nordebo

On Mon, Jul 02, 2001 at 10:58:07AM +0100, Peter Haworth wrote:
> What, you mean you don't pronounce XML as "ximmle"? :-) A la tickle, piddle,
> vermul, sequel (blech, surely this should be more like "sickle" to be
> consistent).

I pronounce SQL as "squirrel". But I am a very sick man.

It makes it debug stuff like 'die $sql;' a lot more fun.

-- 
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: TT & new website (buffy)

2001-06-28 Thread Niklas Nordebo

On Thu, Jun 28, 2001 at 08:15:32PM +0100, Greg McCarroll wrote:
> So best ever villain on BtVS?

Not really my favourite, but I'll add principal Snyder to the list. He's
definitely a villain even though he's less monstrous than most of them.

Ted was pretty scary too.

-- 
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: Where?

2001-06-27 Thread Niklas Nordebo

On Wed, Jun 27, 2001 at 04:58:12PM +0100, Lee Goddard wrote:
> > Home(UK): NW1 9EA
> > Home(SE): 118 64
> 
> What is the SE, please?

SE is the ISO country code for Sweden. It might work as S-11864 in
MapBlats. That was such a nice typo I'll leave it there.

-- 
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: Where?

2001-06-27 Thread Niklas Nordebo

On Wed, Jun 27, 2001 at 03:50:34PM +0100, Lee Goddard wrote:
> Bad news is that no-one outside the UK other than Philip +1 gave a
> postcode, so the whole thing is seeming a bit of a waste.

Ok then, here you go:

Home(UK): NW1 9EA
Home(SE): 118 64
Work: W1T 6ES

Happier now?

-- 
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: realaudio, streaming, recording, linux (whoops i went keywords instead of subject)

2001-06-27 Thread Niklas Nordebo

On Wed, Jun 27, 2001 at 03:07:09PM +0100, Robin Houston wrote:
> OTOH you *could* write a small device driver which behaves like
> a proper sound driver, but saves the data to a file. I bet someone
> already has.

http://freshmeat.net/projects/vsound/

Quote: "One possible use for this application is as part of a RealAudio to
wav file converter."

-- 
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: realaudio, streaming, recording, linux (whoops i went keywords instead of subject)

2001-06-27 Thread Niklas Nordebo

On Wed, Jun 27, 2001 at 01:56:31PM +0100, Greg McCarroll wrote:
> excuse the typo , i mean't to say recorder
> 
> say for example, i wanted to record some shows off Radio 4
> that are streamed by realaudio. maybe set up a little cronjob,
> so that i had some nice pretty MP3s to listen to whenever i
> had a chance.

Couldn't you just link /dev/dsp to a file?

Or mkdev /dev/realdsp, and set up a named pipe as /dev/dsp that both saves
the sound and sends it to /dev/realdsp.

I might be talking out of my arse here since I'm not that knowledgeable
about this kind of stuff, but I think it should be doable.

-- 
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: forwarded from (void), very nice screensaver

2001-06-24 Thread Niklas Nordebo

On Sun, Jun 24, 2001 at 12:00:21PM +0100, Jonathan Stowe wrote:
> [jns@orpheus jns]$ /usr/X11R6/lib/xscreensaver/sonar -ping localhost
> sonar: this program must be setuid to root for `ping mode' to work.
>Running in `simulation mode' instead.
> 
> Bummer.  There is no way I am going to make a screensaver setuid.

Millions of lusers can't be wrong: $eyecandy>$security

-- 
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: Notification of Internet Violations

2001-06-21 Thread Niklas Nordebo

On Thu, Jun 21, 2001 at 06:20:16PM +0200, Philip Newton wrote:
> Net Authority Investigations wrote:
> > Dear The London Perl Mongers,
> > 
> > It has recently been brought to our attention that you are, 
> > or have been, in violation of the Net Authority Acceptable 
> > Internet Usage Guidelines. It has been reported that you 
> > distribute and/or view offensive materials over the Internet.
> 
> What's that all about, then?


   Report A Known Offender
   Please fill out and submit the following form:
   <http://www.netauthority.org/offenders/known.html>

And Lo! they shall be added to the database and sent a form letter, no
review needed.

-- 
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: driving to amsterdam!

2001-06-20 Thread Niklas Nordebo

On Wed, Jun 20, 2001 at 12:31:48PM +0100, Leon Brocard wrote:
> Simon Wistow and I are thinking of driving to Amsterdam for
> yapc::europe and then hal2001 the week after. People are welcome to
> join us (preferably if they have a large marquee and a truck to bring
> it along on ;-)

I might go to HAL2001. If I'm going, I'm not sure whether I'm going to
Stockholm inbetween Y::E and HAL or if I'm staying in .nl...

-- 
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"