| |
| |
| |
|
Page: 1 2 3
Comments:
<0> is it possible to get a users host using tcl without that user being in the channel? (alternative to getchanhost) <1> u have to whois them and grab it that way <2> yes, send a userhost or whois command and capture the raws <2> and try #eggtcl next time <0> oh gawd <0> i usually go to eggtcl <0> was a screw up on my part, used -j on accident <0> lawl, sorry <0> wondered when teh topic was different :) <0> thanks <3> [PASTE] N86ers just pasted code at http://paste.anbcs.com/3995 (Well paste it again =)) <4> gah wrong chan <5> score <6> =) <1> you just want attention
<6> it's true =( <7> hey! <7> you have my attention everytime i rehash <8> set myLocations [exec "find \$HOME -name filename | grep -v tar.gz"] <8> why does that not work? <7> + exec <7> anyway its <7> exec arg arg arg arg <8> i tried it with out the " " also <1> i had some probs with exec too, ended up writing it to a file and execing that instead :> <8> that's kinda dirty no? <1> not THAT dirty <8> set myLocations [exec findLocations] ? <3> set -> http://www.tcl.tk/man/tcl8.4/TclCmd/set.htm <8> then put what i was trying to exec in a findLocations? <9> BL4DE your face smells nice <1> i highly doubt that <10> pipes don't work the same way from the 'exec' command as they do from a shell <9> ya you might wanna write shell script for bigger commands <9> let it output results <9> thats how I would do it <9> lol <1> doesnt make it less dirty you say it :) <9> dirty isnt always bad <9> :D <9> yoe's recent absence has currently drawn my attention <9> can anyone clearify <8> the problem is the $HOME <7> not set in enviroment? <8> i tried to \ it out <8> set locations [exec find ../[exec whoami] -name filename] <8> ;] <8> and the pipe works <9> thats spooky <8> ?? <9> are you in denial <8> ya lost me <11> denial? is that in egypt? <9> please I dont have time to deal with your geographical issues <8> lol <8> set myLocation [exec find $env(HOME) -name filename | grep -v tar.gz] <8> ;D <8> i like that better <9> http://70.86.201.113/imageserv2/temporary/PBF085ADLumberjack.jpg <9> funny <8> lmao <8> can you have more than one match string per case in a switch <8> switch $myVar { y,Y { .. } n,N { .. } } <12> switch -regexp <8> ? <12> ;switch -regexp "n" { {n|N} { puts 1 } {y|Y} { puts 2} } <13> Robb: #558 (stdout) 1 <12> ;switch -regexp "Y" { {n|N} { puts 1 } {y|Y} { puts 2} } <13> Robb: #559 (stdout) 2 <12> ;switch -regexp "N" { {n|N} { puts 1 } {y|Y} { puts 2} } <13> Robb: #560 (stdout) 1 <8> nice <8> thanks bro =] <12> np <6> spooky.. You can also do like: <6> switch -- "Y" {
<6> {N} - {n} { puts 1 } <6> {Y} - {y} { puts 2 } <6> } <13> FireEgl: #565 (stdout) 2 <14> ? list <13> list -> http://Tcl.Tk/man/tcl8.5/TclCmd/list.htm <14> ;list ab "" <13> anc-: #642 (177 clicks) Tcl: ab {} <14> ;list $ab "" <13> anc-: #643 (22608 clicks) Tcl error: can't read "ab": no such variable <14> set ab "" <14> ;set ab "" <13> anc-: #645 (141 clicks) Tcl: <14> ;lappend ab test <13> anc-: #646 (182 clicks) Tcl: test <14> ;lappend ab test <13> anc-: #647 (161 clicks) Tcl: test test <14> ;lappend noname sfd <13> anc-: #648 (174 clicks) Tcl: sfd <14> is it possible to use arrays inside arrays <15> think so <16> not really <1> easily <1> compared to multidimential arrays which aint really possible :> <9> array get and array set are your friends <14> ok <14> or well friends would be a shame to say :) <14> more like enemies <9> ;p <7> uhm <7> there was that trick for multidimensional arrays <1> a TRICK yes, but it ISNT multidimensional :) <7> whats multidimensional anyway m8 :) <17> lol <1> u should know what it is :) <7> i know what it is <7> but what(thing) really is multidimensional <7> after all in the end its all just 1 and 0 <7> so if it looks like multidimensional <7> and behaves like multidimensional <15> 3rd millennium philosopher? <15> ^^ <1> tcl doesnt recon them as multidimensional, that's the whole point i suppose <18> if it looks like a trap <18> and behaves like a trap <18> http://www.fivedigits.net/pix/phun/itsatrap.jpg <19> set array(x,y,z) float; ... array get array *,y,* ... <18> ;subst \xa0 <13> Pixelz: #742 (1994 clicks) Tcl: <18> ;subst \xa0a <13> Pixelz: #743 (159 clicks) Tcl: <18> ;subst \xa0b <13> Pixelz: #744 (155 clicks) Tcl: <18> ;subst \xa0ba <13> Pixelz: #745 (162 clicks) Tcl: <18> what the hell? <18> shouldn't it just stop after 2 chars? <18> or am I missing some kind functionality with \x<4 chars> <18> works if I use \uxxx obviously <18> \uxxxx even <7> chinese <18> chinese? <19> sure, its as the manual said :) http://tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M26 <18> where does it say that? <19> \xhh <19> The hexadecimal digits hh give an eight-bit hexadecimal value for the Unicode character that will be inserted. Any number of hexadecimal digits may be present; however, all but the last two are ignored (the result is always a one-byte quantity). The upper bits of the Unicode character will be 0. <19> \uhhhh <19> The hexadecimal digits hhhh (one, two, three, or four of them) give a sixteen-bit hexadecimal value for the Unicode character that will be inserted. <18> yes, but where does it say that \xhh<other character> doesn't always work <18> ;subst "\xa0 \xa0b" <19> it use the last 2 chars that match a hex <13> Pixelz: #789 (158 clicks) Tcl: <19> ; scan \xa0b %c
Return to
#tcl or Go to some related
logs:
AAPL CALLS
#beginner #nhl xanax with weed #unix #windows #computers #freebsd #hardware psybnc reconnect
|
|