« first day (1561 days earlier)      last day (3373 days later) » 
00:00 - 22:0022:00 - 00:00

12:15 AM
Morning
 
@Gemtastic umm... I thought you used Swedish time...
 
@SimonAndréForsberg Yes, but not the swedish day-rhythm
 
fge
Sweden, the next stop of the WRC
 
WRC?
 
fge
World Rally Championship
Traditionally, it starts with Monte Carlo (done), and the second is Sweden
The most spectacular motorsports championship, with undoubtedly the best pilots as well
 
12:28 AM
Oh, sport
Then it makes sense I know nothing of it
 
fge
1:21 AM
Debugger making slow but steady progress
 
nice
 
1:51 AM
Tonight's challenge; starve until 7am
 
2:37 AM
zz
 
hello
 
3:32 AM
hello..
 
hey
 
0
Q: Guess My Number Game in Java

Hassan AlthafBasically, what this program does is that this generates a random number, and asks the user to guess it with multiple chances. So, if the user is close, it says that the user is close, and if the user is not close, then it says that the user is too high/low and if the user guesses it right, it co...

 
fge
4:02 AM
0
Q: Generic GUI background task runner (Java 8+); looking for advice on better documentation etc

fgeHere is the culprit; headers omitted for brevity, and also, see notes afterwards: /** * A GUI-neutral background task executor * * <p>A very common scenario when programming with GUI toolkits is the need to * perform operations in the background without blocking the "UI thread" (this * woul...

 
Don
4:40 AM
Hi
 
fge
5:36 AM
@Don hi (one hour later)
ionicframework.com <-- did you guys know about this?
 
 
1 hour later…
6:45 AM
0
A: Restricting types of fields of subclasses

UnihedroYou cannot* restrict any** fields of which the subclass creates from the parent class. From the Oracle JavaTM Tutorials - Inheritance, it was written that: What You Can Do in a Subclass You can declare a field in the subclass with the same name as the one in the superclass, thus ...

Lol, weird code again.
 
7:10 AM
Heya All
 
Heya!
 
7:32 AM
What's up School boy?
 
Coding.
 
No school today ?
 
It's saturday.
 
Hello
I have a quick question which won't be tolerated on main, so I thought I'd ask here
I'm a C# programmer, not Java. But now I'm at home, at a Linux machine.
 
continue?
 
7:45 AM
I need a small application for personal purposes, all it needs to do is basic CRUD
It would have 3 database tables, connected 1:M, and a handful of lookup tables too
How long will it take in Java to generate a simple interface for CRUD for such a thing?
 
A while.
 
Prototype quality is OK, don't need much covering of corner cases or user friendliness
I know I could do it in under a day in C#, but the new entity framework is really a good thing if your needs are straightforward
I've heard that Java has ORM frameworks too, what would your estimate be in hours?
Or do the Java frameworks require you to write everything by hand?
 
Notice: If without opposition, I will trim the list of room owners by half, as most are added unnecessarily and never show up since.
7
For example, Jon Skeet. Muahahahaha!
 
lol! Do that!
 
Not that soon though.
 
8:03 AM
@rumtscho Do you need a Client UI for the same?
 
@ItachiUchiha I need a UI to get data into the database and also to display them. The display doesn't have to be nice. Web or local desktop is both OK.
 
@Unihedro I need a room owner contest
 
@Unihedro I am going to do the same for J&A room.
 
@rumtscho Use Javafx for UI and basic JDBC for connecting to the database. You don't need an ORM for this plain simple project
 
@ItachiUchiha see, I've never heard of Javafx. I just don't know what's available in the Java universe, so I'm asking here about time estimates before I start learning anything.
Do you think such a plain project could be done in under 15 hours after learning the relevant technologies? If I keep it very basic?
 
8:08 AM
there was a person who was pretty new to Javafx and build a project in a day
Let me dig out the conversation
Dec 9 '14 at 3:44, by MLProgrammer-CiM
From Zero to full application in less than 8 hours. That's what I call quick & dirty
Dec 8 '14 at 22:31, by MLProgrammer-CiM
from zero to JavaFX within an hour
It is pretty easy to pick up
^^ @rumtscho
 
FX really is easy to pick up. Oracle has a lot of guides on it too
 
Thank you @ItachiUchiha
 
@fge The local version over here is slightly unit tested, but I have yet to complete all the tests. That said, I will unit test + document (hopefully) everything when publishing.
 
9:05 AM
Question: If I have types A and B where B extends A implements Cloneable, will a .clone() on B return a type of A as well?
As in, you know, the references of final fields of A working properly as expected.
Eh, not really references, I mean values.
 
Don
9:45 AM
How can check a list containing null?
 
@Don Show the data type?
 
Don
list=[null]
List list = EnquiryService.getQuantityById(50)
return null from DB
further i need to check list is null or not for my rest of codes
@Unihedro ?
 
10:29 AM
@Don Assuming List<Object>, just use !list.contains(null).
=javadocs List#contains
 
@Unihedro I don't know that command. o_O
 
=javadoc List#contains(*)
 
Which one do you mean? (type the number)
1. java.awt.List#contains(int, int)
2. java.awt.List#contains(Point)
3. java.util.List#contains(Object)
 
3
 
@Unihedro boolean contains(Object o): Returns true if this list contains the specified element. More formally, returns true if and only if this list contains at least one element e such that (o==null ? e==null : o.equals(e)).
 
user4202350
10:36 AM
**Goto statements lead to confusion for a programmer. Especially in a large program, if several
goto statements are used, the programmer would be preplexed while understanding the flow from where
to where the control is jumping.is **
 
Hey guys.
Is anyone active?
 
user4202350
Unihedro most active and smart user here!
 
user4202350
@Unihedro @HassanAlthaf
 
I am not smart tho.
I cannot get this
Jframe resized
 
user4202350
Unihedro can solve anything.
 
10:42 AM
I wish I could help you, but I don't know swing
 
@ShaU I meant that I am not that smart. Anyone who knows swing will be able to help me.
I cannot resize my JPanel
My frame is completely black.
Any fix?
 
@HassanAlthaf this.mainFrame.setResizable(false);
 
@ItachiUchiha yeah
?
It will not allow the frame to be resized
However, I have defined a concrete resolution for the Frame
 
@HassanAlthaf this.contentPanel.setBackground(Color.black);
 
Yeah, I did it on purpose to identify whether the Panel is re-sized or not.
But it is not re-sizing and instead, it covers the whole Frame
 
10:50 AM
@HassanAlthaf JPanel is a component of JFrame. Your JFrame is fixed, so is your JPanel
 
What do oyu mean?
 
Jframe is nothing but JPanel + the frame container the 3 buttons
 
Pardon?
Are you saying me to remove the size of the Frame and define it in the Panel?
 
If you want you panel to be resized, you need to make your frame as re-sizable
 
I did try that, sir.
 
10:55 AM
what is your question?
 
I want the panel inside the Frame
To have a set size
But, its size is same as the frame.
I am unable to change the size.
 
yes it will
because it fills the size of the frame
 
But, isnt there a way to set its size?
So that, I can have multiple panels and place something inside them
At different spots?
Sir
 
You can add Panels to the main panel
 
oh
can we resize them?
 
 
2 hours later…
fge
1:29 PM
@Unihedro doing it "before publishing" is often more time consuming than doing it while you develop ;) I speak from experience here
 
1:42 PM
Good morning, Java!
@HassanAlthaf What layout manager are you using?
 
Don
Anybody knows spring here?
 
@Michael Morning!
 
Morning @Uni!
 
^ stats of the owners of the room
Jon Skeet's never been here, despite owning it.
 
Haha xD
 
1:55 PM
@Unihedro tell me... have you reviewed my Pull-Request??
 
@Vogel612 Yes*.
 
It's kinda frustrating to not get a comment or something, and to ask again and again :(
but that sounds good. sooo what's the plan now?
 
Let's merge it!
I'm currently trying to look up that track I really liked. I was coding.
 
lol... pressing the button then
 
(ducks)
 
1:59 PM
Would you like me to review it, @Vogel?
 
too late now
 
xD
 
You can have the next, gimme 2 minutes to get the other changes into a new PR ;)
 
\o/
I think I found out why the javadoc command is so slow
It's iterating over duplicate objects. :/
For example, it will search the "java8.zip" file for the class. It doesn't find it. Then it searches the "java8.zip" file again for the class, and over and over again.
 
2:08 PM
Wait, just discovered a problem.
 
where?
 
@Unihedro Or, use the "^" regex thingy.
 
Anchor?
 
I don't know what it's called. xD
It ensures that the string you're trying to replace is at the very beginning of the text.
See my pull comment.
 
2:16 PM
Ah, I see.
See my pull comment, now.
Everybody quiet! I think the guy with the hat is watching us!
 
ᵘʰ⋅⋅⋅ ʰᶦ
 
Don
@Unihedro Hi
 
shouldn't that rather be sub instead of sup ??
 
I think it's zalgo-font.
 
2:20 PM
Ah, tricky
ᴵ ᶜᵃᶰ ˢᵉᵉ ᵐʸ ʰᵒᵘˢᵉ ᶠʳᵒᵐ ʰᵉʳᵉ﹗
2
 
Uhh, you'll still have the same problem with replaceFirst
 
@Michael nope no more.
 
But... Eh... Yeah
 
@TheGuywithTheHat Ooo cool. Another formatting option to use with OakBot. :)
 
2:22 PM
@Michael I was going to add it into JCE as a side utility class :)
 
why is replaceFirst a problem?
 
I'm currently working on a format builder
@Vogel612 Because it can be anywhere other than the first of line.
 
don't we have something like that in the PrintUtils
 
What's OakBot?
 
So "y!!es" -> "yes"
 
2:23 PM
=about
 
OakBot v0.0.2 by Michael | source code | built: About 2 weeks ago. | started up: About 2 weeks ago.
 
^^ @TheGuywithTheHat
 
@Vogel612 Oh, wait a sec. Nevermind. I think it will work.
 
@TheGuywithTheHat It's one of our chatbots. Its current primary task is for us to point to javadocs and http structure quickly.
 
I think it ignores these messages anyways...
 
2:23 PM
=http 407
 
@Unihedro HTTP 407 (Proxy Authentication Required): The 407 (Proxy Authentication Required) status code is similar to 401 (Unauthorized), but it indicates that the client needs to authenticate itself in order to use a proxy. The proxy MUST send a Proxy-Authenticate header field (Section 4.3) containing a challenge applicable to that proxy for the target resource. The client MAY repeat ...
the request with a new or replaced Proxy-Authorization header field (Section 4.4).
 
if ( !chatMessage.getMessage().startsWith(trigger)) { return; }
^^ guard clause before message processing
which in turn makes the anchoring unnecessary
 
@Vogel612 Eh, redundant braces.
 
@Vogel612 Yeah, that's just what I was thinking.
 
@Unihedro not really...
 
fge
2:25 PM
@Vogel612 added comments
And adding some more as I go
 
I'd even put the return on a separate line
 
fge
I saw an instanceof -- boo :p
 
@fge rawr explicit casts :)
 
Thanks for that website, @TheGuywithTheHat. There's a lot of cool tools on there!
Ⓖⓞⓞⓓ ⓜⓞⓡⓝⓘⓝⓖ, Ⓙⓐⓥⓐ!
 
Ugh, blank squares.
 
2:33 PM
@fge your method ref comments all suffer from the same incorrect assumption
you can't pass params to a method ref
 
@Unihedro Oh, dang :(
 
Dᴏes τhɩs ɯorᴋॽ
Man, looks ugly.
 
That's what the first message was supposed to look like. xD
 
Kewl bubbles
 
𝐇𝐞𝐥𝐥𝐨 𝐰𝐨𝐫𝐥𝐝!
Bold without using bold formatting. xD
 
2:35 PM
OMG more blank squares
 
fge
@Vogel612 uh, nevermind
 
Darn.
@Unihedro You must be using Firefox.
 
Not really, chrome.
Chrome Beta, to be exact.
 
Oh, the website says it's supposed to work in Chrome.
Err, other way around.
 
1/5 scam
 
fge
2:38 PM
Hmm, that works for me
 
@Michael No problem
 
fge
(using Chrome)
 
@TheGuywithTheHat That entire site has blank squares for all text on the column to the right.
:S
 
@TheGuywithTheHat Cool! Thanks.
 
2:40 PM
Aha! That must be where tchrist gets his blank squares for subtitles on his regex posts.
 
The Negative Circled, Squared, Negative Squared, Double-struck, Bold, Bold italic, Bold script, and Fraktur don't work for me, but everything else is fine.
 
𝓗𝓮𝓵𝓵𝓸 𝔀𝓸𝓻𝓵𝓭!
ʜᴇʟʟᴏ ᴡᴏʀʟᴅ!
 
@TheGuywithTheHat Good for you. From the demonstration list, it seems that none of those will work for me.
 
@Unihedro What OS are you using?
 
ђєɭɭ๏ ฬ๏гɭ๔!
 
2:44 PM
@TheGuywithTheHat Windows 7 :P
I know Windows is pretty broken, but my actual computer is mining
so.
 
@Unihedro Me too, so it shouldn't be a problem with fonts.
 
bbl. stuff around the house and then food.. keep shooting though ;)
 
 
I have no idea.
 
Wow, there's a gold mine in there...
 
2:46 PM
@Michael I know that character. I've seen it on my chess site!
Ugh, it makes me want to go play a game of chess.
 
xD
¡ǝɯosǝʍɐ
 
so apparently there is a unicode telephone character
🅣
 
@TheGuywithTheHat Square box. xD
 
... Which is also a blank box
This is not working well for me :p
 
Apparently, support for these types of characters varies greatly across platforms.
 
2:49 PM
<ul><li>hi</li></ul>
 
Does this work?
 
=shutdown
 
Shutting down. See you later.
 
@TheGuywithTheHat Yes!
 
2:51 PM
This is what I see:
 
Really? It looks like a crown.
 
OakBot Online.
 
@Unihedro Zoom in on it.
 
Yay telephone!
420x scale:
 
Haha, nice.
 
2:54 PM
These characters are all so small.
 
My telephone is better. :P xD
500%:
 
 _________
(_)-----(_)
  / (_) \
 |_______|
 
new Telephone().toBitMap();
 
fge
3:12 PM
<--- has zero inspiration today
Darn, I hate that
 
The Programmer's Block
 
Dead chat.
 
3:38 PM
@SecondRikudo Around here?
 
4:03 PM
RIP Java Chat 2014-15. Your memory will not be GCed.
 
4:24 PM
@Ita you want to review the latest PR for testclient?
 
4:37 PM
is there different a way to hide JavaFX TableView header?
Pane header = (Pane) tableView.lookup("TableHeaderRow"); doesnt work
 
fge
Uh, I have received a trace file to analyze... More than 44 million events
 
5:21 PM
Hi anyone tried validating entries here from a JTable?
And wouldve it been more easier if I migrated to JavaFX than sticking with Swing?
 
depends...
 
are they totally different? how different i mean..
well, doesnt matter
have anyone tried here validating entries from a JTable?
 
in TCG Creation on The Stack Exchange Network Chat, 26 secs ago, by Duga
> Please open a separate issue if you want to discuss this further, it's somewhat out of scope for this PR
@fge ^^
@LeeJeong what do you mean by that?
 
I wanted to add some custom validations when I enter values in a cell on a JTable.
And from research, i have been reading alot of bad reviews with that idea in mind. So I might as well ask the experts here..
 
you definitely should validate your data and properly alert the user in case they input some bull
but I am not sure how exactly I'd go about that... I haven't been doing all that much with JTables or Swing in general
 
5:32 PM
where'd you start from java? with web already?
 
I figure it should be possible to bind some listeners to do the validation for you, but that's beyond my knowledge
I started java on JEE basis
thrown into the cold water with jsf & primefaces
well I had some experience in C# but that didn't really help all that much..
 
how'd you get 'thrown' btw? by job or through study?
 
job.
 
and you applied for? java position alone.. then bang JSF/primefaces?
 
naah it was in the course of my training
it's a German thing...
I don't think there's an equivalent for that anywhere else...
 
5:34 PM
how'd it become a german thing? i dont understand..
 
considering how hard of a time I generally have explaining it to people
well the job was "learn programming in the next 3 years"
anyways off for some RL-stuff. bbl.
 
I have a friend in europe too, in UK, says their college is different, you dont get 1 engineering course.. you get 2 yr civil, 1 yr in another type of engring, and another yr.. etc.
thanks bro
 
fge
Uh
Unable to load parse tree... java.lang.OutOfMemoryError
Meh
java.lang.OutOfMemoryError: Requested array size exceeds VM limit
Yay
 
5:57 PM
unsurprisingly.
did you read my comment?
 
user4202350
6:20 PM
ᴵ ᶜᵃᶰ ˢᵉᵉ ᵐʸ ʰᵒᵘˢᵉ ᶠʳᵒᵐ ʰᵉʳᵉ﹗
 
9:41 PM
@Vogel612 heya
 
Heya @ItachiUchiha
 
if (chatMessage == Program.POISON_PILL) {
      Platform.exit();
 }
 
ya that's exactly where I'm unsure
 
^^ Is this really required?
 
is there another way to terminate the JavaFX thread?
well that's how it works for the bots.
 
9:43 PM
You are closing the stage, the JavaFX thread will terminate itself
 
I wasn't aware...
I wrote that piece before I finished a fully "killed" version
no wait...
what's the point in keeping a GUI when the bot is shut down?
because that is what that if-condition means
well it terminates all threads properly when using the big x
 
worker.enqueueMessage(Program.POISON_PILL);
 
ya exactly
 
you are adding it when a close request is raised
there is no point of it
 
correct... but I'm also sending it when **shutdown is invoked
there is
 
9:47 PM
as the platform is exiting itself
 
because the bot threads would keep running
 
point being that code can safely be removed
but then the GUI remains open, even if there's no bot to listen anymore
 
So adding worker.enqueueMessage(Program.POISON_PILL); affects the threads running in JavaBot ?
My point is adding Platform.exit() when close request on our one and only stage has been been called is pointless, since it will be called internally
 
hi
I'm looking for some programming advice :)
 
9:53 PM
but anyways keeping it doesn't do us any harm, so err..
 
your point is completely correct.
we need to enqueue the PoisonPill when we shut down the gui
because if not, we have at least two zombie threads
eternally waiting for new commands to process
 
I have one more question
 
ask away ;)
 
I understand you have created a daemon ThreadFactory and using it with Executors to create thread
but aren't we still supposed to shutdown the ExecutorService anyway?
 
that's not necessary
 
9:56 PM
fill me in..
 
if I have a double variable and it's value is constantly changing due to it outputting a sensor reading, how can I store a reading for a specific moment. At the moment when I output the value of the sensor, degreeOutput the value is constantly updating but I just want the reading at a certain point in time.
 
@ItachiUchiha if we terminate all non-daemon threads, the JVM will exit, regardless of how many daemon-threads are still running
@BrianJ then take it at a certain point in time and store that point in time with it
 
True that
 
but we can't create all Javabot threads as daemon threads, because which one would be the non-daemon?
 
I am still thinking of releasing resources when the application itself is getting terminated
:P :P
 
9:58 PM
the JVM exits. that should be enough
but as soon as we include the javadocs, you could be right... there might be remaining filelocks...
 
@Vogel612 that's what I've been trying to do, perhaps I'm implementing it wrong? I check for a "fist" pose, when this pose is triggered set startArc a double variable to degreeOutput but when I tested this startArc shows nothing. I'll post my code shortly.
 
I'll be heading to bed shortly, so that's that ....
@ItachiUchiha do we want a GUI when Junior goes down or not?
 
@Vogel612 I still think you guys could have first finished the JChatExchange. It will be a nightmare extracted libraries from JavaBot to JCE
 
this is the method itself, can't see where there is a flaw though: hastebin.com/camokehako.coffee
 
meh... not really.
 
00:00 - 22:0022:00 - 00:00

« first day (1561 days earlier)      last day (3373 days later) »