« first day (1605 days earlier)      last day (3329 days later) » 

12:12 AM
@Gemtastic github.com/jeremyh/jBCrypt looks pretty solid
 
:D
I've never used something like this before, so I just put the dependency in my pom?
 
Dunno, found it on GitHub :P
There may be a more "official" library out there
@Gemtastic this library, for instance, is something worth abstracting
Your AuthenticationService should have two private methods, hash and verify, and those should call this library's functions.
If you want to replace the library with a different implementation of bcrypt in the future, it's pretty trivial.
 
I think I managed to get it now :)
 
\o/
Now I'm seriously going to sleep XD
night
 
Night~
 
12:40 AM
Morning! I headed to school to find out it was a holiday, as said by the convenient store cashier lady. So at the school entrance I sneaked up to our loyal, hard-working janitor to ask him if it's a holiday. He responded yes, and I ran away before he realized I didn't know it was a holiday.
2
 
aww
 
It's like a free holiday. xD
 
You could have spent that time sleeping
or coding
 
Meh.
 
XD
 
12:54 AM
-2
Q: Software to build Java applications without dependency on JRE

Tom BritoI'm looking for software's like Excelsior. Which you guys recommend? (or do you recomend Excelsior, at all?) EDIT: I'm look for a generator of EXE. But I'll need to find an obfuscator later either, would be good if I have both in a single software. The optimization is not the aim.

Um wtf.
 
1:54 AM
Hmm
 
2:08 AM
@Ita are you there?
 
2:33 AM
good morning..
 
Morning sword
 
@Gemtastic have a nice day :)
 
You too
 
2:49 AM
Morning!
 
@Unihedro enjoy a fun filled day with hours of coding..
 
 
1 hour later…
3:56 AM
@gem now
 
@ItachiUchiha Boo, just when I'm gonna go to bed D;
Well, talk to you later then.
 
Alright
Night ^^
 
goodnight gem
goodnight itachi
goodnight uni
 
4:15 AM
is this the best way to implement a timer?? stackoverflow.com/a/13245930/3231320
 
@Sword Replace 5*1000 to TimeUnit.(UNIT).toMilliseconds(5)
 
4:35 AM
@Unihedro what is the difference between the two?
 
@Sword Readability, maintainability
 
thanks
 
4:48 AM
@uni though fge always say that it is more reliable but is there a concrete answer as to why?
 
@ItachiUchiha I'll ask you a question: Since the compiler optimizes it away anyway and there are no side effects, why not? :P
 
Lolz.. nicely handled captain ;)
 
Though, magic numbers are bad in general.
Have fun debugging otherwise xD
 
is the last seen feature reliable in SO chat??
People say they are sleeping but their last seen is about 20-30 seconds
like fge seen 22s ago
and i bet he is sleeping at this time..
 
It is the ping.
Websockets keeps the last seen value near because its io activity is consistent.
 
5:03 AM
what if i do not open the chat tab at all?
at times i've seen people with last seen 8m ago..
 
Then your pings stops getting saturated and your "last seen" value stops updating. It slowly falls to 1 min, 2 min, then times out at 15 mins.
 
ohh.
is there a question-answer on this on meta?
 
Maybe
Look it up yourself :P
 
hello @Unihedro
 
hello
 
5:14 AM
Good morning
I have one issue suppose we want to run applet unsigned jar file locally what i do for that
 
morning
Quick Question : For the android app, We're using Java server side language and currently maintaining own servers which looks like slow. Can you guys suggest what are the alternatives of it or suggest cloud hosting sites where we can run same java war file.
 
Unsigned applets are a total No-No from oracle.
@TGMCians you can buy a VPS or switch to any cloud service which supports java, for ex, all of them ;)
 
GAE/AWS/heroku which is best
 
Whichever suits your need
And budget
 
I'm looking for android app
that has traffic 1000 realtime users
 
5:24 AM
@ItachiUchiha if i want to run app on local machine then also we require certification
 
I don't care whether its an android app or anything else. When you create a server you take into consideration that you can have n-number of clients and they will be sending n*m- number of requests
@AniketDeshmukh nope
 
I don't know much about GAE/AWS. Does GAE has relational db ?
 
but when i run simple application on local that time i get same error
"Application Blocked by Java Security"
 
If you are new to cloud platforms why dont you try openshift?
@AniketDeshmukh I would need more information to debug your issue
 
i sined jar using self signed key
 
5:30 AM
This is an applet and not an application
 
