TheImrac

TheImrac

Joined
Oct 24, 2008
Occupation
Paper or Plastic?
Location
Washington State

Activity Stream

TheImrac commented on a Page, AutoMagic URL Shorten-er™ (using goo.gl)  -  May 02, 2012

Nice find!! Thanks!

 Respond  
TheImrac created a Page  -  May 01, 2012
1 732 

Made a quick script to automatically shorten URLs on input.

TheImrac commented on a Page, Ventrilo Server Status  -  Mar 27, 2012

Not sure its possible. This does not interact with the ventrilo server directly, rather through a third party web site.

 Respond  
TheImrac created a Page  -  Jan 08, 2012
823 

Python script I made for our clans Knife and pistol server we ran for BF3.

 Respond   Python  
TheImrac commented on a Page, Input text with dialog  -  Dec 30, 2011

No need to hardcode responses like that. You should just use a hash table or text file.

 Respond  
TheImrac commented on a Page, Toolbar Digital Clock  -  Dec 27, 2011

This is nice, Great stuff!

 Respond  
TheImrac commented on a mIRC Script, mSL-UpdateR - v1.2 (Updated)  -  Nov 17, 2011

Ah, cool stuff man!

 Respond  
TheImrac commented on a mIRC Script, mSL-UpdateR - v1.2 (Updated)  -  Nov 09, 2011

Also, why do you need an executable? Seems a little sketchy (although i am sure its fine).

 Respond  
TheImrac commented on a Page, Send an Email with mIRC (BACK END)  -  Nov 05, 2011

If you follow the link http://www.google.com/support/accounts/bin/answer.py?answer=185833 it will show you how to generate an application specific password. As for attachments, that is beyond the scope of this snippet. I would have to add MIME support, which I am not going to do.

 Respond  
TheImrac commented on a Page, Up Time Percentage  -  Nov 01, 2011

Could always look at the creation date of the mirc.exe file and compare it to the $online timer

$calc($online / ($ctime - $file(C:\Program Files (x86)\mIRC\mirc.exe).ctime)) 
 Respond  
TheImrac commented on a Page, mIRC Servers List Update - 1.0  -  Oct 25, 2011

Faster processing (averages less then a tenth of a second when no update is found and .225s when a newone is found) and doesn't wait for the remote server to close the connection. Other than that, not much.

 Respond  
TheImrac commented on a Page, mIRC Servers List Update - 1.0  -  Oct 24, 2011

This is such a great concept I decided I would tackle it in my own way. I just used the ETag HTTP header to check if the file has changed.

on *:START:{ svini_update }
ON: *:UNLOAD:{
  unset %svini.etag
}

on *:SOCKOPEN:svini:{
  if ($sockerr) { 
    echo -s 14[4*14] 1Unable to Connect to mIRC.COM
    .sockclose svini
    halt
  }
  sockwrite -n $sockname GET /servers.ini HTTP/1.1
  sockwrite -n $sockname Host: www.mirc.com
  if (%svini.etag) { sockwrite -n $sockname If-None-Match: $qt($v1) }
  sockwrite -n $sockname Connection: Close
  sockwrite -n $sockname $crlf
}

on *:SOCKREAD:svini:{
  if ($sockerr) { 
    echo -s 14[4*14] 1Unable to Download Latest servers.ini File (read error)
    if ($2) { unset %svini.etag }
    .sockclose svini
    halt
  }
  tokenize 32 $sock($sockname).mark 
  if (!$2) {
    var %read
    sockread %read
    while (%read) {
      if ($regex(%read,/^HTTP/1.1 304  Not Modified$/)) {
        echo -s 14[9*14] 1You Have the Latest servers.ini ( $+ $calc(($ticks - $1) / 1000) $+ s)
        .sockclose svini
        halt      
      }
      elseif ($regex(%read,/^Content-Length: (\d+)$/)) { sockmark $sockname $1 $regml(1) }
      elseif ($regex(%read,/^ETag: "(.*)"$/)) { set %svini.etag.new $regml(1) }
      sockread %read
    }
  }
  else {

    sockread &read 
    while ($sockbr) {
      bwrite $+($mircdir,servers.ini.tmp) -1 -1 &read
      if ($file($+($mircdir,servers.ini.tmp)).size == $2) {
        svini_finish $1
        halt
      }
      sockread &read  
    }
  }
}

