« first day (1416 days earlier)      last day (3520 days later) » 
00:00 - 18:0018:00 - 00:00

12:04 AM
doesn't work
I need to randomize the image not number :S
 
oh
morning btw
 
morning (2am here) :P
 
I can see it on your eyes :P
 
So @Lucio is it possible to randomize :D
 
of course it is possible
 
12:05 AM
how would you do it?
 
use an array to store the pics
then choice a random position
 
I have only 1 pic
 
O.o
 
and 1 JPanel
 
then what do you want to randomize?
 
12:06 AM
I want to make the pic randomize on the JPanel
 
what do you mean by randomize?
this is gonna be hard ¬¬
 
place it randomly in the JPanel space
 
ohhhh
now I got you
 
several times
basically several is specific
 
what Karl said was right
 
12:07 AM
for(int i = 0; i <12; 1++){
//place images randomly on space
}
 
right, kk
 
I don't understand what Karl meant I guess
 
how are you adding the pic into the panel?
 
panel.add(pic)
 
you need to use a more specific method, something like: panel.add(pic, x-axis, y-axis)
 
12:08 AM
but if it's not placed randomly it will be on on top of the other, meaning it will appear as 1 pic
 
right
don't worry, do you know a method like the one I said?
 
nop
:S
 
:|
 
i'm actually making a game of checkers
 
do you know a method to move an object inside the panel?
 
12:09 AM
so when you take out a pawn it appears there :D
but problem is I can't do it lol
 
heh, the idea is funny
 
the method is panel.add(pic)
 
yeah, I got that
that won't help you
 
exactly :S
 
you need something else, a work around
 
12:10 AM
hmm
I can't figure out
 
I was right?!?!?!!?!
What did I say!?!?!?!?!
 
OMg I dosed off
 
I was AFK
 
@Karl How do I fix my jump method?
It's giving me crazy out of bound error :'(
2.15 am I got college in5 hours OMG :'(
 
12:16 AM
Do you need it for class?
 
it's an assignment actually
it's due next week
but I want to finish it and try to implement AI
I can't even get it to work properly -_-
Here's my huge 50 Lines method to check if I can jump
 
heh, you doesn't look good
 
it works fine in the middle but in the extremes i gives ArrayIndexErrorOutOfBounds
hate that hate it!
 
oh gosh, I can see why did you get that
 
I got some genius ideas but I can't code it properly
 
12:20 AM
I never saw so many array access like that code
 
I've been learning java for only 4 weeks
@Lucio is it bad coding style? I'm freaking out at this point
 
no, I didn't mean that
you need to fix the error
 
yeah
I'm going to use a try and catch tomorrow
 
but you need to do it by your self, it is a bit complex to read that
 
I used it earlier today
I used it for error with 1 jump
now it's 2 jumps
crazy
 
12:21 AM
oh
 
i had to flip the books pages to know wat a try catch was
took me 5 minutes to grasp it, applied it in the first move
but then the Jump one is harder
I need to sleep
I'll be back tomorrow
3 hours sleep fml :'(
okay night people :)
and enjoy your day @Lucio :P
 
thank you
have a good night
 
the world time is really a fascinating thing :P
 
Good luck @Sabಠ_ಠ
 
thanks
 
12:25 AM
and take it easy, you will fix it
 
ty @Karl night :)
 
The time thing is imaginary...
 
I hope when I enter this room tomorrow I'm weeping with joy :P
@Karl indeed.
Time is relative
can't talk physics now I need sleep
 
I'm not related to time!
 
I'll probably dream in code today
c ya :)
 
12:26 AM
I did that this morning!
 
ha, I'm sure you will. ciao
 
By the time I got done messing around, I forgot half!
Sleeps well...
 
12:44 AM
do we have any enterprise devs in here?
kinda need some high-level architecture advice, i'm just starting out with enterprise java
 
OHHH OOHHHH OHHH OHH OH OH!!!!!!!!!!!!!!
Nope...
 
1:07 AM
Man, my day sucked! First, I got fried for touch these wires, THEN I had to pay $200!!!!
 
1:43 AM
may god have mercy on my soul
 
 
10 hours later…
11:30 AM
@Unihedron how did you put the comment about asking a goodquestion ?
 
@ItachiUchiha My comments are mostly automatic unless I actually write one myself.
 
I'm not much of a commentor. If code needs lots of comment's it can be written better
 
@Unihedron Yes that's what I am asking about. How to write an automatic comment for Beginners ?
 
What are automatic comments? I've never seen them
 
guess the boy is busy
@Karl Even I am not sure how to use it
 
