@# 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



Comments:

<0> zeaq_: import posix
<1> and when i type 'name' displays 'my name'
<0> gerardo: "my_name"
<2> HowardTheCoward: upss.... one moment
<1> _ <- ?
<0> zeaq_: and it's unix-specific
<2> HowardTheCoward: that's ok...
<0> zeaq_: i'm still a bit confused since winnt/2000/xp claim to be posix-compliant
<3> are both psyvopg and pygresql still alive
<2> HowardTheCoward: with posix._exit i get the same result as with sys.exit. it close the parent process.
<4> gerardo: your variables cannot contain spaces. Must start with a letter or underscore and contain only letters, underscores or numbers...
<1> ij
<1> ok
<0> zeaq_: you could make difference between child and parent by PID IIRC
<1> hey vbgunz
<1> look



<2> HowardTheCoward: could you explain this a little bit? i'm new to python. what is iirc?
<1> >>> nombre = "my_name"
<1> >>> nombre
<1> 'my_name'
<1> >>>
<0> If I Remember Correcly
<1> why this cannot display: 'my name'
<2> HowardTheCoward: just write what you know ;-)
<4> gerardo: no I meant my name = 'anything^&*^%# 2dkjn'... I meant your variable names cannot contain spaces... sorry :(
<0> zeaq_: man fork would explain, it returns 0 for parent pid of new process for child; you might try to add a comparison against this before calling exit
<0> gerardo: show your code
<1> isn't code.
<1> i testing in the python
<1> >>> nombre = "my_name"
<1> >>> nombre
<1> 'my_name'
<1> and:
<1> >>> nombre = "my name"
<1> >>> nombre
<1> 'my name'
<2> HowardTheCoward: i'm in a 'pid > 0' condition - also in the child code. i call sys.exit(0) and the child kills his parent .....
<0> gerardo: and your question is ?
<1> this works, but i don't know what caracter is, i copy/paste it.
<1> What caracter is? and how can i make it?
<1> i'm reading ur tutorial of 499 pages HowardTheCoward :> is ok!
<4> gerardo: almost all tutorials begin with simple variable ***ignments... It shouldn't be too trivial I hope :\
<4> gerardo: btw, what tutorial are you reading up on?
<1> http://marmota.act.uji.es/MTP/pdf/python.pdf
<1> this.
<1> in page. 49
<5> zeaq_: i missed the context, but pid > 0 is parent code
<0> zeaq_: are you sure the parent exits because the child exits and not because of another reason ?
<2> could you have a quick look at the source code?
<6> gerardo, what character are you talking about?
<1> of space
<6> gerardo, you press the space bar
<6> just like you are doing now
<1> -.-
<4> gerardo: wow, I cannot read spanish but know you're very lucky finding that on the web. It seems filled with a lot. I hope it works out for you!
<1> in a one 'chain' ?
<2> joedj: are you sure? in my option the parent is pid=0
<1> vbgunz: yeah is pretty the ebook.
<1> :D
<0> zeaq_: that was MY option :)
<5> zeaq_: on success, fork returns the child PID to the parent process, and 0 to the child process
<0> zeaq_: and man fork just said ne i was WRONG :)
<0> s/ne//
<4> gerardo: if you're writing simple strings like names and sentences and wish to ***ign them to a name, you'll have to enclose those strings within single or double quotes... If strings we're not closed in quotes then every word in the string would be looked up as a variable...
<1> ok
<4> this and 'this' in python are two different things... the first is a variable and the second 'this' is a string...
<4> Anyone here use tkinter? does tkinter have the ability to show it's buttons and fields in a flat style? I really dis like the beveled look...
<4> or can tkinter apps be themed somehow? with something lightwieght?
<7> Tile.
<4> ignacio: do you know of any screenshots that show different styles? will tkinter ever be updated to appear more modern?
<7> http://tktable.sourceforge.net/tile/
<7> http://tkinter.unpythonic.net/wiki/UsingTile
<8> pyQT :)
<4> Quote: "Tile is currently being incorporated directly into Tk"
<4> holy cow
<4> those screenshots are amazing



