Log for #mirc on 2008-02-22


Session Start: Fri Feb 22 00:00:00 2008
Session Ident: #mirc
[00:11] <mers> hi
[00:52] * kotigid is now known as digitok
[01:23] * D-Licko is now known as N-Loc
[01:53] <grayfax> whats the best way to learn sockets, jump right in or faq?
[01:53] <argv[0]> depends on how much you know about sockets
[01:54] <Raccoon> there's a difference between grasping the concept of sockets, or internet p
[01:56] <grayfax> k
[01:56] <grayfax> I dunno, it's just something I don't know how to use in mIRC... one of the
[01:57] <grayfax> Ì'm thinking a bash.org quote retreiver
[01:57] <Raccoon> ever worked with HTTP and HTML?
[01:57] <Raccoon> and regular expressions?
[01:58] <grayfax> dun't know regex either, guess I should learn that first?
[01:58] <Raccoon> well, there's a bit of a learning curve
[01:58] <grayfax> I know
[01:59] <Raccoon> bash is clean enough you could get by with plain old string manipulation
[01:59] <Raccoon> $left $right $mid $pos
[01:59] <Raccoon> $remove $replace
[02:00] <grayfax> ok, thats enuf, you talked me out of it for tonight... hehe
[02:00] <Raccoon> heh
[02:00] <Raccoon> functions everyone should learn
[02:01] <Raccoon> they're the foundation of working with strings
[02:01] <grayfax> I know those, I'm just not interested in doing it tonight
[02:01] <Raccoon> thats the easy part :)
[02:01] <argv[0]> well arent you a joykill
[02:01] <grayfax> have a friend that werote an ftpd and httpd for mirc
[02:02] <Raccoon> anyway, to get to what i was going to suggest
[02:02] <Raccoon> save a .html page from bash and try working on it locally as a file
[02:02] <Raccoon> using $read operations
[02:03] <grayfax> I was thinking that
[02:03] <Raccoon> once that is down, getting the file is cake
[02:03] <Raccoon> its best to concentrate on one part at a time
[02:04] <grayfax> <- dirtpoor
[02:04] <grayfax> not new to scripting ;)
[02:04] <Raccoon> no way of knowing that :P
[02:04] <grayfax> I know, I forgot to say, sry =)
[02:04] <Raccoon> though, i've fallen in love with a new scripting language...
[02:04] <Raccoon> AutoHotKey
[02:05] <grayfax> ?
[02:05] <Raccoon> built in keyboard/mouse hooks and a pretty powerful scrappy scripting langu
[02:05] <Raccoon> even compiles to exe
[02:05] <grayfax> hmm
[02:06] <argv[0]> heh
[02:06] <Raccoon> working on a project now to automate tasks while playing PokerStars
[02:06] <Raccoon> too much clicking
[02:06] <grayfax> lol
[02:07] <Raccoon> can easily remap keys in ActiveApp to mouse x,y clicks
[02:08] <Raccoon> or get x,y pixel color or image square to determine what's going on
[02:09] <Raccoon> if I really wanted, I could have the game play itself :)
[02:09] <grayfax> I did that with an uno game in another channel
[02:09] <grayfax> lol
[02:09] <grayfax> 119 lines
[02:09] <Raccoon> too much!
[02:10] <Raccoon> I could nab it in 34 lines :P
[02:10] <grayfax> I split all my lines
[02:10] <grayfax> one command per line
[02:10] <Raccoon> but you don't know regular expressions
[02:10] <grayfax> there's only one place to use it
[02:12] <Raccoon> anything can be made simpler with arrays and hash tables
[02:12] * Raccoon is now known as argv[0]
[02:12] <grayfax> it is as simple as it can get
[02:13] <argv[0]> text based game?
[02:13] <grayfax> yup
[02:13] <argv[0]> paste it
[02:13] <grayfax> nope =P
[02:13] <argv[0]> indeed
[02:13] <grayfax> I like my code as it is
[02:13] <grayfax> plus
[02:13] <grayfax> I promised the game author I wouldn't distribute this script
[02:13] <argv[0]> this is for literary purposes
[02:14] <argv[0]> add a bug or something
[02:15] <grayfax> =\
[02:15] <grayfax> actually, I think there may be one place where a regex would cut like 20 or
[02:15] <grayfax> bu8nch if if's
[02:15] <grayfax> *of
[02:15] <grayfax> I just dunno enuf about regex to even be sure
[02:15] <grayfax> http://pastebin.ca/913794
[02:15] <argv[0]> what about string arrays
[02:17] <grayfax> help for string arrays?
[02:17] <grayfax> */help
[02:17] <digitok> i think he means tokens
[02:17] <argv[0]> that looks like a regex
[02:17] <digitok> maybe
[02:17] <grayfax> ah, I use tokens
[02:17] <grayfax> oh
[02:18] <grayfax> but yeah, I use tokens for choosing the card to play
[02:18] <argv[0]> well, you shouldn't need that Goto End
[02:18] <grayfax> regex to gather the card list into a %var
[02:18] <grayfax> yer right
[02:18] <argv[0]> just replace all the subsequent If's with ElseIfs
[02:18] <grayfax> lol
[02:19] <grayfax> k
[02:19] <grayfax> sec
[02:20] <grayfax> I still have another if to put in, thats what the commented out lline is ri
[02:21] <argv[0]> also that msg cd/ca is disturbing
[02:21] <argv[0]> a dead giveaway if nothing else
[02:21] <grayfax> oh
[02:21] <grayfax> cd resets the script
[02:21] <grayfax> ca gathers current cards
[02:22] <grayfax> well, the game response to cd resets it
[02:22] <grayfax> the next if is the resettrigger
[02:23] <grayfax> it just gathers the color/# from the response and tells the script to play
[02:24] <grayfax> why does it bother you?
[02:24] <argv[0]> %wild.color = $mid(rygb,$r(1,4),1))
[02:24] <argv[0]> because you send two messages to the channel faster than a human could
[02:24] <grayfax> oh, doesn't matter
[02:24] <grayfax> everyone knows it is a script and it's alright
[02:24] <argv[0]> er
[02:24] <grayfax> thats why it can be triggered by other people
[02:24] <argv[0]> too many )
[02:25] <grayfax> I'm not allowed to use it myself, only if others type !autouno
[02:25] <grayfax> where?
[02:25] <argv[0]> %wild.color = $mid(rygb,$r(1,4),1)
[02:25] <grayfax> oh
[02:25] <grayfax> no
[02:25] <argv[0]> yes :)
[02:25] <argv[0]> saves you at least a dozen lines
[02:25] * argv[0] is now known as Raccoon
[02:26] <Raccoon> guess argv isn't coming back
[02:26] <grayfax> sry, read something wrong ;)
[02:26] <grayfax> thats effin awsome dude
[02:26] <grayfax> I NEVER would have thought of using it like that!
[02:26] <Raccoon> :)
[02:27] <grayfax> well then, I'll just: msg chan co %wild.color = $mid(rygb,$r(1,4),1)
[02:27] <grayfax> save another line
[02:27] <grayfax> dude, that is really neat, thanks guys =)
[02:27] <Raccoon> i'd say there's a way to consolodate all those if's, but i'm not familiar e
[02:27] <Raccoon> that should actually save the entire section
[02:28] <grayfax> yeah
[02:28] <grayfax> 102 lines
[02:29] <Raccoon> as much as i'm an advocate for promoting the retention of the Goto command
[02:29] <grayfax> ok, I have another if | goto | elseif... I can remove the goto can't I?
[02:29] <Raccoon> you really butcher it :)
[02:29] <grayfax> =(
[02:30] <grayfax> I'm proud of what I did
[02:30] <Raccoon> most people will tell you to never use Goto
[02:30] <Raccoon> I believe it helps a more intelligent learning of code
[02:30] <grayfax> I don't like goto's either
[02:30] <grayfax> go up here: var %wild.rand = $r(1,100)
[02:30] <grayfax> and... sec
[02:31] <grayfax> I think I still need the goto at the end of this if
[02:31] <Raccoon> what you need to do in your case is look at how your If statements begin an
[02:31] <grayfax> I think that one is there for a reason, based on how the next section works
[02:32] <grayfax> well
[02:32] <grayfax> yeah
[02:32] <grayfax> er
[02:32] <grayfax> ARG! I dunno
[02:32] <grayfax> I'm sleep depped, sry
[02:32] <Raccoon> yeah, i should hit the sack too
[02:33] <grayfax> oh don't leave before finishing! =\
[02:33] <grayfax> n/m
[02:33] <grayfax> lol
[02:33] <Raccoon> i just wanted to see an mIRC script :)
[02:33] <grayfax> did you like?
[02:33] <Raccoon> i've been messing with AutoHotKey for months I'm afraid i'll lose my touch
[02:34] <grayfax> oh I got one you would LOVE
[02:34] <Raccoon> already dreading
[02:34] <grayfax> 145 line random ctrl-code encryption script
[02:34] <Raccoon> encipher script
[02:35] <grayfax> it outputs with random ctrlk codes, and if you have the script, it halts th
[02:35] <Raccoon> i wouldn't enjoy it because i'd see its true weakness is in obscurity
[02:35] <grayfax> yeah
[02:35] <grayfax> sec
[02:35] <grayfax> ever use on voice?
[02:35] <Raccoon> oh, you mean hidden text in color codes?
[02:35] <grayfax> no, join zzz-zzz
[02:35] <Raccoon> not now
[02:35] <grayfax> or I can msg
[02:35] <grayfax> if it's alright?
[02:36] <grayfax> can't notice tho
[02:36] <Raccoon> 3:30 am -> wake at 9:30 am
[02:36] <grayfax> go
[02:36] <grayfax> =)
[02:36] <grayfax> thanks again =)
[02:36] * Raccoon &
[04:03] <naps7er> ooo picove ko staa we?
[04:04] <rickcp> english only here, thanks
[04:04] <naps7er> ok
[04:05] <naps7er> how are you?
[04:05] <naps7er> bb
[04:23] <shanenn> hi
[05:07] <dmaresca> rickcp you here?
[05:08] <rickcp> no
[05:08] <dmaresca> rickcp
[05:08] <dmaresca> i have a game, wheel of fortune type of game for irc
[05:08] <dmaresca> i made it and would like to accept user registration
[05:08] <dmaresca> however, id like to send the user a email w/ a verification code
[05:08] <dmaresca> similar to what websites do
[05:08] <dmaresca> but now i found out i'd need a smtp address or access to one to do it
[05:09] <dmaresca> and if i release the game to other users, what if they dont have smtp?
[05:09] <dmaresca> how else can i do the verification code
[05:11] <grayfax> just use the one provided to you by your internet provider
[05:11] <dmaresca> uh
[05:11] <grayfax> prolly mail.optonline.net
[05:11] <dmaresca> and i said what if a user doesnt have a smtp
[05:11] <dmaresca> or doesnt know his smtp
[05:11] <grayfax> or smtp.opt*
[05:11] <dmaresca> or is too stupid to care
[05:13] <dmaresca> what other ways could i make him/her verify
[05:13] <grayfax> ?
[05:13] <grayfax> I dunno
[05:13] <grayfax> put it up on a web page
[05:13] <grayfax> seperate page that auto deletes after so long
[05:14] <grayfax> er, seperatre for each person I eman
[05:14] <grayfax> *mean
[05:14] <dmaresca> yeah because everyone wants to setup a webpage
[05:14] <dmaresca> heh
[05:14] <dmaresca> fuck itg
[05:15] <grayfax> lol
[05:42] <aspano> ciao
[06:12] <maddy> @find music
[06:12] <sat> maddy: this is NOT a file trading channel. please visit http://www.irchelp.org/
[06:12] <maddy> list
[06:22] <IRWolfie-> on a side curiousity, someone who looks for a file called music wouldnt g
[06:23] <sat> he could have been looking for The Sound Of Music or so
[06:23] <sat> or, more likely, he didnt have a clue what he was doing
[06:24] <IRWolfie-> :)
[06:39] * _Kollekti is now known as Kollectiv
[06:55] * shimshon is now known as tomalak
[07:49] <dmaresca> sorry :)
[08:00] * Kollectiv is now known as Kollektiv
[08:39] * Disconnected
Session Close: Fri Feb 22 08:39:42 2008