« first day (1772 days earlier)      last day (3168 days later) » 

5:23 AM
1
Q: How to write constructor in derived inner class?

overexchangeBelow is the base class relevant code DblyLinkList, complete code for DblyLinkList class here, package JavaCollections.list; public class DblyLinkList<T> implements Iterable<T>{ protected DListNode<T> sentinel; protected int size; class DListNode<T> { private T item; pr...

 
 
3 hours later…
7:57 AM
Morning!
 
 
1 hour later…
9:22 AM
Any backend developers who know solr ?
 
hi friends
can any one tell me format of this datetime 2015-08-11T14:51:01.484+01:00
 
You can find out in page
 
 
2 hours later…
11:37 AM
@Vogel612 Actually, a password manager is a valid use-case for not hashing passwords.
 
 
1 hour later…
12:50 PM
ohhh
no one is here
Hi Micheal
 
Morning, Java!
Hi @Marzy
 
is it ok to ask a question here?
 
ya
go ahead
 
I have a very stupid problem with classpath setting, my code was just fine upto last week which uni updated all of our machines and installed updated antivirus , i havent changed any setting but my code has problem accessing its own classes
, I tried many things for troubleshooting anything that might have caused it . no clue! have you ever experinced something like this, it says the resource does not exist! or even If I change some codes , when I want to save them in the same package it asks me to save them as a new file as they do not exist anymore!
I moved my workspace around!, updated all the buildpath information , checked classpath
I am using eclipse Mars
 
Did you try refreshing the project?
 
12:55 PM
Refresh clean maven clean
move
refactor
clean install!!!!!
 
Do this: Right-click on the project folder, and select "Refresh".
 
I do that after every single change I make!
 
Then, do a clean build in Eclipse
 
It does not do anything
Tried that too,
 
What is Marzy's error?
 
12:57 PM
resource does not exist , I closed the eclipse, I try to open it and get more details
 
It sounds like it can't find the project files.
 
and some other weird thing is that whenever I repoen my eclipse I have to choose my work space while I have a default workspace!
yes, but I open them, I can modify them
 
You can modify the project files in Eclipse?
 
yes ... but not for all the files, especially in my resource folder when I saved db properties I had to re-save them again
 
What is the path to your resource folder?
 
1:00 PM
it said the resource dose not exist and sometimes gives me error that its out-off sync
src/main/resources
src/main/java
src/main/webapp
src folder is already a source folder
all included
I dont think they changed any access policy in the university
but all started after the updates, and the error does not make any sense
 
Well, whenever you run a Maven command from the command-line, Eclipse is going to be out of sync with whatever files are actually on the file system.
 
I do all of my maven tasks in eclipse itself
 
@Marzy What happens when you try to start a new project?
 
new project are fine
that was the last option
 
I don't like using the Maven Eclipse plugin. I prefer using the command line.
Always feels buggy
 
1:04 PM
I created a new one for one of my projects with a totally new workspace it works, ... the only problem is that now my program works randomly, out of 10 runs sometime it says the db module is missing
 
@Marzy Copy project files into another directory, start a new project from the new directory.
 
I am not a pro user, I though its enough
@MadaraUchiha thanks I did that
still its not behaving as it used to
 
@Marzy How are you running it?
 
I have a run configuration file,
Maven2LaunchConfigurationType
I havent changed anything is the launch file , WORKING_DIRECTORY , ... everything is as it used to be
 
You said Uni ran updates on your computer?
 
1:10 PM
yes latest windows update
10 days ago or so
 
First off, find him and kill him.
 
:)
 
Secondly, that shouldn't make a difference.
 
true
I have all the access I need
They also updated the antivirus
which I disabled it somehow!
I dont know when they figure that out!
 
So, you've been without antivirus until now.
 
1:12 PM
not totally disabled
unchecked a few extra options
 
Not totally?
 
No, the policy is we are not admin in our own office computers
 
@Marzy Programming on an environment which isn't yours sucks.
 
And Uni was able to make changes to your system, eventhough only admins can do that.
 
I disable that for a few days , it didn't change the situation
the policy is that students should not have admin rights
 
1:17 PM
@Marzy Sounds like a great learning environment
 
:D
Great ... spend a week on a problem which should not be there
 
I punch our IT folks when they try touching my machine
 
@Marzy Soooo how was Uni able to do things that only admins can do?
 
they are admin
 
No crappy antiviruses, no bloatware or crapware.
Just me and my linux.
 
1:19 PM
I think at leat four admin profiles are set on my machine
 
Wait, who is "they"?
 
I have root access, and no one else does.
 
Oh "uni" as in "university" xD
 
ITS people
university
 
I thought you meant @Unihedron. xD
 
1:19 PM
@Michael lol
 
@Michael no I didnt
 
I thought he remoted into your computer or something.
 
wow
 
I suppose it's possible that the antivirus is blocking something.
 
i am stuck for week now, because I had to integrate my code with another project in Jason which cant find my libraries no matter what, I am not sure that its due to new situation or there is something I am missing
I tried to disable it for just testing if it works, it didn't , and ITS guy said we only updated virus signatures
 
1:23 PM
Take screenshots the next time you get the errors.
 
Thanks
have you ever experienced similar problem ?
 
1:39 PM
Usually, problems like that are resolved with a project refresh or clean rebuild.
 
I wish it was smiley option here that I could express my ........ feeling right now!
 
>:(
 
 
@MadaraUchiha thanks for the list
 
1:43 PM
Small doubt, why would any one want to use console.printf("") - C style, when we have already System.out.println()?
 
The Console class does some things that System.out does not.
For example, Console makes it easier to read input from the command line.
 
format specifiers?
oh cool!, Thanks
 
printf is actually very powerful, if you know how to use it.
One simple example is that the character sequence "%n" will insert the proper newline character for your operating system.
 
2:00 PM
but there is scanner for taking input right?
 
Yes.
Console doesn't add any new functionality. It just makes things more convenient.
 
scanner adds any new functionality?
 
Scanner is a general purpose class for parsing strings.
Console is specifically designed for interaction with the command-line.
 
oh, I see
 
You can use Scanner to parse anything...not just command-line input.
 
2:05 PM
but, online judges like hackerearth allows to use Scanner for taking input! do they handle this case?
 
what's wrong with that?
 
You can use Scanner for that, yes.
Console is a relatively new class, so older tutorials will probably use Scanner.
 
so how does this happen? Like they don't pass arguments via command line
 
Every command-line program as one input stream and two output streams (standard and error).
 
This game has one of the most amazing soundtracks games ever had
 
2:09 PM
The input stream is used for reading data from the user, and the output stream is for displaying messages to the user.
 
@MadaraUchiha very soothing!
 
That girl is extremely talented ^
Check out her other songs too
 
2:44 PM
I have question on inheritance. Can you please help me answer this question? stackoverflow.com/questions/32268191/…
 
3:04 PM
reemphasis: windows users are morons
 
@uni any experience with gradle + flat file dependencies?
 
that's too specific, so unfortunately nope
 
3:37 PM
Off to lunch. Bye Java!
 
4:06 PM
Hi Java, simple question about IoC/DI and unit testing.

Let's say I have `FooService` whose constructor injects `BarService` and `BazService`. Unit testing is easy since I can simply mock out those dependencies. However, say `FooService` has a method I'm testing that uses `HttpURLConnection` and `BufferedReader`... clearly I want to mock those out but do I really have to inject them? Can I just use PowerMockito?
 
@MatthewVita "Can I just use PowerMockito?" -> if you want to ignore the angel flying around you that wants to see you write proper code, sure
 
4:26 PM
@Unihedron well, of course I care about code quality. How would I go about mocking HttpURLConnection with code changes?
pass it in as an argument?
(thanks for helping me with this, btw. I'm newer to DI/IoC)
 
 
2 hours later…
5:59 PM
Hi.
 
 
1 hour later…
7:23 PM
HEEEEELLO EVERYONE :D
 

« first day (1772 days earlier)      last day (3168 days later) »