00:03 (join) jeapostrophe 00:03 (quit) jeapostrophe: Client Quit 00:08 (nick) ec|detached -> elliottcable 00:18 (quit) rekahsoft: Ping timeout: 260 seconds 00:18 (join) rekahsoft 00:39 (join) jeapostrophe 00:40 (quit) jeapostrophe: Client Quit 00:46 (quit) leo2007: Ping timeout: 246 seconds 00:51 (join) jonrafkind 00:52 (quit) mithos28: Quit: mithos28 00:52 (nick) elliottcable -> ec 00:56 (join) leo2007 00:59 (nick) ec -> elliottcable 01:03 (join) jeapostrophe 01:03 (quit) jeapostrophe: Client Quit 01:36 (join) jeapostrophe 01:39 (quit) jeapostrophe: Client Quit 02:02 (quit) realitygrill_: Ping timeout: 252 seconds 02:02 (join) realitygrill 02:13 (quit) asumu: Read error: Operation timed out 02:46 (quit) jonrafkind: Ping timeout: 260 seconds 02:59 (quit) realitygrill: Read error: Connection reset by peer 02:59 (join) realitygrill 03:22 (nick) elliottcable -> ec|detached 03:22 (nick) ec|detached -> elliottcable 03:31 (join) realitygrill_ 03:31 (quit) realitygrill: Read error: Connection reset by peer 03:31 (nick) realitygrill_ -> realitygrill 03:43 (join) masm 03:44 (quit) masm: Client Quit 03:44 (join) masm 03:49 (quit) ckrailo: Quit: Computer has gone to sleep. 04:08 (quit) lisppaste: Remote host closed the connection 04:11 (join) lisppaste 04:13 (quit) rekahsoft: Ping timeout: 244 seconds 04:15 (join) rekahsoft 04:25 (join) wwwd 04:28 wwwd: Are my posts reaching the channel? 04:29 bremner_: yes 04:32 (join) superjudge 04:32 wwwd: Is there a place that I should be going to ask for help? Because so far your the first person who has acknowledged anything I have posted. Is this the wrong forum to ask questions? 04:38 bremner_: wwwd: it's just a small channel and you need to be patient if you want to get help here. You are certainly welcome to use the mailing list. It would also help if you pasted the code in question to some pastebin site. 04:40 wwwd: What is and how would I get code to a pastebin site? 04:42 bremner_: hmm, normally I would recommend paste.lisp.org, but it seems to be down. Try gist.github.com 04:43 bremner_: it is pretty self-explanatory once you point your browser at it 04:44 wwwd: bremner_ : do I then add a message here with a link? 04:45 bremner_: yes 04:46 wwwd: bremner_: Thanks! 04:46 bremner_: welcome 04:53 wwwd: So when I run the code at https://gist.github.com/6c3a73d0263172a1189b it creates a circle. Moves it once. Then thows the following error: "circle-center: expects argument of type ; given true" with reference to line 14. Is there a problem in my draw-a-circle funtion or am I calling it incorectly? 04:57 (quit) realitygrill: Quit: realitygrill 04:58 wwwd: By the way this is from the text "How to Design Programs exercise 6.6.6 at: http://htdp.org/2003-09-26/Book/curriculum-Z-H-9.html 05:00 bremner_: move-circle works ok if you call it interactively? 05:02 bremner_: btw is that exactly your code, because the template part does not compile. 05:02 wwwd: Seems to. 05:03 bremner_: oh, what is that #lang line ? 05:04 wwwd: By tempate you mean fun-for-circles lines 6 - 9? And by the way I don't have one! 05:04 bremner_: wwwd: right, that is what I mean. 05:05 wwwd: When I past that into a new tab by it's self and run it I don't get any errors 05:06 bremner_: what is that language selection in drracket then, in the bottom left 05:06 wwwd: beginning student 05:07 wwwd: b.s custom that is 05:08 wwwd: When you say it doesn't compile; am I correct in thinking I am compiling it when I run it? 05:09 (part) sstrickl 05:10 bremner_: right, just pressing the run button 05:10 wwwd: Yeah! Work on my system. 05:14 bremner_: so the code you pasted is ok for you now? 05:15 wwwd: Yes. But the whole still has error. Also, lines 51-63 don't make sense to me. 05:16 wwwd: In define move-circle I am calling 2 args. In my call I am only calling 1 arg. Or is the next move-circle line an arg? 05:17 (join) realitygrill 05:19 wwwd: bremner_: Sorry. Miss understood. No the code I pasted still gives the same error. But the template seems to work on my system. 05:19 wwwd: i.e. it is not throwing any errors... 05:20 bremner_: wwwd: the return of the inner move-circle is passed to the next outermost move-circle 05:20 bremner_: (f (f (f 1))) is a similar example 05:21 bremner_: given e.g. (define (f x) (+ x 1)) 05:23 wwwd: To be clear line 63 runs and passes to line 62 then line 61...? 05:23 bremner_: /url 126 05:23 bremner_: oops 05:23 bremner_: wwwd: yes, that sounds right 05:27 wwwd: So the first move-circle is calling draw-and-clear-circle at line 45 which then calls draw-a-circle line 12 with a true instead of a . Causing the error? 05:32 wwwd: Actually, move-circle returns a true which I expected. However, I did not expect it to cause a problem. Am I suposed to be passing my circle stuct differently? 05:42 (quit) leo2007: Quit: rcirc on GNU Emacs 23.3.50.1 05:49 (quit) lisppaste: Remote host closed the connection 05:53 (join) lisppaste 05:57 (quit) lisppaste: Remote host closed the connection 06:00 (join) lisppaste 06:05 (quit) lisppaste: Ping timeout: 260 seconds 06:12 bremner_: ah, move-circle should return a circle 06:12 bremner_: wwwd: ^ 06:18 wwwd: In fact should'nt it be a circle with posn-x + delta 06:20 bremner_: well, that's just a new circle isn't it? 06:23 wwwd: Yes, or atlest one would hope! Though it seems to be more like a true! 06:27 bremner_: sorry, I should have been more explicit when I asked about move-circle before. That is what I meant to suggest, make sure it returns a circle. 06:35 (join) lisppaste 06:45 (join) MayDaniel 06:45 wwwd: bremner_: in line 34 should my make-posn be: (draw-circle (make-posn (posn-x (+ (circle-center a-circle) delta))) 06:53 wwwd: bremner_: Thanks alot!!! I'll go back and see if I can figure out how to return a circle rather than a true. 06:54 wwwd: bremner_: ^ 06:56 (quit) wwwd: 07:11 (quit) MayDaniel: Ping timeout: 252 seconds 08:29 (quit) lisppaste: Remote host closed the connection 08:33 (join) leo2007 08:41 (join) lisppaste 08:44 (quit) lisppaste: Remote host closed the connection 08:46 (quit) masm: Quit: Leaving. 08:47 (join) lisppaste 08:49 (join) masm 09:17 (quit) bremner_: Read error: Operation timed out 09:17 (join) bremner_ 09:22 (join) Lajla 09:29 (join) ZachBeta 09:40 (part) Lajla: "I am gay for you" 09:41 (join) tauntaun 09:53 (quit) realitygrill: Quit: realitygrill 10:20 (join) jeapostrophe 10:41 (join) Checkie 10:55 (join) mithos28 10:56 (quit) mithos28: Client Quit 10:59 (join) mithos28 11:15 (quit) mithos28: Quit: mithos28 11:17 (join) asumu 11:18 (join) rogd 11:19 (join) karme 11:20 rogd: is there any way to save variables to a file? 11:21 rogd: write doesn't work since it just writes 11:26 offby1: I'd use write ... what's wrong with it? 11:26 offby1: rogd: show us some code that doesn't work; explain what you'd wanted it to do 11:27 bremner_: you can use http://docs.racket-lang.org/reference/serialization.html?q=serialize#(def._((lib._racket/private/serialize..rkt)._serialize)) if you want something fancy 11:27 offby1: yeah 11:28 bremner_: haven't used it myself 11:29 offby1: I have; I think it's roughly equivalent to Python's "pickle" and Perl's "data::dumper" 11:36 (join) dnolen 11:36 rogd: (define skapa-spelare% (class object% (super-new) (init (kord-init #f)) (init (plats-init #f)) .........) 11:37 (join) martinhex 11:37 rogd: (define spelare (new skapa-spelare% ........)) 11:37 rogd: and I'm trying to make a save function which will save the player (spelaren) 11:38 rogd: it's a game for a school project btw 11:39 offby1: probably need that serialization library 11:39 offby1: if you (write spelaren) you'll probably just get something like # 11:40 rogd: yes i tried that 11:40 rogd: tooke me some time to figure it out :/ 11:40 offby1: unfortunately only fairly simple values are "write"able. 11:40 offby1: And using the serialization library forces subtly annoying constraints on your code, although I forget what they are. 11:41 offby1: I suspect most people in your situation would write out simple data, and then write a function that creates a new skapa-spelare% from that data 11:41 (quit) rekahsoft: Ping timeout: 240 seconds 11:42 (join) rekahsoft 11:42 rogd: I thought of that but there are alot of fields sadly 11:42 (quit) martinhex: Ping timeout: 250 seconds 11:44 offby1: welcome to the real world 11:44 (join) martinhex 11:44 offby1: well, try that serialization library; maybe it'll work nicely 11:45 rogd: ok i'll try that 11:45 rogd: thanks for the help 11:46 (join) mithos28 11:46 (nick) elliottcable -> ec|detached 11:49 (quit) martinhex: Ping timeout: 260 seconds 11:52 (quit) jeapostrophe: Quit: jeapostrophe 11:52 (join) jeapostrophe 11:58 (join) realitygrill 12:00 (quit) mithos28: Quit: mithos28 12:07 (join) mithos28 12:10 (join) PLT_Notify 12:10 PLT_Notify: racket: master Jay McCarthy * e8d3ce3 (0 files in 0 dirs): Initial bibtex fakery 12:10 PLT_Notify: racket: master Jay McCarthy * 5fd6f06 (1 files in 1 dirs): Worked too long on this today 12:10 PLT_Notify: racket: master Jay McCarthy * eb55bc9 (1 files in 1 dirs): Progress 12:10 PLT_Notify: racket: master Jay McCarthy * 996a036 (1 files in 1 dirs): Parsing 12:10 PLT_Notify: racket: master Jay McCarthy * 12f5994 (1 files in 1 dirs): Parsing 12:11 PLT_Notify: racket: master Jay McCarthy * dc639df (1 files in 1 dirs): Parsing 12:11 PLT_Notify: racket: master Jay McCarthy * 0332a09 (1 files in 1 dirs): First pass 12:11 PLT_Notify: racket: master Jay McCarthy * 291ee08 (2 files in 2 dirs): Adding scriblib/bibtex. 12:11 PLT_Notify: racket: master commits 040bd37...291ee08 - http://bit.ly/lZBtC7 12:11 (part) PLT_Notify 12:21 (quit) tauntaun: Quit: Ex-Chat 12:23 (quit) jeapostrophe: Quit: jeapostrophe 12:28 (quit) karme: Remote host closed the connection 12:35 (join) MayDaniel 12:48 (quit) MayDaniel: Read error: Connection reset by peer 12:56 (quit) leo2007: Read error: Operation timed out 12:59 rogd: anyone who is good at Serialization? 13:00 rogd: I need to Serializi a class object 13:19 (join) lucian 13:44 (join) leo2007 13:49 (quit) asumu: Read error: Operation timed out 14:02 (quit) realitygrill: Ping timeout: 246 seconds 14:05 (join) realitygrill 14:11 offby1: post yer code 14:37 (join) jao 14:48 (join) jeapostrophe 14:49 ohwow: Is there an abstract interface for working with dictionaries (alists, hashes, etc)? I swear I saw it on docks.racket-lang.org but now I can't find it 15:01 (quit) jao: Ping timeout: 246 seconds 15:07 (join) MayDaniel 15:12 (quit) MayDaniel: Read error: Connection reset by peer 15:12 (quit) jeapostrophe: Quit: jeapostrophe 15:13 (join) jao 15:15 offby1: yeah, it's functions whose names begin with "dict" 15:16 offby1: http://docs.racket-lang.org/reference/dicts.html 15:18 ohwow: ah, i was searching in reference 15:18 ohwow: in guide* 15:18 ohwow: thatnks a lot 15:20 (quit) leo2007: Ping timeout: 248 seconds 15:22 (join) jeapostrophe 15:53 (quit) jeapostrophe: Quit: jeapostrophe 15:53 (join) jeapostrophe 15:54 (quit) jeapostrophe: Client Quit 16:02 ohwow: https://github.com/plt/racket/blob/master/collects/racket/dict.rkt hm, I fail to see how (dict?) is implemented 16:02 ohwow: I am curious, how do you check if an object is alist? 16:02 (join) jeapostrophe 16:03 ohwow: ah nevermind 16:03 ohwow: it's in private/dick 16:03 ohwow: dict* 16:05 (quit) jeapostrophe: Client Quit 16:11 (join) MayDaniel 16:20 (quit) jao: Ping timeout: 260 seconds 16:32 (quit) MayDaniel: Read error: Connection reset by peer 16:49 (join) jonrafkind 16:55 (join) jao 17:17 (quit) dnolen: Quit: dnolen 17:48 (join) RPR` 17:49 RPR`: Is it possible to delete a package on Planet. Put the wrong file up there in error. Sort of assumed there would be some sort of "release" button or step to the process after one fixed up the metadata etc... 17:49 offby1: dunno 17:50 jonrafkind: i don think so, but you can upload a new version 17:50 jonrafkind: if you really want to delete a package send an email to robby maybe 17:51 (join) anRch 17:51 RPR`: I was thinking about the upload an "empty" version. Sort of embarassing. 17:53 (quit) jao: Ping timeout: 276 seconds 18:02 (join) tauntaun 18:05 (join) ckrailo 18:21 (quit) superjudge: Quit: superjudge 18:25 (quit) rogd: Ping timeout: 252 seconds 18:36 (join) superjudge 18:41 (quit) superjudge: Client Quit 19:02 (nick) ec|detached -> elliottcable 19:02 (quit) ckrailo: Quit: Computer has gone to sleep. 19:05 RPR`: If you don't select any of the 3.xx or 4.xx checkboxes, it disappears. (The Planet package). 19:08 (join) jeapostrophe 19:10 (quit) anRch: Quit: anRch 19:17 (join) asumu 19:25 (quit) jeapostrophe: Quit: jeapostrophe 19:32 (quit) lucian: Remote host closed the connection 20:25 (join) ckrailo 20:37 (join) dnolen 20:41 (join) sstrickl 20:41 (part) sstrickl 20:42 (join) jeapostrophe 20:44 (quit) jeapostrophe: Client Quit 20:55 (join) jeapostrophe 21:09 (quit) masm: Ping timeout: 248 seconds 21:40 (quit) jeapostrophe: Quit: jeapostrophe 21:43 (quit) qha: Ping timeout: 240 seconds 21:43 (quit) gabot: Ping timeout: 240 seconds 21:44 (topic) -: Racket -- http://racket-lang.org -- Come to Racket Days: July 23-24 -- logs @ http://racket-lang.org/irc-logs 21:44 (names) -: gabot dnolen ckrailo asumu tauntaun RPR` jonrafkind realitygrill mithos28 rekahsoft Checkie ZachBeta bremner_ lisppaste bmp shofetim DT`` vu3rdd Quetzalcoatl_ Nightwolf tonyg samth tewk petey-away Demosthenes poindont` eli rudybot ohwow_ cky danking offby1 evhan Eren ohwow sethalves drewr _p4bl0 hyko elliottcable tomku YokYok fmu blomqvist em janne Tene askhader clklein shachaf mario-goulart ve friscosam zakwilson @ChanServ stamourv mattmight 21:44 (join) qha 21:45 (join) martinhex 21:51 (join) jao 21:57 (join) jeapostrophe 21:59 (quit) jeapostrophe: Client Quit 22:06 (quit) jao: Remote host closed the connection 22:59 (quit) RPR`: Remote host closed the connection 23:03 (join) wwwd 23:47 (quit) tauntaun: Quit: Ex-Chat