« first day (1514 days earlier)      last day (3428 days later) » 

12:17 AM
@Hellovart You'll have to add/remove JPanels from the parent container when needed.
 
@Michael I figured out a couple minutes ago
 
Ah. xD
 
@Michael but now I'm wondering how I can size the JPanel to the size of the JFrame
 
What layout manager are you using?
 
damnit, it didnt "ding" sorry to keep you waiting
borderlayout
for the jframe
 
12:22 AM
That's because I didn't do a mention of your name.
 
ah
 
If you were using MigLayout, I would say to add a "fill" property to each panel's layout.
JPanel panel = new JPanel(new MigLayout("fill"));
 
on second that, maybe it isn't necessary
I just had it so the jframe was the default gray color and the two jpanels were red and blue
i can just set the jframe color to red or blue
 
Haha
 
12:37 AM
@Michael you still there?
 
Shutting down. See you later.
 
@Hellovart I'm leaving in a few for dinner. What's up?
 
Is it a good practice to have classes for each JPanel?
so far ive only had the one class that extends JFrame
 
Yeah. I do that a lot.
 
oh
good
it just seems clustered and wrong right now
 
12:38 AM
OakBot Online.
 
Yeah.
 
ok good to know, cheers
 
np
=http 401
 
@Michael HTTP 401 (Unauthorized): The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.47) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for ...
those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity might include relevant diagnostic information. HTTP access authentication is explained in HTTP Authentication: Basic and Digest Access Authentication.
 
OakBot, what is your name?
damnit.
he's not even a bot
backs away with blush on face
 
12:43 AM
Mention his name with a @
 
@OakBot liar
 
@Hellovart Type =help to see all my commands.
 
It's not a chat bot. Not yet anyway.
 
=help
 
OakBot Command List
about     Displays information about this bot.
help      Displays this help message.
http      Displays information about HTTP status codes and methods.
javadoc   Displays class documentation from the Javadocs.
shutdown  Terminates the bot (admins only).
 
12:44 AM
It's a...bot bot.
 
lol
=shutdown
 
It doesn't respond to edits.
 
=shutdown
 
@Hellovart Only admins can shut me down.
 
=shutdown
 
12:46 AM
Shutting down. See you later.
 
I'm just tweaking the http command.
 
OakBot Online.
 
Oh, you created it
 
Yea
 
1:18 AM
Shutting down. See you later.
OakBot Online.
OakBot Online.
 
 
1 hour later…
2:22 AM
@OakBot =help
 
@ItachiUchiha Type =help to see all my commands.
 
=help
 
:20453089
 
=http 400
 
@ItachiUchiha HTTP 400 (Bad Request): The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
 
 
2 hours later…
4:30 AM
People... rise up from the dead. It's time to chat
 
4:56 AM
LOL
@Ita can you help me with something quickly?
@Mr.777 I woke up in time for school. :P
Yay hats!
 
@ItachiUchiha Zombie-developer operational!
 
@Unihedro shoot
Thinks, he is already late
 
Morning
 
Heyo!
 
'sup?
 
5:07 AM
heya!
 
Yes, so if you're here later we can retry that
and hiya!
 
@uni Ok cool!
 
What are you doing? Something fun?
 
who?
@Bohemian heya!
 
Hi
 
5:11 AM
All of you
 
@Gemtastic Hats!
 
Ah :D
 
Go find the flake icon on the top bar on the main site and hit "I love hats".
 
19 hours are up
 
If you don't like hats, you're not a real developer.
Hi @Boh!
 
5:11 AM
Hola!
 
@Bohemian Anything in particular that brought you to this chat room? :P
Just asking for the sake of asking
:D
 
Bohemian is a frequent lurker.
 
Contact a Unihedron near you
3
lolz
 
^^ once I learn more PHP we can make use of that for the room
 
