« first day (1531 days earlier)      last day (3407 days later) » 

12:00 AM
@fge [noob question] is it something like JAAS?
Oh, and Happy New Year to our GMT friends :)
 
fge
@OlegKuznetsov PAM may be plugged into JAAS, yes
 
YAY!
I got my Mistletoe hat!
 
yaay me too ^^
 
Now, I'm off to get a resolution... hat... brb all :)
 
12:16 AM
hhmm
can you find your comments?
 
fge
Uh, mistletoe hat here too but then why am I surprised?
 
fge
@Bohemian a happy year to you
 
They really should expand the mistletoe duration so less people miss it.
 
Any Android aficionados in here?
 
12:23 AM
@Unihedro It's hard to get it when you didn't comment much XD
 
@Gemtastic delete someone elses' comments then :P
want a hint? ;)
 
I can do that?
Hint?
 
@Unihedro I didn't...
 
11
A: How can I earn the Resolution hat?

SompuperooYou can't earn the hat yet, since it's not 2015. But on January 1st 2015 UTC time you will be able to earn this hat. Do the comments I delete need to be mine? The hat doesn't specify if the comments need to be yours. Users can delete their own comments, but most users can't delete oth...

in Tavern on the Meta on Meta Stack Exchange Chat, Dec 15 '14 at 4:59, by Shog9
Doesn't say they have to be your comments...
 
"Most users can't delete other people's comments"
 
12:26 AM
@Gemtastic hint: edited Dec 21 '14 at 16:28 by Unihedro
 
@Unihedro I don't get that hint
 
Oh, you're supposed to flag other people's comments?
and then have them removed?
 
Well...
 
Does anyone know where I could start with coding a decision tree in Android? I really haven't got a clue where to start, just some advice would be aprreciated :)
 
12:35 AM
Why would a decision tree be any different in Android from normal Java?
 
Okay let me rephrase, a java decision tree
 
fge
@Unihedro had a peek at pam4j yet? ;)
And yes, you can yell at the code, it's old, I didn't know as much Java as I do today
 
@fge :)
 
Is it bad that I make decision trees that aren't trees?
 
@Gemtastic like indecision trees?
 
12:44 AM
@BrianJ No, I put properties into the objects as much as I can and the player progresses the story due to initiated listeners or threads.
Like if you pull a lever that will let out a demon, the lever sends an activation of the lever to the demon, instead of
if(leverPulled){
    demon == true;
}
 
quick question, what is the alternative to ImageIcon in Android? I've declared an ImageIcon in a class but it isn't recognised as an object..
 
If you have specific Android questions, it may be better to go to an Android room
 
they won't let me in :(
 
There are other rooms
Like this one:

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
 
fge
@Unihedro meh, if you make it evolve, it'd be great; take it over
<-- having loads of fun removing obsolete code
 
12:49 AM
hehe
 
fge
<-- being worried that removing that much obsolete code still makes all tests pass
(something is definitely wrong, I knew it)
 
you should be; it's healthy
 
fge
Should be what? Worried?
 
Yes
Keeping yourself on your toes will lessen the damage, if there is any :P
 
fge
The problem with removing that much code and seeing all tests pass again is all the damage you do not see
It proves that the code is very poorly tested to begin with
 
12:52 AM
Uh-huh. And that's why it's healthy that you're suspicious. It keeps you thinking.
 
fge
And as you said, it keeps me on m y toes
 
Yep :)
 
fge
(but the situation was much worse when I took that codebase over; gee)
 
Adz
errr
happy new year from london!
 
Happy new year :)
 
12:59 AM
Happy new year!
 
1:14 AM
YAY!
 
503?
faints
 
Yes, I won a bounty!
 
Adz
nice!
 
1:32 AM
Happy new year!!!
Have you seen pictures or wishes that are related to computer science? :)
 
XD
 
Aha :D Is there also an other one? @Unihedro
 
@evinda no.
Or, in other words: It's around you. Scroll up the transcript.
2 hours ago, by fge
<-- beginning the year by cleaning up code, while his gf plays Skyrim
 
In my home it's the other way around. XD
 
2:07 AM
Happy New Year fellas!
 
u 2 :)
 
Happy new year!
 
too late for Mistletoe right?
 
Yup
An hour and 5 min too late
 
