RJosh
commented on a mIRC Script, upLoad - Jan 08, 2013
To anyone who still uses this: redownload the zip file, this is a working update. Any thing older than this simply won't work for pastebin.com (pastebin.com is no longer public access to the api, so it's been removed entirely, and mpaste.com has been added)
Pretty sure that's what the for loop is for, to loop and collect the storage space and the used space of each HDD attached to the system. But if it's really needed an explanation would be nice. I just find it awkward that there are two of the same. Thanks.
RJosh
commented on a mIRC Script, upLoad - May 13, 2011
A) Save links of your old posts and check them when clicked on and collect the data posted and display it, or remove the link from your history if it's been deleted.
B) Allows you to supply a link and it will collect the data posted from the link and display it, or tell you if it's been deleted.
Just a suggestion, the use of global variables should be used. Locals would have sufficed.
Also for longtintoascii, in the if instead of needing to use calc just use
Code
aswell as for your binary2ascii all those if statements could be avoided using a simple loop.
Code
If you don't like the multiple chr(1)'s in place of spaces you can do it another way that's suitable for you, i simply chose that cause well, it's very unlikely that there will be 3 chr(1)'s consecutive in a string being processed.
hehe yea me too. But $gettok is inherited from $token if i'm not mistaken, so all functions of $token were transfered over including the 0 function. It made more sense using it with $token then it does with $gettok though.
I like getting double whois results too man. Also that may work on your server that you generally visit, but probably won't work on other networks as some of them use different raws within their whois and don't use others.
Personally i wouldn't have even used regex at all. At the upmost i would have done something like.
Code
The reason i would use hashtables is because if you EXIT mIRC the variables are left in the VAR tab if the unset isn't triggered. Atleast hash tables are deleted automatically when you EXIT unless you have a method of saving them on exit. If you do you can simple exclude them from your method. That's just my two cents.
By depreciated i mean replaced by another identifier. ofcourse it's still usable. just most people don't have all the undocumented features ;)
RJosh
commented on a Snippet, PHPTok - Dec 06, 2009
Oh, right. thanks sunslayer.
Also, i'm aware it doesn't work for negative ranges. because that was the only part i didn't account for in my old function. and i'm too lazy to test it. :D
RJosh
commented on a Snippet, PHPTok - Dec 06, 2009
It doesn't look like you have support for ranges or negative values.
IE:
gettok("hello there what's up",2-3," ") -> there what's
gettok("hello there what's up",-1," ") -> up
Maybe something you could look into. I had made a gettok that supported ranges a while back. i'll try and find it or remake it .
EDIT:
I took the liberty of doing my best to remake what i had and this is what i came up with.
Code
RJosh
commented on a Snippet, mask() - Dec 02, 2009
It's possible. But you would still need to check which mask type is required to get the right format. Plus i prefer native modules to importing the regex module when you don't need it.