« first day (1724 days earlier)      last day (3231 days later) » 
04:00 - 12:0012:00 - 22:00

fge
12:05 PM
YAY, my M3800 has arrived! In Spain for now, will be sent my way this week
<--- like a kid waiting for his favorite toy
 
:)
<--- dunno what that is
 
fge
@Gemtastic a laptop which packs a deadly punch
 
Ah
Then I fully understand ^^
 
meh, get a mic :)
 
+1
get a connector
you already have a mic
 
fge
12:15 PM
Just send a connector my way :p
 
@fge Drop your address :)
 
@fge can't really do that. I need to understand who is flooding and why...
 
fge
@ItachiUchiha not on a public channel
 
*as a quick distraction, this chat is more interesting than facebook feeds*
still cant find fix on the band effect for rows on jasper report. *sigh*
 
@fge Drop me a mail, you already know my mail address :P
 
fge
12:20 PM
@ItachiUchiha done ;)
 
12:32 PM
bamboo sucks. And we pay for licenses :/
 
what is bamboo?
 
you know Jenkins?
 
Jenkins from Atlassian
aaw I spoiled @Tavo's big reveal
 
@wonderb0lt yeah, well
it's the retarded, hateful brother of Jenkins. And high-maintenance
 
It's still better than TeamCity(tm)
 
12:35 PM
@Tavo no?
 
it's an integration server
for CI
 
Jenkins is unbeatable from the ecosystem standpoint
And it's free!
 
Ok
 
Hey @Tavo,
We're going to introduce Bamboo as a CI service for android apps in our company. And we already have local Jenkins but we have intention to migrate to atlassian's services. Can you please give the detailed answer why using Bamboo rather than Jenkins is bad idea?
 
@wonderb0lt Bamboo is from Atlassian
 
12:37 PM
Jenkins is top notch. Bamboo is... nitch
 
@fge Please check your email :)
 
@KirillF. first reason: you pay. Second reason: community. Third reason: Bamboo is slow and retarded
 
fge
@ItachiUchiha done and answered :p
 
@Tavo, but it has integration with jira/hipchat
 
@ItachiUchiha This sentence meant "[It's like] Jenkins [, just] from Atlassian"
 
12:40 PM
@KirillF. there's a wonderful plugin for Jenkins to use Jira
stupidly easy to configure
same for hipchat
so still no advantages from Bamboo
 
@Tavo, that's interesting, will google them, thanks!
 
fge
@Tavo except for "all in one integration", I guess, but then this also smells "vendor lockin"
 
@Tavo That's exactly what I meant with the ecosystem for Jenkins :D
Atlassian should focus on JIRA, Confluence and maybe Stash/Bitbucket IMHO
 
the only good feature from bamboo (for my taste) is the multiple language support out of the box
(over Jenkins I mean)
 
Bitbucket even if it just for having an alternative to GitHub
 
12:46 PM
@wonderb0lt BitBucket is good for small personnel projects, which you don't want to make public ;)
 
@ItachiUchiha There's also that
Plus it's in Python! :D
 
@wonderb0lt agreed. Mostly on jira
 
Yay Python!
 
took them years to put epics in there!
Stash is good, but I wonder why they named it Stash
could hardly be any more confusing
let's name the next version of java and instead of calling it java9, we'll call it Thread
 
:D
I tried their git/hg client SourceTree with a git newbie. Atrocious
I really like Atlassian, the few guys I've met from them were great and some of their tools are the backbone of many companies' workflow
but sometimes I wonder if they're alright in the head when they produce stuff like this
 
fge
12:53 PM
@wonderb0lt the problem I believe is defining the target audience and UI; a correct assessment of the former in particular is one of the hardest part of designing any software package
 
@wonderb0lt SourceTree is disgusting
I could not make any sense of it
 
fge
(well, admittedly, you do have an easier time designing CLI utilities)
 
@fge done :)
 
@wonderb0lt the GUI is nice.... but I prefer the CLI
I'd take it over anything else on windows though.
basically it's better than CLI for tree-browsing.
and hunks are cool
 
fge
CLI rocks
 
12:56 PM
sure... not for tree browing and hunks, though
it's okay-ish for that
but for everything else it's better, faster and easier to understand
 
Hi! I am looking for a simple JVM profiler, that measure CPU and memory usage and is able to export to format that is Excel friendly. I was already looking at the VisualVM, but it kind of looks like an overkill. Is there anything simpler?
 
@JernejJerin What does that have to do with Java?
 
@JernejJerin That is very specific to the Operating System..
just write the command line that retrieve the Information then parse it on Java
 
@Tavo I'm kind of upset I missed this argument.
On another note, good morning everyone
 
1:11 PM
@Dustiny Morning
 
