« first day (1847 days earlier)      last day (3108 days later) » 

fge
12:25 AM
@Unihedron I have a proposal of a short term, useful project which you may write
And simple
(I pretty much gave up on HTTP/2, looks like it was too complex for you :p)
 
user4196492
1:07 AM
Hey guys, I wanted a good tutorial on how to make descriptions in class files and methods so that when I am calling the class file through an object in eclipse, it will show the description that I wrote for the given class/method.
 
fge
@pebble225 that doesn't make any sense
What do you call a "description"?
Do you want to log something?
 
user4196492
Say I want to describe what a method does, I could use the /** java doc notation */
Then I saw that in java doc notes, you can use things like @author to show who the method designer is. I just wanted a tutorial to teach people how to make the functionality of class files and methods clear and understandable without having to look into the code.
 
user4196492
So by description, I mean putting a java doc note under the class/method declaration.
I am here because I can't get it to work or show up when I am in some other class file using an object to call the method. I want it to show the description, but it doesn't work.
 
fge
1:25 AM
A decent IDE will format such javadocs for you
 
user4196492
how would it work in eclipse for example?
 
user4196492
Sorry, I just found a video on this stuff, thanks for helping me anyways.
 
user4196492
What it covers is what I meant.

https://www.youtube.com/watch?v=6XoVf4x-tag
 
