« first day (2945 days earlier)      last day (1996 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
"Persistence is very important. You should not give up unless you are forced to give up." -Elon Musk (source)
 
 
3 hours later…
3:15 AM
1 message moved to friendly bin
 
Welp, I'm bored
 
 
4 hours later…
7:16 AM
Hello, how do we check if Files.copy(source, target, options) from the java.nio.file package is successfully completed besides the absence of thrown exceptions?
 
7:37 AM
the return type is long
check that value. Should be >0
hey @Nicktar
 
7:55 AM
@Tavo Thanks, let me check on that.
Just checked it, it is returning a Path
not long
I was wondering if checking the existence of target, the Path that it returns, would confirm its successfully completed?
 
Morn
 
morn
 
@Tavo hey
 
8:19 AM
Hello homies!!
 
@AkashVerma Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
@AkashVerma Hello, fellow Java enthusiast!
 
Can anyone suggest what are hooks & modules in a Job portal website ?
P.S. Referring to monster Job portal.
 
well the modules are the standalone areas on a portal webpage
 
Okay.. and what's the concept of a hook
 
8:22 AM
The hooks, not so sure, but I suppose they're event handlers?
 
any idea
No, as far as I'm briefed, the hooks are places where we can actually hook a module on the page
 
then they must be the spaces themselves
 
Hooks are things that attach things to another thing, and modules are things that are added to other things.
 
sounds like modules and hooks are the same thing by that definition
 
See, clear as mud.
 
8:53 AM
@AkashVerma everything clear now? ;)
if that's the meaning for hook in this context, I have to question their choice of terms
hook is usually for events and message passing between instances
Seems generally a bad idea to name concepts using existing terms with different or even similar meanings
Like if I created a concept in my program called a "folder" which doesn't actually hold anything and isn't like a container in any way
 
9:12 AM
Morning
 
Morning.
 
9:23 AM
Thanks for the suggestions!
I might need to do bit more brainstorming to come to a conclusion
 
9:50 AM
is it possible to annotate a suppress tag in class, but for methods only?
I don't think so at first hand
 
@AkashVerma rather than brainstorm, you should ask the one who gave you this job
I used to make that mistake too.. try to fill in the gaps myself.. sometimes that works.. and sometimes it doesn't
 
a custom tag is useful but cannot inherit from existing annotations =.=
 
@KarelG sure, you can suppress different things based on different scenarios
there's the parameter of @Suppress which makes that distinction
 
I am lazy to suppress all my "unused" methods
there are 8 of them. but they are used!
the class has a constructor and 8 methods. All of those methods are just unused. Annoying
 
10:12 AM
I fucking hate C
 
I fucking love C
 
@Neil Thanks bud! will keep that in mind :)
 
@KarelG Explain this then: stackoverflow.com/questions/53317025/…
I'm almost certain that there's some kind of god in C that decides whether code works or not
 
Guys, I'm getting this error while launching my application (its name is Trex)
Could not bind properties to 'Trex' :
prefix=trex,
ignoreInvalidFields=false,
ignoreUnknownFields=true;
nested exception is org.springframework.boot.context.properties.bind.BindException:
Failed to bind properties under 'trex' to com.monster.trex.properties.Trex
 
Based on karma or something
 
10:15 AM
what is the meaning of error "Could not bind properties to 'Trex' :"
any idea
It's a spring boot application by the way
 
@d0n.key seems deleted. So I figured that the OP got a brainfart ?
(typo or something in printf? ) C never throws seg fault at random
 
11:03 AM
hi guyssss
Did I miss you?
 
you tell me
 
what is the difference between singleton and proxy pattern?
 
well they're completely different patterns
a singleton is about forcing one instance of a given class throughout your program
A proxy is just providing a means of restricting or controlling interface to 3rd party libraries or whatnot
if you use Proxy, you're not necessarily using Singleton
and vice versa
 
I mean the differences between them but at implementation level is the same think
with they load the resource when it is required and they guaranted only one implementation about the resource
 
11:34 AM
@Doflamingo19 no, they're not :P
to use a proxy, you don't need to have a singleton necessarily
it can be one of many instances
if all the methods are stateless, it doesn't mean you should make it a singleton you know
 
12:00 PM
According to the Assembly of Non-Government Organizations (CANGO), 78% of Swaziland women are survivors of gender-based violence. (source)
 
12:19 PM
amen
@KarelG I was the OP, I don't have brainfarts.
I removed it, because my code worked on my fellow students PC, just not on mine - which probably has something to do with either Linux or GCC... Idk, but it's not really solvable here by looking at the code.
 
