« first day (1529 days earlier)      last day (3430 days later) » 
00:00 - 17:0017:00 - 00:00

5:01 PM
Today I discovered: PriorityQueue. Awesome!!
 
Shutting down. See you later.
 
fge
Oh?
I use that in largetext
 
OakBot Online.
 
fge
I make quite a tricky use of it, too
largetext, the only package ever in which I had to care about performance matters, heh
 
5:16 PM
OakBot Online.
 
fge
yawn
 
Go to sleep!
 
Says mr "I barely sleep 5 hours on a good night"
;P
 
xP
 
fge
5:34 PM
@Unihedro I have some tricky stuff to do if you're ready :p
 
@fge Ok :P
alt-f-r-down-enter
This thing is the best
 
up, up, down, down, left, right, A, B.
 
It's B then A
Nothing happened :(
 
:O
 
fge
1. tech @Gemtastic how to use git :p 2. transform the *Consumer tests so that they act the same as I already did for Consumer and BiConsumer
 
5:46 PM
Point 1 is really tricky
 
fge
There are still {Long,Int,Double}Consumer and Obj*Consumer to do
 
Why is it tricky?
 
fge
We need to split tasks
 
You take the first
 
That kinda makes it sound like I'm some dumb potato that can't learn git :(
Y U TREAT ME LIKE POTATO?
;P
 
5:48 PM
lol kidding :D
 
fge
@Unihedro the primitive consumers you mean?
(branch topic/testrefactor btw)
 
How do you pull --rebase with IntelliJ?
 
fge
Uh, not a clue, I always manipulate git at the command line :p
 
ok :)
 
fge
Intellij's git integration is OK but no git add -p/-i yet
 
5:56 PM
> fatal: Couldn't find remote ref fge/topic/testrefactor
 
fge
And even if it were able to do that I prefer the "command line way"
git fetch --all
When the consumers are done, it means ALL base tests can be final in the abstract class, and the only tests left are the interface-specific tests
That will clean a lot of lines of code!
 
:O
 
fge
OK, I'm done
You? :p
 
6:13 PM
I'm trying to notice the difference
I have no idea what the AtomicInteger is there for
 
Does this mean we're gonna teach me how to use git?
 
fge
Meh, some people really have time to waste
@Unihedro look at the get*Instance()s methods and you'll see
Note also that in the tests, the verify()s have been replaced with assertions
The AtomicInteger is here so that when a consumer is invoked, what it does when called is set a value
This is done by stubbing using Mockito's doAnswer()
 
@fge In finlad, they have lots of time and room for activities ;P
 
fge
For instance, in getBaseInstance() you have doAnswer(invocation -> { sentinel.set(ret2); return null; }).when(spy).doAccept(arg);
 
@fge Oh!!!!
 
fge
6:18 PM
(or .doAccept(arg1, arg2) for BiConsumers
 
I get it! You're giving a use to the consumers
 
fge
Yes
 
On it!
 
fge
And the Callables now return an Integer instead of Void
This is what allows the use of assertThat()
 
http://www.commitstrip.com/en/2014/12/30/what-triggers-ocd-with-coders/?utm_source=rss&utm_medium=rss&utm_campaign=what-triggers-ocd-with-coders
CommitStrip - Blog relating the daily life of web agencies developers
What triggers OCD with coders
CommitStrip
1419963263
 
fge
6:19 PM
@Gemtastic true enough; after all, without Finland we wouldn't have Linux :p
 
@fge :)
 
fge
@Unihedro also, note that the sentinel is reset in @BeforeMethod
We want to ensure that the call to the consumers have actually been made
 
Hehe
 
fge
0
Q: Java : Json with dupilcate keys to map using Jakson

user1321824I have a json file with same key but different values as follows, { "domains" : { "A" : { "name" : "a", "type" : "a1" }, "B" :{ "name" : "r", "type" : "g1" }, "A" : { "name" : "b", ...

I can't believe it
 
6:26 PM
I like your comment
 
fge
6:40 PM
waiting for @Unihedro so that he can continue his work
 
I'm working on it :p
 
fge
Uh, 13 hats without even doing anything to collect them, huh
 
A lot of that was copy-pasting, which was really eventful
 
fge
@Unihedro yeah, which kind of sucks :p
 
Pfft
 
fge
6:51 PM
Oh, a honey badger
 
Uhm no
It's confession bear :D
 
Morning Realization Cat's my favourite
 
@fge It's a Malayan sun bear
 
fge
 
6:59 PM
Did a ThrowingObjIntConsumerTest, did a ThrowingDoubleConsumerTest, copy-pasted into the other tests and ran regexes, let's see if any of the tests will pass...
Hey, bonus merge conflict! :p
 
fge
@Unihedro I though you only did Obj*ConsumerTests
 
Oh
I kind of forgot
Hmm
 
fge
Well, git reset HEAD~1 it is :p
 
Yep :D
git (is) magic
Oh, I have to rebase first
 
Adz
7:23 PM
hello
 
@fge I did it right this time: github.com/fge/throwing-lambdas/pull/8
@Adz hi
@fge I found out that IDEtalk is really just an IM for developers which runs on XMPP instead of web interfaces.
So really, it's best used for 1. developers in the same LAN managing tasks in a shared p2p manner, or 2. remote developers contributing together who hosts their own XMPP servers, or 3. bored developers who looks up public ones to join
 
fge
@Unihedro "instead of web interfaces"?
 
@fge eh... web service :P
no not really, I forgot the term though
meh
Wow it's 3.30 am
Bye!
 
Adz
7:50 PM
@Unihedro how many hours a day do you program?
 
8:07 PM
@Adz I code whenever I can.
I have a workshop tomorrow.
 
go to bed then little one
 
fge
8:55 PM
Gee, refactoring after the fact is soo much work
@Gemtastic learned some git yet?
 
@fge T_T
flips a table
I don't even know where to begin, that's what I thought you'd help me with Q_Q
Let's start wit: Is this the git I'm supposed to dl? msysgit.github.io
 
fge
Ah, you use Windows
Then yes, this one is good
Sorry @Gemtastic, I'm too much into code right now
And I have received my book which does not help matters
 
Oh, no need to apologize about being busy, I get that. I'm the one asking for help so I don't get to set the demands, but I don't really know where to start on my own. But now I have a software to dl so I could probably work my way from here, it just takes me a little bit longer.
The flipping of the tables were at myself
 
fge
9:14 PM
Learning git is certainly a lot of trial and error :p
 
That's just why I wanted some help
Less errors more tries
 
 
1 hour later…
fge
10:20 PM
@Gemtastic don't lose hope, keep trying ;) If you have specific questions, ask me
 
I will ^^
 
fge
<-- doing heavy test refactoring
 
We already have the fun part of "what should I do" at the installation
Should I get the bash-only version, bash and command prompt, or the optional Unix tools stuff
 
fge
Get it all, you never lose with Unix tools
 
That one has a warning label though: "WARNING! This will override Windows tools like "find" and "sort". Only use this option if you understand the implications."
And then the next part... Configuring the line ending conversions.
I really have no idea what I'm doing :')
 
fge
10:34 PM
Do override find and sort, Windows' are useless anyway
 
Ok :) but what about the second one?
 
fge
Err, what is the question which is asked exactly?
 
Chechout windows style, commit Unix style, or Checkout as is, commit unix, or Checkout and mcommit as is
 
fge
Hmm
3rd option
 
Ok. Well, now I know that any error is because of me
:P
 
fge
10:51 PM
Huh, why do you say that?
Aaah, I miss semantic patching
 
@fge Now it doesn't automatically convert things for me
I have the most control, but..
> With great power comes great responsibility.
 
fge
@Gemtastic what things?
Line endings?
 
@fge the things I do using Git
I dunno what things I'll be doing
Because I don't know Git >_>
 
fge
Well, it's a distributed version control system
 
How many times do I have to say that I have no idea what I'm doing?
;P
 
fge
10:58 PM
"distributed" as in everybody has his own repo, which has no influence on any other repo, except if you interact with them explicitly
You know what a VCS is, right?
 
Isn't that what Sourcetree is?
(The answer is no, I'm only guessing after reading a wiki)
 
fge
I don't know Sourcetree
But, well, git, mercurial, svn, cvs, and others
 
Well, Sourcetree isn't a VCS, it's an application using the VCS
It's what I've used to upload my repos to bitbucket
 
fge
Except that there are distributed ones (git and mercurial for instance) and centralized ones (svn, cvs)
Centralized ones suck :p
Well, bitbucket uses git
At least it's one option, maybe it has other VCSes it supports
Can you commit locally?
 
Bitbucket uses git AND mercurial
 
fge
11:04 PM
Well, it can't use both on the same repo
 
I don't know what "commit locally" means
No, not on the same repo, but you can use both VCS on your bitbucket account. One account, several repos.
 
fge
When you commit a change, it is not immediately synchronized to your bitbucket account, right?
 
Yes it is
 
fge
Uh
THat's a waste
So it means you cannot work locally and only push your changes later?
 
Oh you meant like that
I thought you meant that when you pushed a commit it would update immediately. No, nothing happens until you push a commit
Do you get points from getting an upvoted comment?
Wow, this one really mind-fucked me a bit XD stackoverflow.com/q/27712659/3763850
 
11:53 PM
in php I have "INSERT INTO table (`".implode('`,`',$keys)."`)..." in javascript i can use join(), in java I have an Iterator<String> keys how can I implode/join the keys in a similar fashion?
 
00:00 - 17:0017:00 - 00:00

« first day (1529 days earlier)      last day (3430 days later) »