« first day (1649 days earlier)      last day (3297 days later) » 

12:00 AM
hi bud
@Mr.777 hello?
 
@Tarson Hi
 
 
2 hours later…
1:47 AM
Hello Room!

Any IntelliJ users here? I have installed Java on the machine (Eclipse and Dr Java run). IntelliJ tells me to select a "Project SDK". Where is it?

C:\Program Files\Java\jdk1.8.0_45..........

I can't see the file I need anywhere here.

Thanks
^^^----- Ignore.

I turned the PC off and on again... it works :)
 
2:40 AM
@mikeeustace good morning!
 
Morning @JudeNiroshan
 
i have very basic java questions. can you please help me?
 
I'll try... but my knowledge is very basic :)
 
what are the things that won't be accessible to child class ?
private methods and attributes
what else?
they have asked for 3 things. only this is coming to my mind
 
private fields?
But I'm not sure. Someone with far better knowledge will be along soon!
 
2:43 AM
ok. thank you.
 
3:13 AM
@Sword hi, can u answer for my question ?
31 mins ago, by Jude Niroshan
what are the things that won't be accessible to child class ?
private methods and attributes
 
default level of access also forbid child class to access fields/method on parent class
 
other than the methods and attributes, what else that restricted for child class ?
@nhahtdh any help would be appreciated
@Gemtastic
 
3:45 AM
26 mins ago, by nhahtdh
default level of access also forbid child class to access fields/method on parent class
 
i'm sorry. not clear to me
 
4:08 AM
I have asked a questions with subject "Relace HWPFDocument paragraph text using java results strange output" could anyone help me to rectify this.pls
 
Hello guys.....can anyone point me in the right right direction for parsing a very complicated json file with lot of nesting ? What should be the best approach and which would be the best API to use for that?
 
Hey :)
 
heya
@Ankita jackson for json :D
 
@ItachiUchiha Thanks a lot. Would try that :)
 
4:28 AM
none
 
4:55 AM
hi @JudeNiroshan
 
@deadlydragon00 hi. Good Morning! :)
 
Gud afternoon
 
@deadlydragon00 as ItachiUchiha said, there are no other thing other than private fields. i mean child class cannot access from the parent
 
Hi All
I need help
 
One of the restriction I know is that you cannot use Static Class inside a Child Class
 
5:05 AM
Any one know how to implement SSL certificate with tomcat?
 
I think your question is How to generate SSL not to implement.
 
@deadlydragon00 i have SSL ceritficate
 
ah ok. nevermind
 
but i don't know how to use
@deadlydragon00 Do have any idea?
 
Morning
 
5:09 AM
I dont have time to explain just read this syslint.com/syslint/… Good Luck
I am expecting you know command line
 
yes i know it command line
@deadlydragon00 thanks i will refer like which you have provided to me
 
good luck!!
 
@deadlydragon00 what is the restriction that comes to play relate to inner classes?
 
5:38 AM
@ItachiUchiha
class A{
int a=10;
static int x;
static class B{
    int b=5;
    void display(){
      System.out.println(x);
      System.out.println(b);
    }

  }
}

class SomeOther{
  public static void main(String []args){
      A.B b1 = new A.B();
      b1.display() //This is correct

      //Is this below part is valid or not?
      A a = new A();
      a.B b2 = new A.B();
      b2.displa();
  }

}
 
6:13 AM
below part is NOT valid
 
6:36 AM
is 'in' an accepted (convention) for a variable from a scanner, eg

Scanner in = new Scanner(System.in);
String x = in.nextInt();

Thank you
and I can see my String / int mistake :)
 
fge
7:18 AM
@mikeeustace a variable name should be short and to the point; that's a common sense rule rather than a convention
The convention is about how to "spell" them (camel case etc)
 
7:32 AM
@fge spelling should always be correct...
you're talking about casing ;)
 
7:52 AM
Wow Java, seriously?
String foo = (String) null;
foo;
"NO PROBLEM BOSS"
 
Strings are objects, they can be null
 
boolean foo = (Boolean) null;
foo;
NPE
 
that's gonna hit the fan at runtime
 
Well fuck you too
 
well, that's what you get when you try to cast an object to a primitive
Why do you find it so strange?
 
7:58 AM
@Gemtastic Because Java's type system sucks?
 
How do you guys encapsulate an SO question in the chat room
 
post the link and only the link
 
0
Q: Text Search based algorithm not behaving as intended

JuxhinUpdate I've updated the question with newer code suggested by fellow SO users and will be clarifying any ambiguous text that was previously there. Before addressing my query I'll give a rundown of the code used and the desired behavior. Summary I'm currently parsing large log files (take ...

Ah alright
Incase any body has some spare time to give it a look would be greatly appreciated
And thanks for informing
 
final boolean raw = (Boolean) (row.get("raw") == null ? false : row.get("raw"))
UGLEH
 
