00:11 waltermai: I'm getting a "begin (possibly implicit): no expression after a sequence of internal definitions" error and can't figure why. 00:11 waltermai waahs. 00:12 waltermai: the definition definitely has an expression at the end after an internal definition. 00:13 (quit) adamvh: Quit: adamvh 00:16 waltermai: yay! put the internal definition outside the original definition, and voila! it worked! 00:29 (nick) nicktick -> nicktick_ 00:30 (nick) nicktick_ -> nicktick_away 00:30 (quit) nicktick_away: Quit: Leaving 00:32 (join) adamvh 00:34 (quit) adamvh: Client Quit 00:39 (join) nicktick 00:50 (join) jonrafkind 01:25 (quit) nicktick: Ping timeout: 260 seconds 01:30 (join) nicktick 01:56 (quit) jonrafkind: Ping timeout: 260 seconds 01:57 (part) nicktick: "Reality is that which, when you stop believing in it, doesn't go away" 02:00 (join) |nicktick| 02:00 waltermai: in (cond (= (- (tonic clef tonic-class) (- 12 (car interval-set))) (car clef)) ... why is my program simply returning (car clef) instead of evaluating (= ...) as true or false? 02:00 (part) |nicktick| 02:01 (join) |nicktick| 02:01 waltermai: or the value of (car clef), rather 02:01 (nick) |nicktick| -> nicktick 02:17 waltermai: I'm figuring it out. DrRacket's debug features are phenomenal. 02:17 waltermai: ...if only I could build it on my new lemote! 02:49 (quit) nicktick: Quit: When two people dream the same dream, it ceases to be an illusion. KVIrc 3.4.2 Shiny http://www.kvirc.net 02:55 (join) nicktick 03:28 (quit) mulander: Ping timeout: 276 seconds 03:59 (join) masm 04:31 (quit) waltermai: Ping timeout: 265 seconds 04:53 (quit) nicktick: Read error: Connection reset by peer 04:53 (join) nicktick 06:23 (join) madhadron 06:45 (quit) nicktick: Ping timeout: 264 seconds 07:52 (quit) madhadron: Quit: Leaving 08:09 (join) adamvh 08:12 (join) jeapostrophe 08:23 (quit) adamvh: Quit: adamvh 09:11 (join) nicktick 09:34 (join) slilo 09:37 (quit) jeapostrophe: Quit: jeapostrophe 10:13 (nick) cky -> cky[nsfw] 10:17 (join) jeapostrophe 10:18 (quit) jeapostrophe: Client Quit 11:03 (join) _ 11:03 (nick) _ -> Guest64946 11:04 (quit) Guest64946: Client Quit 11:07 (quit) masm: Ping timeout: 265 seconds 11:18 (join) anRch 11:37 (join) jeapostrophe 11:56 tewk: jeapostrophe: what was the lightweight object system / generic functions thing that eli wrote. I want to do some OOP but scheme/class seems a little heavy weight for what I'm doing 11:56 jeapostrophe: unstable/generics 11:56 tewk: jeapostrophe: you had a work queue impl somewhere too right. 11:57 jeapostrophe: http://planet.plt-scheme.org/display.ss?package=job-queue.plt&owner=jaymccarthy 12:15 (quit) jtolds: Remote host closed the connection 12:19 (join) jtolds 12:21 (quit) anRch: Ping timeout: 265 seconds 12:26 (join) anRch 12:30 (join) jonrafkind 12:36 eli: jonrafkind: http://www.youtube.com/watch?v=04U7Z7KuWVU 12:38 (join) sstrickl 12:40 (join) waltermai 12:42 jonrafkind: the music cuts out at 4:30 or so 12:42 jonrafkind: is there something else interesting about this? 12:44 (quit) anRch: Quit: anRch 12:46 eli: jonrafkind: Start playing at 3:00, and listen carefuly to the words at 3:07-3:09 12:47 jonrafkind: ok he says something vaguely like "racket" and "scheme" 12:48 eli: In two consecutive sentences. 12:48 (join) masm 12:48 jonrafkind: i don't speak jive 12:48 eli: Me neither. Google does. 12:51 (nick) cky[nsfw] -> cky 13:04 (quit) clklein_: Quit: leaving 13:04 (join) clklein 13:46 (join) anRch 14:03 (quit) jeapostrophe: Quit: jeapostrophe 14:09 (join) jeapostrophe 14:54 (quit) anRch: Quit: anRch 14:58 askhader: If I want to issue a cookie to a client do I make use of cookie->header / 14:59 jeapostrophe: yup 14:59 jeapostrophe: i like to use redirect-to and the #:headers keyword arg 14:59 jeapostrophe: but you could put it in a normal response/full 15:00 askhader: Thanks 15:24 askhader: jeapostrophe: Can I use a page-rendering function instead of a URI in redirect-to? I tried specifying a URI to be picked up by my main dispatcher, but it doesn't seem to work that way. 15:25 jeapostrophe: you may not specify a page rendering function 15:25 jeapostrophe: here are a few tricks though 15:26 jeapostrophe: if you are using dispatch-rules and your rendering function has a url, then you can use second value from dispatch-rules to get the url 15:26 askhader: Hmm interesting 15:26 askhader: I am using dispatch-rules 15:27 jeapostrophe: so (redirect-to (top-url my-fun arg1 arg2) #:headers ...) 15:27 askhader: When you say it has a url, you mean an entry dispatch-rules, yes? 15:27 jeapostrophe: ya 15:27 askhader: Okay cool, I will try this. 15:27 jeapostrophe: another thing is to use this function: 15:27 askhader: mhm? 15:28 jeapostrophe: (define (redirect-to-fun fun #:headers [hs empty]) (fun (send/suspend (lambda (k-url) (redirect-to k-url #:headers hs))))) 15:28 jeapostrophe: that will call the fun after doing a redirect that sends the headers 15:28 askhader: interesttttting 15:28 jeapostrophe: that's basically redirect/get (a core function) with a #:headers argument 15:28 askhader: Thank you sir 15:29 askhader: I see. 15:29 jeapostrophe: if you submit a bug report requesting that I add #:headers to r/g then i will remember to do it next time i am at my dev machine 15:31 (quit) waltermai: Quit: Leaving 15:37 askhader: jeapostrophe: In your example of (redirec-to (top-url my fun arg1 arg2)<---- isn't that meant to be a URI? 15:38 jeapostrophe: top-url (if it is the 2nd result from dispatch-rules) returns a url 15:40 askhader: Is top-url a procedure? 15:41 jeapostrophe: look at this page: http://docs.racket-lang.org/web-server/dispatch.html 15:41 jeapostrophe: 'blog-url' is the value, i'm calling 'top-url' 15:41 jeapostrophe: (because that's what i often name it, such as in the m8b app i linked before) 15:42 jeapostrophe: i must go now though, so if you have more qs you'll have to wait about 1.5 hrs 15:42 jeapostrophe: ggpo 15:42 askhader: Thank you for your help =] 15:42 askhader: Take care. 15:42 (quit) jeapostrophe: Quit: jeapostrophe 16:03 jonrafkind: shoudl 'raco exe' ever be used to give someone else a program? 16:03 jonrafkind: seems like 'raco distribute' is the proper choice 16:05 jonrafkind: oh you have to pass the exe's to distribute 16:48 chandler: The Arch Linux packagers updated the racket package to fix the error when starting mzscheme, in case anyone's interested. 17:09 eli: chandler: Which error? 17:10 jonrafkind: they ran strip on the racket executables 17:17 (join) jeapostrophe 17:24 chandler: eli: Starting `mzscheme' resulted in "read failed to read all 23 bytes from file /usr/bin/mzscheme" 17:28 askhader: jeapostrophe: Hello there. I've used the (blog-url) you mentioned but there is a bit of a snag. if I do (display (blog-url myfun)) I get the correct URI, and the redirect-to is currently taking me to /that/ uri but my dispatch-rules doesn't seem to be picking up on it. 17:30 jay-mccarthy: what url is your dispatcher getting? 17:30 lisppaste: askhader pasted "dispatch-rules" at http://paste.lisp.org/display/111864 17:31 jay-mccarthy: where are you using cydom-dispatch? 17:31 askhader: in redirect-to 17:32 askhader: Oh sorry 17:32 askhader: Essentially the same file. The second have is in an 'include' 17:32 jay-mccarthy: can you paste it? 17:33 askhader: Sure. 17:34 lisppaste: askhader pasted "redirect error" at http://paste.lisp.org/display/111865 17:35 jay-mccarthy: 1. consider not using include 17:36 jay-mccarthy: 2. put a (printf "~S\n" (url->string (request-uri request))) in start and (require net/url) somewhere 17:36 jay-mccarthy: it may be as simple as extending your regexp 17:37 askhader: Gah 17:37 askhader: I think that's it 17:37 askhader: I forget to do that 17:38 askhader: Hurrah 17:39 askhader: Thanks 17:53 (quit) jeapostrophe: Quit: jeapostrophe 18:01 (join) adamvh 18:13 (quit) sstrickl: Quit: sstrickl 18:24 askhader: So I have the redirect working with the header line in place, but for some reason the request is missing the cookies. 18:24 jay-mccarthy: which request? 18:32 askhader: Sorry didn't see your response. 18:34 askhader: the redirect to render-editor 18:35 askhader: does the dispatcher not retain the headers of the request? 18:36 jay-mccarthy: which request is missing headers? 18:37 askhader: http://paste.lisp.org/+2EBG 18:38 jay-mccarthy: what is the value of cl-cookie? 18:38 askhader: empty 18:38 askhader: a.k.a () 18:39 jay-mccarthy: does your browser show the presence of the cookie? 18:39 askhader: How can I check? 18:41 askhader: Hmm, strangely enough in chrome, no error is produced. Instead it simly falls back to render-editor-auth 18:41 jay-mccarthy: in safari, if i go to preferences > security > show cookies 18:44 askhader: No there doesn't appear to be a cookie 18:45 jay-mccarthy: can you capture the network traffic to see if it gets set? maybe your browser will even show you the response when you tried to set the cookie (safari does) 18:45 askhader: Hm. 19:22 (join) jeapostrophe 19:33 (quit) masm: Quit: Leaving. 19:37 (join) adamvh_ 19:38 (quit) jeapostrophe: Quit: jeapostrophe 19:40 (quit) adamvh: Ping timeout: 265 seconds 19:40 (nick) adamvh_ -> adamvh 19:55 (join) jeapostrophe 20:29 (quit) jeapostrophe: Quit: jeapostrophe 20:54 (join) jeapostrophe 20:54 (quit) adamvh: Remote host closed the connection 20:54 (join) adamvh 21:17 (quit) jeapostrophe: Quit: jeapostrophe 22:19 (quit) jonrafkind: Ping timeout: 240 seconds 23:02 (join) jeapostrophe 23:04 (quit) jeapostrophe: Client Quit 23:37 (join) adamvh_ 23:39 (quit) adamvh: Ping timeout: 265 seconds 23:39 (nick) adamvh_ -> adamvh 23:57 (join) jeapostrophe