« first day (1621 days earlier)      last day (3318 days later) » 
03:00 - 17:0017:00 - 00:00

3:26 AM
Who's here?
 
3:43 AM
just me?
 
3:54 AM
seems like it
 
4:27 AM
O /
 
4:38 AM
still here Gem?
or anyone?
Why isn't this printing the output
Scanner input = new Scanner (System.in);

int total = 0;
int grade;
int average;
int counter = 0;

while (counter < 10); {
grade = input.nextInt();
total = total + grade;
counter++;
}
average = total/10;
System.out.println("Your average is " + average);
}
 
ASR
5:02 AM
@mikeeustace remove ; beside while
 
 
2 hours later…
6:43 AM
Good morning, Java!
 
ASR
@OlegKuznetsov gm
 
morning!
 
StackEgg, eh? :)
 
Hi all good day, how to store an string value in one jsp and acccess it in al other JSP
 
ASR
session.setAttribute("test","test");
try
session.getAttribute("test");
:22427593
 
6:51 AM
i tried this thing but the problem is , i am retrieving the session variable in all jsp to verify the user_type but at some time session becomes null
 
ASR
@greenhorn ok
 
@ASR why does it becomes null and how could i solve this?
 
ASR
@greenhorn no idea, check session is null or if not proceed
 
@Gemtastic Hi
 
ASR
@greenhorn you are creating session?
 
6:58 AM
@greenhorn hello
 
@ASR can't understand your words say it clearly
@Gemtastic how do you doing man!
 
Doing alright I suppose
 
ASR
by default, session is created for you by container.
request.getSession().setAttribute("usertoken","authenticated");
 
@Gemtastic i am facing an issue in sessions , actually i am retrieving the session variable in all jsp to verify the user_type but at some times session becomes null before its expiry
@ASR i manually stored some values in session and accesing it from everywhere i needed
 
@greenhorn those are a bother indeed, but I don't know anything about JSP so I can't help you
Also, if you want someone to be able to help you you should post some code. As it is now I could say "Well I guess you put an extra character in there somewhere." That COULD be a cause. But I wouldn't know, because I can't see the code :P
 
ASR
7:15 AM
@greenhorn change scope from session to application
 
session.jsp

<html>
<body>
String USER_TYPE = (String) session.getAttribute("user_type");
if (USER_TYPE == null) {
//code
}
</body>
</html>

file.jsp

<html>
<body>
<jsp:include page="/Access/session.jsp" />
</body>
</html>
i included the session in file.JSP so every time control goes on file.jsp the session.jsp will be included and session will be checked . Sometimes the variable user_type becomes null when control goes to session.jsp this is my problem
 
ASR
7:33 AM
@greenhorn try this <%@ include file="abc.jsp" %>
 
@ASR will it fix my issue, how?
 
ASR
@greenhorn I am too beginer, I guess
 
@ASR cheers
 
ASR
@greenhorn :) cheers
@greenhorn where are u from?
 
India
 
ASR
7:44 AM
@greenhorn where is in india?
 
TamilNadu
 
ASR
@greenhorn wow nice :)
 
@Gemtastic How are you doing man?
 
@SecondRikudo Not so good I suppose since I'm still not done :/
 
What are you lacking?
 
7:59 AM
Statistics and some buttons
I think fingers crossed I'll finish by tomorrow
But it doesn't seem to affect my chances at a job though. Got another meeting booked on the 14th :)
But first! Shower!
 
8:40 AM
Morning!
 
Good Afternoon!
lol
 
Morning Uni
How do you indend to troll us today?
 
I'm sure you have SOMETHING for the day ;P
 
good morning
 
fge
9:04 AM
Moo
 
moo
 
Morning
 
reminds my grade 1 computer classes
 
9:25 AM
@Unihedro - I've just seen a notification: a few days ago you said new boston tutorials sucked (or something like that). Why do you think so?
 
