@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22



Comments:

<0> Pythy: Well, I did. :)
<1> payal: well, can you explain what things you are stuck on?
<2> payal, why do you need Python anyway?
<3> Well, urllib2.open is a different matter entirely.
<4> HappyFool: it is not things but stupid words which are making reading difficult
<3> look at the source of urllib2; search for "def setTimeout(self, t):"
<4> like objects, call by reference etc.
<4> why do the docs ALL ***ume that I am a programmer
<0> Pythy: Okay... I happen to have it open...
<5> payal: are you not?
<5> ^^
<6> payal: they don't. they ***ume you are willing to catch up on some topics. and it ain't that hard. :]
<4> TFK: don't need it
<1> payal: well, we can explain particular terms. I would've thought thinkcspy would not use technical terms without explaining them (it might use math examples, though ?)
<7> I'm looking for a python library I can use to do system tray icons (in linux)... anyone know if there are any that do this?
<2> payal, becuase most people who take interest in this stuff have something to do with programming.



<0> Pythy: Okay, there's only one place in the file... now what? :)
<4> TFK: I have a aim in programming
<4> TFK: write something like getmail
<3> __doc__: dozens of runs, generating 11,000,000 8-byte strings on each run, using what I told you to use. Zero collisions.
<4> __doc__: not really though I like it
<2> payal, well, as I said, if you find thinkcspy difficult, you should get a human tutor.
<5> payal: hm you should not be afraid to dig into sources of python, there ain't not many better languages out there to read source
<4> TFK: I have no resources
<0> Pythy: The only references to setTimeout I see in /usr/lib/python2.4 are the declaration, and once in a test.
<3> Pistos: Study the code, till you see how to control the timeout-value, and take the appropriate action.
<4> __doc__: hahahaahhaaa
<2> payal, you have a day job but no resources?
<4> TFK: english please
<2> Always.
<4> TFK: resources != money
<4> in this context
<5> payal: I'm dead serious python is about *the* most readable language there is, so chances are what you find in libraries is to a large part understandable code
<2> I fail to see what more do you need besides time and money. If you have time to bugger us about tutorials, surely you have time to learn on your own.
<4> there are many things which stuck me up like strange words cl***es, inheritance, modules, atttributes etc
<1> i'm not sure i'd know where to get a paid python tutor where i am ;-)
<4> TFK: you need a HUMAN being to learn from
<0> Pythy: Okay, thanks for all your help.
<3> Pistos: Note that adjusting the timeout value here still leaves you vulnerable to your program hanging during the DNS lookup of the domain to get the IP-address. That's why I first spoke of doing your tests with a dotted-quad in place of the domain-name.
<0> Pythy: Yes, that's a great tip, I will test that out.
<3> >>> socket.gethostbyname('cnn.com') #==> '64.236.16.84'
<3> >>> print urllib.urlopen('http://64.236.16.84').read(128)
<3> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html lang="en"><head><title>CNN.com - Breaking News, U.S., World
<2> payal, if this is how you feel, get a tutor.
<3> ?>twisted@Pistos: Look the URL from the bot's PM for a non-blocking DNS lookup-routine.
<4> TFK: :)
<0> Pythy: Okay, thanks.
<3> Pistos: Also, a guick grep over urllib.py show no mention of time, so, it may be a better choice for you, as it lowers the odds that the module is changing the global default. (I didn't look at all modules imported by this module, though.)
<8> does anyone use wingware?
<9> defcon8: funny, I started yesterday :)
<8> dsuch do you find it good?
<3> Yango / __doc__ : Even though I'm using strings that are only 8 bytes long now (still, zero collisions), my pool of different patterns is over *18 million times larger* than what you were getting your way, as you were limiting each byte to only 10 possible choices (the 10 bit-patterns for ASCII "0".."9")
<9> defcon8: It's okay, code completion is better than in PyDev and that's about all I can say right now...
<9> defcon8: fonts look funny (I'm used to jEdit) but I guess it's because they use PyGTK/
<9> .
<8> right
<8> what os?
<9> Windows
<8> im on windows atm and missing linux :|
<9> 19:30 defcon8 [i=defcon8@unaffiliated/defcon8] requested CTCP VERSION from dsuch:
<9> what was that for?
<8> do you find it offensive?
<8> pardon me
<9> somewhat
<8> pardon me
<9> you could just ask me :)
<9> heh, and CTCP did actually give you irssi, cause I login into a Linux machine ;-)
<10> what is CTCP verion?
<8> i didnt get a reply
<3> dada1: A way of asking the program you're running which IRC-client it is. I do it sometimes when helping a user, to find out which OS s/he's on:
<11> whoa
<11> there are "a few" of you
<12> Not really. We're all bots.
<3> e.g., if the program responds mIRC, I know that the user is running Windows (which is what I use---Window, not mIRC, that is), and I then will give him/her the shortcuts to set-up to open the docs & IDLE via a taskbar shortcut.
<11> ahh. that explains.
<8> Pythy not really
<8> one could change their reply



