| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> mamat, I'd just go ahead and close it. <1> mischko: I dont' have their cd, I used the ed2k network to get them <1> aMule to be precise <2> ed2k? <1> I'm not proud but I did it ;o <3> http://cdo.linux.org.ph/pipermail/linux/2006-January/003876.html <1> cjfs: aMule == linux emule <3> whole list of ebook sites. <3> if the law asks, you didn't get it from me. <2> something tells me this isn't exactly compliant with copyright law <2> perhaps being that you find python so useful it would be wise to support the surrounding community by at least complying with such laws? <1> cjfs: it aint <4> cjfs: and you care about copywright law? <2> there is plenty of freely available documentation, use that if you don't want to pay <1> cjfs: I still haven't read a single one of the books <2> Sulis: yep, weird isn't it
<4> totally <1> cjfs: I used the python tutorial <5> i use a file to store a timestamp and i parse it using strptime. normally there's no newline at the end but if i edit it by hand, vim adds one and i get a parse error ("unconverted data remains")... you guys have an easy way to not worry about eventual newline <5> ? <2> mamat: rstrip <0> line = line.strip() <6> is there any syntax error in this line: <6> self.button1 = Button(self.frame3, <6> text = "Connect", <6> command = lamda <6> arg1 = self.ent1.text, <6> arg2 = self.ent2.text: <6> self <2> or if it's only one line, just check if the line is empty and throw it away if so <7> Klavier: comma after lambda <7> and something after "self" <3> cjfs: I have over 50 books on my bookshelf at the moment, most programming centric. I have no need for the ebooks, but when I do run across such docs i bookmark the page. <7> and should not be : after "text" <6> i tried stain <7> or is that the whole lambda?? <7> hmmm <5> cool thx! <6> command = lamda <6> arg1 = self.ent1.text, <6> arg2 = self.ent2.text: <6> self.baglan(arg1,arg2) <6> ) <7> I don't see the point of that lambda <8> Klavier: I thin you mean 'lambda', not 'lamda' <9> stop spamming, use a pastebin Klavier <7> oh my <2> sysfault: if you're looking for cheap ebooks legally, check out oreilly.safari.com as well <10> stain: yes, indeed. I had forgotten that for a sec :) <6> okay sorry prencher <10> stain: (everything is an object) <8> Klavier: but I would seriously consider rewriting that with a separate 'def' statement right before the Button() call. <3> cjfs: I don't search for them, i have enough books here i have to read, and they're prioritized. :) <10> stain: so by saying bar.foo() I gave the methods output to the thread_start_new function, which was wrong. It was probably expecting a bar.foo function object :) <10> s/output/results of/ <2> I hate seeing good, customer focused companies like o'reilly be made to look like fools as the **AA say "I told you so" <2> but that's enough about that <11> anybody use trac ? <1> finally ;) <3> yep <7> sivang: exactly.. =) In fact, your calculation would be all done before even constructing the thread was started! <3> I do. <1> KarlsBerg: yup <11> i need a mini-forge type Sourceforge.net or Gforce <1> KarlsBerg: for trac <11> i create account, and a user can edit and update her project... <1> tracforge.net, but ut's still a work in progress <11> and all public without account can view and explore the projects <11> i test 2-3 project of this type <1> KarlsBerg: but you can participate on the tracfore.net project if youd like to <11> and all is enfoced for intranet with p***word <9> trac is excellent <10> stain: amazing! this is the exact symptoms I had witnessed with out ability to explain why :) I had though something went wrong with IPython when it re-acted that way when testing it interactively :) <10> stain: the expection would come from outside the start_new_thread :-) <11> the problem its that i search a aplication web-based without thousand links on screen type sourceforge.... <11> i search a clean and quick design and a basic funtion <11> sorry but my english dont offer very solture
<10> stain: is that okay to ask you about locks as well, I am not sure if I need to use them , where could i consult to know about this? <1> KarlsBerg: http://dev.ufsoft.org see if you like how it looks, it's probably what your searching <11> reallity i dont need the python aplication <11> php, java, indiferent me XD <11> is very bad my english ? jijij <11> its <1> KarlsBerg: it has register posibility, and TRAC_ADMINS can admin the site from web(most of it) <12> is python using the native thread handling of the os (i.e several thread in the application = several os threads) or does it multiplex a single thread given by the os? <11> s0undt3ch, but this project is for all users or need a account for see projects ? <1> KarlsBerg: you only need trac, mod_python, account_manager trac plugin, and webadmin trac plugin... <0> does trac work against PostgreSQL or only MySQL? <7> sivang: you use locks whenever you modify or use some resource were it would be troublesome if some other thread also did the same <11> my hostings offer Python Scripts but i dont know if this is a mod_python <1> KarlsBerg: everyone can see, but only registred can edit, but it can be configured using trac's permissions <11> nono <1> KarlsBerg: mod_python only makes it simpler to join multiple separate projects <11> im the admin <7> sivang: for instance if you read some value, and do some stuff, and then write something else back based on that value.. if you need to be sure that the value you read did not change while you did this, you would use a lock <11> im create account for project <11> the admin of project join, edit her sections of her project <11> and ALLL users can see, read, and download her project <11> MiniSourceForge Clon ! <11> :O ! <11> u understand me ? <10> stain: ah okay, nicely and simply put , gazillion thanks to you, I was too lucky to find you here =) do you usally hang out here? <7> simplest example is if you have a list and you are picking out list[4], process the value, and then reinsert it at list[4] - now it would usually crap up your program if some other program had replaced list[4]while you were doing this <1> KarlsBerg: you're the admin, so you create the trac env's, give the new user TRAC_ADMIN over their project so they can tweak trac..... etc.... <7> sivang: don't rely on me, please <11> this is valid no ? <7> KarlsBerg: that's the normal Sourceforge-kind of way to do it.. projects are open to the world <13> hazyNRG: thanks for the link , it cleared up a lot of Questions i had and could'nt seem to find a straight Answer :) <11> yeah <11> open for see <10> stain: okay , then s/do you usually hang out here?// :-) <1> KarlsBerg: but you'd better ask at #trac, you can have a better idea, but for trac since your the admin you need shell access to administrate the several trac envs <11> i dont have a shell on my host <11> :_ <1> KarlsBerg: like all projects on http://dev.ufsoft.org are, open... <1> KarlsBerg: then that's a problem, you can't just upload trac to a hosting comp trough ftp.. <1> KarlsBerg: you have to install it on the server <6> cant i set for an arg in lambda entry 's get() method? <6> or how can i do that? <1> well, got to go, see ya ppl, thanks for everything ... <7> sivang: hihi, Yes I do.. I don't have a life =) <6> it s my code friends: http://www.rafb.net/paste/results/7SifEm22.html <7> Klavier: when your lambda starts growing to several lines, just define a normal function outside instead <7> and don't call things "arg1" and "ent1" etc. <7> variable56 = variable21.method33() <7> Klavier: in fact, with your example, why don't you just say command=self.baglan ? <7> taking two arguments and p***ing them on as the two first arguments is really a no-op <8> Klavier: lambda is very limited. Fortunately, it does nothing that can't also be done with 'def'. <8> Klavier: so, use 'def' instead. <6> okay <5> is it possible to p*** a ref to a variable to a function to have it store something there? <8> no. you can have functions return multiple values, though, or you can use p*** a container instead. <7> mamat: why? <5> "you can use p*** a container instead"? <8> variables are only names pointing to objects. you can't p*** a reference to the variable. You can only p*** a reference to an actual object, then have the function mutate that reference. <8> eh, mutate that object. <8> you can p***, for instance, a list to a function, then have that function append or remove items from the list. <7> mamat: please describe WHY you would like your function to do such a thing <7> maybe there's a better way to do it <5> i want to p*** an optional string variable where the function would store the string i need <8> mamat: or, even better, you can use a cl*** instead. store the variables in the instance, do the work in the methods. <8> mamat: have it return it instead. <7> my_string_variable = my_function() <5> lol <7> where does this string come from? <7> are you planning to reimplement setattr() ? =) <5> what's an "no Ell Oh Ell" zone? <8> mamat: it means 'don't say lol or similar nonwords' <0> Why is #python a no Ell Oh Ell zone? <8> because it works. <5> doh! lost all my window...
Return to
#python or Go to some related
logs:
#css iptables binary extended away +gaim fun serverry wow swapElementText XIO: fatal IO error 104 (Connection reset by peer) debian network #lisp #oe touchtone terrorists torrent repotec archlinux
|
|