« first day (1717 days earlier)      last day (3229 days later) » 

4:05 AM
any1 here?
 
no
 
Fantastic, just the way i like it
 
Now noone can hear you scream evil laugh
 
4:22 AM
SCREAMS :o
Hmm
anyone willing to help me out with a hashmap problem?
 
fge
Moo
@UnknownOctopus don't ask to ask, just ask
 
I need to store the contents of an array into a hashmap using an integer as the key. I've tried this but get a ArrayIndexOutOfBoundsException. It's probably pretty simple, but it's late and i'm stuck lol
 
4:38 AM
It is easy
remove the = or <=sub.length
.length doesn't count from 0, but index does
If you have 5 items in a list, .length will return 5, but the array's last index will say 4. 0 1 2 3 4 = 5.
 
Perfect, works great, thanks
And yeah i get it, 0-4 are 5 different index's
xD
 
5:12 AM
@UnknownOctopus protip: if you're wondering why something that includes an index doesn't work, try again with -1 then try again with +1, 99% of the time one of those would fix the problem
 
5:25 AM
Indeed ^
Index out of bounds exception is exactly what it sounds like; you're trying to fetch something outside of the index.
 
fge
6:24 AM
~sonarqube--
 
How many minus is that now? A million?
 
More..
 
Probably :P
 
fge
As many minus as my frustration trying to figure things out which should have been easy to do had the f*ing thing been documented properly
 
I've never seen a sonarqube++
 
fge
6:26 AM
And I'm highly frustrated from the experience
So, yeah, a fair number of minus
But then I work with it, so...
 
May be you should take a step ahead and start documenting sonarqube and sending PR's to the dev team :P
 
Well, considering you think the JOOQ manual is a breeze to read, sonarqube must truly be hell.
 
fge
@ItachiUchiha I'd love to, except that for each question I find an answer to, another couple questions raise which I can't answer; as a result I cannot document properly
 
Ahh.. poor you
 
fge
sigh still, I guess some documentation is better than none at all so yeah, I might just do that
 
6:28 AM
@Gemtastic rofl
 
fge
@Gemtastic it is indeed a breeze
 
btw is 2.5 GHz Intel Core i7 quad core + 16GB 1600MHz .. a decent configuration?
 
@ItachiUchiha for what purpose?
 
fge
@ItachiUchiha seems pretty good for a dev machine; now it also depends on the storage
Also, what type of RAM is that?
 
Its a macbook, so it has a 256GB SSD, without harddrive
Its a DDR3
 
fge
6:31 AM
Ah, yeah, no solid state RAM then; bah, I don't expect that to make inroads in the consumer market before at least 1 year
But that's a pretty good configuration indeed
 
@fge Not to someone with no prior experience in ORMs :P
 
fge
Although if you go that way I'd suggest a Dell M3800
 
Or databases
 
I really thought it was a PC , at least you can overclock it but you need to have Liquid Nitrogen for cooling :P
 
@deadlydragon00 Since it is a macbook, there will be no hard-core gaming on it ;)
 
6:36 AM
:) yeah , But that kind of machine is already excellent for gaming , much more when you have Iris Graphic, then again mac do heat extremly :)
 
fge
<-- not interested in games; interested in raw computing performance
If it comes with a powerful GPU to boot then I'd use CUDA to offload FP operations if it comes to this
 
when fge talks about hardware it's not even english anymore
 
fge
It's English, Jim, just not as we know it ((c) Spock)
 
XD
 
just a small help. I'm working on a old project. I need to find the code for setting the icon for minimizing.
 
6:42 AM
Which IDE do you use?
 
netbeans
is that they set used setIconImage func?
But it's an javafx project.
 
@Unihedron Why would that even matter?
 
In swing it just setState(Frame.ICONIFIED) , idk with Fx
 
@deadlydragon00 thanks let me check.
 
@Gemtastic Some IDEs has class hierarchy analysis and proper searching. Unfortunately, I don't believe netbeans does either.
 
6:47 AM
sorry it's not working. I use the above string as search string in netbeans ide. But it fails to find.
They added swing code also.
 
