« first day (1469 days earlier)      last day (3472 days later) » 
03:00 - 16:0016:00 - 00:00

4:00 PM
    public enum ErrorMessage {
      CRASH("Unexpected Exception"),
      USER_FAULT("Aborted computation"),
      // ...
      TERMINATED("Program Terminated");

      private final String message;
      ErrorMessage(String msg) {
        message = msg;
      }
      public String getMessage() { return message; }
    }
 
~afk
 
Then they could use ErrorMessage.CRASH somewhere in their code instead of writing the same string over over and over.
Of course, an externalization ResourceBundle is probably better
 
fge
ResourceBundle sucks
 
@fge Still better than littering with garbage enums holding strings
But I agree, it sucks
 
fge
@Unihedron hence github.com/fge/msg-simple
:p
 
4:02 PM
!!!! :D
I'm totally gonna use it in the chat bot ;)
 
Thanks Unihedron for your help!
 
Oh, you got it? Well done!
 
I have yet to test it :P But thanks xD
 
^ @Gem
It's like C enums. Except more OOP.
 
Adz
hey guys, does anyone know of a logger that works on binary data?
 
4:13 PM
Welp, I have a C++ contest tomorrow morning, so I gotta go to sleep now :)
@Adz Maybe log4j, but I don't have that much experience with loggers
Night!
 
night and good luck @Uni ^^
 
Thanks ;D
 
Hello everyone! Any skilled person in Spring Data MongoDB here?
 
4:52 PM
If there is, he's AFK atm
Sorry, I'm just a n00b so I can't help you :/
 
fge
5:04 PM
I know MongoDB but not Spring
 
5:32 PM
Hi , can anyone help me with this stackoverflow.com/questions/26662707/…
 
5:46 PM
Im trying to use Apache Commons CLI parser, and trying to get it to take "an argument with spaces" between quotes as one argument (rather than spliting it by spaces). Any idea?
 
fge
@Trollkemada this is not the role of this API to handle that, but the role of your command interpreter
 
I am using parser.parse(myOptions, argumentsFromMain)
 
fge
At the process level, and in your code, that an argument has spaces in it or not is irrelevant
 
isnt that right? Should I pre-process the arguments from main somehow?
 
fge
No
As I said, it is your command interpreter which will do that for you
 
5:49 PM
I though Apache Commons CLI was a command interpreter
can you suggest any?
 
fge
It isn't
It is a library which handles command line arguments
This is quite different
This is not the role of this API, for instance, to provide std{in,out,err}
A command interpreter is something like a Unix shell or Windows' cmd
As such, this library is what you want
Although I'd choose a different one
 
If I want to process something like
myAplication.jar -e oneArgument -d a,list,of,arguments
Apache Commons CLI is usefull for that, right?
I just want to be able to also process
myAplication.jar -e "one Argument" -d a,list,of,arguments
 
fge
It can do it, yes
And in your second case, again, it is not Apache CLI which will handle it
It is the shell
fge@alustriel:/tmp$ cat t.sh
#!/bin/bash
for arg in "$@"; do
echo arg: $arg
done

fge@alustriel:/tmp$ sh t.sh arg1 'arg with spaces'
arg: arg1
arg: arg with spaces
There you have it
See? ;)
 
Oh, so you are saying the way I get the String[] args in my main method depends on the console the user is using to invoque my aplication?
 
fge
Yes, exactly
 
5:54 PM
Oh, I get it now.
Thank you
 
fge
No problem
To be fair, this is a very, very common misconception
And I fell for it at first, before I studied the problem extensively :p
@Trollkemada same in Java (8):
fge@alustriel:/tmp$ cat t.java
import java.util.Arrays;

public class t {
public static void main(final String... args)
{
Arrays.stream(args)
.forEach(arg -> System.out.println("arg: " + arg));
System.exit(0);
}
}

fge@alustriel:/tmp$ javac t.java
fge@alustriel:/tmp$ java t arg1 "arg with spaces"
arg: arg1
arg: arg with spaces
 
 
1 hour later…
fge
7:13 PM
fart
 
Ewww!!!!!
 
D:
 
fge
Sorry :p
 
At least it wasn't stiny code
;P
 
fge
8:02 PM
Aah, palindrome detection
Another supertrap
 
@Gemtastic You REALLY went THERE?!?!? :P
 
@Joe'sMorgue What?
 
8:19 PM
Comparing code to farts...
My coding skills are better than that!
[At least, I hope they are...]
 
I never said your code was smelly
 
My code might smell a bit sometimes too
DON'T PRETEND LIKE YOUR CODE NEVER STINKS!
 
I never said it doesn't, I said I HOPE it doesn't...
[Don't get mad, I'm messing with you...]
 
fge
Meh, I am sure that I have code that smells
 
8:25 PM
I just wanted to poke fun at the expression "don't pretend like your shit don't stink"
 
fge
Experience is key here; with time, you learn how to do things better
 
Yeah, but every once in a while you code something that stinks because we all have the bull flowing through us when we can't be arsed
;P
 
fge
Uhwell, when I have to write code like that, I always add a comment saying "yeah well, this sucks, but I could make it work this way, patches welcome"
And tbh, I still suck at "large scale coding"
 
I like it!
Large scale coding? I rarely look outside of the current method I'm working on at the moment.
 
O.O
 
fge
8:30 PM
@Joe'sMorgue by this I mean I have a lot of projects, and some projects depend on others
 
