« first day (2277 days earlier)      last day (2658 days later) » 

3:42 AM
@JonahSloan you are right.
I need more
 
 
3 hours later…
6:26 AM
I need more disk space; 7TB is not enough.
 
@JonahSloan That's a shame. I have 6TB and it is enough for me.
 
And faster disk transfer rate too.
 
I have drastically reduce the no of games I used to own :)
Shame is that out of the 6TB, all are HDD.
I need SSDs
 
All of mine are SSDs
(Except for the "hybrid" one and the external one)
I have more drives than I do power cables.
My computer also has a 3.5" floppy drive
 
The problem is SSDs are extremely expensive in Leaf Village. I will have to revolt against the Hokage.
Floppy Drive.. exhales..
 
6:40 AM
Floppy drives make creepy noises.
 
I want to know why paytm qrcodes cannot be scaned by other apps?
 
@SagarPatil What's paytm?
 
Its an online transfer multipurrpose applicion
 
@SagarPatil Maybe they want the online transactions to be secure
 
@SagarPatil Maybe they're developed by scrubs who can't generate proper QR codes.
 
6:49 AM
Lol. They are signed by PayTM. that's why.
similar with Whatsapp Web QR codes.
 
@SagarPatil I can scan them just fine, they just contain text that is interpreted by PayTM
 
@JonahSloan which app are you using to scan?
 
Morn o/
 
@SagarPatil it's called "Quick Scan"
 
6:53 AM
@JonahSloan ok thanks
 
Now if you excuse me, I have an appointment with my bed.
 
gn :)
 
bye :D @JonahSloan
 
7:11 AM
!!Anybody here?
 
@geisterfurz007 That didn't make much sense. Use the !!/help command to learn more.
 
!!/help
 
@geisterfurz007 Information on interacting with me can be found at this page
 
@geisterfurz007 you
 
Indeed, but not really active :) Good morning @Unihedron :)
Still sick or better already?
 
7:14 AM
@Hemlata Do you have a github account? If not, create one.
 
@geisterfurz007 dunno
playing a bit of online chess for meditation, failing horribly
 
I would be loosing in chess against children from primary school :D
 
didn't really ask but ok
 
Still grumpy?
 
morning @geisterfurz007
 
user6857832
7:31 AM
@ItachiUchiha No I don't have
 
> If not, create one
 
user6857832
Aww I missed my school, I fell asleep in the morning lol
 
@ItachiUchiha hey o/
:D
 
user6857832
@ItachiUchiha ok
 
7:32 AM
@ColdFire \o
 
user6857832
Will ya help me to do my code right?
 
user6857832
@ItachiUchiha
 
@ItachiUchiha Got my program fixxed from Friday. Only missing 4 buttons somehow :/
 
user6857832
Will ya? @ItachiUchiha
 
@Hemlata Stopping tagging me :)
@geisterfurz007 Which one?
 
user6857832
7:34 AM
Um ok
 
All the tags is disrupting the music
 
:D
 
@Hemlata yes I will once you are done with creating a github account and pushing your code in their
 
An application I am implementing for my company... Broke it while breaking down the frame constructor to panel constructors... But it seems to be working now except the missing buttons
 
@geisterfurz007 I only remember bits of what you are saying. But, it is great that you managed to get it running again!
 
user6857832
7:36 AM
Ok I will. I jus woke up, so I will come back in an hour. Later.
 
Later!
@inaz Welcome!
 
@geisterfurz007 nice
 
@ItachiUchiha I turned off SO chat notifications because of it ^^"
 
Hi All
 
7:38 AM
music > responding to random people in chat for me
 
Good Afternoon
 
Cheers @Binay
 
@Unihedron I am ok with the pings once in a while. Frequent pings just gets into the nerves "_"
 
CF, you there?
 
yes
 
7:39 AM
@Binay Hi
 
Two activities or One activity and two fragments
 
Anyone have knowledge in DHTMLX ?
 
@Binay it's 2017 are you kidding
 
no one writes HTML anymore, use React :)
 
@Binay Java != javascript
3
 
7:41 AM
@rupinderjeet both will suffice
 
@geisterfurz007 since when is DHTML compatible with JS?
 
haha no @Unihedron no kidding just asking I am facing some problem in that ?
 