@Unihedron I think it does
But now I know what you're getting at
 
But it must be present inside uitables directory.
 
Oh, I may seem silly but I don't like wasting people's time.
(conditionally)
 
/javadoc Stage
 
@ItachiUchiha javafx.stage.Stage: The JavaFX Stage class is the top level JavaFX container. The primary Stage is constructed by the platform. Additional Stage objects may be constructed by the application. (1/21)
 
6:48 AM
@ItachiUchiha they used javafx 1.3
old one..
 
1.3?
That is no longer supported
I am not sure if documentation exists for 1.3 :P
 
gys do u know how to write sql functions in @NamedQuery. For Example I have @NamedQuery(name = User.GET_USER_BY_HASH_ID, query = "SELECT u FROM User u WHERE MD5(u.name) = :email AND u.md5 = :password")
but shows me error on MD5(u.name)
 
fge
Why would you MD5 your user name?
That is a stupid thing to do
 
lol because I need it
whatever what is the case
 
fge
What? Why? Who dictated that stupid requirement?
 
6:53 AM
@AvinashRaj Got it. The variable you are looking for is icons in docs.oracle.com/cd/E17802_01/javafx/javafx/1.3/docs/api/…
 
I have to right function In @NamedQuery thats not a stuped
write*
 
fge
What is stupid is to store a digest of the username in the database instead of the username
By definition, digests are hashes; and hashes are not bijections
So, yeah, that's utterly a stupid thing to do; and at that point it's not even an opinion of mine, it's a plain fact, provable by mathematics
 
Greetings
@Gemtastic I was horribly, horribly wrong.
 
about?
 
@wonderb0lt ^
 
6:59 AM
ok I have this query @NamedQuery(name = User.GET_USER_BY_HASH_ID, query = "SELECT u FROM User u WHERE MD5(u.password) = :password")
how to write it right
it shows me an error
 
@Gemtastic My date, she really didn't seem to enjoy it, hasn't given a life sign since Wednesday :D
 
fge
Of course it does; look at what u is here
It's not a column expression, it's a table expression
 
I want to write sql function in @NamedQuery
 
fge
You cannot select on a table expression
 
<- horrible
 
7:00 AM
@wonderb0lt Well, she's obviously not as into you as you are into her of you tried to contact her to no avail-
 
fge
I don't know the name of your username column but it should be something like select u.username from etc etc
 
@Gemtastic Yup. Such is life
 
fge
Ohwell, anyway
 
You're still not screwed, she could just be busy, but if she were as into you as you are into her she'd say something by now...
But don't pester her, I suppose you already know that.
 
@Gemtastic You're right and it's comforting to know that someone sane comes to the same conclusions :)
Yeah
Anyway, let's get back to Java \o/
 
7:04 AM
@wonderb0lt Yusha!
 
@wonderb0lt anyway Java is also concerned with relationship :P
 
"Room dedicated to the Java programming language and your relationship issues"
5
 
Morning
 
you can talk about your relationship with Java
@Vogel612 Morning!
 
7:06 AM
morn
 
@Gemtastic I think that definitely qualifies as "relationship with issues"
 
Hey guys I have a question
You see, I have a JNI, which for example when I do something like set the console title with it works fine
 
@Gemtastic I love 'er
 
@Vogel612 Exactly why you should talk it out here ;P
 
But when I print a line of text in C it doesn't show up D:
 
7:07 AM
But maybe that's just 'cause I can't have her
I think I'm dating PHP out of pity
 
@wonderb0lt She's got a lot of lovers. And then there are the jerks like @MadaraUchiha who doesn't even like her but uses her anyway...
 
or maybe PHP is dating me out of pity?
Either way PHP is horrible is what I'm trying to say
 
PHP goes with anyone and anything.
 
fge
@SuperstarGamer-Trent define "console title"
 
The terminal name that appears at the top of the console/terminal window
Like "Command Prompt" or "Window"
 
7:09 AM
@Gemtastic Are you trying to say that PHP is a whor*?
 
I am able to change that with no problem, but when I try to print a line of text using the JNI it doesnt print out
 