HATARCHY!
[yes, I'm excited!]
Well, time to go
 
5:14 AM
I have five hats!
Bye!
 
Bye!
 
@ItachiUchiha Not really. It is hat week... TBH I'm trying to think of something witty to say that might get starred
 
@Bohemian haha, we are waiting :P
 
Werner Heisenberg: The universe is not only stranger than we think, it is stranger than we can think
 
Gimme a star! I want hat!
3
Bye
 
5:17 AM
How in hell I don't have a Hat for Sumo Judge. It says give stars to 8 users in chat. I am sure I have starred more than 8 users..
 
@ItachiUchiha it can take some time for actions to percolate though to hats. Be patient
 
Ahh, i c!
 
And while we're talking about hats, is this an awesome question or what?
 
Yes. I admit... I'm fishing for hats :) — Bohemian ♦ Dec 21 '13 at 14:44
 
That was last year lol!
 
5:21 AM
looks like not much happened in the passed year then ;P
 
But this year it's useful again, because I only need 3 more votes to make a gold
 
yeah, I can see that. You were eager for hats! :P
UP Vote/ Down Vote?
Please clarify :P
 
Well, I have topped the stackoverflow hat challenge 2 years running
up vote!
if the Q goes to 100 that gives me a hat
 
Well, this time you should give someone else a chance ;)
How about me?
I did my part ;)
 
note: only vote it if you believe it to be a good question.
 
5:23 AM
Hope you get the other 2 as well
 
well, another 3 votes on your answer will give you the "enlightened" badge, which will give you the werewolf hat
 
@Bohemian To earn this, does it checks the past answers ?
Major Award - submit an answer to a question with an open bounty and get an upvote
 
What's a good book to learn java for someone who already knows the basics?
 
@DemCodeLines Depends on what you wanna learn
 
What are my choices?
 
fge
5:33 AM
Moo
@DemCodeLines in this case, define "learn Java"
 
Hiya @fge!
 
@fge Moooooo
 
fge
Hey Uni
 
I like my imitation crab, suits me very well :)
I downvote too much O-o
 
Wear it!
 
5:35 AM
all time
1,276 up
5,215 down
I have it, it takes about 15 minutes to update in chat
because hats.js
 
Become good enough to get good jobs in the IT industry
 
lolz
Define IT industry
 
I like how you can resize the thing now
^ If you have VTC, this would help get the "downvote 5 bad questions" hat
 
The industry in which some of the top companies reside (Microsoft, Apple, Google, Facebook etc.)
 
5:37 AM
and why would they hire you if you are good at java?
 
@ItachiUchiha Promote it yourself, I'm no serial voter :P
 
@ItachiUchiha I would think not: It will say if the question needs to be asked during the bash.
 
I don't have an iphone to use the ios app - anyone know of an IOS emulator for linux?
 
lolz, I would install one for windows today :P
 
red shirt get
Merh I have no idea why I'm bothering with the hats, I'll get them with no catch anyway ~
 
5:40 AM
They wouldn't, but considering I'm a student right now and I am enrolled in computer science, I need to learn c++, java and other languages
 
Back to skool bye :P See you later
 
@uni
Mistletoe
post a chat message within five minutes of 0 UTC 1/1/2015 that gets starred
 
@DemCodeLines Don't just learn, master them
 
Yes, how?
 
Make sure, we don't miss this :P
 
5:40 AM
If you're good enough, advanced knowledge in any of python / java / c# / C++ will be sufficient
@ItachiUchiha I'm on here every day and you know it :P
 
@DemCodeLines Code.
 
@DemCodeLines Welcome to Open Source Community.
1 min ago, by Unihedro
Back to skool bye :P See you later
 
@Unihedro within five minutes 0 UTC
 
Monday already @_@
 
My eyes are bleeding
 
fge
5:42 AM
@DemCodeLines try "Effective Java"
 
I go to GitHub and look at projects i can become part of, but 90% of the time it's too advanced for me
 
fge
@DemCodeLines meh, you do have to start somewhere
 
Literally everything
 
@DemCodeLines Try to re-create the code. Make your own version; play around until you understand it
 
fge
For instance, start and write tests
 
5:43 AM
TDD is a great way to start
 
fge
And if you find a failing one, fix it, then send the PR to the author :p
 
I taught myself all the languages I know. But I get worried when I think about not knowing much about anything, so I want to get a good book and start over again.
 
@ItachiUchiha TDD?
 