12:41 PM
How in hell can you maintain a widely used lib and not provide migration guides between versions?
 
@d0n.key idk. I am just stabbing in the dark
 
@Tiffany Okay no problem
Good afternoon
 
yet that error happens frequently at an incorrect use of printf (or scanf)
since you said that it works correctly at your friend's PC then it might be a result from the compiler yes. the gcc needs to operate differently on Windows/Linux
(especially linking, the cc arg can go wrong)
 
12:57 PM
Yoooo what gives?
Finally got the Wifi to work at Brussels Zaventem :D
 
1:29 PM
no free wifi :P
 
1:46 PM
posted on November 15, 2018 by CommitStrip

 
2:08 PM
hello everybody
do you guys agree implementing empty interface is a bad design?
for example
interface i{}
class test implements i{//class is not empty}
 
good morning everyone
@SpringLearner Why would you ever do this?
It's bad design, because implements assumes there is something to implement
 
its a design created by colleague , I said its not justified to use empty interface
I mean there is no reason to do it
but he keeps on arguing , so I thought of discussing over here to know if I am correct or wrong
 
There is literally zero good reason to do it, I agree
What's his justification?
 
he is creating some POJO classes
I mean there are too many pojo classes
if some classes are having similar properties then he implents the empty interface
and after that he uses the interface in parent class
for example
 
he is just hacking his way out of some bad design
 
2:18 PM
Ah.
Yeah that's stupid.
 
    interface I{}
    class test implements I{//class is not empty}
    class test1 implements I{//class is not empty}
    class test2 implements I{//class is not empty}

