Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - XVicarious

Pages: 1 ... 6 7 [8] 9 10 ... 33
106
Computer Programming / Re: urllib is not being nice :(
« on: October 16, 2011, 04:57:17 pm »
It does the same thing :(

edit: you can actually see my debugging code :P "EXECUTING greenText()" etc lol that stuff never shows up, so i can safely say it doesn't execute. I also disabled the urlopen and the code then worked...

107
Computer Programming / urllib is not being nice :(
« on: October 16, 2011, 04:36:44 pm »
So I am writing a plugin for XChat and I have come to the conclusion that urllib is somehow preventing greenText() from being executed... What is going on :(?

Here is the code:
Code: [Select]
__module_name__ = "IrmageBoard"
__module_version__ = "0.2.0"
__module_description__ = "Liek a real imageboard guies (without the images!!!1)"

import xchat, string, re, random, yaml
from urllib import urlopen

global myFilter
ymlFilter = urlopen("http://xvicario.us/irmageboard/filters.yml")
myFilter = yaml.load(ymlFilter)
ymlFilter.close()

print "\0034",__module_name__, __module_version__, "has been loaded\003"

def greenText(word, word_eol, userdata):
    print "EXECUTING greenText()"
    if word_eol[0].find('>'):
        return xchat.EAT_NONE
        print "FOUND NOTHING!"
    else:
        xchat.command(" ".join(["msg", xchat.get_info("channel"), ''.join(["3",word_eol[0]])]))
        print "FOUND SOMETIHNG!"
    return xchat.EAT_ALL

def filters(word, word_eol, userdata):
    newString = word_eol[0]
    for k, v in myFilter.iteritems():
        if k in newString:
            tempColor = random.randrange(0,16,1)
            tempBack = random.randrange(0,16,1)
            tempReplace = re.compile(k, re.IGNORECASE)
            newString = tempReplace.sub(v, newString)
            newString = "".join(["\003",str(tempColor),",",str(tempBack),newString,"\003"])
    xchat.command(" ".join(["msg", xchat.get_info("channel"), newString]))
    return xchat.EAT_ALL

xchat.hook_command("", greenText)
xchat.hook_command("", filters)

edit: that is everything :/

108
Nice :D
I fixed all my file names already. :D And everything is organized in my music library.

109
Other Calculators / Re: Axe Optimization Contest
« on: October 13, 2011, 11:59:01 pm »
I knew Runer112 was going to win.

110
Miscellaneous / Re: Do u think this is fair?
« on: October 13, 2011, 11:21:57 pm »
You guys are such geeks :P

111
Miscellaneous / Re: Do u think this is fair?
« on: October 13, 2011, 10:01:08 pm »
But did you really ever see more than the ass? It was an ice cream machine :P

112
Miscellaneous / Re: Do u think this is fair?
« on: October 13, 2011, 09:59:20 pm »
The funny thing is about that video is....
Spoiler For Spoiler:
Its really ice cream :P no joke. I'm completely serious. Like really truly.

113
Miscellaneous / Re: Do u think this is fair?
« on: October 13, 2011, 08:44:58 pm »
I guess but man did it make the hallway stink.  Plus I messed with someone else's property.  Although the locker was not locked to be fair.

114
Miscellaneous / Re: Do u think this is fair?
« on: October 13, 2011, 08:41:22 pm »
But if those people did not have their phones out, or it they did and by the school's handbook cellphones were not allowed within a time range (and the time where phones were out was not in that time range) they have absolutely not right to take your phone away.
Explain the situation to your parents.  They might still ground you for watching the video but if the way the school handled the situation was wrong (which it seems like it was) they will side with you on this.

side note: I love having a lax-ish school.  my vice principal is great.  he jokes around with us and I didnt get in trouble for taping down a can of Axe in a kids locker who didnt lock it.   Kid deserved it any ways and the vice principal kinda laughed at it too :P

115
Other Calculators / Re: Merthsoft?
« on: October 12, 2011, 03:17:41 pm »
I don't know...  I do remember that he posts mainly at Cemetech.  You should check there.

116
Miscellaneous / Re: How much English words do you know?
« on: October 12, 2011, 03:15:20 pm »
20,400

As Netham and calcdude said this result can be very misleading.  It appears I am a little bit above average for 17 years.

117
Miscellaneous / Re: The Leader Who Created Apple...
« on: October 08, 2011, 11:42:19 am »
Yeah.  It just didn't catch on.

edit: Wikipedia Page - http://en.wikipedia.org/wiki/Videophone

118
Miscellaneous / Re: The Leader Who Created Apple...
« on: October 08, 2011, 11:39:57 am »
My father said they had video chatting at some World's Fair in the 60s or 70s.

119
Miscellaneous / Re: The Leader Who Created Apple...
« on: October 08, 2011, 11:35:01 am »
Such as?  Wireless sync?  My old Palm Treo had that. Came out in 2004.

120
Miscellaneous / Re: The Leader Who Created Apple...
« on: October 08, 2011, 11:30:23 am »
Um...  In what way high tech?  Tablets in 2010 a revolutionary thing?  No Microsoft announced tablets in 2001 and everyone ignored them?  "Retina" display?  Resolutions like that have been available for portable devices for a few years now.  Nothing really high-tech.

Pages: 1 ... 6 7 [8] 9 10 ... 33