00:00 (join) jyc 00:21 shawnps: oh, i'm dumb. can use read-line on the input-port to see what's actually there 00:21 (part) shawnps 00:51 (quit) bitonic_: Ping timeout: 245 seconds 00:52 (join) phax 00:54 (join) jeapostrophe 00:54 (quit) jeapostrophe: Changing host 00:54 (join) jeapostrophe 00:57 (quit) djcb: Read error: Connection reset by peer 00:59 (join) djcb 01:28 (quit) getpwnam: Ping timeout: 245 seconds 01:38 (quit) jeapostrophe: Ping timeout: 252 seconds 01:51 (join) osa1 01:52 osa1: does anyone here has The Racket Guide as PDF? I want to read it from my ebook reader 02:03 osa1: ok, I found the pdf 02:04 osa1: now,another question, is there a way to make geiser documentation tool work with emacs autocomplete-mode ? 02:07 (quit) djcb: Read error: Connection reset by peer 02:08 (join) djcb 02:19 (join) kreol[Ukr] 02:19 (join) antithesis 02:24 (quit) osa1: Quit: Konversation terminated! 02:39 (quit) phax: Remote host closed the connection 02:41 (quit) jonrafkind: *.net *.split 02:41 (quit) tewk: *.net *.split 02:52 (quit) jhemann: Ping timeout: 256 seconds 03:20 (join) dzhus 03:30 (join) nilyaK 04:02 (quit) duomo: Quit: Linkinus - http://linkinus.com 04:05 (quit) jyc: Read error: Connection reset by peer 04:11 (join) tewk 04:30 (quit) nilyaK: Quit: Leaving. 04:33 (join) hyko 04:49 (join) bitonic_ 04:55 (join) mceier 04:57 (quit) snorble_: Ping timeout: 265 seconds 04:58 (join) snorble_ 05:18 (join) masm 05:22 (join) madmuppet006 05:29 (join) bitonic 05:35 madmuppet006: I have installed racket on my computer running xp 64 and it will not run anyone else having this problem? 05:59 (quit) masm: Quit: Leaving. 06:02 (quit) ashish: Quit: Whenever we are together, it's always estatically palpitating! 06:03 (join) abbe 06:19 (quit) djcb: Read error: Connection reset by peer 06:36 (join) plobzik 06:38 (quit) plobzik: Read error: Connection reset by peer 06:53 (join) masm 06:54 (quit) madmuppet006: Quit: Leaving 07:03 (join) flying_rhino 07:48 (join) gciolli 07:54 (join) snearch 08:08 (join) bluezenix 08:18 (quit) dzhus: Ping timeout: 265 seconds 08:31 (quit) snearch: Quit: Verlassend 08:43 (join) dzhus 08:58 (join) nilyaK 09:03 (join) jeapostrophe 09:03 (quit) jeapostrophe: Changing host 09:03 (join) jeapostrophe 09:13 (join) RacketCommitBot 09:13 RacketCommitBot: [racket] plt pushed 8 new commits to master: http://git.io/69mrTQ 09:13 RacketCommitBot: [racket/master] fix doc example - Matthew Flatt 09:13 RacketCommitBot: [racket/master] fix docs on `prop:{require,provide,provide-pre}-transformer' - Matthew Flatt 09:13 RacketCommitBot: [racket/master] doc edits - Matthew Flatt 09:13 (part) RacketCommitBot 09:18 (join) netrino 09:36 (quit) gciolli: Ping timeout: 244 seconds 09:39 (join) RacketCommitBot 09:39 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/kxPFAA 09:39 RacketCommitBot: [racket/master] added blame context information to vector/c and vectorof contracts - Robby Findler 09:39 (part) RacketCommitBot 09:51 (join) getpwnam 10:21 (quit) antithesis: Quit: yes leaving 10:23 (join) antithesis 10:24 (quit) antithesis: Remote host closed the connection 10:26 (join) antithesis 10:39 (join) RPR 10:56 (join) Dormi 10:58 Dormi: So I'm having a little problem with pulling an element from a list of lists. Here is the relevant code, if anybody cares. 10:58 Dormi: http://pastebin.com/CNJha7qA 10:59 (quit) nilyaK: Read error: Connection reset by peer 11:01 jeapostrophe: Dormi: that's not enough code to see the problem, plus you didn't actually show the whole error message 11:01 jeapostrophe: it looks to me like you have a world function that isn't returning a world 11:01 jeapostrophe: either way, you should write test cases for your functiosn 11:09 (quit) Dormi: Ping timeout: 245 seconds 11:12 (quit) kreol[Ukr]: Ping timeout: 272 seconds 11:14 (join) gridaphobe 11:16 (join) anRch 11:18 (quit) abbe: Quit: Whenever we are together, it's always estatically palpitating! 11:31 (join) jhemann 11:57 (quit) anRch: Quit: anRch 12:15 (join) zyoung 12:51 (quit) jeapostrophe: Ping timeout: 260 seconds 12:58 (quit) zyoung: Remote host closed the connection 13:05 (join) random_malice 13:06 sizz_: I was just browsing through the Rosetta Code website. There aren't many Racket examples so far, but one that caught my eye is: http://rosettacode.org/wiki/Animate_a_pendulum#Racket which is easily the nicest of all the examples on the page! 13:08 (nick) sizz_ -> sizz 13:09 (quit) getpwnam: Ping timeout: 260 seconds 13:19 (join) cdidd 13:19 (join) kreol[Ukr] 13:22 kreol[Ukr]: Hello all. I use The Racket Drawing Toolkit to draw Line-level in optimization methods i use a pixel and how can i transform my picture (increase width and height) 13:28 kreol[Ukr]: i'm sory i use Graphics: Legacy Library (require graphics/graphics) 13:53 (join) jonrafkind 14:02 (join) graspee 14:14 (quit) jrslepak: Quit: What happened to Systems A through E? 14:25 (join) mye 14:25 (quit) masm: Quit: Leaving. 14:29 (quit) bitonic: Ping timeout: 245 seconds 14:39 (quit) RPR: Ping timeout: 272 seconds 14:42 (join) bitonic 15:19 Cryovat: Hmm 15:19 Cryovat: Who's in charge of the OpenGL support? 15:19 jonrafkind: matthew i guess 15:19 Cryovat: I'm using a third party OpenGL library off Planet and I keep crashing Racket when trying to use vertex buffer objects 15:20 Cryovat: Starting to wonder if it's me doing anything wrong, or if there's a deeper rooted problem related to it 15:20 Cryovat: Since it's not supported in the official bindings 15:21 (join) dnolen 15:27 (quit) mye: Ping timeout: 245 seconds 15:33 (join) masm 15:43 (join) phax 16:04 (join) jrslepak 16:07 (quit) antithesis: Remote host closed the connection 16:11 (quit) jhemann: Read error: Connection reset by peer 16:28 (join) zyoung 16:29 (quit) jrslepak: Quit: This computer has gone to sleep 16:32 (quit) zyoung: Remote host closed the connection 16:37 kreol[Ukr]: Can any help with a simple program with using OpenGL? For example withdraw a pixels 16:37 (join) jrslepak 16:40 (join) antithesis 16:41 (quit) jonrafkind: Ping timeout: 252 seconds 16:53 offby1: Am I the only one who finds it odd that "set-map" returns a list instead of a set? 16:54 Cryovat: That sounds a bit odd 16:54 (join) jonrafkind 16:55 bartbes: well, it's just the return values accumulated 17:05 (quit) dzhus: Ping timeout: 244 seconds 17:06 netrino: offby1: perhaps it's because set do not hold unique elements. like (set-map (set 1 2 3 4) (lambda (x) (* x 0))) will yield the only 0, and that's not the desired result in most cases 17:11 offby1: netrino: hmm 17:11 offby1: netrino: and yet I find myself doing (list->set (set-map ... ...)) an awful lot 17:16 Cryovat: Does stephanh42 drop by here? 17:16 offby1: rudybot: seen stephanh42 17:16 rudybot: offby1: No sign of stephanh42 17:19 Cryovat: Hmm 17:19 Cryovat: Wonder if the best place to ask for support is Github or Planet 17:19 offby1: Cryovat: can't tell ya 17:27 (quit) gridaphobe: Remote host closed the connection 17:27 netrino: offby1: well, agree, it's a bit unexpected and strange behavior 17:30 (join) duomo 17:31 (quit) phax: Remote host closed the connection 17:49 (join) nilyaK 17:54 (join) isson 17:55 (part) isson 17:56 (quit) graspee: Quit: rebooting to linux 18:09 (join) jeapostrophe 18:09 (quit) jeapostrophe: Changing host 18:09 (join) jeapostrophe 18:11 (quit) flying_rhino: Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/ 18:24 (quit) jeapostrophe: Ping timeout: 248 seconds 18:26 (quit) mceier: Quit: leaving 18:28 (quit) nilyaK: Quit: Leaving. 18:45 (quit) antithesis: Quit: yes leaving 18:52 (join) bluezenix1 18:53 (quit) bluezenix: Ping timeout: 240 seconds 18:56 (join) kvda 18:59 (join) jao 18:59 (quit) jao: Changing host 18:59 (join) jao 19:02 (join) gerardpaapu 19:33 (quit) bitonic: Quit: WeeChat 0.3.7 19:45 (join) mye 19:46 (join) kvda_ 19:47 (quit) duomo: Ping timeout: 272 seconds 19:48 (quit) bluezenix1: Quit: Leaving. 19:52 (quit) gerardpaapu: Quit: Lost terminal 20:11 (quit) kvda: Quit: -___- 20:11 (nick) kvda_ -> kvda 20:22 (join) duomo 20:45 (quit) jrslepak: Quit: This computer has gone to sleep 20:45 (join) gridaphobe 20:46 (quit) gridaphobe: Remote host closed the connection 20:46 (quit) masm: Quit: Leaving. 20:49 (join) zyoung 20:50 (join) RPR 20:52 (join) kvda 20:56 (join) jeapostrophe 20:56 (quit) jeapostrophe: Changing host 20:56 (join) jeapostrophe 20:59 (quit) jao: Ping timeout: 245 seconds 21:03 (nick) otterdam -> LeOtter 21:04 (quit) jeapostrophe: Ping timeout: 240 seconds 21:20 (join) RacketCommitBot 21:20 RacketCommitBot: [racket] plt pushed 1 new commit to master: http://git.io/Iv4wdw 21:20 RacketCommitBot: [racket/master] up the future tests timeout - Robby Findler 21:20 (part) RacketCommitBot 21:32 (join) yoklov 21:33 (join) gerardpaapu 21:36 (quit) netrino: Quit: Ave! 21:38 (join) nilyaK 21:38 (join) jeapostrophe 21:55 (quit) jeapostrophe: Ping timeout: 244 seconds 22:01 (join) jyc 22:12 (join) shawnps 22:12 (quit) Shambles_: Quit: Leaving. 22:12 (join) Shambles_ 22:22 shawnps: Hi, I just tried to post to the users list after subscribing but got bounced, so I'll ask in here: I'm trying to convert some bytes (an HMAC-SHA1 hash) into a string, and I get an error: http://pastebin.com/jzYRBvhz 22:22 shawnps: if anyone has any clues as to why that's happening i'd appreciate any help :) 22:24 offby1: ahoy Typed Racket whizzim: can you explain this error? http://ix.io/2nX 22:26 jonrafkind: shawnps, why do you expect to be able to convert an sha1 hash to a string? 22:26 shawnps: isn't it just bytes? 22:26 jonrafkind: it is 22:27 jonrafkind: and thats what you got 22:27 jonrafkind: what sort of output did you expect? 22:27 shawnps: i expected bytes and then i wanted to convert it to a string 22:27 offby1: "Socratic Method" alert! :-) 22:27 shawnps: is that wrong? 22:27 shawnps: i need it to be a string 22:27 jonrafkind: why is that 22:27 jonrafkind: what about a byte string instead of a regular string 22:28 jonrafkind: actually thats what it is, a byte string 22:28 shawnps: i need to tack it onto an API endpoint URL 22:28 shawnps: can i use the bytes for that? 22:28 offby1: URLs typically want just ASCII bytes, not any old bytes. 22:28 jonrafkind: you mean like you want to do http://some-server.com/api? ? 22:29 shawnps: yeah 22:29 offby1: So you'll probably need to encode those bytes with e.g. %20 22:29 shawnps: api_hash= 22:29 jonrafkind: probably what offby1 says is right 22:29 offby1: probably 22:29 shawnps: sorry, how do i do that? 22:29 offby1: rudybot: (nubmer->string 12 16) 22:29 rudybot: offby1: your sandbox is ready 22:29 rudybot: offby1: error: reference to an identifier before its definition: nubmer->string in module: 'program 22:29 offby1: rudybot: (number->string 12 16) 22:29 rudybot: offby1: ; Value: "c" 22:29 offby1: hm, that doesn't add a leading 0 22:30 offby1: gotta be a built-in way 22:30 jonrafkind: offby1, heh i wasn't trying to be socratic, just trying to pinpoint the place of confusion, it could of been either of us 22:30 offby1: that's what a true Socratite would say! 22:30 jonrafkind: heh 22:31 shawnps: no problem, i appreciate the help 22:31 offby1: rudybot: (let () (define (left-pad str) (if (< (string-length str) 2) (string-append "0"(left-pad str)) str)) 22:31 rudybot: offby1: And string-length is typed (String -> Natural-number) 22:31 offby1: rudybot: eval (let () (define (left-pad str) (if (< (string-length str) 2) (string-append "0"(left-pad str)) str)) 22:31 rudybot: offby1: error: #:1:0: read: expected a `)' to close `(' 22:31 offby1: rudybot: eval (let () (define (left-pad str) (if (< (string-length str) 2) (string-append "0"(left-pad str)) str)) (left-pad (number->string 12 16))) 22:31 rudybot: offby1: error: evaluator: terminated (out-of-memory) 22:32 offby1: damn 22:32 jonrafkind: Warning: You should compose this with base64-stuffer to get URL-safe bytes. 22:32 jonrafkind: shawnps, 22:32 jonrafkind: http://docs.racket-lang.org/web-server/stateless.html?q=HMAC#(def._((lib._web-server/stuffers/base64..rkt)._base64-stuffer)) 22:32 nilyaK: like instead of foo.example.baz/index.rkt?hash=abc 22:32 nilyaK: like instead of foo.example.baz/index.rkt?hash=%61%62%63 <--encoded, not that you really need to encode abc but yea. 22:32 offby1: yay 22:32 shawnps: jonrafkind: thank you 22:32 shawnps: nilyaK: ah i see 22:34 nilyaK: like space being 32nd char in the ascii table is encoded as %20 (32 in hex) in URLs, but yea listen to other people they're smart etc 22:34 nilyaK: afk again 22:34 shawnps: now to figure out what a stuffer is 22:34 shawnps: nilyaK: thanks 22:36 (join) jrslepak 22:36 shawnps: jonrafkind: okay, sorry, i don't get it. in that sentence, "you should compose this with base64-stuffer.." what is "this"? 22:37 jonrafkind: the HMAC-SHA1 function 22:37 jonrafkind: it just means to apply base64-stuffer to the output of HMAC-SHA1 22:37 shawnps: oh, okay 22:37 shawnps: thanks 22:38 jonrafkind: function composition means to take two functions, f and g, and do (f (g x)) 22:38 jonrafkind: invented by smarmy academic people to sound smart 22:40 nilyaK: like computer science? invented by people who study algorithms to sound science-y? 22:40 nilyaK: :P 22:41 jonrafkind: algorithms people should be moved back to the math department 22:42 jonrafkind: there are some algorithms people in the office next to me, and i dont think we could say things to each other that the other would understand 22:42 shawnps: jonrafkind: so (base64-stuffer (HMAC-SHA1 x y)) would be composing it? 22:42 jonrafkind: yea 22:42 shawnps: i must be doing it wrong 22:42 shawnps: procedure application: expected procedure, given: #; arguments were: #"F\264\354Xa\27\25M\254\324\235fN]c\375\310\216\373Q" 22:43 shawnps: do i need to do like 22:43 shawnps: (base64-stuffer (lambda (x y) (HMAC-SHA1 x y))) or something 22:43 jonrafkind: oh you need to use (stuffer-compose) 22:43 shawnps: okay 22:43 jonrafkind: ok do this 22:43 shawnps: ah, i see 22:44 shawnps: (stuffer-compose (base64-stuffer HMAC-SHA1)) 22:44 jonrafkind: ((stuffer-compose base64-stuffer (HMAC-SHA1-stuffer key)) input) 22:44 shawnps: thanks 22:44 jonrafkind: hm actually im not sure how to apply stuffers 22:46 shawnps: yeah, it worked but i can't apply it to a string 22:47 jonrafkind: shawnps, forget all of that 22:47 jonrafkind: do this instead 22:47 jonrafkind: (base64-encode (HMAC-SHA1 input key)) 22:47 jonrafkind: http://docs.racket-lang.org/net/base64.html?q=base64&q=stuffer-compose&q=stuffer&q=HMAC-SHA1&q=base64-stufffer#(def._((lib._net/base64..rkt)._base64-encode)) 22:47 rudybot: http://tinyurl.com/7h4hoc5 22:47 jonrafkind: stuffers are for serializing continuations 22:47 shawnps: all right 22:47 jonrafkind: which is useful when you are writing a web application and want to store the URL that the client will be using 22:48 jonrafkind: the url is tied to the continuation, and you can only store serialized url's 22:55 (join) dented42 22:58 shawnps: jonrafkind: and i should theoretically be able to call bytes->string/locale on that and get a string that i can use in the url, right? 22:58 shawnps: i'm getting a string that has carriage returns in it and stuff 22:59 shawnps: http://pastebin.com/A86sB5q7 23:01 offby1: shawnps: converting your bytes to a string with bytes->string sounds just horrible. 23:01 shawnps: what should i do? 23:01 offby1: I really think you should convert each byte to a three-character string whose first character is %, and whose 2nd and third characters are hex digits that encode the byte's value. 23:02 shawnps: all right 23:02 shawnps: and likely get rid of the \r and \n at the end? 23:04 shawnps: what's the point of having bytes->string? 23:04 shawnps: is this not a common use case? 23:06 offby1: rudybot: (define (bytes->hex-string bytes) (apply string-append (map (lambda (b) (format "%~a" (left-pad (format "~a" b)))) (bytes->list bytes)))) 23:06 rudybot: offby1: your sandbox is ready 23:06 rudybot: offby1: Done. 23:06 shawnps: cool 23:06 offby1: rudybot: (bytes->hex-string (bytes 1 2 3 255 254 253)) 23:06 rudybot: offby1: error: reference to an identifier before its definition: left-pad in module: 'program 23:07 offby1: rudybot: (define (left-pad str) (if (< (string-length str) 2) (left-pad (string-append "0" str)) str)) 23:07 rudybot: offby1: Done. 23:07 offby1: rudybot: (define (bytes->hex-string bytes) (apply string-append (map (lambda (b) (format "%~a" (left-pad (format "~a" b)))) (bytes->list bytes)))) 23:07 rudybot: offby1: Done. 23:07 offby1: rudybot: (bytes->hex-string (bytes 1 2 3 255 254 253)) 23:07 rudybot: offby1: ; Value: "%01%02%03%255%254%253" 23:07 offby1: oops, forgot to hexify 23:08 offby1: https://gist.github.com/2691556 should be better 23:14 (quit) zyoung: Remote host closed the connection 23:19 (quit) RPR: Ping timeout: 272 seconds 23:19 shawnps: thanks offby1 23:19 (join) zyoung 23:30 (join) jeapostrophe 23:38 (quit) jeapostrophe: Ping timeout: 245 seconds 23:41 (join) jeapostrophe 23:45 (quit) jeapostrophe: Ping timeout: 244 seconds 23:48 (join) nilyaK1 23:49 (quit) nilyaK: Ping timeout: 244 seconds 23:52 (quit) kreol[Ukr]: Quit: Ухожу я от вас