« first day (2017 days earlier)      last day (2910 days later) » 

4:59 AM
Hello room. Happy Sunday!
 
5:49 AM
Copy a simple pom.XML file into the directory with your source and library files
Then run maven generate::archetype from the command line after cd directory on Mac or Linux, then export to maven project
From eclipse by right clicking I think on the project
 
Is this an appropriate explanation / use of the correct words? I'm making notes re. using a different class in my main class.

MultipleClassesThird anotherMessageObject = new MultipleClassesThird();
// syntax = classname nameOfObject = new classname();
anotherMessageObject.anotherMessage();
// nameOfObject . name of method in the other class


Thanks
 
@Vogel612
That will generate a stable jar, and like me I didn't know how to code my XML file so I kept running generate::archetype until I was satisfied with the complexity don't go too far though it will probably make it slower
If you remove the last generated XML it will build off of the new one
 
 
2 hours later…
Neo
8:00 AM
Hi
 
 
3 hours later…
10:53 AM
hi
 
 
3 hours later…
1:35 PM
Morning, Java!
 
morning
 
Morning @Sayros.
 
what time is it in your country ?
 
OakBot Online.
 
9:37
 
1:37 PM
ah good in my case is 2:37 pm :p
 
I see. xD
 
:)
 
2:10 PM
@Michael Enjoy your Sunday ;)
 
saturday is good sunday no, its not for enjoy ist for restless :'(
 
You too, @Itachi!
 
2:33 PM
mine is almost over :P
 
:(
 
3:19 PM
hi
some help please
I'm trying to use profiler for a selected java software
I have the executable .jar file with me
so I tried to use this following command, but it say, Could not find main class for CosmoFile.jar
java -prof:output.txt CosmoFile.jar
 
Does, uh, CosmoFile.jar have a main method?
 
yes
it does
i have tried this one
java -prof:output.txt -jar CosmoFile.jar
and now it's giving me this error
 
Is it a runnable JAR?
 
@Michael of course. I can run the program by double clicking on it :(
 
Uh, that's a different error.
Are you using a Java 8 VM?
 
3:30 PM
I'm using the Java 8 profiler
 
What does "java -version" output?
 
1.8.0_77
 
Mmm.
 
what i'm trying is do a profiling on a jar file
 
Sorry, I don't know anything about profiling.
 
3:40 PM
opps!
i'll raise a question
 
4:03 PM
0
Q: How run profiler on a class file in Java

Crazy NinjaI have a working Java application which has a some class files. When I run the class using java MyMainClass it works well. So, I want to use the profiler and see the memory leaks. I have tried the following command and it give me an error. java -prof:Output.txt MyMainClass Below is the error ...

 
4:26 PM
Off to lunch, bye Java!
 
Bye
@ItachiUchiha any idea for my prob?
 
4:56 PM
0
Q: removing item from a listview android

user3091082I am trying to remove the data from my database and from a listview based on a long press or click. I have looked at some tutorials but am not sure how to go about this. any advice? here is my code so far: listview adapter class: public class AndroidListViewCursorAdaptorActivity extends Activit...

 
 
4 hours later…
8:58 PM
posted on May 01, 2016

So REST is just a webpage that returns JSON right? Well, no! Apparently I've been doing REST All wrong! It's much more rich and complete than what we are led to believe. Come join us with Bob Paulin as we talk what the real deal on REST is (and how to implement REST endpoints in Java)  Don't forget to SUBSCRIBE to our cool new NewsCast! Java Off Heap Roy Thomas Fielding on Rest JAX-RS Spe

 
user4196492
9:56 PM
Hey I have a random question.

If I happen to have some kind of computer addiction, does that impair my ability to become a game designer?
 
does smoking addiction restrain from being a doctor? :)
 
user4196492
@Kropekk You don't need to smoke to be a doctor.
 
you don't need to have computer addiction to become game designer
 
there you go :D
 
user4196492
No, I am referring to doing the activity at all that is required in that job. Smoking to being a doctor is not the same as Using a computer to a Game Designer.
 
user4196492
10:06 PM
A job in which a possibly compulsive activity is required. Like game design.
 
user5293625
Got a question to ask y'all that I'm too afraid to be shamed for if I pose it on SO.SE
 
user4196492
@CalebWoodman Ask it!
 
@pebble225 so long as your addiction doesn't affect your work it shouldn't be an issue
 
user4196492
@CalebWoodman That's not a question. XD That is code.
 
i was preparing for some philosophical question... :D
 
user5293625
10:09 PM
The first input is fine, in any form of "a" or "b". The second input will terminate the program when a valid input is given.
 
user4196492
Try using this instead: paste.ofcode.org
 
@CalebWoodman the problem with this huge spaghetti mess is that sysin and sysout are buffered
1 message moved to friendly bin
 
@pebble225
well, i misunderstood you - so it depends on yourself and how well you can handle your addiction.
 
^^
 
Does anybody knows reflection well? i have a problem with one method in java
 
10:10 PM
reasonably.
 
user5293625
Anybody help me with my spaghetti mess?
 
user4196492
I honestly think it is ridiculous that my parents treat my computer usage as an addiction, but I use it an awful lot.

I don't think it's a problem, but that won't be enough to consider it not a problem.

This is just a whiny teenager talking I guess. XD
 
user5293625
You can see how actually making it a post would bring shame and overbearing drive-by downvotes and sadness.
 
@CalebWoodman if your spaghetti mess worked, I'd know a place
like that it's not a good fit anywhere
you should try to reproduce the behaviour in an MCVE
 
user5293625
Are you translating from a different language? I'm not getting what you're saying.
 
10:13 PM
@pebble225 I'm pretty sure that after 8-hours work with programming (or more if you study CS) sitting in front of the screen would be the last thing you'd do
 
@CalebWoodman I daresay you can boil this one down to 20 LoC including class and main declaraion
@Kropekk ummm... wrong
 
user5293625
Show me, @Vogel612, o great wizard of code!
 
OR you would fall into NERDNESS... is that what you meant, @Vogel612? :)
 
