« first day (2560 days earlier)      last day (2395 days later) » 
00:00 - 09:0009:00 - 22:00

12:37 AM
morn
 
night
so sleepy
ned to get sum rest
 
Get difference rest
 
1:28 AM
expectorates
 
1:41 AM
@wonderb0lt somebody posted Rebecca Black's Friday in the JS channel!
blasphemy!
 
 
2 hours later…
4:00 AM
"People rise to the occasion without hesitation when they feel inspired and challenged." -Lorii Myers (source)
 
4:20 AM
3SH79RR45AMRZS
^ that's an encoded message; I know what is says, can you figure it out?
here's one that says "hello world": 3TAREKKQ56JYD
 
4:37 AM
Could someone have a look at this and have some suggestions?
https://stackoverflow.com/questions/46944831/ignore-null-values-while-doing-validation-of-input-fields
 
yesterday, by geisterfurz007
The chat is not supposed to be a shortcut for your questions :) Directly posting it here in chat after you posted it on the main site should not be done :) @user1692342
 
Even after few hours?
 
4:52 AM
IMO, after posting a question, you should wait at least 3 days. If your question is still unanswered, then put a bounty on it or something.
 
oh, itachi is aslive
 
5:09 AM
o/
 
\o
 
\o
 
6:03 AM
dude
I'm trying to make a basic calculator for a school project, but the text field is too small, and not matter what I do to try to increase the size of the field, it won't get any bigger
set bounds or create border. A tiny part of the screen
 
sniffles
 
setBounds, setSize, etc. Won't do shit
setPreferredSize. Won't do shit either
 
6:20 AM
gets out crystal ball
starts mumbing
 
that doesn't sound like a Java project. Unless, of course, you are using JavaFX or Swing. But how would we know?
 
Nope. Cannot see your code, sorry
puts away crystal ball
Heyyo Tavo :)
 
your cristal ball sucks. You should try a Palantir
yo @geisterfurz007
what's up?
 
Trying not to fall asleep during lecture...
And wondering what I could do (except listening of course :D)
 
mmmmm you could learn origami
 
6:31 AM
hmmm... Don't wanna waste paper on that. And at home it would just catch dust :D
 
learn how to draw?
 
Why this creative stuff? :D
 
I figured out some of it. I cannot figure out how to center the JTextField inside the GUI though
 
@geisterfurz007 just sit and think about the current state of politics
 
6:38 AM
then stay bored :P
 
Guess I will have to :D
 
watch midget pr0n
 
FLAGGED
I FEEL OFFENDED
TRIGGERED
 
are you a midget?
 
3
Q: How do I center a JTextfield

NABIL SHAHINI'm having trouble centering a JTexfield in my program.The Textfield does not appear aligned with the JButton. I've tried using the x.setHoriontalAlignment(JTextfield.CENTER); but to no avail. Any ideas? import java.awt.Color; import java.awt.Dimension; import java.awt.event.ActionEvent; import ...

@Tavo Nej just generally wanted to type something in caps
 
6:40 AM
I'm flagging you for caps
 
I'm flagging you for flagging me for caps. I should be allowed to shout whenever I want
 
thanks geister
I was hoping I could make it north center for the border layout and not just north or center
 
this is not the Real World(TM), you little snowflake
 
@Nathan777 I will take a look in a second.
 
thanks. I just hate java or am really starting to
 
6:46 AM
Oh right! Now I 'member. The drunk murican ;)
@Tavo w00t?
 
I'm not drunk now
I only get drunk on the days trying to understand java frustrates me so much that I just go to my bed and cry. Then I drink away the pain.
 
@geisterfurz007 how is that w00t and not the midget pr0n?
 
Why are people talking about porn?
 
we are not. Who used that word?
 
you did, you just spelled it differently
 
6:50 AM
No he did not.
 
I did?
I did not
 
you changed it to pr0n, but you really meant midget porn
 
that's your dirty mind playing tricks
 
what makes you think that?
He very certainly meant what he wrote.
 
also, how old are you? 13?
 
6:51 AM
he meant to say he likes watching naked dwarfs. I'm not stupid
30
 
@Nathan777 X doubt
 
what is pr0n then?
 
my life is a big meme...
@Nathan777 it's a secret
 
secret for porn
 
you keep using that word...
 
6:53 AM
inb4 mod swat :D
 
yes, but I know you meant that
 
What makes you so sure about that?
 
user7088977
Hi, I could't ask question?
 
@DumiduUdayanga 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
 
