« first day (1531 days earlier)      last day (3415 days later) » 

12:00 PM
@ItachiUchiha You figured this just now?
What do you think I've been doing at school?
 
You evil devil :D
 
heya
I have not worked on alfresco before
 
oh..
any one other?
 
12:06 PM
lolz
 
Heya
 
Heya
 
Heya
 
hi
 
12:16 PM
hi
 
hi
 
@Unihedro Is that you dancing ? XD
 
@Charlie My skills are not that good :P
But I should record meself dance one day
 
@Unihedro You should, haha
I'm working on a customized image atm
.cimg (Charlie's IMaGe)
 
12:22 PM
Looks like some kind of explosive
Radioactive explosive*
 
@Charlie It's an HTML5 interactive component test of mine.
 
@Unihedro Nice, but does it explode ?
 
@Charlie That's too much work to make happen.
 
@Unihedro True, are you using a framework ?
If so, which one ?
 
@Charlie no
 
12:25 PM
@Unihedro How many lines ?
 
Hmn, nice blog
@Unihedro ^
 
@Charlie Thanks.
 
@Unihedro How long have you been coding ?
In general
 
In aspect of?
"coding" is an umbrella term, be specific
 
12:29 PM
Just, since your first "echo Hello World"
 
That dated back when I was 8, when I coded a first correct (compilable) program. So 8 years in total.
 
Which was in ? Batch ?
 
@Charlie ActionScript.
 
Mac ?
 
@Charlie Hmm?
 
12:34 PM
The only mac I've used wasn't mine xD
@UniAhw well, batch/bash is fun too
Something Java'ish, is this safe code ?
byte[] buf=new byte[(int)file.length()];
FileInputStream fis=new FileInputStream(file);
fis.read(buf);
fis.close();
String[] data=new String(buf).split("\n");
return data;
In which 'file' is of type File
 
Internal error. Please report to youtrack.jetbrains.com

java.lang.RuntimeException: java.lang.IllegalStateException: @NotNull method com/intellij/openapi/progress/ProgressManager.getInstance must not return null
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:166)
    at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:66)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
    at java.awt.EventQueue.access$400(EventQueue.java:97)
 
I don't see anything from your side in there @Unihedro
Just IntelliJ being stupid
Are you using the right Java version with the right IntelliJ version ?
 
@Charlie It was just being stupid, works fine after refreshing.
 
@Unihedro Hmn, m'kay
@Unihedro Is this good code though? pastebin.com/T8uzSYJV
 
Pastebin sucks.
 
12:44 PM
hai
can somebody help me on this?
 
Heya @overexchange
 
-1
Q: How to redirect catalina log?

overexchangeAfter running the command, catalina.bat jpda start a separate console pops up with business code logs getting generated on stdout console. In order to redirect the logs i did the following change(>> %CATALINA_HOME%\logs\stdout.log) in catalina.bat file for below commands: if not "%JPD...

 
@Unihedro Blargh, what do you want me to use ?
 
Rant aside, what do you mean by "good code"?
@Charlie Some proper service like hastebin.com?
Or even better, gist.github.com
 
Well, if using a byte[] with FileInputStream is better than something with BufferedFileInputStream ?
@overexchange I'll see
 
12:46 PM
thank you, am stuck up here, because i want to see logs in parallel to debugging
 
@overexchange That's got nothing to do with Java
 
@Charlie It's jpda.
 
@Unihedro @overexchange But what's the Java error ? I don't see any error at all
 
tomcat server is also a jvm, Java mean not only prog language
error?
there is not error
i want to redirect the logs to some file
instead of shell console
so that i can view the logs
and analyse
 
Well, the problem is that you should (Correct me if I'm wrong) replace >> %CATALINA_HOME%\logs\stdout.log with > %CATALINA_HOME%\logs\stdout.log
 
12:48 PM
@Charlie There isn't.
 
Using Linux for over a year now, so I don't know Batch that well anymore :x
 
@Unihedro InteeliJ community edition doesn't support JavaEE :(
 
@ItachiUchiha use ultimate
 
Needs cash :/
 
^^
 
12:58 PM
:/
Use Eclipse :p
 
haha, yeah, that is the plan ;)
 
@ItachiUchiha
Can I talk about torrents ?
Hint hint
 
@Charlie Torrents are for noobs who can't use peer transfer and have to install software to do it for them which is virus most of the time.
Therefore they are always off-topic for Stack Overflow.
 