Hey @Dust
 
It regards the JVM so I thought I would post here.
 
meh..
the JVM is just another process if you just want CPU and MEM stats.
 
Ayo @deadly and @wonder
 
if you want more detailed information about MEM usage, then it'd become more interesting
in that case the jconsole can help you#
 
1:13 PM
Basically I need to this to evaluate three different solutions, where the program is given some output and then after some time it produces output. During the execution I would like to get performance results of the execution (memory usage) and CPU usage.
 
@Dustiny yo
no worries, people here are always restless. Something will trigger it again
 
Will take a look at JConsole
 
(tip... search in your JAVA_HOME/bin)
 
you mean jvisualvm
 
@Tavo Haha, yeah, you're right. I agree with you like usual anyways on both points discussed
Good weekend?
 
1:18 PM
sooooooooo good
yourself?
 
fge
~@ItachiUchiha++
 
Quite good as well, short but good. Home made margaritas on friday with an old friend, then band practice and another date on saturday night, chilled sunday.
Very enjoyable
 
You always with your dates
 
so there's a new woman in Canada that hates you, right? :P
 
I can't blame 'em (on going on a date with them)
wow that almost came out wrong
 
1:22 PM
Hahahahah. This one didn't vocalize that she hated me so, hard to say..
 
fge
^^^ one of my favorite animes, one of my favorite OSTs
 
My favourite OST is from 'Samurai Champloo' . Hands down the best ever
@Tavo I ended up asking the girl out on facebook who I never actually met IRL lmao. See how that turns out..
 
fge
@Dustiny OK, admittedly it's good; nothing close to Cowboy Bebop's though, imho
 
I'll admit Cowboy Bebop's is also good, but I like the Nujabes songs on Champloo the most
but to each their own
 
@Dustiny gosh, I'm too old for this :P
 
1:28 PM
You have a young heart though
I just remember someone saying it would never happen, so I'm going for the gold on this one
 
kicks door down on my way in
Ohai, Java
 
Morning canadialanders
 
yo @Nexion
@Dustiny hahaha. I meant that I've always done it in person, never on FB
 
@JernejJerin yeeaaaa ... no
 
@Nexion if you break it, you fix it
 
1:35 PM
in Hagrid voice Sorry about that
-.- couldn't find the GIF
 
lol
 
fge
1:56 PM
@Tavo too late for that
 
...anymore?
 
Lol nice
 
soo... people wanted stuff in the brainless chat, right?
~squints
 
1:58 PM
@Vogel612 no worries, we'll fill it anyway :P
 
That's what she said.
 
o.o HAH
@LeeJeong Sent you an invite to our room lee when you're around
 
2:18 PM
Mother of God... The XML that Solr gives you back is... painful
 
XML is awful
;P
 
Not all of the time
 
It's annoying but tolerable
 
That means JSON!
Go go gadget GSON
 
... lmao "go go gadget" always reminds me of "as the world turns - eminem"
 
2:22 PM
XML can be nice... I mean stuff like XSD is nice if you're working with really complex stuff
 
It has it's uses, but JSON is better for simpler things
 
What
That structure....
 
O.o
 
@Nexion eww
 
Right?
If you have a generic "lst" tag in XML you're wrong and I hate you.
 
2:27 PM
@Nexion I reacted to that too >_<
 
2:44 PM
@fge - I hear word you have a JSON <-> Java mapper API?
 
That's the way I'm leaning, I was just told that fge had one lol
 
fge
@Nexion I don't; I have a JSON Schema validation library
 
Aah
 
I think that's the one he has but he might have found something else :P
 
2:47 PM
The two main ones are Jackson and GSON
GSON is Google's odd attempt lol
I'm just not super sure how to do nested data with Jackson. All the examples just have one class with a few primitives, but I have subobjects with a list of other objects
 
fge
That's not a problem for Jackson -- neither for Gson I believe
 
It's only a problem to figure out how they do it
 
I know you CAN do it, just can't find an example on it
 
I had that issue as well :/
 
fge
Just try and serialize; most likely, at least for Jackson, it will do the correct thing
 
2:51 PM
If you know the JSON schema it's easy. If you don't, it's hard
 
It HIGHLY depends on the query being run
And I'm trying to make a generic container to pull stuff out, which is the hard part
 
s/hard/impossible/
 
that's similar to what I wanted to do
 
generics in Java are broken and you can't use a broken hammer to hammer nails
 
Well, to give you an example
This is the JSON structure I have.
And under "docs" is all of the garbage I need to pull out
So each child is an array of somethings.
Ah, GSON handles this much more cleanly.
Java, why in the crap do you allow "_" as a variable name....
 
3:04 PM
it looks cool:
for (Object _ : c) {
}
because you can't get more non-speaking than "_"
 