do you? DO YOU?
@DumiduUdayanga you just did
 
6:53 AM
Sure you could ^^
 
user7088977
what did I do?
 
you did it again
 
Ask a question :D Now two already ^^
 
@Nathan777 oh a link
 
6:55 AM
Okay, I guess you just don't wanna say why you were talking about porn. I'll just let it go.
 
@Nathan777 are you sure you are ready for that?
I mean, you look really interested in midget pr0n
 
I said I was moving on
 
are you?
 
I thought someone was talking to me. My mind just went blank though
 
so many jokes coming to my mind...
I'm in a good mood today
 
6:59 AM
Indeed you are :D
At least it looks like it ^^
 
I'm gay
 
life is good. I'm going out for dinner with a couple of friends. I'm also talking to my childhood friends over whatsapp and my parents have just shipped the rest of my belongings from when I lived on my own in my hometown
@Nathan777 congrats
but seriously, nobody cares
 
good
geister. This is me singing a song just for you. youtube.com/watch?v=SawmewqSutk
 
@Tavo And you still have 1337 reputation \o/
 
eheh
keeping it leet
 
7:03 AM
I never even heard of Runnable yet
 
1 message moved to Trash can
please use a code pasting tool
don't dump code here
@Nathan777 keep coding in Java and you will
 
I hate myself every day when trying to learn Java. I'm going about this all wrong I think.
 
Cannot help you with your textfield issue, sorry. I cannot even get the textfield not to expand to full width in swing ^^'
 
self-loathing is the normal feeling for most programmers. You are on the right path
 
I've moved on from that issue for now. The important thing is I create the methods to work
the display is 2nd priority
 
7:15 AM
man I hate trying to center stuff in CSS
 
@Tavo text-align: center; ?
 
tried, didn't work
 
I think it only centers in-line things
 
I have a div with a lot of stuff inside. I just want to center the first label (as if it was a title). And all I've tried has failed so far
 
25
Q: text-align:center won't work with form <label> tag (?)

edzillionI was going through a site I have just completed, and fixing up some accessibility issues. I had a form: <input type="hidden" name="redirect" value="thank-you.php" /> <p>Enter your Email Address to receive our Weekly Newsletter</p> <input name="email" type="text" id=...

 
7:29 AM
I've wrapped the label inside a second div, but still can't center it
 
There are a lot of questions to that. I don't understand anything tho :D
 
I just wonder why centering stuff is such an issue. It's probably because I don't understand the underlying reasons for it
 
If you put the element in a div and the div has the text-align: center while the element you want to center has display: inline-block it should work
 
but it's annoying for people that are not fluent
 
yeah..
style="display:block; text-align:center;" works in jsfiddle
 
7:32 AM
I can't use text-align for some reason
 
I just mess around with the CSS in a browser until it works.
 
Curious why does LocaleUtils.toLocale("aa") not throw an error? When on the oracle website oracle.com/technetwork/java/javase/java8locales-2095355.html there is no language with aa . Is that a wrong way to verify if my string is a valid locale ?
 
If you can, you could paste a jsfiddle @Tavo :)
@user1692342 At compile time or runtime?
 
runtime
 
I think it might have something to do with being inside a react component
compile time
"compile" time
 
7:35 AM
/javadoc LocaleUtils#toLocale
 
@geisterfurz007 Sorry, I never heard of that class. :(
 
Unlucky
 
@geisterfurz007 Hmm i see. It just converts it into a Locale. Is there a way to validate it then ?
https://stackoverflow.com/questions/3684747/how-to-validate-a-locale-in-java
In this one of the answers was Validate.isTrue( StringUtils.isBlank( locale.getVariant() ) );
which is wrong then
 
ok, it was because of React
 
The JButton feature is broken in java. No buttons are showing up
 
7:39 AM
@user1692342 Not familiar enough with Locale stuff nor with the apache commons, sorry
@Tavo meh :/
 
Anybody who worked with JMS applications?
 
React doesn't allow you to use hyphens
 
@NikhilAgrawal I did not, sorry
@Tavo ?
 
you need to replace the hyphen for a capital letter in the next word
1 message moved to Trash can
please do not paste code. Use a code pasting tool
 
WTF is a code pasting tool?
 
7:42 AM
google it
and wash your mouth. Do you kiss your mum with it?
 
I don't kiss my mom
 
using the F-word and talking about p**n
 
Apr 29 at 0:00, by OakBot
@Nathan777 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! :)
 
@Tavo pr0n you say? :D
 
