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