To setup a RPC client/server system, I ended up tweaking Matthew's example
from "More: Systems Programming with Racket", now that I understood better
what was needed.
http://docs.racket-lang.org/pdf/more.pdf
Below is the actual code, in case somebody else finds it useful (tested in
Linux env. o
> Looks like some issue at the ssl level.
I've tried to track it down, but with no luck. I'm in over my head.
Doing
curl https://mtgox.com/code/ticker.php
Works. Curl is using openssl, and the same version, so I think its in how
we are using the openssl library. Other then that, I have no idea.
Thanks Matthew.
> Otherwise, to just typeset Racket code, you might want to use
> `slideshow/pict' and `slideshow/code', instead.
Indeed, it works quite nicely. I was surprised not to find a pict->pdf
function, but that was not too hard to write.
> (It would be nice if those were more unified..
That looks like a bug in syntax snips. Programmatically, I get the
results one would expect.
Here's my program (yours plus a few lines):
;;
#lang racket
(define x (datum->syntax #f
> Can you be more specific about what "funkiness" means? That is, give
> us a full program and its output that shows an expected and actual
> source location that differ. Right now there are a few things you
> could be referring to.
I think I was being mislead by what might be behavior from DrR
Calling All Racketeers!
Join as at RacketCon, 23 & 24 July 2011.
http://con.racket-lang.org/
The schedule for RacketCon is now available, and includes
presentations by key members of the Racket team, including Matthew
Flatt on the future of Racket and Matthias Felleisen on the Program By
`scribble --pdf' is just a shorthand for `scribble --latex' followed by
`latexpdf'. Maybe you can get Latex to generate minimal PDF.
Otherwise, to just typeset Racket code, you might want to use
`slideshow/pict' and `slideshow/code', instead.
(It would be nice if those were more unified one d
Hi all,
I'm trying again with this question from last week.
Thanks,
-- Éric
On Jun 23, 2011, at 6:53 PM, Eric Tanter wrote:
> [...] is there a way to get scribble to generate a "minimal pdf", instead of
> a whole page?
>
> For instance, from the following code:
>
> #lang scribble/manual
>
That was just too easy. Let me see if I can come up with a hard question... :-)
On Wed, Jun 29, 2011 at 10:59 AM, Matthew Flatt wrote:
> Ah --- to flatten at the decode level, use `splice':
>
> @(require scribble/decode)
>
> @(define (only-edition v . text)
> (splice
> (if (equal? (edition) v)
Ah --- to flatten at the decode level, use `splice':
@(require scribble/decode)
@(define (only-edition v . text)
(splice
(if (equal? (edition) v)
text
'(
At Wed, 29 Jun 2011 10:54:50 -0400, "Todd O'Bryan" wrote:
> Here's a non-working example:
> -
> #lang scribbl
Here's a non-working example:
-
#lang scribble/base
@(define edition (make-parameter "default"))
@(edition "teacher")
@(define (itemlist* . args)
(apply itemlist (filter item? args)))
@(define (only-edition v text)
(when (equal? (edition) v)
text))
@title{Example}
@section{Thi
__current-print-convert-hook__ might be your friend though I think it would
have to recognize the pattern (make-mset #())
On Jun 29, 2011, at 6:54 AM, Maurizio Giordano wrote:
> Hi Carl, Matthias and Eli,
>
> first of all I want to thank you for your help.
> You are very skilled schem
At Wed, 29 Jun 2011 09:47:16 -0400, "Todd O'Bryan" wrote:
> Any thoughts on the second problem--how to unwrap a (list el1 el2 el3
> ...) so that Scribble interprets it as el1 el2 el3 ... ?
I'm not sure I understand. Can you give me an example of the problem?
__
Actually, that's exactly what I did.
Well, I actually did
(define (itemlist* fst . rst)
(apply itemlist (filter item? (cons fst rst
which I'm now embarrassed about, but at least I was on the right track.
Any thoughts on the second problem--how to unwrap a (list el1 el2 el3
...) so tha
You could use `itemlist*' instead of `itemlist', defining `itemlist*'
like this:
(define (itemlist* . args)
(apply itemlist (filter item? args)))
At Wed, 29 Jun 2011 09:27:52 -0400, "Todd O'Bryan" wrote:
> Hey all,
>
> I'm trying to use Scribble to create multiple forms of the same
> documen
Hey all,
I'm trying to use Scribble to create multiple forms of the same
document--for example, teacher and student editions of the same text.
Both documents share a lot of content, but also have differences.
I created a parameter and function:
(define edition (make-parameter "default"))
(defin
Hi Carl, Matthias and Eli,
first of all I want to thank you for your help.
You are very skilled schemers ... compared to me!
I left lisp in 1995 (my thesis work) an now I restarted
with racket scheme (it's never too late!).
Anyway I followed Carl's 1st solution:
1) put a #reader directive before
17 matches
Mail list logo