Switch to DuckDuckGo Search
   February 25, 2009  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | >


NOTICE: This channel is no longer actively logged.

Toggle Join/Part | bottom
[00:00:12] <xphillyx> If I need to do a breadth first traversal of a tree, what's the best way to approach that? my tree has parents and children nodes
[00:00:32] <surial> xphillyx: You ask your professor for help, and he explains the best way.
[00:01:01] *** xoLax_wrk has quit IRC
[00:01:24] <xphillyx> I was thinking using a queue, but i'm not sure if that's right.
[00:03:30] <svm_invictvs> no, that's right
[00:04:04] *** warriorforgod has joined ##java
[00:04:05] <dmlloyd> I have a string split impl that returns an Iterator<String> which I think is a nicer result than a String[].
[00:04:18] *** blahjake has quit IRC
[00:04:22] <dmlloyd> though I suppose you could always do Collections.iterator(strings).
[00:04:55] <svm_invictvs> Isn't that what a Tokenizer does?
[00:05:01] <dmlloyd> could be
[00:05:15] <surial> dmlloyd: If we could fix java API, then String.spit(String) should clearly split on just that string, and not try to turn it into a regexp, and you'd add a String.split(Pattern) method.
[00:05:26] <surial> dmlloyd: But considering the effort and annoyance of not using standard API, not worth it.
[00:06:08] *** Draiven has quit IRC
[00:06:28] *** Daniel_G has quit IRC
[00:06:55] <vinse> surial: while you're at it, please add String.join, thx
[00:07:02] <svm_invictvs> kthx
[00:07:18] <surial> vinse: :)
[00:07:35] <surial> vinse: And I bet you want me to sort out the .replace / .replaceAll clusterfuck as well, huh?
[00:07:42] *** fragsworth has left ##java
[00:07:57] * surial feels a project coin submission coming on.
[00:08:16] <svm_invictvs> project coin?
[00:09:21] *** [S^K] has quit IRC
[00:09:39] <surial> Eh, project coin isn't for this.
[00:09:41] <surial> ~project coin
[00:09:42] <javabot> surial, I have no idea what project coin is.
[00:09:44] <surial> christ
[00:09:56] *** Zvpun has left ##java
[00:10:04] <cheeser> ~~ surial coin
[00:10:04] <javabot> tails
[00:10:06] <cheeser> 8^)=
[00:10:12] *** delskorch has joined ##java
[00:10:23] <surial> ~project coin is the process by which you can submit small language changes (Small changes = coins! ha!) to be considered for java7. Closures are out. Project Coin is not for small API changes (like adding join to String) - such a project will follow later. see http://blogs.sun.com/darcy/entry/project_coin
[00:10:24] <javabot> OK, surial.
[00:10:48] <dmlloyd> oh, so core-libs won't be a black hole anymore?
[00:10:51] <dmlloyd> nice
[00:10:57] <r0bby> ~coin
[00:10:57] <javabot> heads
[00:10:59] <r0bby> :D
[00:11:00] <r0bby> i win.
[00:12:00] <surial> Here's an example project coin submission. Which, incidentally, I like for a change. Usually Gafter suggestions are just whacky:
[00:12:01] *** epoxy has joined ##java
[00:12:42] <surial> ~block expressions is a 'Project Coin' proposal by Neal Gafter to allow (statement; statement; expression;) to be allowed everywhere where you can currently write 'expression;'. The value of the 'block expression' is the value of the last expression (same goes for the type of the expression). See http://docs.google.com/Doc?id=ddb3zt39_77cgxvktgs&hl=en
[00:12:42] <javabot> OK, surial.
[00:12:47] *** lvh has quit IRC
[00:13:23] <hiredman> interesting
[00:14:01] *** Sikul has quit IRC
[00:14:06] *** DragonLord- has quit IRC
[00:14:21] *** Sikul has joined ##java
[00:15:04] <surial> It certainly helps that unlike BGGA, this isn't marred with a significant trailing semi-colon in the block.
[00:15:05] <dmlloyd> hm, I had a great idea not too long ago which I now forget
[00:15:08] *** prophet05 has joined ##java
[00:15:13] <marqueed> surial: sorry to keep at this
[00:15:27] *** ankylose has quit IRC
[00:15:51] <marqueed> buttt... Object args = Array.newInstance(ISRequest.getClass(), 1); Array.set(args, 0, request); // doesn't work
[00:16:12] <marqueed> surial: i'd like to at least understand what i'm doing here before trying with the wrapping you suggested
[00:16:25] *** sphenxes has quit IRC
[00:16:29] *** dyodji has quit IRC
[00:16:30] <marqueed> so i have ISRequest, representing the type of the argument
[00:16:56] <marqueed> but i need to 1) indicate to getMethod() that i'm passing ISRequest..., and then connive the argument to that type
[00:17:02] <dmlloyd> you're doing it wrong
[00:17:13] <dmlloyd> you don't really want reflection
[00:17:15] <marqueed> me - god, pray tell
[00:17:21] <marqueed> dmlloyd: i believe you
[00:17:29] <r0bby> interesting
[00:17:40] *** progre55 has joined ##java
[00:17:41] <r0bby> surial
[00:17:43] <prophet05> Hi, i'm writing a few ui classes for a swing interface. The uis are transparent. When updating some components it appears the paint method just paint over everthing without clearing the background. Like that the transparent color add them selves. How can i cause the component to repaint from root panel so the transparency really is cleared before repainting?
[00:17:53] <dmlloyd> oh, hey, that suggestion to put annotations on <clinit> would be a good one
[00:18:00] <marqueed> can this be done using reflection? because i'd like to tryfor my own curiosity at this point
[00:18:20] *** tds5016 has left ##java
[00:18:43] *** popcornPanic has joined ##java
[00:19:21] *** _acid__ has joined ##java
[00:19:41] *** olavgg has joined ##java
[00:21:55] <xphillyx> http://pastebin.com/d5d2b2145 Does this look right?
[00:24:16] *** eventualbuddha has joined ##java
[00:24:21] <r0bby> There should be a rule if you ask hw questions automatic ban
[00:24:21] *** werdan7 has joined ##java
[00:24:39] <eventualbuddha> what's an easy way to do a simple BASIC authenticated http request in Java?
[00:24:43] <Sou|cutter> xphillyx: write a unit test to verify it is doing what you want it to do
[00:24:50] <r0bby> it looks right
[00:24:54] <Sou|cutter> eventualbuddha: commons-httpclient
[00:24:55] <xphillyx> r0bby: its not like I didn't code it, though.
[00:25:14] <r0bby> looks right but like Sou|cutter said grab junit or testng and write a unit test
[00:25:21] <r0bby> or hell write a simple test class
[00:25:26] <xphillyx> Good call.
[00:25:36] <surial> ~~marqueed doesn't work
[00:25:37] <javabot> marqueed, doesn't work is useless. Tell us what it is, what you want it to do, and what it is doing. Consider putting some code and any errors on a pastebin. (use ~pastebin for suggestions)
[00:25:59] *** vyoman has quit IRC
[00:27:02] *** indeterminatus has joined ##java
[00:28:43] *** poseidon has joined ##java
[00:29:02] *** prophet05 has quit IRC
[00:29:38] *** Lustra has quit IRC
[00:30:36] <poseidon> If I have a mathematical statement "(3+4)*5.5" how could I go about getting the operations and numbers in order?
[00:31:17] <r0bby> poseidon: ask your professor.
[00:31:30] <poseidon> Don't have a professor
[00:31:37] <r0bby> TA?
[00:31:42] <r0bby> teacher?
[00:31:44] <dmlloyd> instructor
[00:31:44] <poseidon> no
[00:31:54] <poseidon> well .... google
[00:31:59] <r0bby> that can help you
[00:32:05] <dmlloyd> what you want is called a "parser"
[00:32:20] <r0bby> poseidon: use a stack to parse this.
[00:32:21] *** bitcrave has quit IRC
[00:32:23] <poseidon> I understand what a parser is, but I want to parse it myself
[00:32:25] *** spathi has quit IRC
[00:32:40] *** rollins has quit IRC
[00:32:41] <svm_invictvs> Let it be known that I really hate string manipulation
[00:32:43] <poseidon> r0bby, I was planning on using a stack, but it's negatives that get me lost
[00:33:02] <poseidon> "3+-3" or three plus negative three
[00:33:06] <dmlloyd> poseidon: http://en.wikipedia.org/wiki/Compilers:_Principles,_Techniques,_and_Tools#Second_edition <- that's the book you want
[00:33:11] <poseidon> it's not number operation number
[00:33:30] <r0bby> poseidon: first operator is the actual operator you care about
[00:33:37] <r0bby> the second denotes it's a negative
[00:34:11] <r0bby> but the negative would in a way force subtraction of sorts
[00:36:08] *** bhz- has joined ##java
[00:36:52] <poseidon> Well I was thinking for the "-x" I would simply put a -1 and x on my number stack, and a * on my operation stack
[00:37:08] *** Phil4 has joined ##java
[00:38:11] *** bas-i has quit IRC
[00:39:35] *** nytejade has joined ##java
[00:40:29] <r0bby> poseidon: your problem has been solved several times over
[00:40:31] <r0bby> google for solutions
[00:41:11] *** TDJACR has joined ##java
[00:41:52] *** The_Birdman has joined ##java
[00:42:16] *** xphillyx has quit IRC
[00:42:25] *** TDJACR has quit IRC
[00:43:15] *** TDJACR has joined ##java
[00:44:47] *** aleksei has joined ##java
[00:46:48] *** bas-i has joined ##java
[00:48:05] *** djp[mbp] has joined ##java
[00:48:40] <r0bby> i wish i could figure what's making IDEA throw up when compiling
[00:48:57] <dmlloyd> they have these things called "error messages" which help with that
[00:49:10] *** gkhnoisgtht has joined ##java
[00:49:26] *** eventualbuddha has quit IRC
[00:49:38] *** cylonmath has joined ##java
[00:49:58] <r0bby> yeh
[00:50:01] <r0bby> which module
[00:50:12] <r0bby> I have a project i just basically threw a million modules into
[00:50:23] <cylonmath> i'm using netbeans , and i want to use my class GridMap extends JFrame ... using GUI editor of netbeans , can i add my class in design window ?
[00:52:10] <r0bby> cylonmath: 1) don't extend JFrame unless you're adding something to it, chances are you're not. use Composition instead (make your JFrame a class member) 2) why on god's green earth are you using matisse (the gui builder) swing is NOT hard to use
[00:52:21] *** consmash has quit IRC
[00:52:58] <r0bby> just code your class by hand
[00:53:07] <r0bby> the entire GUI
[00:53:08] <cylonmath> r0bby: i will add Gridcell matrice
[00:53:13] <r0bby> so?
[00:53:25] <r0bby> this doesn't make it hard to do it by hand.
[00:53:28] <r0bby> Use GridLayout
[00:53:31] *** lowki has quit IRC
[00:53:41] <r0bby> or Gridbag depending on how much flexibility you need
[00:53:49] <cylonmath> allright i will research some ..
[00:53:56] <r0bby> ~layout managers
[00:53:57] <javabot> r0bby, layout managers is http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html If the layout managers included with the jdk don't satisfy you, have a look at FormLayout, TableLayout, PercentLayout, HTMLLayout, CentreLayout, or GridLayoutPlus (ask me about each of those to learn more). Book chapter at http://javafaq.mine.nu/lookup?290
[00:54:07] *** benny`work has quit IRC
[00:54:11] <cylonmath> ty
[00:54:21] <r0bby> I want to shoot the person who pimps Matisse like it's hard to code swing
[00:54:27] *** examancer has joined ##java
[00:54:33] <r0bby> whoever wrote that tutorial
[00:55:45] *** genesiss has quit IRC
[00:58:08] *** genesiss has joined ##java
[00:58:35] *** freeone3000 has joined ##java
[00:59:40] *** _acid__ has quit IRC
[01:01:52] *** kane77 has quit IRC
[01:06:44] *** elaltaico has quit IRC
[01:08:23] *** Donyc has joined ##java
[01:09:17] <gkhnoisgtht> the java.awt.canvas draws everything by the pixels correct? so if lets say a sensor gets dropped in the middle of the screen i should be able to calculate what pixels its sensor range will cover then translate into distance... right?
[01:11:10] <gkhnoisgtht> ah found it, nevermind
[01:12:52] *** Varox has joined ##java
[01:14:57] *** dude7064 has joined ##java
[01:15:30] <dude7064> I have a 40GB text file, which I need to remvoe few characters from,, what's the most effectient way for doing this ?
[01:15:41] <dorito> notepad
[01:15:50] <hiredman> grep -v
[01:15:50] <dorito> lol
[01:16:02] *** Donyc has quit IRC
[01:16:21] <dude7064> notepad does not support 40GB files :(
[01:16:24] <dude7064> it freezes
[01:16:48] <gkhnoisgtht> java strings have a replace method
[01:16:55] <dude7064> I am thinking of doing this in Java, and currently using randomeseekfile and then reading the text line by line,
[01:17:10] <r0bby> dude7064: use textpad/vi
[01:17:13] <dude7064> there are 117097 lines of text in the 40GB file
[01:17:13] <r0bby> a nd 40GB?
[01:17:37] <r0bby> dude7064: use jedit, gvim, textpad,notepad++
[01:18:10] <dude7064> The way I did is it by creating a new file with the modifications in place,, but it's been running now for 5 hours,, and only 8GB has been written in the new file
[01:18:17] <dude7064> I tried notepad++
[01:18:25] <dude7064> it supports files upto 2GB
[01:18:26] <r0bby> dude7064: use textpad.
[01:18:42] <r0bby> dude7064: that is probably a limitation of the OS...
[01:18:55] <r0bby> why on god's green earth do you have a 40GB file?
[01:19:11] <dude7064> ok,, I'll try text pad now,, and hope it works.. but I tried ultraediter and when moving past the 5th line, it freezes.
[01:19:11] <pfn> just seek to the locations you need to edit and write out exactly what you need
[01:19:22] <pfn> wtf are you doing editing a 40gb file
[01:19:24] <pfn> ~fail
[01:19:24] <javabot> pfn, fail is http://de.fishki.net/picsw/022008/26/fail/10_fail.jpg
[01:19:35] <dude7064> r0bby> I need it for a problem I'm having,, but that's a side issue
[01:19:42] <r0bby> what problem?
[01:19:47] <r0bby> chances are there is a saner approach
[01:19:47] <Zharf> hmm
[01:20:02] <dude7064> pfn> problem is , the characters need to be removed,, not overwritten
[01:20:14] <surial> I'm almost certain that on your average OS, every block needs to be rewritten after the first change, unless the changes you're making don't change the file size. Do they?
[01:20:28] <pfn> if you're removing characters, sure
[01:20:34] <pfn> are you sure there aren't any alternatives?
[01:20:44] <dude7064> r0bb> the 40GB file is basically a matrix storing the semantic similarity score between all nouns in english,,
[01:20:49] <pfn> deleting the characters and replacing the end of each affected string witha NUL?
[01:21:07] <pfn> one or more NULs to substitute for the removed characters
[01:21:12] <pfn> depending on the format of the file
[01:21:14] <surial> dude7064: So, removal. You're fucked, essentially. All data needs to be rewritten.
[01:21:26] <pfn> but anyway, still, 40GB file that needs to be edited is fail
[01:21:26] <surial> dude7064: You should consider splitting up this 40GB monster; file systems are much better at handling a bunch of smaller files.
[01:21:28] <dude7064> pfn> how to delete the characters ? that's the question,, do you mean by overwriting them with NULL ? i don't think it'll work
[01:21:40] <surial> dude7064: Well, ostensibly there's some sort of software that will read this file in, no?
[01:21:42] <pfn> dude7064, depends on the system you're working with
[01:21:47] *** systat has quit IRC
[01:21:53] <pfn> delete the character and append a corresponding number of NULs at the end of the string
[01:21:54] *** Nebulam has joined ##java
[01:22:06] <surial> Having 40GB of raw data that isn't ordered on size would make it nearly impossible to use it; everytime you want something out of it, you need to run through all 40GB. There's something wrong with this story, dude7064.
[01:22:27] <r0bby> it's inefficient as hell too
[01:22:37] <surial> Use a database, or roll your own with many smaller files. Or if this file is like a database and has fixed offsets, use that fact and make overwrites-in-place instead of adding/removing in the middle.
[01:22:45] <dude7064> surial> it's my software that'll be reading it,, and not fully actually, it's like a database,, I'll use seek to read the bytes needed
[01:22:56] <surial> dude7064: So if it uses seek, then it knows where to seek to.
[01:23:02] <surial> Which means you can cut short the string and write nulls.
[01:23:16] <dude7064> surial> true,
[01:23:20] <surial> dude7064: In other words, your insinuation that you can't do this job by replacing bytes but only by removing, is not true.
[01:23:28] <dude7064> I know the exact location of each string I'll be reading
[01:23:45] *** monestri has quit IRC
[01:23:47] <surial> exactly. Fix it,
[01:23:56] <surial> By figuring out how the program knows the string is completed.
[01:24:03] *** monestri has joined ##java
[01:24:14] <Nebulam> why do you have 40GB's of data yet you aren't using a database?
[01:24:20] <surial> Ostensibly it finds a string first by looking up its location, and then either looking there for its length, or in the original place (where it found the position), or the string is terminated by something, like a (char)0.
[01:24:30] <r0bby> dude7064: use a database
[01:24:31] <r0bby> christ.
[01:24:37] <dude7064> surial> I know now the exact location of the characters I need to remove,,
[01:24:39] <r0bby> 40GB is insane
[01:24:49] <Nebulam> That's rediculous really :)
[01:25:08] <dude7064> r0bby> using the 40GB file is more efficient than a database,, since I know the exact location of each score I'll need to read from the file
[01:25:39] <surial> dude7064: I repeat, it is simply impossible that you can't find a way to replace bytes to solve your problem if the file is indexed.
[01:25:44] <r0bby> that is a waste of disk space really
[01:26:03] <surial> dude7064: For example, if you just removed characters, that'll actually fuck up all those indices you have. You're just not making sense.
[01:26:05] <pfn> dude7064, not more efficient in this failure you've come up with
[01:26:09] *** kwvarga has joined ##java
[01:26:16] <kwvarga> Has anyone worked with JasperReports?
[01:26:19] <dude7064> the file is a symetric matrix storing similarity scores between all nouns in english
[01:26:22] *** Jonny has quit IRC
[01:26:29] <Nebulam> Be honest, do you have any idea how to use a database dude7064 ?
[01:26:33] <r0bby> dude706: how old are you?
[01:26:37] <dude7064> there are 117097 nouns which I have indexed in a separate file
[01:26:46] <r0bby> I'm smelling very young
[01:26:47] <kwvarga> Or can tell me why on my JSP when I do <%@ page import="...class" %> and try to use the class later on, I get class not defined?
[01:26:59] <kwvarga> Or can tell me why on my JSP when I do <%@ page import="...class" %> and try to use the class later on, I get type not defined?
[01:27:02] <r0bby> kwvarga: scriptlets are a crime against nature
[01:27:05] <dude7064> nebulam> yes,, I have used Mysql and before that, I used lucene
[01:27:20] <surial> Can everyone shut their trap for a moment? You don't know enough detail to ride his ass like this.
[01:27:37] <dude7064> and still the custom file was faster (was 2GB in my last run, but didn't include all the data at the time)
[01:27:41] <Nebulam> I'm skeptical about anyone claiming to have 40Gigs of data to store
[01:27:43] <surial> dude7064: How does your program find strings in this thing? Presumably it needs to calculate a position into this giant file somehow. How does it do this?
[01:28:06] <indeterminatus> Nebulam: oh, but I have to deal with TB of data at work on a daily basis, so ...
[01:28:20] <Nebulam> Yes but that is at work
[01:28:43] <dude7064> Nebulam> i have all nouns in a separate file
[01:28:54] <dude7064> each word in a separate line
[01:29:06] <dude7064> word inex is basically the line number it's in
[01:29:18] <indeterminatus> I'd be more interested in how you calculate/retrieve the semantic similarity, dude7064 ;) ... mind to share that bit? :)
[01:29:32] *** FireSlash has joined ##java
[01:30:01] <dude7064> It works,, and works effeciently,, beleive it or not,, and my original question was bout how to efficiently remove the characters from the big file
[01:30:02] <pfn> you have words "indexed" by line number?
[01:30:04] * pfn boggles
[01:30:11] *** peepsalot has quit IRC
[01:30:28] <dude7064> indeterminatus> using wordNet ,, there are many algorithms,, please search using google
[01:30:50] <tazle> Nebulam: my photographs take 320 GB
[01:30:55] * r0bby gets the porncorn
[01:31:01] <surial> dude7064: We answered that question: It is impossible to do this on most file systems.
[01:31:03] <Nebulam> what do photographs have to do with text files
[01:31:04] <indeterminatus> dude7064: I have, but none of those could satisfy what I was looking for. Might take a closer look at wordNet :)
[01:31:15] <tazle> Nebulam: you said "data", not "text files"
[01:31:19] *** radixor has joined ##java
[01:31:21] <Nebulam> ok whatever
[01:31:29] <surial> dude7064: But if the index is determined off of file number, then if you remove stuff in the big file, then all entries after that are fucked up.
[01:31:36] *** RachedTN has joined ##java
[01:31:42] <surial> dude7064: So, and I'm goign to ask for the last time: You're not making any fucking sense. If you want a sensible answer, you're going to have to do a better job.
[01:32:25] <dude7064> indeterminatus> http://marimba.d.umn.edu/cgi-bin/similarity/similarity.cgi <--- this is a perl version
[01:32:48] <r0bby> surial: just let him fail
[01:33:06] <r0bby> I'm to the point of not careing
[01:33:09] <r0bby> caring*
[01:33:22] <dude7064> surial> that will be in the final verion of the file,, removing the characters will get the file in the shape I am expecting it to be,
[01:33:32] *** _stijn_ has joined ##java
[01:33:49] *** radixor_ has joined ##java
[01:33:59] <surial> dude7064: So some tool is going to take this 40GB beast and compile it into a different format (or adds a file to ease looking into this big beast), to make it fast? Well, then, duh, fix THAT tool.
[01:34:02] <dude7064> It's simply 3 characters that have been added by mistake
[01:34:22] <surial> Or save 40GB worth of data all over again. You just can't add/remove characters to a giant file efficiently on most file systems.
[01:34:38] <r0bby> I seriously hope you put a lock in place while reading/writing this beast
[01:34:49] <dude7064> surial> I'll have all my work published in few days,, including this 40gb file (will be compressed to 20gb btw later )
[01:35:20] <gkhnoisgtht> dude7064 what OS and filesystem are you using?
[01:35:35] <surial> dude7064: The fact that it's just 3 characters doesn't make on iota of difference. The minimum time to do this is linear to (FILESIZE - position of first edit).
[01:35:49] <surial> Whether you need to edit 3 or 100,000 characters.
[01:36:01] *** eventualbuddha has joined ##java
[01:36:14] <dude7064> I thought so :( ,, so in simple words, I have to wait
[01:36:29] <r0bby> or use a database which does this for you...
[01:36:48] <r0bby> indexing and such.
[01:36:50] <dude7064> r0bby> for my application it's not efficient enough
[01:37:22] <r0bby> neither is this solution genius.
[01:37:43] <dude7064> what bout mergeing two files together ?
[01:37:54] <dude7064> is it still going to take long ?
[01:37:57] <Nebulam> lol
[01:38:09] <gkhnoisgtht> what if you stream the file from one system to another and as the data is incoming chop it to blocks of 2 gig, remove the characters, then merge all the small files together, it would take forever but it would work
[01:38:12] <r0bby> dude7064: how old are you seriously...
[01:38:16] <pfn> you don't know how to work with files, yet you are able to decide that databases are not efficient enough for you?
[01:38:24] * pfn boggles some more
[01:38:39] <surial> dude7064: If the files are exactly as large as blocks, no.
[01:38:53] <surial> dude7064: In other cases, the first non-block-boundary merge is like the first character removal: every byte after it needs to be rewritten.
[01:39:02] <surial> Unless by sheer serendipity you get another block boundary match.
[01:39:56] *** linxeh has joined ##java
[01:40:26] *** fcky has joined ##java
[01:40:48] <fcky> does java have something like rubys object.freeze()?
[01:41:27] <poseidon> Is there a way you can use a Scanner class on a String object?
[01:41:37] <surial> poseidon: StringReader?
[01:43:31] *** FireSlash has quit IRC
[01:43:42] *** bobbytek2 has joined ##java
[01:44:56] <poseidon> surial, under what package is that?
[01:45:12] <tazle> fcky: design your classes to be unmodifiable
[01:45:16] *** andern has joined ##java
[01:45:31] <tazle> fcky: or rather design your classes so that your objects will be unmodifiable
[01:45:58] *** NiallC has joined ##java
[01:46:19] *** alg0rithm has quit IRC
[01:47:03] *** cylonmath has left ##java
[01:47:36] <andern> i want to create a class that has methods to add and remove objects from an array, and i want to use this class in other classes but the type of the array shall differ between String and char, can anyone point me in the right direction on how to do this?
[01:48:30] *** CyLonMath has joined ##java
[01:48:37] <rullie> andern: List
[01:48:43] <rullie> ArrayList, to be exact
[01:49:13] <_stijn_> rullie, ArrrayList can't accept types like char, int, ....
[01:49:37] <rullie> why won't Character, Integer do
[01:49:51] <_stijn_> those will do :p
[01:49:53] *** radixor has quit IRC
[01:50:00] <_stijn_> but I mean char, int (the native types)
[01:50:16] <rullie> there's autoboxing
[01:51:01] *** phix has quit IRC
[01:53:11] *** kab has joined ##java
[01:53:33] <dude7064> back..
[01:54:11] <dude7064> thanks for the responses
[01:54:48] <dude7064> those who are wondering about the data structure,, imagine that you have a symetric matrix
[01:54:56] *** rlubke has quit IRC
[01:55:08] *** IceMuppet has joined ##java
[01:55:15] <dude7064> for any two given words, the similarity score can be found using the row number/col number for each word
[01:55:32] <dude7064> the matrix is stored in the big gigantic file
[01:55:41] *** sneer has joined ##java
[01:55:56] <dude7064> since it's a symetric matrix, only half of it needs to be stored
[01:56:00] *** victori has left ##java
[01:56:04] <sneer> Hi can I run another class from jar file?
[01:56:14] <sneer> which is not main class
[01:56:22] <dude7064> all nouns are stored in a separate file,, with each noun in a separate line
[01:56:53] <dude7064> the line number is used for determining the row/col number
[01:57:01] <dude7064> hope it's clear now
[01:57:31] *** Riov has joined ##java
[01:57:33] <cheeser> ~~ sneer get started
[01:57:33] <Riov> Hello
[01:57:33] <javabot> sneer, getstarted is http://java.sun.com/tutorial/getStarted
[01:58:46] *** Ven]n has quit IRC
[01:59:05] *** mele- has joined ##java
[01:59:51] *** hrehf has quit IRC
[02:00:15] *** sneer has quit IRC
[02:01:22] *** rlubke has joined ##java
[02:01:31] *** TobiaszCudnik has quit IRC
[02:01:39] *** rlubke has left ##java
[02:03:31] *** slango has joined ##java
[02:03:35] <slango> hey there.
[02:03:53] <slango> I am wondering if I can easily call a method based on a string?
[02:04:35] <pr3d4t0r> ~tell slango about reflection.
[02:04:35] <javabot> slango, reflection is http://java.sun.com/tutorial/reflect
[02:05:21] *** rlubke has joined ##java
[02:05:37] <teralaser> hm, a method based on a string ? Oh, String theory ! :P~
[02:06:03] *** skoskav has quit IRC
[02:06:17] <Logi> pr3d4t0r: giving him rope?
[02:06:24] *** amnesiac has quit IRC
[02:06:29] <slango> pr3d4t0r, so, the short version is that it's probably not worth it?
[02:07:41] <Meddi> night mates
[02:08:03] *** _stijn_ has quit IRC
[02:08:28] *** Meddi has quit IRC
[02:09:42] *** popcornPanic has quit IRC
[02:09:56] *** jnjackins has joined ##java
[02:10:30] *** cher has quit IRC
[02:10:49] *** skoskav has joined ##java
[02:10:53] *** radixor has joined ##java
[02:10:56] <teralaser> slango , nah reflection is a way of achieveing a statement like callThisMethod("myMethod");
[02:11:13] <teralaser> if you read on from the first page of pros and cons
[02:11:57] *** djp[mbp] has quit IRC
[02:12:15] <slango> teralaser, is that difficult to do?
[02:12:30] *** sneer has joined ##java
[02:12:47] <teralaser> no, see e.g. http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getMethods()
[02:13:56] <sneer> cheeser sorry but I didn't find there how I can run class wich is not Main-Class in manifest file
[02:13:59] *** ShadowHntr has quit IRC
[02:14:43] <jnjackins> I'm trying to use the String.replaceFirst(regex) method to replace ")" in a string. but when I use myString.replaceFirst(")"); I get: java.util.regex.PatternSyntaxException: Unmatched closing ')'
[02:15:06] <Sou|cutter> jnjackins: that's because ) is a special character for regexes
[02:15:26] <jnjackins> right
[02:15:30] <Sou|cutter> ~~ jnjackins javadoc Pattern
[02:15:31] <javabot> jnjackins: http://is.gd/izkz [java.util.regex.Pattern]
[02:15:38] <joed> ~jwz
[02:15:38] <javabot> 'Some people, when confronted with a problem, think "I know, I'll use jwz!" Now they have two problems.'
[02:15:40] <Sou|cutter> ^^ that page explains java regex syntax
[02:15:51] <jnjackins> thanks
[02:15:54] <joed> Bah.
[02:16:00] <Sou|cutter> ~jwz the jwz factoid
[02:16:00] <javabot> 'Some people, when confronted with a problem, think "I know, I'll use the jwz factoid!" Now they have two problems.'
[02:16:20] *** SJr|Work has joined ##java
[02:16:48] <joed> ~jwz r0bbys ramblings and Sou|cutters sarcasm
[02:16:48] <javabot> 'Some people, when confronted with a problem, think "I know, I'll use r0bbys ramblings and Sou|cutters sarcasm!" Now they have two problems.'
[02:16:54] *** surial has quit IRC
[02:17:08] <Sou|cutter> hahaha, nice
[02:17:18] <sneer> Who can tell me option which run class wich is not in Main-Class in mainest.mf file?
[02:17:26] <teralaser> sneer : http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html last paragraph
[02:17:36] <SJr|Work> Hypothetically due to the API I'm using lets say I need to execute some stuff in a subtypes constructor, prior to executing the parent constructor. What is an intellegent way to re-architect this.
[02:18:32] *** stevenhong has joined ##java
[02:18:48] <SJr|Work> I need for instance a custom title bar that has to be added before something is generic. I do not want to clutter up the constructor of the super type
[02:19:07] <pfn> SJr|Work, have callbacks in the superclass
[02:19:22] <SJr|Work> hmmmmm
[02:19:28] <pfn> SJr|Work, thus ctor() { super(); } acallback() { do stuff }; in super-ctor() { acallback(); }
[02:19:29] <SJr|Work> that was stupid
[02:19:40] <SJr|Work> wait there was a reason why I couldn't use a template method...
[02:19:45] *** gkhnoisgtht has quit IRC
[02:20:03] <SJr|Work> which I don't remember
[02:20:07] * pfn shrugs
[02:20:24] *** dublisk has joined ##java
[02:20:39] <SJr|Work> Oh I remember, and yes I guess I'll just have to remember not to use my ctor constructor for anything but invoking the super constructor.
[02:20:53] <cheeser> 2
[02:21:00] <SJr|Work> 2?
[02:21:07] <SJr|Work> cheeser, you r0ck
[02:21:07] *** brousch has joined ##java
[02:21:18] <cheeser> ok...
[02:21:37] <SJr|Work> what was the 2 for/
[02:21:48] <cheeser> typo
[02:21:49] <SJr|Work> was it because you think I'm 2 cool 4 u?
[02:22:02] *** Greyhound_ has joined ##java
[02:22:27] *** Daniel_H has quit IRC
[02:23:09] *** tissue has joined ##java
[02:24:22] *** Greyhound- has quit IRC
[02:24:38] <sneer> teralaser last paragraph is for creating new jar with new main class. I have a jar wich have few exec classes. How I can run them with an option&
[02:25:01] *** td123 has joined ##java
[02:25:36] <sneer> whithout creating or updating a jar
[02:25:59] *** Varox has quit IRC
[02:26:00] *** djp[mbp] has joined ##java
[02:26:36] *** radixor_ has quit IRC
[02:26:42] <dublisk> what does making a data member final do ?
[02:27:55] *** bitcrave has joined ##java
[02:27:58] <rullie> makes it final
[02:28:27] <teralaser> sneer : Don't it is possible, you might try with the jar: qualifier and see if it works
[02:29:13] <teralaser> or maybe just include .jar in the class path and then call the class.
[02:29:17] <teralaser> That might actually work
[02:29:19] *** eidolon has joined ##java
[02:29:30] <teralaser> try : java -? to see how
[02:30:05] <pfn> dublisk, it makes the reference or value constant
[02:30:19] *** dude7064 has quit IRC
[02:30:20] <dublisk> oh, ok thanks pfn
[02:30:21] *** flb has quit IRC
[02:30:26] <teralaser> night
[02:30:30] *** teralaser has quit IRC
[02:30:34] <pfn> dublisk, but not the object
[02:30:54] <dublisk> ?
[02:30:57] <Riov> What does it entail if I run my java program and get a white screen
[02:31:44] <dublisk> what do you mean by that pfn
[02:32:01] *** rawbk has quit IRC
[02:32:12] <pfn> dublisk, exactly what I said
[02:32:26] <pfn> the object is not a constant
[02:32:30] <pfn> only the reference or value
[02:32:56] <dublisk> I guess I'm not sure on what the distinction between object and reference is here
[02:33:27] *** monestri has quit IRC
[02:33:33] *** monestri has joined ##java
[02:33:43] <pfn> a reference is a pointer
[02:33:47] <pfn> an object is an object
[02:34:17] *** jnjackins has left ##java
[02:36:11] <dublisk> so you are saying it is like a const pointer but not a pointer to const
[02:36:16] <dublisk> ?
[02:37:28] *** examancer has quit IRC
[02:37:53] <dublisk> actually no I don't understand =)
[02:38:10] <cheeser> dublisk: are you your name?
[02:38:20] <cheeser> you are the object. your name is the reference.
[02:38:32] <cheeser> you can have many names (references) but only one you.
[02:40:04] <dublisk> so in essence if I do A a = new A; final A b = a; A c = b; then b is like a const but not c
[02:40:39] <dublisk> const here meaning it can only call final methods?
[02:40:53] *** morkar- has quit IRC
[02:41:03] <cheeser> ~final
[02:41:03] <javabot> cheeser, final is a Java keyword that denotes that its target cannot change. A final field/variable cannot be assigned more than once, a final method cannot be overridden in a subclass, and a final class cannot be subclassed.
[02:41:26] <dublisk> ok, so its not const like in C++ const
[02:41:35] <cheeser> no
[02:41:47] <Riov> ~fields
[02:41:47] <javabot> Understanding Instance and Class Members: http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html Using Class Methods and Variables: http://java.sun.com/developer/TechTips/2000/tt0912.html#tip1
[02:43:04] <dublisk> thanks
[02:44:06] <reverend> what song is this http://www.youtube.com/watch?v=iVzmHOxRUi8
[02:45:14] <r0bby> i refuse to click that
[02:45:43] *** sneer has quit IRC
[02:45:51] *** monestri has quit IRC
[02:46:16] *** monestri has joined ##java
[02:46:37] *** orgy` has quit IRC
[02:47:39] *** FireSlash has joined ##java
[02:48:36] *** aTypical has joined ##java
[02:48:41] <freeone3000> Comments say it's Bring it On by Gomez.
[02:51:05] <razel> im having difficulty doing double divisions
[02:51:10] <razel> how would i estimate
[02:51:23] <reverend> freeone3000: comment is wrong
[02:52:09] <cheeser> razel: um. what?
[02:52:58] <razel> for example i was doing a division and i was expecting 0.4 but i ended up with 0.4000000000036
[02:53:14] <r0bby> ~~ razel DecimalFormat
[02:53:14] <javabot> razel, I have no idea what DecimalFormat is.
[02:53:19] <r0bby> ~~ razel javadoc DecimalFormat
[02:53:19] <javabot> razel: http://is.gd/kKRf [java.text.DecimalFormat]
[02:53:33] <razel> will check it out thank you
[02:54:49] *** azanar has joined ##java
[02:57:44] <reverend> ~ncg goldberg
[02:57:44] <javabot> reverend, I have no idea what ncg goldberg is.
[02:57:48] <reverend> ~goldberg
[02:57:49] <javabot> reverend, I have no idea what goldberg is.
[02:57:49] <kwvarga> http://pastebin.com/m5d21fc61 - Any idea why I only get my first 2 printline statements, no errors, just render error on my page?
[02:57:56] <reverend> ~ncgoldberg
[02:57:56] <javabot> reverend, I have no idea what ncgoldberg is.
[02:57:58] <reverend> tf
[02:58:33] *** osmosis has quit IRC
[02:58:36] <reverend> ~goldberg is http://docs.sun.com/source/806-3568/ncg_goldberg.html
[02:58:36] <javabot> OK, reverend.
[03:01:32] <razel> man thats confusing
[03:02:12] *** t0h has quit IRC
[03:02:22] *** t0h has joined ##java
[03:02:31] *** epoxy has quit IRC
[03:02:46] *** wangyuan270 has joined ##java
[03:03:00] *** wangyuan270 has quit IRC
[03:03:45] *** delskorch has quit IRC
[03:03:58] *** delskorch has joined ##java
[03:05:07] <kwvarga> Anyone here have any experience with jasper reports?
[03:05:38] *** Hink has quit IRC
[03:06:09] <bobbytek2> kwvarga: good question
[03:06:13] <bobbytek2> you buying or selling?
[03:06:38] *** rawbk has joined ##java
[03:07:13] *** ttmrichter__ has quit IRC
[03:07:34] *** ttmrichter has joined ##java
[03:08:05] *** skoskav has quit IRC
[03:09:05] *** delskorch has quit IRC
[03:09:21] *** nvictor has joined ##java
[03:09:32] *** delskorch has joined ##java
[03:09:59] *** nvictor has left ##java
[03:10:27] <bobbytek2> kwvarga: what's your question?
[03:12:33] *** kadams has quit IRC
[03:14:15] <razel> DecimalFormat gives me a string
[03:14:15] *** Riov has quit IRC
[03:14:17] <razel> i want a double
[03:14:44] *** HockeyInJune has quit IRC
[03:15:39] <cheeser> razel: you're seeing the typical precision errors of storing decimal values in binary storage
[03:15:57] <cheeser> if you want exactness, use BigDecimal
[03:16:11] <razel> an estimate is fine
[03:16:29] <cheeser> you have that already
[03:16:30] <razel> but i want it returned as a double....DecimalFormat.format throws me a String
[03:16:48] <razel> my estimate is 2 accurate
[03:17:01] <razel> .00000000 is 2 much i only want like .0000
[03:17:17] <dmlloyd> you really don't understand what a double is
[03:17:19] *** GodTodd has joined ##java
[03:17:45] <cheeser> ~~ razel aolbonics
[03:17:45] <javabot> razel, aolbonics is using unnecessary abbreviations such as 'u', 'r', 'ur', 'thx', etc. Using this language depicts you as an imbecile in the eyes of the helpful regulars in this channel, and is generally not tolerated. If you want intelligent answers, the least you can do is speak intelligently. Additionally arguing about this rule will get you nowhere except banned. Have a nice day!
[03:18:01] *** waz has joined ##java
[03:18:26] <cheeser> it's bad enough having to sift through that in a normal case but in the context of math I can't tell what's a number and what's "stupid"
[03:19:29] <razel> what are you talking about
[03:19:35] *** bunz has joined ##java
[03:19:42] <razel> a double is a scientific number
[03:19:45] <dmlloyd> razel, a double can only accurately hold sums of base-2 fractions: 1/2, 1/4, 1/8 ... 1/32768, 1/65536 etc
[03:19:58] <dmlloyd> not sums of base-10 fractions like 1/5
[03:20:02] <cheeser> a double is *number*
[03:20:26] <kwvarga> bobbytek - u still here
[03:20:32] <bobbytek2> yes'm
[03:20:36] <cheeser> ~~ kwvarga aolbonics
[03:20:36] <javabot> kwvarga, aolbonics is using unnecessary abbreviations such as 'u', 'r', 'ur', 'thx', etc. Using this language depicts you as an imbecile in the eyes of the helpful regulars in this channel, and is generally not tolerated. If you want intelligent answers, the least you can do is speak intelligently. Additionally arguing about this rule will get you nowhere except banned. Have a nice day!
[03:20:36] <kwvarga> http://pastebin.com/m5d21fc61 - Any idea why I only get my first 2 printline statements, no errors, just render error on my page?
[03:21:01] *** Riov has joined ##java
[03:21:17] <Riov> Hey
[03:21:29] *** bas-i has quit IRC
[03:21:33] <Riov> I get error: Exception in thread "main" java.lang.NullPointerException with my java prog, at CarricP4.panel(CarricP4.java:70) and at CarricP4.main(CarricP4.java:90). Any ideas?
[03:21:39] <bobbytek2> kwvarga: NPE?
[03:21:48] <cheeser> ~~ Riov npe
[03:21:49] <javabot> NullPointerExceptions are easy to spot and deal with. For some tips on dealing with them, please see http://is.gd/ha7A
[03:21:59] <Riov> ty
[03:22:07] *** IceMuppet has quit IRC
[03:22:14] *** Daniel_G has joined ##java
[03:22:20] <kwvarga> C:/reports/text.jrxml exists
[03:22:26] *** bas-i has joined ##java
[03:22:40] <bobbytek2> Sure, but is it wellformed?
[03:22:45] <bobbytek2> does it validate?
[03:22:47] *** eidolon has quit IRC
[03:23:06] *** staykov has joined ##java
[03:23:13] <bobbytek2> What's the error you are getting?
[03:23:33] <bobbytek2> I suggest you using something like iReport or JasperAssistant
[03:23:34] <razel> dmlloyd: my question was and still is... is there a class out there similar to DecimalFormat that throws me a double back instead of a string
[03:23:34] <razel> i think i get what youre saying now
[03:23:34] <razel> but then how would i compare them
[03:23:34] <razel> i want 1.00001 to be equal to 1.000
[03:23:55] <bobbytek2> Math.floor
[03:23:59] <dmlloyd> 1.00001 will never be equal to 1.000
[03:24:07] <dmlloyd> yeah, you want Math.*
[03:24:16] <kwvarga> I used iReport to create the report, it uses no data source, and only makes a Title off of a given parameter.
[03:24:36] <kwvarga> I am trying to compile it manually, like command line
[03:24:36] *** TranceControl has quit IRC
[03:24:38] <bobbytek2> kwvarga: do you have a stack trace / error?
[03:24:45] <kwvarga> no
[03:25:04] <bobbytek2> Then you see Compiling Report Step 4!"
[03:25:07] <bobbytek2> ?
[03:25:11] <kwvarga> no
[03:25:14] *** eventualbuddha has quit IRC
[03:25:17] <bobbytek2> hehe
[03:25:17] <kwvarga> Render Error
[03:25:38] *** eventualbuddha has joined ##java
[03:25:39] <bobbytek2> That's it?
[03:25:43] <kwvarga> Yes
[03:25:52] <razel> ouch major lag
[03:26:08] *** eidolon has joined ##java
[03:26:11] *** cybereal has joined ##java
[03:26:13] <bobbytek2> But that's not even rendering, it's just compiling the report template
[03:26:18] <kwvarga> ya
[03:26:21] <kwvarga> i know..
[03:26:34] <kwvarga> maybe something with Ant on my server?
[03:27:23] <bobbytek2> could this be a headless issue?
[03:28:01] *** Inc` has joined ##java
[03:28:50] <kwvarga> Define headless issue?
[03:29:21] <bobbytek2> Do you have a problem with the X11 configuration on your Unix box. AWT which is used by JasperReports requires X11 libs when running on Unix. You can try setting -Djava.awt.headless=true when starting your app, but I don't think that will work. If not, you should install an X11 server on your machine (try XFree86).
[03:29:34] <kwvarga> Its a Windows environment
[03:29:36] <cheeser> you'd get that error at start up
[03:30:19] <bobbytek2> the funny thing is, it shouldn't even be rendering
[03:30:25] <razel> what is 7.5 % 2
[03:30:29] <razel> is it valid ?
[03:30:33] <cheeser> ~tias
[03:30:33] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[03:30:34] *** xxjaba has quit IRC
[03:30:39] <razel> lol
[03:30:48] *** pandora-- has quit IRC
[03:31:06] <bobbytek2> kwvarga: Try catching some more exceptions in your code
[03:31:36] <bobbytek2> On a side note, you should probably compile your reports at design time
[03:31:43] <bobbytek2> You said you are using ant?
[03:31:55] <bobbytek2> Ant has specific tasks for thsi
[03:31:57] <bobbytek2> *this
[03:32:03] <kwvarga> yeah
[03:32:08] <kwvarga> thats what i am trying to do
[03:32:10] <bobbytek2> Well, JR ships with them I mean
[03:32:15] <kwvarga> I bought the JR guide
[03:32:18] <bobbytek2> Then why are you writing this code?
[03:32:20] <kwvarga> so I am trying to follow that
[03:32:29] <kwvarga> I am now trying it in the other method that the JRguide says
[03:33:34] <bobbytek2> use this instead: http://fecplanner.com/jasperreports/docs/quick.how.to.html#ant
[03:33:54] <razel> it works
[03:35:15] <bobbytek2> well, floating point numbers have remainders when divided :)
[03:35:51] <bobbytek2> "There are rare times when it's useful to ask exactly how many times does 1.5 go into 5.5 and what's left over? The answer is that 1.5 goes into 5.5 three times with one left over, and it's that one which is the result of 5.5 % 1.5 in Java"
[03:37:09] <kwvarga> Okay so I have a .jrxml file in C:/reports that I want to compile
[03:37:41] *** rlubke has left ##java
[03:37:45] <kwvarga> I will create a build.xml file that has the url of the jasper reports jar file like that line u sent me, and then run "ant compile"?
[03:38:42] <kwvarga> what should I cahnge <fileset to?
[03:38:44] <razel> hmm i could do void recursive_function(double a) { int b = (int)a if (a - b) < 0.001) { a = (double)b + (a-b)*10; recursive_function(a); } else { return a }
[03:38:49] <razel> }
[03:39:05] <razel> maybe that will work
[03:39:15] *** Angel-SL has joined ##java
[03:39:18] <razel> no it wont
[03:39:18] <razel> lol
[03:39:24] <razel> but something similar
[03:39:26] <razel> bbl
[03:39:34] <dmlloyd> what are you trying to do :|
[03:39:35] <pr3d4t0r> razel: Functions have return values of at least one bit.
[03:39:40] <dmlloyd> you really don't get it
[03:39:46] <pr3d4t0r> razel: Hint, hint about your method.
[03:39:53] <dmlloyd> a double *cannot accurately hold* 0.001 no matter WHAT you do
[03:39:57] <pr3d4t0r> razel: It's returning a type of zero bits.
[03:39:58] *** bas-i has quit IRC
[03:40:08] <razel> dmlloyd: so then how would i do it ???
[03:40:11] <dmlloyd> you can't
[03:40:16] <dmlloyd> a double can't hold that number
[03:40:20] <dmlloyd> it doesn't fit
[03:40:21] <razel> df;hajdhrju
[03:40:25] <dmlloyd> square peg, round hole
[03:40:34] <razel> lol
[03:40:38] <dublisk> I thought java has an exact value class
[03:40:43] *** pattwo has joined ##java
[03:40:43] <dmlloyd> sure
[03:40:45] <dmlloyd> BigDecimal
[03:40:52] <dmlloyd> that's exact for base 10 anyway
[03:41:00] * pr3d4t0r plays with Python.
[03:41:01] <dmlloyd> it won't hold, say, a base-3 fraction that well
[03:41:04] * pr3d4t0r plays with Smalltalk.
[03:41:11] <dublisk> huh
[03:41:14] * pr3d4t0r looks down his nose at this BigDecimal kludge.
[03:41:36] <dmlloyd> they should have added a "decimal" primitive type imo
[03:41:40] <dmlloyd> but, too late now
[03:41:46] <dublisk> I thought it was exact
[03:41:58] *** poseidon has quit IRC
[03:41:58] <dmlloyd> dublisk, well, can it exactly hold 1/3?
[03:42:00] <pfn> 0.001 can't be represented in bcd? hmm
[03:42:05] <dublisk> dmlloyd: of course it can
[03:42:10] <dmlloyd> pfn: sure it can. double isn't bcd though
[03:42:10] <pr3d4t0r> dmlloyd: No, they should've gotten rid of primitives altogether.
[03:42:10] <freeone3000> Two to what power is 0.001?
[03:42:10] <dublisk> hold integer 1 and integer 3
[03:42:18] <pfn> er,
[03:42:21] <dmlloyd> dublisk: not in a BigDecimal
[03:42:29] <dublisk> well thats dumb
[03:42:34] <dublisk> thought it was exact
[03:42:37] <pfn> ieee754
[03:42:48] <dmlloyd> pr3d4t0r: you're in that camp are you. I think primitives are good... yeah, I said it.
[03:42:51] <bobbytek2> kwvarga: something like http://www.pastie.org/399330
[03:43:44] *** eventualbuddha has quit IRC
[03:43:52] *** kater has quit IRC
[03:44:11] <pr3d4t0r> dmlloyd: Sure. In languages like C or Pascal. Smalltalk showed in 1980 that you can have object-based magnitudes that perform as well as primitives for calculations. Java's excuse of "we needed this for performance" never held water. The version I heard, "this will look less strange to C and C++ programmers" is probably more accurate. Another kludge.
[03:44:32] <pr3d4t0r> dmlloyd: Gosling knew well about prior research in this area.
[03:44:48] <dublisk> razel: just write a "RationalNumber class" and use C++ =)
[03:44:55] <reverend> can someone answer a question in relation to a dickfor?
[03:45:46] <warriorforgod> I am trying to create an enumeration and have it display a range. Can someone tell me what I am doing wrong? http://rafb.net/p/jz7hhK90.html
[03:45:59] <bobbytek2> query: What, praytell, is a dickfor?
[03:46:13] <pr3d4t0r> ~tell reverend about urgent.
[03:46:13] <javabot> reverend, is what you need really urgent? See: http://is.gd/jmmG
[03:46:46] <freeone3000> warriorforgod: You never assign the value to the class field in the constructor.
[03:48:20] <dmlloyd> pr3d4t0r: java *is* a language like C or pascal.
[03:49:00] <freeone3000> bobbytek: Did you really?
[03:49:01] <The_Birdman> ~java
[03:49:02] <javabot> java is either coffee or a programming language. Since you came to ##java, you probably want the language.
[03:49:11] <freeone3000> I think that factoid is incorrect.
[03:49:21] <pr3d4t0r> dmlloyd: Oh, I know that well. I wrote a Java operating system in Java assembler :)
[03:49:30] <pfn> bobbytek2, sucker
[03:49:33] *** AlanasAnikonis has joined ##java
[03:49:39] <waz> no java machine code? wuss
[03:49:48] <pr3d4t0r> dmlloyd: I can't think of any other language in which its constructs and its machine implementation align so closely as Java's.
[03:49:55] <pr3d4t0r> waz: I'm a wuss!
[03:50:52] <pr3d4t0r> waz: I haven't coded directly manipulating microcode since my first Z-80. I didn't have an assembler, so at first I was dicking with the binary codes directly. Then I wrote a weird, sort of works assembler. In BASIC. For a Timex Sinclair 2068.
[03:51:09] <cheeser> you two should get a room. oh, wait! you already have one!
[03:51:11] <pr3d4t0r> waz: Hrm... that was the second Z-80 :)
[03:51:15] <pr3d4t0r> cheeser: w00t!
[03:51:19] <Riov> ~ucp
[03:51:19] <javabot> Riov, I have no idea what ucp is.
[03:51:20] <pr3d4t0r> cheeser: Did you get the code?
[03:51:22] <Riov> :/
[03:51:34] <pr3d4t0r> Riov: UDP?
[03:51:40] <cheeser> i did
[03:51:44] *** Copter has quit IRC
[03:51:47] <Riov> Unresolved compilation problem
[03:51:52] * bobbytek2 wants to be part of the secret code crew
[03:52:19] <pr3d4t0r> cheeser: The extra stuff that went around that to make it work in Java is what was a bit funky. You had to implement a few interfaces and create a .jar file to essentially do the same thing.
[03:52:30] <waz> wow, getting rid of public schools!
[03:52:31] <waz> weird
[03:52:33] <pr3d4t0r> ~tell Riov about PEBKAC.
[03:52:33] <javabot> Riov, PEBKAC is Problem Exists Between Keyboard And Chair
[03:52:38] <waz> of is that not what he meant? :)
[03:52:39] <pr3d4t0r> Riov: :*
[03:53:28] *** delskorch has quit IRC
[03:53:30] <freeone3000> ...To buy a Sinclar ZX-81 it would cost me $200. It didn't cost that much new.
[03:53:47] <pr3d4t0r> freeone3000: $49,95.
[03:54:02] <pr3d4t0r> freeone3000: Another $39,95 if you wanted the +12 KB memory expansion.
[03:54:02] <freeone3000> Let me look for that.
[03:54:04] *** jEvil has quit IRC
[03:54:19] <pr3d4t0r> freeone3000: The ZX-81 was equivalent to the US Timex Sinclair 1000.
[03:54:31] <waz> I had a Timex Sinclair
[03:54:59] <pr3d4t0r> freeone3000: The Spectrum ~= TS 2068, with the latter having better ROMs, a couple of extra instructions, and a keyboard on which you could type.
[03:55:35] <freeone3000> If I wanted a usable computer, I'd stick to the laptop I already have.
[03:55:41] <pr3d4t0r> freeone3000: The TS 2068 was software compatible with the Spectrum, as long as you didn't want to do I/O.
[03:55:58] <pr3d4t0r> freeone3000: I had the first laptop ever for about 60 days, then I sold it.
[03:56:03] <pr3d4t0r> freeone3000: A Data General One.
[03:56:06] *** progre55 has quit IRC
[03:56:11] <pr3d4t0r> freeone3000: That was one sweet machine.
[03:56:59] <dmlloyd> I thought osborne had the first one
[03:57:08] <dmlloyd> big hulking thing with a little 5" CRT in it
[03:57:14] <pr3d4t0r> dmlloyd: The Osborne 1 wasn't a laptop. It was a luggable.
[03:57:15] *** ScottG489 has left ##java
[03:57:19] <dmlloyd> ah
[03:58:06] <pr3d4t0r> dmlloyd: I had one too, for about two weeks. It was *huge*. I also had a Corona, a Columbia PC (they got sued by IBM for ROM copyright infringement but boy, 100% PC compatible!), and a Compaq portable with a built-in fax machine.
[03:58:21] <pr3d4t0r> dmlloyd: But the first true laptop computer was the Data General 1, 1985 or so.
[03:58:49] <pr3d4t0r> dmlloyd: I bought mine right after returning from my first gig in France and Spain, programming Macs in Pascal and backwards assembler (6800).
[03:58:52] <pr3d4t0r> dmlloyd: http://wwwcsif.cs.ucdavis.edu/~csclub/museum/items/data_general_1.html
[03:59:28] <dmlloyd> nice.
[04:00:12] *** kater has joined ##java
[04:01:11] <pr3d4t0r> dmlloyd: It was a sweet machine. Brother had a portable typewriter that looked sort of like it, but when you opened it it had a carriage and a 4-line LCD instead. Having a DG-1 and opening it in public was like parking a Ferrari F-640 downtown on a Sunday. Everybody wanted to come look at it, play with it, etc.
[04:01:30] <dmlloyd> http://wwwcsif.cs.ucdavis.edu/~csclub/museum/items/kaypro_2.html <- I had one of these for a while.
[04:01:43] *** nvictor has joined ##java
[04:01:58] <pr3d4t0r> dmlloyd: Ah!
[04:02:07] <pr3d4t0r> dmlloyd: You were in good company. Arthur C. Clarke had one.
[04:02:12] <dmlloyd> I liked the CP/M machines.
[04:02:17] <pr3d4t0r> dmlloyd: :)
[04:02:22] <dmlloyd> I like how the kaypro was built.
[04:02:25] <pr3d4t0r> dmlloyd: CP/M -- hated it.
[04:02:25] *** Woflborg has quit IRC
[04:02:42] <dmlloyd> I actually wanted to gut one and mount a PC motherboard in it for gaming, for a while.
[04:02:45] <pr3d4t0r> dmlloyd: I was an Apple DOS and the ProDOS kid. I went from that to UNIX, then backward to MS-DOS.
[04:02:49] <dmlloyd> now laptops are good enough.
[04:03:09] <dmlloyd> yeah, loved prodos. probably the nicest 8-bit DOS overall.
[04:03:14] <pr3d4t0r> dmlloyd: The Kaypro at least had a readable screen. The Osborne was... yikes.
[04:03:20] <pr3d4t0r> dmlloyd: Yup.
[04:03:41] <pr3d4t0r> dmlloyd: The file paths like.this.to.file instead of /like/this/to/file were a bit weird.
[04:04:00] <dmlloyd> that was a apple pascal dos thing.
[04:04:03] <dmlloyd> prodos used /
[04:04:10] <pr3d4t0r> dmlloyd: Oh, yeah. You're right.
[04:04:25] <pr3d4t0r> dmlloyd: I was coding professionally for a while on Apple's UCSD system.
[04:04:28] <dmlloyd> funny how apple pascal was pretty much its own complete OS
[04:04:29] <pr3d4t0r> dmlloyd: My bad.
[04:04:33] <pr3d4t0r> dmlloyd: Yup.
[04:04:46] *** nvictor has left ##java
[04:04:53] <dmlloyd> I remember computer science class. If you didn't get your stuff coded in the first 15 minutes, you wouldn't have time to compile :)
[04:04:56] <pr3d4t0r> dmlloyd: And it worked with the Apple HDD and the Bernoulli boxes without modifications. That was impressive.
[04:05:17] <dmlloyd> yeah, the apple IIgs still used it for some stuff
[04:05:23] <pr3d4t0r> dmlloyd: Ah, so it was like working with Maven then...
[04:05:28] <dmlloyd> heh
[04:05:35] <pr3d4t0r> dmlloyd: I only used a GS once or twic.e
[04:05:43] <dmlloyd> pretty nice machine
[04:05:54] <dmlloyd> really nice for an apple2 - really shitty for a mac :)
[04:05:58] <pr3d4t0r> dmlloyd: My last 8-bit Apple (yeah, I know about the GS 16-bit but no software) was the Apple //c.
[04:06:04] <pr3d4t0r> dmlloyd: Indeed.
[04:06:29] <pr3d4t0r> dmlloyd: Similar to the offspring of a very old woman married to a 15-year old boy.
[04:07:12] <pr3d4t0r> See you guys later. Thai dinner beckons.
[04:07:13] <r0bby> I had an Apple IIgs
[04:07:34] <r0bby> thing died when none of the disks would read (I had no hard drive)
[04:07:50] <pr3d4t0r> r0bby: Say 'hi' to your cousin, please.
[04:07:58] <r0bby> right away
[04:08:00] <pr3d4t0r> r0bby: "I know this really nice guy in CA who said 'hi'"
[04:08:04] <r0bby> Oh you mean the one i never talk to
[04:08:13] *** DCPom has joined ##java
[04:08:18] <r0bby> right away!
[04:08:30] <r0bby> "this old dude in CA wants to nail you"
[04:08:41] <r0bby> this isn't gonna end well..
[04:09:00] <AMcBain> way back when, my family had a Zenith, when they still made computers :P not as old as some of those you mention, but I think I still remember booting into DOS to play games (and even starting Windows from the cl)
[04:09:06] *** LouisJB has quit IRC
[04:09:08] <whaley> r0bby: how are your cousins?
[04:10:08] *** pattwo has quit IRC
[04:10:36] <r0bby> don't know, don't care
[04:12:03] *** elementz_ has quit IRC
[04:14:08] *** LordMetroid has quit IRC
[04:15:07] *** Dracofodder has quit IRC
[04:16:16] *** Ephidaurus has quit IRC
[04:20:57] *** freeone3000 has quit IRC
[04:21:50] *** Sikul has quit IRC
[04:28:00] *** whaley has quit IRC
[04:30:11] <Gracenotes> i lurv u r0bby
[04:31:18] *** bobbytek2 has quit IRC
[04:32:00] *** bobbytek2 has joined ##java
[04:32:23] *** Orphis has quit IRC
[04:32:52] *** taxon has quit IRC
[04:33:38] *** taxon has joined ##java
[04:33:55] *** The_Birdman has quit IRC
[04:35:35] *** brousch has quit IRC
[04:35:55] *** mydrmeix has joined ##java
[04:36:55] <r0bby> javabot el
[04:36:55] <javabot> for a tutorial on java ee see http://java.sun.com/javaee/5/docs/tutorial/doc/
[04:37:19] <mydrmeix> i was on the phone with my dad, a java developer, he sent me to the web to find javabeans editor. I ask this. System.out.println("Java rules!"); without including files how does java know println is from where?
[04:37:45] <r0bby> Yes.
[04:37:53] <r0bby> Reason: you specified it.
[04:37:53] <marqueed> agh - so i have a Class, and i want to pass a varargs argument with elements of that class to another method
[04:38:14] <r0bby> it exists on System.out
[04:38:24] <marqueed> lets call the Class ISR
[04:38:31] <r0bby> okay
[04:39:36] <r0bby> class Foo { public static void main(String[] args) { System.out.println("Hello World"); } }
[04:39:43] <r0bby> all you need for standard Hello World
[04:44:37] <joed> mydrmeix: Your dad sent you to google so you went to IRC?
[04:44:39] <dmlloyd> ISR is a terrible name for a class
[04:44:41] *** ofl_ has quit IRC
[04:45:05] <joed> mydrmeix: If I were your dad I'd be slapping you silly right now.
[04:45:12] *** gabbah has quit IRC
[04:46:48] <r0bby> call your class Foo when referring to examples
[04:46:59] *** riotz- has joined ##java
[04:47:07] <r0bby> Foo, Bar FooBar, Baz, LionsTigersAndBaz
[04:47:23] <joed> You endorse Fuubaring?
[04:47:38] <r0bby> yes I do.
[04:47:42] * joed hates Foo fux0ring Fuubarz.
[04:47:52] <r0bby> marqueed: also varargs is just an array
[04:48:10] <r0bby> so just learn about arrays and you're set
[04:48:25] *** riotz has quit IRC
[04:48:31] *** riotz- is now known as riotz
[04:49:13] <joed> dmlloyd: Here is a fun one, do you endorse I (For interface garbage) I'm planning to submit a IIIIIStutter^WIExtendSomenting.
[04:49:38] *** peyman_t has quit IRC
[04:49:45] <joed> dmlloyd: I just need to find a case where I can extend these things.
[04:50:36] <dmlloyd> you should just call it I
[04:50:55] <joed> Hahahahahaha
[04:51:09] <joed> ~dmlloyd++
[04:51:09] <javabot> dmlloyd has a karma level of 110, joed
[04:51:31] <joed> dmlloyd: I thank you for me snorting coffee over the screen.
[04:51:47] * dmlloyd bows
[04:54:29] <mydrmeix> okay there is import like import javax.swing.JOptionPane; but System.out just works?
[04:55:00] <mydrmeix> c would need #include stdio.h
[04:55:14] <r0bby> marqueed: yes
[04:55:22] <r0bby> System is in java.lang
[04:55:32] <r0bby> java.lang is ALWAYS imported implicitly for you
[04:55:51] *** onats has joined ##java
[04:56:20] *** pstickne has joined ##java
[04:56:40] *** cico has joined ##java
[04:57:41] <r0bby> I swear spring is governed by black magic
[04:58:24] *** kater_ has joined ##java
[04:59:10] *** RealKillaz has joined ##java
[05:01:12] <joed> r0bby: More like heavy drinking and profound love of XML
[05:01:23] *** aleksei has quit IRC
[05:01:29] <r0bby> that too
[05:01:49] *** amz has joined ##java
[05:02:03] <waz> there's a difference?
[05:10:45] *** rawbk has quit IRC
[05:13:17] *** savage- has joined ##java
[05:13:20] *** Riov has quit IRC
[05:13:55] *** dblick has joined ##java
[05:14:16] *** kater has quit IRC
[05:14:49] <dblick> What's the difference between <T extends Enum> and <T extends Enum<T>>?
[05:14:52] <svm_invictvs> XML is a golden hammer
[05:14:53] <svm_invictvs> ugh
[05:16:29] *** azanar has quit IRC
[05:17:07] *** savage- has quit IRC
[05:17:46] <r0bby> dblick: nothing really, at runtime all you get an Enum
[05:17:57] <r0bby> but you should probably use the second to force type-safety
[05:18:10] <r0bby> ~javadoc File
[05:18:10] <javabot> r0bby: http://is.gd/isoT [org.apache.wicket.util.file.File]; http://is.gd/isoS [java.io.File]
[05:19:02] *** Kwitschibo has quit IRC
[05:20:39] *** minozake has joined ##java
[05:21:06] <kwvarga> bobbytek: are you still around?
[05:24:53] *** n4te has joined ##java
[05:25:00] *** n4te has left ##java
[05:27:21] *** RachedTN has quit IRC
[05:27:49] *** RachedTN has joined ##java
[05:28:25] *** atlants has joined ##java
[05:29:10] <atlants> I remember reading somewhere that setting a variable to null will cause the memory to free up? is this true, or will doing this cause the garbage collector to grab it quicker? thanks.
[05:29:59] *** untouchable has joined ##java
[05:30:18] <Nebulam> it will only allow the garbage collector to free the memory. When you set a refrence to null it only destroys any reference to the object, not the object itself
[05:30:45] *** indeterminatus has quit IRC
[05:30:46] <r0bby> atlants: if nothing else is pointing to it as well
[05:31:12] *** karstensrage has joined ##java
[05:31:16] <cybereal> atlants: no it's less about setting the variable and more about whether any variables point to a given object
[05:31:31] *** BlindHunter has quit IRC
[05:31:50] <cybereal> atlants: once there is no way to "reach" an object in memory, it'll be up for potential garbage collection and thus free up memory... potentially and eventually :) actual behavior is variable for performance reasons
[05:32:50] <atlants> hmmm... so if anything, it would be a good idea to do - im having memory problems with an app - dont think its a memory leak, but more that i have mutliple threads that isnt freeing memory fast enough
[05:33:05] <r0bby> atlants: did you profile this app?
[05:33:26] <atlants> just watching graphs in visualvm
[05:34:16] *** xphillyx has joined ##java
[05:34:33] *** Consty has joined ##java
[05:35:11] <xphillyx> If I have something in my code of type E, is there a way to determine what it actually is? Or would I need to rewrite my method to use each data type
[05:36:08] <pstickne> xphillyx: your question is vague. you can always determine the /run time/ type.
[05:36:30] <dublisk> can't you use reflection for that?
[05:36:30] <pstickne> xphillyx: of course, that is erased by generics and doesn't really apply to primitives.
[05:36:31] <Consty> On the Windows platform, the setTimeToLive() works for a MulticastSocket, however on Linux it is ignored. Does anyone know why?
[05:37:22] <xphillyx> like say i have a method that takes 3 parameters. i know 2 types, but the 3rd is to be determined. I put E in the signature. Is there a way for java to be able to tell me what type it actually is?
[05:37:32] <pstickne> xphillyx: read what I wrote
[05:37:40] <pstickne> xphillyx: really. geeze.
[05:37:54] <pstickne> also 'E' doesn't say anything of use
[05:37:58] *** aTypical has quit IRC
[05:38:20] <pstickne> class E? interface E? some generic E?
[05:38:53] <pstickne> (and for all of the above...)
[05:40:00] <xphillyx> why doesn't it apply to primitives? because they'd be autoboxed?
[05:41:00] <dublisk> I don't understand, how can the 3rd paramater to be determined
[05:41:02] <atlants> does anyone know of a good profiling app? im using visualvm, but doesnt give me much - want more of number of each specific type of object. thanks.
[05:41:30] <xphillyx> dublisk: because it is going into a field in a DB.
[05:41:37] <pstickne> no. because they essentially have no run-time type. their type becomes part of the byte code instructions. this differs from reference types.
[05:41:45] <dublisk> no but really, how is that even possible to have such a function
[05:42:12] <pstickne> dublisk: void foo(String a, String b, Object c) {...}
[05:42:40] <pstickne> instanceOf (operator) and getClass (method) may be of interest here
[05:43:05] <pstickne> However, I would avoid doing things with dynamic typing [hacks] if at all possible.
[05:43:27] <pstickne> *instanceof
[05:43:35] <dublisk> RTTI is usually a design flaw
[05:43:42] <pstickne> RTTI?
[05:43:48] <pstickne> dublisk: actually, no, it's not
[05:43:56] <hiredman> runtime type inference?
[05:44:08] <pstickne> I think 'information'
[05:44:13] <dublisk> yeah, or identification or information
[05:44:15] <pstickne> Either way, it's not a design flaw.
[05:44:22] <dublisk> I said usually
[05:44:37] <pstickne> In fact, if you treat classes as just other objects (which Java kinda does), it makes the system more consistent.
[05:44:59] <dublisk> except an abstract object doesn't know how to do anything really
[05:45:39] <dublisk> does d->open(); make sense if all you know is that d is an object?
[05:45:47] <xphillyx> pstickne: aright, thanks
[05:45:50] <dublisk> d.open()
[05:46:13] <xphillyx> all the googles of those tell me that they're bad haha.
[05:46:32] <pstickne> dublisk: it makes type-sense if and only if the object reference by d knows how to respond to open().
[05:46:33] *** IRAQI` has joined ##java
[05:46:44] <dublisk> its still bad design imo
[05:46:51] <pstickne> dublisk: of course it's impossible to answer if it makes semantical sense from that question.
[05:47:10] <pstickne> dublisk: Foo d = new Foo(); d.open() // how is this bad design?
[05:47:19] <dublisk> I didn't say Foo did I
[05:47:22] <dublisk> I said Object
[05:47:27] <pstickne> "d is an object"
[05:47:32] <dublisk> if Foo has a member function open that is different
[05:47:36] <pstickne> "object ... knows how to respond ..."
[05:47:39] <dublisk> yes, the static type of d is that of object
[05:47:41] *** cico has quit IRC
[05:47:43] <dublisk> Object
[05:48:07] <pstickne> then see above, Object does not know how to respond to open() and therefor that situation is forever type-invalid
[05:48:16] <dublisk> yes
[05:48:31] <dublisk> so now you have to try and deduce the type and then see if you can apply function
[05:48:36] <dublisk> that is essentially RTTI
[05:48:37] *** djp[mbp] has quit IRC
[05:48:39] <pstickne> No.
[05:48:51] *** Consty has quit IRC
[05:48:54] <pstickne> RTTI is just type-information which is part of the run-time system.
[05:49:02] <pstickne> RTTI says nothing about the application of said information.
[05:49:10] <dublisk> okay dude
[05:49:15] <pstickne> A /cast/ uses RTTI.
[05:49:31] <pstickne> try { Foo d = (Foo)x; d.open() } ...
[05:49:33] <hiredman> if you take I to be inference…
[05:50:12] <pstickne> (Actually, a cast may not need to use RTTI, but the very fact that a dynamic cast can occur means that RTTI information is present and used)
[05:50:21] *** atlants has quit IRC
[05:51:05] <pstickne> Granted, there are usually better ways of handling situations like this (discrete unions, assign-if-compatible, structural typing, etc)
[05:51:22] <joed> RTTIIITIITIITI sounds like a FUCKINGBWRFARCHIsMabyeNEEDED()
[05:51:23] <pstickne> But, they are not part of Java -- however, there implementation is orthogonal to RTTI in general.
[05:51:41] <pstickne> *their
[05:52:03] <pstickne> joed: :(
[05:52:18] <joed> pstickne: Was a side note.
[05:53:39] *** DCPom has quit IRC
[05:56:47] *** jieryn-w has joined ##java
[05:57:03] *** bashoh has joined ##java
[05:57:06] <kwvarga> I am having an issue with JasperReports crashing my program, it is supposed to throw a JRException and I have it in try {} catch, but It does not even ever even go into the catch block
[05:57:35] <pstickne> kwvarga: then something else is throwing it, or you aren't capturing it
[05:57:37] <jieryn-w> greetings :) i am trying to use JPA and want to do something like: SELECT name FROM MyObj; where MyObj has private String property named 'name' ;;; want a List<String> basically, inside a @NamedQuery
[05:57:56] <jieryn-w> anyone familiar with JPA to help me ? i can not find how to do this in the Sun JPA tutorial
[05:58:00] *** AppleBoy has joined ##java
[05:58:02] <pstickne> kwvarga: does JRException extend from Exception? are you catching Exception? JRException? what does the backtrace show?
[05:58:15] <kwvarga> i have try { .. } catch (JRException e) { ... } catch (Exception e)
[05:58:25] <AppleBoy> if you do something like b=++a; that increases the value of a too, right?
[05:58:29] <kwvarga> I am using it as a servlet
[05:58:53] <kwvarga> So I just get a rendorError
[05:58:54] <pstickne> kwvarga: look at the backtrace; does it come from where you expect?
[05:59:03] *** Junior has joined ##java
[05:59:10] <pstickne> kwvarga: well, stop guessing -- get a backtrace from somewhere
[05:59:22] <cybereal> ~~ AppleBoy tias
[05:59:23] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[05:59:31] <Junior> yello ;)
[05:59:43] <pstickne> red?
[06:00:09] <untouchable> can someone check out this java method, http://pastebin.ca/1346520, and maybe check why when i execute it, it will not return true when it should
[06:00:20] <pstickne> why do you think it should?
[06:00:23] <untouchable> for some reason i cant figure out it wont get through the if statement
[06:00:37] <kwvarga> How would I backtrace a servlet?
[06:00:52] <kwvarga> I have it come down to one line via Log Printlns
[06:00:53] <untouchable> am i calling the .equals method wrong?
[06:01:13] <pstickne> untouchable: are you calling it on the right things?
[06:01:29] <pstickne> untouchable: remember .equals takes in type Object
[06:01:42] <pstickne> untouchable: so you won't normally get a nice type error here
[06:01:50] *** dublisk has quit IRC
[06:02:20] <untouchable> oh
[06:02:34] <untouchable> so if im passing a string to it, it will always return false
[06:02:44] <pstickne> no
[06:03:03] <pr3d4t0r> Good evening.
[06:03:18] <pstickne> I'm just saying that "Foo".equals(new Integer(1)) is valid but non-sensical
[06:04:03] <untouchable> what do you mean
[06:04:08] <pstickne> untouchable: maybe your /first/ is wrong, I am /assuming/ .data is of type String
[06:04:19] <untouchable> yeah it is
[06:04:22] <pstickne> "Foo".equals(new Integer(1)) // this is never true
[06:04:45] <untouchable> oh, ill have to relook up the .equals
[06:05:13] <pstickne> untouchable: you have a function printDLL, right?
[06:05:19] <untouchable> yeah
[06:05:28] <pstickne> untouchable: and it shows what?
[06:05:40] <untouchable> well my printDLL prints the whole list
[06:05:45] <cybereal> pr3d4t0r: do you know of any way in google app engine to make a presisted "queue" of objects without resorting to making some kind of fake linked list within the data?
[06:05:45] <pstickne> untouchable: when you print out the data, surround it with a quote chacter
[06:06:02] <untouchable> and the line Sysmte.out.println(current.data); prints fine
[06:06:03] <pstickne> e.g. "(" + current.data + ")" (here and where you print the DLL)
[06:06:25] <pr3d4t0r> cybereal: Hun?
[06:06:40] <pstickne> untouchable: is /first/ changed in the print or anywhere else inbetween?
[06:06:47] <cybereal> no Atilla here
[06:07:09] <pr3d4t0r> cybereal: OKi, so you want to make a linked list, kinda thing.
[06:07:27] <pr3d4t0r> cybereal: I'd go with db.Model + a reference.
[06:07:41] <cybereal> pr3d4t0r: ok, in a regular database I could trivially make a table where insertion set an autoincremented id column and sort by that column always keeping the same original insertion order
[06:07:50] <pr3d4t0r> cybereal: Make the "head" the root node, and keep all of those in the same entity group.
[06:07:52] <cybereal> but with google persistence api there's no such thing it seems
[06:08:04] <pr3d4t0r> cybereal: It's super easy to do.
[06:08:06] <untouchable> first is correct
[06:08:09] <pr3d4t0r> cybereal: /join #appengine
[06:08:11] <untouchable> i checked it with a print statement
[06:08:24] <cybereal> pr3d4t0r: yeah I thought of a few such "hacks" but that seems like it might defeat performance as well as not be concurrency safe
[06:08:42] <pr3d4t0r> cybereal: It's not a hack. Datastore is optimized for that.
[06:08:48] <pr3d4t0r> cybereal: /join #appengine.
[06:10:07] *** The_Pot has joined ##java
[06:10:56] *** FireSlash has quit IRC
[06:11:17] *** dublisk has joined ##java
[06:12:18] *** td123 has left ##java
[06:12:34] <AlanasAnikonis> !who Silver Nails
[06:12:47] <kwvarga> pstickne: I have it down to one line, which calls a Jasper function called compileReport.. I can hand-code the compilation on the system and it compiles fine. The function throws JRException, which I catch, however I just get a render error and my page fails to load.
[06:13:14] <AlanasAnikonis> (oh right, wrong channel)
[06:14:25] *** giaco has quit IRC
[06:14:30] <pstickne> kwvarga: perhaps it is caught and something else fails
[06:15:21] *** azanar has joined ##java
[06:15:39] <kwvarga> I just found where in eclipse it says that a fwe of the files i just added to the Java Build Path will not be exported, including the one I am trying to call
[06:16:52] *** blankthemuffin has joined ##java
[06:18:25] <kwvarga> Any ideas?
[06:18:33] <kwvarga> On why they would not be exported?
[06:18:49] *** rlubke has joined ##java
[06:18:58] <pstickne> maybe they are outside the project workspace
[06:19:27] <kwvarga> Classpath entry C:/Program Files/Apache Software Foundation/Tomcat 5.5/common/lib/jasperreports-3.1.4.jar will not be exported or published. Runtime ClassNotFoundExceptions may result. Classpath Dependency Validator Message
[06:19:32] <kwvarga> probably that then
[06:20:05] <pstickne> I always put external deps in my project ... if I was really cool I'd learn maven or something.
[06:20:27] <pstickne> (Well, for most deps... the JRE doesn't go in there :-)
[06:20:59] <kwvarga> so that wouldnt be why my app crashes?
[06:22:28] *** untouchable has quit IRC
[06:22:29] *** vpit3833 has quit IRC
[06:23:28] *** jieryn-w has left ##java
[06:23:29] <kwvarga> jr = JasperCompileManager.compileReport("C:/reports/test.jrxml");
[06:27:17] *** kab has quit IRC
[06:31:23] *** marqueed has quit IRC
[06:34:54] *** gotank233 has joined ##java
[06:36:57] *** musically_ut has joined ##java
[06:36:58] *** xphillyx has left ##java
[06:40:40] *** marqueed has joined ##java
[06:40:41] *** AMcBain has quit IRC
[06:40:55] <gotank233> hey say i have two classes a vendingMachine and a snack class. Its most likely that the snack class would have parameters that would create the snack and the VendingMachine class would store the snacks in an arrayList right?
[06:42:23] *** bindaas has joined ##java
[06:45:31] *** aceofspades19 has quit IRC
[06:45:50] <pstickne> gotank233: the VendingMachine has many snacks. How they are stored should not be part of the interface.
[06:45:52] *** aceofspades19 has joined ##java
[06:46:45] <pstickne> gotank233: in reality a vending machine has many slots for many different kinds of snacks
[06:46:57] <pstickne> (a single type of snack can be in more than one spot)
[06:47:12] *** Inc` has quit IRC
[06:47:20] <ahughes> is there a class that is an ordered set?
[06:47:22] <pstickne> but each slot only contains homogeneous snacks
[06:47:29] <pstickne> ahughes: have you looked?
[06:47:37] <pstickne> (answer: no)
[06:48:05] <pstickne> ~googleit java ordered set
[06:48:06] <javabot> http://letmegooglethatforyou.com/?q=java ordered set
[06:48:45] <ahughes> get your silly javabot to put.... %20 in for spaces!
[06:48:46] <Gracenotes> heh, almost thought you were talking about abstract algebra for a second. wrong channel >_>
[06:49:39] <kwvarga> pstickne: Any idea of how to backtrace this further? I have now moved into working directory so I do reports/ which is based off my project directory
[06:49:42] <ahughes> you do know pstickne that you have spent more time than saying XYZSet ;)
[06:49:55] <kwvarga> but when i run on server, it still crashes, however it will open file, just not run the JasperReports coammans on it
[06:50:14] *** CyLonMath has quit IRC
[06:50:31] *** onats has quit IRC
[06:52:08] <pstickne> ahughes: learn anything?
[06:52:28] *** asap18 has quit IRC
[06:52:43] <pstickne> kwvarga: this server setup doesn't allow /any/ way of viewing a backtrace?
[06:53:30] <ahughes> yeah pstickne - that google chrome's find doesnt search across frames very well ;) or the page wasnt fully loaded. But I did try the api first of course.
[06:53:44] <pstickne> ahughes: :)
[06:55:17] <ahughes> TreeSet, very nice :)
[06:55:29] *** Angel-SL has quit IRC
[06:55:49] *** Angel-SL has joined ##java
[06:57:25] *** Angel-SL has quit IRC
[06:57:49] *** Angel-SL has joined ##java
[06:58:04] *** Kwitschibo has joined ##java
[07:00:16] *** mosno has quit IRC
[07:02:31] *** MrPocketz has joined ##java
[07:02:34] <MrPocketz> hey hey!
[07:02:44] <MrPocketz> http://pastebin.com/d3f2b22b3
[07:02:56] <MrPocketz> can someone help me understand this click hijacker?
[07:03:56] <dangertools> ~~ topicsmite MrPocketz
[07:03:57] <javabot> The user topicsmite is not on ##java
[07:04:05] <dangertools> ~~ MrPocketz topicsmite
[07:04:05] <javabot> And the wrath of /TOPIC descended with terrible fury upon topicsmite. And all the people marvelled, saying, Behold, we too should read the /TOPIC, lest we be stricken. And all the people read the /TOPIC, and went away edified.
[07:04:31] *** Tarantulafudge has left ##java
[07:04:39] *** joakimk has joined ##java
[07:04:58] *** casmo has quit IRC
[07:06:50] <MrPocketz> (
[07:08:08] *** rawbk has joined ##java
[07:11:09] *** blankthemuffin has quit IRC
[07:11:20] *** vix85 has joined ##java
[07:13:17] *** Frostix has quit IRC
[07:15:42] *** blankthemuffin has joined ##java
[07:16:48] *** waz has quit IRC
[07:18:14] *** rlubke has quit IRC
[07:18:51] *** rlubke has joined ##java
[07:19:07] *** rlubke has quit IRC
[07:21:29] *** Thorn has joined ##java
[07:23:27] *** DCPom has joined ##java
[07:25:00] *** marqueed has quit IRC
[07:26:00] *** ridoo has joined ##java
[07:27:34] *** RealKillaz has quit IRC
[07:30:11] <cybereal> I love monoprice.com; it's so satisfying to submit an $8 w/shipping order for cables that would've cost $65+tax at a brick and mortar store if said stores even *carried* the cables I buy...
[07:30:32] *** Bevin has joined ##java
[07:30:58] <cybereal> just thinking of how horribly ripped off people are by stores like walmart selling 3' HDMI cables for $20, and then when I bought a 50' HDMI cable, rated for in-wall installation, for $54 w/shipping
[07:31:48] *** untouchable has joined ##java
[07:33:13] *** sebr is now known as sebr_afk
[07:33:19] <untouchable> how do i compare if something is a number or not? i want to use if(element==??){ or if(element.equals(""){
[07:33:40] <untouchable> but idk what to put in those ?? spaces
[07:34:36] <r0bby> untouchable: using regexp
[07:34:47] <untouchable> regexp?
[07:34:49] <r0bby> what type is element?
[07:34:58] <r0bby> if element is a String
[07:35:06] <r0bby> ~~ untouchable regex
[07:35:06] <javabot> Please see the tutorial at http://java.sun.com/docs/books/tutorial/essential/regex/ -- If you know what you're doing, go to http://javachannel.net/wiki/pmwiki.php/FAQ/Regexp ; otherwise ask me about javadoc Pattern or javadoc String.split(*)
[07:35:06] <untouchable> yeah a string
[07:35:19] <r0bby> well if you're disregarding hex
[07:35:41] <r0bby> you could just if(Character.isDigit(element.charAt(0)) { ... }
[07:35:44] <r0bby> optionally
[07:35:50] *** PuffTheMagic has quit IRC
[07:36:09] <untouchable> that would check the first character input?
[07:36:20] <r0bby> try { int i = Integer.parseInt(element); }catch(NumberFormatException e) { ... }
[07:36:28] <r0bby> that would check teh first character of the string.
[07:36:45] <r0bby> its probably safe to say thatif the first character isn't a digit, the rest isnt
[07:36:50] <untouchable> okay thansk, ill try it out
[07:37:47] <r0bby> your other option: like i said is regex: if(element.matches("\\d+")) { ... }
[07:37:58] <r0bby> that won't match a floating point
[07:38:05] <r0bby> (aka double, float)
[07:39:02] *** DCPom has quit IRC
[07:39:41] <cybereal> untouchable: eventually you'll come to realize that the best way to handle formatted string data is to just try and convert it to the desired type and deal with any errors during that process. It's wasteful to try and check if it is or isn't something before converting because the process is just duplicated or worse.
[07:40:20] <cybereal> so if you accept any number, including decimals, one suggestion would be to convert the string to a BigDecimal then coerce it down as appropriate for your needs
[07:41:26] *** jieryn-w has joined ##java
[07:41:39] <untouchable> well im trying to make a postfix calculator, so it has to check if each character inputted is a number or mathamatical operator
[07:42:49] <untouchable> im also not that advanced
[07:43:25] <jieryn-w> greetings :) i am using hibernate as a jpa provider; i need to select as a result list all myobj.name (String) from myobj; jpa is rejecting my named query select m.name from MyObj as m -- any tips?
[07:43:36] *** nocture has joined ##java
[07:43:36] *** ahughes has quit IRC
[07:43:44] <cybereal> untouchable: you are learning about tokenizing and parsing them
[07:43:46] <cybereal> er then
[07:43:56] <cybereal> untouchable: so you might google for those terms in java
[07:44:04] <untouchable> okay
[07:44:57] <cybereal> jieryn-w: what makes you think that syntax is supported?
[07:45:52] <cybereal> jieryn-w: also you shouldn't bother asking for help without providing details, such as verbatim code and error messages in a pastebin, otherwise everything degrades to a guess-fest
[07:47:11] <jieryn-w> thanks
[07:47:17] *** Aquanox has joined ##java
[07:48:08] <jieryn-w> i don't know that the syntax is supposed, the entire jpa query language specification neither prohibits it or excludes it;; however i can't imagine it is not possible
[07:48:33] <jieryn-w> just looking for an example
[07:48:40] <cybereal> it probably doesn't prohibit the keyword pizza either but what's more important is whether it specifically includes it
[07:48:50] <jieryn-w> you're especially helpful tonight, kudos
[07:49:52] <pfn> selecting name should work...
[07:50:42] <cybereal> jieryn-w: why don't you bother posting the actual error?
[07:50:44] <jieryn-w> select name from Cat fails, Cat is not mapped
[07:50:52] * pfn shrugs can't scroll back far
[07:50:52] <jieryn-w> however it is definitely visible in the table
[07:51:23] <pfn> cat is the error can you do anything with cat
[07:52:42] *** vix85 has quit IRC
[07:52:53] <jieryn-w> god i fucking love raw strings as queries :-(
[07:53:08] <jieryn-w> my mapped class is actually much harder to speel than 'Cat' ;-)
[07:53:26] <jieryn-w> @Entity is named Category, my query was Cateogry
[07:53:40] <jieryn-w> yaay anti-typing!
[07:53:58] <pfn> do any queries against work
[07:54:15] <jieryn-w> rerunning tests
[07:54:16] <pfn> against it
[07:55:01] <jieryn-w> ok that worked
[07:56:12] <pfn> I hate typing on the iphone
[07:56:13] *** ilaggoodly has joined ##java
[07:56:32] <jieryn-w> insane
[07:57:46] <pfn> what
[07:58:05] *** Aquanox has quit IRC
[07:59:09] <jieryn-w> irc via iphone
[08:02:43] <AppleBoy> ~pastebin
[08:02:43] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[08:04:23] <AppleBoy> ok, so I made a priority queue, http://www.papernapkin.org/pastebin/view/4645/ with a heap in an arraylist. it should work, but when trying to call dequeueMin() It tries to return an object instead of the actual object it is
[08:04:24] <AppleBoy> found : java.lang.Object
[08:04:24] <AppleBoy> required: Vertex
[08:04:35] <AppleBoy> any idea why it would get messed up?
[08:04:50] *** jieryn-w has left ##java
[08:04:58] <untouchable> could someone check this out: http://pastebin.ca/1346592 and maybe provide some insight on why my method at line 69 won't check if the list contains the element properly?
[08:05:14] <untouchable> ** line 62
[08:05:24] <pr3d4t0r> AppleBoy: Type cast it.
[08:06:19] *** systat has joined ##java
[08:06:35] <untouchable> i think my if statement isn't doing what i want it to do
[08:06:48] <untouchable> but ive changed it around a bunch of times and it still doesn't work
[08:07:16] <untouchable> the Sesm.out.println(current.data); displays correctly, but it never returns true
[08:07:48] <r0bby> javabot: javadoc uuid
[08:07:51] <javabot> r0bby: http://is.gd/kMhQ [java.util.UUID]
[08:10:24] <untouchable> would i be able to replace .equals with the compareTo(UUID val) method? im not clear on how to implement this sorta thing
[08:10:29] <untouchable> i guess ill go try it out
[08:11:14] <untouchable> oh i have to make the UUID first?
[08:11:16] *** epoxy has joined ##java
[08:11:22] *** Nebulam has quit IRC
[08:13:59] <untouchable> would this new line be correct? if(fromString(current.data).compareTo(fromString(element))){
[08:14:23] <epoxy> is there a reason why i can run some code on my freebsd box fine and run it on my windows machine and get "Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Color parameter outside of expected range: Red" for some color stuff i am using
[08:14:38] *** Ephidaurus has joined ##java
[08:15:23] * epoxy is confused
[08:15:24] *** Greyhound_ has quit IRC
[08:15:34] *** Greyhound- has joined ##java
[08:16:21] *** kungen has joined ##java
[08:16:28] *** amz has quit IRC
[08:17:00] <cybereal> epoxy: yes
[08:17:04] <cybereal> epoxy: of course there's a reason
[08:17:13] <cybereal> but it could be numerous things
[08:17:18] <epoxy> cybereal,hehe true true.
[08:17:27] <cybereal> it could be that each system has different levels of color restriction
[08:17:34] <cybereal> it could be that you're using two differently implemented VM's
[08:17:46] <cybereal> source is probably available on both btw
[08:18:29] *** AdrienC has joined ##java
[08:18:42] * r0bby sighs
[08:19:46] <AdrienC> hi
[08:20:11] <r0bby> cybereal: I love you man...can I have you bud light
[08:20:46] <untouchable> (current.data).equals, does saying that not work in java?
[08:20:56] <untouchable> or can you use parentheses like that
[08:21:37] <r0bby> if(current.data.equals(whatever)) { ... }
[08:22:07] <r0bby> you probably should use getters/setters
[08:22:22] <untouchable> what do you mean
[08:22:29] <untouchable> or can i google them
[08:22:59] <cybereal> untouchable: you can use parentheses like that, no problem, it's just pointless
[08:23:09] <untouchable> okay
[08:23:17] <untouchable> i didnt know if it made a difference
[08:23:26] <untouchable> r0bby, you mean like .getValue()
[08:23:30] <r0bby> untouchable: yes
[08:23:40] <r0bby> I hate public fields unless they're absolutely necessary
[08:24:06] <untouchable> ive only been learning java for about 2 weeks so i really suck atm
[08:24:13] <r0bby> yeh
[08:24:22] <r0bby> always declare fields private and use getters
[08:24:25] <untouchable> thanks for helping me out with my questions both of you guys
[08:24:29] <untouchable> okay
[08:24:30] <r0bby> no problem
[08:24:32] <r0bby> Im off to bed
[08:24:36] <untouchable> night
[08:24:54] <pstickne> Hmm. Can anyone recommend a good/small EJB3 container? E.g. not JBoss. (This is for school, the web interface is via LiftWeb/Jetty so I just need an EJB container for the server in the back :-)
[08:25:05] <cybereal> ~openejb
[08:25:05] <javabot> cybereal, I have no idea what openejb is.
[08:25:09] * cybereal hmmms
[08:25:11] <r0bby> pstickne: glassfish?
[08:25:22] <r0bby> or can that not handle ejb?
[08:25:25] <pstickne> r0bby: I don't like Sun-based Java products :(
[08:25:31] <pstickne> (minus the VM)
[08:25:33] <r0bby> ...
[08:25:38] <r0bby> I was gonna say pstickne
[08:25:41] <pstickne> heh
[08:25:52] <r0bby> pstickne: google openejb
[08:25:54] <cybereal> ~openejb is is an embeddable and lightweight EJB 3.0 implementation that can be used as a standalone server or embedded into Tomcat, JUnit, TestNG, Eclipse, IntelliJ, Maven, Ant, and any IDE or application. OpenEJB is included in Apache Geronimo, IBM WebSphere Application Server CE, and Apple's WebObjects. http://openejb.apache.org/
[08:25:55] <javabot> OK, cybereal.
[08:25:59] <pstickne> Sun makes such wonderful things as JMF :)
[08:26:01] <cybereal> ~openejb
[08:26:01] <javabot> cybereal, openejb is is an embeddable and lightweight EJB 3.0 implementation that can be used as a standalone server or embedded into Tomcat, JUnit, TestNG, Eclipse, IntelliJ, Maven, Ant, and any IDE or application. OpenEJB is included in Apache Geronimo, IBM WebSphere Application Server CE, and Apple's WebObjects. http://openejb.apache.org/
[08:26:13] <r0bby> there is also openjpa
[08:26:15] <r0bby> ~openjpa
[08:26:15] <javabot> r0bby, openjpa is http://openjpa.apache.org
[08:26:32] <r0bby> wow
[08:26:37] <r0bby> annotations make testing cake
[08:26:45] <cybereal> I prefer pie
[08:27:29] <r0bby> I'm trying to figure out how to test spring mvc controllers
[08:27:49] <r0bby> (yes I do code, and no my code isn't _THAT_ bad)
[08:27:57] <r0bby> It's in groovy :D
[08:28:17] <r0bby> try to be as idiomatic as possible too
[08:28:29] <cybereal> try not to test infrastructure
[08:28:39] <cybereal> focus on testing algorithms
[08:28:39] <r0bby> what do you mean :/
[08:28:49] <cybereal> it shouldn't matter that it's a spring mvc controller
[08:28:51] <r0bby> stay away from controllers and such
[08:29:07] <r0bby> try to ensure everything works :/
[08:29:11] <r0bby> blame joed
[08:29:12] <r0bby> lol
[08:29:22] <cybereal> that's understandable but that's why I said words like "try" and "focus" :)
[08:29:24] <r0bby> he tried to get me into TDD i just couldn't do it
[08:29:49] <cybereal> trying to be completely pious in the TDD religion leads to some of the worst code I've ever seen
[08:29:52] <r0bby> right now i can't get spring to stop being an ass so testing is one way i can ensure everything 'works'
[08:30:31] <cybereal> r0bby: it's not that the infrastructure shouldn't tested it just shouldn't be tested at the same time as the algorithms it eventually invokes, if you can avoid it
[08:30:33] <r0bby> the markup on the other hand... I don't feel like testing that i'd rather do that the human way
[08:30:57] <r0bby> yeh i'll admit.. i'm inexperienced as hell
[08:31:15] <r0bby> I pretty much blew an interview because of my ..lack of confidence in my skills
[08:31:21] <r0bby> they're there just weak as hell
[08:31:22] <cybereal> interviews are hard
[08:31:31] <r0bby> it was with viacom
[08:31:35] <r0bby> mtvU division
[08:32:07] <r0bby> last i think june
[08:32:16] <cybereal> maybe they'll recommend you to the spongebob squarepants division :)
[08:32:40] <r0bby> I'm not a moron but i sure as hell act it 90% of the time
[08:33:16] <r0bby> google seriously is awesome
[08:33:32] <r0bby> other untapped resource people ignore is blogs just have to be careful for bogus cra
[08:33:37] <r0bby> crap*
[08:33:45] <deebo> blogus crap
[08:33:49] <cybereal> you have to be careful of that everywhere
[08:34:15] <cybereal> I used to think there was some hierarchy of information integrity where books were near the top but now I have encountered so many shitty, and often plain-out wrong books..
[08:34:15] <r0bby> yeah i know
[08:34:17] <deebo> i only read/trust blogs that are for companies/representatives of companies :P
[08:34:36] <deebo> books are old when they are finished
[08:34:45] <r0bby> I've written some blog posts and was careful as hell to understand the specs i was working off of
[08:34:53] <deebo> i bought a spring book a year ago or something
[08:35:00] <deebo> spring had changed so much the examples didnt work etc
[08:35:17] <r0bby> the bgga/cice/fcm/properties posts were written to be as correct as i could be
[08:35:31] <r0bby> spring is annoying :(
[08:35:35] <untouchable> i tried to make a .getData but it didnt work
[08:35:49] <r0bby> I'm still trying to get a handle on what's happening :'(
[08:35:58] <pstickne> bummer, I though iBATIS supported compiling and static typing :(
[08:36:07] <untouchable> r0bby, was that at me?
[08:36:09] <r0bby> Ok seriously i need sleep
[08:36:18] <r0bby> untouchable: it didn't work?
[08:36:20] <r0bby> what errors
[08:36:31] <untouchable> no errors, it still wont compare and return true
[08:36:37] <untouchable> ill paste what i changed
[08:36:49] <r0bby> class Foo { private int foo; public int getFoo() { return foo; } public void setFoo(int foo) { this.foo = foo; } }
[08:36:55] <r0bby> how it should look
[08:37:00] <r0bby> public class Foo { private int foo; public int getFoo() { return foo; } public void setFoo(int foo) { this.foo = foo; } }
[08:37:05] <r0bby> sorry THAT is how it should look
[08:37:29] <r0bby> many will nit pick at the fact i use this.foo but it's fine
[08:37:37] *** redrebel has joined ##java
[08:37:44] <untouchable> http://pastebin.ca/1346618
[08:37:52] <untouchable> not like my line 148?
[08:37:58] <r0bby> 5 minites
[08:38:14] <r0bby> do
[08:38:26] <redrebel> how can I show JVM and system resources (linux) programatically?
[08:38:30] <r0bby> that's gonna take more than 5 minutes
[08:38:52] <r0bby> ~~ redrebel jmx
[08:38:52] <javabot> Since Java 1.5 you can monitor various aspects of the JVM via Java Management Extensions (JMX). An example using JMX programmatically to monitor thread CPU time usage can be found here: http://javafaq.mine.nu/lookup?367
[08:39:50] <redrebel> i was thinking of running the ps or free processes from java, but i thought there might be a better way
[08:41:45] <r0bby> jmx will help a bit
[08:41:58] <r0bby> cybereal: ni ni :)
[08:42:08] <r0bby> sleep tight whenever you get there
[08:42:53] <pstickne> so ... anyone play with iBATIS? :p
[08:43:09] *** [[thufir]] has joined ##java
[08:43:34] * r0bby plays with YOUR MOM.. just kidding no.
[08:43:41] <r0bby> i've played with hibernate/jpa
[08:43:47] <pstickne> that makes me want to puke r0bby :(
[08:43:50] *** mele- has quit IRC
[08:44:01] * r0bby hugs pstickne
[08:44:14] <pstickne> r0bby: I'm really not a fan of ORM's (blame AR)
[08:44:19] <r0bby> heh
[08:44:30] <r0bby> I can't believe i know what AR is
[08:44:35] <r0bby> (ActiveRecord
[08:44:49] <pstickne> RAILS FREAK! RAILS FREAK! RAILS ...
[08:44:57] <r0bby> I don't know rails
[08:45:01] <untouchable> would i add that getter setter stuff to its own class?
[08:45:03] <r0bby> nor do I know ruby
[08:45:06] <r0bby> no
[08:45:09] <untouchable> or to the class where i have data
[08:45:10] <pstickne> untouchable: /HUH/?
[08:45:10] <r0bby> it'd be in the same class
[08:45:18] <pstickne> untouchable: /does that question make sense/?
[08:45:19] <untouchable> okay thats what i thought
[08:45:28] <r0bby> untouchable: private means it's accessible ONLY in the class it's declared in
[08:45:34] <r0bby> now knowing this answer your own question
[08:45:43] <untouchable> yeah i at leas tknow that much
[08:45:53] <pstickne> I hate getters and setters :(
[08:46:04] <r0bby> so then your question was really ... wasn't it?
[08:46:10] <r0bby> pstickne: i hate public fields too
[08:46:44] <r0bby> I do know that you can do: foo.getFoo().add(3); // for a list
[08:46:49] <pstickne> r0bby: or rather, I dislike the difference between "setting x" via y.x = 2 and y.setX(2)
[08:47:04] <r0bby> groovy fixes that
[08:47:05] <r0bby> <3 it
[08:47:09] <r0bby> I use it heavily
[08:47:25] <pstickne> Java 9 I suppose...
[08:47:26] <r0bby> i'll stop pimping it, i'm gonna get a kickban soon if i don't stop
[08:47:29] <pstickne> :-)
[08:47:38] <pstickne> I think cheeser and joed are asleep :p
[08:47:41] <r0bby> pstickne: java 13
[08:48:25] <hiredman> so, uh, in 20 years?
[08:48:54] <pstickne> hiredman: don't be so optimistic..
[08:49:07] <pstickne> (they might have decided on an un-closure solution for java 7 by then :)
[08:49:28] <cybereal> if people are still writing software with primitive general purpose languages like this in 20 years then the human race is technologically peaked :P
[08:49:31] *** dpy has joined ##java
[08:51:34] <pfn> what about ibatis
[08:51:57] *** ordex has joined ##java
[08:52:10] *** amitev has joined ##java
[08:52:10] *** ordex has left ##java
[08:52:29] *** ordex has joined ##java
[08:52:36] <ordex> goodmorning
[08:52:42] <ordex> or something else :)
[08:52:56] <ordex> what could i use instead of Path2D in java 1.5?
[08:53:13] *** xkr47 has quit IRC
[08:53:27] *** wangyuan270 has joined ##java
[08:53:45] <pfn> what's wrong with path2d
[08:53:53] *** wangyuan270 has joined ##java
[08:54:00] <ordex> it has been introduced with java1.6
[08:54:36] <ordex> and i need to run my program on java5
[08:54:44] *** The_Pot_ has joined ##java
[08:54:46] <cybereal> ~javadoc Path2D
[08:54:47] <javabot> cybereal: http://is.gd/kMqU [java.awt.geom.Path2D]
[08:55:01] *** wangyuan270 has quit IRC
[08:55:24] <ordex> nice bot :)
[08:55:44] <cybereal> ordex: guess you'll have to implement it yourself, or maybe it's released in a compatible license so you could backport it
[08:56:04] <cybereal> also a lot of standard library additions come from pre-existing third party implementations
[08:56:07] *** zerobytes is now known as eightbytes
[08:56:15] <ordex> mh ok
[08:56:34] <ordex> i thought that there was something similar but with a different name..
[08:56:46] <ordex> anyway, i will try to look for a library
[08:57:29] *** KU0N has joined ##java
[08:57:30] *** mmc has joined ##java
[08:57:33] <cybereal> well there's GeneralPath is that what you were thinking?
[08:57:44] <ordex> ~javadoc GeneralPath
[08:57:44] <javabot> ordex: http://is.gd/iyrQ [java.awt.geom.GeneralPath]
[08:57:49] <cybereal> ordex: keep in mind I've no idea about how much featureset of Path2D you're depending on
[08:58:10] *** ldamwork has joined ##java
[08:58:20] *** Resistance has quit IRC
[08:58:35] *** dmiles_afk has joined ##java
[08:58:50] <ordex> why subclass of float and not a subclass of double XD
[08:58:51] <ordex> damn
[08:59:10] *** dmiles has quit IRC
[08:59:13] <cybereal> ordex: it's subclassed for the replacement
[08:59:20] <cybereal> it wasn't a subclass when it was originally added
[08:59:26] <cybereal> it's a "legacy" class
[08:59:31] *** squi has joined ##java
[09:00:27] <ordex> yeah ok
[09:00:35] <ordex> but i think that it works with float data
[09:00:51] <ordex> (but path2d.float has double and float methods)
[09:00:53] <ordex> !?
[09:01:17] *** SniperFodder has joined ##java
[09:01:23] <cybereal> ordex: they're probably truncated or rounded in some manner
[09:01:27] <cybereal> scaled
[09:01:44] <ordex> yeah, i think so
[09:01:52] <ordex> so it is a problem for me
[09:02:07] <ordex> and i think that GeneralPAth will do the same
[09:02:21] <ordex> let me have a look of GeneralPath javadoc page on java5
[09:02:31] *** nocture has quit IRC
[09:02:51] *** nocture has joined ##java
[09:03:07] <cybereal> it's all floats
[09:03:41] *** musically_ut has quit IRC
[09:04:01] *** dos000 has quit IRC
[09:04:01] <ordex> yeah, it works with float
[09:04:04] <ordex> damn :/
[09:04:09] *** ader10 has quit IRC
[09:04:52] *** Resistance has joined ##java
[09:04:57] *** xiata has quit IRC
[09:05:17] *** Bollinger has joined ##java
[09:05:40] <ordex> do you think that i could get the source code of path2d.double from openjdk?
[09:05:46] <cybereal> yes
[09:05:53] <cybereal> ~openjdk
[09:05:54] <javabot> cybereal, openjdk is http://openjdk.dev.java.net and #openjdk on irc.oftc.net
[09:06:06] <ordex> ok
[09:06:18] <ordex> mh, what's the different between version 6 or 7?
[09:06:18] <cybereal> but that's just my guess :)
[09:06:21] <deufrai> [Classloaders] : Hi there ! To load classes from an arbitrary .jar file on local filesystem, is there another way then using an URLClassLoader ?
[09:06:43] <ordex> :)
[09:06:48] * pstickne mumbles something about a class loader
[09:06:59] <cybereal> ordex: java 1.6 vs. the yet unreleased 1.7
[09:07:25] <pstickne> ordex: slowly but surely, Java 7 will be slightly less awful than Java 6 :-)
[09:08:22] <ordex> no i was thinking about openjdk 6 and 7
[09:08:39] *** wangyuan270 has joined ##java
[09:08:56] <ordex> i think that openjdk6 is the same as java6 (same => compatible)
[09:09:06] <pstickne> "compatible"
[09:09:20] *** wangyuan270 has quit IRC
[09:09:43] <deufrai> I managed to wrap URLClassLoader, but get a warning because i don't create it from withing a doPrivileged block. After some reading, I still cannot figure if Ireally need that amount of security checks to load classes from local filesystem...
[09:10:09] *** wangyuan270 has joined ##java
[09:10:12] *** bobbytek2 has quit IRC
[09:10:18] <wangyuan270> hello
[09:11:13] *** deSilva has joined ##java
[09:11:29] *** wangyuan270 is now known as wushan
[09:12:12] *** The_Pot has quit IRC
[09:12:23] *** dorito has quit IRC
[09:12:26] *** redrebel has quit IRC
[09:13:00] *** musically_ut has joined ##java
[09:16:05] *** ldam has quit IRC
[09:16:26] <wushan> can you tell me add irc to jaber
[09:17:03] <cybereal> I've never once found a working irc gateway on any jabber server. ever.
[09:17:20] <wushan> can you tell me add irc to jabber?
[09:18:22] <wushan> how about irc.jaim.at?
[09:18:31] <ordex> ~javadoc Arrays
[09:18:31] <javabot> ordex: http://is.gd/iqF5 [java.util.Arrays]
[09:18:32] <cybereal> how about you try it and see?
[09:18:43] <cybereal> wushan: this is not the channel for this question btw, you're in ##java not ##jabber or ##irc
[09:19:35] *** xabbuh has joined ##java
[09:19:49] <ordex> arrays changes its api from 5 to 6 -.-
[09:21:33] *** godling has joined ##java
[09:21:42] <godling> ~pastebin
[09:21:43] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[09:22:02] *** azanar has quit IRC
[09:22:25] <godling> http://eugeneciurana.com/pastebin/pastebin.php?show=40678
[09:22:44] <godling> I got -2 points for that method, can someone take a look and tell me if they see something blatantly incorrect?
[09:22:58] <wushan> thank your resume.
[09:23:49] <ordex> cybereal: javac -sourcepath . Arrays.java Curve.java GeneralPath.java Path2D.java
[09:24:01] <ordex> i must import those files to let Path2D works
[09:24:02] *** Gracenotes is now known as Gracenotes_away
[09:24:21] <r0bby> ordex: or just use java 6
[09:24:46] <ordex> r0bby: the problem is that in the environment where i'm testing my prog there's only java5 :(
[09:24:55] <deufrai> godling: line 13
[09:24:59] <r0bby> godling: don't set equal to true in the beginning
[09:25:01] <ordex> do you think i could have problem with this importing?
[09:25:12] *** antipivo has joined ##java
[09:25:21] <deufrai> you should 'return false' instead of setting equal to false
[09:25:23] <godling> deufrai: what about it?
[09:25:49] <godling> oh
[09:26:00] <deufrai> at code is : you will return true if the this set contains _last_ item from s
[09:26:00] *** dublisk has quit IRC
[09:26:05] <r0bby> that entire design blows :/
[09:26:22] *** ilyak has quit IRC
[09:26:29] <godling> what?
[09:26:42] <deufrai> and forget it, I'm even more wrong. Need towake up, sorry
[09:26:54] <antipivo> hi all! how do you know length massive type char ?
[09:27:12] <r0bby> return s == list.size() ? true : false;
[09:27:15] <r0bby> :)
[09:27:29] <deufrai> godling: returning false on line 13 would prevent you to iterate over the entire set as soon as you find a mismatch
[09:27:30] <r0bby> antipivo: char is one l character
[09:27:37] *** wushan has quit IRC
[09:27:41] <r0bby> if it's an array you use .length
[09:27:50] *** wangyuan270 has joined ##java
[09:28:00] <r0bby> ~~ antipivo arrays
[09:28:00] <javabot> antipivo, arrays is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
[09:28:04] <godling> design quirks aside, does it break the specification in any way?
[09:28:26] <godling> r0bby: and that won't work :P
[09:28:32] <deufrai> can't see it
[09:28:40] <godling> me neither
[09:29:13] <godling> It's only two points, I got 98/100
[09:29:22] <r0bby> godling: good job!
[09:29:26] <godling> I deserve those two points though :P
[09:29:34] <r0bby> godling: run it
[09:29:40] <r0bby> ~~ godling junit
[09:29:40] <javabot> godling, junit is a unit testing tool for java. See http://www.junit.org/
[09:29:45] <r0bby> ~~ godling testng
[09:29:45] <javabot> godling, testng is a testing framework that many consider more powerful than jUnit. For more information check out their homepage http://testng.org/.
[09:29:50] <antipivo> I have char mass[N], and wont get count elements this massive
[09:29:50] <antipivo> int count mass[].length ?
[09:29:52] <r0bby> use one of those to catch corner cases
[09:29:55] <r0bby> okay!
[09:30:08] <r0bby> antipivo: go read the link javabot gave you
[09:30:11] <r0bby> ~~ antipivo arrays
[09:30:11] <javabot> antipivo, arrays is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
[09:30:26] <godling> I didn't use junit but I tested it 25 times (five sets illustrating various cases against each other)
[09:30:46] <cybereal> ordex: I wouldn't try to use those classes because they are built-in classes, you'll need to put them in another package or "port" them in some small way to avoid collision
[09:30:46] *** skoskav has joined ##java
[09:31:03] <r0bby> antipivo: arrays are the most fundamental data structure you will EVER use, so you should understand them
[09:31:16] <godling> r0bby: thanks, thanks for the links
[09:31:29] *** Resistance has quit IRC
[09:31:42] <r0bby> int[] foo = new int[3]; for(int i=0;i<foo.length;i++) System.out.println(foo[i]);
[09:31:51] <r0bby> i'll get 3 0's
[09:31:58] <r0bby> the indices will go from 0 to 2.
[09:32:07] <r0bby> anyways bedtime
[09:32:09] <r0bby> o/
[09:32:40] <deufrai> good night
[09:32:45] *** azanar has joined ##java
[09:32:57] <ordex> r0bby: the class found in the classpath as precedence than standard class?
[09:33:03] <ordex> *more
[09:33:19] <ordex> azz good night :)
[09:33:38] <ordex> cybereal: is what i was trying to do
[09:33:56] *** agnul has joined ##java
[09:33:59] <ordex> the problem is that the want to stay in their package, due to default visibility of other members
[09:34:12] <godling> deufrai: thanks for looking at my code
[09:34:57] *** ldamwork has quit IRC
[09:35:35] *** wangyuan270 has quit IRC
[09:35:44] <cybereal> ordex: something you'll have to work around, I'm sure this path you're taking won't be as trivial as it seems. however, what I originally had in mind for you was to port only the minimal amount of the actual implementation of Path2D to a new class based on existing ones, or inlining other necessary new code, etc.
[09:36:01] <cybereal> anyway I doubt I have any magical advice beyond what you're doing yourself
[09:36:21] <ordex> yeah :)
[09:36:30] <ordex> i think i will follow your indication
[09:36:45] <ordex> i will try to port only path2d. i need only a few methods
[09:37:35] *** CrypticSquared has joined ##java
[09:37:45] <antipivo> r0bby: int[] foo = new int[3]; for(int i=0;i<foo.length;i++) System.out.println(foo[i]); yes this example true if I know length count elements mass. I create massive dynamically I do not know length new array
[09:37:52] *** tom17bombadil_ has joined ##java
[09:39:09] *** AppleBoy has quit IRC
[09:39:13] <deufrai> antipivo: how do you create your array 'dynamically' ?
[09:40:26] <antipivo> deufrai: while ( ( buf = buffered_reader.readLine () ) != null ); char mass[] = buf.toCharArray();
[09:40:41] *** n3llyb0y has joined ##java
[09:40:46] *** m4rtijn has joined ##java
[09:40:57] <deufrai> and you don't manage to get your array's size ?
[09:42:28] <antipivo> count elements mass[] maybe 10....100.. i do not know, I wont learn size this massive
[09:42:30] *** ldam has joined ##java
[09:42:42] *** cyzie has quit IRC
[09:42:45] *** teralaser has joined ##java
[09:43:51] <deufrai> antipivo: I dont understand. What are you trying to do ?
[09:44:14] *** epoxy has quit IRC
[09:44:43] *** bhz- has quit IRC
[09:45:37] *** funktor has joined ##java
[09:46:09] *** assertsmart has joined ##java
[09:46:22] <deufrai> 456
[09:47:53] *** Aperculum has joined ##java
[09:47:58] *** m4rtijn has left ##java
[09:48:46] *** fcky has quit IRC
[09:49:00] *** Vichfret has joined ##java
[09:49:04] <Aperculum> how does one go about creating undefined amount of certain type objects if he doesn't know what that amount is in coding time
[09:49:04] <antipivo> deufrai: Knowing length array, I use cycle for processing every elements my array. example for(int i=0; i<N; i++) { if (array[i] == "a") {..} }
[09:49:08] *** ffgeek200b has quit IRC
[09:49:35] *** Vicfred has quit IRC
[09:49:57] <antipivo> deufrai: but I no knowing length my array, I wont know this
[09:51:53] *** bigip has joined ##java
[09:52:12] <deufrai> antipivo: you just seem to say one this and its exact opposite
[09:52:12] *** wangyuan270 has joined ##java
[09:52:22] <deufrai> *one thing
[09:52:36] *** wangyuan270 is now known as wushan
[09:53:55] *** Phil4 has quit IRC
[09:55:57] *** kaineo has joined ##java
[09:56:05] <kaineo> hello peeps
[09:56:06] <antipivo> I do not know length new array, that it is not clear?
[09:56:12] <antipivo> deufrai: *
[09:56:19] *** The_Pot_ has quit IRC
[09:56:42] *** wushan has quit IRC
[09:56:58] *** wangyuan270 has joined ##java
[09:57:03] <kaineo> can anyone help me with my linked list methods?
[09:57:04] *** valcker has joined ##java
[09:57:34] <cybereal> Aperculum: loops and collections, google them if you don't understand the terms
[09:58:06] *** Dzarg has quit IRC
[09:58:08] *** wangyuan270 is now known as wushan
[09:58:33] <letfunbegin> kaineo: why not try and ask? someone might :)
[09:58:44] *** wushan has quit IRC
[09:59:24] *** sphenxes has joined ##java
[09:59:40] <kaineo> well ok here goes, i got my own linked list, and somehow the addLast(int tmp) method isnt working
[09:59:58] *** nocture has quit IRC
[10:00:05] <kaineo> it adds, but with peekLast() it's showing the same value over and over
[10:01:33] *** LadySerena has joined ##java
[10:01:35] <deufrai> antipivo: have alook here, you'll learn how to get the lenth of an array : http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
[10:01:44] <cybereal> antipivo: I just told you to look at collections, is THAT not clear?
[10:01:47] <cybereal> stop using arrays
[10:01:51] <cybereal> ~collections
[10:01:51] <javabot> The Collections API is available at http://java.sun.com/javase/6/docs/technotes/guides/collections/index.html
[10:02:05] *** KikiJiki has joined ##java
[10:03:09] *** Vichfret has quit IRC
[10:03:17] <deufrai> cybereal: g"ive them what they need, tnot what they want" huh ?
[10:03:47] <cybereal> deufrai: no, using arrays is idiotic 90% of the time
[10:03:49] <Ragnor> kaineo: Cannot help with your own list code. (And the java.util.LinkedList code does not contain a addLast(int) method.)
[10:04:00] *** gdoko has joined ##java
[10:04:01] *** TranceControl has joined ##java
[10:04:07] <cybereal> deufrai: direct use of arrays is only useful or necessary in rare cases or when dealing with raw byte data
[10:04:26] <deufrai> which seems to be antipivo's case
[10:04:36] <cybereal> no it doesn't seem to be at all
[10:04:45] <cybereal> it seems like he needs to create N instances of some object at runtime
[10:04:48] <kaineo> Ragnor: under java.util.LinkedList it is addLast(E)
[10:04:51] <cybereal> which a List would be perfectly suited to
[10:05:05] <deufrai> cybereal: 09:41 < antipivo> deufrai: while ( ( buf = buffered_reader.readLine () ) != null ); char mass[] = buf.toCharArray();
[10:05:10] <Ragnor> kaineo: Sure. But this one does not match addLast(int) since int is not a reference type.
[10:05:25] <cybereal> deufrai: I stand corrected, i didn't see that line
[10:05:38] *** rawbk has quit IRC
[10:05:57] *** nytejade has quit IRC
[10:05:59] *** TobiaszCudnik has joined ##java
[10:06:19] *** joakimk has quit IRC
[10:06:30] <Ragnor> kaineo: But if you're actually talking about java.util.LinkedList: peekLast() is supposed to return the same value over and over since it "Retrieves, but does not remove...".
[10:06:42] * mocas morning!
[10:07:23] *** ankylose has joined ##java
[10:09:51] <kaineo> Ragnor: i meant it return the same value as peekFirst() , sorry for not being clear. oh and i just realized that i typed int ^_^ well my whole linkedlist is generic, i dont know why i typed int hehe
[10:10:15] *** nijm has joined ##java
[10:11:10] <antipivo> deufrai: You understand I create array dynamic, I do not know how count elements including my array, and a wont know how many elements in the array
[10:11:33] <antipivo> deufrai: I clearly say?
[10:11:35] <cybereal> You don't know how to find out the length of an array?
[10:11:57] *** agnul has quit IRC
[10:11:59] <cybereal> antipivo: No, very little of what you are saying is "clear" heh
[10:12:01] *** Bevin has quit IRC
[10:12:07] *** kaineo has quit IRC
[10:12:10] <deufrai> antipivo: no that's not clear
[10:12:10] <antipivo> cybereal: YES ! :)
[10:12:18] <cybereal> antipivo: myarray.length
[10:12:24] *** Bevin has joined ##java
[10:12:24] <cybereal> will tell you the length of the array
[10:12:29] <Ragnor> kaineo: I see. But if you did add just one element, it is both the first and last one. (Or did you add multiple elements?)
[10:12:54] *** KermitTheFragger has joined ##java
[10:13:29] *** agnul has joined ##java
[10:15:18] *** BW^- has joined ##java
[10:15:30] <BW^-> how do i get the connection pool going?
[10:15:38] <BW^-> for database access
[10:16:04] *** kaineo has joined ##java
[10:16:07] <pstickne> Is hibernate a dynamic ORM?
[10:16:15] <kaineo> sorry Ragnor, i got disconnected
[10:16:59] <Ragnor> Sorry, didn't notice that :)
[10:17:01] <Ragnor> kaineo: I see. But if you did add just one element, it is both the first and last one. (Or did you add multiple elements?)
[10:17:05] *** nocture has joined ##java
[10:17:16] <antipivo> cybereal: thanks, works
[10:17:32] <kaineo> Ragnor: my whole linkedlist im using generic for my methods, and the peekFirst() is displaying the same as peekLast() when i do testlist.addLast(40);
[10:18:38] <kaineo> Ragnor: then when i make a loop to addLast(i) for i=20, then outside of the loop i have addLast(40); both peekLast() and peekFirst() shows 1
[10:19:38] *** cybereal has quit IRC
[10:19:39] <Ragnor> kaineo: In that case you have to provide a test case, I guess... Compilable and runnable which shows this problem.
[10:20:42] *** Aperculum has left ##java
[10:20:58] <kaineo> Ragnor: how would u suggest i find where the problem is? it's either in the addLast or peekLast
[10:24:29] *** ldam has quit IRC
[10:24:38] *** w0lfshad3 has joined ##java
[10:24:53] *** cybereal has joined ##java
[10:24:56] <kaineo> Ragnor: concept for adding to last of the list would be: loop through this.next until this = null right? then set this = new value right?
[10:25:04] *** godling has quit IRC
[10:25:09] <Ragnor> kaineo: Sorry, such guessing is quite ineffective. Having a test case (one small class clearly showing the wrong behavior) probably allows you or us to find the problem much faster...
[10:26:35] <Ragnor> kaineo: Generally speaking: I doubt that java.util.LinkedList is buggy, so using addLast(E) is fine.
[10:26:41] <BW^-> rather, my question is, how do i get a connection pool for MySQL from my Tomcat 5.5 Servlet?
[10:26:48] <BW^-> google doesn't tell
[10:27:29] <kaineo> Ragnor: well i have a class right now that is doing a test case. all it does is simply addLast(5) addLast(40) then peekLast() it end up to show the 5 and not the 40, this is from my own linkedlist methods and not the java.util.LinkedList
[10:28:44] <spuz> BW^-: have a look at DBCP
[10:29:00] <Ragnor> kaineo: Then your own "linkedlist methods" are broken... So either paste this code or (better, IMO) just use the standard LinkedList class. :)
[10:29:10] *** ldam has joined ##java
[10:29:14] <BW^-> spuz: i know that is it,
[10:29:28] <BW^-> spuz: but how do i get it going? i have no Context tags in my server.xml
[10:29:43] <BW^-> spuz: i see http://www.java-samples.com/showtutorial.php?tutorialid=621
[10:29:49] <w0lfshad3> i got this GUI that won't refresh while i call a static method that outputs text redirected to a JTextArea until the method returns. What would the solution for this be? Running that method in a thread or refreshing at every System.out... (what is the method for that) or... ?
[10:30:23] *** bas-i has joined ##java
[10:32:23] <kaineo> Ragnor: this is a part of my homework (not all) and it's just this loop that is killing me since in theory it all sound ok.
[10:32:29] <kaineo> ~pastbin
[10:32:29] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[10:32:38] <kaineo> ~pastebin
[10:32:39] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.
[10:33:16] <kaineo> ~pastebin
[10:33:17] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[10:33:40] <kaineo> http://eugeneciurana.com/pastebin/pastebin.php?show=40679
[10:35:31] *** TranceControl has quit IRC
[10:35:32] <BW^-> spuz: can i create my own instance of the DBCP in my servlet app?
[10:36:00] <ldam> ~edt
[10:36:00] <javabot> ldam, edt is Event Dispatch Thread, the thread that drives the awt/swing gui. See http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html for a tutorial on Swing and threads, and note http://java.sun.com/developer/JDCTechTips/2005/tt0727.html#1
[10:36:07] <ldam> w0lfshad3, read about the edt
[10:37:33] *** bitshuffler has joined ##java
[10:38:17] *** pstickne has quit IRC
[10:38:25] <kaineo> Ragnor: requirement was not to use import java.util.LinkedList ^_^ or else it would've been too easy
[10:38:55] <Ragnor> kaineo: I see. Then your previous algorithm description is not really correct: if you loop until "this == null", then reassign this element, the preceeding .next value still points to "null"...
[10:39:27] <kaineo> Ragnor: http://eugeneciurana.com/pastebin/pastebin.php?show=40679
[10:39:55] <kaineo> Ragnor: i have a do-while loop to move to the end of the list, does it make sense at that point?
[10:40:09] *** nijm has quit IRC
[10:40:28] *** benny`work has joined ##java
[10:42:39] <Ragnor> kaineo: I'm not sure whether these questions should be discussed in this channel... ;)
[10:43:16] *** ilaggoodly has quit IRC
[10:43:20] <Ragnor> kaineo: I guess newNode, head, previous, etc. are fields in your class? If so: why aren't some of these local variables?
[10:48:09] *** fr0ggler has joined ##java
[10:48:54] *** blankthemuffin has quit IRC
[10:50:10] *** ycy has quit IRC
[10:50:32] *** igordcard has joined ##java
[10:51:27] *** Varox has joined ##java
[10:51:33] *** justafish has joined ##java
[10:56:18] *** Varox has quit IRC
[10:56:20] *** tynar has joined ##java
[10:57:04] <deSilva> that is a very good question, Ragnor
[10:57:35] <w0lfshad3> ok, ldam, spaced out of irc for a while there ^^, thanks
[10:58:00] <tynar> hello, I have files max. with 10 000 lines. I want to sort the files, which way would you advice. 1) Read lines into a String[] array, sort, and write to file 2) Parse file line by line, sort, and save file?
[10:59:11] <jottinger> tynar: /usr/bin/sort <input >output
[10:59:52] *** acuster has joined ##java
[11:02:10] *** kingping has quit IRC
[11:03:55] *** staykov has quit IRC
[11:03:58] *** ordex has left ##java
[11:04:43] *** azanar has quit IRC
[11:05:14] *** blankthemuffin has joined ##java
[11:05:36] *** w0lfshad3 has quit IRC
[11:09:43] *** whaley has joined ##java
[11:10:45] <whaley> bobbytek: what the hell
[11:11:23] *** magentar has joined ##java
[11:12:27] <jottinger> whaley: delayed reaction there?
[11:13:03] <whaley> jottinger: he was spamming me in pm before I closed down last night, apparently
[11:13:08] <whaley> jottinger: you are up early :D
[11:13:23] <jottinger> I know
[11:14:30] *** gdoko has quit IRC
[11:15:13] *** giaco has joined ##java
[11:15:15] *** HideousNashimoto has joined ##java
[11:17:52] <dennda> If you wanted to write a pdf reader for a mobile device, what library would you use for dealing with the pdf files? (Asking for suggestions)
[11:18:32] <dennda> should be fast and with mit/bsd/gpl style license
[11:19:36] <dennda> the library itself should be written in java, that is
[11:19:39] *** systat has quit IRC
[11:21:38] *** Bevin has quit IRC
[11:21:56] *** mengu has joined ##java
[11:22:33] *** wangyuan270 has joined ##java
[11:23:40] *** vulture has quit IRC
[11:25:05] *** armyriad has joined ##java
[11:25:28] *** wangyuan270 has quit IRC
[11:25:37] <Stephmw> g'day
[11:26:39] *** assertsmart has quit IRC
[11:28:01] *** wangyuan270 has joined ##java
[11:29:34] *** Bevin has joined ##java
[11:32:20] *** cybereal has quit IRC
[11:34:36] *** wangyuan270 has quit IRC
[11:34:37] *** jkriesten has quit IRC
[11:35:17] *** jkriesten has joined ##java
[11:35:28] *** shervin_a has joined ##java
[11:38:26] *** ycy has joined ##java
[11:39:14] *** wangyuan270 has joined ##java
[11:39:15] *** CrypticSquared has left ##java
[11:39:36] *** wangyuan270 has left ##java
[11:42:06] *** riaal has joined ##java
[11:42:54] <riaal> anyone know if it is possible to install java1.4 on a ubuntu 8.04 64bit release? (need it for a special application)
[11:43:07] *** Carnage\ has joined ##java
[11:43:41] <jottinger> riaal: should be possible to find one, sure
[11:44:29] <riaal> jottinger: any suggestion on what to google for? I have had no luck
[11:45:08] *** tynar has left ##java
[11:46:21] <jottinger> http://java.sun.com/products/archive/
[11:46:38] *** BW^- has quit IRC
[11:46:44] <jottinger> good luck
[11:46:54] <riaal> thanks a lot jottinger
[11:46:59] *** blankthemuffin has quit IRC
[11:47:00] *** mengu has quit IRC
[11:47:05] *** KU0N has quit IRC
[11:47:09] *** Resistance has joined ##java
[11:47:35] <jottinger> Should have a working linux install for 1.4.2_18
[11:48:05] <jottinger> which app are you trying to run?
[11:48:44] <andern> lets say i have a "String hostname = "123.123.123";" and then when i do "String[] host = hostname.split(".");" and then "System.out.println(host[0]);" i get ArrayIndexOutOfBoundsException,
[11:48:53] <andern> why? :P
[11:49:16] <andern> ive used split several times other places in the same class and its working perfectly
[11:49:17] <jottinger> look at the array itself
[11:49:23] <riaal> jottinger: It links me to the one I have tried :(
[11:49:27] *** RachedTN has left ##java
[11:50:00] <whaley> andern: . is a special character in regex land.
[11:50:05] <andern> ah
[11:50:08] <andern> ofc
[11:50:09] <andern> ty
[11:50:11] <andern> forgot that
[11:50:23] <jottinger> whaley: spoonfeeder :)
[11:50:30] <andern> \\ did the trick
[11:50:31] <andern> ty
[11:50:38] *** cyzie has joined ##java
[11:50:40] <jottinger> riaal: what happens when you run it? Which app?
[11:50:48] *** skoskav has quit IRC
[11:50:51] <whaley> jottinger: awww, that wasn't too bad
[11:51:00] *** blankthemuffin has joined ##java
[11:51:26] <jottinger> hey, I didn't op and boot your ass for it :)
[11:53:35] *** egydev has joined ##java
[11:53:53] *** NiallC has quit IRC
[11:54:55] *** Core-Dump has joined ##java
[11:55:26] <riaal> jottinger: its a custom app, in extracting it complains about not finding install.sfx.30452
[11:56:10] *** ilyak has joined ##java
[11:56:12] <ilyak> hi *
[11:56:20] *** arpu has quit IRC
[11:56:22] <jottinger> riaal: sorry to hear that
[11:56:23] *** wangyuan270 has joined ##java
[11:57:05] <riaal> jottinger: what does it mean? its the java1.4 binary that complains about not finding install.sfx.30452
[11:57:05] *** nocture has quit IRC
[11:57:14] *** rainmann has joined ##java
[11:57:52] <jottinger> riaal: I have no idea
[11:58:52] <egydev> hi all jackcess support only access 2000 files, Is there's any other library for access 2003 ?
[11:59:06] <jottinger> egydev: JdbcOdbc?
[11:59:13] <jottinger> google?
[11:59:24] *** nijm has joined ##java
[11:59:24] <riaal> jottinger: nothing! :S
[12:00:16] <jottinger> riaal: I don't know what that resource would be or anything about the app you're running
[12:01:14] *** musically_ut has quit IRC
[12:01:45] <riaal> jottinger: the app "just needs 1.4 release"
[12:02:09] *** musically_ut has joined ##java
[12:04:26] <riaal> jottinger: maybe 1.4 only exists in a 32 bit linux release?
[12:04:39] <jottinger> i dunno
[12:04:53] *** Tenac has quit IRC
[12:05:55] <riaal> I'm off, thanks jottinger
[12:06:01] *** riaal has quit IRC
[12:09:00] *** wangyuan270 has left ##java
[12:09:15] *** ankylose has quit IRC
[12:11:29] *** musically_ut has quit IRC
[12:13:00] *** Zakath has joined ##java
[12:13:28] *** LostMonarch has joined ##java
[12:17:33] *** Carnage\ has quit IRC
[12:21:02] *** bitcrave has quit IRC
[12:21:24] *** Junior has quit IRC
[12:26:36] *** agnul has quit IRC
[12:27:19] *** marvi has joined ##java
[12:27:55] *** skoskav has joined ##java
[12:30:02] *** wangyuan270 has joined ##java
[12:30:28] *** mengu has joined ##java
[12:33:30] *** wangyuan270 has quit IRC
[12:35:27] <antipivo> I want include myself class myclass.java in supperclass.java, how I can do this
[12:35:34] <antipivo> ?
[12:35:45] <FauxFaux> Why?
[12:35:54] <jottinger> import mypackage.myclass;
[12:35:55] *** igordcard has quit IRC
[12:36:08] <jottinger> you don't "include" java classes
[12:36:08] *** igordcard has joined ##java
[12:36:23] *** ofl_ has joined ##java
[12:38:29] *** Steffy has joined ##java
[12:39:11] *** IppatsuMan has joined ##java
[12:39:40] *** Steffy has quit IRC
[12:40:29] *** hcfd has joined ##java
[12:40:52] *** rainmann has left ##java
[12:41:04] <hcfd> Hi guys, is there a way to create objects..using keyboard input to give the object name?
[12:41:49] *** systat has joined ##java
[12:42:18] <jottinger> hcfd: Class.forName("mypackage.myclassname").newInstance();
[12:44:57] *** skoskav has quit IRC
[12:45:01] *** IRAQI` has quit IRC
[12:45:54] *** gdoko has joined ##java
[12:46:16] <ilyak> ant's sql task sucks
[12:46:38] *** MigoMipo has joined ##java
[12:47:13] *** stevenhong has quit IRC
[12:47:59] <IppatsuMan> Hi :) I have to write a daemon in C that does some low level stuff (and can't be just a library of functions because it must be a live process)and let a java application send simple command to it (and hopefully receive a result). What's the easiest way to accomplish this? I was thinking of dbus (I'm on Linux),but I hope to receive suggestions :) (I heard of JNI,but AFAIK isn't exactly easy to use)
[12:49:38] <ilyak> IppatsuMan: use pipe
[12:49:40] <ilyak> or socket
[12:50:05] *** armyriad has quit IRC
[12:51:04] *** bigjocker has joined ##java
[12:52:04] *** ircozzy has joined ##java
[12:53:41] <jottinger> oh dude, NOW I recognize hadley in shawshank
[12:53:46] *** Cylonmath has joined ##java
[12:53:52] <jottinger> it's the guy who opposed the highlander!
[12:54:00] <IppatsuMan> Right, a couple of named pipes could be a nice solution... also because I don't want to struggle too much on the C side :) Thank you
[12:54:16] *** Woflborg has joined ##java
[12:54:35] <Cylonmath> guys i wanna use the black.png in src/resource/cell_bg/black.png as my new Imageincon object , how should i give the path ?
[12:54:36] *** BW^- has joined ##java
[12:54:48] <BW^-> when i do Class.forName("org.gjt.mm.mysql.Driver").newInstance(); , it works
[12:54:56] <jottinger> getResourceAsStream()
[12:55:07] <BW^-> but when i request a org.apache.commons.dbcp.BasicDataSource to use it, i get ClassNotFoundException .
[12:55:15] *** w0lfshad3 has joined ##java
[12:56:12] *** acuster has quit IRC
[12:56:43] *** bas-i has quit IRC
[12:56:57] <BW^-> what can be wrong?
[12:57:08] <BW^-> if it was a privileges problem, it would show in the exception, no ?
[12:57:15] *** antipivo has left ##java
[12:57:16] *** HideousNashimoto has quit IRC
[12:57:19] <BW^-> Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[12:57:54] <jottinger> BW^-: maybe the mysql driver isn't in your classpath
[12:58:00] <jottinger> which would be fairly obvious
[12:58:13] <BW^-> jottinger: thing is Class.forName("org.gjt.mm.mysql.Driver").newInstance();works
[12:58:37] <BW^-> i was successful in using mysql until an hour ago, when i plugged in that BasicDataSource .
[12:58:38] *** l3ns has joined ##java
[12:58:42] <jottinger> note that the dbcp class being looked for is com.mysql.jdbc.Driver and org.gjt.mm.mysql.Driver
[12:58:50] <jottinger> when the package names change, the class itself changes too
[12:59:45] <BW^-> hm.
[12:59:51] <BW^-> could it be a privilege error?
[13:00:03] <jottinger> you're desperate for a privilege error, aren't you
[13:00:07] <BW^-> jottinger, what is your point with the last line you said?
[13:00:10] <BW^-> :)
[13:00:19] <BW^-> i don't see any other reason currently
[13:00:22] <jottinger> okay, fine: yes, it's a privilege error, it's definitely an OS problem
[13:00:32] <BW^-> hehe.
[13:00:45] <jottinger> BW^-: you realise that org.gjt.mm.mysql.Driver isn't the same as com.mysql.jdbc.Driver, right?
[13:00:47] <BW^-> well, it's just that mysql access worked until an hour ago, that's it
[13:00:51] <bigjocker> hmm
[13:00:55] <jottinger> like, different strings, different classes?
[13:01:03] <BW^-> yes
[13:01:07] <bigjocker> BW^-, you dont have the MySQL driver in your classpath
[13:01:11] <bigjocker> it's not a privilege error
[13:01:19] <bigjocker> Class.forName("org.gjt.mm.mysql.Driver").newInstance();
[13:01:24] <jottinger> when you added dbcp, did you configure it to use the RIGHT DRIVER? i.e., the org.gjt.mm.mysql.Driver, just as you have in your classpath?
[13:01:32] <BW^-> i know it's different strings, i was pasting in from different versions of my app, i experimented with boht
[13:01:33] <bigjocker> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
[13:01:33] <jottinger> Or is it using com.mysql.jdbc.Driver?
[13:01:38] <bigjocker> you are loading one class
[13:01:47] <bigjocker> the error is stating another class is missing
[13:02:01] <bigjocker> so, you are using an old version of the jar, or you are missing a class
[13:02:18] <BW^-> this is my code: public static final String mysqlDrvClass = "org.gjt.mm.mysql.Driver"; Class.forName(mysqlDrvClass).newInstance(); mysqlConnectionPool = new BasicDataSource(); mysqlConnectionPool.setDriverClassName(mysqlDrvClass); mysqlConnectionPool.setUsername(usr); mysqlConnectionPool.setPassword(pw); mysqlConnectionPool.setUrl(connectURI); mysqlConnectionPool.getConnection().close();
[13:02:47] <jottinger> ~testcase
[13:02:47] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[13:03:02] <hcfd> jottinger: So with this code - Class.forName("mypackage.myclassname").newInstance(); - can you explain a little? myclassname is my object constructor class I presume.. which refers to the string read from keyboard, or do I put the keyboard object inside the end brackets?
[13:03:07] <bigjocker> BW^-, when you are running that particular class, what error do you get? in which line?
[13:03:19] * jottinger is having a "simple classloading issue" overload
[13:04:18] *** w0lfshad3 has quit IRC
[13:04:52] <jottinger> hcfd: i think you're either massively overcomplicating things or your question was misleading
[13:04:56] <jottinger> what are you trying to do?
[13:05:03] <jottinger> And yes, I know it's homework
[13:05:07] *** w0lfshad3 has joined ##java
[13:05:37] <hcfd> jottinger: Well yes, I'm in class. Just trying to make a program more useful?
[13:05:53] <jottinger> "make a program more useful" isn't a technical problem appropriate for ##java
[13:06:01] <hcfd> jottinger: I want to create objects with names taken from keyboard input rather than being hardcoded.
[13:06:03] <jottinger> tell me what you're actually trying to DO
[13:06:11] <jottinger> hcfd: you realise that keyboard input means strings, right?
[13:06:20] <hcfd> yes
[13:06:31] <jottinger> and what type is "mypackage.myclassname"?
[13:06:51] <marvi> Sounds like a security nightmare.
[13:07:05] <jottinger> like, if you were writing code, and you had ? foo="mypackage.myname" -- what would the ? be
[13:07:48] <jottinger> Would it be Integer? Map?
[13:07:54] <jottinger> java.util.UUID?
[13:08:37] *** Copter has joined ##java
[13:08:37] <hcfd> Let's say I have a constructor class called foo
[13:08:40] <jottinger> no
[13:08:45] <jottinger> answer my damn question first
[13:08:56] <hcfd> foo newname; newname = new foo();
[13:09:18] <hcfd> Rather than hardcode newname, can I take newname as a string from the keyboard?
[13:09:23] <hcfd> (System.in)
[13:09:35] <jottinger> no, ANSWER MY DAMN QUESTION
[13:09:47] <hcfd> I don't understand it. *shrug*
[13:09:57] <jottinger> let's play the "complete this code" game
[13:10:11] <jottinger> Integer foo="mypackage.myclass"; // will this compile?
[13:10:31] <jottinger> no wonder socrates drank hemlock willingly
[13:10:34] <jottinger> idiot athenians
[13:10:58] <bigjocker> lol
[13:11:03] <jottinger> hcfd: you can even cheat, by using your IDE to see if your answer is correct
[13:11:17] *** bitshuffler has quit IRC
[13:11:47] <bigjocker> <jottinger> like, if you were writing code, and you had ? foo="mypackage.myname" -- what would the ? be <- ? could only be String or CharSequence
[13:11:55] <bigjocker> but i fail to see the point of the question
[13:12:00] <jottinger> bigjocker: sure, but I'm trying to get a horse to drink water
[13:12:05] <bigjocker> lol
[13:12:14] <jottinger> hcfd: okay, back up - you're trying to get the *reference name* from the keyboard?
[13:12:30] <hcfd> If by reference name you mean the Object name, yes.
[13:12:32] <bigjocker> i think he's trying to make java behave like python
[13:12:36] <jottinger> like you have MyClass a,b,c,d; and you want "a", "b", "c", or "d" from the keyboard?
[13:12:45] <jottinger> bigjocker: you might be right
[13:12:55] <bigjocker> and that's not possible in java
[13:13:01] <jottinger> bigjocker: not simply, no
[13:13:04] <jottinger> but it's possible :)
[13:13:06] <hcfd> I have an instantiable/constructor class... used to create objects... I want to NAME those objects from keyboard input rather than hardcode them/use a hash table. Can it be done, and if so, how?
[13:13:08] <bigjocker> java is (god bless) strictly typed
[13:13:11] <hcfd> I can't make it any more clear.
[13:13:21] <jottinger> hcfd: reflection
[13:13:29] <jottinger> hcfd: you made it more clear then than you did in the first place
[13:13:33] <hcfd> No, like if I have MyClass <insert keyboard input here>
[13:13:46] <hcfd> I guess. So you follow now. Can it be done?
[13:13:46] <jottinger> hcfd: you cannot, however, use reflection to create new names arbitrarily
[13:13:52] *** adi112358 has joined ##java
[13:13:53] <jottinger> I so sorry, massa
[13:13:58] <jottinger> can it be done? yes. By you? no.
[13:14:03] *** nekrozion has joined ##java
[13:14:09] <bigjocker> hcfd, yes: HashMap<?, ?> map = new HashMap<?, ?>(); map.put("var1", new Integer(2)); map.put("var1", new Float(1));
[13:14:10] <hcfd> Right. So it's usually done with hash tables?
[13:14:13] *** cmccormick has joined ##java
[13:14:42] <hcfd> Thanks.
[13:14:49] <hcfd> Finally. :P
[13:14:53] *** hcfd has quit IRC
[13:14:59] <bigjocker> hcfd, but i fail to see why would you want to use that ... it's not that the variable names are dynamic ... it's just that they are keys in a hash
[13:15:02] <bigjocker> lol
[13:15:11] <jottinger> I see an excellent future for him as a C# programmer
[13:15:12] <bigjocker> a bit of a looney
[13:15:26] <jottinger> where he'll whine that Java sucked because it can't do X, even though C# can't do X either
[13:16:43] *** Varox has joined ##java
[13:17:18] <reverend> C# can do anything
[13:18:16] <fr0ggler> anything?
[13:18:23] <fr0ggler> because my socks need washing
[13:18:52] <reverend> try C#
[13:19:02] <fr0ggler> really?
[13:19:23] <reverend> i guess
[13:19:38] <fr0ggler> i thought C# totally licked balls, let alone was able to wash my socks
[13:19:58] <reverend> wrong on both counts
[13:20:19] <fr0ggler> darn
[13:20:26] <fr0ggler> no washed socks for me then
[13:21:20] *** squi has quit IRC
[13:22:53] *** indeterminatus has joined ##java
[13:23:47] *** orgy` has joined ##java
[13:24:48] *** adi112358 has quit IRC
[13:25:09] *** Varox has quit IRC
[13:32:39] *** Cylonmath has quit IRC
[13:33:51] *** morkar- has joined ##java
[13:35:02] <egydev> I didn't found any FREE driver for ms access under linux , any one of you have ?
[13:35:06] *** acuster has joined ##java
[13:35:32] <reverend> its ok kinds
[13:36:15] <egydev> ?
[13:36:25] <jottinger> egydev: pay for one :)
[13:36:41] *** J0bk has joined ##java
[13:36:56] <reverend> or just don't use access on linux
[13:37:01] <egydev> jottinger: It's OpneSource Project Under GNU GPL driven Licence
[13:37:15] *** tilerendering has quit IRC
[13:37:27] <jottinger> egydev: I don't care?
[13:37:57] <egydev> reverend:This is just to explain to you why I need it FREE
[13:38:18] <reverend> that doesn't explain a need for free
[13:38:25] <jottinger> egydev: okay, you need it free, it's unavailable, good for you
[13:38:35] <jottinger> it isn't available, apparently
[13:38:35] *** Gracenotes_away has quit IRC
[13:38:38] <jottinger> oh well
[13:39:03] <egydev> easy guys
[13:39:23] <reverend> doubts
[13:39:31] *** mydrmeix has quit IRC
[13:40:05] *** egydev has left ##java
[13:42:22] *** Junior has joined ##java
[13:44:42] *** deepjoy has joined ##java
[13:48:38] <yeled> does anyone know how to modify this without dicking with the code? http://java.sun.com/javase/6/docs/api/java/net/SocketOptions.html#SO_BINDADDR
[13:48:55] <yeled> no jvm option?
[13:50:52] *** eidolon has quit IRC
[13:52:32] *** Csow has joined ##java
[13:52:35] *** flb has joined ##java
[13:52:39] <flb> l
[13:52:47] *** nijm has quit IRC
[13:52:49] *** Carnage\ has joined ##java
[13:55:01] <Csow> is there a room for applets
[13:55:08] *** brousch has joined ##java
[13:55:34] *** Woot4Moo has joined ##java
[13:55:51] *** Sitting_Wolf has joined ##java
[13:56:03] *** UT2K3 has joined ##java
[13:56:57] *** buntfalke has joined ##java
[13:58:07] *** claudio_ch has joined ##java
[13:58:09] <paulweb515> ~~ Csow applets
[13:58:09] <javabot> Check the topic, read http://javachannel.net/wiki/pmwiki.php/FAQ/Applets - Basically, we don't support them here. Try the sun forums at http://tinyurl.com/2q2hog
[13:58:13] <paulweb515> try the sun forums
[13:58:42] <Csow> ok
[14:06:51] *** Varox has joined ##java
[14:08:11] *** manfr3d has joined ##java
[14:16:16] *** waz has joined ##java
[14:17:04] *** enterneo has joined ##java
[14:19:43] <enterneo> In JPA, I have a table which one record has a field to link to its parents (which itself is a record of the same table) , the parent record themselves have parent has NULL, now when I try to create record from EntityManager for the child, the parent record is autocreated (because I am cascadepersisting), but the parent record is created 'n' number of times for equivalent 'n' child records, where I only want 1 parent record for 'n' child records
[14:20:42] *** vpit3833 has joined ##java
[14:21:24] *** Thorn has quit IRC
[14:21:48] *** FireSlash has joined ##java
[14:22:15] *** Daniel_H has joined ##java
[14:23:27] *** aceofspades19 has quit IRC
[14:24:42] *** BrutusUnix has joined ##java
[14:25:22] <BrutusUnix> in jsp to view what page a user came from I would use request.getHeader("HTTP_REFERER") right?
[14:25:39] <jottinger> you could, sure, if it's provided
[14:28:59] *** giaco has quit IRC
[14:30:11] *** bashoh has quit IRC
[14:30:32] *** teralaser has quit IRC
[14:30:40] *** enterneo has quit IRC
[14:30:45] *** Dracofodder has joined ##java
[14:31:10] *** Dracofodder has left ##java
[14:31:23] *** ohsix has joined ##java
[14:32:22] *** asap18 has joined ##java
[14:32:45] *** hrehf has joined ##java
[14:35:02] *** bitcrave has joined ##java
[14:36:56] *** gotank233 has quit IRC
[14:37:04] *** karstensrage has quit IRC
[14:37:13] *** w0lfshad3 has quit IRC
[14:38:46] *** skoskav has joined ##java
[14:39:00] *** spathi has joined ##java
[14:43:53] *** J0bk has quit IRC
[14:45:53] *** FireSlash has quit IRC
[14:46:11] *** Aquanox has joined ##java
[14:46:40] *** AdrienC has quit IRC
[14:47:02] *** J0bk has joined ##java
[14:47:31] *** dude7064 has joined ##java
[14:48:44] <dude7064> I'm trying to use RandAccessFile to read 5 characters from a file at a specific position. I use seek first to get to the right position, and then I need to read 5 characters starting at the offset specified in the seek() function
[14:48:51] <dude7064> how can I read 5 characters ?
[14:48:59] *** jdolan_ has joined ##java
[14:49:29] <dude7064> I used read(byte[]) but that reads only bytes ,, is there any other way in which I can read 5 characters right away ?
[14:50:02] *** IppatsuMan has quit IRC
[14:51:24] <dude7064> solution is new String(buffer)
[14:52:08] *** skoskav has quit IRC
[14:52:23] *** HexKey has joined ##java
[14:52:53] *** skoskav has joined ##java
[14:53:06] *** neshaug has joined ##java
[14:55:12] <HexKey> I have a HashMap<String, HashMap<String, Double>> structure, i am trying to process this into the same structure but where the in hasmaps only beign present if its value (the double) is in the top 600 hundred out fo all of the doubles. i have been tryign for 30 mins and everyhting i try is giving me trouble, is there a proper way to do this?
[14:55:28] *** MacGyverNL_ has joined ##Java
[14:56:18] *** giaco has joined ##java
[14:56:32] *** pidus has joined ##java
[14:57:48] *** dnmo has joined ##java
[14:58:24] *** Stef1 has joined ##java
[14:59:02] *** Frostix has joined ##java
[15:01:22] *** Sitting_Wolf has quit IRC
[15:01:36] * cheeser bows.
[15:02:50] <pidus> what should I look for in java api if i have some text on a JTextPane in certain font (i've been able to initialise fonts) and now i wish to continue writing in a different font.
[15:02:58] *** kane77 has joined ##java
[15:03:55] <pidus> I mean, i wish to change the value of a Font variable such that henceforth the changed font values are used for further writing.
[15:05:32] *** tissue has quit IRC
[15:05:56] <paulweb515> pidus: wouldn't you update the Style in your StyledDocument?
[15:06:29] *** nijm has joined ##java
[15:06:41] *** nijm has quit IRC
[15:06:50] *** nijm has joined ##java
[15:07:19] *** pandora-- has joined ##java
[15:07:22] *** crowbar has joined ##java
[15:08:27] <pidus> paulweb515: you might be right. I know very little of this. I'll try to look in StyledDocument.
[15:11:21] *** Greeny_ has quit IRC
[15:11:33] *** Greeny_ has joined ##java
[15:11:58] <manfr3d> HexKey: what r u trying to do again?
[15:12:20] *** Greeny_ has quit IRC
[15:12:38] *** MacGyverNL has quit IRC
[15:13:04] *** KU0N has joined ##java
[15:13:24] <HexKey> i think ive got it sorted manfr3d
[15:13:32] <HexKey> had an epiphany :D
[15:13:33] <manfr3d> oki
[15:13:52] *** Junior has quit IRC
[15:14:25] <manfr3d> i was about to say that you only need to iterate over the keys (=hashmap) of the outerhashmap and then the values (doubles) of the inner hashmap
[15:14:37] *** teralaser has joined ##java
[15:14:48] *** rollins has joined ##java
[15:15:36] <HexKey> what ive done is got all the values of the inner map, added them to an ARRaylsit, then used Collections.sort() , then ive got the vlaue of the e.g.600th
[15:16:00] <HexKey> then i will just iterate and only add to the final hasmap if the double is > the 600th value
[15:19:26] *** Frostix has quit IRC
[15:23:03] *** toader has joined ##java
[15:23:24] <toader> Hi, Could anybody help me here:http://paste.pocoo.org/show/105328/
[15:25:19] *** raphaf has joined ##java
[15:25:29] <toader> sorry, i have made a mistake. It should be http://paste.pocoo.org/show/105329/
[15:26:04] *** gannis has joined ##java
[15:26:27] <fr0ggler> have you tried not setting the buffer size in your first example?
[15:26:49] <toader> fr0ggler: not yet
[15:26:53] *** igordcard has quit IRC
[15:27:46] *** marvi has quit IRC
[15:27:54] <toader> fr0ggler: do u think it would be faster if use BufferedWriter?
[15:28:10] <fr0ggler> depends
[15:28:50] <toader> fr0ggler: why depends? for example?
[15:29:20] <fr0ggler> how are you testing the speed of writing?
[15:29:24] <Levia> toader: it might cache it all so fast that writing is going faster
[15:29:46] <fr0ggler> and it depends on the size of file vs. the size of the default buffer
[15:29:58] <Levia> yeah
[15:30:08] *** convivial has quit IRC
[15:30:19] *** Carnage\ has quit IRC
[15:30:53] <toader> fr0ggler: depends the size of file?? this writer is used to write data from Memory to CSV file
[15:31:49] *** ridoo has quit IRC
[15:32:23] <toader> Levia: how to cache it all? is it to size a bigger buffer size?
[15:32:33] *** josemoreira has joined ##java
[15:32:48] <Levia> no, you see - the stuff in memory might be smaller than your buffersize
[15:33:02] <Levia> in that case, I'm not sure though, it'll write it all at once.
[15:33:26] <Levia> but other than that - does it really matter? I mean I understand you want to figure this out but why do you want to figure this out:D
[15:33:29] *** Csow has quit IRC
[15:33:45] <fr0ggler> and again, how are you determining that one is faster than the other?
[15:33:56] *** convivial has joined ##java
[15:34:22] *** ircozzy has quit IRC
[15:34:52] <toader> fr0ggler: i have do the testing with both writer to write about 250M data from Memory into a CSV file.
[15:35:44] *** bitcrave has quit IRC
[15:35:45] <fr0ggler> *sigh*
[15:35:48] *** AMcBain has joined ##java
[15:36:40] <toader> fr0ggler: maybe i just set 168384(16M) which is not big enough
[15:36:57] <fr0ggler> are you seeing if the procedure is faster than a small dog running? slower than an ice-cream van? same speed as a washing machine rotor?
[15:37:11] <Levia> ~fr0ggler++
[15:37:12] <javabot> fr0ggler has a karma level of 1, Levia
[15:37:29] <fr0ggler> ^^
[15:38:20] *** yeled has left ##java
[15:38:35] <toader> fr0ggler: what do u want to say
[15:39:27] <fr0ggler> if (System.currentTimeMillis - lastRecordedTime) > syrupBeingTippedFromBottleAtApproximately45Degrees
[15:39:36] <Levia> toader: first of all - HOW are you determining that one is faster than the other.
[15:39:40] <Levia> second:
[15:39:46] <Levia> ~~toader aolbonics
[15:39:46] <javabot> toader, aolbonics is using unnecessary abbreviations such as 'u', 'r', 'ur', 'thx', etc. Using this language depicts you as an imbecile in the eyes of the helpful regulars in this channel, and is generally not tolerated. If you want intelligent answers, the least you can do is speak intelligently. Additionally arguing about this rule will get you nowhere except banned. Have a nice day!
[15:39:50] *** bungrudi has joined ##java
[15:40:22] <Levia> and while were at it:
[15:40:25] <Levia> ~~toader testcase
[15:40:25] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[15:41:11] *** mele- has joined ##java
[15:42:05] <toader> Levia: of course, i marke down the loading time to compare
[15:42:20] <fr0ggler> marked down?
[15:42:22] <Levia> you 'mark it down'? as in you count and write it down
[15:42:40] <fr0ggler> please tell me that's true...
[15:42:49] <fr0ggler> that would be the most awesome thing i've heard all day
[15:43:42] <fr0ggler> if (System.currentTimeMillis - lastRecordedTime) > numberOfTimesICanSpinAroundInChairUntilFinished
[15:45:49] <toader> Levia: http://paste.pocoo.org/show/105331/
[15:46:09] <Levia> fr0ggler: sorry mate ;)
[15:46:32] *** ridoo has joined ##java
[15:46:59] <Levia> toader: is it consistenly faster? as in did you try a bunch of times
[15:47:12] <fr0ggler> and what's the time discrepancy?
[15:47:18] *** mele- has quit IRC
[15:47:38] <toader> Levia: yes, it is . i have tried many times
[15:48:07] *** Aquanox has quit IRC
[15:49:22] <bungrudi> how do i register codes to be run on JSF application startup?
[15:49:53] <pr3d4t0r> Bonjour.
[15:50:54] *** pidus has quit IRC
[15:51:18] *** [[thufir]] has left ##java
[15:55:28] *** djp[mbp] has joined ##java
[15:57:53] *** bitcrave has joined ##java
[15:58:14] <HexKey> I hava an ArrayList<Double> if i do Collections.sort() on it will it order the arraylist, or will do i have to assign it to a new variable?
[15:58:28] *** Angel-SL has quit IRC
[15:58:29] *** kadams has joined ##java
[15:58:47] <jottinger> what do the docs say?
[15:59:14] <HexKey> it doesnt return anything
[15:59:34] <HexKey> bah its in ascending
[15:59:45] <cheeser> i wonder how to fix that...
[15:59:45] <HexKey> problem solved
[15:59:59] *** Frostix has joined ##java
[16:00:01] <HexKey> i wodnered why it didnt look right
[16:00:05] *** gnufied has joined ##java
[16:00:13] *** tissue has joined ##java
[16:00:15] <gnufied> is there any console version of jconsole ?
[16:00:16] *** bungrudi has quit IRC
[16:00:24] *** firen has quit IRC
[16:00:37] *** bungrudi has joined ##java
[16:02:05] *** acuster has quit IRC
[16:03:05] *** bitshuffler has joined ##java
[16:03:56] *** Aquanox has joined ##java
[16:04:03] <jottinger> gnufied: you mean for JMX?
[16:04:36] <gnufied> jottinger, yes. although I am just discovering the difference that jconsole is just a frontend.
[16:04:48] *** DeadEd has quit IRC
[16:04:58] <jottinger> jmanage says it's console-mode
[16:05:05] <jottinger> the... difference?
[16:05:10] <jottinger> difference from what?
[16:05:36] *** cemerick has joined ##java
[16:06:02] *** Hink has joined ##java
[16:06:54] *** cemerick has quit IRC
[16:07:20] *** ofl_ has quit IRC
[16:07:46] *** andfr672 has quit IRC
[16:09:01] *** cemerick has joined ##java
[16:09:05] <cemerick> are there any demos around that show a javafx app gracefully handling thousands of distinct elements on the scenegraph? I'd like to use it to do some dynamic data visualization, and responsiveness is key.
[16:09:34] <jottinger> cemerick: at JavaOne, they showed it rotating a number of videos around a sphere
[16:09:36] <ttmrichter> When I install the Java Application Platform SDK 5-07, I get unusual exceptions right out of the box when firing up the domain. Is this expected behaviour?
[16:10:31] <jottinger> the... domain?
[16:10:41] <jottinger> which app platform are you talking about?
[16:10:54] <cemerick> jottinger: OK, but that's 6, or maybe 12 elements showcasing media. I need to render graphs of thousands of nodes.
[16:11:31] <ttmrichter> jottinger: asadmin start-domain domain1
[16:11:37] <ttmrichter> The default domain, I meant to type.
[16:11:39] *** amitev has quit IRC
[16:12:32] <jottinger> cemerick: er... when I said "a number" i meant "dozens"
[16:12:45] <jottinger> and shearing videos around a sphere is pretty heavy work
[16:13:33] <jottinger> ttmrichter: that's the j2ee SDK, then
[16:13:38] <jottinger> what exceptions?
[16:13:39] <ttmrichter> This is the startup sequence when I fire up Glassfish for the first time after a clean install: http://pastebin.com/m7cefca12
[16:13:52] *** zelnick has joined ##java
[16:14:01] * ttmrichter smiles and points at the pastebin link.
[16:14:34] <cemerick> jottinger: I'll check it out -- but in general, I assume anything media related is being accelerated natively. Displaying thousands of discrete elements stresses the 2D and gc bottlenecks a lot more than media.
[16:14:59] <jottinger> sure
[16:15:00] *** ilyak has quit IRC
[16:15:07] <jottinger> that I'd have no idea about
[16:17:57] *** ahmed-araby has joined ##java
[16:18:42] <ahmed-araby> hi all I've string "param1 param2 param3" and I want to get it as array ?
[16:18:59] *** tom17bombadil_ has quit IRC
[16:19:01] <cheeser> do you?
[16:19:04] <ahmed-araby> how to get the index of the spaces " " ?
[16:19:16] <cheeser> ~~ ahmed-araby javadoc String
[16:19:19] <javabot> ahmed-araby: http://is.gd/6UoM [java.lang.String]; http://is.gd/iaWp [javax.print.DocFlavor.STRING]; http://is.gd/iaWp [javax.print.DocFlavor.STRING]
[16:20:36] *** acuster has joined ##java
[16:22:10] *** nijm has quit IRC
[16:22:43] <jottinger> why not just split(" ")?
[16:22:45] *** CandleCandle has joined ##java
[16:23:17] *** Resistance has quit IRC
[16:23:23] *** scott_w has joined ##java
[16:24:27] *** Carnage\ has joined ##java
[16:24:47] <ahmed-araby> jottinger, I didn't see It , I'm still training
[16:24:53] <ahmed-araby> jottinger,Thanks
[16:25:13] <CandleCandle> So, attaching debuggers to java web start: a) I've managed to attach a debugger, however, it seems that the "javaws" starts a new java process with your actual webstart app in it. Making the initial attached debugger useless.
[16:25:22] *** bungrudi has quit IRC
[16:25:35] <CandleCandle> so, b) how do I get the debugger attached to the real webstart app?
[16:26:29] *** isr` has joined ##java
[16:27:17] *** bungrudi has joined ##java
[16:27:36] *** WielkiSzu has joined ##java
[16:27:44] <isr`> can member fields have the none (package) modifier so that the field is only accessible in its own package
[16:28:02] *** raphaf has left ##java
[16:28:03] *** kungen has quit IRC
[16:28:08] *** ridoo has quit IRC
[16:28:48] *** WielkiSzu has quit IRC
[16:28:57] *** WielkiSzu has joined ##java
[16:29:20] *** WielkiSzu has quit IRC
[16:29:43] <Levia> Can anyone have a look at this please? http://excessivedarkness.org/out-1.ogv If you can't play the video - the frame seems to increase in height so much that you can't see it anymore. I have no clue what's happening and why that is happening, it only seems to occur on Linux. On Mac OSX, and Windows it works fine. I wrote a test case but the problem didn't occur there, I'm looking into another test case tomorrow, since I don't have much time today - just
[16:29:43] <Levia> checking if you have any ideas :)
[16:30:33] <cheeser> ~tech support
[16:30:33] <javabot> Hello, ##java is not a technical support channel for your Java apps or virtual machines, it is a development enthusiast channel which prefers to receive questions and discussion on the topic of programming with the Java language. Please consider seeking help with the vendor of your software if you can't figure out how to use it.
[16:34:47] *** morkar- has quit IRC
[16:36:21] *** euvitudo has joined ##java
[16:36:47] *** morkar- has joined ##java
[16:38:53] *** codethief has joined ##java
[16:39:23] *** aceofspades19 has joined ##java
[16:42:55] *** kab has joined ##java
[16:43:29] *** eventualbuddha has joined ##java
[16:44:43] *** BlindHunter has joined ##java
[16:44:51] *** eventualbuddha has quit IRC
[16:45:43] <bungrudi> what is <div> equavalent in JSF? i mean a non-rendering generic container that can be used to host a component tree
[16:45:43] <bungrudi> ?
[16:46:15] <jottinger> panelgroup
[16:46:15] *** le_biloute has quit IRC
[16:47:24] *** ahmed-araby has left ##java
[16:48:27] *** bungrudi has quit IRC
[16:48:34] *** igors has joined ##java
[16:49:24] *** bungrudi has joined ##java
[16:49:29] <ojacobson> jottinger, you scum! How've you been?
[16:49:32] <ojacobson> :)
[16:51:19] <igors> hello, i'd like to ask a question related to Java on OS X. I have a Intel MacBook 32bits, As I can see the default java for os x is J2SE 5. Anybody uses Java in OS X? What's the best way to install Java SE 6?
[16:51:32] <cheeser> install the update. done.
[16:52:17] <ojacobson> Install the update, prioritize java 6 over java 5 in the java preferences, done.
[16:52:32] <igors> cheeser, update 2? http://support.apple.com/kb/HT2733, it says: " Java SE 6 is available on 64-bit, Intel-based Macs only"
[16:52:34] <ojacobson> It won't be used for JWS or applets, due to being 64-bit only on OS X
[16:52:38] *** hyppias has joined ##java
[16:52:38] <igors> hum, ok
[16:52:44] <ojacobson> But standalone java apps will use it
[16:52:48] <igors> I'm just downloading, I'll try it
[16:52:51] <ojacobson> (eclipse, command-line crud, etc etc etc)
[16:52:56] <ojacobson> it should show up in Software Update
[16:53:02] <ojacobson> if it's not showing up there, it may already be installed
[16:53:28] *** Resistance has joined ##java
[16:53:29] <isr`> so if i have a copy constructor in an abstract base class, and a copy constructor in a class that extends it, the super class copy constructor is called before the extending class copy constructor right?
[16:53:49] *** BW^- has quit IRC
[16:54:03] <ojacobson> isr`: there's nothing magic about copy constructors in java
[16:54:10] <ojacobson> the same rules about constructor execution apply
[16:54:12] <ojacobson> so "yes"
[16:54:16] <isr`> okay.
[16:54:18] <isr`> just making sure
[16:54:50] *** tactics has quit IRC
[16:55:30] *** bungrudi has quit IRC
[16:55:31] *** gdoko has quit IRC
[16:56:59] <cheeser> ~tias
[16:57:00] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[16:57:27] *** tactics has joined ##java
[16:57:49] *** bungrudi has joined ##java
[16:59:09] *** ankylose has joined ##java
[16:59:27] *** romanb has joined ##java
[16:59:37] *** bungrudi has quit IRC
[16:59:41] *** Absolute0 has joined ##java
[16:59:58] <Absolute0> Is the size of a null reference equal to an int?
[17:00:29] <Absolute0> Is there any type that takes up no space unless initialized?
[17:00:42] <vol> no, I don't believe so.
[17:01:28] *** EnderMB has joined ##java
[17:03:28] *** dnmo has quit IRC
[17:05:13] <dmlloyd> a null reference has the same size as any reference value
[17:05:21] *** deepjoy has quit IRC
[17:05:39] <Absolute0> right
[17:05:50] <dmlloyd> there's no object corresponding to it though, if that's what you're getting at.
[17:05:51] <Absolute0> i decided to use a hash to cache values :)
[17:06:06] <Absolute0> I was thinking of doing Integer = null
[17:06:10] <Absolute0> and only intialize it
[17:06:15] <Absolute0> but thats the same as having ints
[17:06:19] <Absolute0> which would be expensive
[17:06:25] <Absolute0> so i decided to cache using a hash
[17:06:26] *** Varox has quit IRC
[17:06:32] <cheeser> ~enter
[17:06:32] <javabot> cheeser, enter is not punctuation. Please don't press return until you've finished typing your question. It is annoying to see multiple lines for one question, and hard to follow.
[17:06:33] <dmlloyd> I can tell you this. You can count on a reference being *no smaller* than an int.
[17:06:39] *** indeterminatus has quit IRC
[17:06:51] <Absolute0> dmlloyd: My input size is over a million :)
[17:07:00] * dmlloyd shrugs
[17:07:20] <cheeser> i wouldn't use Integer then
[17:07:33] <Absolute0> thats a million ints!
[17:07:45] <Absolute0> A hash table is more effecient
[17:07:47] <Apocalisp> A million ints are what, a couple of MBs?
[17:08:14] <Absolute0> Apocalisp: those ints add up, especially when you process them
[17:08:29] <Apocalisp> smells like premature optimisation to me
[17:08:37] <cheeser> it's not a million ints. it's a million Integers
[17:08:51] <Absolute0> which have the same size as int
[17:08:57] <cheeser> no.
[17:09:04] <Absolute0> no?
[17:09:05] <cheeser> the *reference* has teh same saize as an int
[17:09:11] <cheeser> the object is bigger
[17:09:16] <Absolute0> right.
[17:09:35] <Absolute0> Integer i = null; == int i = 5;
[17:10:13] <toader> fr0ggler: hi, are you still there? about my question http://paste.pocoo.org/show/105331/, if i didn't set the size 16384 in BufferedWriter, it will be faster than without BufferWriter. So, what is the default buffer size in BufferedWriter?
[17:10:16] <Apocalisp> Either way, a million integers is not a large data set in 2009.
[17:10:16] *** le_biloute has joined ##java
[17:13:20] <fr0ggler> toader: no idea :D
[17:13:28] *** Absolute0 has left ##java
[17:13:47] <fr0ggler> toader, i thought specifying a buffer size was a bad idea though...
[17:14:12] <EnderMB> ~pastebin
[17:14:12] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.
[17:14:20] <toader> fr0ggler: why bad idea? if i specify a big buffer size, wont it be faster?
[17:14:29] *** hnr has joined ##java
[17:14:43] <fr0ggler> toader, not necessarily - i thought we went over this earlier :)
[17:15:02] *** ankylose has quit IRC
[17:15:38] *** w0lfshad3 has joined ##java
[17:15:53] <toader> fr0ggler: do you know if there is efficient CSV writer for recommendation?
[17:16:03] <cheeser> ~hypercsv
[17:16:03] <javabot> cheeser, I have no idea what hypercsv is.
[17:16:08] <cheeser> ~supercsv
[17:16:08] <javabot> CSV stands for "Comma Separated Values", and is a file format that is commonly used by certain spreadsheet programs. Parse CSV files with Super CSV (see http://supercsv.sourceforge.net/ for more info).
[17:16:13] <cheeser> there
[17:19:30] <toader> cheeser: thanks a lot
[17:20:06] <w0lfshad3> problem: i got this class called "test2" http://pastebin.com/d346dbcb1 that doesn't call class "test" http://pastebin.com/d7eb09ada from same package, but, when runned it is like i run "test"
[17:20:14] <w0lfshad3> i tried cleaning the project but no use
[17:20:35] <cheeser> sure
[17:21:04] *** vix85 has joined ##java
[17:21:26] *** KU0N has quit IRC
[17:22:55] <w0lfshad3> actually i call Test()... i must be getting tired sorry
[17:24:39] *** yobo2 has joined ##java
[17:24:44] *** ahmed-araby has joined ##java
[17:25:30] <yobo2> is there a way to hide the visibility of the fields of a nested class from the class it's nested in? i tried declaring them as private, but i can still access them from the outer class.
[17:25:41] <cheeser> no, there isn't
[17:25:55] <cheeser> well, is the inner class static?
[17:26:04] *** bigip has quit IRC
[17:26:27] *** le_biloute has quit IRC
[17:27:43] <dmlloyd> yobo2: you don't normally have a reason to do that. You ARE the one writing the outer class after all.
[17:27:47] <dmlloyd> ~~ yobo2 private
[17:27:48] <javabot> yobo2, private is a keyword representing one of the four access levels in Java. A private member is visible only to the enclosing class, or to any other classes defined within the same file. Instance fields should generally always be private. See "~access level" for more information.
[17:27:59] <yobo2> thanks
[17:28:43] *** xabbuh has quit IRC
[17:28:48] <dmlloyd> think of private as "private to file", whereas default is "private to package".
[17:29:02] *** Yustme has joined ##java
[17:29:17] <yobo2> dmlloyd: i have had to remind the same developer not to access the fields of that class directly about 4 times in the past month; was hoping i could just change the code and not have to deal with it any more.
[17:29:33] *** slango has quit IRC
[17:29:59] *** dpy has quit IRC
[17:30:06] *** popcornPanic has joined ##java
[17:30:15] *** slango has joined ##java
[17:30:29] *** deSilva has quit IRC
[17:30:32] *** Ivellina has joined ##java
[17:30:43] *** kane77 has quit IRC
[17:31:13] *** kab has quit IRC
[17:31:34] *** justafish has quit IRC
[17:33:57] <cemerick> jottinger: this is promising, actually (many, many nodes being rendered in real time): http://javafx.com/samples/SmokeParticles/index.html
[17:34:49] *** shervin_a has quit IRC
[17:35:10] <EnderMB> Hey all, a small question on variable naming. If you've got two similar variables how's the best way to name them? Here's an example where I'm using some 'throwaway' variables - http://www.eugeneciurana.com/pastebin/pastebin.php?show=40687
[17:36:11] <letfunbegin> EnderMB: I certainly wouldn't name the argument to a method just "b"
[17:36:32] *** kab has joined ##java
[17:36:35] *** karstensrage has joined ##java
[17:37:00] <EnderMB> letfunbegin: Definitely. I'm just a bit stuck on ideas (i.e. String s, int i, boolean b) and my copy of Code Complete is stuck at work...
[17:37:31] *** marvi has joined ##java
[17:37:47] <cheeser> even throw away variables have meaning and a context. name them appropriately
[17:38:01] *** ldam has quit IRC
[17:38:19] <letfunbegin> EnderMB: I usually give them the name I think they'll be used for. if it turns out that's a bit off later, I can always refactor/rename
[17:38:27] * cheeser nods.
[17:38:58] *** popcornPanic has quit IRC
[17:39:38] *** radixor has quit IRC
[17:40:09] <EnderMB> The thing is, for example, I've already given one of my JComboBoxes a decent name (numberOfGuesses) and now I need to pass a variable with the contents from that field into a method. What should I name the int variable if I've already given numberOfGuesses to the JComboBox?
[17:40:10] *** teralaser has quit IRC
[17:40:13] *** radixor has joined ##java
[17:40:29] <cheeser> dear lord.
[17:40:47] <cheeser> rename the combox box (guessesBox) then use numberOfGuess for the int
[17:41:06] <EnderMB> Is that not confusing?
[17:41:06] <cheeser> you could actually be writing code rather than fapping over variable names, though.
[17:41:11] <fr0ggler> lol
[17:41:14] <fr0ggler> fapping
[17:41:14] <cheeser> so pick something else
[17:41:19] <cheeser> hell, dude.
[17:41:36] <EnderMB> Code's all finished, just got variable names to go then I'm literally done with it.
[17:41:41] <fr0ggler> ~cheeser++
[17:41:41] <javabot> cheeser has a karma level of 616, fr0ggler
[17:41:53] <cheeser> EnderMB: no, you're done *now*
[17:42:08] *** Odin79 has joined ##java
[17:42:37] <EnderMB> Okay, if you say it isn't going to confuse others then I'll go along with it.
[17:43:15] <letfunbegin> EnderMB: maybe concentrate on the javadoc or whatever else you're using for documentation
[17:43:26] *** LouisJB1 has quit IRC
[17:43:49] <EnderMB> Of course, for conformity all the other boxes will have to change as well, which kinda answers the question.
[17:44:03] <EnderMB> Anyway, thank you!
[17:44:03] <fr0ggler> and if you spent less time on variable-name-fappage, you'd have more time for self-gratification
[17:44:09] *** le_biloute has joined ##java
[17:44:09] <fr0ggler> just a thought
[17:44:38] <cheeser> double entendre++
[17:45:35] *** cheeser sets mode: +b *!*n=b@63.250.103.*
[17:45:35] *** bobbytek was kicked by cheeser (cheeser)
[17:45:44] <EnderMB> I'll probably wait until I get home, with masturbation being banned in most workplaces and all...
[17:46:20] *** rlubke has joined ##java
[17:46:25] <EnderMB> Tempting though, since Scrubs is on in the next room with Heather Graham. Gotta love Heather Graham.
[17:46:36] *** LordMetroid has joined ##Java
[17:47:43] *** EnderMB has quit IRC
[17:48:39] <fr0ggler> yeah you better quit. filthy little monkey.
[17:48:42] *** DragonLord- has joined ##java
[17:51:37] *** eventualbuddha has joined ##java
[17:52:28] *** igors has quit IRC
[17:54:17] *** cyth has joined ##java
[17:54:28] *** DeadEd has joined ##java
[17:55:22] *** Ven]n has joined ##java
[17:55:24] *** LordMetroid has quit IRC
[17:55:24] *** le_biloute has quit IRC
[17:55:50] <Ven]n> probably a stupid question.. but is there a way to create a new JFrame instance with setVisible(false)? I dont want it to show the new JFrame that millisecond :p
[17:57:18] *** ahmed-araby has left ##java
[17:57:42] *** TheCoffeMaker has joined ##java
[17:57:43] *** vix85 has quit IRC
[17:58:12] <TheCoffeMaker> Hi all, some knows where is the old BEA's dev2dev code libraries now in the new Oracle's "dev2dev" site?
[17:58:18] *** grobot has quit IRC
[17:58:21] <TheCoffeMaker> I need to upgrade an in-house framework (not maintained anymore since 10 years ago) to weblogic 9.2 and the dbKona has disappear from libraries ... someone knows where I can find the source code for dbkona ?
[17:58:47] *** UT2K3 has quit IRC
[17:59:44] *** claudio_ch has quit IRC
[17:59:48] *** UT2K3 has joined ##java
[18:00:13] *** ilaggoodly has joined ##java
[18:00:18] *** ttmrichter has quit IRC
[18:02:10] *** fr0ggler has quit IRC
[18:03:29] *** reqqit has joined ##java
[18:04:44] *** rdancer has quit IRC
[18:05:01] *** Bevin has quit IRC
[18:05:03] *** niet has joined ##java
[18:05:58] *** igors has joined ##java
[18:06:40] *** arpu has joined ##java
[18:07:27] *** GodTodd has quit IRC
[18:07:57] *** le_biloute has joined ##java
[18:08:23] *** toader has quit IRC
[18:08:58] <igors> hello. I've installed the Java update for mac os, but "java -version" still gives me java version "1.5.0_16". Is it really the last version for os x?
[18:09:37] <cheeser> look in the control panel to set your preferences
[18:09:55] *** w0lfshad3 has quit IRC
[18:11:52] <marvi> igors: For !Leopard || !Intel 5.0 is the latest.
[18:12:48] <marvi> Intel + Leopard has 1.6.0_07
[18:13:06] *** reqqit has quit IRC
[18:13:17] *** benny`work has quit IRC
[18:15:13] *** casmo has joined ##java
[18:15:42] *** v4vijayakumar has joined ##java
[18:15:43] *** ffgeek200 has joined ##java
[18:16:22] *** igors has quit IRC
[18:17:08] *** le_biloute has quit IRC
[18:17:13] <isr`> could someone help me with something
[18:17:13] <isr`> http://pastebin.com/d67ad084a
[18:17:19] *** asap18 has quit IRC
[18:17:19] <isr`> i highlighted the lines
[18:17:32] <v4vijayakumar> can this string "a=a1,b="b1,b2",c=c1" can be split into 3 strings like, "a=a1" "b="b1,b2"" and "c=c1" using stringtokenizer
[18:17:39] <isr`> so i have a HashMap<String, Object> to hold menu items
[18:17:52] *** LouisJB has joined ##java
[18:17:53] <isr`> but each of the highlighted if statements fail
[18:18:05] *** blankthemuffin has quit IRC
[18:18:09] <isr`> and i cant figure out why, because my actionPerformed method works the same way, and that works fine
[18:18:11] <vol> v4vijayakumar: not very easily, because of the b1,b2 bit, probably.
[18:18:23] <vol> isr`: have you stepped through with a debugger?
[18:18:30] *** ldam has joined ##java
[18:19:08] <v4vijayakumar> vol: yeah, that part is tricky :)
[18:19:19] <isr`> vol: yeah
[18:19:24] <isr`> it just fails at each of those.
[18:19:42] <isr`> ie: resolves to false.
[18:19:56] *** peyman_t has joined ##java
[18:20:00] *** Stef1 has left ##java
[18:20:19] *** le_biloute has joined ##java
[18:21:13] <vol> I don't know, see what it actually is then, and check the contents of menuItems.
[18:22:03] *** blankthemuffin has joined ##java
[18:23:55] *** le_biloute has quit IRC
[18:23:58] <isr`> oh woops
[18:24:01] <isr`> just noticed something bad
[18:24:11] *** vrwttnmtu has joined ##java
[18:24:52] <isr`> yea, line 44, forgot to change that constant to the parameter label
[18:28:19] <CandleCandle> Why would a signed webstart app die a nasty death (all permissions), where as the same app unsigned and no permissions work just fine? (but with some "are you sure you want to connect here" dialogues)
[18:29:11] *** TobiaszCudnik has quit IRC
[18:33:25] *** le_biloute has joined ##java
[18:33:52] *** AMcBain is now known as tryagain
[18:33:57] *** tryagain is now known as AMcBain
[18:35:10] *** appleguru has joined ##java
[18:35:38] <appleguru> anyone know why affinetransform's scale also translfates?
[18:35:44] <appleguru> and how i can avoid it?
[18:37:32] *** monstrfolk has quit IRC
[18:37:51] *** Goundy has joined ##java
[18:38:41] *** yobo2 has quit IRC
[18:39:12] <Ven]n> to the right in this picture: http://bildr.no/view/353930 .. "Source:" is cut short. how can I make the text start on a new line? all the source, fps, size, etc, is one JTextArea.
[18:40:09] <Ven]n> do I need to have source separated in a JTextField instead?
[18:43:45] <ffgeek200> just to confirm I'm not crazy, does BlockingQueue.size() give you the # of elements in the queue or the max number of elements? Pretty sure it's the # of elements.
[18:44:12] <cheeser> ~javadoc BlockingQueue.size(*)
[18:44:14] <javabot> I don't know of any documentation for BlockingQueue.size(*)
[18:44:35] <ffgeek200> http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/BlockingQueue.html is the javadoc
[18:45:14] <cheeser> "Returns the number of elements in this collection."
[18:45:18] <cheeser> ~be api barbie
[18:45:18] <javabot> <barbie>Javadoc is *hard*</barbie>
[18:45:22] *** KikiJiki has quit IRC
[18:46:00] <ffgeek200> Thanks, you're funny... looking
[18:46:32] *** lem has joined ##java
[18:48:57] *** v4vijayakumar has left ##java
[18:49:06] <EdwardIII> ~be cheeser barbie
[18:49:07] <javabot> EdwardIII, I have no idea what be cheeser barbie is.
[18:49:20] *** le_biloute has quit IRC
[18:49:29] <EdwardIII> probably not very tasty anyway
[18:50:02] <EdwardIII> so how come 'no applets' is one of the channel rules?
[18:50:09] <cheeser> ~applets
[18:50:09] <javabot> Check the topic, read http://javachannel.net/wiki/pmwiki.php/FAQ/Applets - Basically, we don't support them here. Try the sun forums at http://tinyurl.com/2q2hog
[18:50:27] *** warriorforgod has quit IRC
[18:51:54] *** Mortomes has joined ##java
[18:54:00] <EdwardIII> ok so this basically says use flash don't use java applets... to summarise, ##java thinks applets are crap due to browser/windows support and therefore should just be dropped completely?
[18:54:08] <EdwardIII> that about right?
[18:54:23] <marvi> EdwardIII: Don't be a troll.
[18:54:42] <EdwardIII> i'm not being a troll marvi, i'm just curious - have you read the doc?
[18:55:02] *** genesiss has quit IRC
[18:55:05] *** UT2K3 has quit IRC
[18:55:14] <dmlloyd> EdwardIII: yup
[18:55:41] *** Jonny_ has joined ##java
[18:56:03] *** mdmkolbe has joined ##java
[18:56:52] *** genesiss has joined ##java
[18:57:27] *** nijm has joined ##java
[18:58:06] <mdmkolbe> Is there a Java tool that will strip all the bodies from the methods in a *.java file? (I'm writing an assignment for students and I have written a solution file. I'd like to provide the skeliton code to them without including the function bodies.)
[18:58:40] <EdwardIII> the whole MSJVM thing was really gay is my conclusion from all of this
[18:58:43] <marvi> mdmkolbe: Extract interface in you IDE. Then implement it in a new class.
[18:59:15] * mdmkolbe 's IDE is Emacs
[18:59:23] *** jcp has joined ##java
[18:59:54] <marvi> mdmkolbe: Then I don't know. I couldn't live without refactoring support in my IDE.
[19:00:19] *** valcker has quit IRC
[19:00:34] <mdmkolbe> marvi: what IDE you use?
[19:00:54] *** z1pp3r has joined ##java
[19:01:09] <marvi> mdmkolbe: Netbeans. But the same trick would work in Eclipse. Both have "extract interface".
[19:01:20] *** ankylose has joined ##java
[19:01:24] <z1pp3r> In eclipse on windows xp (works fine in ubuntu), when i create a new plug-in project (OSGi equinox) i get the following errors when running the "Hello World Bundle" : http://pastebin.com/d5baf1de - Any ideas what could be wrong?
[19:01:32] * mdmkolbe pops open eclipse
[19:02:04] <marvi> mdmkolbe: Actually, you could just extract the interface and hand it to them. Good for them to learn about that.
[19:02:41] <marvi> mdmkolbe: note that it will only extract the public methods.
[19:02:45] <z1pp3r> Also, it seems like 'ss' returns a lot more results (more than osgi itself) than you'd expect
[19:03:11] *** k0p has joined ##java
[19:03:23] <k0p> What means: AClass.class?
[19:04:19] *** Gracenotes has joined ##java
[19:04:45] *** njan has left ##java
[19:05:20] <appleguru> anyone have any clue how to scale using affinetransform without translating??
[19:05:24] *** Yustme has quit IRC
[19:05:37] <cheeser> i don't.
[19:06:03] *** Copter has quit IRC
[19:06:18] *** igors has joined ##java
[19:06:19] <appleguru> reductions translate up and to the left, enlargments down and to the right
[19:08:12] *** Seldon75 has joined ##java
[19:08:33] <Seldon75> it seems like iBatis is a simpler version of Hibernate with less functionality - would this be correct?
[19:09:30] *** pstickne has joined ##java
[19:09:50] *** AskHL has quit IRC
[19:09:52] <cheeser> probably not.
[19:10:00] *** AskHL has joined ##java
[19:10:02] <cheeser> different goals, etc
[19:11:16] *** musically_ut has joined ##java
[19:11:35] <Seldon75> hmm
[19:12:24] <Seldon75> ibatis = simplistic o/r mapping via XML. Hibernate all-singing-all-dancing o/r mapping with transactions, etc
[19:12:29] <Seldon75> no?
[19:12:43] *** KermitTheFragger has quit IRC
[19:13:08] <igors> I've downloaded Mysql Connector/J. I've created a symlink from /Users/igor/Library/Java/mysql-connector-java-5.1.7-bin.jar to this file, where I've extracted it. The file /System/Library/Java/JavaConfig.plist sayd $HOME/Library/Java is on my DefaultClasspath. But i still get this error: http://dpaste.com/1462/
[19:13:11] *** le_biloute has joined ##java
[19:13:19] *** Jonny_ is now known as Jonny
[19:14:18] *** romanb has quit IRC
[19:14:36] *** romanb has joined ##java
[19:15:27] *** tkr has joined ##java
[19:17:17] *** timte has joined ##java
[19:17:59] *** Seldon75 has quit IRC
[19:18:51] *** Goundy has quit IRC
[19:20:34] *** aknm has quit IRC
[19:20:42] <ffgeek200> I'm not sure how blocking queue is faster, but when I used that instead of my own custom blocking queue, performance shot way up. That's pretty impressive.
[19:22:17] *** aknm has joined ##java
[19:25:34] *** popcornPanic has joined ##java
[19:25:56] *** vezzoni has joined ##java
[19:26:10] *** eventualbuddha has quit IRC
[19:26:23] *** eventualbuddha has joined ##java
[19:26:30] *** AskHL has quit IRC
[19:27:48] <tieTYT> anyone here ever use testng?
[19:28:03] <tieTYT> i've noticed that it swollows up stack traces if they occur in a @BeforeMethod
[19:28:11] <tieTYT> I have to wrap the method with a try/catch to actuallly see what went wrong
[19:28:22] <tieTYT> and i'm wondering if others have to do that
[19:28:28] *** isr` has left ##java
[19:32:44] *** niet has left ##java
[19:33:37] *** developerhealey has joined ##java
[19:34:08] <developerhealey> no applets?
[19:34:12] *** magentar has quit IRC
[19:34:33] <dangertools> no applets
[19:35:07] <developerhealey> where is applet talk
[19:36:17] *** nijm has quit IRC
[19:36:19] <dangertools> sun forums
[19:36:35] *** nijm has joined ##java
[19:37:21] *** genesiss has quit IRC
[19:38:28] <tieTYT> hm
[19:38:34] <tieTYT> i never knew that the super keyword can be evil
[19:38:43] <tieTYT> if a base class says super.something();
[19:38:47] *** Varox has joined ##java
[19:38:48] <marvi> developerhealey: or for modern applets maybe #javafx
[19:38:58] <tieTYT> and a child extends the base class, that base method will still call the base class
[19:39:20] <tieTYT> that makes sense but I often felt like super. could be used to improve readability. I gotta make sure I really really want it now
[19:39:40] *** genesiss has joined ##java
[19:40:59] *** BeholdMyGlory has joined ##java
[19:41:08] <letfunbegin> also the super. invocations indicate you're using inheritance, which some might consider evil :)
[19:42:15] *** boringwall has joined ##java
[19:42:24] *** lem has quit IRC
[19:42:33] <BeholdMyGlory> is it possible at all to make Swing apps use QT widgets instead of GTK widgets when setting the look and feel to make the apps look good on linux?
[19:43:33] *** amnesiac has joined ##java
[19:43:57] <dmlloyd> you could google for "qt laf java swing"
[19:44:01] <cheeser> swing doesn't use gtk widgets
[19:44:05] <cheeser> it mimics them
[19:44:29] <z1pp3r> In eclipse on windows xp (works fine in ubuntu), when i create a new plug-in project (OSGi equinox) i get the following errors when running the "Hello World Bundle" : http://pastebin.com/d5baf1de - Any ideas what could be wrong? Also, 'ss' returns ~175 results. On ubuntu i get only 1, osgi itself.
[19:44:38] *** igors has quit IRC
[19:48:07] *** Craghag has joined ##java
[19:49:38] *** LadySerena has quit IRC
[19:49:48] <Craghag> Hello, where the Java Web Start stores the JARS?? I'm passing a war file as a resource and I need to open the war from my application and I don't know the location of this war :S
[19:49:51] <Craghag> can someone help me?
[19:50:30] <dangertools> BeholdMyGlory: you could use QtJambi instead
[19:51:00] <dangertools> Craghag: lookup the cache in your java settings - usually the location is not known to the app
[19:53:04] <tieTYT> first line of this constructor: super();
[19:53:21] *** ubunturos has joined ##java
[19:54:55] <BeholdMyGlory> dangertools: how different is QtJambi from Swing?
[19:55:09] <letfunbegin> BeholdMyGlory: VERY different
[19:56:19] *** Goundy has joined ##java
[19:56:25] <Craghag> dangertools: what do you mean with ' usually the location is not known to the app ' ?
[19:56:34] *** manfr3d has quit IRC
[19:56:56] *** ubunturos has left ##java
[19:57:39] <BeholdMyGlory> letfunbegin: so I have to learn layout and all that all over again? hm.. very well. I guess I'll have a look at it. But am I right in guessing it's not offically supported by Sun?
[19:58:40] <letfunbegin> BeholdMyGlory: very much so, no official/unofficial support by Sun :) but I encourage you to take a look at it. much of it is indeed very nice, but it also has a lot of conversion slack from C++
[19:59:04] <letfunbegin> for instance you need to employ a wrapper for a C++ pointer when working with certain models. wack.
[19:59:55] <dangertools> Craghag: just that. the cache setting can change and usually directories in the cache are named randomly
[20:00:00] <BeholdMyGlory> letfunbegin: hm. But how hard is it to learn? (I have no C++ experience at all, unless you count Hello World)
[20:00:02] <letfunbegin> however, it look really good on linux/windows. doesn't have the swing slowness over it --and it'll soon be released as LGPL
[20:00:26] <Craghag> dangertools: too bad =T
[20:00:40] *** Teckla has quit IRC
[20:00:42] *** igors has joined ##java
[20:01:28] <letfunbegin> BeholdMyGlory: well, I'm still learning myself so it's hard to say. I would guess it requires some patience, and the ability to read the C++ implementation for documentation
[20:01:40] *** romanb has quit IRC
[20:02:11] <BeholdMyGlory> letfunbegin: very well. I'll try it. thanks for the info :D
[20:02:15] <letfunbegin> sure :)
[20:02:16] *** romanb has joined ##java
[20:03:20] *** aknm has quit IRC
[20:04:09] *** igors has left ##java
[20:04:15] *** aknm has joined ##java
[20:05:07] *** arakthor has joined ##java
[20:06:39] *** Goundy has quit IRC
[20:07:00] <kwvarga> Anyone know have I can trace an issue occuring in my application better? I have it down to one line, where I call JasperReports, but it doesnt throw a JRException and no other error message, just crash
[20:09:05] *** LordMetroid has joined ##Java
[20:09:09] *** appleguru has quit IRC
[20:09:49] <vol> does jasperreports run any native code?
[20:09:51] *** aknm has quit IRC
[20:10:29] *** aknm has joined ##java
[20:10:44] <kwvarga> It says it is cross-functioning
[20:10:57] <kwvarga> and I have downloaded all the dependencies and including them in my buildpath
[20:11:19] *** jmpf has joined ##java
[20:12:05] *** appleguru has joined ##java
[20:12:09] *** jor has joined ##java
[20:12:30] <vol> You might want to try asking jasper
[20:12:51] *** adi112358 has joined ##java
[20:12:56] *** tomvolek has joined ##java
[20:13:23] <jmpf> I need to refactor: http://pastie.org/400010 suggestions?
[20:13:27] *** gregor_k has joined ##java
[20:13:55] <FauxFaux> Does your stream not have any blocking read methods?
[20:14:39] <jmpf> FauxFaux: the stream is blocking but I want to get the correct # of bytes to read before I read them
[20:15:04] <FauxFaux> Why?
[20:15:44] <jmpf> well I'm not using bufferedreader or anything... I need to specify how many bytes right??
[20:15:57] <dmlloyd> there's no guarantee that .available() will return more than 0 in any case
[20:16:03] <dmlloyd> it's just a hint
[20:16:14] <jmpf> right.. that's why that loop is there but it has to go cause it hangs the cpu
[20:16:32] <dmlloyd> so... you don't *want* to block? is that the problem?
[20:16:34] *** redrebel has joined ##java
[20:17:18] <redrebel> how can I read a properties file where the same key is appears multiple times??
[20:17:53] <redrebel> for example, I have a properties file that contains all of my contacts and they keys names are name and phone
[20:17:54] <dmlloyd> jmpf: if the point is to read a whole stream into a byte array of unknown size, you should copy the data into a ByteArrayOutputStream, and then pull the bytes from that once you're done
[20:18:03] <jmpf> dmlloyd: no I do want it to block but I don't whenever I call the byteRead() method I AM expecting info back...
[20:18:31] <dmlloyd> jmpf: can you rephrase that?
[20:18:37] <dmlloyd> it didn't come out as english :)
[20:19:27] <jmpf> uh.. sorry.. basically that method SHOULD block but whenever it gets called I expect information to come back so I don't want it to return empty; basically it should stay there until it gets 'something'
[20:19:37] <jmpf> looking it up
[20:19:47] *** alvin_3 has quit IRC
[20:19:48] *** epalm has joined ##java
[20:19:52] *** __simon__ has joined ##java
[20:20:11] <BeholdMyGlory> is there any way to interrupt readLine() ?
[20:20:11] *** Odin79 has quit IRC
[20:20:50] *** alvin_3 has joined ##java
[20:22:04] <dmlloyd> jmpf: do you have a minimum requirement of "something"? it looks like you're really interested in reading characters
[20:22:18] <dmlloyd> jmpf: maybe step one should be wrapping your InputStream with an InputStreamReader
[20:23:06] <jmpf> dmlloyd: the reason I'm not using readers is because I don't want to read characters -- I HAVE to read bytes (utf8 and such)
[20:23:08] <__simon__> I am designing some PLC programming software in java, the programming is graphical, I just draw a component from a tree view and drop it onto a panel. Now my question is, what is the best way to represent these objects? I was thinking Graphics2D but that means I have to implement stuff thats already implemented in java.awt.Component
[20:23:33] *** teralaser has joined ##java
[20:23:45] <dmlloyd> jmpf: so you must mix bytes and characters? I ask you this then - how do you know where character data ends and byte data begins (and vice versa)?
[20:24:05] <jmpf> dmlloyd: I'm treating everything as bytes..
[20:24:09] *** Varox has quit IRC
[20:24:28] <dmlloyd> jmpf: then why are you doing new String(input)
[20:24:54] <dmlloyd> which will yield the Wrong Answer in many cases if you're not specifying an encoding...
[20:25:02] <jmpf> dmlloyd: cause it's more or less a string but sometimes there's an euro or a dash that is 3 bytes long or something weird like that
[20:25:19] <Woot4Moo> char[] ftw
[20:25:24] *** csgeek has quit IRC
[20:25:31] *** Daniel_H has quit IRC
[20:25:35] <dmlloyd> jmpf, see you're confused there. It's either character data or it isn't.
[20:25:56] *** developerhealey has quit IRC
[20:26:09] <dmlloyd> if it is character data, you should be using a Reader with a specific encoding. If it isn't, then you should be using byte[] or ByteBuffer or something like that, not a String.
[20:26:14] *** adi112358 has quit IRC
[20:26:27] *** kane77 has joined ##java
[20:26:29] <dmlloyd> if you try to do a kinda-sorta method, you're going to end up with weird bugs. Easily avoidable weird bugs.
[20:26:56] *** adi112358 has joined ##java
[20:27:28] *** adi112358 has quit IRC
[20:28:24] *** tom17bombadil_ has joined ##java
[20:30:18] *** Shootdown has joined ##java
[20:30:29] *** jcp has quit IRC
[20:30:30] <Shootdown> hi
[20:30:51] *** HeatHawk[AP2] has quit IRC
[20:31:05] *** FMJaguar has quit IRC
[20:31:24] <Shootdown> i've a question about EJB 2.1 and stateless session bean: what is remove() method in a stateless session bean for ?
[20:32:34] <sproingie> lifecycle method called when the container destroys the bean, no?
[20:32:58] <sproingie> s/destroy/remove/ ... i don't recall the difference
[20:33:11] <Shootdown> i guess not
[20:33:20] <sproingie> aha, remove is what you call to tell the container to destroy the bean
[20:33:26] *** jmpf has quit IRC
[20:33:29] *** bowman has joined ##java
[20:33:30] <Shootdown> remove() is a method defined in interface
[20:33:33] *** HeatHawk[AP2] has joined ##java
[20:33:55] <sproingie> it's probably a useless appendage in a SLSB
[20:33:57] <bowman> Hi all. Can anyone tell me why Arrays.sort() does an unsigned right shift (>>>) in Java 6, which was a signed shift (>>) in Java 5?
[20:34:25] <Shootdown> sproingie: yes ... and no, Beans instances aren't managed by clients
[20:34:30] <sproingie> i.e. ideally it should do nothing. but if you have service dependencies or whatnot, you might use it to inform other beans about your impending bean's death
[20:35:21] <sproingie> SLSB shouldn't be considered to have a lifespan longer than the request tho
[20:35:23] <Shootdown> sproingie: about docs, remove() method invalidate EJB object , ie, remote reference
[20:35:41] *** neshaug_ has joined ##java
[20:36:01] *** mmc has quit IRC
[20:36:01] *** romanb has quit IRC
[20:36:33] *** blahjake has joined ##java
[20:36:38] <Shootdown> but if I perform: ref = refHome.create(); ref.remove(); ref.any_method(); , this works fine
[20:36:57] <sproingie> it happens to work. it *could* execvp('nethack')
[20:37:26] <sproingie> more likely it'd just NPE somewhere :)
[20:37:37] <Shootdown> i don't understand , sorry :-(
[20:37:38] <Ven]n> ive cut out a little piece of code (hope its not too little), but why isnt my JScrollPane scrolling my JList? http://rafb.net/p/nRrIuc42.html
[20:38:27] <Ven]n> crap.. forgot to show my JList: http://rafb.net/p/4awNjG45.html
[20:39:15] <ldam> Ven]n, what do you assume (hint: scrollpanes doesn scroll automagically)
[20:39:45] <Ven]n> hmm.. I kinda assumed listScroll = new JScrollPane(fileList); shouldve done it
[20:39:46] <Ven]n> hehe
[20:40:12] <ldam> Ven]n, you need to signal that it should scroll to somewhere. The docs can tell you how
[20:42:08] *** Woot4Moo has quit IRC
[20:42:29] <Ven]n> should I use JScrollPane og JScrollBar btw?
[20:43:51] <Ven]n> I tried using this example: http://www.java2s.com/Code/Java/Swing-JFC/AsimpleJScrollPaneforaJListcomponent.htm
[20:46:01] *** k0p has quit IRC
[20:46:47] *** bindaas has quit IRC
[20:46:56] *** arakthor has quit IRC
[20:48:08] <kaineo> good morning guys
[20:50:06] *** pstickne has quit IRC
[20:51:26] *** kane77 has quit IRC
[20:51:49] *** RanyAlbeg has joined ##java
[20:52:08] *** BlindHunter has quit IRC
[20:52:20] <RanyAlbeg> Hi guys , i have a problem -> http://codepad.org/LxL0EKLK Thanks for helping
[20:52:45] *** eventualbuddha has quit IRC
[20:54:26] *** appleguru has quit IRC
[20:55:21] <RanyAlbeg> i got it thanks.
[20:55:32] *** jkriesten has quit IRC
[20:55:47] <ldam> Ven]n, as i dont know your requirements i cannot give you advice. I suggest that you read the documentation so you can make a qualified decision yourself instead of relying on some unfounded, arbitrary answer
[20:56:10] <svm_invictvs> Okay
[20:56:15] * ldam rocks on to hendrix/all along the watchtower :)
[20:56:16] <svm_invictvs> I have a simple semantics question...
[20:56:30] <svm_invictvs> Spring uses, what they call IoC, right?
[20:56:52] *** Core-Dump has quit IRC
[20:57:00] <svm_invictvs> The process of reflectively loading classes then calling their methods based on external factors, right?
[20:57:06] <ldam> svm_invictvs, Inversion of Control, or Dependency injection
[20:57:53] <dmlloyd> IoC just means that instead of your class creating Executors, SecureRandoms, Ciphers, JDBC Connections, etc., you just make setters that set these fields on your object and you define where they come from in a config file
[20:57:58] *** mdmkolbe has left ##java
[20:58:02] <ldam> svm_invictvs, you lost me. IoC/DI is primarily a concern of single responsibility; how it's done is a technical matter that spring solves on one way
[20:58:07] *** sepult has joined ##java
[20:58:22] <svm_invictvs> dmlloyd: I see.
[20:58:55] <dmlloyd> it's a simple concept but very empowering. Rather than worry about how everything will be assembled, you can focus on the task at hand that you're actually trying to accomplish.
[20:59:09] <joed> Outsource it!
[20:59:13] <dmlloyd> it frees you from the kind of thinking that results in you inventing Yet Another Configuration Framework for every project.
[20:59:13] <ldam> svm_invictvs, exactly as dmlloyd said. Dependency Injection (the term i prefer) says it all. You get what you need; dont worry how. Just concentrate of the task at hand...
[20:59:41] <svm_invictvs> Yeah, so my game engine essentially implements that.
[20:59:42] <bowman> dmlloyd: about yesterday's Spring/Constructor topic: it's indeed the case that Arrays.sort(...) gives a different result on JDK6 than on JDK5, but it seems to do this only on win32.
[21:00:19] <dmlloyd> bowman: I thought it was Color(..)
[21:00:42] <dmlloyd> or does spring do Arrays.sort() on the Constructor[] that it gets back? (that would be... weird... since Constructors aren't Comparable)
[21:01:04] <Ven]n> ldam, Im using the scrollpane as Ive done before I think.. I dont get it why it doesnt work.. never tried it with a JList though
[21:01:15] <bowman> dmlloyd: yeah, it does. Spring 2.0.0 sorts the Constructor array by number of arguments and by type weight difference - weird code, but interesting :-)
[21:01:32] <dmlloyd> seems silly imo
[21:01:43] <dmlloyd> if there's an ambiguity, it should just give you an error
[21:02:20] <bowman> it does some very crazy type weight difference calculation, and the result is that float is as close as possible to int, so it picks the float ctor.
[21:02:29] <dmlloyd> otherwise I'd call it a Spring bug then - if sort() is returning different results, it's probably because their comparator isn't stable, or the two constructors are exactly equal (thus the order is indeterminate - defeating the purpose of sorting in the first place)
[21:02:49] <dmlloyd> one would think that int is closer to int than float :)
[21:02:54] <bowman> yes. :)
[21:03:49] *** pythondasnake has joined ##java
[21:04:17] *** Daniel_G has quit IRC
[21:04:17] <bowman> but because both int and float are primitives, Spring thinks that their type weight difference is 0.
[21:04:27] <svm_invictvs> dmlloyd: So my game engine does things like runt he rendering pipeline, physics, network IO, colision detectection and defers all the games logic to callbacks...IoC/DI right?
[21:04:29] *** Junior has joined ##java
[21:04:36] <svm_invictvs> I know the concept, never kenw what it was named.
[21:04:41] <pythondasnake> I made a game and wondering if a way to hide command line when gui comes up? Is that dependant on the editor or IE
[21:04:42] <bowman> dmlloyd: "Determine a weight that represents the class hierarchy difference between types and
[21:04:42] <bowman> * arguments
[21:05:27] <dmlloyd> svm_invictvs: not quite. Callbacks are a nice design, but IoC is about configuration - environmental stuff like Executors and so forth.
[21:05:38] <svm_invictvs> I see.
[21:05:49] <ldam> svm_invictvs, resource injection
[21:06:11] <dmlloyd> think of it as replacing any constructor invocation that you would normally do in your constructor or initialization code with a setter method and field.
[21:06:16] *** Nebulam has joined ##java
[21:06:23] <svm_invictvs> I see
[21:07:37] <bowman> dmlloyd: if you want to look at that method just for fun: http://pastebin.com/m2c2315bd - paramTypes is filled with "float", args is filled with ints. this has to return 0 of course. what follows in that constructor search loop is a if(typeWeightDifference < lastFoundTypeWeightDifference) trick, and of course, 0 cannot be < 0. hence, the first matching ctor found is the float ctor, the int ctor doesn't fulfill the comparison later in the loo
[21:07:43] *** BlindHunter has joined ##java
[21:07:59] *** Daniel_G has joined ##java
[21:08:56] *** ankylose has quit IRC
[21:11:01] *** BlindHunter has quit IRC
[21:11:17] *** bas-i has joined ##java
[21:11:33] *** pythondasnake has left ##java
[21:12:25] *** hiredman has quit IRC
[21:12:41] *** hiredman has joined ##java
[21:13:36] *** bitshuffler has quit IRC
[21:14:54] *** tylo_ has joined ##java
[21:17:07] *** toytoy has quit IRC
[21:18:04] *** Nebulam has quit IRC
[21:19:05] *** Sulis has joined ##java
[21:19:28] *** AskHL has joined ##java
[21:19:32] *** Daniel_G has quit IRC
[21:19:52] *** pstickne has joined ##java
[21:20:09] *** Petein has joined ##java
[21:20:41] <Petein> hello. Is there any upper protocols for exchanging objects via a network?
[21:20:45] <Petein> *are there
[21:21:22] <epalm> RMI can pass objects via remote method calls
[21:21:28] <epalm> but that's quite the can of worms
[21:21:33] <svm_invictvs> serialization
[21:22:04] <Petein> epalm: "but that's quite the can of worms" sorry?
[21:22:21] <Petein> svm_invictvs: serialization... hm... i'll check it out
[21:22:24] <epalm> RMI can be painful
[21:22:33] *** MrPocketz has quit IRC
[21:23:12] <Petein> well to be honest me and my teams must create a game in software engineering
[21:23:50] <Petein> and we decided to exchange packets (to be able to play multiplayer using the client/server architecture)
[21:24:02] <Petein> *team not teams
[21:24:22] <Petein> epalm: one of our professors will introduce us to RMI
[21:24:37] <Petein> so i was thinking which technology would be appropriate?
[21:24:57] <Petein> UDP packets are the easiest to handle BUT if a udp packet is lost something must be done about it
[21:25:02] <epalm> is it realtime? or turn-based
[21:25:10] *** tomvolek has quit IRC
[21:25:12] <Petein> epalm: well the chat will be real time
[21:25:16] <joed> How do you know if it is lost?
[21:25:18] <Petein> epalm: it will be a questions game
[21:25:28] <Petein> joed: it never gets to its destination;)
[21:25:35] <cheeser> i'd use grizzly+comet, personally
[21:25:36] <joed> How do you know that?
[21:25:36] <cheeser> 8^)=
[21:25:42] <epalm> how does the desintation know anything was sent?
[21:25:53] <Petein> dont forget joed that udp is a best efford protocol, not the most reliable
[21:26:01] <cheeser> ooh! oooh! mr. kotter! mr. kotter!
[21:26:01] <epalm> >_<
[21:26:08] <Petein> epalm: well in tcp we have the sliding window mechanism
[21:26:18] <r0bby> o/
[21:26:27] <Petein> which with aknowledgements we know if it was received,delayed,lost
[21:26:44] <epalm> i'm...not even going to try
[21:26:51] <Petein> epalm: why?
[21:26:54] <joed> Dude.... Java doesn't even know if a socket is disconnected.
[21:26:58] * cheeser fac-epalms
[21:27:10] <svm_invictvs> You don't want to use VM serialization for games...
[21:27:12] <svm_invictvs> if it's per-frame
[21:27:21] <Petein> joed: well as i can remember it does...
[21:27:22] <svm_invictvs> If you're sending packets per freme.
[21:27:34] <joed> Petein: ...
[21:27:38] <Petein> svm_invictvs: we are talking about text NO video
[21:27:53] <svm_invictvs> oh
[21:27:54] <Petein> joed: anyway... i just asked for the best technology
[21:27:59] <svm_invictvs> then yea, that's
[21:28:03] *** sphenxes has quit IRC
[21:28:39] <Petein> we don;t know how to create a webpage...thus we will create a client and a server application
[21:28:49] <andern> ive created this class called Channel, and in another class, in the same package, i just cant seem to call any of its methods
[21:28:59] <Petein> so using udp is it a good technique for the questions which the server will split to the users?
[21:29:32] *** mengu has quit IRC
[21:30:02] <cheeser> ~~ andern doesn't work
[21:30:02] <javabot> andern, doesn't work is useless. Tell us what it is, what you want it to do, and what it is doing. Consider putting some code and any errors on a pastebin. (use ~pastebin for suggestions)
[21:30:03] *** BeholdMyGlory has quit IRC
[21:30:12] *** TooAngel has joined ##java
[21:30:49] *** TooAngel has left ##java
[21:31:37] <teralaser> andern : Channel ch = new Channel(); ch.yourMethod();
[21:32:27] <Petein> so tell me..what's the best thing to do?
[21:32:29] *** dv_ has joined ##java
[21:34:06] *** dblick has quit IRC
[21:34:20] <cheeser> change majors?
[21:34:30] <cheeser> try something. if it doesn't work. try again.
[21:34:38] <cheeser> try something else, rather
[21:35:00] <Petein> cheeser: are you talking to me?
[21:35:02] *** vadi2 has joined ##java
[21:35:18] <cheeser> apparently not
[21:35:19] <cheeser> 8^)=
[21:35:30] *** bas-i has quit IRC
[21:35:34] <marvi> I think Corba with server using Perl and client using Scala would be a good solution.
[21:35:42] <vadi2> "No applets." - I'm having some trouble with one, it's not loading anymore after I set Java to use my system style globally. Where can I seek help on that?
[21:35:46] *** kaineo has quit IRC
[21:35:49] <cheeser> marvi: where's the xml in that?
[21:35:51] <joed> ~marvi++
[21:35:51] <javabot> marvi has a karma level of 2, joed
[21:35:55] <cheeser> ~~ vadi2 applets
[21:35:56] <javabot> Check the topic, read http://javachannel.net/wiki/pmwiki.php/FAQ/Applets - Basically, we don't support them here. Try the sun forums at http://tinyurl.com/2q2hog
[21:36:12] <vadi2> ok :-/
[21:36:12] *** kaineo has joined ##java
[21:36:13] <joed> marvi: Erlang and a dynamic xml protocol, based on a derivate of relax-ng
[21:36:22] *** kane77 has joined ##java
[21:36:27] *** vadi2 has left ##java
[21:36:52] *** Daniel_G has joined ##java
[21:36:53] <svm_invictvs> how long does it take Toshiba to repair a laptop?
[21:37:29] *** Daniel_G has quit IRC
[21:37:34] <cheeser> 2 weeks
[21:37:37] <cheeser> how is this java?
[21:40:39] *** _stijn_ has joined ##java
[21:42:22] *** monstrfolk has joined ##java
[21:42:35] *** PuffTheMagic has joined ##java
[21:42:38] *** wad has joined ##java
[21:42:50] *** adi112358 has joined ##java
[21:42:50] *** Daniel_G has joined ##java
[21:43:11] *** funktor has quit IRC
[21:43:26] *** adi112358 has quit IRC
[21:44:10] *** funktor has joined ##java
[21:46:30] *** monestri has quit IRC
[21:47:21] <svm_invictvs> Evidently longer
[21:47:29] <svm_invictvs> anyhow.
[21:51:21] *** tom17bombadil_ has quit IRC
[21:53:52] *** Nebulam has joined ##java
[21:53:55] *** waz has quit IRC
[21:54:54] *** Draiven has joined ##java
[21:55:06] <svm_invictvs> back to work...
[21:55:08] <svm_invictvs> Oh wait
[21:56:35] *** neshaug_ has quit IRC
[21:58:17] *** appleguru has joined ##java
[21:58:33] <Draiven> hi, somebody know about servlets with CometHandlers?
[21:58:36] <appleguru> anyone know of a good way to find the center of a shape?
[21:59:03] <appleguru> getBounds... isn't really the center
[21:59:11] <appleguru> say, for a triangle
[21:59:25] <vol> appleguru: geometry
[21:59:40] <appleguru> any tips? ;)
[21:59:50] *** RanyAlbeg has quit IRC
[21:59:51] <vol> pick up your junior high geometry book
[22:01:21] <svm_invictvs> Centroid calculations?
[22:01:26] <joed> http://mathforum.org/~sanders/centertriangle/centeranswers.html
[22:01:57] <svm_invictvs> appleguru: Look at how to find the centroids of objects ;)
[22:02:22] <svm_invictvs> And if the object's density is uniformly distributed you can calculate the center of mass too!
[22:02:23] *** waz has joined ##java
[22:03:37] <appleguru> :)
[22:03:41] *** nijm has quit IRC
[22:04:04] *** nijm has joined ##java
[22:04:09] *** RanyAlbeg has joined ##java
[22:04:28] <RanyAlbeg> Hi all , can some one help me with a simple question?
[22:04:38] <svm_invictvs> RanyAlbeg: just ask
[22:04:51] <RanyAlbeg> im starting to learn multithreading
[22:05:00] <svm_invictvs> RanyAlbeg: If you pique somebody's interest they will answer.
[22:05:13] <cheeser> the same with their rage as it turns out
[22:05:14] <cheeser> 8^)=
[22:05:26] <vol> cheeser: fascinating.
[22:05:27] <appleguru> so for a triangle.. its just the average of the x coords and the average of the y coords
[22:05:28] <svm_invictvs> RanyAlbeg: Have you read JCIP?
[22:05:38] <vol> appleguru: I don't know, I guess so?
[22:05:38] <appleguru> yay
[22:05:39] <svm_invictvs> lol
[22:05:44] <svm_invictvs> cheeser: pft
[22:05:46] <vol> try it a few times and find out
[22:05:49] <vol> ~tias
[22:05:49] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[22:05:50] <appleguru> lets see if this affinetransform works better now ;)
[22:05:54] <RanyAlbeg> and i have this code http://codepad.org/LxL0EKLK ( dont look at the error in the end) . and i need that "hello everyone" will be printed last always
[22:06:27] <vol> you need to wait for those threads to finish
[22:06:28] *** nijm has quit IRC
[22:06:40] <RanyAlbeg> yes i know. but how ?
[22:06:42] <cheeser> and why is HelloMain a Thread?
[22:06:47] *** nijm has joined ##java
[22:06:48] <cheeser> ~~ RanyAlbeg threads
[22:06:48] <javabot> RanyAlbeg, threads is http://java.sun.com/tutorial/essential/threads
[22:06:52] <cheeser> ~~ RanyAlbeg jcip
[22:06:52] <javabot> RanyAlbeg, jcip is Java Concurrency In Practice, a book focused on implementing threaded and concurrent applications in Java. http://jcip.net/
[22:07:07] <vol> You'll want to use .join on all of the child threads
[22:07:25] <vol> RanyAlbeg: read jcip
[22:07:28] <vol> or some thread info
[22:07:36] <vol> at least follow the whole sun java trail for threads
[22:07:49] <appleguru> is there a way to get coordinates out of a generalpath?
[22:07:50] *** _stijn_ has quit IRC
[22:07:54] <RanyAlbeg> im reading but just cant understand
[22:08:01] <RanyAlbeg> thanks anyway..
[22:08:05] <svm_invictvs> jcip is a good book
[22:08:18] *** funktor has quit IRC
[22:08:21] *** azanar has joined ##java
[22:08:52] <RanyAlbeg> i have Java How to program 6th full. and i read all chapter on multithreading. i dont kno w:D
[22:09:21] <RanyAlbeg> cant figure out how to use synchronized on this example
[22:09:33] *** guille_ has joined ##java
[22:09:44] <guille_> hi
[22:09:56] <svm_invictvs> RanyAlbeg: so post a testcase
[22:10:10] <cheeser> he did
[22:10:15] <cheeser> ~~ svm_invictvs goldfish
[22:10:15] <javabot> svm_invictvs, you have a 6 second attention span! Here's a silver star and an honourary degree!!
[22:10:34] <RanyAlbeg> just give me some hints.. im not asking for code
[22:10:35] <cheeser> 8^)=
[22:10:39] <RanyAlbeg> please :\
[22:10:51] *** BeholdMyGlory has joined ##java
[22:10:58] <RanyAlbeg> i know i need to wait for all threads to finish
[22:11:03] *** vrwttnmtu has quit IRC
[22:11:04] <cheeser> so do that
[22:11:17] <RanyAlbeg> so i need to know how
[22:11:19] <cheeser> RanyAlbeg: vol already told you how
[22:11:21] *** pstickne has quit IRC
[22:11:29] *** NiSoOo has joined ##java
[22:11:38] *** Ivellina has quit IRC
[22:11:49] <svm_invictvs> cheeser: wahts' the goldfish for?
[22:11:52] <RanyAlbeg> i know notify() and wait() and synchronized , just dont know how to put them all together
[22:11:54] <cheeser> what goldfish?
[22:12:03] <svm_invictvs> cheeser: The factoid you dropped on me.
[22:12:07] <svm_invictvs> http://homepage.mac.com/bradster/iarchitect/shame.htm
[22:12:09] <svm_invictvs> Er...
[22:12:11] <cheeser> i don't know what you're talking about
[22:12:19] <svm_invictvs> I see...
[22:12:20] *** Ivellina has joined ##java
[22:12:30] <RanyAlbeg> aren't you guys going to help me some more? im really not asking for something serious not even a code example
[22:12:32] <svm_invictvs> My keybaord must be borken.
[22:12:39] <cheeser> ~smack RanyAlbeg
[22:12:39] * javabot smacks RanyAlbeg in the mouth
[22:12:40] <svm_invictvs> It's not always copying when I press control+C
[22:12:46] *** blankthemuffin has quit IRC
[22:12:49] <cheeser> RanyAlbeg: 16:08 < vol> You'll want to use .join on all of the child threads
[22:12:51] <svm_invictvs> RanyAlbeg: Seriously, what are you talkinga bout?
[22:13:13] <RanyAlbeg> http://codepad.org/LxL0EKLK
[22:13:15] <svm_invictvs> Oh, I didn't see the link
[22:13:22] <RanyAlbeg> i need to print "hello everyone" in the end
[22:13:49] <RanyAlbeg> always in the end.. means i need to wait for all threads to finish beofre the print line..
[22:13:57] <cheeser> you were told how
[22:14:02] <cheeser> twice now
[22:14:06] <appleguru> can i store primative types in an arraylist?
[22:14:07] <vol> 16:11 < vol> You'll want to use .join on all of the child threads
[22:14:07] <RanyAlbeg> didnt see
[22:14:08] <AMcBain> yuck ... extending thread?
[22:14:13] <cheeser> appleguru: sort of
[22:14:14] <vol> 16:18 < vol> 16:11 < vol> You'll want to use .join on all of the child threads
[22:14:16] <svm_invictvs> That aside...
[22:14:20] <vol> 16:18 < vol> 16:18 < vol> 16:11 < vol> You'll want to use .join on all of the child threads
[22:14:22] *** FMJaguar has joined ##java
[22:14:24] <RanyAlbeg> are you kidin me?
[22:14:24] <vol> see it?
[22:14:25] <svm_invictvs> RanyAlbeg: You need to join all the threads.
[22:14:36] <vol> alternately
[22:14:37] <RanyAlbeg> join?
[22:14:45] <vol> READ THE SUN JAVA TUTORIAL ON THREADING
[22:14:50] <svm_invictvs> ~~ RanyAlbeg Thread.join(*)
[22:14:50] <javabot> RanyAlbeg, I have no idea what Thread.join(*) is.
[22:14:51] <vol> ~threads
[22:14:51] <javabot> vol, threads is http://java.sun.com/tutorial/essential/threads
[22:14:53] <appleguru> cheeser: how? i tried just sticking them in and casting, but javac yells at me
[22:14:53] *** poseidon has joined ##java
[22:14:54] *** Jonny has quit IRC
[22:14:55] <svm_invictvs> ~~ RanyAlbeg javadoc Thread.join(*)
[22:14:58] <javabot> RanyAlbeg: http://is.gd/kS1s [java.lang.Thread.join()]; http://is.gd/kS1v [java.lang.Thread.join(long)]; http://is.gd/kS1w [java.lang.Thread.join(long,int)]
[22:15:02] <vol> ~jcip
[22:15:02] <javabot> vol, jcip is Java Concurrency In Practice, a book focused on implementing threaded and concurrent applications in Java. http://jcip.net/
[22:15:09] <cheeser> list.add(1)
[22:15:37] <vol> appleguru: java 5 and above lets you use autoboxing
[22:15:38] <svm_invictvs> This is why we cant' have nice things.
[22:15:43] <RanyAlbeg> .....
[22:15:49] <svm_invictvs> heh
[22:15:50] <vol> so you can store Integers in a list, and then pass in ints
[22:16:01] <RanyAlbeg> no i dont have to do this..
[22:16:07] <svm_invictvs> RanyAlbeg: Thread.join(); waits for the thead to exit before it returns.
[22:16:31] <RanyAlbeg> thanks..i got the mistake..no join at all
[22:16:33] <svm_invictvs> by default the JVM joins all non daemon threads at the end of main, iirc.
[22:16:44] <RanyAlbeg> nah nah... thanks anyway
[22:16:46] <RanyAlbeg> got it
[22:16:47] <RanyAlbeg> bye
[22:16:48] <vol> RanyAlbeg: you don't have to do anything, just like we don't have to answer any more questions of yours if you're not going to listen to us
[22:17:08] <RanyAlbeg> i got the problem vol, thanks..
[22:17:12] <RanyAlbeg> you didnt helo much..
[22:17:16] <RanyAlbeg> but thats ok
[22:17:17] <appleguru> i guess i could just use the primative type classes 8)
[22:17:25] <appleguru> Integer, Boolean, etc
[22:17:40] * appleguru doesnt quite understand autoboxing
[22:17:44] *** RanyAlbeg has left ##java
[22:17:51] <cheeser> ~autoboxing
[22:17:51] <javabot> cheeser, autoboxing is http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html
[22:18:13] *** Craghag has quit IRC
[22:18:13] <z1pp3r> In eclipse on windows xp (works fine in ubuntu), when i create a new plug-in project (OSGi equinox) i get the following errors when running the "Hello World Bundle" : http://pastebin.com/d5baf1de - Any ideas what could be wrong? Also, 'ss' returns about 300 results. On ubuntu i get only 1, osgi itself.
[22:18:28] <cheeser> z1pp3r: try #eclipse
[22:18:42] <poseidon> I'm making a calculator, and I have a JButton for each number. How can I make it so that the ActionListener is called when a number on the keyboard is pressed
[22:18:59] <cheeser> poseidon: add one
[22:19:38] <z1pp3r> cheeser, sorry for going off-topic for this channel, but #eclipse has been unable to help me. Figured it was worth a shot
[22:25:21] *** echelog has joined ##java
[22:25:36] *** vezzoni has quit IRC
[22:26:56] <svm_invictvs> What's that legislation mandating that people who submit information to a website must be 13 years old?
[22:27:42] * cheeser eyes svm_invictvs
[22:28:05] *** cemerick has quit IRC
[22:28:31] <marvi> svm_invictvs: she is probably over 13 but under 18, so stay away.
[22:28:48] *** bas-i has joined ##java
[22:29:02] *** crowbar has quit IRC
[22:29:19] <cheeser> grond!
[22:29:29] <cheeser> tolkien fans, i see.
[22:29:29] <guille_> http://gist.github.com/70425 <= In line 98, the resource is not being injected, any hint? (probably it's obvious but i've not much idea)
[22:29:49] *** Junior has quit IRC
[22:30:56] <svm_invictvs> marvi: heh
[22:31:29] *** appleguru has quit IRC
[22:33:13] <joed> svm_invictvs: ... Because it is okay to look(tm)?
[22:33:30] *** idea4good has joined ##java
[22:33:46] *** Varox has joined ##java
[22:34:49] <svm_invictvs> wow
[22:35:21] <svm_invictvs> I'm asking because I'm putting together a form
[22:35:43] <joed> Be honest, you are stalking.
[22:36:24] <vol> svm_invictvs: look at the page for any movie or game rated mature
[22:36:36] <vol> it will probably have a reference there when it asks for age verification
[22:36:40] <vol> I wasn't sure that was a law, either
[22:36:54] <svm_invictvs> vol: The ESRB isnt' govenered by legislation, neither is the MPAA
[22:37:24] <vol> (but the MPAA would like to be :)
[22:37:48] <svm_invictvs> However, there was a law passed within the last 5 years that mandates taht persons submitting forms on a website must be 13 or older. ANd it was the responsibility of the website to enforce it.
[22:38:39] <Sou|cutter> svm_invictvs: I don't know that law
[22:39:19] *** pstickne has joined ##java
[22:39:27] <hiredman> ~keywords
[22:39:27] <javabot> hiredman, keywords is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
[22:39:37] *** svm_invictvs was kicked by cheeser (gah!)
[22:39:41] <hiredman> hmm
[22:39:49] *** svm_invictvs has joined ##java
[22:39:55] <svm_invictvs> sorry cheeser I'll be good.
[22:39:58] *** jdolan_ has quit IRC
[22:40:03] <hiredman> where is that list of stuff like "final, static, ..." and what it means in what place?
[22:40:05] <pfn> svm_invictvs, copa 1998
[22:40:14] <Sou|cutter> If you're worried, just add some checkbox "By checking this box you agree with our (link)TOS"... then the TOS should say you must be 13 or over to use the site
[22:40:17] <vol> COPA was struck down wasn't it
[22:40:23] <cheeser> ~~ hiredman jls
[22:40:23] <javabot> hiredman, jls is The Java Language Specification: http://java.sun.com/docs/books/jls/
[22:40:25] * cheeser eyes vol
[22:40:30] <vol> what?
[22:40:37] <cheeser> ~interesting
[22:40:37] <javabot> this is all very interesting (not really) but please take it somewhere else.
[22:40:48] <Sou|cutter> ~~ hiredman keywords
[22:40:48] <javabot> hiredman, keywords is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html
[22:40:52] <hiredman> cheeser: somewhere javabot has a url with a nice little table
[22:40:53] <vol> ok fine
[22:41:01] <idea4good> u am tryin to insert into employees table but hibernate complains Data truncated for column 'gender' at row 1
[22:41:17] <idea4good> gender is of type enum (Mysql DB)
[22:41:25] *** hyppias has quit IRC
[22:41:27] <hiredman> Sou|cutter: yeah, I think I already asked, got that, and decided it was not what I am looking for
[22:41:55] <Sou|cutter> hiredman: don't know what to tell ya then
[22:42:18] *** idea4good was kicked by cheeser (it's "you")
[22:42:21] *** [[thufir]] has joined ##java
[22:42:35] <_W_> it's "I" actually
[22:43:30] *** The_Birdman has joined ##java
[22:43:55] *** idea4good has joined ##java
[22:44:56] <vol> good job on kicking for mistyping u for i
[22:45:04] <idea4good> cheeser : that you was not part of the context of the statement and still you kicked me from channel
[22:45:17] <vol> :P
[22:45:40] <cheeser> i do what i can
[22:45:43] <idea4good> f*** you ;)
[22:45:48] *** idea4good was kicked by cheeser (cheeser)
[22:47:39] *** EnderMB has quit IRC
[22:49:14] <Ven]n> what am I missing here? the gray area here: http://bildr.no/view/354110 is supposed to be a JScrollPane..
[22:52:31] *** Woflborg has quit IRC
[22:52:33] *** Stef1 has joined ##java
[22:54:26] *** Woflborg has joined ##java
[22:57:19] *** sebr_afk is now known as sebr
[22:57:28] *** TranceControl has joined ##java
[22:59:01] *** brousch has quit IRC
[22:59:17] *** idea4good has joined ##java
[23:00:22] <idea4good> hi cheeser i am back like flubber
[23:00:28] <idea4good> i'm tryin to insert into employees table but hibernate complains Data truncated for column 'gender' at row 1
[23:00:45] <idea4good> gender is of type enum (Mysql DB)
[23:00:51] *** veleno has joined ##java
[23:00:59] <cheeser> what's the java type?
[23:01:13] <idea4good> i did verify mysql enum and java enum are replacable
[23:01:18] <HeatHawk[AP2]> type = awesome.
[23:01:26] *** Stef1 has left ##java
[23:01:34] <poseidon> cheeser, ? how do I add a keyboard listener to a JButton action listener
[23:01:49] *** ScottG489 has joined ##java
[23:01:52] <veleno> hello. is there something similar to Collections.singletonList(o) but that returns a modifiable (at least supporting add(..)) list ?
[23:01:54] <cheeser> ~javadoc JButton
[23:01:55] <javabot> cheeser: http://is.gd/iMLi [javax.swing.JButton]
[23:02:30] <r0bby> veleno: Google collections has something likely
[23:02:43] *** rollins has quit IRC
[23:02:45] <r0bby> but you can always wrap the list in an arraylist
[23:03:03] <r0bby> (ArrayList has a constructor that takes a List
[23:03:22] <svm_invictvs> Is it hard to implement a skipped list?
[23:03:33] *** adi112358 has joined ##java
[23:03:55] <svm_invictvs> er skiplist?
[23:06:03] *** bigjocker has quit IRC
[23:06:18] <svm_invictvs> r0bby: I think it takes a Collection, no?
[23:07:06] *** chriswk_ has quit IRC
[23:07:55] *** GodTodd has joined ##java
[23:08:15] <svm_invictvs> Has nybody ever read the UI Hall of Shame?
[23:08:30] *** bigjocker has joined ##java
[23:08:41] *** mosno has joined ##java
[23:09:18] *** wad has quit IRC
[23:09:23] <bowman> svm_invictvs: I did. It's fun. :-)
[23:09:32] <svm_invictvs> I just discovered it now.
[23:09:48] <poseidon> cheeser, I see a method for adding an ActionListener to see if the JButton is pushed, but not for a keyboard button
[23:11:21] <idea4good> what is difference between Enum and enum
[23:11:39] <svm_invictvs> enum is a java keyword which creates an enum type
[23:11:46] <idea4good> googled dint find any material
[23:11:49] <svm_invictvs> Enum<T> is the base class for all enum types, iirc.
[23:12:06] *** ryuho has quit IRC
[23:12:09] <dmlloyd> idea4good: google also won't tell you the difference between a bean and an octopus.
[23:12:28] <idea4good> agree my bad
[23:12:29] <dmlloyd> though you might have gotten a cluse about enums by simply reading the enum tutorial
[23:12:32] <svm_invictvs> ~javadoc Enum
[23:12:33] <javabot> svm_invictvs: http://is.gd/kSAG [java.lang.Enum]
[23:12:33] <dmlloyd> ~~ idea4good enums
[23:12:34] <javabot> idea4good, enums is http://java.sun.com/javase/6/docs/technotes/guides/language/enums.html
[23:13:07] <svm_invictvs> idea4good: and to make things more perverse...Enum and enum have nothing at all to do with java.util.Enumeration
[23:13:57] <blahjake> Enum's signature is quite twisted
[23:14:02] <cheeser> poseidon: and so ...
[23:14:12] <cheeser> perhaps there's something else you could be looking for
[23:14:14] *** Aquanox has quit IRC
[23:16:10] *** Shootdown has quit IRC
[23:19:09] *** timte has quit IRC
[23:19:23] <r0bby> idea4good: how did you get your job?
[23:19:30] <r0bby> I'm curious, maybe i'll apply
[23:19:38] * r0bby ducks
[23:20:47] <veleno> r0bby: thanks for the pointer to google-collections. yes, i could wrap the Collections.singletonList with an arraylist, but than i would not save any typing.
[23:21:45] *** ttmrichter has joined ##java
[23:23:20] *** cheeser sets mode: -bb *!*n=ionine@*.dyn.optonline.net *!*n=b@63.250.103.*
[23:24:14] <MigoMipo> ~pastebin
[23:24:14] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[23:24:31] <blahjake> veleno: you're just trying to dodge one call to add()?
[23:24:48] *** TheCoffeMaker has quit IRC
[23:24:50] *** pa has quit IRC
[23:25:06] <r0bby> veleno: there's also commons-collections but google collections uses generics if i remember right
[23:25:15] <r0bby> commons-collections does not(?)
[23:25:19] *** drtroll has joined ##java
[23:25:38] *** pa has joined ##java
[23:25:55] <poseidon> ~javadoc
[23:25:55] <javabot> poseidon, I have no idea what javadoc is.
[23:26:49] *** armyriad has joined ##java
[23:27:08] *** amcsi has joined ##java
[23:27:13] <amcsi> hello
[23:27:43] <amcsi> how do I destroy an object? (the reference and what it refers to)
[23:28:11] <svm_invictvs> amcsi: You can't explicitly "destroy" an object like in C++
[23:28:22] <Levia> amcsi: it is done by the garbage collector
[23:28:27] <Levia> ~garbage collector
[23:28:27] <javabot> Levia, I have no idea what garbage collector is.
[23:28:58] <Levia> amcsi: it is destroyed as soon as your application holds no more references to it (meaning it can't be accessed anymore)
[23:29:04] <amcsi> meaning if the interpreter sees that I don't use that object anymore in the code, it removes the object for me?
[23:29:12] <Levia> amcsi: exactly.
[23:29:19] <amcsi> awesome
[23:29:23] *** aksn has joined ##java
[23:29:24] <amcsi> thanks
[23:29:26] <AMcBain> ~garbage collection
[23:29:27] <javabot> AMcBain, garbage collection is http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html and http://www-128.ibm.com/developerworks/java/library/j-jtp09275.html?ca=dgr-lnxw07JavaUrbanLegends
[23:29:33] <AMcBain> that's the factoid :P
[23:29:40] <Levia> AMcBain: ah! thanks
[23:30:00] <svm_invictvs> amcsi: If you can be 100% sure that nothing else references the object you can just sets its referenceot null and it will likely be collected.
[23:30:28] <svm_invictvs> well....its' effectively gone
[23:31:54] *** bowman has quit IRC
[23:32:03] <svm_invictvs> ~csi
[23:32:03] <javabot> Magnify.
[23:33:01] <AMcBain> "we come in peace" "shoot to kill" :P
[23:33:30] <dmlloyd> beam him up, scotty
[23:33:34] *** Petein has quit IRC
[23:33:42] <poseidon> Where can I download the Java api src and the javadoc for it?
[23:33:54] <amcsi> and can I reuse the same variable for an object for a different object?
[23:33:54] <dmlloyd> ~~ poseidon jdk
[23:33:54] <javabot> poseidon, jdk is Java Development Kit, something you need for compiling Java code. Download it: http://java.sun.com/javase/downloads/index.jsp - the JRE is included.
[23:34:01] <AMcBain> "very funny sotty, now down my clothes"
[23:34:01] <dmlloyd> hm
[23:34:35] <dmlloyd> poseidon: well, the API source is mostly included in the JDK. Also the online javadoc has a big "download this documentation" link
[23:34:56] <r0bby> poseidon: the source code (minus the native bits) are provided to you (unzip src.zip)
[23:35:07] <AMcBain> amsci: only if the variable type is a superclass/interface of the new object you wish to store in it.
[23:36:04] <amcsi> it's the same class actually
[23:36:07] <amcsi> is that good?
[23:36:32] <amcsi> and how can I do it?
[23:36:54] <amcsi> my IDE says the variable is already defined
[23:36:57] <AMcBain> if it is an instance of the same type, yes you can.
[23:37:10] <AMcBain> well, you can't redefine the variable, but you can store other things in it.
[23:37:28] *** pstickne has quit IRC
[23:37:38] <AMcBain> "int three = 3; int three = 6/2;" is an error, while this is not: "int three = 3; three = 6/2;"
[23:37:48] *** rajesh has joined ##java
[23:38:03] *** Inc` has joined ##java
[23:38:04] *** milligan_ has quit IRC
[23:38:29] *** milligan_ has joined ##java
[23:38:36] <milligan_> I'm making a simple app that's trying to open a JPanel, but I'm getting this: Xlib: extension "RANDR" missing on display ":0.0". . What's causing that ?
[23:38:44] <amcsi> ah I see
[23:39:05] <amcsi> I only redefine the Class if that class is an extention, right?
[23:39:42] *** MigoMipo has quit IRC
[23:39:49] *** scott_w has quit IRC
[23:39:49] *** adi112358 has quit IRC
[23:41:58] <dmlloyd> milligan_: the lack of XRANDR, which is probably used to ascertain the screen size. You should really turn that on in your xorg.conf
[23:42:04] <dmlloyd> or whatever x server you're using
[23:42:23] *** acuster has quit IRC
[23:42:36] <milligan_> dmlloyd, could it be caused by xinerama ?
[23:42:44] *** guille_ has quit IRC
[23:42:47] *** Ivellina has quit IRC
[23:42:53] <dmlloyd> mmm, seems unlikely but possible. Isn't xinerama obsolete?
[23:43:17] <milligan_> Didn't think so? It's what allows desktop spanning, instead of two separate desktops.. ?
[23:43:50] <dmlloyd> I think it's been superceded by... something...
[23:44:12] <dmlloyd> yeah, "As of 2008[update], Xinerama is planned to be deprecated in the future by X.org in favor of XRandR"
[23:44:31] <dmlloyd> https://lists.ubuntu.com/archives/ubuntu-x/2007-November/000059.html
[23:44:56] *** Niike has quit IRC
[23:45:05] *** Carnage\ has quit IRC
[23:45:23] *** cobolfoo has joined ##java
[23:46:02] <milligan_> hm .. back in 2007, and it's still not default in 8.10 released a couple months ago .. strange.
[23:46:07] *** karstensrage has quit IRC
[23:46:08] <amcsi> even primitive types are collected by the gc if they aren't used anymore?
[23:46:13] *** kab has quit IRC
[23:46:30] <tieTYT> i somehow got the idea that primitives are not on the heap
[23:48:10] <milligan_> ffs.. At present, XRandR will not load if Xinerama is enabled.
[23:48:28] <milligan_> :(
[23:48:37] <milligan_> Guess that was my que to go to bed.
[23:49:05] *** jor has quit IRC
[23:49:16] *** buntfalke has quit IRC
[23:50:25] *** Draiven has quit IRC
[23:52:18] *** acuster has joined ##java
[23:52:55] *** z1pp3r has quit IRC
[23:54:38] *** dv_ has quit IRC
[23:55:10] *** LostMonarch has quit IRC
[23:56:08] <dmlloyd> tieTYT: they aren't, unless they're in a field in an object or inside an array.
[23:56:21] <dmlloyd> otherwise they'r eon the stack.
[23:56:46] <dmlloyd> amcsi, primitives aren't collected individually, because they only exist as part of other constructs (the execution stack, or other objects)
[23:57:09] <Ven]n> give me some critique on the GUI and stuff please :p http://bildr.no/view/354179
[23:57:28] <amcsi> so I can destroy them by giving them a value of null?
[23:57:35] <tieTYT> i see
[23:57:35] *** ryuho has joined ##java
[23:57:45] <tieTYT> amcsi: you can't assign some to null
[23:57:50] <tieTYT> amcsi: why do you care?
[23:57:54] <dmlloyd> amcsi: no, primitives can't be null.
[23:58:03] <amcsi> to conserve memory
[23:58:19] <tieTYT> has anyone ever used jmockit? It has ~6 methods to its api and it still manages to be shit
[23:58:37] <amcsi> i wanna destroy primitive variables if they aren't used anymore
[23:58:48] <dmlloyd> that doesn't make any sense, amcsi
[23:58:59] <dmlloyd> you can't destroy a variable
[23:59:28] <tieTYT> amcsi: why do you care?
[23:59:44] <dmlloyd> the only thing that can be collected are objects, and then only if all references to the object have been cleared
top

   February 25, 2009  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | >