#tfl@irc.freenode.net logs for 14 Nov 2006 (GMT)

Archive Today Yesterday Tomorrow
tfl homepage

[01:06:20] <-- dragonBot has left IRC ("We have visual confirmation of the missile...")
[01:13:23] <-- ChanServ has left IRC (lem.freenode.net irc.freenode.net)
[01:13:24] <-- Kirben has left IRC (lem.freenode.net irc.freenode.net)
[01:13:24] <-- wizardrydragon has left IRC (lem.freenode.net irc.freenode.net)
[01:13:49] --> wizardrydragon has joined #tfl
[01:13:49] --> Kirben has joined #tfl
[01:13:49] --> ChanServ has joined #tfl
[01:33:48] --> Marzo has joined #tfl
[01:33:48] --- ChanServ gives channel operator status to Marzo
[01:34:02] <Marzo> Hi again
[01:34:42] <wizardrydragon> Moo
[01:35:41] <Marzo> The page is going fine, BTW
[01:35:56] <Marzo> My ISP died today, which is why I disappeared
[01:36:28] <wizardrydragon> Ah
[01:36:36] <wizardrydragon> Figured something like that happened
[01:36:40] <Marzo> Yes
[01:37:10] <Marzo> I still haven't sent anything because I am still tweaking the code
[01:37:48] <Marzo> Making it easier to add a download, things like that
[01:40:28] <wizardrydragon> Hehe
[01:40:52] <Marzo> All that is left is the Exult Mods page now
[01:41:27] <Marzo> The UCC and Icon pages auto-add the docs it finds in the proper dir and get a very small amount of info from the data file
[01:41:49] <Marzo> The Mods page still requires me to add the file manually
[01:42:50] <wizardrydragon> huh
[01:42:55] <wizardrydragon> dragonBot wont start
[01:43:00] <Marzo> :-)
[01:43:09] <Marzo> .NET to the 'rescue' :-p
[01:45:27] * wizardrydragon stabs Marzo in the face
[01:45:37] * Marzo dodges
[01:52:37] * wizardrydragon sighs.
[01:52:44] <wizardrydragon> More array index problems.
[01:52:52] <wizardrydragon> //add a thread for main process
[01:52:52] <wizardrydragon> numThreads++;
[01:52:52] <wizardrydragon> Array::Resize(threads, numThreads);
[01:52:52] <wizardrydragon> ThreadStart^ coreThread = gcnew ThreadStart(this, &Form1::Run1);
[01:52:53] <wizardrydragon> this->threads[numThreads--] = gcnew Thread(coreThread);
[01:52:55] <wizardrydragon> this->threads[numThreads--]->Start();
[01:54:17] <Marzo> You know that the numThreads-- means that numThreads will be decremented *after* the line is executed, right?
[01:54:34] <wizardrydragon> In either event it shouldnt be out of bounds
[01:54:44] <Marzo> Also, numThreads-- actually decrements numThreads
[01:54:45] <wizardrydragon> array is 2 elements
[01:54:51] <wizardrydragon> numThreads == 1
[01:55:13] <wizardrydragon> 2nd element should be 1
[01:55:16] <Marzo> If numThreads is 1:
[01:55:21] <wizardrydragon> 2nd elemebt shouldnt be out of bounds >_>
[01:55:21] <Marzo> After this line:
[01:55:23] <Marzo> this->threads[numThreads--] = gcnew Thread(coreThread);
[01:55:28] <Marzo> numThreads is now 0
[01:55:42] <Marzo> And after this line:
[01:55:43] <Marzo> this->threads[numThreads--]->Start();
[01:55:47] <wizardrydragon> Hmm
[01:55:48] <Marzo> numThreads is -1
[01:56:11] <wizardrydragon> It wasnt working with -1 so I tried that :|
[01:56:21] <Marzo> Like I said, numThreads-- decrements the value of numThreads
[01:56:39] <Marzo> numThreads-- is not equal to numThreads-1
[01:57:05] <Marzo> I suppose that what you want to use is the latter
[01:57:37] <wizardrydragon> Mmhmm
[01:58:03] <Marzo> To be more specific:
[01:58:10] <Marzo> this->threads[numThreads--] = gcnew Thread(coreThread);
[01:58:19] <Marzo> This is equal to the following lines:
[01:58:23] <Marzo> this->threads[numThreads] = gcnew Thread(coreThread);
[01:58:33] <Marzo> numThreads--;
[02:02:56] --> dragonBot has joined #tfl
[02:02:56] --- ChanServ gives voice to dragonBot
[02:03:10] <wizardrydragon> !dragonBot diagnose
[02:03:12] <dragonBot> I am currently working. Connected to: [irc.freenode.net] Channels (2) #wikipedia-spam-t #tfl Threadcount: [3] Flood delay: [2000].
[02:03:35] <Marzo> 1 core threads + 1 per channel, right?
[02:03:45] <Marzo> *threads->thread
[02:03:55] <wizardrydragon> +1 for each intensive command
[02:03:59] <Marzo> Right
[02:03:59] <wizardrydragon> of which there are none right now
[02:04:04] <Marzo> Which are?
[02:04:07] <Marzo> Oh
[02:04:14] <Marzo> You anticipated my question
[02:04:16] <Marzo> :-)
[02:05:03] <-- dragonBot has left IRC (Remote closed the connection)
[02:11:12] <wizardrydragon> killkillkillkill
[02:11:20] <Marzo> lol
[02:13:06] <wizardrydragon> killkill
[02:13:24] <Marzo> It is only funny the first time ;-p
[02:13:24] * wizardrydragon describes his debugging method as "violent"
[02:15:35] <wizardrydragon> Moo?
[02:16:03] * Marzo thinks wizardrydragon has contracted the 'mad cow' disease
[02:16:10] <wizardrydragon> lol
[02:16:16] <Marzo> Or maybe the 'mad as a cow' disease :-)
[02:16:23] <wizardrydragon> :D
[02:16:34] <wizardrydragon> OMGNEWERRORMESSAGEYAY
[02:16:39] * wizardrydragon sighs.
[02:18:08] <Marzo> What happened now?
[02:19:47] <wizardrydragon> Threading exception.
[02:24:48] <wizardrydragon> This should work, non?
[02:24:49] <wizardrydragon> if (name == user && (user == "wizardrydragon" || user == "Marzo"))
[02:25:37] <Marzo> With STL Strings, it should; I don't know about .NET Strings
[02:25:54] <Marzo> And if name is a char[] or char *[], not
[02:25:59] <Marzo> *not->no
[02:26:17] <wizardrydragon> String ^name = Regex::Replace(text, "^.*:(?<it>.*?)!n=.*$","${it}");
[02:26:17] <wizardrydragon> String ^user = Regex::Replace(text,"^.*?auth <(?<2>[\\w\\s]*)>.*?$","${2}");
[02:27:44] <Marzo> Can you post a sample of the kind of string which text is supposed to look like?
[02:28:45] <wizardrydragon> !wizardrydragon@mediawiki.net PRIVMSG #tfl !fdragonBot auth wizardrydragon
[02:29:20] <Marzo> You can try String::Compare(name, user)
[02:29:39] <Marzo> And are you sure that the regexes are right?
[02:29:47] <wizardrydragon> It is working, but it's not working as the logical operators are working
[02:29:59] <wizardrydragon> *are suppost to work
[02:30:09] <wizardrydragon> Yes, the vars have the right value
[02:30:33] <Marzo> It is possibly because the .NET strings don't work much like STL strings then
[02:30:49] <wizardrydragon> Bah
[02:31:09] * wizardrydragon uses Black Sword "death" spell on .NET
[02:32:10] <Marzo> if (!String::Compare(name, user) && (!String::Compare(user, "wizardrydragon") || !String::Compare(user, "Marzo")))
[02:32:17] <Marzo> This should work
[02:32:50] <Marzo> From what I see, the .NET strings are more like the char[] * strings than STL strings
[02:33:34] <wizardrydragon> Heh
[02:34:22] * wizardrydragon sticks .NET in the face with a poison dagger.
[02:35:19] <Marzo> What is with you and faces today?
[02:35:21] <Marzo> :-)
[02:35:23] * Marzo ducks
[02:35:48] * wizardrydragon was going to stab marzo in the face but ends up stabbing him in the back of the head.
[02:35:58] * Marzo dies
[02:36:13] * Marzo spontaneously resurrects
[02:36:34] <wizardrydragon> Lol
[02:36:41] <Marzo> :-)
[02:36:55] <Marzo> BTW, any success with the colorization of text?
[02:37:02] <wizardrydragon> Nope.
[02:37:04] <wizardrydragon> None.
[02:37:22] <wizardrydragon> There's no convention in .net to output raw ascii chars.
[02:38:04] <Marzo> I think that the closest (given that I now know that .NET Strings are unicode) would be L'\xhhhh'
[02:38:20] <wizardrydragon> Yeah
[02:38:22] <wizardrydragon> Heh
[02:38:29] <wizardrydragon> I dont know if it can be done in c++
[02:38:42] <Marzo> If what can be done?
[02:38:59] <wizardrydragon> the bot devs in the wikipedia bot channel were hacking at that problem all yesterday to no avail
[02:39:00] <wizardrydragon> Heh
[02:39:15] <wizardrydragon> link colours
[02:39:17] <Marzo> O>O
[02:39:50] <Marzo> If it is a matter of getting the Ascii char 3 in the string, they should
[02:40:02] <Marzo> *should be able to do it
[02:40:18] <Marzo> I mean... it can be done even in VB
[02:40:24] <Marzo> Not to mention C++...
[02:40:46] <Marzo> But I agree that managed C++ is a different beast, and makes it very hard
[02:40:58] <Marzo> More even than in VB...
[02:41:21] <wizardrydragon> I could asm it.
[02:41:27] <wizardrydragon> If I wanted it that bas.
[02:41:30] <wizardrydragon> *bad
[02:41:37] <Marzo> ASM can't help *but* to do it...
[02:42:04] <wizardrydragon> :D
[02:43:42] * wizardrydragon wonders if MSVC 2005 allows asm, even
[02:43:49] <Marzo> Another possibility which is in an example in the docs:
[02:44:01] <Marzo> \uhhhh
[02:44:19] <Marzo> In your case, \u0003 possibly
[02:44:22] <wizardrydragon> Uhhh?
[02:44:28] <Marzo> lol
[02:44:32] <wizardrydragon> Sounds sort of like indescision
[02:44:57] <Marzo> mystr += L'\u0003';
[02:45:18] * Marzo needs to see is .NET Strings allow +=
[02:45:32] <wizardrydragon> They do
[02:45:44] <Marzo> Then this might work
[02:45:56] <Marzo> Alternativelly:
[02:46:18] <Marzo> String ^ascii3 = L"\u0003";
[02:46:24] <Marzo> mystr += ascii3
[02:48:13] <wizardrydragon> Hmm
[02:48:14] <wizardrydragon> Brb
[02:48:20] <Marzo> k
[02:52:05] * wizardrydragon appears out ouf a moongate
[02:52:07] <wizardrydragon> back
[02:52:26] <Marzo> But... moongates aren't working anymore!
[02:52:33] <Marzo> :-)
[02:52:36] <Marzo> WB
[02:52:38] <wizardrydragon> Lol
[02:53:07] <Marzo> I think I will abandon you to your (lack of) luck with dragonBot and go to bed
[02:54:13] <Marzo> Tomorrow I will likely ask you how to do an e-mail form in php for the webpage so I don't receive tons of spam from having the link to my e-mail in all pages
[02:54:19] <Marzo> But for now, good night
[02:54:23] <wizardrydragon> LOL
[02:54:25] <wizardrydragon> Night
[02:54:30] <-- Marzo has left IRC ("Marzo vanishes suddenly.")
[10:04:29] <-- wizardrydragon has left IRC (Connection timed out)
[13:09:39] <-- Kirben has left IRC (Read error: 110 (Connection timed out))
[20:14:01] --> wizardrydragon has joined #tfl
[20:14:01] --- ChanServ gives voice to wizardrydragon
[22:16:05] <-- wizardrydragon has left IRC (Connection timed out)
[23:03:24] --> Kirben has joined #tfl
[23:03:24] --- ChanServ gives voice to Kirben
[23:24:48] --> wizardrydragon has joined #tfl
[23:24:48] --- ChanServ gives voice to wizardrydragon
[23:31:51] <-- wizardrydragon has left IRC (Excess Flood)
[23:32:21] --> wizardrydragon has joined #tfl
[23:32:21] --- ChanServ gives voice to wizardrydragon
[23:32:39] <-- wizardrydragon has left IRC (Excess Flood)
[23:33:07] --> wizardrydragon has joined #tfl
[23:33:07] --- ChanServ gives voice to wizardrydragon
[23:49:04] --- wizardrydragon is now known as SleepingDragon