« first day (1468 days earlier)      last day (3465 days later) » 

12:50 AM
Greetings!
Being cremated is my last hope for getting a smoking hot body...
 
1:13 AM
Hello
 
 
4 hours later…
5:12 AM
morning
 
Morning
 
5:32 AM
Morning
 
good morning
 
'sup people?
 
fge
5:53 AM
Reading and coding, alternatively
 
What are you reading?
 
fge
JAX-RS 1.x to 2.0 conversion tutorials...
 
interesting
 
fge
Yeah, except I couldn't convert my app even after several days of reading and trying to apply :/
 
6:08 AM
:/ that sucks :(
 
fge
Well, the problem is probably with me to start with
 
Well, I have absolutely no clue
 
7:05 AM
heya people!
 
fge
Konichiwa
 
Another Japanese speaking person in the room? :P
 
Aruake nai ja nai
 
fge
Uhm, not really
 
:O
 
fge
7:18 AM
6
Q: What is the correct alternative to Java's equalsIgnoreCase

MartinThere are lots and lots of examples on why and when java.lang.String.equalsIgnoreCase will fail because of incorrect use of the locale. But I did not find any examples of the correct way. Unlike java.lang.String.toUpperCase there is no version with a locale parameter. Converting both strings to ...

Very interesting question, that one
 
My first real Java answer. I hope I did alright :')
 
which one?
 
0
A: rotating documents in pdf file using java

GemtasticYour current code is telling the page to be flipped 90 degrees regardless of what the viewer regards as up and down. When you flip it 90 degrees, the flipped image is the "normal" image and it will keep rotating to infinity. You should have an if case and a boolean to test if the image already i...

 
fge
@Gemtastic I'd have written image.setRotationDegrees(flipped ? 90 : -90);
But the runtime byte code will eventually be the same, so...
 
@fge That's better code indeed
I hope my example was true to the sloving of his problem at least
I mean, I haven't even dealt with those things yet, I'm just applying logic
 
7:27 AM
@Gemtastic what is Derp?
 
@ItachiUchiha How do I explain that :S
 
@Gemtastic I removed it as it is not necessary in the answer
 
Derp may refer to: In Internet slang it may be used as a placeholder expression (dialog may be expressed as "you just got derped") or a response to a question, signifying stupidity. Derp, a hacker group Mr. Derp, a minor character in South Park Derp Snootsly, a major character in the Hopkinton Community Access & Media book series Derp and Merp Egmond aan Zee, a village in the Netherlands commonly referred to as Derp by locals. Drug Effectiveness Review Project == See also == Darp, a town in the Netherlands Derpy, a background character in My Little Pony: Friendship Is Magic == References... ==
I used it to exemplify that my code may or may not be the best
 
I just posted an edit
 
me too
I forgot to chage the value of flipped
 
fge
7:35 AM
/me has a proposed edit but won't do it, meh
 
But I identified the problem right, right?
It wasn't bad of me to answer?
 
fge
int rotationDegrees = flipped ? 90 : -90; image.setRotationDegrees(rotationDegrees); flipped = !flipped;
:p
@Gemtastic I don't see where you are wrong
 
@fge good :)
 
@fge lolz! Nice :)
 
I'm just a bit insecure
 
fge
7:37 AM
You have to start somewhere
0
Q: Name and description of projects are null in generated pom: how to fix it?

fgeUsing gradle 1.8, I generate a repository pom file when uploading using the following code: [ install.repositories.mavenInstaller, uploadArchives.repositories.mavenDeployer ]*.pom*.whenConfigured { pom -> pom.project { name "${name}"; packaging "jar"; descript...

If someone knows the answer to this one...
"When I encountered the idea behind the new Science paper—that loss might make a laser easier to switch on—it was as if someone had suggested that house cleaning is quicker if you start by emptying a septic tank in the living room."
Bwaahahaa
Excellent
 
in the code you link it looks like you haven't passed in any value to the name and description objects
Thus they are null because you didn't assign anything to them
 
fge
@Gemtastic I explain below where they (supposedly) come from but it looks like my suppositions are wrong
 
@fge the way I see it, you're still not passing any values
 
fge
Well yes, since I expect them to be defined already
 
project.ext {
    description = "the description here";
}
 
fge
7:42 AM
The name via the project name, and the description via project.ext
 
that doesn't do what you think it does
But I'm a n00b so you could say I'm just guessing
By what little I know I gather that you have not defined the objects and thus you're not passing any values
 
@gem do you know gradle?
 
fge
Gah, what's with the outburst? 10 github stars for json-patch in 3 days
 
gZ!!
 
@ItachiUchiha No I don't but I'm working with maven and I'm learning programming logic in general
 
fge
7:46 AM
Well, maybe not that surprising since I have one of the very few implementations of it out there
 
There's a reason for why I type it in the chat and not as an answer, I could very well be wrong, but to me, project.ext is not doing what fge thinks it does
I want you to prove me right or wrong :P
 
hehe
 
hi
 
@fge Actually, my JavaBot repo got 5 stars before I even finished its first build, while Pham being a mature and incredible project, only has 6 stars over the months.
 
hello
 
fge
7:52 AM
@Unihedron JavaBot, you say? Is that the same javabot which operates on FreeNode's ##java?
 
@fge No, the chat bot in construction which will do misc stuff for this room.
 
fge
Hmmm, OK
Well, if you need help, ping me ;)
 
:)
ping @fge heellpp my computer has a virus
 