fge
@MadaraUchiha yep, that is quite ugly
 
8:11 AM
The Java null is by far the worst language feature it has -_-
 
meh.
that's like... the standard crap over here.
but it's actually worse. some booleans are stored as Strings..
 
o
 
Ago
8:27 AM
can I somehow forbid a certain keyword usage? I have an exercise where for and while loops are not allowed. want to test the solutions.
 
fge
8:38 AM
@MadaraUchiha SQL also has NULL, you know
Deal with it :p
 
8:54 AM
~~ What do you do when you find yourself unmotivated while doing your dev?
~~ What's the reason behind this? And what should you probably do?
 
@LeeJeong probable reason it's because you are lack of sleep
 
@deadlydragon00 HOW DID YOU KNOW???!!! you also lack sleep ayt?
 
Morning
 
howdy @Unihedron
@LeeJeong when you work more than 8 hours your body is already exhausted.
I dont believe on motivation quotes like work day and night it's stupid
 
@deadlydragon00 but how do YOU and those programmer geniuses on TV can keep up with the long nights of works???
@deadlydragon00 THATS very true. My fiancee now feels I'm changing. I didnt know this side job would result to this
@deadlydragon00 and what do you suppose they are hiding?
 
9:01 AM
have you ever ask your self how an 8 years old know to program?
 
@deadlydragon00 what motivations qoutes?? that work day & night is a good thing?
nope. prolly because I didnt have my eye on programming/computer stuff... my interest is just on the other path, and HERE I AM, out of nowhere I got on IT
 
Like for example you work harder and then you achieve extremely the moment your reach 21 but the consequence you will die as early as 30
 
fge
Aah, developer's blues
 
Our emotional aspect is affected by our body routine I mean daily task!
 
@fge hello there! :D
there needs to be a balance, or else something will fail.
I just cant still sell to myself that Im just 23 and Im getting tired easily now.
6-8 hours sleep is not bad right..
 
9:05 AM
8 hours above should be. 6- 8 is suicide
water also can help you out all day long
 
do you consider yourself a hardcore programmer? and what does hardcore mean in this context?
 
define hardcore
 
hardcore*
programming geniuses, stays up all night creates lots of programs for hobbies
do you think too much programming affects the way you communicate with humans?? I find it hard to explain and communicate with people nowadays, im not like this before i began this project
 
Im not a genius or a prodigy; before I sleep very late however I discover its not a good idea; Programming Does not affect my communication skills I am still normal because thats my will.
 
I feel so worthless right now, not being able to commit my deadline on sideproject, feeling drowsy all the time, then not being able to delivery and communicate properly with my team on my day job.
 
9:15 AM
Eh, I sleep <5 hours a day, but don't take me as your role model
 
I dont believe im on suicide, but my colleague does says so. Im just thinking he want s to hinder my success..
 
Just chill out...
 
@LeeJeong did you notice the way you speak right now your accusing already your co's, without further evidence YOU MIGHT HAVE THE SYMPTHOMES and that is a bad sign. Don't take my word badly ...
 
how do most of us get here? for the money? for the interest... im on the former
*googling SYMPTHOMES
oh, you mean symptoms?
 
You just need to take time to chill
And mix with different groups of people
 
Sticking to a single circle doesn't really do good
And get a lot of sleep. Screw the programmer stereotype of sleeping 2 hours and working 22
 
I wanted to resort to social media, but I think that just makes me a bigger mess, social media doesnt help
@Juxhin I mean, is that really US? do majority of us really do that?
 
I highly doubt it, it isn't productive
If anything, it's counter-productive
I always have hobbies that are COMPLETELY different from work
Also, physically exhausting yourself is good from time to time, go for runs and do physical stuff
 
its quite hard in my country, not that Im blaming it, but you have to do the twice effort to attain comfortable living
 
Twice the joy when you succeed in doing so then
 
9:22 AM
Right now, i think i might kill myself if i do exercise while doing long nigh pull overs...
 
yeah its symptoms --- I just recently mixed my native spelling
 
Just try new things from time to time, don't die ignorant
 
I like talking here, anonymously, i feel like there's less judgement and people are giving lots of good suggestions..
 
Don't overdo anything.
Coding long sessions unwillingly isn't productive.
Programming is more effective while you do it sober.
Or, if you're lemon - code drunk, debug sober. fun times
 
l0l
 
9:24 AM
you can imagine my hate when I stumbled upon a code I written when im half asleep, and spent rewriting asking my WTF why would i write it
 
@LeeJeong hey at least you are allowed to rewrite it!
 
^^^
 
its my own project. haha.. you refer to production codes right?
 
You learn more while doing stupid things that you can redo and learn from tearing it down.
Seriously.
 
@LeeJeong I'm not even allowed to reformat the code I work on before committing it.
and the indentation is atrocious
 