11:45 AM
Ah, I'm not at my computer write now, but it's a userscript with a custom config. I'll talk more when I'm home.
 
Is that a threat @Unihedron ? :P
 
What threat? Purrfectly friendly :P
 
Ahh the link is blocked by the firewall :(
 
You said "I'll talk more when…"
 
11:50 AM
The need for #gimme-teh-codez thing is annoying. There used to be a close vote reason for that, but there's none anymore (it was a bit offensively worded, and I think it should have been rephrased instead of removed)
 
@Unihedron :P
Greetings @KiHeRu
 
hello
 
I agree. Now I CV them for "This question shows a lack of effort; Take a [tour]"
 
@kiheru +1
 
12:19 PM
I'm back!
 
 
2 hours later…
2:02 PM
@Unihedron @Karl @spoulson @kiheru @HamZa @maven Have you noticed that Java Room always have people in it, but is normally quieter than the other rooms :/
@Unihedron have you seen @Kylar lately ?
 
I'm not in any other rooms so I can't compare. But it sure is fairly quiet here
 
Either people over here are sophisticated or introvert :P
 
@ItachiUchiha That's unfortunate. I wonder what we can do to remedy that.
 
@Unihedron @kiheru we must attract more of the talkative crowd to this room
 
2:05 PM
@ItachiUchiha People come in this room and sit. Kiheru has been in this room for 3 weeks now...
 
@kiheru Granted I've seen quieter rooms. Like RegEx and C++.
And I mostly sit here to wait for people I know to talk, or help out users who comes by, but there's nothing really so good to talk about.
 
With my 8-Core up, I stay in there as long as the computer's on, and we never shut it down...
 
C++ is a bit surprising. I remember someone coming here to ask C++ questions when the correct channel was about dead
 
KILL IT! KILL IT WITH FIRE!!@!@#!!@
-3
Q: How to get the average of an array?

Patrick WaynePlease correct the method "ave". public class methods{ public static void main (String[] args){ int[] a = {1,2,3,4,5,6,7,8}; System.out.println("Sum is: " + sum(a)); System.out.println("Average is: " + ave(a)); System.out.println("Minimum is: " + min(a)); System.out.print...

 
sit here ?? Java Room ?
In reality Java kills the actual programmer, coz it makes everything so easy !
 
2:09 PM
ha, the call for fire worked
 
we never have to interact with the processors
this is good for beginners, but a curse for xp'd programmers
 
Mind it -> Programmers != Website Developers !
 
I wholeheartedly agree!
If you break it down, there's front-end devs, back-end devs, sysadmins, and the hackers :)
 
who the hell though that byte should be signed, and that there's no unsigned in general, must have eaten the wrong mushrooms
 
2:11 PM
@kiheru LOL
 
@ItachiUchiha dont tease java if u can't please java
 
yeah true ! Java may have come as a blessing for the software industry, when there was a boom and everything was getting automatized. But, it surely has killed the CS level
 
But if you think about it... Software development is no longer as maths-heavy anymore
 
How do I boldface? [I was shown yesterday, but I cannot make it work
 
Critical and efficient algorithms rules the industry now... And Java has all the libraries, making even the beginners easy to get the hang of
 
2:13 PM
@Karl use **code**
 
@Karl surround the text with **
 
`inline code`, *italic*, _italic_, **bold**, __bold__.
 
This makes creating software's easy and rapid, but degrades the knowledge base !
I guess this is the reason, C++ has come back from the dead !
 
Bold italic?
 
use ***
 
2:15 PM
@ItachiUchiha I know! Therefore, every good programmer must know some deep down stuff. Maven, Surefire and automated compilation engines are making the development too easy. Java deserves more.
 
In fact, JDK is open sourced. I always crack the code just to see if I accurately predict how they're doing things - and if I'm wrong, I now learn of a better implementation.
 
Java >> Made for the IT industry
 
Implement INTERCAL interpreter for the JVM, and development will no longer be easy
 
Yes, Java is made for the IT industry and the wannabe programmers who are lazy, but every good programmer cannot get away with just Java.
 
2:17 PM
I am not saying that Java is easy ! But, its not difficult as well !
:D
 
Easy is relative. I'd rather say handy. The implementation is straightforward - Types, more types, keywords, methods and fields.
 
People are using Spring MVC, Struts etc, without even having the knowledge of Servlets !
This things sucks !
 
You remember the Type -> (static / instanced) methods -> parameters to use flow, and without taking the risk for your program to blow up (exception: null fields), you've built a program that would take months to build in another language.
 
Java is easy. For simple things. As you get better, you can do more!
 
Yeah, exactly.
 
2:19 PM
Nevermind...
 
Rooms owners can see deleted messages. We of course, will not use it to stir up trouble, but remember that. :P
 
haha
Java hides too many things from the programmers. They are completely unaware of how the software they are building is interacting with the hardware. This is where the I feel :(
 
I would never say anything against the room owners!
:P
 
LOL
I thought there were no room owners! :p
 
2:26 PM
Seeing a complete Lisp interpreter written in Lisp is an intellectual revelation that all computer scientists should experience
 
I agree @Ita, get me Kylar here..
 
Such a beautiful statement :)
Do we do this when he is back to the room ?
 
lisp is a nice computing model, but it's lacking a usable language on top of it :-P
 
Has someone got a hands on experience with any functional programming language?
 
pascal
 
2:28 PM
@Unihedron that was blocked by the firewall
 
Unihedron's comments to Pascal: it sucks
@ItachiUchiha but... but it was on subdomain stack.imgur.com!
 
yeah, thats blocked
:P
gyazo.com is not
@KillerDucky1 Welcome !
 
Welcome to room Java, @KillerDucky1!
 
Haha
 
No, I found it on the Internet.
 
2:36 PM
ahh
ok
 
morning
 
Morning!
 
We are somewhat dismayed to see the popularity of scripting languages in introductory programming courses. Such languages (Javascript, PHP, Atlas) are indeed popular tools of today for Web applications. Such languages have all the pedagogical defaults that we ascribe to Java and provide no opportunity to learn algo- rithms and performance analysis.
@taco Morning !
 
@ItachiUchiha huh?
 
You know what? I suddenly have an idea.
 
2:39 PM
Oh, my. Someone uses PHP to teach?
 
We could together build a better script engine. A better language for both users and devs. A universal standard for all future development.
It's the dawn of programmers!
 
Yeah
 
Yep, an XKCD reference. Totally should had saw that ;)
 
lolz
 
Completely fictional!
That causes 6 new competing standards, not one!
 
2:44 PM
how z that 6 ?
o_O
 
MAYBE not six, but you also know it's not ONe!
One thing I noticed, when I first joined this room, [not really that long ago] and there was NO socializations in this room, it was all business!
 
Well, times has changed on Stack Overflow chat.
The main site is full of crap, users are here to coordinate throwing fire to burn and nuke questions and helping out users who deserves the help now.
 
Yeah true !
I have been coming to this room for over a year. It was always dull !
Hurray to us !!!
 
When we have time we could try a programming game, KoTH or something.
Be right back, caught myself a robo.
 
we must conduct events in this room
may be small programming events
challenge java programmers
 
3:01 PM
I like that!
 
something similar to hackathon
 
Yeah, why not!
 
You need advanced and beginner competitions!
 
Or even a simple KoTH like building a bot implementing an interface, and have a main engine to interact the bots with eah other until one of them runs out of health..
 
@Kiheru What say ?
 
3:06 PM
I have 4 children, until 6 weeks ago, 3 lived at home. I'm used to keeping the sound off on my computers….Today it's on… My machine is very noisy!
 
@Uni we can make them write anything. From simple API's to some useful desktop/webapp
@Karl is that a good thing or a bad thing ?
 
API's?
@ItachiUchiha Weird thing!
 
but we must have some bounty/gift to attract people
 
Offer reputation :P
 
API's are normally termed as libraries
Bingo !
 
3:09 PM
Welp, I'm screwed!
 
Reputation would be a great thing to offer to beginners
 
(cough cough Karl)
 
LOL
You called?
 
but I am skeptical, if that wud attract xp'd devs to it
 
How would you judge it?
A: I write some code…It works, so I submit it.
B: Kiheru writes code. it's 10% smaller, and 20% faster.
C: I actually got help from Kiheru
Who gets the rep?
 
3:14 PM
the code must be optimal
 
At the end, if you're enjoying it, time is not wasted.
 
memory and speed both will count
 
Beginners don't optimize.
 
I was just thinking about this as well. Maybe we could establish score as a separate aspect. If you use standards like efficiency and the characters spent in source code, the more experienced devs would obviously get a significant advantage.
 
true
 
3:18 PM
What about the ugly people in this forum?
Will I have ANY chance?
 
you can try ;-)
 
Regardless, you will get better. I don't see a need to have our first Java Room Contest at ragequit hardcore difficulty anyway.
 
That might be above my skill level….
 
then we can conduct weekly/monthly contests
we can start with a simple contest with 100 bounty
 
Sponsored by @ItachiUchiha.
Just kidding.
 
3:25 PM
we can start with beginner level questions, this will attract the much needed crowd..
 
"Todays contest: 'How stupid can we make Karl feel' 'Write code that compiles and runs!'
 
nonono - "Print "Hello World!" in ASCII"
 
lolz Karl
 
Biggest ascii text wins :))
 
