« first day (2439 days earlier)      last day (2505 days later) » 

12:42 AM
morn
 
1:27 AM
Is it possible to underline part of my message in the chat?
 
I don't know anything about formatting here. I suppose we could try some things.
will this do it?
well, preceding/succeeding underscores do that
<U>will this do it</U>
Not even if you match the case, evidently
<underline>how about this</underline>
Nope
I haven't guessed a way in my first 3 tries, to heck with it...
 
@JennaSloan Nope.
 
1:45 AM
@Michael Oh, so I can italicize, bold, and strikethrough, but not underline? Lame.
 
Deal with it.jpeg
 
<u>This is totally underlined.</u>
 
If you could somehow trick the chat to make it send back HTML that contained <u> tags, I'd be impressed. xD
The chat message you send is in markdown formatting. But in order to display the message, it converts the markdown to HTML.
So if you could somehow craft a markdown formatted message that, when echoed back, contained an HTML tag of your choice, you could have underlined text.
 
Yeah, I think that's done server-side
 
Yeah, it converts the markdown message to HTML server side.
You can't do &lt;u&gt; this &lt;/u&gt; because it encodes the ampersands correctly.
If you could find a way to sneak in a <u> tag, you could do a lot more nefarious things, I'm sure.
That, of course, is one of the main ways that websites are compromised...SQL injection attacks and the like.
The failure to properly encode input across contexts.
i.e. converting Markdown text to HTML. And then encoding the HTML so that it can be safely inserted into a SQL query so the chat message can be persisted.
And, of course, markdown was created specifically with the purpose of reducing the number of formatting options available to you.
The idea being that one should value the content of a message more than its appearance.
 
3:04 AM
@Michael Mind Blown
 
3:19 AM
That must be why it's called markdown
 
hi Michael
What's up man?
 
4:00 AM
"Be daring, be different, be impractical, be anything that will assert integrity of purpose and imaginative vision against the playitsafers, the creatures of the commonplace, the slaves of the ordinary." -Cecil Beaton (source)
 
Morn o/
 
morn
 
4:19 AM
How are you doing? :)
 
4:40 AM
not bad. Long weekend is over, which is sad
but looking forward to my first trip to Vietnam
yourself?
 
uuuuuuuh that sounds nice! Enjoy!
 
definitely! 4 days in Ho Chi Minh should make a nice getaway
 
Yeah there are definitely worse things out there
 
4:57 AM
yup. I could be dealing with the consequences of Brexit :D
 
5:15 AM
hello
 
howdy
 
6:01 AM
Morning
 
6:20 AM
yo
 
6:39 AM
/javadoc RadialGradient
 
Which one do you mean? (type the number)
1. android.graphics.RadialGradient
2. javafx.scene.paint.RadialGradient
 
@geisterfurz007 javafx.scene.paint.RadialGradient: The RadialGradient class provides a way to fill a shape with a circular radial color gradient pattern. The user may specify 2 or more gradient colors, and this paint will provide an interpolation between each color. @since JavaFX 2.0 (1/6)
 
\o
 
o/
 
6:41 AM
o/
 
\o/
@geisterfurz007 Mmmh you're playing with javafx graphics :P
how was your meeting?
 
o/
 
\o
 
\o
 
6:49 AM
@Julo0sS Fun as always ._. Well we were productive at least
Everyone knows the current state and everyone got their tasks assigned.
I am the code victim...
Everything that does not work is sent to me and I gotta iron that out XD
 
o/ geisssssssssssssssssssssss
 
@geisterfurz007 With Great Power Comes Great Responsibility
 
With great power comes a increased electricity bill.
 
lol
 
/react despair
 
6:53 AM
/javadoc Stop
 
@geisterfurz007 javafx.scene.paint.Stop: Defines one element of the ramp of colors to use on a gradient. For more information see javafx.scene.paint.LinearGradient and javafx.scene.paint.RadialGradient. @since JavaFX 2.0 (1/3)
 
/react sad
 
this sad guy is so sad
 
that's from Lost I believe
 
6:54 AM
yo
 
well, he seems to be in a jungle... But I can't remember him in Lost (didnt watch this for a long while though)
 
way too many people on that show to be sure
also, I've erased as much of it from my mind as I could
 
/react mind blown
 
Well, got to go guys, work outside today :D
have a nice day
 
7:05 AM
Cheers you too
/javadoc LinearGradient
 
Which one do you mean? (type the number)
1. android.graphics.LinearGradient
2. javafx.scene.paint.LinearGradient
 
@geisterfurz007 javafx.scene.paint.LinearGradient: The LinearGradient class fills a shape with a linear color gradient pattern. The user may specify two or more gradient colors, and this Paint will provide an interpolation between each color. @since JavaFX 2.0 (1/6)
 