Ohw well, I'm a noob then
 
@Charlie what kinda torrent?
 
1:05 PM
IntelliJ Ultimate
 
well I don't prefer torrents for software. I use them for anime :P
I like to use legitimate software
 
@Unihedro simple.wikipedia.org/wiki/Newbie "A noob usually means a bad player in a game, or someone who does not know the rules of a community. " I haven't gamed in 3 months, and I joined the chat a day ago, so I totally agree
 
@Charlie That's "usually". In this context, this has nothing to do with gaming.
 
@Unihedro Ahw well, forget about it, I'm off for having lunch, cya guys
 
4
A: In the following SAS statement, what do the parameters "noobs" and "label" stand for?

ethrbunnyper SAS 9.2 documentation on PROC PRINT: "NOOBS - Suppress the column in the output that identifies each observation by number" "LABEL - Use variables' labels as column headings"

 
1:08 PM
NOOBS, speaking in RasPi's terms is "New Out Of the Box Software"
 
lolz
 
1:29 PM
Back
Is there a difference between 'null==x' or 'x==null' ?
 
Y=10/(double)X; vs Y=10/(X+0.0); vs Y=10/(x*1.0);
Any difference ?
Trying to make my code more professional :x
 
1:45 PM
@Charlie The most professional way is to build your own conventions and standards and stick with it.
 
@Unihedro What do most people use ?
 
@Charlie an IDE
 
@Unihedro For converting int to double
 
@Charlie Stay here for a second
@Charlie You know, for this specific case, just do:
Y = 10./X
double / int makes the compiler treat X as a double because of inferred casting by / operator.
 
Well, in fact it is "line.length()/colorSize;", both ints
 
1:48 PM
Then convert either (or both, but practically it doesn't change much) to double by casting. + 0.0 and * 1.0 basically does the same, except it's burnt on compiler level. And it's harder to trace in an IDE, so just use a cast: (double)
 
M'kay, thanks :D
Better way to do this: "String s=(X<10?"00":X<100?"0":"")+x" ?
Chat should have code tags :/
 
"String s=(X<10?"00":X<100?"0":"")+x" ? Of course it does.
 
Hmn, gotta leave anyway, cya gusy
Yeah, X should be x
 
2:05 PM
Gson rocks
 
@Unihedro I've read it as "Gson sucks" facepalm
 
Oops I meant Guava, Guava rocks :P
 
2:37 PM
Happy new year ! :)
 
Happy new year!
 
Hey guy, you like minecraft ?
xD
okay everybody is busy, nice :)
Brief, i am searching a good shell script developper, somebody can help me :) ?
 
You're hiring, or you have a problem so solve?
grabs a chair to sit in and listens; quietly hopes it's actually related to Java
 
you are searching a job at 16 years old ? why not x) but i'm here to ask some questions about asascript cause i have some problems to elevate my app to root user on MAC OS X
 
4 hours ago, by Unihedro
@ItachiUchiha I still want a proper job. Lost mine three times...
@Romain-p continue?
 
2:50 PM
okay ;)
then
i think i'll continue on a gist
 
Huh?
 
huhuh, wait x)
can you see that code ?
 
Yes, I'm not blind, and my internet works, thanks for asking.
 
Hey, i made that private, maybe i had to add you to a list, like private projects on Github
can you see my problem ? Look at the case: MacOsX
it doesn't work
 
You mean.. MacOS?
There really is no MacOsX anywhere.
 
2:56 PM
yes it's the same
stop quibbling srsly x)
you died ? :o
 
There is no MacOsX in java.swing, I just checked.
 
Why did you search that
 
okay wait
i thought that
i'm working with Windows but i tested this code on the computer of my friend & it doesn't work :)
also i'm asking firstly here; where is the problem ? and if nobody can help me, i'll ask this question on stackoverflow x)
 
I don't dare guessing, go for posting a question.
 
3:09 PM
okay x)
i've seen your profile
you worked for a minecraft network ?
 
@Romain-p Two.
The other is contracted | under NDA.
 
Okay
there is any players ?
 
Can't tell if you're trolling or not.
 
sorry if you know i am trolling
i'm french and i have some difficult
to speak english xd
 
Yes, there are players of the network, but both have shut down since, so they don't exist anymore, practically.
 
3:14 PM
Okay
i worked too for a french server ;)
but the server down by my fault, I put too much time to developp the new plugin x)
 
:P
 
Then i shared it
it's recent ^^
 
