@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> you have to define it further
<1> ;set match {joto chorro}
<2> nick___: #1583 (242 clicks) Tcl: joto chorro
<1> ;if { [regexp -nocase $match "joto con chorro"] } { puts "keke" }
<2> nick___: #1584 (13466 clicks) Tcl:
<1> ;regexp
<2> nick___: #1585 (471 clicks) Tcl error: wrong # args: should be "regexp ?switches? exp string ?matchVar? ?subMatchVar subMatchVar ...?"
<1> ;if { [regexp -nocase $match "joto chorro"] } { puts "keke" }
<2> nick___: #1586 (stdout) keke
<1> something like, just make a nice regexp pattern to match your needs
<3> this highlight me everytime ;)
<1> well you had the most ugly nick on irc I have seen in a while
<1> using {} \ \
<3> this was only testing and not set back
<3> and its good for testen ;)



<3> s/testen/testing
<1> yeh good to teste your parsing I bet
<4> nick___ thanks
<1> might be better to check if [regexp] != -1 - since I believe it may return 0 also when it has found something
<5> nope [regexp] returns => 1 on matches, 0 on no match
<6> -inline will return {} on no matches or matches on match
<4> that part of the code that nick___ pasted works excellent, but i can't seem to figure it out if i want to search for something within a string, like a filename... (for example filename = windows.is.my.favorite.os; i want it to return 1 if the search pattern is "favorite" "my" "windows", etc...) anyway to do that?
<4> or if there is a sensable readme somewhere, that would prolly be more beneficial
<4> thanks guys
<7> =)
<8> fbsql.so error Undefined symbol "__strtol_internal" during load, any ideas?
<9> didn't your mother teach you to define your symbols?
<9> kids these days...
<8> haha, you have any ideas m8?
<10> #include <stdlib.h>
<10> #include <limits.h>
<8> right now im trying to compile it again, with mysql4.1
<10> that will fix it
<8> oh really
<10> obviously
<8> maybe im not compiling for the 200th time
<9> sounds to me like you're not using sqlite like you should
<8> well im not a c programmer lol, so ignore the ignorance
<8> sqlite, use the lib's and includes from it instead?
<9> sqlite is self-contained, it doesn't require any libs
<8> hmm then how would i go about compiling fbsql for it?
<10> sure it does
<10> like libc
<9> well, it doesn't require any external dependencies
<8> okay does sqlite have anything to do with fbsql?
<9> no
<8> because from what im understanding from sqlite site, is that it comes with its own
<8> ahh lol
<8> trying to confuse me ;)
<9> what I mean is, instead of using mysql and fbsql you could just use sqlite instead
<8> sqlite run on windows?
<9> sure
<8> my eggs are on dedicated linux box's, but im too cheap to pay for more process's
<8> hmm
<8> i might be able to do this :)
<8> lol
<8> would require complete re-write of everything tho
<9> just get fbsql to compile then
<8> been trying that for days now m8
<8> but one more compile wont hurt anything lol
<8> okay time to cross your fingers lol
<8> bah helps to upload the right file lol
<8> Undefined symbol "__strtol_internal" damn same error
<8> with #include <limits.h>
<8> :S
<8> sqlite here i come!
<8> are there any mirrors for sqlite?
<8> the damn links are timing out lol
<8> nevermind found a mirror
<8> omg im going to cry now
<8> tclsqlite-3.3.0.so: Undefined symbol "stdout"



<11> ok... this is really bugging me
<11> i have a script that uses http.tcl
<11> i am saving a page to a file
<11> (or trying to)
<11> when i do http::geturl $turl -channel $ptopic, i get an "object moved" page saved
<11> when i do http::geturl "http://www.moddin.net/forum/topic.asp?whichpage=0.8&TOPIC_ID=6155&#59705"; -channel $ptopic, it works just fine
<11> but the variable $turl is set to exactly the same thing that I typed in quotes
<11> why wont it work
<11> ok... i may have solved that on my own
<12> How can I make TCL put out lots of money and create happiness just for me? :D
<13> is there a way to run a tcl script in debug mode
<13> ?
<5> uhm.. add a variable called "debug" or something, and add some debugging lines like... if {$debug} { puts "DEBUG: $variable" }
<14> tikall_of: depends on what you want to debug, you might also want to read about the trace command, the tclx debugging commands are also handy
<15> ;for {set x 1} { $x > 5 } {incr x} { puts "$x" }
<2> anc: #1752 (545 clicks) Tcl:
<15> ;for {set x 1} { $x > 5 } {incr x} { puts $x }
<2> anc: #1753 (552 clicks) Tcl:
<3> $x < 1 (must be true)
<15> ;for {set x 1} { $x < 5 } {incr x} { puts $x }
<2> anc: #1755 (stdout) 1
<2> anc: #1755 (stdout) 2
<2> anc: There's 8 lines, but I'm not gonna show you the rest of them! =P
<15> is 5 included ?
<15> ;puts $x
<2> anc: #1757 (stdout) 5
<15> k
<15> ;foreach i "test1 test2" { for {set x 1} { $x < 2 } {incr x} { $i $x } }
<2> anc: #1759 (4734 clicks) Tcl error: invalid command name "test1"
<15> ;foreach i "test1 test2" {
<15> ; for {set x 1} { $x < 2 } {incr x} { puts "$i $x" }
<15> ;}
<15> ;foreach i "test1 test2" { for {set x 1} { $x < 2 } {incr x} { puts "$i $x" } }
<2> anc: #1760 (stdout) test1 1
<2> anc: #1760 (stdout) test2 1
<2> anc: There's 4 lines, but I'm not gonna show you the rest of them! =P
<15> isnt it possible to have two for / foreach running in some way
<15> foreach i [split $q4modes] {
<15> if { $i == $mod(1)} { set modeselected $mode1 }
<15> if { $i == $mod(2)} { set modeselected $mode2 }
<15> this looks clumsy
<15> id like to replace mod(1) with like mod($x)
<12> use switch?
<15> oh never used that commdand before
<12> switch ?
<16> switch -> http://www.tcl.tk/man/tcl8.4/TclCmd/switch.htm
<2> switch -> http://Tcl.Tk/man/tcl8.5/TclCmd/switch.htm
<15> ok
<17> .tcl format
<2> poci: #1767 (434 clicks) Tcl error: wrong # args: should be "format formatString ?arg arg ...?"
<17> .tcl format %d 0xabcd
<2> poci: #1768 (202 clicks) Tcl: 43981
<17> .tcl regexp {(.{2}.{2}.{2}.{2})} 11223344 "" a b c d
<2> poci: #1790 (905 clicks) Tcl: 1
<17> .tcl set a
<2> poci: #1791 (193 clicks) Tcl: 11223344
<17> .tcl set b
<2> poci: #1794 (180 clicks) Tcl:
<17> .tcl regexp {(.{2}?)(.{2}?)(.{2}?)(.{2}?)} 11223344 "" a b c d
<2> poci: #1798 (9111 clicks) Tcl: 1
<17> .tcl set b
<2> poci: #1799 (172 clicks) Tcl: 22
<18> how can i tell tcl to look for an env variable i set
<18> ?
<18> i mean if i add an env variable in xp....
<18> and i wanna read its value inside a tcl script what do i have to write in the script
<18> _?


Name:

Comments:

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






Return to #tcl
or
Go to some related logs:

alexander gopp
i'm a scatman mp3
#computers
#gentoo
#gentoo
#unixhelp
#nhl
#stocks
#computers
who sings marijuanaville



Home  |  disclaimer  |  contact  |  submit quotes