you underestimate yourself
who knows the next winner might be you ;)
you underestimate yourself
 
3:26 PM
ASCII - A Stupid Code, I Imagine!
 
I would be more than glad to sponsor
 
[Yes, I know what ASCII is, but wouldn't get the laugh]
Seriously, I'm willing to get creative! I've put sub-routines in DOS .BAT files that are called from multiple places and actually return!
 
Don't you love it when stuff actually works?
Actually, that was what got me into programming. If I didn't get the enlightenment from my "Hello World!", I probably wouldn't be here right now.
 
Back when I started, there were computers in my middle school and students that were willing to show me how to program. There were no disk drives [floppy, or hard]
When I started, There was no "Hello World", but there were line numbers in BASIC!
 
@Uni I have a great idea. We will ask users to answer a question and the prize money will be divided. The winner will get a bounty from the room. The runners up will get 50 reputation amount of vote up from the members of the room.
 
3:35 PM
@ItachiUchiha So... we rebuild the popular show where people answer questions for entertainment?
 
this way everyone wins
runners up can be fastest 10/20 participants
 
brb
 
kks
 
I'm back!
Did anybody miss me?
 
@Itachi did
 
3:38 PM
:)
@Unihedron Why didn't you?!?!!?!?!?!!?
Oh yeah, you're smart!
 