user4202350
Good Morimnng Guys and Gius
 
Hi guy :)
Happy new year
 
user4202350
Same to you too Roman
 
3:18 PM
thank you :)
by chance
 
hey @ShaU
 
do you know shell scripting ?
 
user4202350
@hey Unihedro
 
Happy New Year!
 
Happy new year!
 
3:30 PM
u too :)
 
And now down to business :)
 
Happy new year, visitors!
 
somebody know shell script ?
 
@SotiriosDelimanolis, did you have any other input regarding the thenApply-method being non-blocking?
 
@wassgren Why shouldn't it be non-blocking?
 
3:32 PM
@wassgren Yeah. The way thenApply, and pretty much most of the CompletableFuture API, works is that if the CompletableFuture has been completed by the time you attempt to apply the function, it will be applied in the calling thread. If the CompletableFuture isn't completed, it will be scheduled to execute in the same thread the supplyAsync Supplier is running it.
 
@Romain-p ?
@uni lambdas, yes.
 
@ItachiUchiha I figured it out, thanks anyway ;)
 
Itachi hi :)
 
@wassgren Here's a good article. Check the section regarding thenApply vs thenApplyAsync.
 
3:37 PM
Heya
 
@ItachiUchiha m having fun abusing interfaces :P
 
@Unihedro as in?
 
If @fge sees this code he'd puke blood
 
my problem is this one: i want to have admin privileges with my application cause it's an installer. I need anyway to access to specific folders and i have to run my jar as administrator. It works for windows & linux cause i found good wrappers, but it's more difficult on Mac cause i have to use osascript and it doesn't work.
 
lolz
 
3:38 PM
@SotiriosDelimanolis, thx. I'll read it, hang on..
 
@Itachi Then you can see: gist.github.com/Romain-P/53057c21131d2e599e96 at the case MacOs
 
@Romain-p are you creating an installer?
 
yes
 
I just feel happy that JavaFX provides inbuilt Installers :P
 
JavaFX = shit
i don't want this shit
 
3:40 PM
@SotiriosDelimanolis, good stuff! In the article it says: "The difference is in the async suffix on the method names. The methods without async execute their task in the same thread as the previous task."
The previous task in that example is being run in a thread from the fork join thread pool (not the caller thread). But, thenApply is called in the caller thread.
So, isn't what's happening the exact opposite of what the article says?
 
