« first day (3153 days earlier)      last day (2012 days later) » 

00:00
Each honest calling, each walk of life, has its own elite, its own aristocracy based on excellence of performance. -- James Bryant Conant (source)
 
2 hours later…
01:48
@pdorgambide i see no reason for using UUID as primary key if we can use Integer as a primary key with identity generation strategy,.. it looks good as well as i think it consume less space as well... hibernate generates sequence corresponding to this..
 
4 hours later…
05:37
I agree with you in the arguments (space and historic reasons) but the autoincrement has drawbacks, as example is not the best solutions on case as:
-The database are used by more than one service (Microservices architectures)
-You have a domain where the source are from diferent databases
And any more that, at this time, I dont remember. For some of this causes we left their use in pro of UUID. The space and performance could be a drawback but that could be in cosideration on big database systems ( but the cloud scales well enought) The options are out there, catch one an enjoy! @ShivendraGupta
05:55
posted on June 11, 2019

@pdorgambide note that,ideally in microservice architecture each service should have its own database.
06:10
@ShivendraGupta Rigth and SRP. But the software world some times has legacy databases. ;). Is an opinion based on my own experiece. The @Wietlol alternative also is a option. Catch one an enjoy! There Isn't one over the other.
Zoe
Zoe
06:40
@Feeds lmao
06:52
So eclipse is hanging on god knows what..
you'd think that for any action that may potentially take longer than a second, they'd implement some sort of timeout feature where you could interrupt if you wanted
It doesn't even strike me as something particularly difficult to implement
instead I have to resort to chatting here while I'm waiting
Zoe
Zoe
@Neil did you try Vim?
@Zoe I did. I'm still trying to figure out how to exit
07:27
@Neil power off XD
07:47
has disconnected from chat.
08:03
meow meow meow !
morn
morn
/cat
/factat
/fatcat
08:06
haha jobless doggo
I have no time to game now steam
I'm at work
08:24
Is it possible to compress soap request ?
I am getting soap parse error from server while trying sending compressed request to the server
08:38
@Tarun These two questions are incompatible with one another..
If you're not sure if soap requests can be compressed, why are you compressing them?
09:08
/fatcat
...
@Neil I am trying to convey that I tried to compress soap request but getting error from soap server. Hence, I am not sure even if its doable. Do you have any idea about compressing soap request ?
@Tarun Honestly, I didn't think that was possible, but I suppose if it were, you'd have to configure something also on the server-side
otherwise, it gets this garbled message and it's supposed to know it's compressed
09:15
On Web, I could find information regarding compression of Soap Response but not soap request
/fatcat
hey Wietlol!
She is so fat
I mean cat
@Tarun then in all likelihood it isn't possible
Zoe
Zoe
09:18
\(-_-\)
I would expect a 1 to 1 ratio between "soap request compression" and "soap response compression"
@Hans1984 ohai
you think that cat is as fat as I am?
hey
@Tarun ikr
you underestimate me, my fellow cat
:D
it just reminded me of a lion
a fat Lion though
Zoe
Zoe
09:21
@Wietlol No one beats Gem :p
/fatcat
oh it works, never knew. Sorry for interruption guys
Zoe
Zoe
evergreen canonical: Stack Overflow technology makes me write bad answers, "The idea of Stack Overflow is rotten. It was excellent when trees were high and traffic was low. It turned bad now; it has become a honeypot for all the "enthusiast programmers" of the world, eager to share their 2 cents faster than you can say the word "close". You're killing a great resource. Despite all the nice words and proper declarations, it discourages the reuse of the knowledge. And encourages fast on-site answers..."gnat 2 hours ago
One of far too many
@Tarun It's ok.. this time... ಠ_ಠ
Zoe
Zoe
09:34
ಠ_ಠ
we will forgive you, this time ಠ_ಠ
@Zoe I don't know if I agree with that
If something is bad practice, it is generally considered by most programmers to be the wrong sort of thing to do
and yet if it is being upvoted/downvoted in mass, I would think any "bad practice" questions would correctly be downvoted
That's not to say that there aren't exceptions, but I would hardly call it the rule
Zoe
Zoe
@Neil I don't either. The main point is the second line, which is true. At least from my experience on main
@Neil @Hans1984, Now I know forgiveness have names too.
yes ist like the bible says
names of the three forgiveness: Zoe, Hans1984, Neil
Zoe
Zoe
09:41
Amen!
hallelujah!
\o/
I can just imagine a bible in a post-apocalyptic future containing user handles rather than names
And on that day, reverseBunny69 reached for the chalice of good and drank from it, and we rejoiced. Amen.
Zoe
Zoe
10:00
xD
morn
morn
10:13
Fire and forget is a test smell defined as:
"a test that is at risk of exiting prematurely because it does not properly ait for the results of exertnal calls".
If someone were to detect this in Java, how would they do that?
A paper that implemented a detector picked this detection strategy:
"JUnit tests that do not properly wait for the return of a call.".
But what the hell does that even mean
@sockevalley It means the junit test launches an async task
and you don't use any of it because the test ends before you wait for the result
@Neil What would an example of that look like?
In this repository, the classifier classified several of the methods as exiting prematurely, even if they did not have an assert.
https://github.com/apache/pig/blob/branch-0.8/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestDBStorage.java
@Neil
10:28
@sockevalley hmm, well maybe it's referring to the db?
even if it is in memory, the detector probably doesn't know that
you should properly close it
it still probably launches a thread
Probably refering to the pigServer or the cluster. Still very unclear why this code should be smelly.
user11564744
Hey guys, I have a question. If I overload a method with only one parameter, one with int and other with short. How will I call the method with short parameter since java gives preferance to integer ?
Zoe
Zoe
You write short instead of int.
@Neil I mean they gave a textual description in their paper, it's freaking impossible for me to replicate that detection mechanism :/
@Neil However they mention this:
In the case of Fire and Forget, the detector checks if a test performs an external call
followed by a Thread.sleep instruction
user11564744
Say I have two methods, void method(int a) and void method (short a), how will I call the method with short parameter
10:34
What classifies as an exernal call here?
con = DriverManager.getConnection(url, user, password);?
@sockevalley then it must be testWriteToDB they're referring to
there is an actual Thread.sleep there
ExecJob job = pigServer.executeBatch().get(0);
while(!job.hasCompleted()) Thread.sleep(1000);
Yes line 160. I just saw it.
That's not ideal
if you just missed it, your program waits needlessly 999 ms
Zoe
Zoe
public class HelloWorld{
     public static void main(String []args){test((short) 42);}
     static void test(short x) {
        System.out.println("Short");
     }
     static void test(int x) {
        System.out.println("int");
     }
}
Prints "short". I don't see a problem
While that job has not completed, we wish to wait and may exit prematurely.
user11564744
10:37
Thanks @Zoe , type casting just slipped out of my head.
@Neil
What annoys me though is that they classified the following methods as fire and forget as well when testWriteToDB what the only one having thread.sleep().
TestDBStorage
createFile
createTable
tearDown
accept
Maybe they classified all the other methods as smelly because they also used pigServer which was used in testWriteToDB that used pigServer?
I doubt that the detector knows or cares that it is pigserver
it's fine that it is an async call, but you should properly wait for it to end
Calling job.hasCompleted() in a loop is waiting for it to end, but that's not obvious to the detector
as far as the detector is concerned, you launched an async task, and then started calling cheeseSandwich.isReady() repeatedly
or at least that's my idea
/fatcat
/cat
Zoe
Zoe
/sandbox
Please go play in the sandbox
no it's ok
just don't spam
hey btw
@萝莉w
Zoe
Zoe
It's fine
10:47
it's big fat wietlol again
on the first one
Recently, I resolved difficult problem.
great
what was it ?
Just like use java to run cmd command "java -version".
ah ok
Oh, someone deleted the important files then my program ran abnormal.
10:50
oh no
Then I found the same files on a Linux server.
did they Change the Java path?
that caused alot of headaches for me , one time..
Java Path on Windows
Just dlelete the files in a subfolder. Then the command got error info.
No one dare change Java Path.
Onless he want to be fired.
Unless...
10:51
some ppl just want to see the world burn
those ppl Change the Java path
:D
/8ball Did you change the Java path before ?
@Hans1984 Very doubtful
@Hans1984 Cannot predict now
@Neil Here ExecJob job = pigServer.executeBatch().get(0); is the external call that we are waiting for while calling Thread.sleep(x). But why do you reckon it triggered the other methods as well?
cant belive they named it PigServer
lol
I've never seen such evil guy.
@萝莉w true
10:54
No one ever watches their code soooo
Oh, heavy rain today.
One of my shoes is wet now.
:/
it rained all nigh tlong
heavily
but throughout the day no rain so far
@sockevalley no idea, honestly
if you remove it, do you get the same error on all the others?
@Neil I don't have their detector unfortunately so I cannot try.
no, but you have the source to test it on
remove the method and retry just to see what results you get
11:00
Thunder crashes.
ruuun
@Neil What do you mean by retry?
At sometimes, even if you set evironment variable, the command cannot run by using java program. To run it, I must set the path where it's supported.
11:12
\o
@Neil Do you reckon that the detector actually recursively goes through all function calls to production code objects to check for Thread.sleep? :p
11:26
o/
@sockevalley I don't know. Why would you assume I know anything about your detector?
I'm just throwing out suggestions
11:39
It's not my detector. It's their:
https://dibt.unimol.it/staff/fpalomba/documents/J18.pdf
So you've mentioned
12:00
It is well known that weather and mood are linked. Scientists have discovered the ideal temperature at which happiness peaks: 57.02 degrees Fahrenheit. (source)
Zoe
Zoe
O.o
wtf
"Scientists"
my ass
but 57f sounds good
equals 14° c
nice temperature
@Hans1984 you seem a bit moody. Probably a cloudy day there for you?
no sweating and no freezing
@Neil haha
it's cloudy indeed
:p
ah ha!
12:14
and ist 20° c
too warm!
what a nice account
that could be me
Zoe
Zoe
@Hans1984 13.9 actschually
no u
I want previlege
Zoe
Zoe
12:49
@Hans1984 nah, that's @geis
geeeiiiis
@Hans1984 you too!?
yes yes
give give
!
now ಠ_ಠ
:(
no u
( ゚ヮ゚)
13:09
@Zoe what's with me?
Ping me with the answer. Gone again, bye.
Zoe
Zoe
14:09
@geisterfurz007 13.9. You.
Quiz: What is the name of the most popular and most secure encryption algorithm.
Zoe
Zoe
Trick question - nothing is safe with quantum computers
@Zoe I said "most secure", not "unbreakable".
Zoe
Zoe
RSA 4096?
According to the book I'm reading, it's AES.
Although, it mentions that RSA is used for asymmetric ciphers.
14:21
@Zoe I'm not quite sure why that's in reply to my message from 3 days ago that I figured out in the next message
should use SHA256 minimum
Zoe
Zoe
@towc because it's an example. The reply is for context
@Neil SHA is a hashing algorithm.
Zoe
Zoe
@Neil I just go with the highest amount of bits I can possibly find xD Usually RSA 4096.
I know what meta is. I just wasn't sure that it was meant to be an acronym for it
14:22
And yes, you should not use SHA-1 (160-bit hash) because it has proven to be insecure.
SHA-2 is secure and SHA-3 is even more secure.
@Zoe RSA 9000!!!
oh, you mean the conversation of the context of that message of mine
I see
Zoe
Zoe
@Neil snort I'll rather use RSA 9001, because that's OVER 9000!!!!!!!!!!!!!!!!!!111111oneone
@towc yeah
damn, that was more clever than my joke
@Zoe is a meme master.
14:24
she should have hung out in room 17 more often
Zoe
Zoe
Happy? :P
@Zoe what are these new stripes in your profile pic?
DES is older. It only has a 56-bit key, which makes it susceptible to brute force attacks.
14:40
AES and RSA are used together. RSA is used to generate the public/private key pair, which is used to securely share the symmetric encryption key used by AES.
Once both parties have the AES key, the rest of the communicate is encrypted using AES.
The reason for using two encryption algorithms is that RSA is slow and AES is fast.
@Zoe oh nice, never seen it before
Zoe
Zoe
@Michael fancy
Hey, i have small issue
is possible to generate an xml to a specfiy folder rather than base directory
Zoe
Zoe
Yes.
@Clover Yes
Zoe
Zoe
14:52
xD
how?
Zoe
Zoe
you pick a folder rather than the base directory.
how to configure that using Jaxb?
Zoe
Zoe
No clue.
15:06
@Clover it's just a parameter that you pass when you generate the xml
i have no clue how to do it
@Neil any examples?
@Clover when you generate the xml, you use Marshaller
OutputStream is the second parameter you pass.. so that could go to a file or whatever
just pass in a FileOutputStream pointing to the path you want
@Neil Thanks man
It worked
no problem :)
 
