김태윤 wrote:
hello~
could somebody tell me how to show image without frame?
as like a logo that be shown right after program is started in typical
programs
Create a frame with the 'no-resize-border and 'no-caption style options,
then display the image inside that. See the documentation for frame
hello~
could somebody tell me how to show image without frame?
as like a logo that be shown right after program is started in typical
programs
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Are you sure you need to use CGI? The Racket Web server is much better
supported and documented.
--
http://www.neilvandyke.org/
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
i've totally forgot this one, and it works perfectly !
with just a number, it's very simple ...
(if (empty? (get-bindings/get))
"empty parameters"
(car (extract-bindings "number" (get-bindings/get
big thanks !
-mw
_
For list-related ad
There is some joke and/or observation to be made here. If only I could
rally all my memes. And/or if I couldn't. I can't decide which: Please
accept this entire paragraph as #t.
On Thu, Nov 11, 2010 at 2:18 PM, Sam Tobin-Hochstadt wrote:
> On Thu, Nov 11, 2010 at 2:07 PM, Mark Engelberg
> wrote:
Most Web servers communicate to CGI programs through environment
variables and stdin. I believe net/cgi:
http://docs.racket-lang.org/net/cgi.html
can handle parsing the bindings from stdin, but I've never used it so
I can't give you any help.
Jay
On Thu, Nov 11, 2010 at 5:01 PM, scouic wrote:
I'm looking since two hours a feint to circumvent this problem, but I have
no solution ...
How can I do to get the parameters from one page to another without bindings
& cie ?
thanks for your help,
-mw
2010/11/11 Jay McCarthy
> The Web Server's request parsing and binding handling cannot be use
The Web Server's request parsing and binding handling cannot be used
in CGI apps as far as I know.
Jay
On Thu, Nov 11, 2010 at 3:03 PM, scouic wrote:
> Hi all,
> I've misunderstood the bindings from the webserver.
>
> I have a cgi program wich displays a webpage with an input field named
> numbe
Hi all,
I've misunderstood the bindings from the webserver.
I have a cgi program wich displays a webpage with an input field named
number at 127.0.0.1/cgi-bin/input and wich calls (via a form)
/cgi-bin/extract-input.
For example, after sending, the url could be
127.0.0.1/cgi-bin/extract-input?num
*slaps forehead*
Thank you Eli & Jay. :^)
Horace.
On 11/11/2010 18:36, Jay McCarthy wrote:
In case it is not clear Horace, because it is inexact, there are
numbers after the decimal, representing nanoseconds, etc.
Jay
On Thu, Nov 11, 2010 at 11:32 AM, Eli Barzilay wrote:
30 minutes ago, Ho
On Thu, Nov 11, 2010 at 1:34 AM, Eli Barzilay wrote:
> This is now fixed -- the OSX and Windows installers contain all the
> necessary libraries.
The links
http://pre.plt-scheme.org/installers/table.html
for the Windows builds... are actual downloads failing for anyone besides me?
_
Hi Eli,
thanks a lot for the hint! This looks exactly like the kind of introduction I
was looking for :-)
ciao
Sigrid
Am 11.11.2010 um 19:52 schrieb Eli Barzilay:
> You can also try this http://tmp.barzilay.org/tutorial.txt for a more
> gentel introduction to making up languages -- though it
>From your description you haven't done anything wrong that I can tell. But
there's not enough detail there to help either. Will you post error
feedback, or your code? Or if the code will give away the solution I am
happy to help offline (email me direct).
On Thu, Nov 11, 2010 at 12:48, Ken Hege
On Thu, Nov 11, 2010 at 2:07 PM, Mark Engelberg
wrote:
> Is Typed Racket able to observe that if the arguments to and/or are
> all Booleans, then the result will definitely be a Boolean? If so,
> then and/or's flexible behavior in no way diminishes the value of
> having "true predicates" availab
On Thu, Nov 11, 2010 at 10:57 AM, Jay McCarthy wrote:
> This 'if' introduces a stack frame that is not otherwise needed.
>
> Jay
OK, I see your point now. I was thinking of it as one more test at
the end so I wasn't thinking of it as having a real cost, but I see
how this makes the fold-like imp
On Thu, Nov 11, 2010 at 11:56 AM, Mark Engelberg
wrote:
> On Thu, Nov 11, 2010 at 9:56 AM, Jay McCarthy wrote:
>> (define (andmap f l)
>> (if (empty? l)
>> #t
>> (and (f (first l)) (andmap f (rest l)
>>
>> If and has to return a boolean, then it leaves space on the stack to
>> check
On Thu, Nov 11, 2010 at 9:56 AM, Jay McCarthy wrote:
> (define (andmap f l)
> (if (empty? l)
> #t
> (and (f (first l)) (andmap f (rest l)
>
> If and has to return a boolean, then it leaves space on the stack to
> check if andmap returns a bool or to convert "truth" to #t. Thus this
>
You can also try this http://tmp.barzilay.org/tutorial.txt for a more
gentel introduction to making up languages -- though it doesn't touch
the #lang reader bit.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ M
10 minutes ago, Carl Eastlund wrote:
>
> Is this about conditionals or lookups?
Conditionals.
> You started with (cdr (assq x alist)), and I don't see the
> conditional in that.
You didn't read far enough.
9 minutes ago, Neil Toronto wrote:
> Eli Barzilay wrote:
> >
> > The above is "an exa
I am having trouble changing the Sierpinski function to consume structures,
instead of coordinates. I used the same function design for too-small as in
27.1.1, I edited each sub function used to consume triangles as well. When
testing the new function with a triangle, and comparing it to previou
Neil had an example upthread.
Robby
On Thu, Nov 11, 2010 at 12:36 PM, Carl Eastlund wrote:
> On Thu, Nov 11, 2010 at 1:29 PM, Eli Barzilay wrote:
>> Two minutes ago, Carl Eastlund wrote:
>>> On Thu, Nov 11, 2010 at 1:21 PM, Eli Barzilay wrote:
>>> > About a minute ago, Carl Eastlund wrote:
>>>
Hi Matthias, hi all,
> We are concerned with the production of complex DSLs and haven't made the
> production of easy DSLs -- like the one you see on Linkedin -- easy.
>
Yes, I understand that. It makes me think of my general experience with the
Racket documentation - even with the Guide, wh
On Thu, Nov 11, 2010 at 1:29 PM, Eli Barzilay wrote:
> Two minutes ago, Carl Eastlund wrote:
>> On Thu, Nov 11, 2010 at 1:21 PM, Eli Barzilay wrote:
>> > About a minute ago, Carl Eastlund wrote:
>> >> On Thu, Nov 11, 2010 at 1:14 PM, Eli Barzilay wrote:
>> >> >> I got inspired by the #:when form
Eli Barzilay wrote:
About a minute ago, Carl Eastlund wrote:
On Thu, Nov 11, 2010 at 1:14 PM, Eli Barzilay wrote:
So, you advocate eliminating `member' etc for predicates (why I
started with saying that this is much stickier than just adding a
`member?'). So we started with
(cdr (assq x ali
In case it is not clear Horace, because it is inexact, there are
numbers after the decimal, representing nanoseconds, etc.
Jay
On Thu, Nov 11, 2010 at 11:32 AM, Eli Barzilay wrote:
> 30 minutes ago, Horace Dynamite wrote:
>> The closest approximation I can find in the documentation is
>> current
30 minutes ago, Horace Dynamite wrote:
> The closest approximation I can find in the documentation is
> current-milliseconds? I require more accuracy in my project,
> specifically, nanosecond accuracy. I do apologise if I've missed
> this information in the documentation, if so can anyone point me
Two minutes ago, Carl Eastlund wrote:
> On Thu, Nov 11, 2010 at 1:21 PM, Eli Barzilay wrote:
> > About a minute ago, Carl Eastlund wrote:
> >> On Thu, Nov 11, 2010 at 1:14 PM, Eli Barzilay wrote:
> >> >> I got inspired by the #:when form in `for' loops that flattens
> >> >> nesting, and wrote a `
On Thu, Nov 11, 2010 at 1:21 PM, Eli Barzilay wrote:
> About a minute ago, Carl Eastlund wrote:
>> On Thu, Nov 11, 2010 at 1:14 PM, Eli Barzilay wrote:
>> >> I got inspired by the #:when form in `for' loops that flattens
>> >> nesting, and wrote a `cond*' macro that allows this instead:
>> >>
>>
About a minute ago, Carl Eastlund wrote:
> On Thu, Nov 11, 2010 at 1:14 PM, Eli Barzilay wrote:
> >> I got inspired by the #:when form in `for' loops that flattens
> >> nesting, and wrote a `cond*' macro that allows this instead:
> >>
> >> (cond* [... some stuff ...]
> >> #:with (define m
On Thu, Nov 11, 2010 at 1:14 PM, Eli Barzilay wrote:
>> I got inspired by the #:when form in `for' loops that flattens
>> nesting, and wrote a `cond*' macro that allows this instead:
>>
>> (cond* [... some stuff ...]
>> #:with (define m ...)
>> [(... something about m ...) (... so
25 minutes ago, Neil Toronto wrote:
> Eli Barzilay wrote:
> > Four minutes ago, Neil Toronto wrote:
> >> I think we should retire this truthiness business, replace cond's
> >> `=>' with something that lets you easily nest conds (I have a
> >> proposal ready for this, and it is awesome),
> >
> > (a
On Thu, Nov 11, 2010 at 10:56:17AM -0700, Jay McCarthy wrote:
> On Thu, Nov 11, 2010 at 10:31 AM, Neil Toronto wrote:
>
> (define (andmap f l)
> (if (empty? l)
> #t
> (and (f (first l)) (andmap f (rest l)
>
> If and has to return a boolean, then it leaves space on the stack to
> c
The closest approximation I can find in the documentation is
current-milliseconds? I require more accuracy in my project,
specifically, nanosecond accuracy. I do apologise if I've missed this
information in the documentation, if so can anyone point me to the right
place? Or recommend a method t
On Thu, Nov 11, 2010 at 08:07:02AM -0500, Sam Tobin-Hochstadt wrote:
>
> But it
> isn't about types or contracts, it's about what the semantics of
> `member' should be.
Yes, this is exactly what it's about. But sometimes it's not until you
see types and contracts that you realise that something
On Thu, Nov 11, 2010 at 10:31 AM, Neil Toronto wrote:
> Eli Barzilay wrote:
>>
>> Four minutes ago, Neil Toronto wrote:
>>>
>>> I think we should retire this truthiness business, replace cond's
>>> `=>' with something that lets you easily nest conds (I have a
>>> proposal ready for this, and it is
Eli Barzilay wrote:
Four minutes ago, Neil Toronto wrote:
I think we should retire this truthiness business, replace cond's
`=>' with something that lets you easily nest conds (I have a
proposal ready for this, and it is awesome),
(a) how is this related? (b) `=>' is not used to nest `cond's.
Four minutes ago, Neil Toronto wrote:
> Possibly unrelated, but I also had to write my own `member?' when I
> encoded a Bayesian spam filter in the Bayesian DSL I'm making. I
> didn't want a distribution over all Racket values, I wanted one over
> {#t,#f}. In fact, I'm going to have to wrap all th
Possibly unrelated, but I also had to write my own `member?' when I
encoded a Bayesian spam filter in the Bayesian DSL I'm making. I didn't
want a distribution over all Racket values, I wanted one over {#t,#f}.
In fact, I'm going to have to wrap all the truth-valued functions
because of this.
On Nov 11, 2010, at 10:50 AM, Nadeem Abdul Hamid wrote:
> Yes, but this is weird in the opposite way:
>
> Welcome to DrRacket, version 5.0.2 [3m].
> Language: Beginning Student; memory limit: 128 MB.
>> (member? 1 (list 2 3 4 1))
> true
>> (member 1 (list 2 3 4 1))
> true
That's a 'bug'.
>>
Yes, but this is weird in the opposite way:
Welcome to DrRacket, version 5.0.2 [3m].
Language: Beginning Student; memory limit: 128 MB.
> (member? 1 (list 2 3 4 1))
true
> (member 1 (list 2 3 4 1))
true
>
On Thu, Nov 11, 2010 at 10:36 AM, Matthias Felleisen
wrote:
>
> Welcome to DrRacket, versi
> Welcome to DrRacket, version 5.0.99.2--2010-11-11(686ec83/g) [3m].
> Language: Beginning Student.
> > (member? 1 (list 2 3 4 1))
> true
On Nov 11, 2010, at 10:32 AM, Shriram Krishnamurthi wrote:
> In fact, I proposed adding the ? forms of these functions where the new ones
> are strictly b
In fact, I proposed adding the ? forms of these functions where the new ones
are strictly boolean.
These are essential for the SLs since the standard versions are useless due
to the true/false tests in the language.
On Nov 11, 2010 6:44 AM, "Jay McCarthy" wrote:
I agree with Mark. I often write
I agree with Mark. I often write ? versions of functions like member
in my code when I write it the first time to show the "predicate
intent".
Another important case is when you don't want internal values to
"escape" to the client because you forget that member/and/etc return
the thing, not #t.
J
Hi all!
I'm new to programming. I'm trying to learn on my own in my spare time, not a
student in any school or course. Got hold of the HTDP book website when
searching the web for resources, and am progressing through it at my own
(usually slow) pace.
I'm kind of getting stuck on a specific ex
On Thu, Nov 11, 2010 at 12:21 AM, Mark Engelberg
wrote:
>
> I could loosen the types of these Booleans to be Any, but then I'm not
> really reflecting the "predicate intent" of these functions.
This seems to be your primary issue. But I don't see why it's a
problem. In particular, you were happ
Razvan Rotaru wrote at 11/11/2010 03:15 AM:
Has anybody ever tackeled web server formlets with dojo components?
And willing to share the code? I'm looking to use formlets to generate
dojo components instead of the classic HTML input tags.
Side comment: I used Dojo on a large Racket project (no
how (animate func) works?(2htdp/universe)
hello~
today I tried to make the canvas that show rotating image with timer
but I can't draw image object on canvas' dc
and I can't do get-bitmap from image object
but in case of animate, it works very well
how come?
could somebody let me know how to get-b
Hi everyone,
Has anybody ever tackeled web server formlets with dojo components? And willing
to share the code? I'm looking to use formlets to generate dojo components
instead of the classic HTML input tags.
Razvan
_
For list-related ad
48 matches
Mail list logo