#jython IRC Log (v0.9)

Index

IRC Log for 2011-07-07

Timestamps are in GMT/BST.

[0:18] * Trundle (~andy@python/site-packages/trundle) Quit (Remote host closed the connection)
[0:47] * headius (~headius@mobile-198-228-225-244.mycingular.net) has joined #jython
[1:05] * headius (~headius@mobile-198-228-225-244.mycingular.net) Quit (Read error: Connection reset by peer)
[1:06] * enebo (~enebo@184-97-212-31.mpls.qwest.net) has joined #jython
[1:08] * enebo (~enebo@184-97-212-31.mpls.qwest.net) Quit (Client Quit)
[1:14] * shashank (~shashank@67-40-52-2.hlrn.qwest.net) Quit (Ping timeout: 240 seconds)
[1:16] * shashank (~shashank@67-40-52-2.hlrn.qwest.net) has joined #jython
[2:12] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) Quit ()
[2:32] * agronholm (~demigod@nblzone-211-37.nblnetworks.fi) Quit (Remote host closed the connection)
[2:33] * agronholm (~demigod@nblzone-211-37.nblnetworks.fi) has joined #jython
[2:35] * thobe1 (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) has joined #jython
[2:35] * thobe (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) Quit (Read error: Connection reset by peer)
[3:17] * enebo (~enebo@184-97-212-31.mpls.qwest.net) has joined #jython
[3:25] * thobe1 (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) Quit (Quit: Leaving.)
[3:30] * enebo (~enebo@184-97-212-31.mpls.qwest.net) Quit (Quit: enebo)
[3:46] * lolsuper_ (~super_@pool-96-254-154-66.tampfl.fios.verizon.net) has joined #jython
[3:46] * lolsuper_ (~super_@pool-96-254-154-66.tampfl.fios.verizon.net) Quit (Changing host)
[3:46] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[4:05] * thobe (~Adium@173-164-157-181-SFBA.hfc.comcastbusiness.net) has joined #jython
[4:05] * juneau001 (~juneau@50.44.37.174) Quit (Ping timeout: 250 seconds)
[4:08] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[6:29] * thobe (~Adium@173-164-157-181-SFBA.hfc.comcastbusiness.net) Quit (Ping timeout: 240 seconds)
[6:43] * lheuer (~heuer@unaffiliated/lheuer) has joined #jython
[7:16] * Trundle (~andy@python/site-packages/trundle) has joined #jython
[7:23] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[8:26] * thobe (~Adium@173-164-157-181-SFBA.hfc.comcastbusiness.net) has joined #jython
[8:44] * thobe (~Adium@173-164-157-181-SFBA.hfc.comcastbusiness.net) Quit (Ping timeout: 240 seconds)
[9:27] * lopex (531346b2@gateway/web/freenode/ip.83.19.70.178) has joined #jython
[11:16] * juneau001 (~juneau@fess-116326.dhcp.fnal.gov) has joined #jython
[11:37] * lheuer (~heuer@unaffiliated/lheuer) Quit (Quit: Closing Time)
[12:23] * thobe (~Adium@173-164-157-181-SFBA.hfc.comcastbusiness.net) has joined #jython
[12:35] * wainersm (~wainersm@201-68-158-104.dsl.telesp.net.br) has joined #jython
[12:57] * thobe (~Adium@173-164-157-181-SFBA.hfc.comcastbusiness.net) Quit (Quit: Leaving.)
[13:58] * Trundle (~andy@python/site-packages/trundle) Quit (Remote host closed the connection)
[14:27] * lopex (531346b2@gateway/web/freenode/ip.83.19.70.178) Quit ()
[15:03] * clajo04 (Clark@166.sub-75-213-123.myvzw.com) has joined #jython
[15:05] <clajo04> Was hoping that someone here could help me with the Jython way of doing the equivalent of the following code in Java (Swing): http://pylonshq.com/pasties/3c7cbccd797b75f784c41148c7d1ab53
[15:12] <agronholm> python does not have anonymous classes
[15:12] <agronholm> but
[15:12] <agronholm> isn't it enough to just do setInsets()?
[15:13] <agronholm> clajo04: ?
[15:14] <clajo04> agronholm: I didn't find setInsets when I googled, but I am not a Java/Swing coder, so I could have easily missed it. So this is basically creating an anonymous subclass of JFrame with the getInsets overloaded and creating an instance of it and assigning it to frame?
[15:14] <agronholm> yes
[15:16] <clajo04> agronholm: okay - thanks. I'll look again for setInsets - what I did find was a lot of discussion on border creation... but not being familiar with Swing, I didn't dig that deep.
[15:16] <agronholm> it's not there
[15:16] <agronholm> this seems like a bad thing to do
[15:17] <agronholm> what are you trying to accomplish really?
[15:17] * enebo (~enebo@184-97-212-31.mpls.qwest.net) has joined #jython
[15:18] <clajo04> agronholm: my goal is to replicate an existing Java/Swing program using Jython... unfortunately I know little of Java/Swing. So I am not sure what the goal of this code is.
[15:18] * lahwran (~lahwran@unaffiliated/lahwran) Quit (Read error: Operation timed out)
[15:18] <agronholm> well, the easy way out is to subclass JFrame and extend getInsets()
[15:18] * fwierzbicki (~frank@99-106-170-105.lightspeed.sntcca.sbcglobal.net) has joined #jython
[15:19] <clajo04> So define a Jython class that inherits from JFrame, and define a getInsets() method in my Jython class... I wasn't sure if that would work.
[15:21] <agronholm> why not
[15:22] <clajo04> agronholm: wasn't sure if the native Swing code would call back into my Jython method...
[15:23] <agronholm> overriding methods is possible with Jython
[15:24] * lahwran (~lahwran@unaffiliated/lahwran) has joined #jython
[15:25] <clajo04> agronholm: I will give that a shot... thanks for the help.
[15:29] * clajo04 (Clark@166.sub-75-213-123.myvzw.com) Quit ()
[15:30] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) has joined #jython
[15:37] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) Quit ()
[15:38] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) has joined #jython
[15:47] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) Quit ()
[15:51] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) has joined #jython
[15:52] * super__ (~super_@unaffiliated/lolsuper-/x-9881387) has joined #jython
[15:54] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) Quit (Client Quit)
[15:55] * lolsuper_ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Ping timeout: 255 seconds)
[15:56] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) has joined #jython
[15:58] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) Quit (Client Quit)
[15:58] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) has joined #jython
[16:08] * clajo04 (clajo04@166.sub-75-213-123.myvzw.com) Quit ()
[17:03] * wjlroe (u1877@gateway/web/irccloud.com/x-nennfrfnglfonejy) has joined #jython
[17:10] <wjlroe> Is jython on a maven repository anywhere? 2.5.0 seems to be the latest on repo1.maven.org
[17:11] <agronholm> nope, ohumbel still hasn't gotten around to it
[17:11] <agronholm> after several months
[17:11] <wjlroe> oh :(
[17:42] * super__ (~super_@unaffiliated/lolsuper-/x-9881387) Quit (Read error: Connection reset by peer)
[18:16] * enebo_ (~enebo@184-97-212-31.mpls.qwest.net) has joined #jython
[18:16] * enebo (~enebo@184-97-212-31.mpls.qwest.net) Quit (Read error: Connection reset by peer)
[18:16] * enebo_ is now known as enebo
[19:18] * sitkack (~sitkack@bigfish-208-077-153-006.bigfishgames.com) Quit (Read error: Connection reset by peer)
[19:19] * sitkack (~sitkack@bigfish-208-077-153-006.bigfishgames.com) has joined #jython
[19:23] * clajo04 (~clajo04@pool-108-41-219-3.nycmny.fios.verizon.net) has joined #jython
[19:24] * clajo04 (~clajo04@pool-108-41-219-3.nycmny.fios.verizon.net) Quit (Client Quit)
[19:27] * juneau001 (~juneau@fess-116326.dhcp.fnal.gov) Quit (Quit: juneau001)
[19:29] * clajo04 (~clajo04@pool-108-41-219-3.nycmny.fios.verizon.net) has joined #jython
[19:55] * Oti (~ohumbel@gprs45.swisscom-mobile.ch) has joined #jython
[19:56] <Oti> i'll be back soon - sorry folks!
[20:17] * Oti (~ohumbel@gprs45.swisscom-mobile.ch) Quit (Quit: Colloquy for iPhone - http://colloquy.mobi)
[20:17] * shashank (~shashank@67-40-52-2.hlrn.qwest.net) Quit (Ping timeout: 276 seconds)
[20:31] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) has joined #jython
[20:56] * wainersm (~wainersm@201-68-158-104.dsl.telesp.net.br) Quit (Quit: Ex-Chat)
[21:18] * shashank (~shashank@67-40-52-2.hlrn.qwest.net) has joined #jython
[22:00] * thobe (~Adium@ip65-46-231-74.z231-46-65.customer.algx.net) has joined #jython
[22:29] * Trundle (~andy@p5B2DB6F4.dip.t-dialin.net) has joined #jython
[22:29] * Trundle (~andy@p5B2DB6F4.dip.t-dialin.net) Quit (Changing host)
[22:29] * Trundle (~andy@python/site-packages/trundle) has joined #jython
[22:39] <sitkack> @agronholm if this just on your local machine this works, mvn install:install-file -DgroupId=test -DartifactId=jython-252-basket -Dversion=2.5.2 -Dpackaging=jar -Dfile=jython-2.5.2.jar
[22:40] <sitkack> if you need to install jython into your local repo, you should make a project that contains the jar file exploded under src/main/resources then configure hudson to do a release into your local nexus repo
[22:40] <sitkack> it is a pain I know, but it is what it is
[22:41] <sitkack> this is how we "snuck" jython into our maven build system
[22:41] <maxb> Huh? What possible reason is there to explode the jar file?
[22:42] <maxb> That seems like an unnecessary opportunity to break things
[22:42] <sitkack> I used what worked, there is probably a better way, but if I can use mvn for 10 minutes less I will take the chance
[22:51] <sitkack> here is a sanitized pom file that we used to install jython into our repo: jython maven mvn install http://pastebin.com/2kC94rWx
[22:53] <sitkack> jython not being available in the public maven repos really hurts adoption at many large dev shops
[23:14] * enebo (~enebo@184-97-212-31.mpls.qwest.net) Quit (Quit: enebo)
[23:20] <agronholm> sitkack: I don't use maven
[23:20] <agronholm> I try to stay away from java generally
[23:24] <sitkack> oops! I meant to direct that @wjlroe
[23:42] * enebo (~enebo@184-97-212-31.mpls.qwest.net) has joined #jython
[23:49] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) Quit (Ping timeout: 276 seconds)
[23:57] * lopex (~lopx@84-10-213-252.dynamic.chello.pl) 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).