@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> ; expr {7 & 1}
<1> BL4DE: #2203 (157 clicks) Tcl: 1
<0> ; expr {12 & 1}
<1> BL4DE: #2204 (193 clicks) Tcl: 0
<0> ; puts "[expr {12 & 1}] [expr {12 & 2}] [expr {12 & 4}] [expr {12 & 8}]"
<1> BL4DE: #2205 (stdout) 0 0 4 8
<2> hmm
<2> what does & do in expr?
<2> expr ?
<3> expr -> http://www.tcl.tk/man/tcl8.4/TclCmd/expr.htm
<1> expr -> http://Tcl.Tk/man/tcl8.5/TclCmd/expr.htm
<0> and
<2> i know it's the bitwise AND, but i just dont know how it works
<2> never used it
<2> ;expr 1 & 1
<1> hest: #2212 (185 clicks) Tcl: 1



<2> ;expr 1 & 2
<1> hest: #2213 (181 clicks) Tcl: 0
<2> ;expr 2 & 1
<1> hest: #2214 (180 clicks) Tcl: 0
<2> ;expr 14 & 1
<1> hest: #2215 (195 clicks) Tcl: 0
<2> ;expr 14 & 4
<1> hest: #2216 (221 clicks) Tcl: 4
<2> ;expr 16 & 4
<1> hest: #2217 (195 clicks) Tcl: 0
<2> ;expr 16 & 6
<1> hest: #2218 (193 clicks) Tcl: 0
<2> hmm
<2> i dont get it
<0> its for bitmasking
<2> which means?
<0> you have a number of options
<0> lets say option1 option2 option3 option4
<0> option1 = 1
<0> option2 = 2
<0> option3 = 4
<0> option4 = 8
<0> and if u want option 2 and 4 you can do 2+8=10
<0> ;expr 10 & 1
<1> BL4DE: #2230 (196 clicks) Tcl: 0
<0> ;expr 10 & 2
<0> ;expr 10 & 4
<0> ;expr 10 & 8
<1> BL4DE: #2231 (194 clicks) Tcl: 2
<1> BL4DE: #2232 (203 clicks) Tcl: 0
<1> BL4DE: #2233 (192 clicks) Tcl: 8
<2> hmm
<2> still dont get it
<2> got a link to a descriptive page?
<2> tried searching the wiki, but didnt know exactly what to search for
<0> it isnt there either
<0> found some example for php first
<0> http://72.14.207.104/search?q=cache:0HoMa0YqOY4J:www.mircscripts.org/download.php%3Fid%3D988%26type%3D1+mirc+%24calc+bit&hl=da&gl=dk&ct=clnk&cd=13&client=firefox-a
<0> wops
<0> not the one i was thinking of
<0> http://www.mvps.org/access/general/gen0038.htm
<0> there
<2> ;>
<0> easier if u know a lil bit of boolsk algebra
<2> dont :>
<2> but that page was rather descriptive
<2> i wasnt aware of the number connection between decimals and bits
<2> although it makes sense when i've read it
<0> it is logic :)
<2> several friends of mine have studied electronics, and they got to look into that stuff
<2> and hardware coding using ASM and such
<2> but i've never done that
<2> would be cool, though
<2> what are you educated as, or what are you studying as we speak?
<0> hehe, still in gym :)
<0> but learning the basics of electronics on it
<2> gym? as in high school?
<0> you're .no, you should have gymnasiums too
<0> though they're bit earlier than here
<2> ya
<2> i thought of it like that, but i had to be sure ;>



<2> we are?
<2> i thought norway was more or less the latest country concerning at which age kids start school
<0> wikipedia says 16-19yr
<2> oh, high school
<2> yeah
<2> i was talking about primary
<0> oh
<0> ah, we have 1 year more of primary school than you
<2> hmmm
<2> that's why danes are so clever
<4> or slow learners
<2> haha
<2> good point ;>
<2> man
<2> MSVS is known for being such a great environment, but hell if it knows how to structure the code
<5> ;duration
<1> N86ers: #2279 (22339 clicks) Tcl error: wrong # args: should be "duration seconds args"
<5> ;duration [unixtime]
<1> N86ers: #2280 (13310 clicks) Tcl: 36 years, 16 weeks, 3 days, 14 hours, 25 minutes, 1 second
<5> ;duration [unixtime]
<1> N86ers: #2282 (838 clicks) Tcl: 36 years, 16 weeks, 3 days, 14 hours, 25 minutes, 21 seconds
<5> ;binary format b5b* 11100 111000011010
<1> N86ers: #2285 (205 clicks) Tcl:
<5> ;concat "a b c"
<1> N86ers: #2286 (138 clicks) Tcl: a b c
<5> ;concat "a b c" { d e f }
<1> N86ers: #2287 (145 clicks) Tcl: a b c d e f
<5> ;subst {abc,[return foo;expr 1+2],def}
<1> N86ers: #2288 (173 clicks) Tcl: abc,foo,def
<5> is /ctcp VERSION and FINGER included in tcl?
<5> any bind or something for that?
<6> ctcp bind
<5> thx
<6> #
<6> CTCP (stackable)
<6> bind ctcp <flags> <keyword> <proc>
<6> proc-name <nick> <user@host> <handle> <dest> <keyword> <text>
<6> Description: dest will be a nickname (the bot's nickname, obviously) or channel name. keyword is the ctcp command (which can contain wildcards), and text may be empty. If the proc returns 0, the bot will attempt its own processing of the ctcp command.
<6> Module: server
<6> its in the docs
<5> but can i do like puthelp "NOTICE $nick :[VERSION]
<6> erm
<6> if you want to notice someone saying [VERSION] sure
<5> haha not that i mean
<5> i mean get the bot version a person
<6> puthelp "NOTICE [GRiMMY] :"
<6> hmmm lol
<6> when i did that i got versions from everyone
<6> well all the bots
<7> guess to works then :)
<7> *it
<6> lol
<6> it shouldn't have
<6> i didnt notice the chan or each bot
<6> i just pasted the line to use in the chan
<7> you found a bug.
<5> hehe
<5> puthelp "NOTICE N86ers :"
<5> LOOOOOOL
<5> WTF
<7> ha
<7> i just tried in another channel, same results.
<7> weird
<6> lol
<0> i guess they have a weird way of matching if its ctcp ot not :)
<0> btw. when i skipped the rest of it it looked like a normal ctcp i guess ;)
<3> [PASTE] RyanH just pasted code at http://paste.anbcs.com/4071 (none)
<8> some nasty code
<8> the problem area is the timer going to the backend chancheck and the trigger chanserv
<8> i need this to be more efficient than running a stinking timer
<8> backend:chancheck and trigger:chanservaxx1 and 2


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #eggtcl
or
Go to some related logs:

#computers
#computers
vote xpw forum
madisonsparx
#stocks
#politics
#windowsxp
karma kamelean
buy fw900
#winxp



Home  |  disclaimer  |  contact  |  submit quotes