7:43 AM
That's my code. I added the method to the constructor, the button does not appear.
 
no, he didn't use pr0n
 
Oh yeah true. My bad.
 
@Nathan777 thanks for complying to the channel rules
to? with? meh...
 
you're welcome, even though it's kinda stupid
 
so are many things in life, but the world keeps spinning
 
7:45 AM
human stupidity is infinite
 
What to do with a friend that keeps falling asleep in lectures?
 
@geisterfurz007 midget pr0n
 
@geisterfurz007 prank them
 
According to him he is listening... I doubt it.
@JennaSloan how?
Aside the fact that I dislike pranks.
 
@geisterfurz007 put something on their head?
 
7:47 AM
okay. I fixed it. I just put the method in the wrong place.
 
5 pound laptop?
 
I even made my button orange! It's pretty
 
ended up using flexbox
and now it works \o/
@DumiduUdayanga what are you doing?
 
user7088977
hi
 
user7088977
could you help me
 
7:51 AM
maybe
what do you need?
 
user7088977
I cant ask question using stack overflow, some people downvote my question.
 
A bed and a hot chocolate please @Tavo :)
 
@geisterfurz007 I'm not getting in that bed :P
@DumiduUdayanga did anyone say why?
 
user7088977
yes stack overflow told me that down vote questions should be upvotes..
 
That... Err... What? :D
 
user7088977
7:53 AM
(:
 
@Tavo I did not ask you to join me O-o
 
user7088977
can't understand
 
@DumiduUdayanga I'm sure nobody said that. It makes no sense
and please stop inviting me to a room with you. We can talk here
 
user7088977
ok
 
user7088977
sorry
 
7:55 AM
I got 10 more points on Stack Overflow recently, not sure how. I think they just removed some of my old questions with down votes and my score went up
 
@geisterfurz007 look, someone before was saying he was gay. Now this guy wants me in a room with him. The day is getting very weird
@Nathan777 no. If you get downvoted, you get downvoted. That's for life afaik
also, that's something you want to discuss in meta, not here
 
@Tavo Nope
 
no?
 
If the answer/question is deleted, the rep goes back up.
 
ah, I believe it wasn't like that before
 
7:56 AM
At least that works for me :P
 
One of my questions showed a +5 recently, but it doesn't actually show any upvotes
If I delete a question before I get any answers because someone booed it, the negative points are deleted.
 
user7088977
It is a big help
 
That is not how it works.
 
@Nathan777 It has an upvote and a downvote, for a total of 0 score.
@Nathan777 Yes, but it still counts against you for an automatic question ban if you have too many of them.
 
@DumiduUdayanga nope. And asking for upvotes is frowned upon by the community
 
7:58 AM
@DumiduUdayanga No, that would get you both suspended.
 
oh really?
there you go, it's even worse that what I thought
 
@Tavo is the best way to check for URL validation in Java is to use the new URL method and catch exception? apache commons validator is not case sensitive
 
@DumiduUdayanga your reputation is 141. What do you need more upvotes for?
 
*is case sensitive
 
Yup. Because it would be like acting as sock puppet. An external account used to upvote your posts @Tavo
 
7:59 AM
@user1692342 wat?
 
I want to validate if a given url is valid or not
 
use postman
 
or postwoman!
 
Lol in JAVA
 
I actually lol'd
 
8:00 AM
one option is to use urlValidator.isValid
or use new URL
 
Monty Python for the win
 
haha
 
and why don't you use that?
 
80
Q: Validating URL in Java

KeyaI wanted to know if there is any standard APIs in Java to validate a given URL? I want to check both if the URL string is right i.e. the given protocol is valid and then to check if a connection can be established. I tried using HttpURLConnection, providing the URL and connecting to it. The fir...

 
urlValidator doesnt allow Caps
new URL requires try catch, which I want to avoid
 
8:03 AM
I'm depressed
 
@user1692342 why would you avoid that?
@Nathan777 then you are doing well as a developer
 
I don't even know the basics to get a junior developer job yet
 
@Tavo I am using Apache commons Validate to validate my input. using urlValidator makes my code in one line :D
 
I just got a new job at a hotel for now.
 
@Tavo Yes! You asked :D
 
8:05 AM
using new URL is just waste of space lol
 
SO MUCH SPAAAAAAAAAAACE!
 
unless there is a smart way to put it in a apache validate
 
@user1692342 the fact that you can write something in one line doesn't mean it's the best choice
 
ya ofcourse not..simple validations like these, i would prefer it to be short and precise
rather than going through extra lines
 
make a method, put it at the bottom of your class
booom, a one liner
the things one has to read...
@MadaraUchiha hypothetical: if I went to downvote him instead of upvoting, would I get suspended as well?
 
8:12 AM
@Dr.Sam if nothing is empty space, then is space nothing?
 
don't they have something like a GUI creator where you can drag and drop the buttons you want in it and it generates the code for you?
 
@Nathan777 of course
 
@Nathan777 Oh sure :)
 
