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 963 matches

by stdragon
Tue Jun 15, 2004 11:58 pm
Forum: Archive
Topic: http geturl 'limiting'?
Replies: 11
Views: 3662

I'm pretty sure Range will work with any file, but you have to be using http 1.1. Normally the http package uses http 1.0. So you have to modify it a bit. Find the 1.0 and change it to 1.1. You might have to add a bit to it too, like the Host header (I think) and Connection: close.
by stdragon
Tue Jun 15, 2004 3:36 pm
Forum: Archive
Topic: http geturl 'limiting'?
Replies: 11
Views: 3662

Another thing is to use the regular form and send the http byte range request header.

It's like:

Range: bytes=0-100
by stdragon
Fri Jun 11, 2004 1:17 pm
Forum: Archive
Topic: freebsd and ^M linebreaks while echoing text file to channel
Replies: 7
Views: 2656

Yeah it's not really "^M" it's "\r" or something.
by stdragon
Sat May 29, 2004 11:33 pm
Forum: Archive
Topic: bug with "clock clicks -milliseconds"
Replies: 3
Views: 1908

Well, I think using abs() will solve the problem.

set temp "[expr abs([clock clicks -milliseconds] - $ping) / 1000.0]"
by stdragon
Thu May 20, 2004 10:07 pm
Forum: Archive
Topic: timer id within namespace problem
Replies: 3
Views: 1275

Extra [ ], or missing "list" maybe?
by stdragon
Wed May 12, 2004 7:59 am
Forum: Archive
Topic: Fileevent problem..
Replies: 12
Views: 2288

Why don't you add some putlogs to it? It seems to me like it will run continuously, because you never read from it. As long as there is data to read, you don't have eof.
by stdragon
Wed May 12, 2004 6:29 am
Forum: Archive
Topic: Fileevent problem..
Replies: 12
Views: 2288

You're never reading from the file.
by stdragon
Tue May 11, 2004 8:52 am
Forum: Archive
Topic: working with a file
Replies: 6
Views: 1378

Example bind: bind pub - !baa myproc Example of defining a proc: proc something {a b c} { # your code here } Example of opening a file: set fp [open file] Example of reading the lines: set lines [split [read -nonewline $fp] "\n"] Example of closing a file: close $fp Example of foreach: for...
by stdragon
Tue May 11, 2004 2:10 am
Forum: Archive
Topic: working with a file
Replies: 6
Views: 1378

Put your hostmasks into a file with a text editor. Make a bind for the !stocklist command with the "bind" command, probably with the "pub" binding. Check the tcl-commands.doc that comes with eggdrop. To see if the user's hostmask is in the file, open up the file ("open"...
by stdragon
Tue May 11, 2004 1:03 am
Forum: Archive
Topic: socket to file
Replies: 8
Views: 1352

You should have a flush after the puts. Also, you're not sending a valid http request... there should be headers and a blank line after the headers. At the minimum you need another \n. And a flush.
by stdragon
Sun May 09, 2004 4:21 pm
Forum: Archive
Topic: socket to file
Replies: 8
Views: 1352

I already suggested not making it nonblocking... get rid of the -blocking 0 arg. I'm not sure it will work but at least try it and see what happens.

Also add some debugging statements so you can see what's happening.
by stdragon
Sat May 08, 2004 6:19 pm
Forum: Archive
Topic: socket to file
Replies: 8
Views: 1352

Another thing -- you set the socket to be nonblocking, but then you try to read it in a while loop. Either don't make it nonblocking, or use fileevent to read from it.
by stdragon
Fri May 07, 2004 8:46 pm
Forum: Archive
Topic: crc check of a file..
Replies: 18
Views: 3186

Why don't you read the file and use eggdrop's md5 command?
by stdragon
Mon May 03, 2004 4:38 pm
Forum: Archive
Topic: Somebody know any other faster method to update a file
Replies: 2
Views: 954

What do you mean by faster? Do you mean less code or less cpu?

With your example, name3 was the last name. Do you always want to update only the last name?
by stdragon
Mon May 03, 2004 4:32 pm
Forum: Archive
Topic: Problem with "puts" to sock
Replies: 6
Views: 1374

First, you don't need to flush the socket every time through the loop. Once after the loop would be fine. Second, why such a big buffersize? Puts will increase the buffer as it needs it, so you shouldn't need to set such a big one initially. Third, the problem could easily be somewhere else. Where d...