i use that for just debugging issue
 
@uni can you please clean the mess.. ^^
 
be more specific
 
The code dump
 
@AniketDeshmukh: Use hastebin.com and such for posting long code.
 
5:33 AM
ok sorry it not happen again
 
no worries
 
i am using jdk 8 now locally
 
Why don't you just convert it into an appplication instead of an applet?
 
fge
Moo
 
that is old project and client don't wan't any changes
in description i get following error
Your security settings have blocked a self-signed application for running
 
5:39 AM
As I have told you, since java7 update X, you cannot run unsigned/self-signed applets in your machine. There are many companies who sign jars,e.g. VeriSign. Just get it signed.
 
fge
Also, drop applets, use jnlp instead
Nevermind what the client wants
Applets are dead
 
Proper tool or it won't be born :p
 
HI all, could somebody tell me when a string becomes null
 
@greenhorn never
That's the answer to your question of when a string becomes null, not when we will tell you.
 
can i get certification free
@ItachiUchiha for jnpl we require sinning certification
 
fge
6:03 AM
@AniketDeshmukh you DO require signing for any code you run on a client machine in 2015; deal with it, and Just Do It(tm)
 
can i get free trile Certificate
 
@AniketDeshmukh No, you can't. Ask your client to pay for it.
 
wht is basic difference between jnpl and jar client asking
 
user4202350
hello
 
28 mins ago, by fge
Applets are dead
Your inability to read surprises me. xD
 
user4202350
6:11 AM
heeello my bouy
 
fge
*wonders whether @Gemtastic has read section 5 of the jooq manual as I've instructed
 
6:54 AM
Good morning, Java!
 
Morning Oleg!
 
fge
yawn
 
7:10 AM
Cool number, I wonder why..

To print 1 to 10,000 :

Using for..loop = ~80 secs
Using IntStream.range.forEach = ~130 secs
Using IntStream.range.parallel.forEach = ~175 secs
Any insights?
 
fge
7:22 AM
Well, it takes more time to fetch from a stream than to do a simple equality check
 
7:35 AM
@ItachiUchiha parallel streams are worse in performance as documented.
And your stream has worse performance because the JVM isn't warmed up.
When it is, you should get results like:
Using for loop ~= Using range.forEach > using range.parallel.forEach
 
fge
Even so, the real time eater here is the print
 
Yep, I prefer console.write
 
Typo.. those figures are in msecs
 
._.
 
user4202350
7:50 AM
Why So Serious
 
Good morning
@ItachiUchiha Wait what? to print 10k lines it takes Java 80 seconds?
Did you by any chance means 80 milliseconds?
 
user4202350
Does anybody know how to Subtract two column values in select query
 
fge
25 mins ago, by ItachiUchiha
Typo.. those figures are in msecs
Other than that... Did you get to write some queries which were worth their salt?
If you have read the manual it should have been easy :)
 
8:06 AM
@fge Like I said, the manual is long and general, I needed a proof of concept example, nothing more.
But yeah, I did get it
I made a tiny application that takes an ID as the first argument passed through CLI, and it returns the name column that matches the ID
Only it uses a service, a datamapper to abstract jOOQ and my own domain object
Don't worry, I also mentioned that it may be overkill to have those two extra layers, and that she might be able to use jOOQ and jOOQ's generated POJOs directly in her service
Depending on what she wants
I'll push the example today to my github, so that you guys can see.
 
ok!
 
user4202350
Does anybody know how to Subtract two column values in select query
 
@ShaU What have you tried?
 
user4202350
select a1-a2 ( select a1 from tab1 where h1 in (select a2 from tab2 where f="User"));
 
user4202350
There is a Inner join..
 
user4202350
8:15 AM
a1 First value is coming from inner query condition where a2 is retrived
 
user4202350
How to sub a1 and a2?
 
hello~!
 
@ShaU That's not how you do an inner join
That's a nested query
 
user4202350
@SecondRikudo Oh i forgot
 
user4202350
Yeah it is a nested query... but can we do like this to subtract?
 
8:20 AM
I honestly don't know.
Perhaps @fge has a better clue than me on this one.
 
@Unihedro sorry bout that. haha..
 