@ItachiaUchiha then, everythings work, i just want to fixe my shell script for mac :(
 
@Romain-p Nobody asked you what you want :P
 
Nobody yes
 
fge
Moo
 
:O
hides the crummy code
 
3:44 PM
Puke's Blood
 
@wassgren The article should probably clarify that it will run in the same thread if by the time you go to apply it, it hasn't been completed.
 
Hiya!
 
Heya!
 
fge
@Unihedro what code?
 
@fge I'm abusing interfaces :P
 
3:44 PM
It has blood all over it
 
@ItachiUchiha then ? I don't understand what you said :/
@ItachiUchiha do you know how to fixe my problem ?
 
fge
@Unihedro OK, I won't ask to view :p
 
@wassgren I'm going to edit your answer with an example that will demonstrate this. Just remove it after.
 
@Romain-p I am aware of what you are using, but you need to wrap the Mac OS X Authorization Services
 
@ItachiUchiha Osascript do that
 
3:49 PM
If I correctly remember there was a simple library called as AuthKit
@Romain-p Ahh! So what is your problem?
 
@ItachiUchiha The code is made, but doesn't work, i posted the code here: gist.github.com/Romain-P/53057c21131d2e599e96 . Look in method "elevateAsAdminitrator" case MacOs
@ItachiUchiha ElevateApplication *
you died xD
 
Well I am not sure what exactly is going wrong in here
I am not very well versed with the Osascript
You might look into this library, if you fail at your attempts to fix it
 
fge
4:06 PM
Aargh, JUnit really sucks
 
^ poor programmer being torchured
 
fge
I don't know who decided that it was a good idea to have class-level resources as static but he should have been killed at birth
 
@SotiriosDelimanolis, thanks for the great input. I have updated the answer accordingly.
 
I know right? It's not even bad design. It's abysmal. Calling it bad would insult other designs because none would ever be as terrible as that, even singletons.
 
@wassgren You're welcome. I'll clean up my obsolete comments. Happy Holidays (to everyone)!
 
4:11 PM
@SotiriosDelimanolis Happy holidays!
 
@ItachiUchiha it looks good but it's very old (2006 ?)
 
last updated 2010, works with MacOsX
 
4:24 PM
Back, did I miss something ?
 
M'kay
 
fge
final Year newYear = mock(Year.class);
when(newYear.exists("JUnit")).thenReturn(false);

final Developer dev = new Developer();

dev.enterYear(newYear);
// The following assertion is true
assertThat(dev).isHappy();
 
@fge lol
What is when() though ?
 
fge
@Charlie Mockito
 
4:28 PM
And, new Developer, should this be new Developer() ?
 
fge
@Charlie oops... Edited
 
How about new Developer("fge") ?
Because I don't care that JUnit exists :x
 
fge
Nah
I care about the future you
Don't use JUnit if you can avoid it
Use TestNG
For your own sanity
Please
 
5:06 PM
Good afternoon, Java!
 
user4202350
Sir its almost night.. so cannot say afternoon unless if you are blind.
 
If I were blind, I would say it's night, wouldn't I? xD
 
Hello everyone
 
user4202350
Then better avoid touching Banana if you are blind.
 
Hi @BrianJ
 
5:16 PM
I have a question in Android if anyone can help me? I asked here yesterday and made some progress but I'm stuck at the final hurdle
 
Sure
 
I have just posted it on Stackoverflow if its okay to link here? Its about writing exif tags to an image.
 
Sure
 
0
Q: How to write exif data to image in Andoird?

Brian JI'm trying to write a User_Comment and TAG_GPS to a captured image in an Android application, but for some reason the tags don't seem to be appended to the image when I view the image's details in the gallery. I'm using the exif interface to save the attributes to the image. Does anyone know if...

 
Good afternoon, @Michael!
 
5:22 PM
Hey @Uni
 
meta.stackexchange.com/a/246439/266094 I got 40 repz for 5932 characters written
 
@BrianJ You should be creating your File object like this: File exifVar = new File(directory.getPath(), "IMG_" + timeStamp + ".jpg");
And it looks like you're trying to write EXIF data to a new file.
 
user4202350
Hey Uni...
 
user4202350
Hey Mike
 
user4202350
Good Night
 
5:25 PM
Bye
 
user4202350
Hey michael...
 
user4202350
Hey michael ,,,,
 
user4202350
Hey @Michael
 
@Michael Thanks, so I just have to change the way I'm declaring the file?
and it should work?
 
@Unihedro I don't like that idea either.
@BrianJ Are you trying to create a new file, or edit an existing one?
 
5:31 PM
:p
 
user4202350
y mike is not respinding to me
 
@Michael , trying to create a new file, the image has just been cpatured from a camera intent.
*captured
 
So, the "exifVar" File already exists?
 
user4202350
@Michael hello good afternoon
 
user4202350
í͞ń̡͢͡s̶̢̛á̢̕͘ń̵͢҉e̶̸̢̛
 
5:35 PM
@Michael I'll post the complete class on Hastebin so you can get a better understanding of the class
 
That's not what I asked... :P
@ShaU hello?
@BrianJ What does exifVar.exists() return?
 
fge
Hello @Michael
 
hey
 
user4202350
@Ubica had klubnk?
 
user4202350
*lunch?
 
5:38 PM
lol Okay, exifvar is the path to a file captured by the camera intent,so it already exists?
 
Are you sure?
 
@Michael I'll try that code now
 
user4202350
soroy @Unihedro had lunch
 
@Michael the first line of code you provided is the same as I had, just without the "+ File.separator"
 
Not quite.
 
5:41 PM
@Michael I'll try the "exifVar.exists()" now
 
But that shouldn't matter...that was just a code change suggestion to make it easier to read.
 
... ... THIRTY HATS!!!
 
@Michael so I should be checking if the file exists first before creating a new file, I'll test that first, thanks
 
You don't seem to be adding the EXIF tags to the existing image.
 
Heya
 
5:49 PM
@Michael I'm a bit confused, exifVar is created from the captured images path so it should be writing to that image? or is that incorrect
 
The image path is incorrect
You're using the timestamp of the current time instead of finding the most recent image.
 
@Michael okay it saves the image though, the time stamp is part of the image name I presumed.
@Michael it just doesn't save the exif data to the image, but it shows in the device's gallery
 
3 mins ago, by Michael
The image path is incorrect
 
@Michael how can I find the most recent image instead of using the time stamp?
 

« first day (1531 days earlier)      last day (3415 days later) »