Re: [racket] sqlite: how to open a database via the web ?

2010-10-15 Thread Noel Welsh
On Fri, Oct 15, 2010 at 11:03 PM, scouic wrote: > Noel, you say that sqlite only works on local, so what should i do to manage > with DrRacket a database imported via the internet (example.com/database.db > ?) You have to download it to your PC. SQLite does not have a client/server architecture.

Re: [racket] sqlite: how to open a database via the web ?

2010-10-15 Thread scouic
I've understood the local path, but i thought i could put it on the web. Noel, you say that sqlite only works on local, so what should i do to manage with DrRacket a database imported via the internet (example.com/database.db?) thanks, -mw _ For l

Re: [racket] sqlite: how to open a database via the web ?

2010-10-15 Thread Jordan Schatz
You may be confusing web (URL) paths with file system paths. If you move the SQLite database file to a different location on the file system you will need to change the path, but otherwise it stays the same. You might also want to put the DB file outside of the webroot, so that it couldn't be dow

Re: [racket] sqlite: how to open a database via the web ?

2010-10-15 Thread Noel Welsh
SQLite only works with a database on the local filesystem. I.e. the database must be on the same hard disk as the software running the web server. The path remains "database.db" N. On Fri, Oct 15, 2010 at 10:27 PM, scouic wrote: > Hi, > I'm locked on a problem in creating my interactive blog. ..

Re: [racket] sqlite: how to open a database via the web ?

2010-10-15 Thread Jay McCarthy
I don't think that is a feature of SQLite in general. Jay On Fri, Oct 15, 2010 at 3:27 PM, scouic wrote: > Hi, > I'm locked on a problem in creating my interactive blog. > So far, I was managing the localhost without any problems. My function that > opens the blog involves opening a database "da

[racket] sqlite: how to open a database via the web ?

2010-10-15 Thread scouic
Hi, I'm locked on a problem in creating my interactive blog. So far, I was managing the localhost without any problems. My function that opens the blog involves opening a database "database.db" which contains the blog posts (cf Continue racket doc) : (define (start request) (render-blog-page (ini

Re: [racket] Using lex and yacc

2010-10-15 Thread Eduardo Bellani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've just completed a small example for a logo like language using the parser tools. Take a look at files mech.rkt and test-mech.rkt here: http://github.com/ebellani/robo If you have any doubts just ask. On 10/12/2010 03:12 PM, Mark Carter wrote: > A

Re: [racket] a small programming exercise

2010-10-15 Thread namekuseijin
On Fri, Oct 15, 2010 at 10:05 AM, Phil Bewig wrote: > Not quite. > Random numbers are uniformly distributed, so the first digits of a set of > random numbers should all appear equally. > Benford's Law most often applies to sets of naturally-occurring numbers that > are scale-invariant.  Consider t

Re: [racket] a small programming exercise

2010-10-15 Thread Jos Koot
_ From: Phil Bewig [mailto:pbe...@gmail.com] Sent: 15 October 2010 15:06 To: Jos Koot Cc: Chris Stephenson; users@racket-lang.org Subject: Re: [racket] a small programming exercise Not quite. Random numbers are uniformly distributed, so the first digits of a set of random numbers

Re: [racket] a small programming exercise

2010-10-15 Thread Phil Bewig
Not quite. Random numbers are uniformly distributed, so the first digits of a set of random numbers should all appear equally. Benford's Law most often applies to sets of naturally-occurring numbers that are scale-invariant. Consider the lengths of rivers, as Benford did. It doesn't matter whet

Re: [racket] About security for an input password

2010-10-15 Thread scouic
Yeah you're right, big thanks _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] About security for an input password

2010-10-15 Thread Neil Van Dyke
No, you cannot escape the scouic wrote at 10/15/2010 07:36 AM: As you know in other languages, it exists failures with security of passwords, for example type 1OR1 with escape ' " strings, etc. [...] In my code, i define an admin password ( a string ), for example with (define admin-pass "foo"

[racket] About security for an input password

2010-10-15 Thread scouic
Hi, As you know in other languages, it exists failures with security of passwords, for example type 1OR1 with escape ' " strings, etc. I am trying to make an interactive blog, and all users can post comments at each posts, but only guys who know the password can create, update, delete posts, etc.

Re: [racket] a small programming exercise

2010-10-15 Thread Jos Koot
> -Original Message- > From: users-boun...@racket-lang.org > [mailto:users-boun...@racket-lang.org] On Behalf Of Chris Stephenson > Sent: 15 October 2010 11:13 > To: users@racket-lang.org > Subject: Re: [racket] a small programming exercise > snip > > Think about the decimal numbers i

Re: [racket] [BULK] Fundamentals

2010-10-15 Thread Richard Cleis
I like these arguments, but those who ask the unanswerable questions about compiling, interpreting, and scripting wouldn't get the details. From your answer and JRMs, I might try to stick to: "Racket is JIT-compiled too", and it even runs lightweight languages like R5RS Scheme. The point is to

Re: [racket] a small programming exercise

2010-10-15 Thread Jos Koot
Stupid me, for I did already read about Benford's law. Thanks. Jos > -Original Message- > From: users-boun...@racket-lang.org > [mailto:users-boun...@racket-lang.org] On Behalf Of Chris Stephenson > Sent: 15 October 2010 11:13 > To: users@racket-lang.org > Subject: Re: [racket] a small p

Re: [racket] a small programming exercise

2010-10-15 Thread Chris Stephenson
On 15/10/10 11:33, Jos Koot wrote: > When taking a long list of pseudo random positive integers most of which are > far greater than the base, I expect about the same frequency for each first > digit from 1 to base-1. This seems to hold if the base is a power of 10, but > for other bases, e.g. base

Re: [racket] a small programming exercise

2010-10-15 Thread Jos Koot
When taking a long list of pseudo random positive integers most of which are far greater than the base, I expect about the same frequency for each first digit from 1 to base-1. This seems to hold if the base is a power of 10, but for other bases, e.g. base 24, I get rather unexpected results. See p