« first day (2347 days earlier)      last day (2579 days later) » 

12:39 AM
morn
 
@Ungeheuer does it make sense? no, would it be efficient? probably, if you can get it right
it's also called a fastpath btw
 
Hey @Tavs
 
but I'd expect the vm's branch prediction to opt out that comparison if it's so jarringly obvious that all elements in one array go ahead
 
@Unihedron Why doesn't it make sense?
 
1:26 AM
@Ungeheuer because you're not arranging your sentence in a way that makes sense
sense isn't something everything magically gained, it is the result of careful arrangement to deliver coherent sense, there is no well-formed reason to explain why something doesn't make sense, only for ones that do make sense
 
gives @Uni a hug
 
2:27 AM
Shutting down. See you later.
OakBot Online.
 
 
3 hours later…
5:06 AM
Hello Google Play Developer,

We rejected eOrder - Salesman Order App, with package name com.marg.newmargorder, for violating our Malicious Behavior or User Data policy. If you submitted an update, the previous version of your app is still available on Google Play.

This app uses software that contains security vulnerabilities for users or allows the collection of user data without proper disclosure.

Below is the list of issues and the corresponding APK versions that were detected in your recent submission. Please upgrade your app(s) as soon as possible and increment the version number of
Any suggestion on this
 
@Alpesh Did you look at the article about how resolve the issue at Google Help Center?
 
5:25 AM
Yes i did that
But after implementation of the same
i got the error
 
but its again send me email
@JennaSloan
 
5:41 AM

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
^ Try that chat room
I know less about Android than I know about the IBM 360 BAL.
 
o/
 
anyone knows Spring?
I have a simple method
everytime it executes, it creates a new instance and return it
public static A getMyA(){
    return new A(new B());
}
I have created a <bean> for A
but how do i make use of it in this static method?
If I have a new instance variable, I would change this method as follows:
public static A getMyA(){
    return myInstanceA;
}
this would cause me, referring non-static content in static scope error
then you might say, I could make my instance variable into a class variable. But that would make this everything to work different
 
6:05 AM
I think I can try something like this -> stackoverflow.com/a/12545069/4506140
 
@JennaSloan lol
 
2 messages moved to Trash can
@Alpesh please do not post big chunks of code here. If you want to share code, please use pastebin or a similar tool
 
 
1 hour later…
7:14 AM
@JudeNiroshan why are you even bothering with the static method and getMyA() when A is already a bean? Just @Autowired A should suffice everywhere, either on instance field on or instance method. And the plus side is that you get it either as a singleton or as a prototype instance, depending on how you configured the bean A.
 
8:07 AM
cat
 
morn
lol i was in wrong room
and wondering why there are only 3 ppl
joined Java,Spring room instead
 
lol
 
8:31 AM
Good morning java
 
morn
 
9:02 AM
What datatype would you use for a time stamp on an object in Java?
Java.Util.Date? Does that include time?
I guess date it is
 
@DRich LocalDateTime
use it together with DateTimeFormatter if you want a specific format
 
@Tavo These are dates that are going to be recorded in the DB to denote when an object was created. Wouldn't I want something in UTC that could then be converted to a local data/time format if/when the user sees it?
 
@Tavo Sweet, thank you
 
no probs
it's only since Java8, so I hope you are using it
else, I'd recommend Joda time
 
9:20 AM
yeah, my target SDK is Java8...
IntelliJ doesn't like it though
nvmd, fixed it
 
@Tavo Have you tried Java 9?
 
not yet, no
I haven't had the time
have you?
 
Yes.
While it works nicely all alone. It sucks when used with a build tool.
 
9:35 AM
really? how come?
 
oh java9
how you like it so far?
 
hey guys was wondering if someone could help me with a method I'm confused about. Its on this link pastebin.com/KTDc8GCX
 
java 7 :(
 
java 4 :/
 
:/
 
9:38 AM
jk
this week we will switch to java 8
us devs hope everything goes well
jdk 1.8
 
@razorcode7 use a for loop
 
@Tavo There is a lot of issues that still needs to be solved especially with the modularization of the whole JDK. Modules is a new concept and it going to take time for the whole environment around it to stabilize.
 
for(int i = 0;i<5;i++){//code}
 
@Hans1984 Nice. Although, I am still to see the benefit of modularization.
 
ok
 
9:43 AM
@DRich Alright Ill give it a go real quick
 
@ItachiUchiha yeah, I've read about the modules
 
I still can't run many of the open source projects which use gradle on Java 9.
 
well, I won't be using it at work anytime soon I think, so I'm safe so far :)
oh, that sucks
completely unrelated: here I was wondering why my git stash pop was so slow. I'm on the VPN... :(
 
I've attempted it but still not luck atm pastebin.com/j2qW3f4N
 
@Tavo What has git stash pop anything to do with VPN?
 
10:02 AM
morn
 
morn
 
any ideas why i get a ArrayList<Integer> storage = new ArrayList<>(); error in this code pastebin.com/f6NaWjrg
illegal start of type
ArrayList<Integer> storage = new ArrayList<>();
 
maybe you try to run it against an old JVM (one without the diamond operator)?
 
11:07 AM
Good noon o/
 
12:02 PM
Good morning ppl
It's quiet in here today
 
morning
!!fatcat
huh
caprica?!?!?!?!?
panics
 
12:19 PM
@Hans1984 Maybe she doesn't like you anymore
 
NOOOOOOOOOOOOOOOOOOOOOOOOOO
dont say that
 
yeah shes very smart
 
lol
!!cat
 
i bet this stupid troll has somethign to do with it
from the other chat
 
12:38 PM
By a lot I mean more than 588
 
1:01 PM
!!huh
 
 
1 hour later…
2:10 PM
Morning, Java!
 
MICHAEL \o/
 
@Hans Teach OakBot fatcat. :P xD
Hey @geisterfurz!
 
hey@Michael
 
/help learn
 
ahha
 
2:12 PM
@Michael Teaches the bot a new command. Syntax: /learn commandName output
 
@JennaSloan Yeah Caprica had to get reset by rlemon and the last backup was about a year ago...
 
can he learn urls?
and post gifs in chat?
 
Yes just type the full url including http
 
ok
for caprica it works like this
"<>http...."
is it the same?
<> for opening it directly
 
What the <> for?
 
2:14 PM
so the gif gets shown in chat
 
Oh, doesn't SO chat do that automatically?
 
and not just the url
no
 
Hmm well try it.
 
/learn fatcat "<>https://s-media-cache-ak0.pinimg.com/originals/b2/04/d5/b204d5f93969173c81e78‌​71e1052177c.gif"
 
@Hans1984 Saved.
 
2:14 PM
Without the <>
 
/forget fatcat
 
And without quotes
 
how cna i remove
 
Unlearn
 
/unlearn fatcat
 
2:15 PM
@Hans1984 Command forgotten.
 
@Hans1984 Saved.
 
/fatcat
 
:D great
 
2:15 PM
:D
 
lol
that is indeed a FAT cat
 
xD
 
 
1 hour later…
3:18 PM
 
YEAH BEAT THAT SCRUB
DEATH TO DUMB KITTENS
 
Happy to meet you Uni :)
 