@ItachiUchiha No, just very pan.
Most languages are poly, but PHP is a little bit more loose.
JavaScript is also kinda loose. No matter your variable, she'll take it.
 
pan as in pansexual? Couldn't find a dictionary entry for pan as an adjective
 
Well, Programing languages are all asexual, but for a lack of a better word... yes :P
 
Ah
Well
Thanks for making me feel even worse :(
PHP: The consolation prize of programming languages
 
7:13 AM
Well, it's up to you if you wanna go with her or not.. Nobody's forcing you.
 
My employer is making me do it
 
But we're discussing the relationship with Java here. Let's not talk any more about PHP.
 
alright
I think she's gotten a lot better in recent years
 
She's the slow but steady kind.
You can rely on her
 
@Gemtastic I love java. I just don't like Java.
 
7:16 AM
@MadaraUchiha Like a true douce. You'll just do her whenever you have to, but you'll leave her for JavaScript any time ;P
 
PHP is Java's retarded, but lovable younger cousin.
3
 
^^^ lol
 
morning all
 
People love to hate her and hate to love her, but ENOUGH about PHP. She has her own channels. :P
 
lovable?
 
7:17 AM
@wonderb0lt Oh yeah, want a very quick and dirty database skin web application? PHP is for you.
Even more so than nodejs
 
I'd take Python
 
Isn't NodeJS better than PHP?
 
You're jsut upset because you're in a forced relationship. Economical relationships suck.
 
I mean to say, lovelier :P
 
@Gemtastic :(
Disclaimer: I would ditch Java for Python
 
7:18 AM
@ItachiUchiha She is, but don't hurt PHP's feelings or we'll have to put on her helmet again so she won't hit her head :(
 
Python is Java's hot 18-year-old sister
 
@wonderb0lt No wonder Java doesn't want you, you're not faithful! YOu're jsut as bad as Madara ;P
@wonderb0lt They're not related at all
 
maybe adopted sister...
 
ach, all programming languages are related somehow
 
asserting you want to take jython as python
 
7:20 AM
@wonderb0lt no chance
that's like saying all humans on earth are as one
 
@wonderb0lt Except for C, its the great forefather :P
 
@wonderb0lt They're about as related as cows and pigs.
 
@ItachiUchiha C is hacked together by Perl.
 
So Pearl is C's mother?
 
hello how java compiler read methods , class name ..etc ??
 
7:21 AM
RTFM
 
@FastSnail Stop disturbing us, we are going through an interesting conversation ;)
 
Don't "etc" us when your question isn't a real question but a broken statement.
 
@Unihedron Well, most things in that sentence were broken...
 
I just said it was a broken statement.
 
nice chat room
 
7:23 AM
THEY LOOK PRETTY RELATED TO ME
 
@wonderb0lt What does arrows represent?
 
Progeny, most likely
 
I can't think of any meaning for the arrows that makes the chart correct.
 
me neither when I look at it
 
Pascal is hacked together by C.
 
7:24 AM
I mean PHP being only inspired by Pearl doesn't make sense
 
There's no way C came before Basic.
So it's not chronological order.
SQL is in there. xD
 
clearly javascript is the successor of C ...
which is telling...
 
I just picked out a graph at random to be honest
 
javascript successor of C :O
 
@wonderb0lt >:(
Great, now you've confused all of us.
 
7:26 AM
I have made many a new enemy
 
If we need another ++ consider COKE++
 
or BEER++
 
or... yeah BEER++ would be nice
 
mix it with PEPSI++ and fivefingers
 
fivefingers?
 
7:28 AM
How lost are you at current programming languages if you call a new one HOPE...
 
Last remark: see how ColdFusion is not inspired by anything nor how it inspired any new efforts. The world is good.
 
hi all
 
I'm out... bye...
 
which jar is best to create pdf files in java
 
7:32 AM
@hardcode The fifth one on the shelf of magic powder. Take good care of it.
 
diamond in minecraft
 
Good we had a talk about our abusive relationships with programming languages everyone
I think we've made good progress
 
fortunately that's only your opinion
 
> Outspoken Post 10 messages in chat starred by 10 different users.
\o/
gib badges
 
@hardcode Try Jasper reports or Dynamic Reports
 
7:35 AM
> Awarded 12m ago
 
we can exchange that badge for a burger and a cup of Java
 
@Unihedron So? :P
 
@wonderb0lt Yeah, so?
What the hell am I supposed to say to that? >_>
 
@Unihedron Why did you feel the need to quote the time since awarding of the badge?
 
What else should I say?
 
7:39 AM
@Unihedron Nothing?
 
um no
 
Just be happy with me I've got a cookie?
Not everyone got 90 badges :)
 
Why do I feel that's directed at me?
 
Because it is, we're the only ones talking right now
 
:|
 
7:43 AM
Wasn't meant as a jab at you
I'm just genuinely happy I've got a badge for contributing star-worthy stuff on SO chat, that's all :D
 
:p
 
It's really not that big of an achievement but whatever floats your goat ;P
 
fge
beeeee
 
bee?
Bzzz
 
Do androids dream of electric sheep? or goats?
(stupid confusing book with it's mix of sheeps and goats)
 
fge
7:49 AM
<as-offtopic-as-it-gets>Check out Goat Simulator</as-offtopic-as-it-gets>
It's hilariously stupid
 
minus "hilariously"
 
I don't get how seeing the same bugs and glitches over and over again can be hilarious for people over 13
 
7:51 AM
Fge is still 11
 
sums it up pretty good for me
 
@ItachiUchiha don't tell little kids they're immature, that's a stupid thing to do
 
fge
@Unihedron that's a question of balance; I cannot be that serious and commited all the time
Therefore I enjoy some really stupid stuff from time to time
Call that "stress relief"
 
you have no idea what just went past my mind
I need to go shower to get that image off me
brb
 
@Unihedron yeah, a shower. Right... :P
 
7:59 AM
Will calling reader.lines() on a new BufferedReader(new InputStreamReader(System.in)) actually read twice?
Or will the first reader.lines() reach the end of the stream and close it?
 
what uni said and removed
 
It reads when the lines() stream reaches a terminal operation.
 
it will moved the pointer forward
 
Ugh, I keep forgetting I'm on chat.SO.
 
so the next reader won't read the same thing again
it will be at the end and return an empty stream
 
8:02 AM
@Unihedron Yeah, so I can iterate twice on the same stream
I should convert it to a List or something, then iterate that twice if I want to
 
fge
You can never iterate twice on the same stream
 
I don't think that works
 
Yeah, I phrased that wrong
@fge I mean two streams from the same BufferedReader.
 
streams have undefined behaviour for- nvm
 
fge
@MadaraUchiha that won't work either
 
8:03 AM
44 secs ago, by Madara Uchiha
I should convert it to a List or something, then iterate that twice if I want to
 
fge
If you want that, open two such readers on the same resource
Yes, which means you use only one reader
 
@fge Can I do that with System.in?
 
fge
Hmmyeah, although recall that System.in will be closed after that, so hopefully you don't have anything more to read from it than the initial reader
 
@fge Small improvement from yesterday's code
List<String> commands = reader.lines().collect(toList());
List<String> invalidCommands = commands.stream()
        .filter(command -> command.matches("^client-properties(?:-new)? .+"))
        .collect(toList());

if (invalidCommands.size() > 0) {
    throw new RuntimeException(String.format("Invalid lines: [%s] (do not start with client-properties)", invalidCommands));
}
commands.stream()
        .map(line -> line.split(" "))
        .map(parts -> Arrays.copyOfRange(parts, 1, parts.length))
        .forEach(Throwing.consumer(commandParser::run));
 
fge
Wait, don't you have your logic reversed here as to what valid commands are?
Your error message seems to contradict with your test
 
8:15 AM
Right, needs !
That's without transactions yet though
 
fge
Well, that's already a step forward
 
@fge Yeah my first step was to replicate the current behavior 1:1
Then improve on it in non invasive ways :P
 
<-- still cannot create custom controls using library style in javafx :(
 
:(
 
uni's suggested solution: ditch javafx
 
8:19 AM
@Gemtastic What are you sad about?
 
About Ita's issue
I'm empathic
 
Empathy is overrated.
 
@Unihedron Well, I love it too much to break-up with it :D
 
sorry we're men we can't.. to quote "Die Ärzte"
 
I'm also sad that I don't understand why my JavaScript works written as java, but it does.
 
8:20 AM
emphatic like the Autobahn
and subtle like a tank
 
@Gemtastic What do you mean "written as java"?
 
Imagine Java written with JavaScript syntax
It's sequential
 
@Gemtastic Example pls
 
I can't, it's company code
 
Also, are we talking server-side or client-side?
 
8:22 AM
I can try to pseudo it
 
Please
 
Grandmaster sacrifices a queen in every game :D
free queens for everyone
 
@Unihedron As handicap or as part of a strategy?
 
@MadaraUchiha he was bored streaming for several hours >_>
 
fge
Oops
^^^ this is what I meant
(minus the typo in StringBuilder, that should be .append and not .apend)
 
8:32 AM
Aha
Well, also aside from the fact that it's an input stream (and not a file) but that's trivial
 
fge
For testing, just don't make that method private
And yeah, adapt the prototype
But that's pretty much it
This way you can test the behavior when this method fails to return a correct set of commands
Also, if you read from an InputStream, but I guess you know it already, you can wrap that into an InputStreamReader
Better yet, you can pass a CharsetDecoder as an argument, and fail on invalid encoded input as well
private static final CharsetDecoder UTF8_STRICT = StandardCharsets.UTF_8.newDecoder().onMalformedInput(CodingErrorAction.REPORT);
(the default in most of the JDK methods is to CodingErrorAction.REPLACE)
Anyway, this is how I'd go about what you have to do
Gradually reduce the problem set to what you really have to do
 
Good Afternoon all. I was late to come to room today :D
 
this is unacceptable
 
fge
Meh, I really do want to do a hangout session on char, byte, decoding and stuff sometimes
 
;9
;)
 
8:39 AM
@fge count me in :)
 
hai
 
fge
@ItachiUchiha sure; now the schedule has to be decided
As far as I'm concerned I have sufficient free time to collect data to do it, but it cannot be on this Wednesday between 11:00 and 13:00
 
I have a suggestion for the schedule!
 
i am testing a spring boot application in openshift.com (free) for some reason the the data base automatically shutdown after 24 hr . is there any way to overcome the scenario?
 
fge
Other than that it should be from now + 24 hours so that I collect data and make the hangout worthwhile
 
8:42 AM
@sudeepcv Have you checked the logs?
 
yes ; but nothing unusual in it ; app is up and running ; the ui looks good but the data from database not get rendered in the ui
 
Is the problem with "data base automatically shutdown after 24 hr" or "the data from database not get rendered in the ui" ?
 
fge
Database automatic shutdown after 24 hours? What is that crappy prod environment?
 
@fge I am of the opinion that there is some fault in the config :P
@wonderb0lt You got to ping @fge and not me :P
 
yeah
just realised m(
@fge I'd love to listen
 
fge
8:51 AM
Ohwell, then...
Proposed hangout: what every Java dev should know about Strings, char, byte, Unicode, decoding and encoding; schedule to be determined; at least 24 hours from this message on, veto on 20150708 between 11:00 and 14:00 (GMT+1)
10
 
well, in the log it says something like this: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown.
 
thanks for ur suggestions....i am trying....@Unihedron @ItachiUchiha
 
@fge I'm at work at those times. I'll be able to participate scarcely if at all.
 
fge
@MadaraUchiha as I said it's a veto on those particular times
 
Oh, I that read wrong.
 
fge
8:58 AM
And of course I'd like the attendance to be as large as possible
But scheduling this kind of stuff has always been a problem
I'm not sure how to go about the scheduling
 
@fge I will be working on both of the time slots suggested by you :/
 
fge
Some sort of shared calendar for the room would be ideal
 
yeah
we need a calendar app :P
 

« first day (1717 days earlier)      last day (3229 days later) »