Yep, sorry :(
But you can get Resolution now!
 
2:11 AM
I have 4 days to get Resolution, piece of cake
 
gl with that
I gave up :/
 
in Tavern on the Meta on Meta Stack Exchange Chat, 1 min ago, by bjb568
http://codepen.io/zachernuk/pen/ogYgLV kewl
@Gem ^^ fun
 
I'm bad at that kinda stuff
 
I'm surprised at how much people could do with Javascript.
I would make a clock and then be proud of myself, then look up some widgets and sigh and sit in a corner.
 
Well
People will always push the limits, just because they can
 
2:25 AM
♬ We do what we must, because, we can ♫
 
"Anyway this cake is great~" ♪
 
fge
2:53 AM
fart
Sorry
 
pfft
 
Happy New Year! :D
 
Happy new year Michael
 
@Michael You're late, Mistletoe hats were given out already :p
But happy new year!!
 
3:15 AM
@Gemtastic haha
Happy New Year everyone :)
 
fge
Yay
Another apache-commons breakage
 
:o
 
fge
0
A: Implementing Comparable interface produces "UnsupportedOperationException : ListIterator does not support set" error

fge@Takendarkk is on the correct track here; not sure how you have managed it, but your SetUniqueList class seems to have produced a Set which is also a List, and Collections.sort() expects a List as an argument (EDIT it appears that this is an Apache commons specific Collection; from the error you ...

 
@ItachiUchiha I get happy whenever I even manage to get a retag approved XD
 
@Gemtastic We had another editor pushing 100 retagging suggested edits into the queue in one evening.
It was ridiculous.
 
3:20 AM
yee I maybe make one retag every few days and it's not even always at SO XD
 
fge
<-- never retags anything but the obvious
 
that's what I do
More like add tags when there aren't any
 
fge
Meh
Updated my answer
Gee, apache-commons really is broken beyond repair
<-- recalls why a long, long time ago, he chose to use guava over anything apache-commons
3
Heh, answer updated again
And yet another reminder for self that "no, if you can use something else than apache commons, do so, please"
 
3:51 AM
<-- is going to nap and then code some more
 
hey guys ;) got a question for you
I want to create a copy of a StringBuilder with all its contents.... would
[code]StringBuilder copySB = new StringBuilder();[/code]
[code]copySB.append(oldSB.toString);[/code]
do the job?
 
fge
@Ubica or just new StringBuilder(oldSB.toString())
But your version would work as well
 
so that's perfectly legal? no better way of doing it?
 
fge
OK, now, about "better" in Java, beware
 
:D
 
fge
4:03 AM
Do you know what the JIT is?
 
no, but I would like to know :)
 
fge
Just In Time
 
ah :)
 
fge
At runtime, the JVM is smart enough to decide that your code, as emitted by the compiler, can be improved
Therefore, the rule with Java is always the same
Write code which is obviously correct, don't worry about performance stuff
The JIT is there for that, and it's smarter than you
 
ok... thanks
 
fge
4:05 AM
Now, of course, there are "smarter" ways to write obviously correct code, but such ways are just there for "nicer" code; as far as the JIT is concerned, those are all one and the same
 
this helps ;)
 
fge
Therefore, whether you append your contents after initialization like you do, or pass the contents at init time like I do, matters zilch at runtime
@Ubica glad I could help ;)
Aah, the JIT
inlining, loop unrolling, lock coarsening, lock eliding, escape analysis...
A whole research field in itself
 
Yaay hats
 
fge
4:24 AM
Aiie, hats
 
hai
i have issues in debugging tomcat using eclipse
can somebody help me?
-1
Q: Query on Debugging Tomcat with Eclipse

overexchangeI have been through query. I started tomcat jvm and i see message saying "listening at port 8001(which is the JPDA_ADDRESs)" after setting JPDA_ADDRESS to 8001 in catalina.bat of tomcat 7 version. jre 64 bit 1.8 update 25 version is used to launched tomcat jvm. I do not see JPDA_START paramet...

 
fge
Sorry, not me; but you can find your answer easily on Google, to be honest
The plan is always the same: make the Tomcat JVM run an agent on a given port, and from your IDE, connect to that port
 
yes i was able to debug before
i do not know somehow am not able to debug now
what do u mean running tomcat jvm run an agent?
 
fge
4:50 AM
Well, if you want remote debugging, you tell the JVM to run an agent
That agent will listen on a given port and a given address, you can configure them both
Furthermore you can tell whether the agent should suspend execution until a client connects to it
Afterwards, you configure a remote debugging session on your IDE so that it connects to the given IP and port
Since I use IDEA and not Eclipse I cannot help on that part
But I'm pretty sure Eclipse can do that
 
yeah Eclipse can do that
@fge finally everything is done :)
 
fge
@ItachiUchiha everything what?
 
My setup :P
How is new year?
if you are interested in performance benchmarking of lambdas
 
fge
5:06 AM
@ItachiUchiha not at this very moment but please ping me regularly with that; the author of assertj-core has asked me to work on Path assertions and I'm doing just that
 