@CalebWoodman cull what's not necessary to reproduce the problem
or IOW grab a new file. then C/P your code
then you start removing code
 
@Vogel612 i need to create static method in class that serves as universal constructor - you call makeObject(String.class) and you should receive String object. It's quite hard when it comes to classes without parameterless constructors. I thought about looping through constructors, for every one get GenericParameters, create neccesary objects and try to use this constructor, but it would cause endless loop with class A{A(A x){if x==null throw exception}}
 
user5293625
10:15 PM
I am a beginner in every way, and my program teacher is backwards and incompatible.
 
@CalebWoodman line by line. each time you remove code, you check whether it works
when it works: understand what changed
 
user5293625
cull...ing...
 
user4196492
I tried to find a picture of someone with they eyes huge and red to display what 8 hours would be for me, but I think you get the point now that I say it.
 
user5293625
don't kill the imports...
 
user5293625
or... class or psvm(SA[])...
 
10:17 PM
@Kropekk Why not grab the first constructor you can get your hands on?
 
@pebble225 I know it's a cliche, but: if you want to be a game designer, just start doing something towards it
 
Hey guys, anyone have any experience with sorting/comparing nodes in linked-lists and willing to lend a hand really quick?
 
user5293625
I tried looping an enum before, that would prolly make it shorter... But I can't find anything for it that works.
 
how is that related to your problem at hand?
@TylerCarr stop beating around the bush
 
user5293625
I can't find anything that I can just directly kill without my code becoming more hammered than it really is.
 
10:19 PM
@CalebWoodman start with the multitude of System.out.println statements
 
@Vogel612 loop for constructors may be redundant, but still - if i want to create object of class A, i need to pass reference to object of class A - so i would call makeObject(A.class) and it would end up with infinite recursion
 
@Kropekk that's a copy-constructor then... you should just exclude those
 
@Vogel612 Sorry about that, beginner Java programmer and new to this community. Feel free to put me in line, gotta learn somehow haha.
@Voge
 
@TylerCarr ... I said stop beating around the bush...
--> Just ask
also why do people come online when I need to get up in 7 hours??
 
@Vogel612 but how would you handle this case?
 
user5293625
10:21 PM
Is there a way to do them with more brevity and still have gaps between them?
 
user5293625
Printing these to an eclipse console.
 
ps. use intellij :) seems more friendly
 
