« first day (2318 days earlier)      last day (2609 days later) » 

user6110959
3:19 AM
Question: Why is object called an instance of a class.
 
user6110959
My answer to that: Each object possesses the
data members
and
member functions
defined in its blueprint/plan/template- the class.
Therefore, it's called an instance of a class.
 
user6110959
is it correct?
 
user6110959
3:32 AM
What's the best way to name initial classes?
 
What?
I do not understand. :S
 
user6110959
How to write the name of array variable in comments?
 
user6110959
SHould I write arr(name of an int array) to store integers or // arr[] to store integers
 
4:01 AM
@Abcd Yes.
 
4:12 AM
41
Q: The difference between Classes, Objects, and Instances

PranjutWhat is a class, an object and an instance in Java?

Should answer your question.
 
Since Madara is not here, just do whatever.
 
/me strips naked and starts downing jell-o shots.
Done.
Is there a table I can dance on?
 
I don't have a table
 
Psh. Java sucks. They totally have a table in the C++ room.
 
HTML has tables
 
4:17 AM
/me dances on the <table>
 
You must excel at dancing
Beware the one-faced polyhedron. It might steal your desserts.
 
4:33 AM
Heh
 
4:51 AM
amirite
@JasonC Hi! Haven't seen you in a long time
 
Me: Writing a boring paper
 
5:12 AM
@Unihedron Was this image of yours created with "gnome-screenshot"?
 
5:24 AM
@Unihedron Yo
That's cause you don't hang out in the tavern any more!
 
5:48 AM
C is a pretty cool language.
 
6:30 AM
C++ > C
 
user6110959
Question: Give the prototype of a function search which receives a sentence sentnc and a word wrd and returns either 1 or 0
 
@JonahSloan ++C > C++
airhorn
 
user6110959
Answer: byte search(String sentnc, String wrd)
 
user6110959
Is this correct^^^^
 
user6110959
name two jave clibrary classes
 
user6110959
6:43 AM
What will be the answer?
 
user6110959
java.io , java.util?
 
@Unihedron I think ++C == C++ actually
 
@JonahSloan because you're reusing C
if you take the expressions without reusing the variable then prefix > postfix increment
 
Yeah
Beautiful explanation. I would've just said "it does that because it does"
 
 
3 hours later…
10:02 AM
 
10:42 AM
Zawinski's Law found expanding, as Java XML parsers found to able to send mail in addition to just reading it.
 
@unserializable "RFC 959 specifies that a username may consist of a sequence of any of the 128 ASCII characters except <CR> and <LF>. Guess what the JRE implementers forgot? Exactly − to check for the presence of <CR> or <LF>."
oh no
 
hello
 
 
4 hours later…
2:44 PM
Morning, Java!
 
Morning!
 
Hey @Uni
 
3:34 PM
Hey, elipse says:
objc[29893]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

Also if I look into my run configuration I have the choice between 1.8.0_102 and 1.8.0_112 and 102 one is marked as default? I'm kinda confused. I tried to start a Java appletviewer
 
Hi Friends.. Good Morning
Can any one specify the agenda of this room
 
4:20 PM
@Felix.C I get a similar message on my iMac. Not sure why. And those are 2 JVM installations on your machine.
 
4:32 PM
My parents are annoying.
 
5:00 PM
@LovaChittumuri "Room dedicated to the Java programming language, yummy food, and cats."
 
5:14 PM
One time people were exchanging recipes
 
5:39 PM
Hi
I'm looking for some help to find a way to apply my ideas :D
The idea is easy : get back colors of pixels on a web page to analyse them (look at the changes) so I found that java.awt.Robot can help me
BUT it will be dependent of the resolution of the screen and the browser, i started to work on it, and then i just realized that it will work only on 1920*1080 and on Chrome ... so not very easy to share ..
 
5:52 PM
@azro Why is it dependent on screen resolution and browser?
 
because if i write : robot.getPixelColor(1500,1200) it will work on my laptop, but if i do it on another laptop with a resolution of 1200*960 it won't work
and each browser has his own design, the image won't be exactly at the same height from the top on each
dependant also if you have the favorite bar
 
I think you can get the height and width of the screen in pixels, and use that when doing getPixelColor
You can get screen size with java.awt.Toolkit.getDefaultToolkit().getScreenSize()
 
yes i find this too
 
6:11 PM
@azro Why are you trying to do that? Also, even on two machines with the same browser window size (window might not be maximized btw) and browser the page can still be rendered differently e.g. different fonts present, font antialiasing options, zoom, position of scrollbars, etc.
 
I have come to the conclusion that it is not possible to accurately and consistently get the color of a pixel on a webpage.
You might need to make your own browser, and I don't recommend doing that.
 
6:33 PM
Though it might be possible if you're crazy enough to use a combination of Java and JavaScript...
 
You could just compare text resources, and also parse, load, and compare image resources, I suppose. But it really depends on why you'd want to do that.
I mean maybe the goal is to see how different browsers render things differently, although it doesn't sound like it.
 
6:48 PM
@JonahSloan I'm a web developer for a very long time.
I've never had a case where I needed to find the color of a specific pixel on screen.
And even if you do, I can think of a couple of (admittedly extremely ugly) hacks.
So what are you really trying to do, that the solution you came up with is finding the color of a pixel?
 
7:17 PM
@JasonC haha
 

« first day (2318 days earlier)      last day (2609 days later) »