#jython IRC Log

Index

IRC Log for 2015-07-07

Timestamps are in GMT/BST.

[0:58] * eatkin (~eatkin@166.70.212.121) Quit (Ping timeout: 246 seconds)
[1:00] * eatkin (~eatkin@166.70.212.121) has joined #jython
[2:18] * cce (~cce@pool-100-40-76-163.prvdri.fios.verizon.net) has joined #jython
[2:18] * cce (~cce@pool-100-40-76-163.prvdri.fios.verizon.net) Quit (Client Quit)
[2:53] * gopar (~gopar@2601:642:c001:f5b9:a6db:30ff:fea2:873) has joined #jython
[4:35] * fwierzbicki1 (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) has joined #jython
[4:35] * fwierzbicki (~Adium@99-106-169-5.lightspeed.sntcca.sbcglobal.net) Quit (Read error: Connection reset by peer)
[5:18] * gopar (~gopar@2601:642:c001:f5b9:a6db:30ff:fea2:873) Quit (Remote host closed the connection)
[6:49] * mbooth (~mbooth@redhat/mbooth) Quit (Ping timeout: 252 seconds)
[7:04] * ohumbel (5390f784@gateway/web/freenode/ip.83.144.247.132) Quit (Ping timeout: 246 seconds)
[7:17] * ztane_ is now known as ztane
[8:29] * will_f (~will_f@unaffiliated/will-f/x-7960964) has joined #jython
[8:30] * mbooth (~mbooth@235.168.112.87.dyn.plus.net) has joined #jython
[8:30] * mbooth (~mbooth@235.168.112.87.dyn.plus.net) Quit (Changing host)
[8:30] * mbooth (~mbooth@redhat/mbooth) has joined #jython
[8:30] <will_f> Anyone using the 'conda' package manager / sandboxer for managing their jython install?
[10:26] * mbooth (~mbooth@redhat/mbooth) Quit (Ping timeout: 256 seconds)
[10:41] * mbooth (~mbooth@redhat/mbooth) has joined #jython
[12:26] * Omeil (Omeil@43.252.108.58) has joined #jython
[12:28] <Omeil> Hi, I'm trying to use Jython to copy an image into an empty canvas but always seem to end up with error because of the variaion between pixels and index in the loops, can someone view my code and point me in the right direction please.
[12:41] <agronholm> no promises
[12:49] <Omeil> It's all good
[12:50] <Omeil> http://pastebin.com/4S8UcKaB
[12:50] <Omeil> @agronholm http://pastebin.com/4S8UcKaB
[12:51] <agronholm> next time please use python syntax highlighting
[12:51] <agronholm> makes source code easier to read
[12:51] <agronholm> what type is this canvas?
[12:51] <agronholm> do you use some external lib here?
[12:51] <Omeil> only import os
[12:52] <Omeil> just to determine filepath and extension
[12:52] <agronholm> there is no makeEmptyPicture() defined here
[12:52] <Omeil> It's at the bottom variable name is canvas
[12:53] <agronholm> the function is not defined in your source!
[12:53] <agronholm> it's only being used
[12:53] <agronholm> so how am I supposed to determine what it does
[12:54] <Omeil> Oh do you mean I am not using comments properly?
[12:54] <agronholm> sigh
[12:54] <agronholm> Omeil: do you understand what I am saying?
[12:54] <agronholm> you cannot use a function that hasn't been defined anywhere
[12:55] <agronholm> you can't use a random fooBlargh() function
[12:55] <agronholm> because no such function exists anywhere
[12:55] <Omeil> It has been defined, its part of the for loop inside def splitImage()
[12:55] <agronholm> no it's not
[12:56] <agronholm> I did a find, and there is NO such definition there
[12:56] <Omeil> Line 37 to Line 61 is a single function
[12:56] <agronholm> Omeil: you're USING it there, but you're not DEFINING it anywhere
[12:57] <agronholm> no "def makeEmptyPicture(...)" anywhere
[12:57] <agronholm> why is this so difficult?
[12:57] <Omeil> Look at line 50
[12:57] <agronholm> Omeil: I am
[12:57] <agronholm> canvas = makeEmptyPicture(imageWidth,splitHeight)
[12:58] <agronholm> you're CALLING makeEmptyPicture() here
[12:58] <agronholm> but you haven't DEFINED the function anywhere
[12:58] <agronholm> do you at least understand the difference between defining a function and calling it?
[12:59] <Omeil> Oh I see my misunderstanding, I'm using JES 2.7 I believe it is calling makeEmptyPicture from a Java library.
[12:59] <agronholm> but you're not importing it
[12:59] <Omeil> Doesn't need to be. it's imported automatically as part of the IDE.
[12:59] <agronholm> eh?
[13:00] <agronholm> jython needs to know about it
[13:00] <agronholm> can you at least tell me what the error was?
[13:01] <Omeil> getPixel(picture,x,y): y (= 140) is less than 0 or bigger than the height (= 139)
[13:01] <agronholm> did you expect me to figure out your problem without at least telling me what library you were using?
[13:01] <agronholm> I don't know anything about this specific library
[13:02] <agronholm> if you had used java's standard library, I might've been able to help
[13:02] <agronholm> what is jython's role in all of this?
[13:03] <Omeil> I'm just learning Jython in the Jython Environment for Students, the the book I have explains copy an image but not copying and splitting them, I think I am just lost in the logic.
[13:04] <agronholm> this is definitely not how programming is supposed to be learned
[13:05] <Omeil> I would have preferred standard python to start off instead of straight into image manipulation. (University...)
[13:05] <agronholm> yes, that would've been a lot better
[13:11] * Omeil (Omeil@43.252.108.58) Quit ()
[13:14] * will_f (~will_f@unaffiliated/will-f/x-7960964) Quit (Quit: Leaving)
[13:33] * xemdetia (xemdetia@nat/ibm/x-zzbzlailuhyzmbzm) has joined #jython
[14:12] * xemdetia (xemdetia@nat/ibm/x-zzbzlailuhyzmbzm) Quit (Remote host closed the connection)
[14:17] * xemdetia (xemdetia@nat/ibm/x-jjopypxxapndfmyb) has joined #jython
[14:23] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) has joined #jython
[15:14] <ztane> agronholm: I've bumped into this JES before, looks really horrible
[15:14] <ztane> agronholm: http://stackoverflow.com/questions/28791407/inappropriate-argument-value-of-correct-type-in-jes-python-jython
[15:14] <ztane> this is a complete program...
[15:15] <ztane> I guess we should contact the author of that and tell our not-so-nice opinion on that
[17:01] * mbooth (~mbooth@redhat/mbooth) Quit (Ping timeout: 264 seconds)
[17:19] * eatkin (~eatkin@166.70.212.121) Quit (Ping timeout: 264 seconds)
[17:20] * eatkin (~eatkin@166.70.212.121) has joined #jython
[19:44] * mbooth (~mbooth@cpc11-shef10-2-0-cust659.barn.cable.virginm.net) has joined #jython
[19:44] * mbooth (~mbooth@cpc11-shef10-2-0-cust659.barn.cable.virginm.net) Quit (Changing host)
[19:44] * mbooth (~mbooth@redhat/mbooth) has joined #jython
[22:49] * mbooth (~mbooth@redhat/mbooth) Quit (Ping timeout: 244 seconds)
[22:51] * enebo (~enebo@c-75-73-8-169.hsd1.mn.comcast.net) Quit (Quit: enebo)
[23:02] * mbooth (~mbooth@cpc11-shef10-2-0-cust659.barn.cable.virginm.net) has joined #jython
[23:02] * mbooth (~mbooth@cpc11-shef10-2-0-cust659.barn.cable.virginm.net) Quit (Changing host)
[23:02] * mbooth (~mbooth@redhat/mbooth) has joined #jython
[23:33] * xemdetia (xemdetia@nat/ibm/x-jjopypxxapndfmyb) Quit (Ping timeout: 250 seconds)

Index

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