9:27 AM
HAHAHAHA! I as well is OC when it comes to those things.. it makes my eyes bleed and my blood boil why would they do that.
 
OC? is that the place where you work?
 
OCD? It's required for basic sanity if you want to develop. At least let me indent that 2k LOC method properly, then I may not have to refactor it like crazy to even understand what the crap is going on
 
OC = Obsessive Compulsive (Disorder)... you cant keep your cool on seemingly unright things..
 
ocd sucks
I had it for a while (ocpd)
 
hmm... reading through the symptom list... most of that fits on me....
 
9:36 AM
I have OC before : I always go back home before even if I am already in school to make sure if I already plugout all the socket
 
LOL @Vogel612 my OC is when I leave my laptop at home, I constantly fear it might get stolen
 
stolen from home?
thats weird
 
@Vogel612 haha :)
 
IMHO, home is the safest place :P
 
Orderliness, reluctancy to part with worn out items without sentimental value, stubbornness, problems with finishing things that don't match my high standards...
 
9:38 AM
Watch out for work pressure, they grow into pesky mental problems
 
hmm...
 
I've been through a few myself
medically diagnosed.
 
Hey, I have several alarms set in regular intervals as well.
 
yea my alarm really used to look like that..
 
9:42 AM
Mostly because 1. I want a different tune for each, and 2. I have a bad habit of snoozing
 
then they started a huge construction site directly in front of my house.
now I am woken by the machines at 6:30 every day, so I don't need an alarm ;)
 
Poor you ;)
 
Megaphone might be the best
 
flag inappropriate / offensive stackoverflow.com/a/29939808/3622940
 
his name looks offensive than his answer
 
9:46 AM
@Unihedron -7, still not down
 
and - dead
 
morning
 
Morning
 
@deadlydragon00 that looks exactly like my alarm settings...
 
Mrng~ :)
 
9:58 AM
Mrng
 
were just living on an apartment, one my netbooks got stolen by a carpenter shit... thats why i developed this panic
 
I have dynamic dns set up on all my machines, if some thief tries to use it online - I will find them
 
does it works even if I reformat the machine?
 
@deadlydragon00 the average thief doesn't do that, I guess
 
@Nisk sounds cool!
so yeah, fvck that, i have to carry my 1.5kg laptop everytime i go out
 
10:14 AM
@Nisk DDNS in 2015? use PPTP mate
 