haha
 
8:22 AM
@Unihedron Hello
 
good morning
 
Good Morning All....
 
8:34 AM
'sup all?
 
@mlwn hallo :)
mornin' @Vog, welcome back!
 
fge
Meh, I hate maven
 
@fge Still won't do what you want?
 
We're in the same boat :)
 
I'm "born" into maven so I don't hate it
 
8:38 AM
I like maven as well
may be coz I haven't used Gradle :P
 
@ItachiUchiha maybee..
 
fge
@Gemtastic problem is solved, but I don't know why/how, so I seek more explanations
 
@fge What did you change to make it work?
 
@Unihedron I think I borked the se-chat....
sendmessage reliably lands: here
 
oh my..
 
fge
8:43 AM
@Gemtastic: refer to ${project.name} instead of ${name}, same for description and move the description declaration out of project.ext
 
@fge That makes sense. :)
Do you want me to tell you why that works but not the other?
;P
 
param-declaration ftw...
 
fge
Guava rocks
It should be part of the JDK
 
But google is like, evil.
 
also Guava may change anytime..
 
fge
8:50 AM
Eh?
I've been using it for two years and don't have any problem
 
if you use the same version...
but "deprecated functionality will be removed within 2 versions after marking"
 
fge
Yes, which is fair enough
Sure, the JDK can't do that, but it goes too far sometimes
 
*cough* Stack *cough*
 
fge
9:05 AM
For instance, why isn't Vector marked as @Deprecated? It should have been flagged as such loooong ago
 
Vector isn't too bad... But every library had to build their own Vector cause the java.util one sucks
 
fge
@Unihedron not too bad? It isn't even as thread safe as most people think it is :p
 
obu
i have a war file running on weblogic, how to get that weblogic details like host, port
 
@fge Feel free to convince the oracle devs that they wrote vector class as utter garbage and they should ditch it.
 
fge
Eh, that's too late
 
9:08 AM
shrug
 
fge
Even bugs are sometimes treated... Well... Awkwardly
For instance, the bug with BigDecimal's .stripTrailingZeroes()
It has taken an uproar on the dev mailing list so that this bug be fixed instead of documented
 
fge
9:33 AM
Yay, another "why .hashCode()" question
 
T.T
canonical dupe - cv-request..
 
fge
9:48 AM
Very interesting, and a good use case of indy
 
fge
10:03 AM
1
A: Write permissions not getting set when using NIO on unix

fgeThis is because the umask is applied. Try and type this at the shell: umask 0 and then rerun your program (or launch your IDE from the command line and run the code). If my guess is correct, it also means that if you do umask 027, the permissions for your created directories will be 750. Unf...

Trap!
 
Trap? Where?
 
fge
@Unihedron the umask
 
umask ^ mask = 111 111 111
 
 
1 hour later…
fge
11:30 AM
OK, next target: fix json merge-patch so as to implement RFC 7386!
 
Good luck!
 
0
Q: @Resource annotation for jdbc Connection Pooling not working,DataSource is null

user2309862I am using the @Resource to obtain the DataSource from this resource for connection pooling in Java: meta-inf/context.xml <Context> <Resource name="jdbc/remoteDB" auth="Container" type="javax.sql.DataSource" removeAbandoned="true" removeAbandonedTimeout="30" maxActive="100" ma...

 
fge
@Unihedron actually this will be more simple than what the earlier draft defines
No null pruning in arrays, for one
The RFC is pretty short: tools.ietf.org/html/rfc7386
But JSON Patch (RFC 6902) is still far more powerful
 
11:49 AM
Greetings
 
Greetings
 
hi
 
How are you today?
 
fge
Define "you"
 
Define "today"
 