7:28 AM
yo
 
@AdarshKumar Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
Sure
 
I've just wasted an hour because my environment variable was named 'activePivotServerUrl' and I was referencing it as 'activePivotUrl'. sigh
 
Yesterday I searched 10 minutes for a mistake. wrote ar instead of at
 
arrrrrrr!
scratches wooden leg
 
7:48 AM
lol
@Tavo no autocomplete?
 
@ColdFire not in VSCode apparently
 
oh :(
 
morn
 
Hi all. I have a question about ExecutorService
 
shoot
 
8:01 AM
shoots
 
dodges Matrix style
 
daaaaaayum :O
 
According to this SO answer you have to use .shutdown() before .awaitTermination(...) . But I have checked the docs and this statement confused me: This method does not wait for previously submitted tasks to complete execution. "
the name itself is badly chosen, but the approach described in the above answer is a correct one?
(initial goal: run fixed set of threads -> wait for its completion -> do final task )
 
shutdown will actually stop the executor so no more tasks will be run
what he is doing is finishing the executor, but the other tasks that had been previously submitted will still have a minute to finish
 
ah by this way. OK
thanks
 
8:05 AM
np
re-reading my answer makes me realise how little my language processor works lately
I can't seem to write a coherent sentence
 
You did it \o/
 
at least I can make myself understood
 
Do I put images in the resource folder or in an image folder in the resource folder?
 
the latter
 
alright thanks :)
 
8:09 AM
not all your resources will be images
 
Ok so all types in their respective folder
or subfolder if needed
 
well, if you have just one image and that is all of your resources, creating an extra folder is a bit of an overkill
just apply common sense there
 
Yeah I got 7 images and a few fxml files for the UI that are taken from the ressource folder
 
yeah, I would create an image folder
 
And one for the fxml files as well I guess?
 
8:11 AM
I would as well, yes
 
alright thanks again ^^
 
np
 
Mmmmmmmm Java Swing Code
Tasty
And so easily understandable as well!
 
you code in German?
 
I did
 
8:16 AM
wow
 
One of the things I am changing during the moving to JavaFX
 
good plan
 
In fact my educator told me to write the documentation in German -.-
Wrote them in English paritally because it seemed the correct thing to me
Oopsie
Noone will look into the code anyways .____.
 
yeah i also mix german with english code
 
Probably better anyways xD
 
8:18 AM
whatever i feel like
oc its just for some testing
final code has to be one language
 
Yeah. I did not do that
 
its fún you should try
 
My classnames partially are written with lowercase letters at the beginning and such shit
 
im the master of my code so i make the rules
.equals("chaos")
 
@Hans1984 As said I will. That application I am working on was my real first project that took my more than two weeks to finish
And I learned Java with it basically
So I did a lot of bad, bad things ._.
 
8:20 AM
well it also depends on your english skills
 
I would say they are pretty decent
 
yup
 
And looking on it now... Not even a year after I coded that stuff... The programmer part of my brain starts crying
And this mix of German and English... aaaaaaaaaaaargh
Yummy \o/ 90 lines of SpringLayout.putConstraint(); Nice!
Swing sucks...
 
@geisterfurz007 I had to buy a book
it was like 10 years ago and I could not find much info around the Internet
I still have it to remind me not to ever do it again
 
:D
But it feels good to see that I improved... My coding got way cleaner over the last months I think and I am more likely to use containers now.
Aaaaand I dropped Swing and use JavaFX now ^^
 
8:30 AM
next step is to drop JavaFX and do the front end in a front end language :P
 
lol
 
@Tavo .____________.
 
yo tavo
 
Feel free to tell the teachers at my college that are teaching Java GUI's
 
yo
@geisterfurz007 I'd tell them there's a world beyond lecturing, and it isn't a pretty one
 
8:33 AM
Aaaaaaaand my educator that asked my to write an application with GUI in Java :D
 
but if they are anything like mine, they are too useless to code in the real world, so they just teach
 
Yeah some of them feel like it...
Though that one guy seems really good
 
lol
 
where putting the curly brackets in the same line or in the next one is material enough for a whole paper
 
8:35 AM
always
but no need for a paper
 
Well
I do put it in the same line where the block (eg for-loop or if) begins and closing in the next line
That's how I do it
 
I should kick you out of this room
 
I think I just got something new to improve on...
One really should do
if(something == something)
{

}
?
I really am used to
if (something == something) {

}
 
different companies will have different standards
 
Mine has none ._.
 
8:40 AM
on everything, including tab vs spaces
 
tabs hides behind rock in fear
 
lol
 
lol. I use tabs, mostly because I'm old
 
They literally told me nothing except somewhat vague specifications about the program (thinking I would not get it done anyways, but HAHA I got it done)
 