    public someClass {
    I i;
public String x;
public int age;
    getter and setter of I}
 
That's so ugly
 
As per his view someClass can have test or test1 or test2 objects so for that he created a empty interface
 
hi guys some can say me which are advantages and disadvantages about factory method?
 
@Doflamingo19 advantage: its a design pattern where you are not creating objects, you are simply asking how the object you want
disadvantage: some extra codes
 
2:25 PM
Hi, can some one help how to transfer primary key from parent to grandchild in onetomany mapping using spring boot crud...
 
@SpringLearner how does he know what I is? what if you want to call method X which is only defined in test1 and test2 but not in test. The VM will spew at you
unless he is downcasting. Again that returns to my earlier statement: bad design
 
@KarelG no idea
 
@KarelG That's called the Marker Pattern
You can do this, if for no other reason than to identify it as having some underlying meaning in your program
like how Serializable is used to indicate a class that can be serialized without specifying how
Not saying that's his case, but it could be
 
@Neil eh. Lemme grab a book. Could be that I have read it somewhere because it rings a bell
 
Of course like the Serializable interface, you wouldn't have a list of Serializables unless you'd never need to cast it again
To cast it back or to check it's type is just bad practice, not the Marker Pattern
 
2:37 PM
That Serializable interface is not an interface. But I can follow you now. Even then, is that not an exception?
 
Serializable is an interface, is it not?
*checks*
 
it is, but it really defeats the definition of being an interface.
 
No exceptions either
not necessarily
 
it is like saying that a robot is human because it can act as a human while it is not.
 
Why even bother having a Serializable interface if it has no methods in it?
 
2:39 PM
I was going to use a sexdoll as a example because robots still does not pass turing test
*shakes head*
 
It's meant to give a hint about how to handle the class outside of the class itself
Again, I don't know how he's using it.. could be that it's not the marker pattern at all
 
aha found the cause
book says that it was from the old age of java where annotations did not exist
so they worked around that with a marker interface
(effective java from Bloch)
 
well admittedly annotations would be smarter
 
also another reference: stackoverflow.com/a/1995218
seems kinda logical. But nowadays, using an empty interface? Nein!
 
But they never did away with the Serializable interface
I guess people still use it
 
2:42 PM
backwards compatibility
ok josh came with Item 37 where he justified marker interfaces.
*shrugs and puts book back on the shelves*
 
Can someone one share your views on how to transfer primary key from parent to grandchild in onetomany mapping using spring boot crud...
 
Zoe
Sure. You use @OneToMany to transfer the primary key.
 
@Zoe hi yes i am using mapsid with onetomany bidirectional from parent to grandchild
 
Have you tried turning it off, and then back on again?
 
That doesn't work. You gotta straighten the network cables to ensure faster bandwidth throughput
 
Zoe
2:49 PM
Or just hook the computer directly into the central internet servers
 
But while transfering primary key from parent i am able to successfully received to immediate child... but same primarykey from child to grandchild is returning null
Any suggestion on how it can be transferred to grandchild
 
you mean foreign key, right?
The grandchild doesn't get the foreign key assigned
 
@ballBreaker yes foreign key
 
Well relationships don't work that way
what's the hierarchy?
Parent -> oneToMany -> child -> ?? -> grandchild
 
@ballBreaker parent -> onetoMany-> child -> onetomany -> grandchild
 
2:56 PM
You want a primary key from parent to grandchild
 
First parent to child orderid is transferred as foreign key
 
You can't do what you want
 
hello all
 
@ballBreaker yes parent primary key to be transferred to immediate child...
 
How can i exit an if in java
 
2:56 PM
@objectiveME ????
 
@ballBreaker hahaha hey ball, the events of yesterday were most windy
 
there are two ways
 
But back to the task at hand
 
return and break
at least IIRC you can break
 
how can exit an if statement in saya controler function
 
2:57 PM
then from child to grandchild it uses embedded key where one value of key is derived as foreign key from parent
 
break wont work if there is not a for
show something using return
 
replace the if with a case
You can break out of case statements
 
oh yeah
good idea
your answer today is not windy
you windy you
 
Not exactly sure why you would want to break out of an if anyways though, but there ya go!
 
its end of day here, i can barely remember my name
 
2:59 PM
fuck I found the best damn album this morning
I have a feeling today is going to be a great day
I've been loving every song so far
 
name the album red paw or forever hold your piece
 
Zoe
@objectiveME Crabs don't have paws
they have claws
 
@user3212324 I'm curious in what design you would even want the primary key inside of C
Stop spamming the chat, dude
 
@zoe ooooh yeah, in my defense i am tired and my name escapes me
 
3:02 PM
You can reference both A, B, and C through the relationship without needing the primary key of A in C
 
Zoe
@Michael cleanup pl0x
 
@Zoe They're called pincers
 
Zoe
@JennaSloan Close enough xd
 
Meh
 
Zoe
A claw is a curved, pointed appendage, found at the end of a toe or finger in most amniotes (mammals, reptiles, birds). Some invertebrates such as beetles and spiders have somewhat similar fine hooked structures at the end of the leg or tarsus for gripping a surface as the creature walks. Crabs', lobsters' and scorpions' pincers, or more formally, their chelae, are sometimes called claws. A true claw is made of hard protein called keratin. Claws are used to catch and hold prey in carnivorous mammals such as cats and dogs, but may also be used for such purposes as digging, climbing trees, self-defense...
 
3:03 PM
Crabs have claws/pincers
 
Zoe
> Some invertebrates such as beetles and spiders have somewhat similar fine hooked structures at the end of the leg or tarsus for gripping a surface as the creature walks. Crabs', lobsters' and scorpions' pincers, or more formally, their chelae, are sometimes called claws.
 
same diff
 
Interesting album indeed
 
A pincer is the part of an arthropod that enables it to carry loads, to defend against other creatures, or to attack prey. In insects, the pincers are usually part of the creature's mandible, and often venom or acid can be injected through the pincer into an enemy during a pincer strike. Some arthropods such as crabs, lobsters, and scorpions possess pincers in the form of chelae at the ends of their front limbs (pedipalps), to assist in feeding, defence or even courtship. == See also == Chela (organ) Claw (disambiguation) Krukenberg procedure Pedipalp == References... ==
 
Same diff
 
Zoe
3:04 PM
waffles
 
@objectiveME I'm gunna ear'splode all over this office
 
@ballBreaker how to achieve this
 
Zoe
-1, needs more nightcore
 
Technically they're "chelae"
 
@user3212324 I don't mean to be rude, but is this your first time using a database?
 
3:05 PM
@ballBreaker Your exquisite taste for music interests me
 
Zoe
@JennaSloan Technically they're molecules
 
What you need is
 
I still prefer my home boys youtube.com/watch?v=M2mqusovP_A
 
A -> primaryKey to B -> primaryKey to C
 
Zoe
@Zoe technically they're a collection of atoms
 
3:06 PM
Where A has a foreign key in B and B has a foreign key in C
 
Zoe
@Zoe technically they're a collection of protons, neutrons, and electrons
 
@Zoe technically they're quarks
 
Zoe
dammit, you sniped me xd
 
A               B                    C
primary      primary          primary
data           foreign of A     foreign of B
data           data                data
 
Zoe
RIP monospace formatting. Press F to show respects
 
3:07 PM
@ballBreaker this is how it is designed.. but all 3 tables have order id in common so thought of deriving it from parent
 
I'm not sure what orderid is
 
@ballBreaker sorry its the pkey field name of parent
 
Also not sure how it would be common in a oneToMany -> onetoMany relationship
I'm saying you don't need to do that
Select A.orderid
inner join B b.orderid = a.orderid
inner join C c.primaryofB = b.primaryofB
You can always know the parent and grandparent of C by just going up the chain of keys
and vice versa
:44576765
 
Zoe
oof
 
@ballBreaker fine this is how it is designed. I am getting null while transferring primarykey of b to c
 
3:11 PM
                         FffFFFFF
                         F
                         fFffF
                         F
                         F
@Zoe
 
Zoe
F?
oh
xd
waffles
OOOH that reminds me I gotta go bug geis x3
 
I'll join
 
on reddit, F is used to pay respects
so thank you for respecting me
 
@user3212324 where's your question, I'll look through it quickly and see if I can figur eout why
don't have much more time to spend with this though
 
Zoe
@KarelG Some Discord bots use it too
 
3:15 PM
 
0
Q: How to transfer embedded pKey from Grand parent to Grand child spring boot onetoMany mapping using CRUD

user3212324I have 3 model classes (namely A, B & C). A is the parent having onetoMany bidirectional relationship with B. B is parent to C and having onetoMany bidirectional. B & C having embedded pKey. From A --> one primary key is being set to B. From B --> 2 pKeys is being set to C. Inside service I am...

 
@Zoe By your command.
xD
 
tankya Michael
 
you can make her RO if she wants to volunteer for it
 
Zoe
@Michael Thx
 
3:18 PM
@user3212324 Never used @Embeddable before, sorry
Can't really help you with this
You have an entire class defining a primary key, which IDK man, seems overly complicated
 
@ballBreaker fine... sorry all to spam it and waste your time... i ll try to achieve with the inputs shared above
 
Nah don't worry. Hope someone answers the quesstion. I'll give it an updoot to hopefully get you more traction
But I would delete your comments from the question
It just sounds like begging
 
@ballBreaker thanks
 
3:43 PM
people are getting weird, someone from jiahging chine tried to hack my apple account. dafuq, chinese uprise!
 
Zoe
oof
 
@Sir.Hedgehog I'm pretty sure everybody was already weird.
 
@Sir.Hedgehog By "hack", I assume you mean "tried to guess my password".
 
@Sir.Hedgehog That's what you get for having an apple account
 
3:58 PM
I have accounts on like 50 different website, and I'm pretty sure none of them ever got hacked.
 
50 different passwords, perhaps?
 
I have many accounts from multiple sites as well. None got hacked AFAIK. Yet one of my mail addresses got leaked from two databases leaks.
@ballBreaker that is a must.
 
Yeah
my email address is leaked as well
 
if you forgot your password, there is a recovery tool for that.
 
Zoe
One of mine got leaked
 
4:00 PM
and the password associated with it, with one particular website. Not sure which
I got an email from a scammer with my email and one of my old passwords I used for everything
 
for the rest, keep it unique. However I use passentences. I hate websites that asks for a upper case character, a numeric character and a fucking symbol
 
"If you don't wire transfer me $800 in bitcoin, I will send your search history to all of the contacts in your email"
Was the funniest fucking spam email I've ever gotten
 
Zoe
I got a similar one
 
Me too
 
Well, nobody is going to successfully hack into Pseudohuman's account any time soon!
 
4:01 PM
me too. I replied with "go ahead".
 
Zoe
I have this one email I haven't used in forever that got the password leaked for some game
 
hahahahah that's awesome, did you all laugh as well? It was such an outrageous email
 
I know that by replying, it gives them a confirmation that the email address is active but like I care
 
Zoe
I'm a programmer who cracked your email account and device about half year ago. You entered a password on one of the insecure site you visited, and I catched it.
 
It was jarring to see my old password. I still used that password for a couple sites. I changed it right away.
 
Zoe
4:02 PM
Contained the email with a password that didn't match XD
 
(there are forums on dark webs that keeps a record of active mailboxes to send spam mails)
 
@Michael Yeah I was already in the process of changing all of mine as well haha it was jarring but also hilarioous
 
Zoe
They set the from header to the email they sent it to, lmao . IP's didn't match though
 
Just that the guy thought I'd care about my search history gettign out there
 
Zoe
@ballBreaker Meh, any kind of legitimate scammer would include proof
 
4:03 PM
Yeah xD
 
@Zoe Yeah lol, but anyone with any IT knowledge would know that if that password wasn't for the email itelf, how on earth would they obtain your contact list
 
My email said, "If you want proof, I will send it to you, but I will also send it to 10 of your Facebook friends."
 
So even if they had the history, who are they going to send it to
bahahaha
 
Too bad I don't use Facebook. xD
 
Zoe
@ballBreaker even if they get the email, how on earth would they RAT the device? XD
 
4:04 PM
Pseudohuman's password is a randomly generated alphanumeric password
 
nah, it is just password1
 
Zoe
Also, the email said they'd "know when it was opened"
 
@JennaSloan how long is it? lol
 
Zoe
But there's no actual tracker in the HTML
 
1 char
 
Zoe
4:05 PM
@ballBreaker 10^(10^100) chars
 
lol
 
@ballBreaker more than 20 characters and less than 50 characters
 
32?
 
I hate when websites are like "please enter a pssword between 5 and 10 characters for best security"
 
@Zoe you can put a tracker in the smtp headers. Mailgun works by this way
 
4:06 PM
and doesn't allow more than 10..
 
"Please enter more than 5, because you want it to be secure, but well - only got money for 10 atm"
 
@JennaSloan Ahh well that should be fine then
 
Zoe
@KarelG oh
Oh well
 
I switched from passwords to passphrases
 
my company keeps a record of people receiving mails + opening + clicks ;)
 
4:06 PM
my passphrase always contains a template that I know so it's easily remembered
but changes for each website
 
Zoe
@ballBreaker same. Makes 'em easier to remember too
 
"IBreakBallsAndStackoverflow.com", "IBreakBallsAndFacebook.com"
 
lol
It would be more like
 
***********
 
IBreakBallsAndChatWithIdiots!13
 
4:07 PM
Omg SO chat censors passwords. Try it!!!! joking xD
 
IBreakBallsAndChatWithHighschoolFriends!13
 
Yeah but then you forget the passwords
 
Nah, I just look at your user name and then remember it's that I chat with idiots
 
Zoe
@Michael Omg, let me try!! 1234IHateMakingPasswords4321
YOU LIED!!!!!111111oneoneone
 
omg michael you scammed me
 
4:08 PM
My university system recently changed the password requirements to 12-15 characters, upper and lowercase letters, numbers, and a special character
 
Zoe
Wait, you actually posted it? O_O
 
lmao Jenna
 
ur mom's a special character
 
Zoe
no u
 
I can see why that random user thought you were a bot
 
4:09 PM
@JennaSloan meh
 
Sometimes you'll just talk to yourself
or interject with random statements
 
@d0n.key pwned
 
Zoe
'@d0n.key btw, it's visible to mods and room owners. Also, bots might've picked it up (both actual bots like @OakBot, but also lurking, accountless bots that just try scraping data). You should change it
 
@Zoe Type /help to see all my commands.
 
Zoe
@OakBot shut up xd
o-o
 
4:11 PM
I'm going to rent out my old university subscription to GPU super computer and write CUDA code to steal all your passwords !1
 
Zoe
@ballBreaker OH NO! IS U GUNNA DDOS MY ACC?!
 
No I'm going to use a password dictionary ran across over a thousand GPU's each with thousands of cores to hack you and your family!
Also my dad owns microsoft!
I'll get you banned from xbox live!11
 
Zoe
@ballBreaker Well... MY dad owns Google!!
I'll get you banned from google!11oneone
 
My dad owns internet
and my mom is actually mother earth
so , take that
 
Zoe
My dad owns the multiverse
 
4:13 PM
she'll kill you irl!
 
Zoe
so , take that
 
that reminds me to a dude that entered the irc that I have maintained for students in my degree. Since he did not got help (1st grade wanted a full solution on a programming task) he yelled that he would ddos the channel
 
multiverse is a theory, mother earth isn't
I win u lose
 
Zoe
@ballBreaker Sure, keep believing that
 
@KarelG lmao
 
Zoe
4:14 PM
@ballBreaker Please hold while I erase you from existence...
:p
 
I would have told him to do it and then just get him kicked out of the school
 
well that is what I thought. But he really DDoS'ed it
I was under impression.
eventually routed him to a honeypot server stuffed with "funny" viruses that got written by some of us.
 
what a script kiddy
a soyboy beta cuck
 
our representative had to go to the dean because he put in a complaint that the irc channel infested his pc
 
did you fight him irl
 
4:17 PM
oh boy, we have records of everything.
 
did your dad beat up his dad??
 
physical violence is never a solution
 
Zoe
^
 
eventually he got suspended.
but we have to cleanup our honeypot
we "did" that.
:P
 
I disagree adamantly with that statement
One of my ex's tried to convince me it was never the solution
Well guess who won that argument
 
Zoe
4:20 PM
uh
 
tsss
 
Little dark humour for ya
 
00:00 - 17:0017:00 - 00:00

« first day (2945 days earlier)      last day (1996 days later) »