@Unihedro that's probably your fault, not his :P
Don't you have quiet hours enabled?
(I'm guessing the phone notification is what woke you up)
 
@SecondRikudo I don't use quiet hours because I need to know when people need me.
 
@Unihedro sorry. hehe. I will never tag you for trivial thoughts.. :O
 
@Unihedro Here in chat?
 
8:30 AM
1 message moved to Trash
 
@ShaU sigh You really never learn, do you?
@Unihedro Your point?
 
@SecondRikudo "yes"
 
fge
Substracting columns in queries is not a problem, just create the appropriate column expression
 
@Unihedro "Why?"
Why do you care if you get pinged at 2AM in the TPC room?
 
@SecondRikudo Because it's mostly important? :p
 
8:34 AM
@Unihedro No, sleep is important.
If you miss the pull request by a few hours, nothing happens.
If you don't sleep, you get sick, and in extreme cases, die.
 
@SecondRikudo :O
 
Oh yeah, we die from lack of sleep faster than we do from lack of water.
 
The longest recorded session without sleeping is 40 days where as dehydration is 5 days
 
@Unihedro I call BS
Also, Chuck Norris doesn't count.
 
Who's that?
 
8:36 AM
i wonder how old is second rikudo
 
@LeeJeong 124
 
9:08 AM
@fge Alright, I think I see the benefit of mutation testing
You're sometimes not sure whether your tests pass because of you did everything alright, or because there's a problem with your test
So you make a manual change to the assertion or to the parameter and see it fail, then you know the assertion is done well.
Mutation testing does that automatically
Am I close?
 
fge
Close, yes
What mutation testing does is modify the tested classes, NOT the test classes
And it makes as many mutations as it can perform
 
I want use Mutation Testing for my next project...
 
fge
Then use this if your project is Java: github.com/hcoles/pitest
<-- wishes he could help @Gemtastic on her project but at the moment he really does not have the time
 
9:32 AM
@fge yes, I know about PIT :)
 
good morning
 
@vog mrng~ :)
 
don't do this to me, I already have tablenames with that "naming convention"
because, you know vocals are more expensive than consonants
 
@Vogel612 what?
 
mrnng tch chh.
w dn't nd vcls t cmmnct ffctvly
 
fge
9:43 AM
Meh
You have a full keyboard
Use it
 
I know...
but the people who wrote our database schema didn't seem to...
cstmr, prjctno, ...
also it's actually harder to not write all the vocals.
 
I hate testing with spring
Everything works on the first try
And it's suspicious as hell XD
 
@ItachiUchiha So I write my tests with an assertion I know will fail
And only then correct it to an assertion that should pass
(Adding tests to an existing application btw, not TDDing, sadly)
 
fge
Uhmno, that is not how you should proceed
Again, mutation testing modifies the "production" code
Not the test classes
 
9:58 AM
@fge I don't have mutation testing on this project
 
fge
Well, you can easily add it ;)
If you use git just use a local branch :p
But testing "ater the fact"...
It's hard :p
 
@fge Know what? I'll do just that. Can you provide with a little guidance?
 
@Unihedro You are right. New benchmarks, close to what you said.
 
fge
About what? Testing after the fact or using pitest?
 
After warming up JVM, to print 50,000 records :

Using for..loop = ~88 ms
Using IntStream.range.forEach = ~94 ms
Using IntStream.range.parallel.forEach = ~42 ms
 
10:27 AM
not bad
 
11:09 AM
@ItachiUchiha Still not enough warm up
 
@fge Using pitest
 
@Unihedro I used 50K to warm up and started calculating the time from 50,001th record to 100K :)
 
fge
@SecondRikudo using maven I gather?
 
@fge Yeah
 
fge
Meh
:p
 
11:19 AM
@ItachiUchiha I don't get what you're trying to get at. I already told you it's still not enough warm up. And seriously, unless you run a crappy computer 50k trivial computations is no difference to nothing. I'm surprised it even dropped a bit. :P
 
@Unihedro Then how do you make sure that the JVM is warmed up?
 
run MOAR iterations
 
@ItachiUchiha Run more iterations than, say, 50k, which is 100% of your test runs?
13 mins ago, by Unihedro
@ItachiUchiha Still not enough warm up
 
But, how many is the question ?
50K, 50M, 50B..?
 
11:23 AM
@ItachiUchiha Much more.
1 message moved to bin
 
hrmph... Uni you seem to be overallergic...
 
@Vogel612 ?
 
why not let him just yawn?
 
@fge Okay, I ran it, looks like I have some surviving mutations
How do I know which mutations are those and squash them?
 
because then stuff like this happens...
 
11:24 AM
@Vogel612 Because.
 