@Vogel612 I'm trying to implement a "RailYardSimulation" program that takes input for incoming cars in a linked-list and also for desired output lists. Then compares the first node of each to see if they're the same string value, and decides to either move the incoming cars node to a waiting track or a seperate outgoing cars list
@Vogel612 I can link to the open question I posted here on SO if it helps. Just looking for a few tips on how you would handle it: switch, nested-ifs, etc...
 
user5293625
I could go by the 160-word standby, but still only one less line.
 
@Kropekk skip and throw if no other options are present
@CalebWoodman just remove them. They aren't interesting to the problem that input isn't read correctly
@CalebWoodman remember how I told you to create a copy of the file...
@TylerCarr I don't think the problem needs nested ifs...
neither does it need a switch...
@TylerCarr I found your question... You need to add more context. I assume this is for programming class?
 
10:30 PM
@Vogel612 Ok sounds good, yeah, I've tried using both with no progress. So how would you go about handling it?
 
Possible answerers need to know what exactly your assignment says. Also you have a comment
@TylerCarr I assume that you have to use given data-structures, so I can't answer that question
 
@Vogel612 Thank you and yes it is!
 
user5293625
@Vogel612 What do you mean by... Oh of course I have an archived copy of everything. My code isn't FUBAR now...
 
@TylerCarr The problem in and of itself sounds simple enough. Nested loops with an if-condition should do the trick... that is if I have understood it correctly
@CalebWoodman then you can safely throw away most of what you have written, right?
 
@Vogel612 I posted the question twice: once with more context and another with less but more simplistic and abstract. Figured I would cover my bases. Here's a link to the one with more context:
 
user5293625
10:33 PM
Keeping in mind that this is a text adventure, and in theory all the user sees are those selfsame lines.
 
remove everything that's not explicitly involved in the problem you currently have
 
user5293625
uh
 
user5293625
ok
 
@CalebWoodman just... make sure you have your current work secured...
@TylerCarr please don't do that. Less context is generally not a good idea, because people have to circle back and ask
it's annoying for those looking to answer and usually makes people lose interest in your question
also asking two questions about the same problem is considered bad style around here, there even is the close-reason "duplicate"
 
10:36 PM
@Vogel612 Ok, roger that, sounds good!
 
@TylerCarr this looks like an "easier" version of the "Towers of Hanoi"
 
@Vogel612 I'll go look into that and report back if I run into any more troubles. Thanks for the help!
 
@CalebWoodman it's a better start. but If I understood you correctly, all those if -> else if -> else if blocks are not completely necessary to reproduce the problem
also please stop posting heaps of code in here.
especially improperly formatted code..
1 message moved to friendly bin
 
user5293625
:( sorry
 
don't sweat it. New people get a little leeway.
just use a pasting service :)
 
user5293625
10:45 PM
Separate question: Anybody know where I can go to ask somebody to make an incredibly basic game for me?
A little pixelated turn-based spiel...
Prolly straightforward for a non-noob...
 
Another quick question: Is there a way to use "A[i]" (as in specifying which index you want to call or edit(maybe under a for-loop where i is instantiated)) in a linked-structure?
 
@TylerCarr depends a little. Your assignment doesn't need it. You just have to examine the first element of the data structures anyways
@CalebWoodman hire someone ...
or DIY
grab a friend and start coding :)
 
user5293625
Mph. I mean incredibly basic, needs not have my name on it, simpler than checkers really.
 
ArrayList?
@TylerCarr
 
@TylerCarr @Kropekk actually... in java there isn't
C# does allow overriding index access on classes. but in java it's only arrays that allow access that way
Collections members usually expose #get(int index)
 
10:50 PM
@Vogel612 So, if I'm understanding correctly, examine the first element of the structure, compare it to the first element of the other structure, dequeue it and move it to either the waiting track or output track...right?
 
yup
rinse and repeat :)
 
@Kropekk Kind of...I was looking for a way to do the same operation in a linked-list as A[i] would do in an array. But working around it now
 
anyways i'm off to bed. maths lecture in 7 hours
 
@Vogel612 Thank you for your help!
 
11:07 PM
if you implement it on your own, ir could work in O(n) instead of const time...
 
@Vogel612 I'm not too worried about efficiency at this point, it's for a programming class with not too large an emphasis on O efficiency
 

« first day (2017 days earlier)      last day (2910 days later) »