<11> ok... i'm planning to write a sort of irc proxy
<11> i'd like to be able to join a web-based chat using irc :)
<11> and use a python prog to do the translation
<3> defcon8: mIRC has no direct provision for that.
<11> anyways, i found a piece of code that's supposed to act as a minimal irc server
<11> and right now i'm reading through the code to understand what it does. it's not commented though :/
<11> i ran into this strange python built-in function property(). anyone care to explain what it is or what it does? i don't understand the documentation
<8> Pythy i could be on xchat and change it to mirc is what i wanted to say
<3> defcon8: So?
<8> <3> e.g., if the program responds mIRC, I know that the user is running Windows (which is what I
<3> yes, and?
<8> what the hell do you mean and?
<8> and what
<8> you can not know that someone is using windows by their ctcp version reply being mirc
<9> That's cheating!
<3> defcon8: And you'll find that you don't the .chm whose paths I would give someone who version-response implies they're on Windows. So what?
<8> Pythy what you said didnt make sense
<11> whoa
<11> the link in topic... there's something about irc servers, too :-o
<13> my IRC client responds with mIRC
<13> and i'm deffinatly not running windows
<3> JuhazOne: Say I create an instance of a cl*** I've written, p = MyCl***(); It's a way of rigging an attribute such that doing, say, `print p.v', a *method* I've specified is woken-up, and, the value returned by that method is fed back to me.
<11> ..
<11> wow
<11> so it looks like an attribute but is, in fact, a method call?
<3> yep.
<11> great
<11> i've been wondering about the lack of such a feature in programming languages :)
<12> Quite a few have properties.
<3> and doing p.v = 'hi' can be rigged to wake another method (``a setter'') to which Python will p*** 'hi'
<13> iebeliv C# has propertie
<12> Indeed.
<12> Delphi as well.
<13> and C++0x will psosibly have properites
<13> however they call them IFC
<12> Properties are the shiznit.
<12> Java doesn't have them, but JB fakes them.
<14> I'm in jail with an internet connection and a lot of free time so I'm writing out all the exercises in SICP in Python
<3> defcon8: I'm aware that the response to Version-command is not gospel, and explained that the consequence of a user setting a misleading response to me is to waste everyone's time. Now: Why did you do the ctcp-Version on Dsuch?
<15> well that's kinky
<15> (the SICP-thing that is)
<11> the link about twisted in the topic... can you trust the twisted-thingy to be ok?
<11> like it's not maliciou code or anything
<8> Pythy you're just changing the subject aren't you? :)
<3> (Oh, and, feel free to see what my client does when queried for version, or, better yet, time.)
<3> Defcon8: What was the subject?
<8> Pythy you being wrong
<9> Pythy: and all your bases are belong to us!
<16> hi...how can i connect pymssql module thru a proxy connection ? I dont know if i can do that....
<3> You were explaining that the response is not to be taken as gospel. As your ctcp-time of me just now shows, I'm aware of that. I explained *why* I do it, and the consequence of someone setting a response that gives me inaccurate information. I then asked you---given your statement to me that the response can be useless---why you did it on Dsuch?
<17> mysyfy_, a proxy should be transparent? or no?
<16> no..for some connection i think it is...like http connection
<18> exonic: my take is that the question is on the possibility of connecting from within a restricted network, which only has eg. an http proxy as outside access.
<11> uhm...
<11> hey people, any ideas... is it worth it to build the irc proxy i mentioned myself or is there some code i could re-use somewhere?
<9> what is IRC proxy?
<9> is it something I can use when behind a restrictive firewall or something?
<11> well... yeah, i suppose you could do that, too
<9> that do it my friend :)
<11> but i'm talking about a proxy that'd relay messages between IRC and a web-based chat
<9> *than* do it
<14> does bitlbee do that
<19> bitlbee works with AIM/MSN/IRC/XMPP
<11> i'm talking about a WEB-based chat
<11> it looks custom-made
<11> though it reminds IRC in many ways
<9> JuhazOne: if you mean something like http://irc.codehaus.org/irc.cgi but in Python and connected to Freenode that I'll be using it :)
<11> commands begin with / and many are the same as in IRC
<11> dsuch: no, i don't want to connect to the irc network using a browser. i want to use my IRC client to use a chat that's normally used with the browser
<11> dsuch: so kind of the reverse what a webirc does
<9> aaah, that way


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #python
or
Go to some related logs:

rtorrent advice
Wno-unused-functions Wno-unused
installing teamspeak opensuse
#perl
*** can not find package gtk+-2.0 >= 2.0.0
quiznos mailinator
pplive prosieben
#web
pymedia 2.5
suse linux kdelibs permission denied installing



Home  |  disclaimer  |  contact  |  submit quotes