fge
@SecondRikudo you have to look at the report; pitest does not provide mutation reports on the command line (yet?)
 
@fge I did get a report though
 
fge
The output should tell you where the report has been generated; normally it's somewhere in target
 
> org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator
>> Generated 20 Killed 4 (20%)
> KILLED 4 SURVIVED 1 TIMED_OUT 0 NON_VIABLE 0
> MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0
> NO_COVERAGE 15
Ah, okay, I see it
 
fge
What I mean is that you don't get the details at the command line
 
user4202350
11:26 AM
OMG I was Kicked for Yawning? !!! I Don't believe this.
 
@ShaU What don't you believe? You're spamming continuously, with first time warned by Second Rikudo.
 
~grabs popcorn
 
And I wouldn't bother handing timeouts, but you repeated it, and the golden rule of assuming good faith is on my side here.
 
grabs coke and lays
Nomohm
 
meh... nothing happening... back to code (dnd pls)
 
11:30 AM
I don't have anything to drink. I'll brew cocoa.
I try to drink less coffee on days where I have school in the coming day, so. xD
 
@fge got it running, thanks
 
fge
Well, I didn't really do anything except pasting a link :p
@SecondRikudo there is one thing that the doc isn't clear about here
By default, the covered classes are all classes which begin with your groupId
Therefore if you have groupId com.foo.bar, all classes in com.foo.bar will be considered but no other
Classes in com.baz.quux will not be covered for instance
And that's about it
After that you can play with mutators etc
 
This private repository has a ton of megacommits I don't even. xD
It's even worse than Tumblr.
 
