01:50.25 | *** join/#linuxpakistan pundai (n=pundai@d142-179-43-195.bchsia.telus.net) |
02:39.53 | *** join/#linuxpakistan pundai (n=pundai@d142-179-43-195.bchsia.telus.net) |
02:40.05 | pundai | yo maplist check this out |
02:40.15 | pundai | [40]> (defun all-but-last (lst) |
02:40.17 | pundai | <PROTECTED> |
02:40.19 | pundai | <PROTECTED> |
02:40.23 | pundai | ALL-BUT-LAST |
02:40.25 | pundai | [41]> (all-but-last '(1 2 3 4)) |
02:40.27 | pundai | (1 2 3) |
02:40.29 | pundai | [42]> (all-but-last '()) |
02:40.31 | pundai | Segmentation fault |
02:40.33 | pundai | hahahahaha |
02:40.35 | pundai | thats awesome |
02:40.37 | pundai | clisp :) |
03:33.35 | *** join/#linuxpakistan pundai (n=pundai@d205-250-120-184.bchsia.telus.net) |
05:17.19 | *** join/#linuxpakistan jojomonkey (n=jojomonk@c-67-176-62-37.hsd1.co.comcast.net) |
05:17.20 | *** mode/#linuxpakistan [+v jojomonkey] by ChanServ |
09:14.38 | maplist | beating linux_linux to the punch: http://www.naseeb.com/domains/article-detail.php?uname=fn&aid=126156 |
13:15.59 | *** join/#linuxpakistan barlas (n=Aqeel@linuxpakistan/user/barlas) |
13:15.59 | *** mode/#linuxpakistan [+v barlas] by ChanServ |
13:47.37 | *** join/#linuxpakistan fawad (n=fawad@c-24-15-18-66.hsd1.il.comcast.net) |
13:48.47 | fawad | aoa, folks. |
14:40.51 | *** join/#linuxpakistan jojomonkey (n=jojomonk@c-67-176-62-37.hsd1.co.comcast.net) |
14:40.51 | *** mode/#linuxpakistan [+v jojomonkey] by ChanServ |
15:06.01 | *** join/#linuxpakistan aqeeliz (n=Aqeel@linuxpakistan/user/barlas) |
15:06.01 | *** mode/#linuxpakistan [+v aqeeliz] by ChanServ |
15:54.28 | *** join/#linuxpakistan phoenix__ (n=chatzill@202.125.143.66) |
15:54.45 | phoenix__ | salam guys |
15:54.53 | phoenix__ | some problem with LP |
15:55.09 | phoenix__ | cant post messages there |
15:56.39 | phoenix__ | Error in posting |
15:56.44 | phoenix__ | DEBUG MODE |
15:56.49 | phoenix__ | SQL Error : 1062 Duplicate entry '0' for key 1 |
15:56.56 | phoenix__ | INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, |
15:57.01 | phoenix__ | enable_sig) VALUES (5563, 16, 3217, '', 1154275006, 'ca7d8f42', 1, 0, 1, 1) |
15:57.05 | phoenix__ | Line : 240 |
15:57.10 | phoenix__ | File : functions_post.php |
15:59.09 | *** join/#linuxpakistan phoenix___ (n=chatzill@202.125.143.66) |
16:05.31 | jargon | phoenix_'s ghost: yeah, we know |
16:14.57 | jargon | missed the 's' |
16:26.16 | maplist | i bet that f***** lambda broke linuxpakistan to keep serious employers from posting their serious job ads! |
16:46.40 | jargon | yeah, he's a trouble maker |
16:46.58 | jargon | dude, i seriously think linux_linux and shell_lahore are the same person |
16:48.11 | jargon | well, i got to do some shopping , later |
16:49.54 | maplist | sql is hard, let's go shopping! |
17:06.56 | maplist | on my site, i log the user's ip address whenever they signup or login |
17:07.12 | maplist | but i don't allow users to stay logged in: they close the browser, they're gone. |
17:28.08 | *** join/#linuxpakistan mo0oh (n=mo0oh@203.101.162.88) |
17:32.43 | maplist | a cow? |
17:33.43 | mo0oh | l0l |
17:34.12 | mo0oh | i didn't check my last nick in name option |
18:44.14 | *** join/#linuxpakistan pundai (n=pundai@d142-179-43-195.bchsia.telus.net) |
18:44.26 | pundai | yo maplist around |
19:06.58 | jargon | pundai, yo |
19:06.59 | maplist | yo |
19:08.02 | pundai | hey nm figured it out |
19:08.12 | pundai | = v equals v eql |
19:08.41 | jargon | pundai, how's work? you still @ the same place ? |
19:09.26 | pundai | yep |
19:09.30 | pundai | brb |
19:11.07 | jargon | same here, going to get some wendy's |
19:12.00 | pundai | i cant go for wendy's |
19:12.05 | pundai | itd take me like 1.5 hrs to walk there and back |
19:12.16 | pundai | i just finished some spicy caju |
19:13.12 | maplist | this is probably better: |
19:13.12 | maplist | (defun all-but-last (lst) |
19:13.12 | maplist | <PROTECTED> |
19:13.12 | maplist | <PROTECTED> |
19:13.13 | maplist | <PROTECTED> |
19:13.39 | maplist | (length some-list) is O(n) |
19:13.39 | maplist | (rest some-list) is O(1) |
19:14.00 | pundai | ah |
19:14.02 | pundai | thanks! |
19:14.28 | maplist | if you had scheme, you could use tail call elimination, which would remove all the stack calls while still letting you write the code in recursive format. |
19:15.16 | pundai | cuz lists are just car and cdr right |
19:15.19 | maplist | also, append is slow |
19:15.34 | pundai | cons? |
19:16.44 | maplist | cons is slow, too! but since you're not dealing with megabytes of data, it doesn't matter |
19:16.58 | pundai | so htf do you make a list |
19:17.07 | maplist | (list 1 2 ... ) |
19:17.28 | pundai | yeah but its (list (first lst) (all-but-last (rest lst))) |
19:17.28 | maplist | (list "string" 23 'symbol '(cat list)) |
19:17.58 | maplist | well, i'm lazy, so i just cons it all up and then reverse it before printing it out |
19:18.02 | maplist | er, returning it |
19:18.48 | maplist | like this: |
19:18.55 | maplist | (define (all-but-last lst) |
19:18.55 | maplist | <PROTECTED> |
19:18.55 | maplist | (define (all-but-last-aux lst result) |
19:18.55 | maplist | <PROTECTED> |
19:18.56 | maplist | <PROTECTED> |
19:18.58 | maplist | <PROTECTED> |
19:19.00 | maplist | er |
19:19.06 | maplist | (define (all-but-last-aux lst result) |
19:19.07 | maplist | <PROTECTED> |
19:19.07 | maplist | <PROTECTED> |
19:19.13 | maplist | <PROTECTED> |
19:19.13 | maplist | <PROTECTED> |
19:19.13 | maplist | <PROTECTED> |
19:28.29 | *** join/#linuxpakistan pundai_ (n=pundai@d205-250-120-184.bchsia.telus.net) |
19:30.56 | maplist | my lisp has silenced pundai. |
19:31.04 | pundai_ | i got booted |
19:31.04 | pundai_ | :P |
19:31.23 | pundai_ | and i dont remember my nickserv password |
19:31.23 | pundai_ | sweet |
19:31.33 | pundai_ | i was asking what does reverse do |
19:31.49 | pundai_ | omfg get these hicks to turn off their country music |
19:32.05 | maplist | country music isn't all bad |
19:32.39 | pundai_ | im starting to not like music at all |
19:32.42 | maplist | listen to http://www.waxor.com/~child/anyway/righteously.mp3 |
19:32.42 | pundai_ | its too noisy for me |
19:33.07 | pundai_ | gonna walk downstairs now, lets see if i get dc'ed |
19:35.04 | pundai_ | ahh my ears |
20:18.02 | jargon | that's horrible |
20:57.06 | pundai_ | jargon, :) |
21:03.46 | jargon | later |
21:03.48 | *** part/#linuxpakistan jargon (n=jojomonk@c-67-176-62-37.hsd1.co.comcast.net) |
22:05.43 | *** join/#linuxpakistan Nav91 (i=Nav91@ris91-2-82-227-27-54.fbx.proxad.net) |
22:05.49 | Nav91 | hello |
22:05.53 | Nav91 | how are you? |
22:09.49 | *** part/#linuxpakistan Nav91 (i=Nav91@ris91-2-82-227-27-54.fbx.proxad.net) |
23:09.45 | *** join/#linuxpakistan jojomonkey (n=jojomonk@c-67-176-62-37.hsd1.co.comcast.net) |
23:09.45 | *** mode/#linuxpakistan [+v jojomonkey] by ChanServ |
23:48.21 | *** join/#linuxpakistan fawad (n=fawad@linuxpakistan/admin/fawad) |
23:48.21 | *** mode/#linuxpakistan [+o fawad] by ChanServ |
23:57.53 | jargon | fawad, hey |
23:58.01 | jargon | get my email? |