ON *:SOCKCLOSE:svini:{
  tokenize 32 $sock($sockname).mark 
  echo -s 14[4*14] 1Unable to Download Latest servers.ini File (socket closed)
  if ($2) { unset %svini.etag.new }
  .sockclose svini
  halt
}
alias svini_update {
  echo -s 14[8*14] 1Checking for new servers.ini File...
  .remove $+($mircdir,servers.ini.tmp)
  if ($1 == -force) { unset %svini.etag }
  sockopen svini www.mirc.com 80
  sockmark svini $ticks
}
alias -l svini_finish {
  .copy -o $+($mircdir,servers.ini) $+($mircdir,servers.ini.old)
  .copy -o $+($mircdir,servers.ini.tmp) $+($mircdir,servers.ini)
  set %svini.etag %svini.etag.new
  unset %svini.etag.new
  echo -s 14[9*14] 1Successfully Downloaded Latest servers.ini ( $+ $calc(($ticks - $1) / 1000) $+ s)
  .sockclose svini
}

Quick ninja Edit: Changed it so the etag doesn't get update until it finishes copying over the new server list.

 Respond  
TheImrac commented on a Page, Toolbar Activity Graph  -  Oct 09, 2011

We can never part PM, can't we? :p
Seems Jethro, missed that one.

Bleh... I just have a habit of using asterisks, updated. Thanks

 Respond  
TheImrac commented on a Page, Toolbar Activity Graph  -  Oct 09, 2011

added unload event. thanks for the suggestion.

 Respond  
TheImrac created a Page  -  Oct 09, 2011
7 765 

Quick little snippet for a small activity monitor in your toolbar. Makes it easy to see in a glance how active all the channels you are in are. Depending on how active your channels are, you may need to adjust the multiply and interval to keep the graph from being pegged.

TheImrac commented on a Page, Send an Email with mIRC (BACK END)  -  Oct 08, 2011

West, if you follow that link it looks like you may have 2 step verification on your account. You can create a "Application specific" password and will need to generate and use that password for authentication. I will be testing this in a bit.

 Respond  
TheImrac commented on a Page, Send an Email with mIRC (BACK END)  -  Oct 07, 2011

irc.ezzychat.com #lobbby

 Respond  
TheImrac commented on a Page, Last Nick & Channel Name Tab Completion  -  Aug 16, 2011

mSLDev I am guessing. http://msldev.zigwap.com/

 Respond  
TheImrac commented on a Page, Last Nick & Channel Name Tab Completion  -  Aug 15, 2011

I got it working (for the most part), without needing to use the dirty variable hack. Basically I make sure $1- and the edit box are the same. If they are, that means TAB isn't trying to auto complete.
The Downfalls:
It still takes out any extra spaces in the edit box string
If you are use the normal auto complete on a nickname and its the only auto complete match, and its the last nickname seen, it will toggle between that nickname and the channel if you hit tab again. (not a huge deal)

But now you can tab through multiple normal auto completes and it won't change to the channel name if one of the nicks is the last nickname seen.

 Respond  
TheImrac commented on a Page, Last Nick & Channel Name Tab Completion  -  Aug 15, 2011

Err wait there is... $1-

Aight.. gotta think about this for a bit.

 Respond  
TheImrac commented on a Page, Last Nick & Channel Name Tab Completion  -  Aug 15, 2011

Very interesting stuff. Unfortunately when my script appends a nick, if you hit tab again the ^tab gets activated. I wish there was an identifier that would return what will be completed.

 Respond  
TheImrac commented on a Page, Last Nick & Channel Name Tab Completion  -  Aug 15, 2011

Actually, it seems to break with the added ^.

An unfortunate side effect to this script is it breaks the tab cycling of names if one is the last nick, and breaks the channel cycling... I gotta figure away around it.

 Respond  
TheImrac commented on a Page, Last Nick & Channel Name Tab Completion  -  Aug 15, 2011

Seems to work fine without, but I will take your suggestion. Updated code.

 Respond  
TheImrac commented on a Page, Last Nick & Channel Name Tab Completion  -  Aug 15, 2011

Agreed, no need to save the table as its only tracking the last message. If you restart, you don't know who the last message was from anyway. (It defaults to the channel name if there is no last message)

 Respond  
TheImrac created a Page  -  Aug 15, 2011
3 720 

Snippet to append the last users nickname to your edit box by hitting tab at the beginning or after a space. Also, if the last word is the last users nickname, it will be changed to the channel name.

TheImrac commented on a Page, MySQL Bot Core (ver1.53 STABLE) - 27.09.2011  -  Aug 13, 2011

Great work! Only criticism is the passwords are stored in plain text, you should at least MD5 them and maybe even add salt.

 Respond  
TheImrac commented on a Page, Send an Email with mIRC (BACK END)  -  Aug 12, 2011

Yeah...... that =P

Finished testing with yahoo and it works!

 Respond  
TheImrac commented on a Page, Send an Email with mIRC (BACK END)  -  Aug 12, 2011

Alright, complete write of code. Should be much more stable now.

Have fun!!!

 Respond  
TheImrac commented on a Page, Whois tracker with IP locator  -  Feb 14, 2011

dont make me laugh
Feeling guilty about something? I never specifically mentioned you. GG nub.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.