Test Driven Development**
 
Ah
 
fge
5:45 AM
@DemCodeLines then "Effective Java"
You'll learn a lot
 
Is there any reason I should be learning java over something like c++ aside from the fact that one of my cousin who is in the recruitment business and gets a ton of java requirements keeps telling me that I should learn java more than anything else because that's where the jobs are?
 
@DemCodeLines You will get a job, if you are good at any language!
 
fge
@DemCodeLines just learn a language you like; mastering a language helps getting started with others anyway since ultimately it's all about programming
 
Learn what you LiKE
 
^ agreed
 
5:50 AM
What's LKE?
 
lolz, it LIKE :P with a small cased i
 
fge
stackoverflow.com/q/27478029/1093528 <-- what is the reasoning behind wanting to generate random serial UIDs? To me it is just like presenting your newborn to different people and telling them he is called something different to each of them
(and telling a different name to someone you meet more than once, at that)
2
 
6:20 AM
This is the funniest comment.. @fge @uni @gem @boh @Second
in Mathematics on The Stack Exchange Network Chat, 3 hours ago, by Behaviour
Comment template: "Welcome to Math.SE! You picked a bad time to dump your homework here: the users are trying to earn Imitation Crab and Red Shirt hats."
2
 
XD
 
Hello All
 
hello
 
@Gemtastic how to parse json string in servlet which comes from android application
 
All json are the same
What's the android supposed to be sending?
Only one string?
 
6:30 AM
pastie.org/9781095 here is my json response ..
bulk data
@Gemtastic bulk data ...pastie.org/9781095
 
I'm pretty bad at explaining
 
fge
@Gamex first of all, pick a JSON library and stick to it
I know that Android comes with a (probably modified) org.json, but this library is the worst JSON library that you can get
 
which json lib .... Java json or json simple ? @fge
 
fge
Choices are many; personally I favor Jackson
 
Does it really matter what library is used when you receive a JSON object? The file looks exactly the same either way, doesn't it?
I understand that the lib you use in java matters when handling it
But just upon receiving?
 
fge
6:36 AM
@Gemtastic error messages, for one
And exception handling
 
Interesting
 
I just need to fetch data from the json and insert it in db so i guess lib doesnt matter @Gemtastic @fge
 
@Gamex for handling it with java you need a lib
 
fge
@Gamex insert it raw, just like that?
And how do you handle it afterwards?
How do you deal with data which doesn't match your expectations?
 
@fge @Gemtastic i just need to insert that data
 
6:38 AM
@fge So if I write a JSON object in notepad, will it give me errors since I didn't use a lib to make it?
 
fge
Yeah, right, you "just need to"
Without thinking about possible error conditions? Color me ill-green
@Gemtastic that's not the question
The question is how you handle it in your code
 
@fge That's MY question, but I'm probably phrasing it poorly
 
fge
You receive JSON, you probably just don't want it to be "just JSON"
 
Since you remarked on what lib the android used
 
fge
(well, for me yes since I do JSON Schema validation)
@Gemtastic yeah, this library absolutely sucks
If you don't have exactly the data you expect, error recovery is awful
You get ClassCastExceptions everywhere etc
 
6:41 AM
@fge But does that matter to the one receiving it?
 
fge
Sure it does
 
@fge Oh you're referring to that, that's not what I'm talking about
 
fge
Why do you think my most used project is json-schema-validator?
Hell, even Amazon uses it
 
7:04 AM
Blackout at work... Perfect start of the week :P
 
Monday is being monday
 
fge
@OlegKuznetsov how come you're online then? Mobile device + wifi?
 
No, it's over (for now)
 
fge
7:25 AM
java.nio.file rocks
 
@fge Wait, what?
Ah, java.nio != java.io ...
 
Does any of you know xampp?
 
fge
@OlegKuznetsov heh ;) But it's nice being able to create zips this way, isn't it?
@OlegKuznetsov for instance, using java7-fs-dropbox, you can save files from dropbox directly into a zip :p
 
Cool! :)
 
fge
7:40 AM
I don't even want to know how you created zips with Java 6- anymore
 
@fge It's easy: I didn't :P
@Unihedro Oh, hi!
 
