« first day (1567 days earlier)      last day (3385 days later) » 
00:00 - 19:0019:00 - 23:00

12:27 AM
Hi guys
Can i ask a question about stoping Threads
 
12:47 AM
Sure, @Brett.
=about
 
OakBot v0.0.2 by Michael | source code | built: About 5 days ago. | started up: About 4 days ago.
 
Hi im having real trouble stoping a Thread
I have tried the orical examples..... all night
 
To stop a thread, call Thread.interrupt()
=javadoc Thread#interrupt
 
@Michael void interrupt(): Interrupts this thread. (1/7)
 
Yes i been doing that for hous and it still wont work
 
12:59 AM
Calling interrupt only works if the thread is in an interruptable state. For example, in the middle of a Thread.sleep() call.
 
I have posted my attempt as a question.. i think im miss understanding somthing
 
If your thread is doing CPU-intensive processing, then calling the "interrupt" method will not work.
Instead, you will need some way of knowing that the thread has been stopped.
 
lol im so lost
i just copying a file
 
It's not easy.
 
 
4 hours later…
5:00 AM
1 message moved to Trash
 
5:54 AM
"Interface has static constants and abstract methods only."
Is this statement correct?
 
6:07 AM
Pretty much
All the instances defoned in interfaces are public static final
And because methods cannot have the method body, you can call them abstract
 
'abstract methods' correct? abstract methods are different from method signatures, right?
oops, im asking just that
 
No it isn't
 
@reversiblean: Not necessarily. Interfaces can specify default implementations of methods.
As noted in the javadocs of @FunctionalInterface an abstract method is a method declared in an interface with no default implementation.
 
6:24 AM
okay, thanks
 
user4202350
Hi Guys I am back,.
 
Oh, I should also note that this is added in Java 8. The statement holds for any version before that.
 
user4202350
Good Morning @Unihedro
 
interface A
class B implements A
what is the difference between
A test = new B();
B test = new B();
 
Well one gives you an A, the other gives you a B.
In the first case test is A of a value of object of type B, but test is still A.
1 message moved to Trash
 
6:38 AM
can you direct me to a reference?
 
About fields?
 
user4202350
I am sorry Unihedro.
 
user4202350
You are good guy.
 
nope about interface instance declaration... discuss that A and B fact
 
6:42 AM
Heya All
 
i still dont understand .. Animal mammal1 = new Mammal() .. Mammal mammal2 = new Mammal()
assuming mammal implements animal
what is actually the difference between mammal 1 and 2?
 
6:54 AM
mammal1 is Animal @rev
Hiya @The
 
user4202350
7:06 AM
Hiya @Unihedro Heya @TheLittleNaruto
 
What's up School boy ? @Uni
Hey @ShaU
 
user4202350
Hey @TheLittleNaruto I am Back
 
Glad to know that :)
 
user4202350
Thanks , I hope chat owner also feels same.
 
 
1 hour later…
8:45 AM
Good morning, Java!
 
Morning, @Oleg!
 
sigh yet another WTFriday...
 
9:01 AM
I woke up lefthanded today..
 
9:12 AM
Hello Everyone
 
@SudhanshuSharma Heyo!
 
fge
Moo
 
fge
9:34 AM
<-- still has no friggin idea how he's gonna teach TDD
Uhwell, maybe I have one actually
 
user4202350
#NoRoomforHonestMen
 
@fge Teach Fear Driven Development instead! ;)
 
@fge Don't use a pre-created project
 
fge
9:51 AM
@ItachiUchiha yeah, I've had another idea of a project for quite some time, so maybe it's time this project came to life :p
Before that however there's java.nio.file part 2
And if demand there is I might even reschedule part 1
 
user3667171
10:04 AM
Hello Seniors!
 
feels left out being a junior
 
10:30 AM
hello, good afternoon there
 
10:42 AM
@fge Just go demonstrate how you build a text game or something, it doesn't have to be severely structured to be educational :p
 
fge
A text game.?
I don't do text games
Anyway, that's a rather hard course to setup so first of all I want to finish java.nio.file
 