well its not a show, but a contest
why would people participate without rewards ?
and deserving candidates should be rewarded
 
I agree!
I suggest plotting a dramatic storyline.
 
that was a suggestion. I am open to other suggestions as well
as in ?
sounds interesting
 
4:22 PM
@ItachiUchiha Give rep to me!
Or did you want suggestions for the contest?
 
4:36 PM
Oh, you still interested in the userscript, @Ita?
244
Q: AutoReviewComments - Pro-forma comments for SE

Benjol No more re-typing the same comments over and over! This script adds a little 'auto' link next to all comments boxes. When you click the link, you see a popup with 6 configurable auto-comments (canned responses), which you can easily click to insert. This script was inspired by answers to thi...

 
5:29 PM
Anybody here know anything about Android Studio?
 
not me
i knpw its based on IntelliJ
 
I like trains.
 
I like women!
I found what I was going to ask...
Now, I have another question...
 
dont ask to ask
 
5:52 PM
Hi guys
I'm gonna cry :(
ArrayINdexOutOfBoundsException :'(
Anyways how y'all doing?
 
Stop going out of bounds!
Simple!
 
@Karl it goes out of bounds only at the edges
in the middle it works
I know why it is but I don't know how to fix
because I'm checking to spots
 
It can't go out of bounds in he middle.
 
if either is blank I can move
but the problem is at the edges it checks both
if one is not found it gives outof bounds
but I'm using || it shouldn't give out of bounds
 
You need to test to make sure you don't go out
 
5:54 PM
:S
What's the difference between | and || ?
 
|| means or.
 
is that what' I should use?
here's my snippet
if(grids[i1][j1] == grids[i-2][j-2] || grids[i1][j1] == grids[i-2][j+2]){
//do the jump
}
problem is this
if only grids[i1][j1] == grids[i-2][j-2] exists it gives the out of bound
:S
 
Check the numbers before you check the grinds!
 
what numbers?
if(grids[i][j].getIcon() == redPawn  && (grids[i-1][j-1].getIcon() != null | grids[i-1][j+1].getIcon() != null )){
			if(grids[i1][j1] == grids[i-2][j-2] || grids[i1][j1] == grids[i-2][j+2]){
				if(grids[i1][j1] == grids[i-2][j-2]){
					if(grids[i-1][j-1].getIcon() != grids[i][j].getIcon()){
						grids[i-2][j-2].setIcon(grids[i][j].getIcon());
						grids[i][j].setIcon(null);
						grids[i][j].setBackground(Color.BLACK);
						grids[i-1][j-1].setIcon(null);
						grids[i-1][j-1].setEnabled(true);
 
i1 j1 i-2 j-2 j+2
If ANY go outside of the grid, you don't want it!
Let's assume it's 12 wide.
J can be 11, and still move farther up, but cannot jump, J can only be as high as 10! [J+2]
Same if going the other way, it cannot be negative!
 
00:00 - 18:0018:00 - 00:00

« first day (1416 days earlier)      last day (3520 days later) »