11:53 AM
In this room. "You" refers to anyone [everyone] in this room I talk with, or would want to talk with...Only because I did not direct the question at a specific person.
 
fge
Just joking ;) English is ambiguous in this domain
 
"today", meaning NOW
 
fge
Anyway: fwiw and fwyc, I'm fine
 
NP FGE. Kinda figured you were...
 
@Joe'sMorgue I've changed the proposed rules of this room to disprove that.
 
11:55 AM
Define "that"
 
"That" refers to the content of your message I'm replying to.
 
Now I am fine.. in 5 minutes my documentation for my graduation project will get reviewed ....
 
fge
Aah, documentation
 
~afk
 
fge
A thing which most people hate to write but want to have
 
11:56 AM
Define "your message" [There has been several]
 
fge
I love to write documentaiton, I must be an alien
 
I've suspected that!
 
Documentation sucks
 
fge
Oh? Why?
 
'Cuz I always write the best documentation, and my colleagues writes ones of such level that I feel the demand to... punch people across the internet
 
fge
11:58 AM
"Best"? That is quite some claim
 
best among the team, at least :D
 
fge
Best for whom? The intended audience? ;)
s,intended,targeted
 
s/(\?).+/$1 You?/
 
Thanks @Unihedron, that cleared it up!
 
fge
Anyway, I have the following POV: if you fail to document what you implement (be that code or anything else), then you don't really understand what you have just implemented
 
12:00 PM
I also exceptionally hate the phrase "Self-documenting". Cuz it's more excuse than constructive.
 
My POV: If you write code that needs documenting of more than 5 words, you didn't write it well enough
 
// This is where the magic happens
... I'm going to murder another person. ^
 
fge
@Unihedron that's 6 words
 
No, I found that line commenting the following ~50 lines.
 
fge
@Joe'sMorgue I vehemently disagree with your point of view ;)
Some code is obvious, yes; some isn't
Go document Object's .equals() and .hashCode() in 5- words
 
12:03 PM
@Joe'sMorgue Please no Python talk :D
 
My longest comment sits on like 7 lines, 1 letter per line
 
Great comments:
 
@Unihedron scary D:
 
@berserk ._.
I'm not hot-tempered, I just can't stand stuff like this.
 
What is wrong with it?
 
12:10 PM
8 mins ago, by Unihedron
// This is where the magic happens
What's acceptable with it?
 
It just shows it is a cool stuff.
Magical logic maybe.
 
It doesn't really. It's not constructive. You may as well not write stuff like that.
 
I don't write stuff at all
 
Wow, {@link code_src code_display} actually works?!
 
fge
12:13 PM
@Unihedron yes it does
 
@fge TIL
 
fge
Glad I could teach something ;)
 
@ita Yo :)
 
@mini heya
 
@ita I'm frustrated with JavaFX ChoiceBox not supporting go to key by default
 
12:19 PM
hi
 
fge
God do I have to have to write Iterator<Map.Entry<X, Y>>
Why isn't there a MapIterator<X, Y>? :/
 
@miniHessel ?
 
If you have a Choicebox full of choices, you have to scroll through them... Should be a option of going to an element by pressing a key
for example if you press P it should go to the elements in the choice box who has P as the first letter.
 
12:32 PM
it's 2014 , god damn it :P
 
Yes, give me my hovercar.
 
Nobody wants that... :/
 
@MiniHessel AGREED! 100% TOTALLY AND COMPLETELY!
[Too subtle?]
 
@miniHessel you can use an editable ComboBox
 
Ye, but it isn't the same as a choice box, is it?
@ita this worked great: tech.chitgoks.com/2013/07/19/…
 
12:46 PM
@miniHessel Its also a ComboBox :P
 
Ye, I converted :P
Just need to upgrade it, so it also show a label of what the user is typing :)
 
well coz its just using listeners, you can use it for ChoiceBox as well
 
Actually not, since it uses ListView lv = ((ComboBoxListViewSkin) SelectKeyComboBoxListener.this.comboBox.getSkin()).getListView();
 
fge
2
A: Reading from a field in multithreading

Gyapti Jainvolatile is used to indicate that a variable's value will be modified by different threads. So yes you should declare a member volatile if plan to read it from other thread. Access to volatile variable acts as if it enclosed in synchronized block. So you don't need an explicit synchronization.

 
well coz its just using listeners, you can use it for ChoiceBox as well
 
fge
12:50 PM
I love those kinds of "comment-laden" answers
 
@miniHessel you can Put ChoiceBox Skins
 
ChoiceBoxListViewSkin ?
That doesn't exist
that's why you need combobox ;)
but anyway, combobox works great
 