11:04 AM
For TDD, you need to give us a project, and ask us how we would approach creating it. Then you can explain, how it can be done using TDD >>>> @fge
 
Eh, too interactive.
 
Yeah
You must have attended the second session of file.nio part 1. It was interactive and too good
 
fge
As to this one, well, as I said I can redo it again; I have no idea however as to how many people would be interested, so...
 
fge
11:29 AM
(meh, a crash course on try-with-resources would be nice too)
 
fge
12:17 PM
room is pretty dead at the moment, huh
 
yes, it is
 
I have a hard time typing
So I'm not too talkactive
 
Hiya
 
Hiya
FRIDAY!!
 
Weekends are annoying as they are a bad wait before the next week so I can get to know if my bf is getting a job or not... We're running out of money >_>
 
12:25 PM
:o
 
12:46 PM
I don't always get compliments, but when I do, they're really weird.
 
as in?
 
The one I got just now was for describing where I'm in pain
The doctor felt a need to compliment me on that
The other ones I don't wanna share
 
fge
Uh?
Are you called Desdemone or something? :p
(just joking, of course)
 
I don't know who that is
 
Othello's wife
seems like the name means: "pursued by misfortune"
 
12:56 PM
You know, apart from that I actually feel pretty happy all the time, I wonder that too
but meh. I get to become a programmer now so I've got that thing going for me which is very nice!
 
fge
Heh
So, what about a crash course on try-with-resources so that you never get resource handling badly? :p
 
I already got that crash course
From the one teacher I had which was a good one
I had to send him a thank you message last night because what he taught me is what makes me able to keep going on my own.
 
Great to know!
fge: teaching Java since 2015
 
Sam
Hiya
 
Hiya!
 
1:00 PM
fge: the next go to for Java tutorials
 
fge
Hmm, so you know about suppressed exceptions then? ;)
 
Eh.
I don't.
 
fge
Well, that's at the core of try-with-resources :p
 
waffle.io looks awesome.
 
Sam
The name alone is awesome. ;)
 
1:06 PM
"How did your brain even learn human speech?"
 
Junior has nothing ready to be closed. :/
 
:/
 
user4202350
Chat rooom is pretty dead. Come on Join with me to make it alive again...!!!!!!
 
@Vog: Have a look at the Waffles integration I made for Junior: waffle.io/Vincentyification/JavaBot
 
user4202350
@All_Java_Bored_members. Join me to say ... HEY!!!!!!!
 
1:17 PM
Hi room... I have a Spring application using JAAS to authenticate & authorize. Now, I'm trying to add some REST API to that application, so others applications in my solutions uses REST to use my appl'n for auth purpose. Any idea, how to do this?
 
fge
OK, if you want a crash course on try-with-resources and suppressed exceptions, it's here :)
 
Eh, it's probably going to take up most of my bandwidth, but I'll join :p
 
I'll make my REST api accessible by a particular role, so other application uses a particular username/passwd in http basic auth to reach my rest resource. I want to use the details the REST api gets from the other applications to create new session so, when those applications interact with each other, can validate the session using my auth application.
 
fge
@Gemtastic interested?
 
@fge You should review those chat flags :P
 
fge
1:21 PM
What chat flags?
 
It's the blue number to the top left of your miniature avatar to the left of your speech box. It's in a different corner than that of the ping notification.
Warlight anyone?
 
user4202350
yES
 
user4202350
Hey Guys Please someone talk to me
 
Sam
@ShaU Hello.
 
user4202350
1:27 PM
@Sam Hi Sam,
 
user4202350
Glad you talk
 