hey
 
hey
/fatcat
 
3:21 PM
we need a catgif command
and also hamgif
 
hamsters
 
Oh yeah
!!meow
 
leaving
bye
 
3:22 PM
bye
 
/8ball Is my Laptop crap?
 
@geisterfurz007 Very doubtful
 
/8ball Is Philemons Laptop doubty?
 
@geisterfurz007 Better not tell you now
 
//friend wrote that
 
3:26 PM
/8ball Do you think uni is a great RO?
 
@Unihedron Reply hazy try again
 
Hello, guys. I have a question but it can be duplicate. It is quite short, so I wanted to ask here.
 
pls no :>
 
/8ball Do you think uni is a great RO? be honest
 
@Unihedron No way
 
3:26 PM
gnihihihihi
 
lol
 
Do not!
Though I like that image
 
yes it's a dank emoji I stole
 
3:29 PM
Considering I have class "A" and "B", and "B" extends "A". I have a method and I want to pass an object into it. I want it to have type "A" and whatever it extends (in this case, "B"). How can I do that?
Let me explain a little bit more.
 
@ErdinEray no, you don't
 
Is it a bad practice?
 
that's not what inheritance is
A is the parent type, B is the child type, if you declare A then you get A, if you declare B then you get B
B is also A, but not the other way around
 
So, if I pass B-typed object, it will not throw any errors, right?
I found a question, but I don't know whether it is related or not: stackoverflow.com/questions/9888770/…
Actually
Sorry
This question is about the class itself.
I want to pass object.
Whatever, it seems I will see the results when I write unit tests.
 
Hello everyone,
 
3:41 PM
Hi
 
I am working on a project using java , I need to find hash of whole pendrive , but the code is very slow I am using FileInputstream is there any method to speed it up ??
 
rewrite your code to not use File
 
i am currently finding the hash of device node like /dev/sdb4, since it is interpreted as a file.
@Unihedron How to find hash of a pendrive more efficiently, without using its device node?
 
Hey Itachi o/
 
Want to look at my code?
 
3:56 PM
no
 
can someone help me out with my first java project, hello world?
 
@Unihedron Ok.Is there any better way to solve it.. Only thing I need to do is speed up
 
I do public class MyFirstJavaProgram {
to start it off and my file is named MyFirstJavaProgram and I get this error
Error: Could not find or load main class .\MyFirstJavaProgram.class
 
don't write slow code; don't run it on a slow environment; don't use an outdated java version
 
inb4 don't use Java
:P
 
3:59 PM
that goes without saying :)
 
:D
 
ah i found the problem
 
@geisterfurz007 o/
 
i used tab to autocomplete to .\MyFirstJavaProgram.class but apparantly you can't have '.\ 'and '.class' in it
 
you also shouldn't be using windows.
 
4:01 PM
.class is the problem
 
@Unihedron No. I am working with linux
 
@RaghulM sorry, not addressed to you
 
@Unihedron Hahaha. ok
 
whats wrong with windows for java dev?
 
everything
 
4:02 PM
sick
 
Beware of squirrels.
 
ita kita o/
 
whatsup long time no see
 
4:12 PM
Yo anyone here knows Inform?
 
I have a lot of Inform-ation
 
Be happy you do not know it -.-
Programming language to create text-adventures. But it is annoyingly complicated
We have to find out how to push a thing without making something pushable
 
sounds like even I could write a better language engine than that
new side project GET!
 
@Unihedron Will multithreading help me?
 
4:22 PM
I doubt it.
 
The delay happens only by taking file by file
 
then you probably do need async
beware of your dir format though
 
if i need to encrypt 2mb file with lots of sub folders is slower than encrypting a single 3 gb file
 
 
3 hours later…
7:25 PM
What to return if not null when facing an Exception?
nvm I am an idiot
 

« first day (2347 days earlier)      last day (2579 days later) »