| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> not sure i can <1> <h5>(.{1,100})</h5> <1> like cant you grab all between the tags? <1> <h5>(.*?)</h5> <0> umm <0> i am not a regexp pro :P <1> me neither <1> :) <0> i cant use (.*?) <0> it needs to have a limit <1> ah <0> http://www.bbc.co.uk/radio1/chart/singles.shtml <0> else it will take all document :P <1> ;p <0> anyway enough regexp for tonite <1> :)
<0> thanks again <1> np <2> http://paste.tclhelp.net/?id=4qc <-- whats wrong with that code.. then it paste someting on the irc channel from the mysql database is it in {} .. like {Team NEK powered by Steelseries.com} :/ do i need to paste anything in the mysql database to get them removed or edit something in the tcl code? <3> can I do a multiline command in TCL? <3> with a \ at the end of the line maybe? :) <4> i dont get what you mean <3> like ::mysql::connect -user myuser \ <3> -p***word p*** \ <3> -host myhost.blubb.com <3> like in shell scripts :) <3> yeah, seems that works <4> why do you want to do that? <3> for better readability <5> How can I make an if, when I get this error <5> can't read "date": no such variable <6> check first with "info exists varname" if $date exists and then "if {$date == "bla"} {" <4> http://rainbow.sytes.net/test/temp/O012.txt <4> . [GRiMMY] :) <7> hmm, the part with the 2 grids is just weird :) <7> (in the sample) <2> http://paste.tclhelp.net/?id=4qc <-- whats wrong with that code.. then it paste someting on the irc channel from the mysql database is it in {} .. like {Team NEK powered by Steelseries.com} :/ do i need to paste anything in the mysql database to get them removed or edit something in the tcl code? <4> are you questioning my ASCII skills? <4> :] <7> me ? :) <7> oh <7> i get it now <7> damn im slow <3> when I use namespace eval myns { variable foo; set foo(bar) "xy"; } <3> shouldn't I then be able to access ::myns::foo(bar) ? <3> from any namespace <7> mmmmmmmmmmmmmmmmm <3> actually I tried array foo { bar "xy" }, but that shouldn't make any difference <3> I think I even tried both <7> hmm <7> u variable it <7> and make it an array <7> b000000000000h <3> lol <3> why= <3> it actually says so in the tcl documentation <3> http://www.tcl.tk/man/tcl8.4/TclCmd/variable.htm <3> right here <3> "Create an array in a namespace:" <3> array set actually... but that was obvious ;) <7> variable ::someNS::someAry <7> as u can see it is named something like that ;) <3> hmm <3> yeah <3> so? <3> what's your point? :) <7> according to the manual it should work <7> ; namespace eval myns { variable foo; set foo(bar) "xy"; }; puts ::myns::foo(bar) <8> BL4DE: #5080 (stdout) ::myns::foo(bar) <7> ; namespace eval myns { variable foo; set foo(bar) "xy"; }; puts $::myns::foo(bar) <8> BL4DE: #5081 (stdout) xy <3> bah :) <7> ; namespace eval myns { variable foo; set foo(bar) "xy"; }; puts $::myns::foo(bar); upvar ::myns::foo smooke; puts $smooke(bar) <8> BL4DE: #5083 (stdout) xy <3> hmmm <8> BL4DE: #5083 (755 clicks) Tcl error: bad level "::myns::foo" <7> im just bored ;)
<3> when I use a source command inside a namespace eval block... <3> it gets evalled in that context? <3> that could be the catch :D <7> yep <7> well, if u trust, dont catch <7> not pokemon <7> often if u have to catch you're doing something u suspect of causing an error <7> lreplace ? <9> lreplace -> http://www.tcl.tk/man/tcl8.4/TclCmd/lreplace.htm <8> lreplace -> http://Tcl.Tk/man/tcl8.5/TclCmd/lreplace.htm <7> __Gotisch <4> BL4DE <7> u working on the link u pasted ? <4> theoretically <7> so u aint gonna write a solution ? :) <4> sure i am <4> just not now :P <4> ill do it later <7> oke <7> have to compare my **** with someone <10> __Gotisch, where are you? <7> damn, that was easy __Gotisch <4> it was? <7> im done <7> took.... 2 hours ? <7> more or less intense ;) <10> lol <10> dood, you gotta do 3 of them questions in 3 hours lol <10> 2 hours is > that the time you got <7> aww :( <3> file ? <9> file -> http://www.tcl.tk/man/tcl8.4/TclCmd/file.htm <8> file -> http://Tcl.Tk/man/tcl8.5/TclCmd/file.htm <3> hmm <3> no "file temp" ?:) <3> too bad <10> lol <3> whaT? :D <10> what you need it for? <3> to create a temporary file :) <10> instead of using a temp file... use an array? <3> hm <10> tempinfo(line1) <10> tempinfo(line2) <10> tempinfo(line3) <10> or just 1 2 3 as indices <3> mhm <3> the lines are tcl commands <10> much better way <3> how do I escape them right? <7> well, grimmy, lets see how fast you are ;) <10> set tempinfo(1) {set variable "info"} <8> [GRiMMY]: #5135 (184 clicks) Tcl: set variable "info" <3> hah <3> that was an easy one :P <3> what if they contain braces and brackets? <10> escape them... <10> ;subst $tempinfo(1) <3> set tempinfo(2) {proc binder_$command { nick uhost hand chan text } {\n} <8> [GRiMMY]: #5140 (172 clicks) Tcl: set variable "info" <10> hmmm <10> susbt ? <11> BL4DE: I've written a solution to that thing <10> subst ? <9> subst -> http://www.tcl.tk/man/tcl8.4/TclCmd/subst.htm <8> subst -> http://Tcl.Tk/man/tcl8.5/TclCmd/subst.htm <8> [GRiMMY]: #5144 (146 clicks) Tcl: ? <11> with the 2 grids <10> thommey, how long it take you? <10> Obeliks... <3> [GRiMMY]... <11> 45 minutes <10> set tempinfo(2) [subst -novariables -nocommands {proc binder_$command { nick uhost hand chan text } {\n}] <10> set tempinfo(2) [subst -novariables -nocommands {proc binder_$command { nick uhost hand chan text } {}]
Return to
#tcl or Go to some related
logs:
#winxp #computers r3n4t0 #politics #windowsxp #politics #barcelona #stocks #nintendo #winxp
|
|