02:04:11 :/ 03:29:44 markd2 (~Snak@r-41.161.alltel.net) has joined #openacs 03:32:29 heh 03:32:31 Hey Mark 03:32:45 Happy Christmas eve :) 03:32:50 and Merry New Year! 03:32:53 upcoming 03:33:14 Furry Kissmoose! 03:33:28 Stay Fuzzy...Save the world...Decisions! 03:33:29 lol 03:33:32 Hey, guess what :) 03:33:49 I wrote my first outside of school C program 03:33:51 It prints out a histogram of word sizes 03:33:58 qool 03:34:03 yeah 03:34:16 Now I'm trying to make it print vertically instead of whorezontally 03:36:52 heh 03:37:04 I don't think my idea is the most efficient 03:37:05 crackwhorezontally 03:37:11 step 1) get it working 03:37:16 step 2) make it work faster 03:37:16 I did 03:37:21 heh 03:37:21 ok 03:38:08 if you're on some unix flavor, and have 'gprof', here's a little tutorial I wrote many moons ago on intrepeting the output 03:38:10 http://badgertronics.com/writings/gprof.html 03:38:11 F: http://badgertronics.com/writings/gprof.html from markd2 03:38:16 f:| how to read gprof output 03:38:23 WHOA 03:38:26 F:|how to read gprof output 03:38:26 titled item F 03:38:27 That was interesting 03:38:34 I could click on the link! 03:38:37 AND IT WENT! 03:38:51 F: brief tutorial on interpreting the output of the unix gprof profiling tool. 03:38:52 commented item F 03:39:02 F: note that it's not a GNU tool, even with the g in front of the name 03:39:02 commented item F 03:39:10 i know 03:39:15 Stark taught us about profiling 03:39:18 It was kinda cool 03:39:29 excellent 03:39:30 I love profilers 03:39:41 But again, nobody appreciated it because we were not taught one programming language then how to appreciate it 03:39:57 having actually used these tools in the Real World, I like them 03:41:48 Well, that kind of works 03:42:02 but not right 03:43:07 I'm doing a scan 03:43:14 of the square 03:43:23 and if it finds a cell that matches a condition it prints a * else a space 03:43:27 but it doesn't work right 03:43:34 sounds like it should 03:45:37 for(i=20; i > 0; i--) { 03:45:37 for (j=0; j < 20; j++) { 03:45:37 if (wordlength[j] >= i) { 03:45:37 } else { 03:45:40 } 03:45:42 } 03:45:44 printf("\n"); 03:45:46 }ack 03:45:55 tabs get interpreted in BitchX funny 03:46:08 in the if, I print a * 03:46:12 in the else I print a space 03:46:14 they got cut out 03:46:28 so, one axis goes 0 to 19, and the other goes from 1 to 20? 03:46:34 yes 03:46:39 that's confusing 03:46:48 You can't have a 0 length word :) 03:47:01 ah. good point 03:47:09 heh 03:47:22 that looks like it should work 03:47:37 but it doesn't :( 03:47:49 The output is skewed 03:47:57 like I have 4 rows of size 20 or so 03:48:19 I don't want to paste the output in here 03:49:41 yeah 03:50:05 are you using a proportional font? 03:50:19 i'm using whatever is this term set for 03:50:43 so check what your term is using 03:50:53 heh 03:50:55 if it's proportional, you'll never get it to work 03:50:57 Terminal 03:51:25 that's probably fixed-width then 03:51:34 You want me to send you my c file? 03:51:37 sure 03:51:42 markd@badgertronics.com 03:51:45 You know how to use DCC? 03:51:58 eh 03:52:02 see what this does 03:52:11 send it email 03:52:15 (non-attachement) 03:52:23 ummm 03:52:27 please 03:52:33 ok, how do I do that from pine? 03:52:35 or, send it email/attachment to bork@borkware.com 03:52:51 ok hold on 03:54:26 sent to Bork 03:55:20 got it 03:55:33 cool 03:55:35 try running it 03:55:51 You want me to send you my working (at least as far as I understand it) version 1? 03:56:00 nah 03:57:03 the output looks good to me 03:57:11 ? 03:57:19 you mean it looks right? 03:57:26 I get bars the correct height in the correct order, to match the input 03:57:35 what are you testing it on? 03:57:40 what input 03:57:43 mac os/x 03:57:48 a 03:57:48 a 03:57:48 a 03:57:48 bork 03:57:48 bork 03:57:49 bork 03:57:51 the 03:57:53 the 03:57:55 bork 03:57:57 bork 03:57:59 and I get 03:58:01 * 03:58:03 * 03:58:05 * * 03:58:07 * ** 03:58:09 * ** 03:58:11 modulo proportional fontage 03:58:28 a bar 3 high, an empty column, then two high, then 5 high 03:58:49 yeah I get that too with that 03:59:23 ok, it's printing 0,3,2,5 03:59:34 0,3,0,2,5 for me 03:59:41 for that 03:59:49 isn't that wrong? 04:00:08 Well, I guess not since I didn't get rid of the 0 length words 04:00:12 3 a's (1 char), no two-char words, 2 the's (three-char), 5 borks (4-char) 04:00:35 Oh 04:00:36 heh 04:00:38 you're right 04:00:42 then it does work 04:00:43 woohoo! 04:01:16 What is this asking? 04:01:26 ? 04:01:31 beattiek2 (beattiek@a0hj120oy38yk.bc.hsia.telus.net) has joined #openacs 04:01:37 Write a program to print a histogram of the frequencies of different characters in it's input. 04:01:41 I don't follow 04:01:57 Do they mean how many times a occurs, then b, then c...etc? 04:02:00 yep 04:02:04 bah 04:02:08 keep a count of each of the letters 04:02:09 That's just one long switch statement 04:02:12 Merry christmas Psychephylax, markd2, everyone. 04:02:13 no! 04:02:14 Everything else stays the same 04:02:22 Happy holidays beattiek 04:02:23 remember that chars are integers also 04:02:26 :P 04:02:27 Right 04:02:27 you can just have an array 04:02:36 no switch statement needed 04:02:48 yeah I could do it like that too 04:02:56 That's one long ass array :) 04:02:58 beattiek2 has quit (Client Quit) 04:02:59 doing a big switch is ludicrous 04:03:11 heh 04:03:16 assuming one byte per character, that's just a 255 element array 04:03:31 Well, the way I would do it is I would just store it in the array index of the value of the char 04:03:52 I was talking screen wise 04:04:17 you need a bigger monitor 04:04:21 :-/ 04:05:33 Well, I'm not going to write that program, I know how to do it :-) 04:06:46 I'll do Section 1.7 tomorrow, now i sleep and watch seinfeld 04:06:49 Good night Mark! 04:06:55 nite 04:06:58 :) 04:15:14 markd2 has quit ("Bork") 14:36:20 markd2 (~Snak@r-41.173.alltel.net) has joined #openacs 15:22:55 markd2 has quit ("Bork") 17:27:13 markd2 (~Snak@r-41.181.alltel.net) has joined #openacs 18:59:45 rob (~rob@pc218.warszawa.sdi.tpnet.pl) has joined #openacs 19:01:42 rob? 19:45:47 bob/ 19:45:49 Frob? 19:45:53 Glob or Blob? 19:46:09 insert into mark values (chocolate, chip, cookies); 19:50:30 blob 19:59:08 :) 19:59:14 Haaaapppy Holidays 19:59:20 wheee 19:59:23 http://crazy.codetroop.com/randimg/?elefant_synvilla.gif 19:59:37 That's a blob alright 19:59:51 brb 20:05:27 backus shmacus 20:13:43 bah 20:13:45 brb 20:13:50 need to reboot this PoS 21:11:46 markd2 has quit ("Bork") 21:56:21 rob has quit ("using sirc version 2.211+KSIRC/1.1") 22:08:26 djg (~dirk@pD9E10932.dip.t-dialin.net) has joined #openacs 23:49:28 markd2 (~Snak@r-41.181.alltel.net) has joined #openacs 23:59:52 markd2 has quit ("Bork")