| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Comments:
<0> Caution! There's a hungry op near here! <1> ok ok I wont ask anything else <2> the_lord, thank Jerub <1> I feel sorry <3> Yango_: that was a typo and you know it. <3> ;) <3> yay. <0> Tennessee: I filed Mono bug #78301, which can be considered interesting for SVO it. <1> please forgive a simple nonop mortal <3> the_lord: you should be told that there are lots of ways that are acceptable. <3> the_lord: like 'hee' and 'ha' and 'haha' <2> haheehaha <4> ook ook. <0> Oops 78031. <0> Sorry.
<4> My week has been mostly boring, but I've gotten the chance to improve some of my python idioms while pursuing boring goals. <0> Tennessee: Experimenting with LDAP server to use as addressbook. <1> yes, but since we are so philosophical, why accept hhe or yepee or anything but Ell Oh Ell?? <3> sanxiyn: run, run while you still can. <5> man i must b tired... <4> LDAP is very neat in organisations, I'm not quite so sure it's worth the overhead for personal use <5> wats wrong with this... print "%s, /? > ,%s", % line, g <3> the_lord: acceptable standards of behaviour form a more formal and helpful community. <0> Tennessee: It's for organisation use. <3> the_lord: anyway, what's your python issue? <4> Cottonballs: It could be almost anything. What's the exception, what's line and what's g? <6> Other than the fact that the stuff after % has to be a tuple? <0> phpLDAPadmin proved to be pretty nice. Is there comparable Python tool? <1> yes Cottonballs, it should be print "%s, /? > ,%s", % (line, g) <1> and i think it should be "%s, /? > ,%s" % (line, g) <1> without the comma after the second " <1> didn't saw that the first time <7> hi guys <7> i need to read an excel file and put it the dictionary for every row which has 5 columns what is the best idea <7> i know i should save it as cvs or text <7> any idea ?? <8> vorojak: you can interface to it through COM <8> and read the cells directly. <9> (csv, not cvs, btw) <8> or, sure, you could save it as csv and parse it. <9> yo tirkal :-) <7> TEK : sorry <8> hello TFK :) <7> lol <7> in that case ;) <7> back to the subject <9> (no point in being sorry, I'm just making sure you find the correct info instead of a source control system ;-) <7> tirkal : i know if there was only two column i could use split() function <7> but the problem is i have 5 columns <8> vorojak: that's not a problem <8> you can split an infinite number of columns. <8> with str.split and various other methods. <9> But then you have separator characters in literal, and oy vey... <7> the return will be touple right ??? <8> vorojak: try it and see :) <7> ok <7> thx any way <8> you're welcome. <10> on Linux is there a cool PDF editor? I find when printing in PDF from either gedit or open office I really don't have control over the page size and appearance, etc... <10> just curious... <11> morning #python <8> morning pfote <12> mornin' <13> hi everybody. i need to know the creation time of some files. i've found the os.stat function. is there any other method to do this? <14> reading the meta if supported by the FS so os.stat looks cool <14> anyway you can try using a the "medium" python module to try guessing the creation date but ... <13> but? <13> :) <9> What's wrong with ?os.stat ? <14> I'm not really sure the prediction algorythme is very accurate <13> TFK, nothing <13> i just was wondering :) <11> yeah, and that would be my next question .. whats wrong with os.stat? <13> i'll go this way, thanks guys
<9> pfote, it's between the "light" and "heavy" modules, of course! <13> :D <11> ah, there ! <11> o_O <14> The creation date guessing is a very requier many skill for a real medium and actual computeur lack of common tools as cristal ball or cofee <14> pfote: but can you computer read it ? <11> didnt try so far :-) <11> next week my new keyboard should arrive, then i can try ;-) <15> I had copied a python script from someother machine.. the number of tabspaces in that script is different from mine.. so there is a mismatch in the indentation.. how do I solve this problem ? so that I can edit the script in my machine without problesm ... I use VIM\ <14> two solution <14> keep the mess but tell python how many space a tab mean <14> replace all his ****ing tab bye 4 space and then edit the file with standard spcing <15> I guess I will go with the second solution <14> 1+) (surprise) tell you vim to understand tab as <nb space you want> <14> the second is better <16> hi <17> hi, I'm lurking the web form couple of day to find some info about socket connections through proxy, and didn't find nuthin though... could you give me some advice? <16> is there any integration between python doc and tool like DocOxygen ? <18> michalm: unless you're talking about something like socks, you don't make socket connections through a proxy <17> LeedsHK: I'm working on gadu client for python, and the library pygadu connects through socket.socket, and that is not working for proxies <17> the point is to forward socket.socket to proxy server, almost transparently <19> and LeedsHK's point is that you can't. <19> proxies deal in protocols, not in sockets. <17> hmmm <19> (unless it's a SOCKS proxy) <18> right - unless it's something like socks <18> I used SOCKS (yes, you're right) in anger for years - glad to be out from under it <19> you'll have to find out what kind of proxy normal gadu-gadu uses, and implement that in pygadu <17> it's http proxy <19> if pygadu uses sockets directly, you're out of luck. if it uses something like urllib, you can easily make it use proxies. <17> 'cause i'm using ekg written in c++, and it's working <17> ok, then so, I'll have to modify pygadu to work with urllib <19> or teach it to talk to a proxy itself (probably more work.) <17> ok i'll try :) thank a lot lads <16> no idea about stuff like DocOxygen in python doc ? <19> b_52Free: nope. everyone I know just uses pydoc, epydoc or pythondoc. <16> Yhg1s, ok <10> I need a refresher... what is the quickest way to remove the /n on a string? <20> vbgunz: s = s.rstrip() removes any trailing whitespace <10> joedj: thanks man! <10> curious but when using readlines() on a file, lines always come back with a /n character? <20> except the last one <10> thanks! <10> man, python is frigging fast... Just playing around I decided to write 10,000 lines to a file then read them in, then modify them by making 10,000 replacements, then writing it back to the file and the operations take less than 2 seconds to complete... <10> im sorry, 100,000 lines* <10> less than 8 for a million... :) <14> vbgunz: is that incredible fast ? <10> marmoute: I don't bench test but yeah I find that incredibly fast as an end user <10> marmoute: is that not fast? <14> dunno <17> for interpreted language is hell damn fast :] <17> try to do this with php, i'll take a minute or more <7> can any one please take a look atthis and tell me why this happens http://pastebin.com/645684 <10> well, I think its great... I just wrote a million lines, read a million lines back, replaced items in each of the million lines, wrote the lines back to the file and got done in 7 seconds... I bet I can still optimize it too... sheesh <10> vorojak: try removing the 0... in range() <21> vorojak: ent is a list, not a dict <21> vorojak: ent = list[num]; if ent['Code'] == '': <21> oh, wait <21> I read that as list(num) <21> Sorry. :) <21> probably not a great idea to name a list "list" <7> list containes dict <10> you cannot index a list using keys no? <7> so ent = list[num] will be a dict <7> and the ent['Code'] is one key in the dict <7> see there are some enterires in the list which containes no data and i want them to be removed <22> vorojak: [i for i in list if i] <10> vorojak: I guess since I am new to Python what makes your little snippet hard is the list identifier... are you using it as a new identifier or do you intend to use it as a constructor? Also, show the dict where you truly do intend to use it... to be honest, I am not sure what you're trying to accomplish <19> vorojak: it happens because you delete from the list. <21> [i for i in list if i['Code'] != ''] <19> vorojak: don't delete from the list you iterate over. your list will run out before your code thinks it should. stuff the items you *do* want in a separate list, instead, or iterate over the list backwards. <22> TML: yeah that is good, I had not looked at his code yet <21> kosh: I was just applying your principle to the code in practice. :)
Return to
#python or Go to some related
logs:
#debian #gentoo XGL for debian #lisp wifi-radar doesnt appear squirrelsql ubuntu #php irCuBiC gspace dependencies ubuntu cannot select proper resolution
|
|