@geisterfurz007 well that is standard for android
that is how it is done
@geisterfurz007 ugly awwwwwwww
 
8:42 AM
@ColdFire Yeah I thought it would be the usual way to go, but @Tavo did not like that one o-o
 
@ColdFire read the room description ;)
 
i never said its java or uses the JVM or base sdk are same
its also the default formatting of intellIJ
 
yeah, look at all the others. Class, method...
 
Yeah they look the same
 
8:47 AM
yup. Disgusting
 
xD
 
This website states that both are acceptable though
 
except for the for loop, because fuck uniformity
 
8:49 AM
@geisterfurz007 where i only see one used
yeah for classes it shows
 
Keep Line Lengths Under 80 characters - I REFUSE :>
 
well i just let the IDE do it for me
auto format FTW
 
yeah, I just need to adjust the line length to a million
otherwise it fucks up all the format :/
is it the weekend already?
I'm tired...
 
9:06 AM
Yeah its Friday
 
lol
 
9:50 AM
its shitday
 
it's time to go home
niters!
 
bye
 
bye
 
10:46 AM
morning
 
user7313260
I was solving [this question](https://www.hackerrank.com/challenges/30-loops). This is my solution: https://paste.ofcode.org/xNnYpMrjLcegz3PN4i7ZS4. However, on executing the code with sample input 2 it shows these errors: import: unable to open X server `' @ error/import.c/ImportImageCommand/364.
solution.sh: line 2: public: command not found
solution.sh: line 4: syntax error near unexpected token `('
solution.sh: line 4: `public static void main(String args[])throws IOException'
 
user7313260
Where am I going wrong?
 
user7313260
The code seems to work fine on BlueJ but doesn't run on the HackerRank ide
 
user7313260
I also can't spot any syntax error. What is happening?
 
user7313260
11:23 AM
Oh, I got it now!
 
user7313260
Nevermind.
 
user7313260
The IDE was not set to Java!
 
12:35 PM
Morning, Java!
 
user6857832
Morning @Michael
 
Hey @Hem
 
hey@Michael
 
Do all Exceptions have root causes?
 
Hey @Hans
 
12:41 PM
hi everybody
@TheCoder Yes i think so somewere must be the problem
 
@Jens Is this overkill?
    } catch(Exception exception) {
        Throwable cause = ExceptionUtils.getRootCause(exception);
        Throwable exceptionToThrow = cause != null ? cause : exception;
        throw new MyNewException(exceptionToThrow.getMessage());
    }
 
@TheCoder Yes
It should be: throw new MyNewException(exception);
 
But my app will throw a spring DataViolationException, and that message doesnt tell me the exact reason, e.g. Cannot insert value X into column Y.
Further up the exception hierarchy I get a SqlException that gives me the info I need
Hence me wanting the root cause
 
If you pass the thrown exception into the super constructor of MyNewException, then you won't loose anything.
 
@TheCoder Is there any reason, you want the root cause in your new Exception? Isn't is enough to logout the original excepion here and throw the new exception only with the message?
 
12:56 PM
@Jens could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement
That tells me nothing of the reason it failed so that i can fix it.
@Jens A truncation error was encountered trying to shrink VARCHAR 'xxxxxxxxxx' to length 5. - this tell me lots
 
@TheCoder If you have logged out the original exception you can see anything what you need. For the user it is not helpfull to see the complete message. But the suggest you anything i do not know enought about your project
 
@Jens I have a recurring issue that I'm wrapping in an excpetion to help diagnosing
 
@TheCoder Then use: throw new MyNewException(exception);
@TheCoder There you have all informations
 
When I handle MyNewException() in a mapper I have created, I print exception.getMesasage() to a log and that exception wont have enough info
Hnece my seeking the root cause
 
@TheCoder You should never just log the exception message.
Log the whole stack trace.
 
1:08 PM
@TheCoder Implement the logic, how you get the root cause in MyNewException.getMesasage()
 
1:21 PM
i.stack.imgur.com/FSfDJ.jpg @MadaraUchiha #NoOffence
 
@TheLittleNaruto :D
 
I am having a jolly moment of constructing a safeeval function in js.
 
@TheLittleNaruto lmfao
 
1:40 PM
Hi
any issue if i used hibernate and JDBC both parallely
??
 
 
2 hours later…
3:46 PM
Why bother with Validate.notNull(obj) if notNull() throws a nullpointer exception?
You're going to get it later anyway
 
bye
 
 
4 hours later…
7:23 PM
@Uni What is the difference between BSSID and ESSID?
 
 
1 hour later…
8:31 PM
BSSID is basically wireless network that has a single WAP. ESSID is for networks that have multiple routers, but a single SSID, which allows you to roam a large building without loosing signal.
 

« first day (2439 days earlier)      last day (2505 days later) »