@mikeeustace I was so shocked that you even thought of the other way possible (that thenewboston doesn't suck) that I fell off my chair. At the same time, I accidentally bit my tongue out of paniking and it was so painful that I hallucinated.
.. out of dire pain
well done
 
haha. But why?
 
It's not a joke.
 
I learn well from watching videos and coding along with them - any recommendations?
 
yeah.. me too... he is a good teacher
 
9:29 AM
Mar 5 at 10:20, by Unihedro
My rule of thumb: If it's a video tutorial, it's probably crap.
 
okay...
 
Jan 11 at 18:21, by Unihedro
@Mike First things first: Never rely on video tutorials unless they are from official sources.
Oracle has video tutorials. Those are pretty critical and reads like JLS, but they don't suck.
 
JLS = ?
 
Java Language Specification
 
Alright, I'll check them out, thanks.
and, what does "resource leak: input is never closed" mean?

The line of code it refers to is
Scanner input = new Scanner (System.in);
 
9:36 AM
Are you assigning it to somewhere static?
The scope of where input is will cause System.in to be left open even after the thread is sleeping, when the program stops, etc; that's what a resource leak is
In computer science, a resource leak is a particular type of resource consumption by a computer program where the program does not release resources it has acquired. This condition is normally the result of a bug in a program. Typical resource leaks include memory leak and handle leak, particularly file handle leaks, though memory is often considered separately from other resources. Examples of resources available in limited numbers to the operating system include internet sockets, file handles, process table entries, and process identifiers (PIDs). Resource leaks are often a minor problem, causing...
 
fge
<--- documenting
(and waiting for a certain email from a certain someone)
 
~cough
 
9:59 AM
=javadoc Stringbuilder
=about
 
still dead
get norde
also needs a capitalized B
 
0
A: Bukkit broadcast text

UnihedroIf you're using Java 8, you can use a handy method with Collectors: Bukkit.getServer().broadcastMessage( ChatColor.RED + Arrays.stream(args) .collect(Collectors.joining(" ")) ); Otherwise, iterate through the array and use a StringBuilder to concatenate the elements...

Wow, haven't written anything on SO in a while
I hate my school.
s,my,,
 
Sorry - back now.

Not assigned as a static. Here's the code.

http://pastebin.com/TQxPpgWM
 
I think the loop is ticking off the compiler warning.
Does try (Scanner input = new Scanner(System.in)) { /* The other part of the code here */ } solve the problem?
 
yes. Thanks a lot
what do you mean 'ticking off compiler warning'?
 
10:17 AM
hi
 
10:35 AM
anyone type faster and faster and faster if they listen to youtube.com/watch?v=w8YM22wqFkw
 
@mikeeustace ... negative. Sorry.
 
Good Afternoon all
 
It's too distracting.
Hiya @Shyildo
 
@Unihedro Thanks
 
Hi all ...
 
10:48 AM
Hiya @deadlydragon00!
 
Hi @Unihedro :D
 
@deadlydragon00 heya
 
Hi @ItachiUchiha :D
 
10:59 AM
I will be Joining America's Got Talent , pls support me. I'll be singing "Another one bytes[] to dust".
5
 
@deadlydragon00 You'll have my vote!
 
@deadlydragon00 :D
 
april fools hahaha
 
:[
 
11:04 AM
@deadlydragon00 XD
 
Another Byte[].toString();
 
Ago
I have a code, which does calls Main.bar()
Main is imported as: com.foo.*;
now the compiler says Main does not have method bar(), but it does. If I change the call to: com.foo.Main.bar(), then it works
question, how can I detect, which "Main" is used during the compile? it seems that some classpath jar-file might have Main and this is used.
 
(I know that won't compile)
 
11:05 AM
@SecondRikudo XD
 
It's old, but I can't stop laughing XD
 
And crying ;P
 
@Ago Can you attach the code itself?
I didn't test but it should work
 
@Gemtastic :(
Every once in a while I spend the whole day listening to Pokemon battle remixes while I work
 
@SecondRikudo O_o xP
 
Ago
11:07 AM
@Unihedro ok, will put it somewhere, just a sec
 
@SecondRikudo Me too. Only it may be from my 3DS, because I'm playing the game...
 
@Gemtastic You have a 3DS?
 
Wikipedia fundraising on april fools?
 
11:08 AM
@SecondRikudo Yep ^^
 
@Gemtastic OR/AS?
 
They had it on sale christmas 2013
@SecondRikudo Wait, I'm supposed to know that aren't I?
It's the connection thingies?
 
@Gemtastic Yes, you are.
@Gemtastic Not, it's not.
Omega Ruby / Alpha Sapphire
 
Then I don't know XD
Ah, no, pokémon shuffle :X
Because it was free
 
11:10 AM
I do however have gold on my game boy color ;O
 
Did you play the mainstream Pokemon games?
 
Not sure which one those are... I played red/blue/yellow and Gold/silver
I couldn't afford more :I
 
@Gemtastic Yeah, those
There's an entire series of mainstream
 
yes, there's an older ruby/sapphire version too.
Then there's X/Y
 
I play Pokemon on Emulator, who needs expensive 3DShaha
 
11:13 AM
red/green, blue, yellow, silver, gold, crystal, ruby, sapphire, emerald, firered, leafgreen, diamond, pearl, platinum, heartgold, soulsilver, black, white, black2, white2, X, Y, omega ruby, alpha sapphire
 
So many I haven't kept up with >_>
 
@deadlydragon00 I'm not aware of a playable 3DS emulator yet.
 
But when I get a job I can buy them all! MWuahaha
 
@Unihedro can we compile the code what we write in hastebin ? i never saw it before
 
My better half played the white/black on an emulator
 
11:14 AM
... I've already beaten it once and I don't want to work it all over again :p
 
@SecondRikudo your forgot Heart Gold and Soul SIlver
 
But maybe they were plain DS
 
@JudeNiroshan no hastebin is not an online IDE
 
I always Defeat elite 4 with 3 pokemons only no cheat
 
@deadlydragon00 Right
 
11:15 AM
@Unihedro is it only to share code in a neat form ?
 
@Unihedro (y)
 
Ago
@Unihedro hastebin.com/raw/ibohupited <- several files and output, put it all together.
 
Oh, you're using javac
It's not in scope, you gotta link it
-classpath com/foo
I think
 
Ago
even if I import it? the test is in folder x, the Main is in x/com/foo
the thing is, if the name of the Main class is something else (Main2 for example), it works
 
11:24 AM
@Ago Importing doesn't magically give it scope unless it forces the class to be loaded, which the asterisk doesn't.
Did you try to quote from the future?! O_o
 
Second has a clairvoyance
 
fge
Hehehe
(those are the ones I have written :p)
 
hi
 
> Path assertions. (Francis Galiegue)
^^ gZ!!
 
evrybody looks like sleepy lol
 
11:35 AM
brb after 17 hours :D ... Bye All
 
@gihan Hiya
 
@gihan halo... kohomada mchn?
@gihan you are from Sri Lanka right?
 
11:57 AM
IT IS BEING IMPLIED THAT I'M GETTING PUNCHED!
 
@Gemtastic why?
 
@ItachiUchiha The abridged episode
 
 
1 hour later…
ASR
1:04 PM
@Simmant hi
 
Version Control at it's finest...
syncing a whole directory to a windows network share
 
fge
rsync?
 
hii @ASR..
 
Got access to chat rooms...#noob
 
@fge nope... manually via sudo cp -r DIR ~/shares/transfer/username/DIR
 
1:16 PM
@learner Welcome! :)
@Vogel612 Y U NO rsync?
 
because Creating a Branch in SVN for the new version is scaring the carp outta my senior dev hella inconvenient versioning strategy
 
@vo
@Vogel612 thanks, but i dont see any technical chat here ?
 
@learner try again....
wrong person...
also... sometimes it is technical sometimes it isn't
 
@Vogel612 Drop SVN
 
WHAT DO YOU THINK AM I SAYING SINCE DAY 1 WORKING HERE!!!?!?!???!
/rant
 
1:18 PM
@learner Welcome aboard!
@Vogel612 "Pay raise plz"?
 
meh. pay is good
maybe not good enough for how borked the project is, but then again I shouldn't really complain
it's in good shape for it's age
 
The anime for DBZ is pretty hilarious... Why is Goku imagining dead Vegeta naked? :')
Goku logic: I'm on the brink of death. Better hallucinate a naked Vegeta having a motivational speech.
Got a pure heart to turn super sayan? Pure gay maybe ;P
 
@Gemtastic How many Saiyans does it take to switch a light bulb?
 
5; Goku, Vegeta, Gohan, Trunks and Goten. It takes 6 episodes and Krillin dies.
 
@Gemtastic :P
 
1:25 PM
Hello, GridBag...
 
@Gemtastic a lot of things bothered me about DBZ
But there was always this one thing that I never could forgive and forget.
At the end of the Cell saga, Trunks goes back to his own time, then 1HKOs the evil 17 and 18 in his timeline.
 
@SecondRikudo And what was that?
 
Remember that?
 
In the manga he kinda just goes back and doesn't exist any more
 
He trained so hard in the cell timeline, that he manages to easily beat them
 
1:26 PM
haven't gotten that far in the anime yet
 
@Gemtastic Wow, really? XD
Well, you've read the manga, so it isn't that much of a spoiler
In any case, if you managed to train hard and beat the androids on your own when you got back
Why the hell didn't you do it sooner?!
Of course there're the classics too
Piccolo blowing up the moon at under 1000 energy, With no negative repercussions to the planet whatsoever.
 
@SecondRikudo can you gave me the link for that dbz
 
Yep. That bothered me too
 
@deadlydragon00 Link what?
@deadlydragon00 No idea where to find it XD
You may want to ask in the anime room

 Maid Café (メイド喫茶)

Welcome back, my Master! (お帰りなさいませ、ご主人様!) Sit wherever you'd l...
 
@SecondRikudo or muten roshi blowing up the moon with a single kamehameha when goku runs wild in Dragonball
 
1:30 PM
nice
 
@Gemtastic to be fair, DBZ is over the top, sure. But there are single characters in other serieses that can take out the entire DBZ universe on their own XD
The Magic Gods in Toaru Majutsu no Index had to infinitely divide their power, just so that our universe doesn't explode by their mere presence.
And they were beaten XD
 
@SecondRikudo SPOILER ALERT
 
@deadlydragon00 You read index?
 
So what do you care? XD
 
1:36 PM
I already see DBZ ... nothing less
 
I'm the only one here crazy enough to read it
 
no you aren't... but I am currently watching Cross Ange so I don't get to reading interesting stuff..
 
2:21 PM
Hellsing Ultimate is a good one.
<- Started watching it
 
fge
2:34 PM
Personally I don't really like it, but meh
(and I dislike dbz)
 
Looking for a tool to create a documentation for a REST API
Anyone familiar with such a tool?
 
What tool @SecondRikudo ? for usecase and diagrams?
 
@deadlydragon00 Yeah, to document the endpoints, the parameters they accept, what they do, etc.
 
I used Visual Paradigm
 
fge
@SecondRikudo swagger?
 
2:44 PM
@fge Swagger looks good, thanks
 
 
1 hour later…
3:52 PM
Hiya @Sam!
 
Sam
Hiya @Uni!
the lurker returns...
 
quietly looks around; realizes that it's so quiet that even the active participant feels like they're lurking
 
Sam
lol
 
fge
@Unihedro it's not like you lacked of things to do, remember?
But I guess at this point I should stop hoping
 
@fge I will never lack things to do. It'd take five minutes to even count them all...
Again, I hate my school.
For putting me in demise and annoyance to go through.
Also, ASP.Net chat room's facebook page is pretty.
 
Sam
3:55 PM
@Unihedro Who wouldn't?
 
tsk :p
BTW, seen Tidal?
 
Sam
Me?
 
in Off the record on The Stack Exchange Network Chat, 23 hours ago, by Unihedro
Tidal, the new music streaming thing - used it? what do you think?
 
Sam
In that case, nope.
 
> Introducing the first music streaming service that combines the best High Fidelity sound quality, High Definition music videos and expertly Curated Editorial.
 
Sam
3:57 PM
Ugh.
It no freez.
 
It's not free though. xD
 
Sam
I'll just stick with ripping YT vids for now.
(jk)
 
I really should take the time to download the tracks I frequently listen to instead of having to use youtube. I needz bandwidthz to do thingz
 
Sam
You could just lower the vid quality.
Seeing as audio/vid quality are now independent.
 
It resets in the next video unless i use a playlist.
Also, that resets after the second iteration in a loop if I were to use youtuberepeat.com
 
Sam
4:01 PM
So why not create a playlist and use a chrome extension?
 
!!
 
Sam
It has a nice "night theme" too.
 
Sam
I actually have that link bookmarked xD
 
hey guys, anyone that uses glasses for eye strain do they help in reducing it? I'm thinking of buying a pair..
 
4:08 PM
@Brunaldo meh
I wear glasses because I have weak vision, and glasses are bulky and annoying and inefficient and falls off
Be glad you don't have to wear glasses.
 
yeah but i've noticed my eyes strain a-lot after a couple of hours
 
@Brunaldo dont wear glass if not necessary...
 
Sam
I don't need glasses, by eyes are rectangular.
 
Lower the brightness of your display or something...
Or just take breaks and don't tire yourself
 
Sam
And/or get an anti-glare cover.
 
4:10 PM
this cheap screen
 
and install f.lux if you're on windows
 
i've got it ^^
on ubuntu*
 
must... beat... pcg
 
Sam
I'd speak with an optician if I were you.
 
How uni?
 
4:11 PM
Build better bots :D
 
@Sam that's what I'm gonna do thanks
 
i can haz javascript!
 
Whats the price when you defeat those guy?
 
nothing
 
4:13 PM
:D
 
it's just fun and games, and PCG just want to win so badly, it feels not right not to try against :D
 
fge
 
can you do DDS unto them uni?
 
I think JavaFX is pulling an april's fool joke on me...
 
@deadlydragon00 ddos? that's illegal
and very 1990
I also really don't want to pick up another fight. :p
 
4:18 PM
:D
 
4:32 PM
Hi, would anyone happen to know how to install JBI Components in GlassFish 3?
 
fge
Not me
 
me neither
 
Strange bugg...
 
@Gemtastic ??
 
    public void loadCar(CarRecord r) {

            ModelCRUDService modelCRUD = new ModelCRUDService();
            MakeCRUDService makeCRUD = new MakeCRUDService();

            this.displayedCar = r;
            displayedModel = modelCRUD.read(r.getCarModel());
            displayedMake = makeCRUD.read(displayedModel.getMake());

            this.plates.setText(r.getLicensePlate());
}
That doesn't work ^
but this does:
public void loadCar(CarRecord r) {

        ModelCRUDService modelCRUD = new ModelCRUDService();
        MakeCRUDService makeCRUD = new MakeCRUDService();

        this.displayedCar = r;
        displayedModel = modelCRUD.read(displayedCar.getCarModel());
        displayedMake = makeCRUD.read(displayedModel.getMake());

        this.plates.setText(displayedCar.getLicensePlate());
}
 
fge
4:41 PM
Uh?
Why are you doing it like that?
Why don't you just do a query joining the necessary table and return a POJO with the full car description?
THis is JooQ, you know
 
Because I don't get a POJO with the full car description
In other words, I suck
 
fge
Well, create one
 
Too much work
 
fge
...
Ohwell, do as you wish
 
I had to make a makeshift POJO though for some things
 
fge
4:43 PM
Well, sure
I told you that, didn't I?
DO NOT be obsessed by CRUD
There is not only CRUD in life
 
I just call it CRUD
Because there's a thing called CRUD
 
fge
There are not only your individual tables
There are all the queries you can make from those tables
Map them to POJOs
 
Well, I don't know how to map jooq to my Pojos
I'm almost done now.
 
fge
Use a RecordMapper
I also told you that
 
Well, it got lost because I couldn't understand you.
I can't remember what I don't understand
 
fge
4:46 PM
Then why didn' t you stop me and ask me?
 
Either way, I still think the bug is weird.
@fge Because whenever I do you halt my production with several hours
Oh well, sleepy time
 
fge
That is the strength of JooQ
 
03:00 - 17:0017:00 - 00:00

« first day (1621 days earlier)      last day (3318 days later) »