<2> joedj and HowardTheCoward: sorry i'had a telephon call
<4> it seems to appear as native as possible on Windows, Linux and Mac... thats an achievement
<2> joedj and HowardTheCoward: i post my source here: http://nopaste.php-q.net/201474. maybe you could have a look!?
<4> I've got to get on the friggin bandwagon with TK... at first I disliked it but now its making my pants tight
<7> Tile makes it almost tolerable.
<9> hi
<8> I thought the sushi it came with made it tolerable ;)
<10> mmm... sushi
<8> my favorite is this tuna avacado roll a place near here makes :)
<4> ignacio: that was one of the most awe inspiring links I've ever clicked on in regards to tk... I mean, to be honest I hate the tk appearance but tile looks awesome!
<7> Indeed.
<0> zeaq_: where does your script die? which line?
<9> s = smtplib.SMTP(server) fails at gethosbyname() while gethostbyname(server) works fine. Have you got a tip why? tnx
<2> HowardTheCoward: line 52
<4> ignacio: do you know of any applications that run on Windows and Linux and use Tile? I would like to test it... I am hoping it doesn't have flicker to it... its ok if you don't I will hopefully soon enough find out!
<7> I don't, sorry.
<7> But if you put something together I can give it a try here.
<11> is there any way with list.sort() to break when the first change is made?
<5> zeaq_: line 18 is wrong
<0> zeaq_: The function _exit terminates the calling process "immediately". Any
<0> open file descriptors belonging to the process are closed; any children
<0> of the process are inherited by process 1, init, and the process's par-
<0> ent is sent a SIGCHLD signal.
<4> ignacio: I am not up to interfacing but am nearing my study... I am beginning to write small cl***es and tiny little programs without any reference... feeling pretty competent but was always weary of even thinking tk... not any more though, I have fire in the buttock area... could be the roids :\
<8> alus: what do you mean break when the first change is made?
<0> zeaq_: try to catch that SIGCHLD in the parent
<5> HowardTheCoward: nah, his child process exits immediately. the parent process is the one doing sock.sendall, _exit etc...
<11> kosh: so the sorter returns -1, 1, or 0
<11> I'd like to break when the first non-zero is returned
<5> zeaq_: line 18 should read 'if pid == 0:'
<8> alus: I still don't get what you are trying to accomplish
<5> zeaq_: you probably shouldn't be writing low-level code like this :)
<11> kosh: I want to know if there's any sorting to be done
<8> alus: list.sort() will sort the list inline it will only return a None
<0> joedj: yes pid > 0 means he is inside the parent
<2> joedj: ok. i've changed line 18.
<12> using BeatifulSoup, how delete <td> and <a> tags? http://django.pastebin.com/626566
<8> alus: I don't know of a simple way to do that without scanning the list to see if it is sorted, why do you want to do this?
<8> alus: why not just sort it?
<2> joedj: do you have a easer example?
<11> kosh: because wxListCtrl.SortItems flickers if the list is already sorted
<11> currently I sort the list and compare it to the old one before I call it
<11> but I could improve that a little by detecting any change in ordering
<12> any help with BeautifulSoup? please
<7> Turn double-buffering on for the control.
<2> joedj: i'm relative sure, that line 18 was right. before changing my daemon could accept multiple connections. now he couldn't accept only one.
<11> ignacio: on windows?
<7> What does the OS have to do with it?
<9> tnx for help :p
<11> ignacio: how do I enable double buffering on windows?
<11> on wx, I mean
<7> Not a clue.
<7> Presumably it would be an attribute, but I've never used wx.
<7> Hell, I don't even know if you can do it at all.
<7> But if you can, that's what you'd need to do.
<2> joedj and HowardTheCoward: if we just ignore line 18. the problem is still the same. how to exit the child process.
<0> zeaq_: why don't you start with priting out some debug info like "now inside parent" and "now inside child" and watch their precedence on the screen?
<0> BleSS: I use BS but i have no idea how to do that. sorry. the example shows only how to replace tag attributes
<2> i've done this already. but i can't close a child. and this is my problem ;-)
<5> zeaq_: here's that simpler example, using a high-level API: http://rafb.net/paste/results/xa6X3532.html
<0> joedj: but it uses twisted
<0> joedj: and from your example i don't even see if it uses fork or threads
<2> joedj: thank you!
<5> HowardTheCoward: neither. it uses select()
<0> joedj: see :P
<5> HowardTheCoward: this is the point of the high-level API :)
<0> joedj: problem is that select() has nothing common with fork()
<5> HowardTheCoward: i ***ume zeaq_ is using fork() as a means to an end, not because he wants to use fork
<5> HowardTheCoward: any other mechanism that allows him to handle concurrent requests should be fine...
<13> i have an extending and embedding project in python. i have a python module 'foo' that has a dict 'bar' inside it. how do i get the reference to 'bar' from c code ?
<5> zeaq_: the only thing that doesn't do that yours does is daemonize. if you do use twisted though, it has support for doing that with very minor changes, no need to write the 100 lines or so of daemonizing code
<14> morning
<2> HowardTheCoward and joedj: i should be possible to accept multiple connection. whatever solution...
<5> zeaq_: my example will certainly do that


Name:

Comments:

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






Return to #python
or
Go to some related logs:

bash script kde autostart feh
#lgp
#perl
#awk
nautilus-cd-burner unknown error
vsftpd audit permission denied
#php
#awk
#bash
#mysql



Home  |  disclaimer  |  contact  |  submit quotes