fge
@ItachiUchiha you are Japanese, correct? If yes, do you know about Hiromi Uehara (Western order for the name)
 
@fge wtf? Who said I am Japanese?
 
fge
1:02 PM
Well, I thouught you were
My bad, then ;)
 
Anyways Hiromi Uehara is a Composer
 
fge
And a damn good piano/keyboard player too
 
Virtual keyboard?
 
fge
This is anything but virtual
(the first tune of this video is "I got rhythm" btw)
 
1:26 PM
this is causing an error conn=(Connection)ds.getConnection(); it says com.sun.proxy.$Proxy6 cannot be cast to com.mysql.jdbc.Connection
 
fge
"a general rule of thumb in Java is to write code that is obviously correct; the JIT will optimize at runtime, and most of the time far better than what would you achieve by hand"
 
Kind of why I don't like Java. ;)
I want more control. POWERRR!!
 
fge
Control is good -- as long as you know how to implement it ;)
 
bithax
 
@fge your comments are mostly restating what the code does with some prosaic interjections...
 
fge
1:39 PM
@Vogel612 sorry, I don't understand what you mean
 
I feel that Robert C. Martin expresses quite well what comments should do..
/*
 * If both are numbers, delegate to the helper method
 */
if (a.isNumber() && b.isNumber())
    return numEquals(a, b);
I see that you check for both being numbers and invoking a helper..
the comment is a useless waste of 3 lines and attention
no offense..
 
fge
Oh, well, OK, but now a and b are not very talkative as variable names
 
yea...
 
fge
And I happen to like to keep parameter names when I @Override a method
 
but it's actually not half bad....
concerning that anything else would be this, and that ...
or rather.. thing and otherThing
 
1:44 PM
At least it specified "delegate to the helper method", not "call numEquals with parameters a, b"
 
yes at least that..
 
The first is acceptable and can help when skimming, the second makes me cry
 
I often feel that with proper naming you can make the first become the second
and then drop the comment
 
fge
@Unihedron what "second"?
 
The comments examples I gave in the message above
I personally don't make variable names one or two characters. I don't understand why people use it for iterators, o for "each element" in a foreach, l for lengths, etc.
 
fge
1:46 PM
@Unihedron as I said I like to keep parameter names when I override methods; and doEquivalent parameters are a and b by name
 
i as index in for-loops is quite common though.
@fge why were they a and b in the first place??
 
@fge I meant devs of the framework making them a and b :)
 
fge
@Vogel612 do you ever have a loop index as a parameter name to begin with? ;) As to your second question, ask Guava devs ;)
 
When I code frameworks, my params are rather descriptive:
 
fge
@Unihedron yeah, so am I; now, Equivalence applies to any type, so what would you call the parameters? OK, first and second would have been better than a and b
 
1:49 PM
<T>void alternateCollectionArrangementToSet(Set<? extends T> par1SetT, Collection<? extends T> par2CollectionT, int par3int, int par4int);
^ Not the most helpful names, but slightly more descriptive than whatever 1-2 char name anyone can come up with
 
Eeeeeeeeek! hungarian pre- and postfixing
I think int par3int is the lest descriptive param-name that I have read in a while
 
fge
Heh, I love how devs (well, "wannabe dev" in my case) have this kind of discussion when, at runtime, it doesn't matter one bit
(note, I happen to call some of my method parameters victim)
 
@fge runtime doesn't give a **** about readablity, but I do
not the best, but not bad either..
something happens to the victim..
 
fge
@Vogel612 yeah, sure, and "readability" is ultimately subjective
Hence my comment
 
there is some objective criteria for readability though..
one of them is, how well can you pronounce an identifier
and how much information is inside the name
 
fge
1:53 PM
Hmmyeah, true enough
 
the rest is mostly formatting preferences
 
fge
But that is mostly cognitive information
At a first glance, such information is not related to programming per se ;)
But yes, these are important
 
what is reading other than processing text to extract cognitive information??
 
fge
To humans, this is what it is, yes
 
and how is programming not reading, writing, rereading and rewriting to the excessive?
 
fge
1:55 PM
To computers?
 
again, the computers mostly don't give a **** about how your code looks
 
fge
Anyway, I see your point
 
they aren't even relevant to the discussion...
> Programming is the art of telling another human what one wants the computer to do. ~Donald Knuth
 
fge
A computer can read a wav and produce sounds from it, a human cannot do that -- a human has limited cognitive abilities, and programming languages reflect that
 
There are languages where specific constructs helps the computer compiling code better, but I guess this ongoing convo isn't going to cover that. :P
 
