| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Comments:
<0> Lemme find my previous patchbin on that topic. <1> maybe you mean x['y'] instead of foo['y'] ? <0> Sorry yea. <1> now I get it :) <0> http://deadbeefbabe.org/paste/3012 <0> But if you *know* that declaring a default value is kinda like declaring a static variable, well, you can use it to your advantage. <2> It was made with VB... <0> It was a dark and stormy night. <3> "It was the best of times, it was the worst of times, I know it's a contradiction but bear with me for a second." <4> hi. i'm stuck with a nasty little problem. x='abcdefgh'. which indices in x[n:m] return 'fgh'? <4> x[-3:-1] gives 'fg' , ?:| <5> biopyte: yeah? <6> -3 - -1 = 2 <4> anyway, i want the last element.
<7> biopyte: x[5:] <8> how hard would programming a console-based python IRC bot be? <8> not too hard for a python newbie? <7> bulio: Depends on how well you know the IRC spec. Many have implemented such a bot. <4> Ceran, thanks, of course ... i knew i would make a fool out of myself :) <7> bulio: If you don't know the IRC spec at all, then yes, it may be a bit too advanced for a newbie ;) <4> need holidays <6> bulio, if you use X-Chat you can hack it with Python. <8> not too good on the IRC spec itself <6> XChat also has the ability to run under console. <8> I know things like channels, servers, IRC default port and such <7> bulio: http://www.google.com/search?hl=en&q=python+IRC+bot&btnG=Google+Search <9> hello <9> I'm making a program and intend to use gettext <8> Alterego: what parts woulod I hack? <9> is it better to make the program using english and then translate it to my language or the other way around? <6> bulio, it exports modules that you can access in Python to interact with an IRC session that is currently running. You can do things like extend the interface by adding buttons. You can automatically send a message when you want. You can basically fully interact with a channel, parse it's input. Etc. <7> Xamusk: It's certainly a good idea to write a plain english description of what your program should do. <7> Xamusk: Flow charts can also be useful to map out basic functionality before committing them to code. <9> I'm in the process of translating all strings and comments to english <10> Ceran: checking the person you're talking to is still in channel is another good step. ;) <10> Ceran: you're answering the wrong question. <7> heh, he does seem inconsistent <10> Ceran: he's brasilian. <10> Ceran: so he's wondering if he should program in english or his native language. <7> Ah <10> Xamusk: Linus Torvalds (who speaks finnish) is of the opinion that all programmers should program in english. <7> Xamusk: Who's the target audience for your program? <11> anyone a pygtk wiz? see if you can tell me what's wrong with this minimal non-working example <9> hehehe <3> all programmers should program in Portuguese. <11> the last icon in the view should automatically scroll into view when necessary <2> uhauahuahuahauh <11> http://rafb.net/paste/results/jwntyg88.html <2> LOL <12> no, swahili!! <12> everyone knows that! <10> that dude has to fix his irc client. <4> just in case somebody from the PyCon organization team is here. i'm really looking forward to listen to the talks. hope it will not take too long until they are online. :) <10> Xamusk: fix your irc client. <7> Xamusk: Yes, you'll find that most programmers will know English, so you should use that if you plan on your program being developed by others down the road. <9> I was making it in my language, but since I think my app may be useful for others... <2> Anyone here knows if there's a wrapper for time and timeit? <13> Ceran: ie. if you think your program is not totally utterly crap anyway <9> Jerub, it's not the client, its the connection <10> zanella: 'profile' ? <10> Xamusk: needs fixing regardless :) <10> Xamusk: anyway, yeah, I agree with linus. program in english, keep it in english. <2> Jerub: I didn't read it properly but there's a license problem with that module I think <10> Xamusk: My wife has had to extend code written by germans, and it's no fun reading code with variable names and comments that are in a foreign language. <10> DAMN <1> english IS a foreign language <0> Like Blender, "what the hell is a vlak!?!" <10> Xamusk: My wife has had to extend code written by germans, and it's no fun reading code with variable names and comments that are in a foreign language. <2> Xamusk: dude, what's wrong with your connection? <11> Jerub: especially when everything's capitalized <9> Jerub, the problem is: I can't fix it... the link is for the building, and some moron is using the whole link, and the ISP doesn't know a thing about CBQ I think <10> Xamusk: ssh to a host outside your network and irc from there. <2> Xamusk: Guess you should establish link quotas then
<2> What's CBQ BTW? <0> Don't bother trying to talk at a connection like that. Just ban it. <0> ten <2> hari`: dude the connections here on Brazil just plain **** <7> stain: Essentially :) <9> Jerub, it's not only irc... all the connections are falling... I think the firewall isn't handling the load (probably the guy has some p2p app making a zillion connections) <0> five <0> zero <9> zanella, indeed <7> Xamusk: Are you on dialup or something? <2> heheheh no I think he's not <7> wireless probably <11> zanella: tell me about it. the whole pygtk faq is down <2> LOL wireless <0> No, it's too regular for wireless dropout. <9> zanella, specially when someone without a clue about connections use some app wich defaults to 1000 connections at once <0> Just ban it. Let him sort it out and /msg later. <9> Ceran, nope... radio <7> holy crap <7> internet over radio? <9> Ceran, yes <2> Xamusk: Is there a master server every connection p***es through? <2> Ceran: yes <2> Xamusk: Like a DHCP server? <9> zanella, the gateway in the last floor <7> Xamusk: Is it being bounced off the ionosphere or something? <2> Xamusk: Like, you can set bandwisth quotas <11> Xamusk: just walk around until you hear the person *********ing most furiously, and kick his *** <2> *bandwidth <9> Ceran, I don't think so... it's probably some higher frequency, as only HF and lower bounces, and HF is not useful for broadband <8> what python module do I use for irc? <7> bulio: twisted :) <0> socket <10> bulio: twisted.words <9> I have already "identified" the IP of the guy, but I haven't figured out how to send a message to him via samba, like with the net send in windows <7> I think there's something like a twisted.ircbot <10> twisted.words <10> that's where it is <10> that's what Scratch runs on <2> Xamusk: try ping flooding him :-) <9> zanella, I have... twice :( <9> windows xp is harder to fall <9> maybe I should find some script-kiddie nuker to blast him away <10> I would arp-spoof him or something. <10> put you between him and the internet and drop all his traffic <0> Ugh, why not just ban the incessant reconnects for a while? <2> Jerub: and _how_ would you do it? <9> jerub: I don't know what arp-spoof is <9> hari`, I'll go soon enough <10> zanella: I would start with scapy <9> hari`, it's not like you're having a most important conversation in this channel <2> Jerub: googling... <10> zanella: flood the local link with arp replies that claim that my mac address is the gateway. <10> then I would selectively route packets to the real gateway, excluding the leecher's. <2> Jerub: hmm <9> this is evil 3:-> <10> Xamusk: of course. <10> (I work in network security, can you tell?) <2> Jerub: eheheheh <9> Jerub, well, it's that or you're very interested in that, like some l33t h4ck3r <9> whoa, I was thinking this scapy was some windows app, but it's python! cool <9> zanella, when I ping-flood him, I disconnect less often... it may be slowing him down <2> Xamusk: ask someone else to do it too then :-P <14> i am writing a py extension that blocks waiting for io, is there a way to check for keyboard interrupt without returning and then re-entering the extension <14> i.e. "do a check for keyboardinterrupt within a C extension" <9> ok, I'll stop bothering you all with my disconnections <9> zanella, nice tip... now I'm pinging it from 2 pc's... mine and my girlfriend's <2> Xamusk: dude I don't even know if that's a tip <2> I used to do it to annoy a friend of mine <9> now it is 3:) <2> Actuallu I think it will deteriorate your conncetion since there will be a lot more packets running <2> through the wire
Return to
#python or Go to some related
logs:
Debian testing dhcpd3 mount HFS+ on UNbuntu usbtty0 debian inittab shoutcast server xubuntu ati fgrlx vdr turn off UFT ubuntu beautifulsoup nonetype not callable #css #physics #centos
|
|