Hahaha
 
That's even best practice in Python for iterating over values you don't use.
 
Stupid C artifacts in Java...
 
bananas, without C there'd be no Java
 
@Nexion that's deprecated and past Java 8, _ as a variable name leads to compiler warning
(just warning though, you can still compile)
 
3:07 PM
Oh, well that's good.
 
and IDEs should put a yellow line
 
The IDE will also silently judge you
4
 
why can't git bisect only checkout a path if I give it one!
arghh
 
Well then, looks like someone already wrote a thing for exactly what I want to do. And it's Apache. Who also maintains Solr. :| not sure why I didn't looked for that before
 
4:03 PM
^ always a sunshine of happiness when someone did the work for you and all you need to do is customize it! hail open source!
 
fge
@Vogel612 but it can, AFAIR, if you submit the correct command line
 
okay that suddenly became 2nd priority.....
I think we may or may not have a resource leak...
and I can't just heapdump the live-system when it's running....
 
4:53 PM
Hello
 
 
2 hours later…
6:39 PM
(╯°□°)╯︵ ┻━┻ Eff you, Solr
 
gives you BACK - i hope it helps
 
Screw you, Lee lol
 
Jasper and SQL in general has been kicking me too, so yup, GRIND
considering i have a day job at 9AM and its 2:43 AM now.. productive days you cant make at say 35ish? in any case, im as fvcked up as most of developers.. who isnt?
 
 
2 hours later…
8:37 PM
hello all. Anyone have any experience in rounding fun in java that I could pick their brains for a second?
 
rounding fun??
 
ya trying to figure out why this one double isn't rounding as I'm expecting it too
 
because double
 
more then likely. In a nutshell .5625 rounds to .55 instead of .6 like I'm expecting. What I'/m wondering is why
 
well.. Double?
 
8:41 PM
hell I might be doing it wrong using double, but I've always been told to avoid float, and int doesn't allow for me to use decimal points
 
in short: floating point arithmetics is inane..
use Arbitrary Precision number type BigDecimal
BigDecimal number = new BigDecimal("0.5625");
number = number.round(new MathContext(2, RoundingMode.HALF_UP));
 
ya still keeps bymping it down to .55 instead, One sec I might be using the wrong rounding constant for this aprticular issue.
BigDecimal multipleAmount = new BigDecimal(20);
BigDecimal taxAmount = new BigDecimal(price * taxPercentage / 100);

BigDecimal result = new BigDecimal(taxAmount.multiply(multipleAmount)
.add(new BigDecimal("0.5"))
.toBigInteger()).divide(multipleAmount);

result = result.round(new MathContext(2, RoundingMode.HALF_UP));

return result.doubleValue();

The code I'm currently working on
 
the taxAmount calculation should also be done with the BigDecimal methods.
btw. /100 can also be replaced by movePointLeft(2)
 
as in wrapping any double values as new BigDecimal items?
oh nice.
 
not using double at all..
return a BigDecimal
 
8:49 PM
hmm ok let me try something
 
anything where you actually need "arbitrary precision", Double is the wrong tool
 
So just for reference, if I need to have anything with like currency values, dont use double or float, use BigDecimal?
 
yes
 
ya still wants to round to .55 instead of .6

BigDecimal multipleAmount = new BigDecimal(20);
BigDecimal revisedPrice = new BigDecimal(price);
BigDecimal revisedTaxPercentage = new BigDecimal(taxPercentage);

BigDecimal taxAmount = revisedPrice.multiply(revisedTaxPercentage).movePointLeft(2);

BigDecimal result = new BigDecimal(taxAmount.multiply(multipleAmount)
.add(new BigDecimal("0.5"))
.toBigInteger()).divide(multipleAmount)
.round(new MathContext(2, RoundingMode.UP));



return result.doubleValue();
i'm sure i'm missing something simple here
 
the "new BigDecimal" is moot for result
toBigInteger seems like a problem...
split up these operations and check where the deviation is...
also in the future paste code to external services :D
 
8:59 PM
ah shit my bad
Time ot fire up the debugger. Thanks for your help btw
 
ehh dw.
 
and gooodmorning... it was another of those series of "good morning sunlight, goodnight sunlight"..
 
@manouti thanks for taking the time to dupe hammer that question
(I don't know where else to say that, because he deleted his answer to it ;))
 
Well I sort of got it working, but only if I rip out the code that rounds it to the nearest .05
 
ohhhh... something like that...
why do you add ("0.5") instead of ("0.05") ??
 
9:10 PM
i'll be honest I don't know. It's code that I've literally been thrown into blind
 
04:00 - 12:0012:00 - 22:00

« first day (1724 days earlier)      last day (3231 days later) »