Sam
Yeah.
Sometimes it's a matter of getting me to shut up that's the problem. ;)
(Unless I'm really busy coding/etc.)
 
@Sam Oh don't worry, you'll regret saying that. This other user has severe history.
 
Sam
o_o
 
♪ ♫ ♪ ♬
@Sam: I approve Phamhilator#69.
Just saying.
 
Sam
1:32 PM
Erm.
I can't remember which one that was.
goes to check...
Oh.
:D
 
You might also want to configure the settings so it doesn't automatically create badges.
 
fge
@Unihedro i.imgur.com/2y8JYhW.png <-- you probably have that option selected
I unselected it
 
Oh, thanks!
 
Sam
@Unihedro Badges?
 
Yeah.
 
Sam
1:34 PM
Or d'you mean labels?
 
Actually, it already created them.
 
Sam
Yeah, I noticed.
 
@fge @uni Someome record it
I want to have a look at it later
 
@ItachiUchiha ... It already ended quite a while ago.
 
A short one?
@Uni you should really add them to the room events, a day before they start :P
 
1:42 PM
@ItachiUchiha Ok.
 
Unihedro has added an event to this room's schedule.
 
fge
<-- never schedules anything more than a few hours in advance, meh
 
I scheduled it to happen every day, I hope that's accurate, considering that you never gave me a schedule. :P
 
@fge give us a schedule :P
 
fge
The problem I have is the different timezones and who wants to attend
 
1:44 PM
@ItachiUchiha Oh, I'm sure fge can educate us whenever possible and as much as he have time to invest for.
It's not like we're a school.
inb4 uni rants about school.
We could try set up something like sunday hangouts or something.
 
Yeah, but having a session every now and then will make people miss session and he will have to redo it for others, which make things diff for him
 
Alternatively
 
@Unihedro Weekend Hangouts :D
 
We could build a robot that watches the chat for hangout links, then joins with a bot Google + account and records it automatically!
 
@fge sorry, was busy applying for jobs
 
1:46 PM
I recorded the session which he gave yesterday, but the voice has a lot of noise
 
fge
Meh, sorry, I don't have a professional recording studio :p
 
@Unihedro Nice, idea! But my laptop needs to be switched on for it all the time, which I don't like
@fge You should try the software I pinged you yesterday
I will help you record your session
and later, whoever misses it can just watch the video
 
@fge Fund raising for fge tutorials confirmed? :p
 
I am in :P
 
fge
Also, I have very, very poor upload bandwidth
 
1:48 PM
@fge Just record one session with it and we will see how it goes.
 
@fge I probably have worse, yet I have videos on my channel no problem.
 
fge
But it sure is required that I have at least a good mike; right now I use my laptop's, which is, well, average
Meh
 
Meh indeed.
 
fge
Anyway, I need to be off for an hour or so
 
Seeya
 
1:50 PM
Off he goes :)
 
If you like to live on the bleeding edge, we've just released our first Linux Desktop Beta deb package https://github.com/gitterHQ/desktop #helpwanted
Aww, so disappointing. I cannot start a Hangout with myself.
 
Why would you want to do it in the first place?>
 
Reasons.
When are the weekends? My timezone is unreliable.
 
Why do people want to write server using JS :/
JS is turning into Java. One language to do it all.
Hope it doesn't fail like Java Scriplets did..
 
@ItachiUchiha JSP?
or what scriptlets?
 
1:57 PM
yeah, scriplets are used to embed java code into JSP (client side)
 
@ItachiUchiha You mean in Node?
 
yeah
 
hi everybody
 
@Unihedro whaaa
where is #43 on the waffle board?
 
It's the same piece as 29, since they're linked. On the Ready column.
 
2:12 PM
ohhh..
 
Did you just swap those two columns? xD
 
didn't see that one..
yes I did
I think ready usually comes after in Progress
 
I was clicking on the frame of 29, and it suddenly moved, so.
 
that said, please review ;)
 