2:20 AM
@Unihedron How so? Why System.out.println("\\n") returns \n then, but for the replace I should use \\\\n ?
 
 
5 hours later…
7:03 AM
@fge ohhh?
@Sqeezer because \\` = \`
welcome to escaping
unfortunately the backticks are also escaped from the chat
 
7:15 AM
hi
 
hello
 
 
3 hours later…
10:14 AM
/http 504
 
@Unihedron HTTP 504 (Gateway Timeout): The 504 (Gateway Timeout) status code indicates that the server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.
 
/http 418
 
@Gemtastic HTTP 418 (I'm a teapot): Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.
 
:D
/http 410
 
@Gemtastic HTTP 410 (Gone): The 410 (Gone) status code indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent. If the origin server does not know, or has no facility to determine, whether or not the condition is permanent, the status code 404 (Not Found) ought to be used instead. (1/3)
 
10:24 AM
home office intensifies
 
Why is android dev. so painful, I thought It can't hurt..
 
Because google?
 
That's what i'm thinking about...
Its android studio is a bunch of errors, unrecognized, mis-configurations producer
 
android is off topic
 
Yes, I just don't what to talk it in android room so that it doesn't get them down.
:D
I'm a beginner on this stuff
 
11:31 AM
intellij idea is starting to get slow
recently I've been using vim more than a full ide, hashtag winging it
 
fge
11:50 AM
Great, now the customer says it will install the product on Windows
Well, it's at their own risk
Windows? No guarantee on SonarQube malfunctions, mate
 
 
2 hours later…
2:10 PM
@Unihedron Lol!
Actually saying "Hashtag" instead of doing # is the way to go
 
@Ballbreaker I'm already at the spot where I can notice a compilation error in three seconds without having my IDE tell me
and it's not just in Java :P
 
Well that's good
I'm just at the point where I never make an error.. ever..
hashtag I'm lying
 
2:28 PM
...
 
2:55 PM
:D
 
3:28 PM
howdy folks
 
Eyo
Hows it goin duder
Just lost respect for SO.
Diversity is a sham
 
well duh
but people get so buttmad about it
choosing a worse candidate just because you need to increase diversity on your team is no less than institutionalized racism
(my opinions are my own etc)
I also understand the flip side; no one should ever lose out on opportunity or be treated differently because of race, but that's not what diversity quotas aim to resolve.
they just make it look like you're not turning down candidates because of race, but instead it may mean that you may be turning down majority-race candidates.
which is whatever, but still
no, the real reason that a "diversity" board should exist is to stamp out institutionalized racism and sexism in the workplace.
I think they're moving in the right direction, though.
By having one, they're sending a message to minority groups that they are welcome to join SO (assuming the individual applicants are qualified to do the job).
my two cents
 
3:47 PM
tldr
 
TL;DR: Diversity quotas are racist, but diversity boards are a message to say "hey, we're not racist"
 
@ShotgunNinja I agree completely man
The issue to me is that Diversity != Equality, infact they are almost in direct competition against each other with small overlap
@ShotgunNinja LOL yeah
One of my friends applied for a post graduate degree the other day, and wasn't allowed to submit his application because he was white
He then proceeded to get into an argument with a radical feminist. She said, and I quote "You better check your privilege" . When he told me that I almost died of laughter
aahhh.. People have always been, and always will be stupid though. I guess you're just exposed to it more frequently because of things like social media
 
 
1 hour later…
5:19 PM
Rather than quotation you need to work it from childhood up; make women, non binary, people of colour and disabled people have the courage to dare pick a career in IT. Raise then without bias, then hire the ones that are good.
It's hard to quote when there's no real supply to quote from.
 
Yeah I can see that
 
Quoting is for professions where one gender/skin colour is dominating the field but does not get any promotions because you selectively discriminate on gender and skin
 
By quoting, I'm assuming you mean to fill a diversity quota right?
 
Yes, because in those professions the skills are there in a multitude but they WANT to discriminate
 
The thing that bothers me about the whole thing, is that by discriminating towards someone, you are always going to be discriminating against someone
So the whole idea of diversifying is a discriminatory practice in and of it self
 
5:22 PM
Like cleaning companies where all the cleaners are PoC but none of the bosses are, not even the low-level bosses...
Then quotation forces racist and sexist people to actually promote people that deserve the promotions.
Quotation in IT does not work.
 
I don't know what PoC means
 
There's not a lot of PoC or women in the business. But a lot of racism. I have two skilled classmates that noone wants to take on an internship even, because they're foreigners :/
PoC = People/person of Colour
 
@Gemtastic The fundamental flaw in all of this, is that enforcing things like equality and diversity are moot, because in essence, people are not equal
 
Which is anyone who isn't white.
@Ballbreaker Everyone's an individual
 
@Gemtastic Yes, but the idea that those two individuals are equal is wrong. Should they be treated as equals? Depends.
Discrimination will always be around. Is one person more intelligent, more social, more caring, etc. All of these things factor in when assessing a candidate for a job
Did they just have more of a positive effect on you?
 
5:27 PM
But there is a structural behaviour of in some professions where individuals who have all the skills needed and are objectively the best candidate, but they aren't promoted or hired because of discrimination
 
Did you have your own internal bias that made you like one more than the other
@Gemtastic The issue with this, is that as a potential employee, you do not know you were objectively the best candidate
 
The personal bias of "I like you better" is reasonably applied when the choice is between two individual who's skills are equal.
 
Perhaps from a financial perspective
The issue is that "skills" can be divided into a hundred different things
 
The issue I'm talking about is when someone most skilled and suitable get ignored over a much less apt candidate because that candidate is favourable in skin and/or gender.
 
Perhaps the reason they were liked better, is that they have a particular skill of making people like them
@Gemtastic I know, I've just never experienced it happen to anyoone I know
Except for a few white people because "they weren't minorities"
 
5:30 PM
It's just as wrong that someone less skilled than you get picked over you because they're a PoC as it is that you get picked over a much more suitable candidate because you're white.
 
Maybe I don't know enough minorities
 
I've experienced it A LOT.
 
@Gemtastic The issue with this is, how do you know that they were less apt than you?
 
Because they failed misserably at the task
 
So let's say, you were in a group interview then? and you experienced it first hand?
Because I just don't understand how you could know (I'm used to individual interviews)
 
5:36 PM
I've had people picked over myself and my even more apt colleagues for a promotion, the person failed miserably and I had to do my job, their job and I didn't get paid or appreciated for it. Happens all the time.
 
Ahh I see
So not just for the interview process but even promotion. Yeah that's when things become a grey area for me
A lot of times that even boils down to shmoozing
Was the employer basing that promotion off of a racial/sex bias, or was it just that he liked that individual more for other reasons
 
Another example; person has 10 years of successful experience, lots of references too, but didn't get hired because their name is Muhammad, but Joe got the job, has no experience what so ever and doesn't even know what the jobs includes. Joe eventually gets fired and cost the company a minor fortune.
 
Is that a real example or a hypothetical, because that sounds like incompetence to me
 
It's a real one
 
Then in my opinion Muhammad dodged a bullet
But yes that is the most obvious case of racial discrimination
Should the company adopt a "diversity policy" over that one instance? No. They should fire the recruiter
 
5:40 PM
I think he'd rather take that bullet and perform well rather than being unemployed and being spit on by swedes who think he's living on welfare because he likes it
The thing is; it's not the recruiter only. It's a system.
 
It's not a system, it's people
Unless that system is society, then yeah
 
I have a teacher at school who IS a foreiner but he won't hire anyone with a foreign name because he can't "sell" them to clients. People are racist and discriminatory.
 
Yep
People are also adaptive
 
It's great if you aren't racist and/or discriminatory, but it's a thing, it happens. And when it happens and the issue is not like in IT where there's a shortage of skills in the groups underrepresented, sometimes Quotations isn't a bad thing. In fact, in a lot of cases the companies did A LOT better.
 
Part of the issue with trying to rid the world of discrimination and racism, sexism, etc. Is that it will never happen
 
5:45 PM
that doesn't stop us from doing our best to fix it though
 
No, it shouldn't. But within reason
As bad as discrimination, racism, and everything is. It has it's positives as well
Generalizations/stereotypes could actually help you get a job
However, there will obviously always be negatives to all of those things.
I try to stay out of it as much as I can though, and not let it bother me. To my mind, all of this stuff can be boiled down to a morally gray area
Then again, I'm an asshole.
 
I've never said it shouldn't be within reason
 
I know
Just stating my opinion, wasn't really saying you thought the opposite
Although to be fair I remember you saying that stereotypes and generalizations were not true
Which to an extent, I believe you. But for the majority, I would say they are
Also that being said, it depends on the stereotype or generalization
Anyways, we don't need to keep talking about this, I've gotten it out of my system
 
6:09 PM
How about that ${LOCAL_SPORTS_TEAM} or ${RECENT_MOVIE}
 
Is there any way better to do this? ! paste.debian.net/332536
 
${LOCAL_SPORTS_TEAM} is ${PLAYING} ${SPORT} as best as they can, but they could be doing better
I didn't see ${RECENT_MOVIE} yet
 
Yep, they're sporting pretty hard.
@azbshiri does it work? What are you trying to do? It seems OK
 
I'd say this season might be their ${QUALITY_OF_PLAY} yet.
 
I actually did go to the theatre this past week and saw a movie
first time in forever.
 
6:12 PM
Yes, it does
 
if it works, then use it. Premature Optimization is the root of many problems.
 
@Kylar I have problems with line 13 and 14
 
fge
@azbshiri you should specify the encoding in the constructor for your InputStreamReader
 
InputStreamReader buf = new InputStreamReader(conn.getInputStream());
BufferedReader in = new BufferedReader(buf);
 
fge
Also, you don't close your resources
 
6:15 PM
I'll also say that generally speaking, reading HTTP over the wire should be done with a byte stream instead of a buffered reader, since it'll only be text until the end of the headers
Using HTTP is like driving a luxury or sports car from the 80's. It still gets you there in reasonable style and speed, but it's nothing like a Tesla P85D.
 
I'm new to Java :D
Is there any good convention for variable naming
 
camelCase is generally the accepted
 
like InputStreamReader goes for isr or inputStreamReader?!
 
that's more up to you
I prefer verbosity
because I worry about Those Who Come After.
 
InputStreamReader returns a buffer or a stream ?!
I can't access to oracle documentation
 
6:20 PM
...
 
http://www.commitstrip.com/en/2015/11/13/the-last-ever-line-of-code/
CommitStrip
The last ever line of code
CommitStrip
1447439148
 
@Kylar how would you wrote that program?!
 
@azbshiri reading and parsing HTTP is pretty complex. Why not use a library like apache or netty to do it for you? There's a LOT of little complexities
 
recommend apache-httpclient... thanks for the tip will look up netty
 
I told that I'm new to Java, if there's a better way to do that, why not :D what would you suggest about it?!
 
6:32 PM
@azbshiri apache http lib
 
@azbshiri It might help if you told us what you're actually trying to accomplish. Do you want to read from a URL and parse the content? Is the content XML or JSON?
I can't recommend or help if I don't know some context.
 
@Kylar Processing JSON, working with APIs
I come from Python so probably I'm using Java wrong :)
 
So you want to make an HTTP request, get the response, and if it's JSON, do something with it?
 
@Kylar That's right.
@Kylar ?!
 
6:50 PM
OK, so start here:
This will show you the apache HTTP library and simple examples.
Here is a good, very simple JSON library:
 
thanks
 
Go through the examples there.
That should get you 90% of the way there.
 
Yahoo, first gold badge
 
You've been a member of SO for five years but you have far fewer badges than I do :o
 
About three years of that was spent not going on SO, like, at all.
Compared to the last year or so, when I was on SO pretty much every weekday.
so I've only really been a member for about two years
 
7:38 PM
@Unihedron Not everyone buys into the trap equally ;)
 
it sounds irritating when you're the one saying it
 
Bias is a bitch ain't it
Or is it simply that you cannot see how annoying the sentiment is in general, until someone else points it out. Leading you to question your own level of irritation imposed on others?
Either way, it doesn't bother me that you think that way
 
@Ballbreaker no it's that that most of your speech aren't to be taken seriously
 
Fair point, most of what I say is indeed a joke. I don't even take myself too seriously 90% of the time.
 
:p
 
7:53 PM
You get the rare moments like today though, when I put jokes aside. I've delved really deep into philosophy and psychology. Probably wasted 2 hours just on contemplation <_<
I should have remembered you wouldn't care though ;)
 
8:14 PM
oh I do care
it's just that my concern span is short, that's all
usually shorter than the time it takes to start typing up a response in chat
 
Eh that's not the worst thing ever
A curse and a blessing one might say
 
8:44 PM
@madara Good luck in the elections dude, just saw your nomination now!
 
9:40 PM
@Unihedron Ok. Thanks. I read through javadoc thoroughly. Four slashes is because of backslash is special character in replaceAll function.
 
bob
anyone about?
 
Sorta
 
bob
excuse me if I've missed something obvious..
This code results in the following error, why? Cannot make a static reference to the non-static method LogAlways(String) from the type alpha.beta
I wary of asking a question on SO in the case it's something simply I've overlooked
 
9:59 PM
Wait sorry
let me check it out
 
bob
ok, cheers
 
This is confusing to me, you have a class defined within a class
You also don't initialize/construct beta
Did you massively simplify this by removing all of that stuff?
 
bob
yeah, I tried to get it down to the smallest possible code to reproduce the error
 
Might be too small haha
From what I can see here it should be okay, but still the nested class confuses me
 
bob
what is the correct method to construct beta?
 
10:04 PM
It should be something like
 
bob
the nested class is because I'm used to using [program name].[group of functions] in other languages such as C++
for example all legacy functions would be in Infinity.Legacy, and all file functions would be in Infinity.Files
 
class alpha(){
   Beta beta = new Beta();
   beta.method("message");
}

class beta(){
    public beta(){
     ..assign private variables here if required
    }
    public method(string msg){

    }
}
I believe at least, I don't know it's late in the day and my brain is fried lol
 
bob
hm, interesting
 
I've never actually seen a nested class before I don't think, so I could be wrong. It might just be bad practice, I'm unsure if it's just not possible or what..
 
No, it's totally possible. Inner classes are actually pretty common
They can be "non-static" (as the one above is), which means that the require an instance of the enclosing class, or "static" which means you don't need an instance of the enclosing class
but the nomenclature "static" and "non-static" can be confusing
 
bob
10:11 PM
just been talking to another Java guy on Facebook, apparently mistakes like this are common for C++ guys
 
because of java's keyword "static"
Let me see if I can give you a quick helper
 
@Kylar I'll have to look into this, give myself some schooling. It's rare that I'm completely oblivious to something unless it's a library I don't know
 
 
1 hour later…
11:19 PM
Inner classes are bae.
Sorry, I just wanted to say "bae".
 
/me shivers
 
They are good to use for the Builder design pattern.
And hey @Kylar.
 

« first day (1847 days earlier)      last day (3108 days later) »