You know what, everytime i try to type something here, i always stop and think what word to use. I wasnt like that before, is this behavior even repairable? :(
 
yes.
 
@Unihedron umm...that's not what I need for my use, besided the protocol seems like a complete mess security wise
 
by practicing.. by using the blade agan
 
@Nisk DDNS is the most insecure thing ever. It's comparable to Windows in incompetence.
It had its golden ages several years ago.
 
10:26 AM
Ello!
 
Now it's just the tool to broadcast to everyone around you what your internal and external IPs are.
@Appu Hiya!
 
Ellow
 
@Unihedron How is it going?
 
!!>100000-10014
 
@Unihedron 89986
 
10:30 AM
!!>help
 
@Appu "ReferenceError: help is not defined"
 
:o
 
!!tell Appu bot
 
@Appu I'm actually a bot, so don't reply to me.
 
I didn't reply to it :P
!!/listcommands
 
10:32 AM
@Appu 666, help, listen, eval, coffee, refresh, forget, info, listcommands, tell, afk, ban, unban, convert, define, doge, google, hang, jquery, learn, put..it..back...ლ(ಠ益ಠ)ლ, phucket, gtfo, moneycantbuylove, catmode, coffeetime, lifeban, stopmyself, instagram, kendallfrey, excited, manigga, meinneger, dgaf, infiniteriot, okay, feelsgoodman, fabulous, sausage, playerpimp, installjavascript, moarkittens, kendall, banana, kfc, uwot, nsfw, facepalm, somekittens, erase, fry, dudeism, hahastillhere
onebox, morecoffee, steve, whoosh, burn, woosh, roomowner, phony, really, inur, coffeescript, maca
 
@fge SQL also has NOT NULL
 
@MadaraUchiha But it's really only useful when in conjunction with "is".
 
@Unihedron No. You can tell a field to not be null.
 
AKA value IS NULL vs value IS NOT NULL
@MadaraUchiha ...?
what good is that?
 
@Unihedron That you can't enter nulls into your database!
You can require fields to never be null
You can't do that with Java
 
10:34 AM
Just don't enter them as null then they won't be null.
 
fge
Yes, so what?
 
@fge You can't enforce that in Java
 
fge
Don't burden the language with things you can do programmatically
(hint: Objects.requireNonNull())
 
Literally EVERY line you write is in danger of NPEs. EVERYWHERE.
 
fge
No
They are only in danger if you do a poor job
 
10:36 AM
^ person who has never had to maintain a legacy project.
 
@fge Please
final boolean raw = (Boolean) (row.get("raw") == null ? false : row.get("raw"))
This bullshit is a fine example
 
@MadaraUchiha why Boolean?
 
fge
This "bullshit" as you call it is due to the fact that the SQL table below that allows null in its raw column
This has nothing to do with Java whatsoever
 
@fge In JS I'd go let raw = row.get("raw") and I wouldn't care less if it's null or false.
 
fge
Well, to me, that's a fundamental flaw in the language
 
10:37 AM
wow
much flaw
very wrong
 
if (thisIsNull) {
    // should not be executed. I should not worry if it's null
}
 
fge
That's your point of view, not mine
A reference is a reference; if it's null, deal with it
 
What the hell do you think a null in a condition could POSSIBLY mean?
 
fge
I don't equate 0 to false
I don't equate "" to false
I don't equate null to false
Otherwise, well, use Guava: Optional.fromNullable(row.get("raw")).or(false)
 
@fge That's not a whole lot better, you know...
 
fge
10:39 AM
Or, with Java 8: Optional.ofNullable(row.get("raw")).orElse(false)
Well, define "better"
You say that null should be false
 
@fge Less cumbersome.
@fge No
 
fge
I say bullshit
null is null, false is false
 
I say that a condition that resolves to null should be false.
 
fge
They are not the same
 
@fge Please do tell me. What does a null mean?
 
fge
10:40 AM
Well, deal with it, this is not the case in Java :p
 
I know what it is. But what does a null mean in your program?
 
fge
It means a programmer error if you let slip it through, nothing more, nothing less
 
@fge Is that so?
But it could also mean that the value is really null.
 
fge
To me, it is so, yes
Well, recall that you deal with SQL
 
@fge SQL is a private case.
 
fge
10:41 AM
No, not here
 
But it could also mean that this particular object is not important (in a test or so)
 
Null is a case that indicates an abstraction revealing a false case of presence.
 
But it could also mean that there was an error
 
fge
Three valued logic is a problem with poorly designed tables, that's a known fact
 
But it could also mean...
 
fge
10:42 AM
Well yes, which means your model is flawed
 
Fact is, you don't know, and can't know what's null in your program.
 
@MadaraUchiha @CheckForNull methods has been frowned upon for years now...
 
fge
Java shouldn't care, and doesn't
 
(that's an annotation from jsr202)
 
@fge See, this is where I beg the differ.
JavaScript has both null and undefined
 
fge
10:42 AM
Don't blame the language for model design incompetence
 
Where null is explicitly set and undefined is implicitly set.
 
and Nil and NaN
 
When something is undefined you know for a fact that it was undefined.
Unless someone was exceedingly stupid and passed undefined or set something to undefined, which no one does.
If something is null you know for a fact that it was explicitly defined to be null.
 
fge
Well, good, since in Java you can't have anything undefined
The language itself forbids that
 
@fge Is that so?
 
fge
10:44 AM
Yes it is so
 
@fge That's why Java's language design makes it hard to distinguish special cases from immediate cases.
This is also why it would had been helpful to make null stand on its own, aka without being wrapped by Optional.
 
:22992091? there's no security implications beyond - someone is going to hijack my account and suddenly this url I use to get the IP address of my box - won't work
 
fge
All of it is explained in the JLS
 
@fge boolean foo;
Is foo defined?
 
fge
@MadaraUchiha read the JLS; answer is "yes: to false, by default"
 
10:45 AM
Even better
Boolean foo;
is that defined???
 
yes
 
fge
Yes, to null
 
to null, by default
 
@Unihedron No
 
10:45 AM
Because I DIDN'T DEFINE IT
 
@MadaraUchiha Sorry, yes.
@MadaraUchiha You did.
 
sigh whatever
 
Boolean foo;
Arrays.asList(foo); // List<Boolean> with size 1, element being null
I guess you can say that Java sucks. :p
 
@Unihedron The fact that the engine defined it for me, doesn't mean I defined it.
 
3 mins ago, by Unihedron
@fge That's why Java's language design makes it hard to distinguish special cases from immediate cases.
You mean "initialized"? That's how "assigning after declaring" works in JLS.
 
fge
10:48 AM
@MadaraUchiha then what? That's your fault, not the language's
The JLS is clear
Each and every instance field has a default value
In a method, you can't use a variable unless you have initialized it
Those are the rules
 
It's how Java "works".
2 mins ago, by Unihedron
I guess you can say that Java sucks. :p
 
fge
Just admit it: different languages operate differently; I just happen to prefer the way Java and C operate to the way JS (among others) operates, or perl (without "use strict")
 
... that would had been funny if the second sentence didn't have a flawed logic :p
 

« first day (1649 days earlier)      last day (3297 days later) »