It reflects instantly. It's synchronized. xD
@Vog: Does LOGGER.severe and LOGGER.log(Level.SEVERE actually have a difference? :o
 
2:16 PM
nope
 
fge
2:46 PM
Back
 
Welcome back!
 
fge
So, next session 1am Sat for me, eh
Well, that will be java.nio.file part 2: attributes, filesystems, providers, filestores
 
Sounds good for me :D
@uni, make the room event!
 
fge
Well, the time can be different too
 
@Gemtastic Not without a specific schedule... Our event system doesn't take relative time, only standard times..
 
2:54 PM
aww
 
"1 am Sat for me" <- lol
 
+1 GTM
Stockholm and paris are in the same zone
 
Unihedro has removed an event from this room's schedule.
 
Name the event... Ugh, naming is hard.
@Gemtastic on which date?
 
fge
Well, what I said above
 
2:57 PM
saturday is tomorrow..
Unless I missed something
 
So 8th?
 
8th is sunday
 
fge
Right now here is Feb 6th, 4pm
Not that I mind 1am
But, uh, as I don't know the tz of other interested parties, that makes it quite hard to find an appropriate time
 
Ok... How long will it be?
 
fge
Not sure... 30 minutes, maybe more
 
3:00 PM
I don't mind making the event take up an entire day.
 
fge
I do :p
 
Unihedro has added an event to this room's schedule.
 
Well, you have an hour. That should be sufficient.
 
fge
Yep
 
:)
 
fge
3:01 PM
Leaves me time to prepare some code :p
 
fge
3:32 PM
wonders about a tutorial on bytes vs chars
 
3:48 PM
The tutorial scheduled for tomorrow, is it for nio file part 2 ?
 
@ItachiUchiha Dunno.
 
May be uni can present something as well ;P
 
how to write quick, unmaintainable code that works
I know! I'll teach how to locate and destroy spam on Stack Exchange.
 
lolz
A session on Gradle, for people who know Maven
 
The problem is that I do not do Gradle.
 
3:53 PM
@Unihedro People from Meta will flood the hangout :D
 
:D
 
fge
@ItachiUchiha yes
 
cool
 
fge
I proposed a title to @Unihedro but he didn't seem to account for it :p
 
@fge Oh? I did not see it
 
fge
3:59 PM
Well, I'll repeat it then ;)
java.nio.file, part 2: attributes, file systems, providers and file stores
 
4:17 PM
Hello,
java.io.NotSerializableException: kafka.producer.ProducerConfig
 
The event is timed at 8.00 am at my time. I usually wake up at noon. So this is a decent challenge.
 
Same here, I sleep @ 3 am, normally
 
fge
Well, I hope you'll be sufficiently awake ;)
 
Don't worry, I can nap afterwards.
 
fge
Title of the event still hasn't been changed
 
4:28 PM
I'm trying to change it. Though, there is no such button in the interface.
 
fge
Oh
 
fge
Well then, scrap/recreate, huh
 
Yeah, will have to do that.
 
Unihedro has added an event to this room's schedule.
 
fge
5:02 PM
This one buggers me to no end
 
> Created by Francis Galiegue 07 Feb 2015 01:00
Impaitent!...
 
fge
5:25 PM
Yeah, I am
 
fge
6:03 PM
OK, more seriously
Would you guys be interested in a tutorial/hangout/crash course/lesson/whatever about character coding?
 
fge
6:26 PM
1
A: Resolving Directory Symlink in Java

fgeIf you want to fully resolve a Path to point to the actual content, use .toRealPath(): final Path realPath = path.toRealPath(); This will resolve all symbolic links etc. However, since this can fail (for instance, a symlink cannot resolve), you'll have to deal with IOException here. Therefor...

 
http://www.commitstrip.com/en/2015/02/06/true-story-a-moment-of-silence/
CommitStrip - Blog relating the daily life of web agencies developers
True story : a moment of silence
CommitStrip
1423247121
 
fge
Yet another example of java.nio.file usage :p
 
I need to crash, so as to attend the files nio session
 
fge
@ItachiUchiha do so ;) See you then!
<-- still hasn't written the demo code
 
6:45 PM
Hmm
 
fge
6:57 PM
eyes @Gemtastic; hmm?
 
I'm thinking about making a virtual pet
 
fge
What? Isn't your bf enough for you?
 
While he is indeed a very needy pet, he's also quite real, not much code in him spare the DNA
 
00:00 - 19:0019:00 - 23:00

« first day (1567 days earlier)      last day (3385 days later) »