user4202350
@Unihedro That was a lame explanation . How can you stop people from Yawning??? Even fge did that in chat(chat.stackoverflow.com/transcript/message/22108026#22108026) . Oh come on
 
fge
11:43 AM
Anime is for kids, huh
I guess the people who say this have never seen "Grave of the Fireflies"
 
@ItachiUchiha Lol, I like this one
@ShaU orry?
 
user4202350
what orry?
 
hello to all
this room have scala and play-framework developers ?
 
not to my knowledge :(
 
please join this room for Scala and Play-Framework developers

Scala, Play- Framework and Reactive M

Today's the reactive programming is most important topic for d...
 
11:53 AM
Eh, NO. You can't even spell Framework in the room title. Being in there will do bad for my reputation.
 
fge
<-- hates Scala
 
aside from the fact that you're not even a scala-dev (as to my knowledge) @Uni
 
@Vogel612 I use Scala.
 
TIL ;)
@fge why that?
 
I use aplenty, actually. xD
Feb 22 at 14:43, by Unihedro
No, I am not "using" Scala. I am a Java developer with a passionate interest in inanimate objects, such as code that doesn't execute in different ways whenever I call them, or simply, a game of chess, which I am enjoying right now in addition to chatting in a chat room. While I am a Java developer and occasionally joke about how Java sucks and Scala rules, and that I know Scala, I have never found a true need of Scala. I occasionally do Scala. That time is not now. Therefore, I am not "using" Scala.
 
user4202350
11:57 AM
evasive behavior. @Uni
 
@HarmeetSinghTaara please correct name framework
@Unihedro good observation
 
fge
@Vogel612 confusing syntax and a community which tends to think all non functional languages are sh*t (even though functional programming is ultimately only a paradigm, as OO is)
 
@AniketDeshmukh Obvious observation. xD
 
fge
If I were to seriously study a functional programming language, that would be haskell
 
12:00 PM
I use Haskell as well.
 
I always like appreciate talent
 
user4202350
@AniketDeshmukh appreciate good humans too.
 
fge
But some "functional language" proponents are outright bigots; no language is free of them but these bigots make their voices heard far more than the level-headed people advocating for the same language
And that irritates me to no end
OK, enough ranting and back to code
 
user4202350
@fge are you referring that to me?
 
12:19 PM
@fge Why does a "removed call" mutation survive when I have this line?
verify(setProperty).setProperty("publisher", "version", "mode", "property", null, false);
removed call to com/taboola/clientproperties/commands/SetProperty::setProperty → SURVIVED
When I make an alteration to the test it fails as expected
@Test
public void testCallsSetPropertyWithCorrectParameters() throws SQLException, TaboolaException {
    final String[] args = new String[]{"publisher", "version", "mode", "property"};
    final String output = unsetProperty.parse(args);
    verify(setProperty).setProperty("publisher", "version", "mode", "property", null, false);
    assertThat(output).isEqualTo("");
}
This test should have killed the mutation
I suspect a PEBKAC
 
Thanks @AniketDeshmukh.
 
It's not a PEBKAC. The mock is correctly injected. The removed call should have failed the test.
And when I remove the call manually it fails the tests as expected. WTH
 
@SecondRikudo Maybe you need verifyNoMoreInteractions(obj)
 
12:35 PM
@Unihedro Still survives.
 
Maybe the code is broken.
 
What code?
setProperty is a mock, I added a breakpoint to make sure of that.
And when I change the invoke parameters in the test, or the assertion, or manuall remove the call and rebuild, the tests fail.
I'm either missing something super obvious here, or I've found a bug with pitest (which is unlikely). I'll wait for @fge 's input before I proceed.
 
java arrays are a pain.. arrays (lists) in python were so much better!!!
 
the access is the same
 
@Sword Java has lists too
 
12:47 PM
the difference is: a python list is a java-list with simplified access overloads (like in c#)
 
can I store any type of variable without having to declare it?
 
sure.
javac will slap you with a rawtypes warning, or you have to declare the type as object, but... yes you can
 
like?
 
List warning = new ArrayList(); // warns for rawtypes
List<?> objectList = new ArrayList<>(); // doesn't warn
 
enemySpriteList = new Array<Texture>(5);
 
fge
12:49 PM
@SecondRikudo hmm, that's strange indeed; and if you remove the actual call, the test fails, right?
 
@fge Yes
 
does this declare a list with length 5?
 
@Sword Don't use an array for situations like these.
 
At first I thought maybe spring is injecting the wrong instance, but I ruled that out.
 
@Sword if you'd use an actual type, yes.
 
12:50 PM
@Sword It's ArrayList, not Array
 
alternatively use Vector
 
But Arraylists have a capacity , right? and then I can add elements as and when I want to..
 
fge
@SecondRikudo ah, Spring :p Well, maybe you could ask a question on SO (provided you can "give away" enough code to reproduce the problem); I've never had that problem personally
 
@Sword The contracts of lists are that they are 1. ordered 2. persistent and 3. have dynamic size
 
@Sword you mean you want to limit the capacity?
 
12:52 PM
Arrays are stateful and persistent but the capacity is fixed.
 
@Vogel612 Because Java7, no?
 
@Vogel612 nope , I am using that because of the capacity feature and then I can even have less elements
 
@OlegKuznetsov yea. in Java 6 you'd have to fully qualify the right side of the assignmnet
generics exist since 1.5 IIRC
 
fge
Yes, correct
 
@Unihedro so if I want to store textures/sprites, what would be the best bet ? Arrays,ArrayLists or Lists ?
 
12:53 PM
usually arrays.
 
@Sword Depends on realization, imho
 
since you often don't want to sacrifice the performance hit from using a List
 
ImmutableList.of(...)
 
But Arrays need their capacity to be full , right?
 
@Sword ?? no, why?
@Unihedro pls move that to where it belongs...
 
12:56 PM
@Sword There are default values which account for primitive -> 0, and reference -> null.
 
@Vogel612 Looks like I was misled.. :(
 
2 messages moved to Trash
 
user4202350
Java Doesnot support List
 
:22115849 And int[] starts with all elements as 0.
 
@Unihedro and string?
 
12:57 PM
@Sword String is an Object. Object types are reference types, so they're null by default.
1 min ago, by Unihedro
@Sword There are default values which account for primitive -> 0, and reference -> null.
 
@Unihedro not when you start it with an array initialization block
new int[]{1, 2, 3};
 
user4202350
Java Doesnot support String
 
somebody kick him out
 
requesting boots be put to action, too
 
@Unihedro where's the Master Override?
 
12:58 PM
@Vogel612 That's totally why "default" is there.
 
Master override?
 
1 min ago, by Sword
somebody kick him out
 
@Sword Activate Override on my mark?
 
Y
 
tossing in vote no 2
 
12:59 PM
0
Q: Mutation not killed when it should be with a method with an auto-injected field

Second RikudoI have the following: public class UnsetProperty extends Command { @Resource private SetProperty setProperty; public String parse(String[] args) { if (args.length != 4) { throw new RuntimeException("Incorrect number of arguments. Expected 4. Got " + args.length)...

@fge Posted.
Let's see what I get.
 

« first day (1605 days earlier)      last day (3329 days later) »