hello :)
 
fge
@Unihedro java7fs.wikia.com/wiki/Using_the_java.nio.file_API <-- started, contributions welcome, of course
 
on it :D
 
fge
Next thing is more basic stuff, like how to get hold of Paths
And I need to start java7-fs-more
 
7:57 AM
" more "?
 
fge
@OlegKuznetsov there aren't any builtin utilities in the JDK for instance to make recursive copies and deletions, nor path resolution/relativization across providers
You can't path1.resolve(path2) if path1's provider and path2's provider are different
 
Is there like a "table of contents" for all the things you can do/use with Java?
 
fge
And that sucks
Therefore I'll create static utility classes MoreFiles and MorePaths
(and that would be a good way to give work to @Mr.777
 
While you people are hard at work I'm looking for hats :)
@Gemtastic Everything!
Programming is about making impossible things possible.
 
fge
Hats? I want them red
 
8:14 AM
@fge " to make recursive <...> deletions" Oh, yeah! It's a PITA
 
@Unihedro I was mostly thinking about the tools
 
Oh.
 
I don't even know what tools there are. @_@
But I get some of the tools from school I guess
 
@fge Hats are rewards at winterbash2014. Check them here winterbash2014.stackexchange.com
 
I really suck at finding companies that code java >_<
 
8:27 AM
Do you want a really big name or anything works for you?
 
Anything where the programmers actually can code
I'm looking for a internship/part-time job
Pay is whatever as long as I can get to work and learn
 
I found three secret hats! :)
@OlegKuznetsov Come back on christmas day! See you! ;)
 
It's easy
 
> post a chat message within five minutes of 0 UTC 1/1/2015 that gets starred
Note to self: Star everyone's messages on the day
 
8:36 AM
ooh!
 
@Unihedro how?
 
@Gemtastic Find a local company. I start up is best place to learn!
@Unihedro How do you find secret hats?
 
@ItachiUchiha by... doing secret stuff
 
@ItachiUchiha Via Firebug, I guess
 
8:37 AM
I am not responsible if you lose fun from finding the secret hats if you look at the spoilers.
Along with any illegal use from the read, and any claim that I would have caused harm from linking the spoilers will not be entertained.
 
fge
not really interested by hats anyway
 
Dev
@ItachiUchiha hi
 
@ItachiUchiha Well, that's what I'm trying to do, but google only gives me java educations >_>;
 
@Dev heya
 
4 hours ago, by Unihedro
If you don't like hats, you're not a real developer.
:P
 
8:52 AM
@Gemtastic are you aware of any companies in your neighbourhood?
@Unihedro lolz!
 
@ItachiUchiha nope :/
 
Dev
@ItachiUchiha need help
 
@Gemtastic try creating a profile on Linkedin and also on few of these sites ebizmba.com/articles/job-websites
@Dev yes?
 
Meh, I don't like Linkedin.
 
@ItachiUchiha already have a LinkedIn
 
Dev
8:54 AM
i am using eclipse adt, and developing a java+android software, for that i need jdk path, but when i use system.getproperty("user.home"), it always return jre path
 
@Dev Go to the system libraries of eclipse settings. Ditch the JRE, leave only the JDK you will use.
 
fge
@Unihedro do you like anything at all? :p
 
@fge I like hastebin.com over pastebin, and duckduckgo.com over google. ;)
 
lolz!
@Dev user.home returns user home directory, not the JAVA_HOME
use System.getproperty("java.home")
 
@fge You should at least turn on hats so you can see us wearing hats in the chat room. :p
 
Dev
8:56 AM
@ItachiUchiha typo mistake
here
using java.home only
 
Then try echo $JAVA_HOME in the terminal and check where is your JAVA_HOME actually pointing to..
 
@Unihedro Or if you don't like hats, probably you've overplayed in TF2...
 
Minecraft player here :P
 
Do they have hats?
 
YES
 
8:59 AM
@Dev I guess its pointing to the JRE, just update your JAVA_HOME path and it is good to go!
 
and we love hats ^_^
3
 

« first day (1514 days earlier)      last day (3428 days later) »