The DHTMLX suite (or dhtmlxSuite) is a JavaScript GUI widget library for building dynamic web applications with desktop-like user experience and Ajax data loading. The library is released under both open-source GNU General Public License and commercial licenses, and is developed by Dinamenta, UAB, headquartered in Vilnius, Lithuania. The modular architecture of the library allows using the components separately or combining them into one JavaScript file. The first components, dhtmlxTree and dhtmlxGrid, were released in 2005-2006. Later, DHTMLX was extended with other user interface components to...
@Unihedron ^
 
ohhh it's a new thing
wait who am I kidding, it's not new, I've just never seen it
 
I have never heard of it either..
 
7:46 AM
@ItachiUchiha cheers for living in 2017
 
@Unihedron 🍻
 
morn
 
morn @Nicktar :)
 
Hey guys.
 
7:58 AM
Hey
 
@ItachiUchiha cheers for squares
 
Quick Q. What is more logical, for Validator to throw Exception or for the code that called Validator to do that? Thanks.
 
@Eugene Are you from Russia?
I know someone named "Eugene" and his ancestors were from Russia :)
 
Small picture lmao
 
8:14 AM
morn
 
8:25 AM
morn
 
Morn @Tavo :)
 
8:38 AM
@ItachiUchiha I assume, that I'm not the only Eugene on the planet :)
Any response to the question or no thoughts on that matter?
 
what validator is in question? because the answer is "it depends"
otherwise "insufficient information to answer"
 
Could you elaborate on what do you mean by "what validator"? Does it matter? How does it matter?
 
yes
 
Uni, does the Mincraft UI run on Java?
 
@ItachiUchiha probably, I don't know.
 
8:42 AM
ok
 
Oh look, there's an announcer badge
 
@Unihedron how is it relevant? Validator at hand receives some data into static method of a final class and based on the method logic responds whether it is valid or not.
 
@Eugene what if the function returns a boolean but there is some unexpected circumstance that returning false doesn't convey, such as incomplete markers?
if nothing can go wrong and the method is a perfect pure method then naturally the exception should be on the end code's side and not in the validator
 
Okay. Yep. Purest of the pure :) Just having an argument at work, where Exception throw should be located.
 
no exceptions needed then
it should go where it belongs, in the trash can
the end code's problem is the end code's problem.
 
user6857832
8:50 AM
That means I can't ping itachi anymore :(
 
You can.
 
@Hemlata do it by yourself
 
Once in some time should be OK
 
But @ItachiUchiha
 
after learning the java basics
 
8:51 AM
not @ItachiUchiha
like this @ItachiUchiha
:>
 
user6857832
Lmao
 
@geisterfurz007 stfu
 
lol @geisterfurz007
 
@Unihedron Finally got my answer :D Yeah you are still grumpy :)
 
user6857832
8:51 AM
@geisterfurz007 Keep doin' that lol
 
@Hemlata I will definitely not! He helped me a lot and I would like to keep it that way :P
 
user6857832
@geisterfurz007 Ah, ok.
 
Sounds like the Friday-mood didn't end on friday...
 
user6857832
Haha
 
hehe nick
 
user6857832
 
user6857832
itachi
 
HemHershey
xD
:)
 
user6857832
Lol I couldn't come up with anythin else :D
 
!!hershey
 
user6857832
Aww lol
 
:)
 
lmao hans
 
hehe
 
9:13 AM
@Hemlata can you give me access to your repo?
 
user6857832
@ItachiUchiha How?
 
sup homies
 
stfu
 
user6857832
Who?
 
the one above
 
9:15 AM
lol then you deserve to get report
 
user6857832
How I can give access to my repo?
 
user6857832
Idk
 
use the settings
 
user6857832
Is he talkin bout github?
 
9:16 AM
@Unihedron :)
 
user6857832
@ItachiUchiha What's your user name?
 
@Hemlata ItachiUchiha
 
@Unihedron I see the pun there ;)
 
@ItachiUchiha omg am I following the wrong person on github
nvm I'm not following you at all
explains why the address search gave me the wrong thing
 
user6857832
Did.
 
9:26 AM
Student and Book reference in Library class, why?
 
user6857832
I couldn't come up with anythin else.
 
user6857832
Oh, you're talkin bout the Library class?
 
user6857832
9:49 AM
Itachi?
 
You may still ping him, but not as frequent as before ;)
 