They have HTML creators. I don't see why not
 
8:14 AM
But the Swing one ends up with super loaded code (can confirm from my own experience)
 
sweet Jenna
Order in the court
I wish I was only 12 again
and could go back and start doing all this coding then, so I would be ready to tackle a CS degree in college right out of high school
 
@Nathan777 you mean a year ago?
 
I wish Tavo
 
ok, two
 
I'd love to be two again too
 
8:17 AM
you probably don't remember, so that statement doesn't make sense
 
I remember being 2
 
gosh, I'm in a good mood today
@Nathan777 aham
 
aham?
 
aham
 
@Nathan777 weapons-grade ham
 
8:18 AM
I actually really do have a memory that far back believe it or not
 
@Dr.Sam one is annotated and the other is not.
 
Sadly, I'm 30
 
@Nathan777 you're like 1.5 times older than me
 
So, you're 20
 
@Nathan777 you are right. I don't believe it
 
8:22 AM
I'd like to be 20 again too. I wasted so much of my life the last 10 years
 
@Nathan777 so since you remember?
 
Tavo, I don't know what the hell u talkin bout anymore
 
 
@Nathan777 if you remember stuff from when you were 2, your life must've sucked for the past 28 years
 
I just can't help but love that pic
 
8:24 AM
I thought most people at least had vague memories of being a toddler
 
mother nature is wise and doesn't let us keep memories where we shit ourselves and eat dirt
 
@Nathan777 I must've hit my head too much as a kid then.
 
I have very, very few memories from back then :D I once threw a bowl of cereal with milk from the kitchen table and my mom got very furious :')
 
man, that nightcore stuff @Zoe recommended has gotten into my brain. Now I'm using it to code non-stop
 
Oh no...
He is infected as well >.>
RUN FOOLS!
 
8:34 AM
you just want the XP for yourself
 
I remember throwing tantrums, being diapered, bumping my head, falling on my ass, etc.... all from when I was 2. I should add that I'm autistic though, so I have unusually extensive memories.
 
cough
 
lol
 
@Tavo The idea is that we vote on posts, not on users.
 
I know, I was just wondering
 
8:37 AM
If you go to a user's post and vote on them in either direction because they are from the user and not because of the quality of the post, that's grounds for warnings/suspensions, yes.
 
ok, thanks
makes sense
that was madara
 
@Nathan777 But did you have abusive school teachers, principals, and paraprofessionals?
 
My chat is buggy...
 
@Tavo That's okay, you can call me Itachi.
 
It showed me that Itachi just joined ._.
 
8:38 AM
Yes Jenna.
Abusive kindergarten teacher in private daycare.
 
@MadaraUchiha I have watched almost no Naruto at all, so I really can't tell if that's a joke
(preparing to be suspended now :P)
 
Suspended?
Banned, removed and IP-banned >.>
(I did not watch a single episode...)
 
I'm reading someone else's code, and they have (nameofobject).process. Is there a built in method of processing something called process, or did they make up that method? I cannot find out what the process is referencing.
 
What class is (nameofobject) of?
 
never mind, process is a string method they created. It's a public string method taking in a character and returning a string
 
8:48 AM
What should work in eclipse at least is pressing Ctrl and then clicking on the .process.
That should bring you to the declaration of the method/object/class/variable
 
@Nathan777 I distinctly remember some of my earlier school teachers locking me in a room, a principal punching me in the gut while I was crying, being handcuffed to a chair, and somebody slamming my head into a concrete floor.
 
I pretty much have to copy and change examples of other projects for our school projects, because they don't give us enough time in college to do these assignments
 
@JennaSloan wtf O_O
 
Wow Jenna. I didn't deal with that much
 
@JennaSloan coughs
 
8:50 AM
Tavo, take some damn cough medicine already
 
seriously Tavo...
 
My parents actually helped found the Autism Society of North Dakota rrvan.net/history
 
00:00 - 09:0009:00 - 22:00

« first day (2560 days earlier)      last day (2395 days later) »