Here is an old script that reads stock prices, but it still runs. -- Matthias
#lang racket
(require net/url net/uri-codec)
#;
(require (lib "url.ss" "net")
(lib "uri-codec.ss" "net")
(lib "list.ss")
(lib "contract.ss"))
(current-alist-separator-mode 'amp)
(define-
In answer to my question, the easy way is to patch
racket-5.3.4/collects/mred/private/check.rkt and
racket-5.3.4/collects/mred/private/mrcontainer.rkt
Anybody in need of this, patch is attached.
Nik
> My application again :-)
>
>I need to display some hundred plots in a vertical-panel%. Each g
I wrote a macro once to `flatten' this kind of idiom, because I was
writing code where I was doing a *lot* of this. It lets you mix
let-style bindings with tests that throw an error if they fail.
Warning: there is almost certainly a better way to write it (it is among
the first `real' macros I wr
Try the html-parsing library from PLaneT.
#lang racket
(require net/url (planet neil/html-parsing:2:0)
(planet jim/sxml-match:1:1/sxml-match))
(html->xexp
(get-pure-port
(string->url "http://www.tijd.be/beurzen/Societe_Generale.360017048";)))
Then take a look at sxml-match when you n
Hi Racket users,
I'm trying to extract some information from a webpage.
First attempt is to read the complete page
Later i will try to filter the StockPrice and Volume at a certain time
The goal is to calculate what direction the StocPrice is moving in
multiplied by the number of Stocks that chang
Hi,
I remember that someone, some time ago (how precise!), posted on this list a
link to a couple of slides that nicely and concisely illustrate the advantages
of pure functions vs. impure ones when doing testing.
I wasn't able to retrieve the post from Google or my inbox. If someone
remember
Welll that one might be cheating :)
On 06/12/2013 05:25 AM, Tim Brown wrote:
Task: Load and Use a Package from PLaneT
:-)
On 10/06/13 23:08, Sean Kanaley wrote:
What would be the best task to show off Racket's advantages intrinsic to
the language and less to library support? It would hav
On 05/30/2013 08:21 PM, Tom Schouten wrote:
On 05/30/2013 05:30 PM, John Clements wrote:
On May 30, 2013, at 1:21 PM, Tom Schouten wrote:
Hi List,
Here's a tiny experimental tool I've been working on the last couple
of months:
http://zwizwa.be/rai/rai.html
It's mostly aimed at the music DS
There is the ppa with latest release -
https://launchpad.net/~plt/+archive/racket
To install enter the following commands in command line:
sudo apt-add-repository ppa:plt/racket
sudo apt-get update
sudo apt-get install racket
i am new to linux... i'm using ubuntu 12.04 LTS in my
You can try installing it via the Ubuntu package manager (may be called
the software center now, I'm not sure).
If you want to install it using the installers on the Racket web page
(if you want the latest version, for example), you need to know if your
Ubuntu is 32 or 64 bits.
If you have a 32 b
i am new to linux... i'm using ubuntu 12.04 LTS in my laptop... pls tell me
which platform sholud i choose for downloading DrRacket...
--
-shyamdam©
Shyam Sundar.S
shyam...@gmail.com
Racket Users list:
http://lists.racket-lang.org/users
My application again :-)
I need to display some hundred plots in a vertical-panel%. Each graph is ~ 150
pixel in height (and should not be smaller than 100 pixel). Now there is a
size constraint of 1 pixel per area-container<%>, so that I cannot
display 100 graphs at a time.
Is there an ea
Thank you, I filed a bug report.
Prerendering to a bitmap is what I do for now.
Nik
Am Mittwoch, 12. Juni 2013 schrieb Neil Toronto:
> Yes, that's bad.
>
> I don't have a fix (ain't my bailiwick), but a possible workaround.
> Drawing a bitmap should be much less expensive than drawing a plot,
Thanks for the explanation Robby. It's actually not bad, just a bit more
verbose, but it can then be tailored easily:
(define-syntax-rule (let/ec/check check body ...)
(let/ec return
(define (check v)
(unless v (return #f)))
body ...
))
(define/private (get-x-spot char-width)
It would have looked like this. "ec" means escaping continuation: it is
much weaker than a real continuation, something very much like 'return' or
'break' in other languages. Except that in Racket you have a little bit
more fine-grained control over where you end up escaping out of (it isn't
tied t
Task: Load and Use a Package from PLaneT
:-)
On 10/06/13 23:08, Sean Kanaley wrote:
What would be the best task to show off Racket's advantages intrinsic to
the language and less to library support? It would have to somehow abuse
hygienic macros I suppose--some kind of task like embedding a DS
According to: http://www.timb.net/popular-languages.html:
Racket has now taken the second slot in the most popular languages on
Rosetta Code (http://rosettacode.org).
Well done contributors.
Yay!
Tim
--
Tim Brown | City Computing Limited|
T: +44 20 8770 2110| City
I don't use continuations sufficiently to tell whether it would have been
better or not.
Anyway, I wasn't complaining at all about what you wrote or should have
written -since in general I really only care about what I write myself- but
about what I should have written if following the Style this w
Ah, very good, that's much better. Mystery solved.
(though I do kind of like the `and-let' with `#:let' keywords, since it
avoids the paren-verbosity of `let'.)
Thanks Клочков and Matthias,
Laurent
On Tue, Jun 11, 2013 at 8:44 PM, Matthias Felleisen wrote:
>
> Nice, I wish Oleg had also defined
19 matches
Mail list logo