@Hemlata yes, it has four fields.
private Book book;
List<Book> bookList = new ArrayList<>();
HashMap<Student, List<Book>> list = new HashMap<>();
private Student student;
book and student <-- Why do you have them?
@Hemlata
 
@ItachiUchiha not that I know what you are talking about. But as a student, I liked books better than online references :P
 
@Tavo I still like books :)
 
books! \o/
 
9:57 AM
I prefer physical book over Kindle/ebook/anything similar
 
\o/ I am more into novels though...
 
yup. Particularly for referential purposes. If it's a novel, I don't mind so much
but with technical books, a kindle doesn't work for me
 
yeah novels
 
anyway, planning meeting now
6 1/2 days left!
(._.) ƪ(‘-’ ƪ)(ʃ ‘-’)ʃ (/._.)/
 
thats good@ItachiUchiha
its proven that if you read from screen things wont be memorized as good as if you read from a real book
too bad i rarely read any books nowadays :(
 
10:01 AM
I usually read books only once. If I try to remeber the content, it is really hard, but if I start reading it again, I put it away because I know the story again :/ Thats a pitty for some books really!
 
user6857832
@ItachiUchiha I jus added em cuz I though I may need em.
 
morning
 
i heard the brutto-income in greece is aroudn 1,1k euro
 
user6857832
@Hans1984 It's opposite for me.
 
I got a class with a main method that should start another main method in a new JVM. I use ProcessBuilder for this. but how can I pass the args from the calling main method as args argument for the called main method?
 
10:10 AM
@Hemlata There should be reason for every field and method that you create in a class.
 
user6857832
I can remember more if I'm reading online, but I can't remember anythin if I read it from a book lol
 
user6857832
@ItachiUchiha Oh wait, I'm using those.
 
user6857832
public Book issueBook(Book book) {
this.book = book;
if (exists(book) && !book.borrowed) {
book.borrowed = true;
return book;
}

return null;

}
 
user6857832
and for student field I was tryin to access the studentName, so I created it.
 
user6857832
@geisterfurz007 Nah, not really lol
 
10:14 AM
@Hemlata Do you really need them?
What would happen if you remove them?
 
user6857832
Then I won't be able to access borrowed field
 
user6857832
Cuz I wanna see if it's true or not (Boolean value)
 
user6857832
public void addInfo() {

list.put(new Student(student.getStudentName()), list.get(book.getBook()));
}
 
user6857832
Here I'm using the student field
 
10:31 AM
Book and student reference should be passed to the appropriate methods
for e.g.
public Book issueBook(Book book) {
	if (exists(book) && !book.borrowed) {
		book.borrowed = true;
		return book;
	}
	return null;
}
 
user6857832
Cuz I'm already using Book book in the parenthesis, so I don't need a field?
 
10:47 AM
i dont get it
 
user6857832
@ItachiUchiha What you've did right here, I have also did the same.
 
Yes, I removed this.book = book
 
user6857832
So that means I don't need the book field now?
 
That is what I was asking you as to why did you introduce it in the first place?
 
user6857832
public void addInfo() {

list.put(new Student(student.getStudentName()), list.get(book.getBook()));
}
 
user6857832
10:52 AM
To use here
 
user6857832
Cuz I want to access fields
 
What is the purpose of addInfo()?
 
user6857832
So I can put info in HashMap<Student, List<Book>> list = new HashMap<>();
 
Are they both called list?
 
user6857832
What?
 
user6857832
10:55 AM
What Both?
 
You have list.put() which takes two arguments according to your post above. You have as well list.get();. Do you add an element to the list with an element of the list. I have no experience of HashMaps anything else, but this seems odd to me
 
@Hemlata So, the method is used to add Student and the books they own into the HashMap?
 
user6857832
Yes
 
user6857832
@geisterfurz007 Yea, I'm adding element to the student and I already have List<Book>, so I'm jus retrieving from it.
 
I think this method is not required and what you are trying to do should be done inside issueBook()
Where the definition of issueBook() should be issueBook(Student student, Book book) { }
 
user6857832
11:00 AM
I'm jus tryin to issue the book if it exists and is not borrowed by anyone else
 
How can the Library issue a book without a Student asking to borrow one?
 
user6857832
Yea I will change it to issueBook(Student student, Book book) { }
 
public Book issueBook(Student student, Book book) {
     if (book.isIssued()) {
          throw new Exception("Cannot issue a book which is issued by someother student");
     } else {
          book.setIssued(true);
          List<Book> booksByStudent = map.get(Student);
          booksByStudent.add(book);
          map.put(student, booksByStudent);
    }
}
 
@ItachiUchiha Have you delt with hiding components before... I think something brought mine to life and now they are hiding somewhere... Found 4 buttons now, but a ComboBox is still clowning around...
 
@geisterfurz007 There are different reasons for hiding components :)
One of the most common is that you haven't added them to the parent ;)
 