1:56 PM
@fge but a computer can't process the meaning behind the sound
 
fge
@Unihedron this is another field of study altogether ;)
 
a computer cannot read the cognitive information inside the sound.
 
fge
@Vogel612 that's a field of study by itself in computer science :p
 
@Vogel612 Speech recognition ahoy
 
that's fuzzy pattern matching..
 
1:58 PM
yep
 
well it's a little more complicated, but basically you teach the computer to connect a pattern to a meaning
and if the computer could do that himself, ...
well that's where intelligence begins
 
fge
@Unihedron even in this case, signal processing of voices can be decomposed in individual IPA components
And that is basically how speech recognition works
 
@Vogel612 Pham
Isn't that called Machine Learning?
 
exactly..
but machine learning is still ... unfinished so to say.
the subset where you can properly apply it is too limited yet
and you have to tell pham each time
 
Contribute to it!
 
2:01 PM
meh...
 
@Vogel612 Write a script to check the quality of the post and reply automatically..
 
lemme get the JavaBot running before you ask me to solve the biggest computer problems...
 
fge
(and all of this discussion stemmed on a disagreement on one particular comment -- I tell you, humans are something else)
 
:)
 
@fge I haven't gotten started yet..
the cool part begins where you want to make computers associate freely
 
fge
2:02 PM
@Vogel612 oh uh well... Please keep in mind that my academic CS knowledge is zero, I only have practical knowledge :p
 
@fge somewhere around the same here...
 
@fge Like our academy teaches anything. :)
 
all "academic CS knowledge" is self-taught or asked from other SE users..
 
^^
 
fge
@Unihedron well, I'm old so it taught me nothing, but today's CS is much better
For instance, complexity classes and such, and what differentiates them
 
2:04 PM
meh.
 
@fge I currently knows how to automatically generate Javadocs, to scrap a file system, to use a Linux, quantum computing, and school where I study was zero help.
 
fge
What P = NP means
 
It's even a liability - deprecated material, and the teachers aren't good programmers to begin with
 
well that's another story..
P != NP or P = NP..
 
And it teaches you how to use Microsoft Office, which any actual computer user wouldn't bother with.
 
fge
2:05 PM
OK, so what does this mean? ;) What is a complexity class?
@Unihedron eh? In France, we are far beyond that
Anyway, on to Java itself I'll post that link again:
 
please review this
 
more to broad than unclear.
you have outlined the pseudocode already, only the step to "implementation" is missing
and dear me, we can't really help you with implementation from scratch
that would require an answer of extraordinary length..
You aren't really stating a problem, you present us with your non-code solution to a IMO relatively uninteresting problem....
there is no real question there... @Aditya
 
and thus unclear
 
both apply...
sure writing the code wouldn't pose much of a challenge with the work already done ;)
 
This question was closed as Unclear what you're asking because it's not a specific programming problem, instead a task to accomplish. Stack Overflow is not a coding service. Please take a tour. Attempt the problem first, then post specific problems. If you can reword it to fit guidelines for reopening your question, please do so. — Unihedron 9 secs ago
 
2:17 PM
If I want to override the toString method of a element, I have to create a new class extending the element, correct?
 
new Apple() {
  @Override
  public String toString() {
    // implementation
  }
}
 
public class Column extends TableColumn {

String NAVN;

public Column(String navn) {
NAVN = navn;
}

@Override
public String toString() {
return NAVN;
}

}
 
so should i delete that question.
and delete bad questions from my account
that can't be improved?
 
no
fix them
 
fge
@miniHessel that looks OK to me (apart from the class name)
 
2:22 PM
Column?
 
fge
@miniHessel although it is purely subjective, the child class has a name which is only part of the parent class' name; in my eyes it is a little confusing
 
So it should be named TableColumn as well ?
 
fge
Among other things it makes me wonder "what does that class do which its parent doesn't"
No, since this is illegal
 
I know :P
totally illegal
 
fge
(unless you are in a different package but you don't want to do that)
 
2:26 PM
i believe my bad question can't be improved, for example suggest a method for this old one?
 
@Aditya It's already answered, so you can't delete it to begin with.
 
so what shopuld i do to improve, can do nothing
 
Learn from them and ask better questions in the future.
Hiya @mrniceguy
 
com.mysql.jdbc.JDBC4Connection cannot be cast to com.mysql.jdbc.Connection
what can I do?
 
2:55 PM
House music anyone?
 
fge
@Unihedron not bad, but why on earth does the video try and tell the viewers that there is an actual drum player behind that? :p
It is obvious that there isn't (at least to me)
 

« first day (1468 days earlier)      last day (3465 days later) »