I start out thinking up the structure from the features O.o
I have the skeleton done before I even start up the IDE
typo spannish :P
I'm either gonna suck or rule in a team
 
fge
OK, what do I do? I have an answer which is accepted but I know it is wrong
 
@fge wut?
 
Can you remove the answer?
 
fge
I can delete it, yes
 
8:34 PM
You mean at SO?
 
I think the proper thing to do is delete it.
 
fge
9:21 PM
RFC 7386 support done and fully tested!
 
 
1 hour later…
10:31 PM
hi
 
11:03 PM
hi
 
hi
You're up early Uni
 
yess
 
why? :O
The competition?
 
Not really.
I just happened to wake up early.
 
fge
@Unihedron timezone?
 
11:11 PM
07:11 am
 
and it's SATURDAY
 
:)
 
fge
So, you are GMT+8
 
Yeah.
 
fge
GMT+1 here
DST kicked out just last Sunday :p
/me hates DST; it's useless
 
11:15 PM
^^^
 
I live in a country where DST actually is useful
 
fge
@Gemtastic oh, really? Why is that?
 
Because it's dark until 9am if we don't turn back time.
or sun rises at 1am in summer
 
lol
 
fge
11:17 PM
DST actually hinders Java devs -- remember what I said about Timer vs ScheduledExecutorService?
@Gemtastic eh, then what? Consider people living close to the poles
 
We ARE
You don't get much further north than scandinavia
unless you count the scientists at the poles
 
fge
Yeah, true, apart from Iceland
 
Iceland is part of scandinavia
 
fge
Hmm, really?
 
Yes
 
fge
11:19 PM
@Gemtastic wikipedia doesn't seem to include Iceland
(in Scandinavia)
OK, I stand corrected; the page says "The term Scandinavia can also include Iceland, the Faroe Islands, and Finland, on account of their historical association with the Scandinavian countries"
 
Yes
Norway made dang sure iceland was part of scandinavia
And Denmark too, since denmark is scandinavia's england
Owned near everything at parts in time
Scania was danish for the longest time
 
fge
To be honest, I have never set foot further north than Netherlands
When I travel, I prefer to go South :p
 
It's warmer there and the days are more balanced
I live in the kinda south parts so the light isn't as extreme as in the norhtern part of this country
 
fge
@Gemtastic which country is that? Sweden? Finland? Norway?
(if I may ask, of course)
 
But it's still enough so that the DST helps
It's on my profile ;P
And I kinda thought people in here knew by now :P
 
fge
11:24 PM
Well, sorry, I don't have the habit to peek at people's profiles :p
 
I'm from Sweden
 
fge
Ah, then you must hate me somewhat
I'm from France
(re: handball)
 
Having a 9-5 job or 8-4 here, you kinda want DST so you can catch a little light before while you're commutin to and from work
Why would I hate you?
Handball? The sport?
 
fge
Yes
 
About sports:
 
fge
11:27 PM
Heh
 
Really couldn't care less for that
 
fge
Well, Sweden is the host of a bucketload of good jazz players too
 
Sweden is the host a bucketload of everything
We're all over the internet, all over hollywood, all over all kinds of music genres
Heck, even I play and sing XD
 
fge
Mostly double bass players, I don't know why, but of course there is also E.S.T. (pity that Esbjorn Svensson died by the way
^^^^ E.S.T. live; a gem
 
I'm really not into Jazz though
I have no idea who anyone is
I'm a metalhead :/
 
fge
11:35 PM
Nothing wrong with that ;)
I happen to prefer music with beautiful harmonics, and jazz is right there up my alley
 
Nothing wrong with jazz, in fact, for people who really apreciate skills, Jazz is THE thing
I just like heavy guitars and growls :P
 
fge
For some definition of "skills" ;)
For instance, many jazz drummers have an unbelievable groove, but they don't have the technique to be "speedy" as required by some metal rock playing
Conversely, I don't believe a skilled metal drummer has anything close to a groove either
 
It's entirely different things
 
fge
Case in point: André Ceccarelli; his groove is second to none, but he's not the speedy type
 
Hello does this room cover JSF topics?
 
fge
11:44 PM
@jaytai provided someone here knows about JSF...
(that won't be me)
 
thanks fge ..i'll keep looking
 
fge
@Gemtastic here is the kind of music I really enjoy: youtube.com/watch?v=HEJN_G-RtfQ#t=21m38s
OK, the guitar player has extraterrestrial skills
 
@fge This is my stuff: youtu.be/0t0FGyhB6C8
Power metal, oh yeah
 
fge
Yeah, saturated to the extreme there :p
 
Crappy youtube video, but meh
 
fge
11:50 PM
Meh, do you really want to "watch" when it is a music video anyway? :p
The sound is good enough
It sure differs from my video ;)
 
I don't watch
I listen to the recordings
But I can't link you my mp3s :P
 
fge
Meh, no problem ;) Anyway, yeah, that video is what I'd expect from metal music -- enthralling
And "simple" ;)
 
Metal videos suck XD
Cheese, cheese everywhere
 
fge
Well, when it's music, I barely watch, I only listen anyway
So, what do you make of my quoted video above? ;)
 
Same here
I can't focus on Jazz
I could just as well had been listening to my noisy computer :/
 
03:00 - 16:0016:00 - 00:00

« first day (1469 days earlier)      last day (3472 days later) »