This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 255 matches

by tomekk
Fri Sep 11, 2009 1:41 pm
Forum: Scripting Help
Topic: Delete all the lines in a .txt file
Replies: 2
Views: 2626

Code: Select all

set my_file [open "some_txt_file.txt" w]
close $my_file
by tomekk
Mon Sep 07, 2009 5:12 am
Forum: Scripting Help
Topic: [SOLVED]RSS Error: Unable to find tls package
Replies: 2
Views: 3172

You have to install this module manually. (or via some package manager if You are using some Linux)
by tomekk
Fri Sep 04, 2009 4:57 am
Forum: Script Requests
Topic: user profile script
Replies: 65
Views: 72234

if you want to make profile with just '!setup' command, open interviewer-addon-0.1.tcl in your fav. editor, and go to this proc: proc int_proc_setup { nick uhost hand chan arg } { and change the line: set profile_name [lindex [split $arg] 0] to: set profile_name $nick the same with update/remove pro...
by tomekk
Sun Aug 30, 2009 5:34 am
Forum: Script Requests
Topic: MySQL Profile Script
Replies: 21
Views: 21318

first file, interview-addon-0.1.tcl # Author: tomekk # e-mail: tomekk/@/oswiecim/./eu/./org # home page: http://tomekk.oswiecim.eu.org/ # # Version 0.1 # # This file is Copyrighted under the GNU Public License. # http://www.gnu.org/copyleft/gpl.html # config header and procs moved to mysql-profile-0...
by tomekk
Sat Aug 29, 2009 8:38 am
Forum: Script Requests
Topic: MySQL Profile Script
Replies: 21
Views: 21318

Okey, snippet, I can make this (I think this will be better than teasers), but this still will be nick based right? I mean, profile in the db: 'tomekk', now when some user with nick 'tomekk' joins the channel bot prints snippet for it, right? ($nick == $profile_name) Anyway, I will add an option for...
by tomekk
Fri Aug 28, 2009 10:55 am
Forum: Scripting Help
Topic: TCL regexp limitation?
Replies: 8
Views: 8001

I can always use couple of ranges, I mean (512 chars):

Code: Select all

[tomekk@zonk]:/home# echo "puts [regexp {^[a-z]{1,255}[a-z]{0,255}[a-z]{0,2}$} "<512 a chars in here>" ]" | tclsh
1
but this limitation is still funny ;)
by tomekk
Fri Aug 28, 2009 10:40 am
Forum: Scripting Help
Topic: TCL regexp limitation?
Replies: 8
Views: 8001

raider2k wrote:how about exec yourscript.php $var?
oh no way, it's stupid ;p
by tomekk
Fri Aug 28, 2009 10:31 am
Forum: Scripting Help
Topic: TCL regexp limitation?
Replies: 8
Views: 8001

found this on the web: RE_DUP_MAX, the limit on repetition counts in bounded repetitions, is 255. not really making sense if it works in php ... BUT, you are free to use puts [regexp {^[a-z]{1,}$} abcd] which works in my case and limits between 1 and unlimited hehe, I know about that, but I need to...
by tomekk
Fri Aug 28, 2009 10:13 am
Forum: Scripting Help
Topic: TCL regexp limitation?
Replies: 8
Views: 8001

yeah, I'm using TCL couple of years, but today is a first day when I used the range {1, 256} and I got this what I wrote above ;]
by tomekk
Fri Aug 28, 2009 9:53 am
Forum: Scripting Help
Topic: TCL regexp limitation?
Replies: 8
Views: 8001

TCL regexp limitation?

Hey, Look at this: [tomekk@zonk]:/home# php -r 'echo preg_match("/^[a-z]{1,256}$/", "abcd") . "\n";' 1 [tomekk@zonk]:/home# perl -e 'print "abcd" =~ /[a-z]{1,256}/ . "\n"' 1 tcl: [tomekk@zonk]:/home# echo "puts [regexp {^[a-z]{1,256}$} abcd]&quo...
by tomekk
Fri Aug 28, 2009 5:49 am
Forum: Script Requests
Topic: MySQL Profile Script
Replies: 21
Views: 21318

hey, I have the same problem like in this post: http://forum.egghelp.org/viewtopic.php?t=16626&postdays=0&postorder=asc&start=30 Don't you think that the nick only based teasers are kinda stupid? You know what I mean, example: user tomekk makes teaser 'tomekk', but after when I leave the...
by tomekk
Wed Aug 26, 2009 5:26 am
Forum: Script Requests
Topic: user profile script
Replies: 65
Views: 72234

first file, interviewer-addon-0.1.tcl # Author: tomekk # e-mail: tomekk/@/oswiecim/./eu/./org # home page: http://tomekk.oswiecim.eu.org/ # # Version 0.1 # # This file is Copyrighted under the GNU Public License. # http://www.gnu.org/copyleft/gpl.html # config header and procs moved to profile-0.*.t...
by tomekk
Mon Aug 24, 2009 11:15 am
Forum: Script Requests
Topic: MySQL Profile Script
Replies: 21
Views: 21318

ok, I will work on it ;)
by tomekk
Mon Aug 24, 2009 3:52 am
Forum: Script Requests
Topic: user profile script
Replies: 65
Views: 72234

100 words? maybe 100 chars? :P for each field? You mean location < 100 word, sex < 100 words or for them together < 100 words? // 0.5 version will be new, I will use my interviewer addon in it, you will be able to make setup, update, remove etc. all with authentication with profile keys, http://foru...
by tomekk
Thu Aug 20, 2009 2:47 pm
Forum: Scripting Help
Topic: calculating time
Replies: 3
Views: 2890

# tomekk, http://forum.egghelp.org/viewtopic.php?t=17119 bind pub -|- !time make_time proc make_time { nick uhost hand chan arg } { set arg [lindex [split $arg] 0] if {[regexp {^[0-9]+$} $arg]} { set cdate [clock format [expr [clock seconds] + [expr $arg * 60]] -format "%H:%M %d/%m/%Y"] p...