11:05 AM
Wait.... No I found it... it is added O.o
 
Or the component has setVisible(false)
 
It does not :D I had the same stuff before already with some others :D
 
@Hemlata that method won't compile but its there to give you an idea
 
user6857832
Then I have to create setIssued() and booksByStudent, right?
 
user6857832
Yea
 
11:07 AM
Instead of calling setIssued(), you can just call borrowed()
I used the name because I thought a setter() with the same name exists.
booksByStudent is created here List<Book> booksByStudent = map.get(Student);
 
I deleted stuff and now the darn comboBox cannot hide anymore >:) I got the last one (probably)
 
> cannot hide anymore
Or doesn't show anymore?
 
It shows now :D
I found that I was creating three distinct Panels, of which I only used one. No idea why it was hiding though, but now I deleted the two redundant onesand it appears :3
 
user6857832
public Book issueBook(Student student, Book book) {
if (book.borrowed) {
try {
throw new Exception ("Cannot issue a book which is issued");
} catch (Exception e) {

e.printStackTrace();
}
} else {
book.borrowed(true);
List<Book> bookByStudent = list.get(student);
bookByStudent.add(book);
list.put(student, bookByStudent);
}
return book;
}
 
user6857832
Like this?
 
11:12 AM
yup
 
user6857832
:D
 
I hope you understand what the code does in there :)
 
user6857832
Yea, first it checks if it is borrowed and if it is then it'll throw an exception, cuz ya can't borrow a book which is already issued by someone else
 
There can be an exception while throwing an exception? Java you are stunning everytime...
 
user6857832
and if it is not borrowed, then it'll first set the book borrowed to true, and
 
user6857832
11:15 AM
List<Book> bookByStudent = list.get(student);
bookByStudent.add(book);
list.put(student, bookByStudent);
 
user6857832
I didn't got these three lines.
 
Get the lists of books, the student has borrowed.
Add the new one
Place it back in the main list
 
^^ That
 
Woohooo I got something right and Itachi proved it *-*
 
> list is the worst name for a Map<>
 
11:16 AM
I can die in harmony now :>
 
user6857832
Are we talkin bout this list HashMap<Student, List<Book>> list = new HashMap<>()?
 
indeed
 
@geisterfurz007 yes why not
 
I thought that if an excepion is thrown there should be no more exceptions around it... Can that exception that gets thrown there throw itself?
 
11:21 AM
if you catch an exception you can throw any other kind of exception
 
user6857832
List<Book> bookByStudent = list.get(student);
Why list.get(student) is assigned to it? Shouldn't it be list = list.get(student)?
 
Nope! With get you get the counterpart of the student and per declaration this is a List<Book>
 
try{
//do sth
}catch(IllegalArgumentException e){
throw new NullPointerException();}
 
user6857832
I didn't get
 
user6857832
@geisterfurz007
 
11:24 AM
@Hemlata You have a Map HashedMap<Student, List<Book>>. So for every student, there is a list of books right?
 
user6857832
Yea.
 
And what do you need to add a book to the list of a student?
Only the List<Book> right?
 
user6857832
Yes
 
So you are searching for a Student and get the counterpart of the declared Map back -> List<Book>
Can you say something like: HashedMap<Student, List<Book>> = new List<Book>();
?
 
user6857832
Um, Well yea..
 
user6857832
11:27 AM
@geisterfurz007 I was responding to this one.
 
@Hemlata My bad
 
user6857832
But I haven't added anything to list yet.
 
user6857832
public void addInfo() {

list.put(new Student(student.getStudentName()), list.get(book.getBook()));
}
 
What is this?! I thought you were using the other thing now >.<
 
user6857832
11:29 AM
I did this but itachi said that I no need to use book field, so this method won't gonna work
 