@fge Ahh, good luck!
 
fge
5:42 AM
Oooh dear
Tests are done using JUnit
weeps
 
hello from NZ
 
fge
Hello back from... Errr... Earth, I guess
 
Hehe
 
5:58 AM
Hello from Milky Way
 
Hello from Mount Myoboku
 
fge
Hello from a time-space continuum in which we all happen to exist
 
Wow, my computer is not dead!
...but mounting CPU cooler back... Ugh, I hate this!
 
fge
6:15 AM
@OlegKuznetsov even in 2014 a dying computer is a rare occurrence, so how do you manage to have a potential zombie of a gear?
OK, any JUnit expert here?
 
Not an expert :(
though some fair knowledge :P
 
fge
@ItachiUchiha OK, well, can you explain how @Rule works?
 
@fge Power supply died, so I bought a new one. But when I installed it, all I got is black screen, no reaction on keyboard events, no beep after POST-codes table: only spinning coolers...
 
fge
For instance, I have a base test class which all classes will inherit, and for all those classes a single FileSystem instance is needed; how do I tackle that?
@OlegKuznetsov uh, bad wiring?
 
@fge no, but probably I touched memory banks during mounting of power supply, so it couldn't recognize some memory module (I left only one - and it started fine)
 
6:25 AM
@fge I don't know much of JUnit, but I think you should make that FileSystem object public static in your base class and initialize it only if the instance is null. Then it will be single object throughout the application(if that is what a JUnit project is called). This way, the object will be available in every child class.
 
@fge well JUnit will create different instances of your FileSystem inside different Test, that is how it works.
But, there should be a workaround, never gave it a thought
 
fge
Uuuh
I miss TestNG already
 
haha
 
TestNG?
 
@fge Why did you switch?
 
fge
6:28 AM
@DroidDev "only if the instance is null" <-- sorry, I never do that; lazy initialization is too tricky to get right, especially in a context which you don't master, and I don't master JUnit
 
I need to read some more
 
fge
@OlegKuznetsov I didn't; I develop assertions for assertj-core, and it uses JUnit for tests
My own projects use TestNG, thank you very much
 
@fge without it, there will be a new instance of FileSystem every time you inherit the base class. You can also use a bool to check if the object was initialized(just another workaround)
 
fge
6:31 AM
@DroidDev I prefer more "definitive" solutions to be honest; but I guess I'll just have one fs created by test in the meanwhile
Which potentially leads to another problem, but...
Aaargh, I sooo miss TestNG
JUnit is really retarded compared to TestNG, honestly
 
@fge umm....I've never done anything or even touched JUnit. This was just something that struck when I read the problem. Although, I'd like to read more about these things before going any further.
 
fge
@DroidDev well, if you ever have to/want to[1] test things in a Java project, believe me: use TestNG ([1] I hope for you it's "want to")
 
@fge I just started working on phonegap(I am mobile app developer, Android). It use javascript, think I'll need that now
 
fge
JUnit did not learn from its mistakes which date back more than 10 years
 
@fge is really pissed off at JUnit
 
fge
6:35 AM
@ItachiUchiha how can you not be pissed off at a package which requires that class initialization methods be static for Pete's sake? That is downright ridiculous
@DroidDev err, TestNG tests Java code, not JavaScript code
 
@fge oh! my mistake.
@fge umm... Public static void main();
 
lolz
why do people confuse b/w Java and Javascript
 
I wonder that too
 
<-- seriously needs more reading
 
fge
@DroidDev main() and JUnit are two very different things
Well, anyway -- back to code
 
6:57 AM
-2GB of RAM... Great :-/
I knew I had to buy modules in pairs!
 
fge
phew
15 minutes to make two darn tests pass
15 minutes
 
@OlegKuznetsov 2GB RAM retarded
 
fge
Whew
That's a lot of work
Meh, amended with a fixed commit message
 
7:17 AM
Hi
 
fge
Lo
 
I have to packaging a java jar project which it to be connected with MySQL database , I have heard about maven but is there other better tool?
(the matter is how fast)
 
fge
gradle
 
okay but what about .net tools?
stackoverflow.com/questions/1163173/… gradle thought as a toy project really?
325
Q: Why use Gradle instead of Ant or Maven?

IttayDWhat does another build tool targeted at Java really get me? If you use Gradle over another tool, why? (See also Why use Buildr instead of Ant or Maven)

 
fge
7:34 AM
gradle, a toy?
Certainly not
I use it for all my projects
And it works better than maven
 
okay thank you
for sharing your experience
 
 
1 hour later…
fge
8:43 AM
Heh, writing assertj assertions is fun
Now, what's next...
 
9:09 AM
a few hours ago you were whining about it :P @fge
 
fge
@ItachiUchiha I was whining about JUnit
And indeed, I have stumbled upon a problem, which TestNG does not have
 
as in?
 
fge
Asking the question on SO right now... I'll post the link
 
ah
btw, i have started watching fate stay zero
 
fge
Aah
Good one, eh?
 
9:17 AM
Just finished 3 episodes, no fun till now..
 
fge
Oh?
 
The fight begins from the 4th episode
 
fge
Yeah well, animes are not only about fights, are they? :p
Anyway, my problem:
0
Q: How to require that JUnit tests implement a @BeforeClass/@AfterClass "abstract method"?

fgeAs a heavy TestNG user, this is not a problem, since @BeforeClass methods are not static... But in JUnit, they are. And this is quite a problem for what I am currently doing. I am writing assertions for java.nio.file.Path for assertj, which uses JUnit 4.x for tests. Some assertions require tha...

 
Well they definitely are not
but there is nothing that exists till now
It was the same with FSN, first few episodes were just OK
 
fge
I happen to like the first episodes
 
9:27 AM
Do you even recall what was there in the first few episodes?
:P :P
 
fge
Yes ;)
 
@fge best way to perform a two way encryption/decryption?
 
fge
@ItachiUchiha not sure I'm following you -- scenario?
Also, do you have an answer to my question? :p
 
@fge I need to encrypt data before storing them
and then decrypt them back to display them when requested
 
fge
Hmmm
bouncycastle?
 
9:38 AM
using a library for it?
 
fge
Also, how do you intend to store the private key?
Well, fundamentally there is no need for it
 
I was thinking of something simple like AES
 
fge
Except that the JDK has (to the extent of my knowledge) no other mechanism available than in-memory encryption/decryption and does not provide *Streams
If your content is small enough I guess that's fine
 
yeah, will be used on android :P
I guess javax.crypto.* will be enough
and yes, i have no solution for your question @fge
 
fge
Argh :/
I miss TestNG more and more
 
10:28 AM
@fge The person who left the three comments under your question obviously have no idea what they're doing whatsoever. stackoverflow.com/users/351861/specializt?tab=tags I flagged for comment cleanup of the five comments.
 
fge
@Unihedro yeah, indeed... Not that this solves my problem, heh
@Mr.777 happy 2015 year
 
Hi @fge
Same to you sir
Happy new year 2015 to all of you
 
Happy new year from Unihedron's Realm!
 
fge
@Unihedro do you happen to know a solution to my JUnit problem by any chance?
 
@fge I wish. My JUnit tests skills are so bad that I mock just enough in init and make do with a linear flow.
 
fge
10:35 AM
Eh
Then switch to TestNG before it's too late
Avoid the pain(s)
 
Since, you know, ever since I discovered TestNG and switched to it I never wanted to do any more JUnit, so I never actually find out more about it.
:p
 
fge
Ah, I see :p
Well, here I have no choice
:(
That's the only flaw I see with assertj -- the fact that it uses JUnit for tests :p
 
That is indeed unfortunate. xD
@fge the troll comments has been nuked!
 
fge
Thanks!
 
10:55 AM
I can now understand why @fge and @Unihedro are so happy!
 
@ItachiUchiha I still want a proper job. Lost mine three times...
@ItachiUchiha I like that picture because it's a meta joke. Unemployed programmers are usually better at managing themselves not to overload and maximize profit from tasks, hence they can afford a comfortable environment. On the other hand, people with steady jobs in development are really busy, and since computing isn't as well-paying as software engineering, they probably overload themselves in tasks to keep a living, and no time to use their money anymore. :P
Or they're just serious. You know, when you're seriously coding you won't stop even after 48 hours, but I doubt that's what the pic is trying to tell you.
 
11:23 AM
@Unihedro no, I agree with the other statement in message above. That's upto mark :D
 
11:38 AM
@Unihedro 3 times?
@Unihedro well that is absolutely not what the pic is trying to convey here
 
@Unihedro to tell you the truth, freelancing is way waaayyyyyy better than a regular job. WAAAYYYYYYYYYYYYYYYYY BETTER!!!
 
@DroidDev lol
I have to agree with that - if you have the self-discipline, freelancing is definitely a way to go
as long as you don't mind constantly signing new NDAs
 
and finding new contracts
 
^^^
it all depends on how much effort you put into your well being(by well being, I mean job and not health ;))
 
11:43 AM
lo
 

« first day (1531 days earlier)      last day (3407 days later) »