IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.82 MB
Powered by
Channel Info
Network: freenodeChannel: #java |
Search in www.irclog.org
Log from #java at freenode 2006-05-23
[00:03]<sdgya>anyone know of an applet that allows you to crop images?
[00:04]<sdgya>(preferrably open source)
[00:07]<rd2nznrf>synic: read the topic
[00:07]<rd2nznrf>synic: you can do that with javascript/ajax I've seen a number of sites do it this way
[00:07]<sdgya>nah, I don't want to use javascript
[00:07]<rd2nznrf>Why?
[00:07]<rd2nznrf>What is better about an applet?
[00:08]<sdgya>because hacking on javascript sucks.
[00:08]<rd2nznrf>so does hacking on applets
[00:08]<sdgya>javascript is worse
[00:09]<rd2nznrf>obviously that's a matter of opinion
[00:09]<rd2nznrf>but we policy to not use applets here, so go ask someplace else
[00:09]<rd2nznrf>I'd suggest google
[00:09]<sdgya>wow... aren't we feeling hubris today.
[00:10]<rd2nznrf>read the topic
[00:11]<sdgya>I think you need to chill the hell out.
[00:12]<mmffjmm|wjzc>no applets
[00:12]<mmffjmm|wjzc>that's what jws is for
[00:13]<sdgya>alright, I'll use jws. Any suggestions for an app to crop images?
[00:13]<mmffjmm|wjzc>I think java2d does that
[00:13]<mmffjmm|wjzc>oh, an app?
[00:13]<mmffjmm|wjzc>the gimp
[00:13]<mmffjmm|wjzc>is good
[00:14]<sdgya>I need to be able to hack on it for our specific needs
[00:14]<sdgya>gimp is overkill
[00:14]<mmffjmm|wjzc>then use java's image manipulation stuff
[00:15]<-- svgvsdyzgjvr xrs>/dev/null")
[00:15]<mmffjmm|wjzc>or ask in ##c, they'll probably know about C-based image libs
[00:15]<rd2nznrf>Or use google, because obviously you haven't yet.
[00:15]<sdgya>cybereal: settle down. I'm just asking for suggestion.
[00:15]<rd2nznrf>synic: asking others to do your footwork is insulting
[00:15]<tsuccy>javabot needs to have the google search thing added in
[00:15]<rrvr2jv>I guess the factoid 'dll_search_order' might be appropriate:
[00:15]<xrgrsrcy>i am having some trouble with my homework.. where can i download java and who will do it for me for free... oh sorry.. i was just tring to fit in here lol
[00:15]<rrvr2jv>Tsukki, dll_search_order is http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic-link_library_search_order.asp
[00:15]<rd2nznrf>Tsukki: nice
[00:16]<tsuccy>javabot your dumb
[00:16]<rrvr2jv>Tsukki, I have no idea what your dumb is.
[00:16]<tsuccy>XD
[00:16]<rd2nznrf>heheh
[00:16]<sdgya>cybereal: I actually *did* google, for your information.
[00:17]<rd2nznrf>synic: your google kung fu must be weak as when I googled I found at least 3, maybe more (I didn't scroll my browser) hits on different applets that do cropping
[00:17]<sdgya>not that it matters. I was looking for a suggestion. Obviously you don't know of one, so you should have just kept your piehole shut in the first place.
[00:17]<dnrdryd>Arrays getLength method returns the total number of elements or number of elements minus one?
[00:18]<zvr>Should DAO update method return the updated TO?
[00:18]<tsuccy>deadaim: total number
[00:18]<zvr>Or should the client findTO() if it wants an updated instance?
[00:18]<rd2nznrf>deadaim: there is no getLength
[00:19]<krggy2rff>hi!
[00:19]<tsuccy>its .length or length()
[00:19]<rd2nznrf>deadaim: An array has a member, not a method, called length which is the length of the array as initialized.
[00:20]<tsuccy>god, length is such an odd word
[00:20]<krggy2rff>can I have one Vector in a class to store all the objects of that classe?
[00:20]<tsuccy>its like shoe
[00:20]<dnrdryd>cyberreal: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/reflect/Array.html
[00:20]<rd2nznrf>deadaim: it's going to be the number of "slots" in the array, not that number -1, that would only be incredibly confusing
[00:20]<rd2nznrf>deadaim: well you should've specified that ;)
[00:21]<dnrdryd>cybereal: specified what?
[00:21]<tsuccy>i mean, whose idea was it to call the thing you wear on your feet a "shuu"
[00:21]<rd2nznrf>deadaim: that you were talking about java.lang.reflect.Array
[00:21]<tsuccy>its so anti-intuitive
[00:21]<dnrdryd>cybereal: as opposed to? (i'm not trying to be condescending -- i'm curious)
[00:21]<rd2nznrf>deadaim: just saying "Arrays" would either mean, you are talking about arrays in general or you are talking about the Arrays class, which exists.
[00:22]<dnrdryd>cybereal: ahh, got ya :) i'll be more clear next time. thanks!
[00:22]<rd2nznrf>deadaim: the answer to your question remains the same though
[00:22]<dnrdryd>cybereal: yeah, just curious though... why did people tell me it was .length or .length() ?
[00:23]<tsuccy>oh, i thought you mightve meant ArrayList, I wasn't sure what you were talking about
[00:23]<dnrdryd>Tsukki, ahh okay :)
[00:24]<rd2nznrf>deadaim: well an array has the member .length which is what you're getting basically by calling that reflection method, getLength()
[00:24]<dnrdryd>Tsukki: but ArrayList doesn't even have length() ;)
[00:24]<rd2nznrf>Tsukki: collections have .size()
[00:24]<tsuccy>size, length, same thing
[00:25]<tsuccy>if it doesnt compile check the api =P
[00:25]<rd2nznrf>Shouldn't "check the api" be the first step? :)
[00:25]<sxyrrjcy>it's a shame they're not all the same
[00:25]<tsuccy>cybereal: nah, programmings much easier if you never compile it ;)
[00:26]<sxyrrjcy>actually you type .le, then ctrl-space, then think "why isn't it autocompleting?" then you realise, and type .si and it autocompletes
[00:26]<rd2nznrf>well size is less specific than length, and conceptually different
[00:26]<sxyrrjcy>cybereal, don't make excuses! they used different things because they didn't think it through
[00:26]<rd2nznrf>shingoki: it'd be nice if that wasn't the opposite of the truth
[00:27]<sxyrrjcy>cybereal, you think they thought about it and then got it wrong anyway?
[00:27]<vynvyv>regardless, i don't like having to remember that shit
[00:27]<rd2nznrf>shingoki: it's not wrong
[00:27]<sxyrrjcy>cybereal, why isn't it wrong?
[00:27]<rd2nznrf>shingoki: because you have no right to assume a collection is a linear continguous object, which is implied by the word length
[00:27]<rd2nznrf>contiguous
[00:28]<sxyrrjcy>length is a stupid term for an array size, it's ok for a String length I guess
[00:28]<rd2nznrf>shingoki: How is it stupid for an array size?
[00:28]<sxyrrjcy>It implies some kind of physical dimension
[00:28]<sxyrrjcy>I guess size does too
[00:28]<rd2nznrf>arrays are linear, and contiguous
[00:28]<sxyrrjcy>But a crowd for example has a size that is generally its number of members, not its radius
[00:28]<sxyrrjcy>so I can tolerate size
[00:29]<sxyrrjcy>but length really implies a dimension
[00:29]<rd2nznrf>right that's why collections have .size() because it's a general term
[00:29]<sxyrrjcy>arrays aren't linear
[00:29]<rd2nznrf>shingoki: yes they are
[00:29]<rd2nznrf>memory is linear :P
[00:29]<sxyrrjcy>no they're not
[00:29]<rd2nznrf>from the programmer's perspective