@Hemlata rename list to map
 
user6857832
Ok
 
2. when you have List<Book> booksIssuedByStudent = list.get(student); and booksIssuedByStudent is null, then you create a new List before adding the book into it
List<Book> booksIssuedByStudent = map.get(student);
if(booksIssuedByStudent  == null) {
    booksIssuedByStudent  = new ArrayList<Book>();
}
booksIssuedByStudent.add(book);
map.put(student, booksIssuedByStudent);
 
user6857832
I know we're putting values here: map.put(student, bookByStudent); but when we don't have anythin in it, then how we're gettin map.get(student); here?
 
@Hemlata In case there is nothing in the map, it would return null
and then the flow would just work
 
user6857832
11:33 AM
Um yea
 
I am leaving very early today o/ Bye and have a nice rest of the day :)
 
user6857832
public Book issueBook(Student student, Book book) {
if (book.borrowed) {
try {
throw new Exception("Cannot issue a book which is issued");
} catch (Exception e) {

e.printStackTrace();
}
} else {
book.borrowed(true);
List<Book> booksIssuedByStudent = map.get(student);
if (booksIssuedByStudent == null) {
booksIssuedByStudent = new ArrayList<Book>();
}
booksIssuedByStudent.add(book);
map.put(student, booksIssuedByStudent);
}
return book;
}
 
user6857832
Like this?
 
user6857832
@geisterfurz007 Cya :)
 
user6857832
Well it's so complicated lol
 
11:36 AM
why are you catching the exception?
 
user6857832
cuz it says either I should throw an exception or catch
 
Just throw it
 
user6857832
ok
 
user6857832
What else I should change in my code?
 
11:44 AM
@Hemlata you tell me ;)
 
user6857832
Haha
 
user6857832
My code is still not workin lol
 
hello
 
Why does issueBook and returnBook return an instance of BooK?
 
user6857832
Cuz it says that I should return a book
 
11:48 AM
what says?
 
user6857832
Cuz it is named public Book returnBook() {...} So says "This method must return a result of type Book"
 
but you named it that way, didn't you?
 
user6857832
Yea
 
The question you should ask yourself is that if the method should have a return type. If yes, why?
 
user6857832
So I should name it void?
 
user6857832
11:52 AM
cuz i don't want to return anythin
 
ask yourself ;)
 
user6857832
Um, I should change it to void lol
 
user6857832
Did :)
 
user6857832
Ah, how do I make my code work?
 
Did you push the latest changes?
 
user6857832
12:06 PM
Yes
 
What is public boolean exists(Book book) for?
 
user6857832
It's to check If I student wants to issue a book then if it exists in the book list or not
 
user6857832
Like if ya wanna issue a book then it should be available in the library
 
user6857832
and if not then it'll return false.
 
shouldn't you check if the book.borrowed is false?
 
user6857832
12:16 PM
Where?
 
in the exists()
 
user6857832
Um, that's if book is borrowed by someone, but I want to check if that book even exist in the library or book list.
 
OK, you should add some comments on each method
as to what each method does
 
user6857832
Ok, I will.
 
Does the program work for you?
 
user6857832
12:19 PM
Nope.
 
12:48 PM
Now you can pull latest changes in your local
and it should work
 
user6857832
for (Map.Entry<Student, List<Book>> entry : map.entrySet()) {
Student key = entry.getKey();
List<Book> value = entry.getValue();
System.out.println("Key: " + key + " value: " + value);
 
user6857832
Isn't it how we iterate through a hashMap?
 
user6857832
I want it to print the map as well
 
user6857832
HashMap<Student, List<Book>> map = new HashMap<>();
 
yes, that's how you iterate through all the entries in the map
 
user6857832
12:53 PM
This one, so I can know what elements are inside it.
 
user6857832
But It doesn't print anythin
 
user6857832
Key: hem.Student@15db9742 value: [hem.Book@6d06d69c]
 
user6857832
That's what it is printing
 
Yes, that's because Student and Book are Objects
you need to print key.getName() and value.getName()
 
user6857832
In here: System.out.println("Key: " + key + " value: " + value);?
 
user6857832
12:59 PM
Like: System.out.println("Key: " + key.getName() + " value: " + value.getName())?
 

« first day (2277 days earlier)      last day (2658 days later) »