#jython IRC Log (v0.9)

Index

IRC Log for 2012-01-20

Timestamps are in GMT/BST.

[0:12] * shashank (~shashank@ucb-np2-238.colorado.edu) has joined #jython
[1:57] * plankton (~peretto@201-89-243-7.cscgo702.dsl.brasiltelecom.net.br) has joined #jython
[2:12] * shashank (~shashank@ucb-np2-238.colorado.edu) Quit (Ping timeout: 240 seconds)
[2:39] * plankton (~peretto@201-89-243-7.cscgo702.dsl.brasiltelecom.net.br) Quit ()
[2:55] * shashank (~shashank@71-211-151-121.hlrn.qwest.net) has joined #jython
[3:08] * ttgr (liame@nl104-214-64.student.uu.se) has left #jython
[4:55] * shashank (~shashank@71-211-151-121.hlrn.qwest.net) Quit (Read error: Connection reset by peer)
[4:55] * shashank (~shashank@71-211-151-121.hlrn.qwest.net) has joined #jython
[5:25] * srcerer_ (~chatzilla@dns2.klsairexpress.com) has joined #jython
[5:28] * srcerer (~chatzilla@dns2.klsairexpress.com) Quit (Ping timeout: 252 seconds)
[5:44] * shashank (~shashank@71-211-151-121.hlrn.qwest.net) Quit (Quit: Leaving.)
[6:00] * thegeekinside (~thegeekin@189.135.220.214) has joined #jython
[6:04] * juneau001 (~juneau@50-103-50-242.dklb.il.frontiernet.net) Quit (Ping timeout: 245 seconds)
[6:33] * thegeekinside (~thegeekin@189.135.220.214) Quit (Quit: Bye!)
[6:35] * shashank (~shashank@71-211-151-121.hlrn.qwest.net) has joined #jython
[7:57] * shashank (~shashank@71-211-151-121.hlrn.qwest.net) Quit (Ping timeout: 245 seconds)
[8:23] * stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) Quit (Read error: Connection reset by peer)
[8:24] * stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) has joined #jython
[8:58] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) has joined #jython
[9:40] * Trundle (~andy@python/site-packages/trundle) has joined #jython
[10:12] * stakkars_ (~tismer@89.204.130.76) has joined #jython
[10:45] * shoky (uuuggg@109.226.14.218) Quit (Ping timeout: 276 seconds)
[10:48] * shoky (uuuggg@109.226.14.218) has joined #jython
[11:07] * ohumbel (5390f2dc@gateway/web/freenode/ip.83.144.242.220) Quit (Ping timeout: 258 seconds)
[11:14] * stakkars_ (~tismer@89.204.130.76) Quit (Ping timeout: 240 seconds)
[11:17] * rohanrhu (~rohanrhu@78.181.75.92) has joined #jython
[11:17] <rohanrhu> hi
[11:17] <rohanrhu> i need help
[11:17] <rohanrhu> can jython scripts compiled as .jar file*
[11:38] <rohanrhu> agronholm Arfrever Bootvis clajo04_ dmarkey er1k757 fwierzbicki jimbaker JStoker K4sperle Katharsis lahwran lopex MacRohard maxb njoyce pjenvey robbyoconnor shoky srcerer_ stakkars Trundle verterok verterok
[11:39] <agronholm> please don't blanket ping everyone
[11:39] <rohanrhu> agronholm: ok but i need help :)
[11:39] <agronholm> you mean packaged? jar files are just zips, you can package anything you like in a jar
[11:39] <rohanrhu> can jython scripts compiled as jar file
[11:39] <rohanrhu> i must write an applet with jython
[11:40] <agronholm> perish the thought
[11:40] <agronholm> I'm not sure that's even possible in 2.5
[11:40] <rohanrhu> agronholm: can write an applet with jython?
[11:41] <rohanrhu> agronholm: how to compiled as jar jython scripts?
[11:41] <agronholm> such applets will be huge since you need to include the jython runtime
[11:42] <agronholm> is that okay with you?
[11:42] <rohanrhu> agronholm: yes i understand
[11:42] <rohanrhu> agronholm: it can huge
[11:44] <rohanrhu> agronholm: or users can install jython
[11:44] <rohanrhu> agronholm: but how to compiled as jar jython scripts
[11:49] <agronholm> just so you know, jythonc does not exist on jython 2.5 so you cannot convert from python code to java code anymore
[11:49] <agronholm> you can compile py files to class files but the resulting classes aren't usable from java
[11:50] <agronholm> rohanrhu: installing jython beforehand has no bearing on the size of the applet since the applet could not use code from your filesystem anyway
[11:51] <agronholm> why must you specifically write it in python?
[11:51] * wainersm (~wainersm@189.61.204.85) has joined #jython
[11:51] <rohanrhu> agronholm: i know python great but my java is not enought
[11:53] <agronholm> rohanrhu: http://python.6.n6.nabble.com/HelloWorld-for-Jython-2-5-applets-td1774162.html
[15:09] * stakkars_ (~tismer@i59F7745A.versanet.de) has joined #jython
[15:45] * shoky (uuuggg@109.226.14.218) Quit (Ping timeout: 248 seconds)
[15:56] <robbyoconnor> rohanrhu: you do realize doing that is likely to NOT get you help
[16:18] * shashank (~shashank@71-211-151-121.hlrn.qwest.net) has joined #jython
[16:28] * stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) Quit (Read error: Connection reset by peer)
[16:28] * stakkars_ is now known as stakkars
[16:28] * stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) has joined #jython
[17:18] * lopex (u4272@gateway/web/irccloud.com/x-dshffhojakmhqiuz) Quit (Read error: Connection reset by peer)
[17:18] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Read error: Operation timed out)
[17:18] <rohanrhu> robbyoconnor: can you help me
[17:22] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[17:24] <agronholm> was that url not helpful enough?
[17:24] <agronholm> essentially you need a java stub that launches the jython interpreter
[17:25] <jimbaker> another good example can be seen in the django war file support
[17:34] * stakkars (~tismer@i59F7745A.versanet.de) Quit (Quit: schnarch)
[17:34] * stakkars_ is now known as stakkars
[17:36] * srcerer_ is now known as srcerer
[17:41] * lopex (lopex@84-10-213-252.dynamic.chello.pl) has joined #jython
[17:54] * lopex_ (u4272@gateway/web/irccloud.com/x-loiyeevxdydlunav) has joined #jython
[17:56] * lopex (lopex@84-10-213-252.dynamic.chello.pl) Quit ()
[17:56] * lopex_ is now known as lopex
[18:22] * shashank (~shashank@71-211-151-121.hlrn.qwest.net) Quit (Ping timeout: 260 seconds)
[18:42] * lopex (u4272@gateway/web/irccloud.com/x-loiyeevxdydlunav) Quit (Read error: Connection reset by peer)
[18:42] * stakkars_ (~tismer@g225090055.adsl.alicedsl.de) has joined #jython
[19:02] * stakkars_ (~tismer@g225090055.adsl.alicedsl.de) Quit (Quit: schnarch)
[19:12] * lopex (u4272@gateway/web/irccloud.com/x-zcwvluwvcexkriml) has joined #jython
[19:19] * shashank (~shashank@ucb-np2-238.colorado.edu) has joined #jython
[19:20] * stakkars_ (~tismer@g225090055.adsl.alicedsl.de) has joined #jython
[19:26] * slestak_work (~sromanow@63-144-86-130.dia.static.qwest.net) has joined #jython
[19:27] <slestak_work> i have an SimpleXMLRPCServer running in jython 2.5.2. I need to daemonize it.
[19:27] <slestak_work> doing some googling around, it doesnt look trivial.
[19:48] * wainersm (~wainersm@189.61.204.85) Quit (Quit: Ex-Chat)
[19:54] <jimbaker> slestak_work, you need to you a C-based tool for your daemonization. maybe use http://commons.apache.org/daemon/. or you could you cpython for the daemonization part (something i often thought would be a compelling reason to use both)
[19:55] <agronholm> I recommend supervisord
[19:56] <jimbaker> agronholm, a good choice, and written in python iirc
[19:56] <agronholm> yes
[19:56] <jimbaker> cpython that is
[19:58] * shashank (~shashank@ucb-np2-238.colorado.edu) Quit (Ping timeout: 272 seconds)
[19:58] * stakkars (~tismer@p5DDB5C07.dip.t-dialin.net) Quit (Read error: Connection reset by peer)
[19:58] * stakkars_ is now known as stakkars
[19:59] * stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) has joined #jython
[20:09] * stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) Quit (Read error: Connection reset by peer)
[20:09] * stakkars_ (~tismer@p5DDB5C07.dip.t-dialin.net) has joined #jython
[20:23] <slestak_work> i use supervisord already for some other applications.
[20:23] <slestak_work> on that box.
[20:31] <slestak_work> ive googled around. does anyone have a github or bb project that uses supervisord? I am concerned because my script uses server.forever() and my first attempts to daemonize it with "script.py &" were pretty bad
[20:43] <agronholm> how so
[20:45] <slestak_work> the xmlrpc server never came up, and the jdk didnt want to come down when i had to kill it.
[20:45] <slestak_work> wouldnt stop with a -15 or an -11. had to use a 9
[20:45] <slestak_work> s/jdk/jvm
[20:46] <slestak_work> I am in my supervisord.conf now giving it th ecollege try
[20:55] <slestak_work> it appears to be working. awesome
[20:56] <slestak_work> is a SIGKILL ok to use to stop jython?
[20:56] <agronholm> you could ask that of most apps
[20:56] <agronholm> jython has nothing special going on that would make it less OK to use sigkill
[20:56] <agronholm> (afaik)
[20:57] <slestak_work> the jvm is pretty foreign to me
[20:57] <slestak_work> supervisorctl status is showing EXITED, but the apopo is still running.
[20:59] <slestak_work> that is some good engrish. I mean the app is still running.
[20:59] <slestak_work> heading to teh supervisor manual to see what options I have
[21:02] <slestak_work> i might have to use supervisors pidproxy.
[21:03] * lopex (u4272@gateway/web/irccloud.com/x-zcwvluwvcexkriml) Quit ()
[21:05] * lopex (u4272@gateway/web/irccloud.com/x-srwcylnkbxtiwekv) has joined #jython
[21:06] * shashank (~shashank@ucb-np2-67.colorado.edu) has joined #jython
[21:10] <slestak_work> it doesnt appear that /usr/local/bin/jython writes a pid file. supervisord says it cannot stop a process it did not start.
[21:11] <slestak_work> i think that is why it it says exited, because what I launched, did exit
[21:14] <agronholm> since when does supervisord rely on pid files of subprocesses?
[21:14] <slestak_work> only in the example I gave, hold on, i have a link
[21:14] <slestak_work> http://supervisord.org/subprocess.html#pidproxy-program
[21:15] <slestak_work> since /usr/local/bin/jython calls java, supervisor loses scope of the process
[21:16] <slestak_work> the bash script /usr/local/bin/jython is very short lived.
[21:16] <slestak_work> pardon the paste.
[21:16] <slestak_work> well, i wanted to paste the java5 line that the jython script creates
[21:20] <slestak_work> are you a jython dev agronholm? I have a good example of bug #1831
[21:20] <agronholm> I am not
[21:20] <slestak_work> http://bugs.jython.org/issue1831
[21:23] <slestak_work> i replaced the jython line with the java5 executable line to see if that works
[21:24] <slestak_work> that worked well
[21:25] <slestak_work> supervisorctl start|status|stop all worked
[21:27] <agronholm> I used the same trick with jboss
[21:27] <slestak_work> cool
[21:27] <slestak_work> jython is really saving my buttocks
[21:28] <slestak_work> my crappy db only has java and .NET bindings, so jython lets me interact with the db with some sanity
[22:22] * stakkars (~tismer@g225090055.adsl.alicedsl.de) Quit (Quit: schnarch)
[22:22] * stakkars_ is now known as stakkars
[23:00] * slestak_work (~sromanow@63-144-86-130.dia.static.qwest.net) Quit (Quit: Leaving.)
[23:30] * stakkars_ (~tismer@i59F6CE14.versanet.de) has joined #jython

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).