3 hours later…
18:38
Is it possible to read a class file and find all method invocations that are made?
For example if I read A.class which had a method run() and this method calls B.doSomething() and C.doThat(), can I get that information from a compiled class file?
Zoe
Zoe
@DemCodeLines yeah, but you'll need to parse it. It's pretty far from plain text
Hey guys, I am writing a cover letter as junior software engineer. I could use some advice from you guys for sure :D
I am curious to hear what you think I should focus on? What type of things do you bring up in the cover letter?
I have currently written things about my program, what is all about (it's not a typical program so they may be curious)
my passion for programming, my interest for testing/devops and a little bit of me (social commitments etc).
But is it really necessary to write that I did an internship as a developer last summer? it says in my cv already lol
19:01
@Zoe there are a few parsing tools out there, but I didn’t find any that gave me that level of detail (method run() is calling B.doSomething() and C.doSomething()).
@sockevalley Explain why you are a good match for that particular job/company.
@Michael their only demands are:
- You have worked a year or two as a software engineer with either .NET or Java
- You are curious and driven.
- You want to work with agile methods and dev-ops.
I mean I don't know if I am a good match for their company tbh but I reckon it would be interesting to meet them to see if it is.
19:18
So explain how you match those demands
@Zoe I still have no clue what you mean.
Zoe
Zoe
@geisterfurz007 Don't worry about it.
Ok.
I will just push it to your normal insanity and leave it at that.
Zoe
Zoe
And you got flagged :] (not by me btw)
Zoe
Zoe
19:28
Yeah, really. Marked it as invalid - don't see anything bad about it (requires more votes though, so who knows how it ends)
And it's gone
In that case I probably don't write what I had in my textarea here a second ago.
Zoe
Zoe
Or you could post it on Discord
Leaf Village.
Pretty sure that got frozen for inactivity
19:30
The chat room might have, yes.
But there is a schneaky backup.
19:54
Anyone have any basic board games that can be made in JavaFX in 7 days or less?
Tic-tac-toe?
Zoe
Zoe
Yeah. Any if you type fast enough :p
@Zoe Door.
other than tic tac toe, minesweeper, and connect 4
Zoe
Zoe
Hiya @Tavo! Long time no see
@JBis Ludo?
I know its really general but I have a stupid project due and I don't want to spend more time on it then necessary.
19:56
Reversi?
@JennaSloan that could work
thanks
Come to think of it, the reversi pieces kinda look like those chocolate and vanilla Oreos
One time I programmed a dots & boxes game in like 10 minutes
Adding the GUI took a lot longer
I'm not a fan of Java(FX).
Coming from HTML/CSS/JS it just seems like it takes much longer and much more code to do anything
20:15
coming from react, all ui frameworks sucuuks
:p
the idea of component based ui (instead of page/template based ui)
the linking of ui to the models (rather than the controllers to the ui)
the declaration in the same language as the actual code (removes the need of special languages and merging the languages)
apart from it being based on JS, I have yet to find an issue with react
React is nice. Originally hated it, but I just had to get used to "Thinking React"
 
3 hours later…
23:46
morn!
morn
yo!

« first day (3153 days earlier)      last day (2012 days later) »