POV-Ray : Newsgroups : povray.off-topic : 10 things to use a Min Heap for Server Time
8 Sep 2024 05:19:10 EDT (-0400)
  10 things to use a Min Heap for (Message 91 to 100 of 108)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 8 Messages >>>
From: Invisible
Subject: Re: 10 things to use a Min Heap for
Date: 24 Jun 2008 08:18:05
Message: <4860e5fd$1@news.povray.org>
scott wrote:
> Dude, you so should be doing something else than fixing computers for a 
> job.

...and during today's lunch break, a wrote a program that connects to 
the Internet, downloads an HTML page via HTTP, parses the large table in 
the middle, and outputs the resulting data as a CSV file.

In other words, with a single command, it gives me a CSV file containing 
all of PassMark's CPU ratings data.

(NB. I am not aware of any HTTP libraries for Haskell, so I'm handling 
HTTP manually. Similarly, I am not using any XML library, just plain 
string matching.)

Apparently, a Mac Mini is a few percent faster than my current PC.

[Difference between a normal person and a Geek:

- A normal person goes to a website, looks up the speeds, and has their 
answer.

- A Geek goes to a website, finds the information, writes a program to 
download the page and parse the dense presentational markup, and produce 
a searchable database. And then they have their answer.

Hmm... I'm really inefficient!]

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: scott
Subject: Re: 10 things to use a Min Heap for
Date: 24 Jun 2008 08:59:11
Message: <4860ef9f@news.povray.org>
> (NB. I am not aware of any HTTP libraries for Haskell, so I'm handling 
> HTTP manually. Similarly, I am not using any XML library, just plain 
> string matching.)

You could have just copy and pasted the table into Excel, then saved as csv 
if you really needed it.


Post a reply to this message

From: Phil Cook
Subject: Re: 10 things to use a Min Heap for
Date: 24 Jun 2008 09:18:25
Message: <op.uc88j1tac3xi7v@news.povray.org>
And lo on Tue, 24 Jun 2008 12:33:29 +0100, Bill Pragnell  
<bil### [at] hotmailcom> did spake, saying:

> Invisible wrote:
>> Gail Shaw wrote:
>>
>>> Isn't it also the place with 80% or so of the IT work in England?
>>  The qualification "IT" is superfluous. ;-)
>>  [But then, "London" now covers about 25% of all the land space in the  
>> UK, so...]
>
> Hmm, taking Doctor John's figures of 30x50km and assuming London to be  
> rectangular, let's call it an even 1500 km2. An overestimation, but it's  
> the right order of magnitude. That's about 1.2% of England alone  
> according to Wikipedia, and barely 0.6% of the UK as a whole...

Conceptually it's about 25% of all land space though :-P

-- 
Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

From: Invisible
Subject: Re: 10 things to use a Min Heap for
Date: 24 Jun 2008 09:45:38
Message: <4860fa82$1@news.povray.org>
>> [But then, "London" now covers about 25% of all the land space in the 
>> UK, so...]
> 
> Hmm, taking Doctor John's figures of 30x50km and assuming London to be 
> rectangular, let's call it an even 1500 km2. An overestimation, but it's 
> the right order of magnitude. That's about 1.2% of England alone 
> according to Wikipedia, and barely 0.6% of the UK as a whole...
> 
> That's interesting, I've never had cause to work it out before and it's 
> actually bigger than I imagined.

Pretty big, eh?

I'm told in ancient times, "London" was a small town in the edges of the 
Thames river. Since then it's grown, swallowing other towns around it, 
until now it makes up a significant fraction of the whole country.

> I couldn't comment on the proportion of the IT sector that resides 
> there, however. :-)

Like I said, I think 80% of *all* employment is in London. Certainly if 
you ask Monster for jobs, almost all of them are from London. And it 
doesn't seem to matter *what* kind of jobs you ask for!

[Then again, when I changed Monster to search by postcode rather than 
geographic area, it started giving me jobs only from Canada, so maybe 
Monster is just defective!]

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Stephen
Subject: Re: 10 things to use a Min Heap for
Date: 24 Jun 2008 16:29:31
Message: <v8m264le4ad9s4vj2nmmr4qaimmll00chk@4ax.com>
On Tue, 24 Jun 2008 12:33:29 +0100, Bill Pragnell
<bil### [at] hotmailcom> wrote:

>
>Hmm, taking Doctor John's figures of 30x50km and assuming London to be 
>rectangular, let's call it an even 1500 km2. An overestimation, but it's 
>the right order of magnitude. That's about 1.2% of England alone 
>according to Wikipedia, and barely 0.6% of the UK as a whole...

Have you ever heard of the 7.84 company?
-- 

Regards
     Stephen


Post a reply to this message

From: Bill Pragnell
Subject: Re: 10 things to use a Min Heap for
Date: 25 Jun 2008 09:29:18
Message: <4862482e$1@news.povray.org>
Stephen wrote:
> On Tue, 24 Jun 2008 12:33:29 +0100, Bill Pragnell
> <bil### [at] hotmailcom> wrote:
> 
>> Hmm, taking Doctor John's figures of 30x50km and assuming London to be 
>> rectangular, let's call it an even 1500 km2. An overestimation, but it's 
>> the right order of magnitude. That's about 1.2% of England alone 
>> according to Wikipedia, and barely 0.6% of the UK as a whole...
> 
> Have you ever heard of the 7.84 company?

I hadn't, until I Wikipediaed it. But I'm still none the wiser... you'll 
have to explain the relevance (words of 1 syllable, please!)


Post a reply to this message

From: Stephen
Subject: Re: 10 things to use a Min Heap for
Date: 25 Jun 2008 10:48:25
Message: <6lm4649t91kbg5h8tf1pmc8012l8fue7i6@4ax.com>
On Wed, 25 Jun 2008 14:32:09 +0100, Bill Pragnell
<bil### [at] hotmailcom> wrote:

>Stephen wrote:
>> On Tue, 24 Jun 2008 12:33:29 +0100, Bill Pragnell
>> <bil### [at] hotmailcom> wrote:
>> 
>>> Hmm, taking Doctor John's figures of 30x50km and assuming London to be 
>>> rectangular, let's call it an even 1500 km2. An overestimation, but it's 
>>> the right order of magnitude. That's about 1.2% of England alone 
>>> according to Wikipedia, and barely 0.6% of the UK as a whole...
>> 
>> Have you ever heard of the 7.84 company?
>
>I hadn't, until I Wikipediaed it. But I'm still none the wiser... you'll 
>have to explain the relevance (words of 1 syllable, please!)

It is a reference to 84% of the land in Scotland being owned by 7% of
the population.

As for relevance it flew into my head like a cosmic ray leaving a
trail of light. For the backfill on the story we need to meet up in
London for the next LonPovCon ;)

-- 

Regards
     Stephen


Post a reply to this message

From: Bill Pragnell
Subject: Re: 10 things to use a Min Heap for
Date: 25 Jun 2008 10:53:30
Message: <48625bea@news.povray.org>
Stephen wrote:
> As for relevance it flew into my head like a cosmic ray leaving a
> trail of light. For the backfill on the story we need to meet up in
> London for the next LonPovCon ;)

Aha, the elusive Inspiration Particle, otherwise doomed to be wasted on 
the minds of poorly-equipped recipients.

LonPovCon, aye :)


Post a reply to this message

From: Stephen
Subject: Re: 10 things to use a Min Heap for
Date: 25 Jun 2008 12:24:36
Message: <o8s4649qu0r3n8nsvnm7tepcqq0svpedvu@4ax.com>
On Wed, 25 Jun 2008 15:56:19 +0100, Bill Pragnell
<bil### [at] hotmailcom> wrote:

>Stephen wrote:
>> As for relevance it flew into my head like a cosmic ray leaving a
>> trail of light. For the backfill on the story we need to meet up in
>> London for the next LonPovCon ;)
>
>Aha, the elusive Inspiration Particle, otherwise doomed to be wasted on 
>the minds of poorly-equipped recipients.
>

A drappie of the Cratur helps

>LonPovCon, aye :)

It is an excuse :)
-- 

Regards
     Stephen


Post a reply to this message

From: Gail Shaw
Subject: Re: 10 things to use a Min Heap for
Date: 25 Jun 2008 15:17:07
Message: <486299b3@news.povray.org>
"Stephen" <mcavoysAT@aolDOTcom> wrote in message
news:6lm4649t91kbg5h8tf1pmc8012l8fue7i6@4ax.com...

> London for the next LonPovCon ;)
>

I read that as LonPubCon, which probably isn't far from the truth.


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 8 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.