@# Quotes DB     useful, funny, interesting





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



Comments:

<0> what would be an easy way to open a file and return a random line to a channel
<1> if the file is small, read in entire file to variable
<1> split on \n
<1> do rand on llength of the split output
<1> then lindex out the random line
<1> and puts to channel
<0> chillla
<0> its a long file split by \n;s
<0> i dont think reading it into a variable is gonnabe good
<0> chilla, even
<1> then maybe you need to put the stuff in a database
<0> it is
<0> but its oracle
<0> i have the input way write to both
<2> =)



<3> how can i validate that a user inputs data in a 00:00 format?
<4> [PASTE] spooky just pasted code at http://paste.anbcs.com/3983 (validate input 00:00)
<3> is there a cleaner way to do that?
<5> I dont quite see what you are trying to do
<5> you might wanna try regexp {^[0-9]{1,2}:[0-9]{1,2}$}
<6> hehe exactly what i thought
<3> how would i use that?
<3> n/m
<3> thanks =]
<3> would
<3> ack
<3> ot
<3> it's not possible to compile a tcl script into an executeable is there?
<2> =)
<6> wooo
<6> i was meditating
<2> You were SLEEPING!
<6> hehe
<6> cant sleep at desk too many kb's happen
<6> same with typing on forums while drunk
<2> o_O
<6> lol people piss me off
<6> i just take it better when i am sober
<2> =)
<6> yup so how is mr FireEgl doing?
<2> I'm good. =)
<7> god damnit
<7> why does my Apache start lagging when i include the rivet module?
<8> works fine here :>
<1> [06:01] <3> it's not possible to compile a tcl script into an executeable is there?
<1> there's some "wrapper" tools out there
<8> freewrap is the easiest
<1> which will make an executable with the interpreter embedded
<1> file size will be pretty big though
<1> there's starkit, starpack which i haven't used much myself
<1> for commercial distribution, i'd recommend you get activestate's "compiler" (in their dev kit)
<1> it's easy to use, especially when dealing with packages
<8> starkit would require u to install it to use the files :>
<9> starkit only requires tclkit which is a 1mb download
<9> it's by far the best choice
<9> compare it to java runtime enviroment which is a 15mb download
<9> or .net framework
<7> well... still
<7> freewrap makes it stand-alone
<7> not dependant of anything
<7> so if that is what you want, then that would be the best choice
<7> BL4DE: you runnin it on linux/bsd or win?
<9> the difference being that you only need to download tclkit once, but if you wrap your script with freewrap you need to download the interprenter part every time
<9> if you have several programs
<9> s/interprenter/interpreter
<8> win
<7> hrm
<9> that's another difference, if you use freewrap it will only work on windows, wheras tclkit works on virtually any platform tcl runs on
<7> dunno why it's crapping on me
<8> u can also wrap it for linux afaik .)
<9> still that's only 2 platforms
<7> [Fri Feb 10 17:40:14 2006] [error] (2)No such file or directory: init.tcl must be installed correctly for Apache Rivet to function: can't find package RivetTcl 1.1
<8> when u wrap it its because u want to make it userfriendly, so now we can get into the discussion if its needed to wrap it for any other platforms
<7> wooot



<6> i thought you wraped too keep the bumps away
<8> bumps ?
<9> you could just create an installer for tclkit if you're worried about stupid end-users
<6> lol nvm BL4DE
<6> bumps ... std's
<6> but that joke is p00f now so get back too your convo and i'll continue idling :D
<8> u BETTER not idle
<8> why would u idle when u can play space invaders... TCL edition ?
<6> what
<6> omg
<6> hehe checks it out
<6> hahaha
<6> godbless TCL
<8> yep
<6> i need too get on too tk but i have been in a slump
<7> BL4DE: do you use ActiveTcl?
<8> not for rivet
<6> woow
<6> haha
<6> you can fire once on puase
<7> what do you use?
<6> pause even
<9> space invaders ****s :p
<8> just the normal one, but i guess activetcl is more or less just a compiled ver of that :)
<9> gimme pong.. tcl edition instead!
<8> hey, that was actully an idea for a game
<8> made the moving around blob, seems rather boring when there's no gameplay
<9> or arkanoid!
<8> its already made :)
<9> oh?
<8> its with the activetcl package :)
<6> what
<6> where
<8> Tcl\demos\TclApps\apps\breakout\breakout.tcl
<6> well probably those dirs i never looked on cuase this is my winbox
<8> guess that's what u were thinking of
<6> ya /me goes looking
<7> it SHOULD work using ActiveTcl
<8> it should.... :)
<8> "in theory that's how this works"
<7> gawd damnit
<7> i've had it running earlier
<6> wtf
<6> i dont have no breakout
<9> any place to get it without having to download activetcl?
<6> i lied
<7> get what?
<6> i was looking in devkit
<9> arkanoid
<6> haha frogger
<10> guys!
<10> i've already decided for the 10000000 times to switch to linux
<10> it's final! this time
<7> haha
<7> now you've said it
<7> and it must be kept
<10> :/
<10> the worse thing will be, if i installed linux, is that i will spend most of the following days in #linux* channels.
<8> Pixelz
<7> most likely will
<7> why you wanna merge?
<9> BL4DE
<8> u wanted the game ?
<9> sure
<10> to become real! ":P
<8> which distro ?
<4> [PASTE] BL4DE just pasted code at http://paste.anbcs.com/3985 (breakout.tcl)
<10> me?
<7> **** dat, man
<8> ies u :)
<7> have a dedicated server on the side
<7> that'll be sufficient
<10> hehe i didn't decide yet
<10> ":P


Name:

Comments:

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






Return to #tcl
or
Go to some related logs:

#windowsxp
kawfee religion
#delphi
#computers
#politics
#beginner
#windowsxp
Dodge Charger General Sherman
uglyfatcunts
#mirc



Home  |  disclaimer  |  contact  |  submit quotes