« first day (1516 days earlier)      last day (3439 days later) » 
01:00 - 16:0016:00 - 00:00

1:02 AM
hey guys
 
Hey @ItachiUchiha :D
 
Nice Hat ;)
 
You too. :)
 
OakBot Online.
 
@OakBot heya :P
 
1:06 AM
@ItachiUchiha Type =help to see all my commands.
 
=asd
 
@ItachiUchiha I don't know that command. o_O
 
It randomly goes down sometimes. Don't know why.
 
Are you logging?
 
Yes. There wasn't anything in the logs.
I have an uncaught exception handler, which logs all uncaught exceptions.
 
1:17 AM
Strange..
@Lucy welcome
 
//log uncaught exceptions
Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {
	@Override
	public void uncaughtException(Thread thread, Throwable thrown) {
		logger.log(Level.SEVERE, "An error occurred.", thrown);
	}
});
 
shouldn't it be thrown.getMessage()?
well anyways thrown will do its work
 
No, the logger automatically appends the stack trace to the log file when the exception is passed into the third parameter.
 
fge
@Michael where does your logger output messages at such level? If to stderr, are you sure that stderr is not just swallowed?
 
It's configured to print to a file.
I have it load the log config from a "logging.properties" file.
 
fge
1:27 AM
Your configuration, yes; what about the environment you actually run it in?
If the machine is Linux, you can try and answer that question
 
It's Linux.
 
fge
When the program is running and you know its PID, does ls -l /proc/PID/fd show an open descriptor to the file you think logs should go in?
 
It has logged such errors before.
@fge Looks like it.
l-wx------ 1 ec2-user ec2-user 64 Dec 17 01:29 20 -> /home/ec2-user/oakbot-0-0.log
 
fge
Uhh, what's with those permissions??
 
It's possible that the machine restarted for some reason or another.
 
fge
1:31 AM
What's more it's a symlink
What are the permissions of /home/ec2-user/oakbot-0-0.log?
 
Well, it's been writing to the log since I started it.
 
fge
(and those are strange permissions for a symlink)
 
Not sure what they mean.
"wx" means "write-execute", presumably.
 
fge
Yes
Oh, wait
Stupid me
The extract earlier was from /proc/XX/fd, right?
 
Yeah.
 
fge
1:36 AM
OK, that makes more sense
The posix permissions then show how you opened the file
Strange that there is execute at all, but that may be the JVM acting this way
 
Shouldn't there be an "r" in there too?
 
fge
Not if you don't open it for reading ;)
And you don't open files you write to for reading, right?
 
Well, the program doesn't need to read from it.
 
fge
Again: in /proc/fd, the symlink permissions will show how you have opened the file
In what mode, that is
Exactly
 
Obviously, I'm going to want to open the log file from time to time.
 
fge
1:38 AM
So, it opened it with write permissions
But not read
 
Makes sense.
 
fge
Of course, this only applies to that process
And I bet log4j2 is still stuck with Java 6- so it uses File and the JVM's implementation of it
With Java 7+, well...
That won't happen :p
(déjà vu? ;)
 
lolz
Log4j is used by legacy applications, they can't just move to java 7 :P
 
fge
@ItachiUchiha that is log4j2 here
 
Requirements

Log4j 2 requires Java 6. Some features require optional dependencies; the documentation for these features specifies the dependencies.
 
fge
1:55 AM
OK, attacking a THIRD filesystem with my base implementation -- Google Drive
 
Nice
 
fge
(that is, if I can get hold of a Java SDK allowing me to do that)
 
2:10 AM
yawns
 
@ItachiUchiha hello
 
i m doing unzipping file
so i m getting path like test\FolderManager\Company245\Project1\PrivateData\31images.jpg
but how can i change to forward slash
with ZipEntry
 
why do you need to fwd slash?
 
becasue in linux system uses forward slash
thats y
 
2:21 AM
How are you fetching the path?
 
no i m not fetching path its autometically created with ZipEntry.GetName(); method
 
if you just want the bck slash to change to fwd and considering the path is a string
 
and zip is created from windows and that os uses backward slash
 
fge
@AndoMasahashi read this
2
 
lolz, read that :P
 
2:24 AM
no its not possibel to convery in string because i m changing to string and replace with foward slash it produce error
 
fge
And, heh, @ItachiUchiha and @Mr.777 and me are working on a package whose role is to provide easier use yet
@AndoMasahashi then you want to watch carefully what we are doing
 
rofl
 
@fge just a min i m reading
@fge what u want to from that link
?
 
fge
@AndoMasahashi simple; you can manipulate a zip file using only "primitive" JDK APIs
 
means with java7.nio.
?
 
fge
2:31 AM
Yes
 
ok let me try
but how can i get that
?
 
Its in the JDK
 
Shutting down. See you later.
OakBot Online.
 
@Michael it restarted again :P
 
That's because I restarted it. xD
=about
 
2:36 AM
OakBot v0.0.2 by Michael | source code | built: 1 minutes ago | started up: A moment ago
 
lolz
that is cool
It has reached v0.0.2 ? xD
 
fge
Sooo, let's see
=javadoc Arrays.copyOf(Object[], int)
 
@fge Sorry, I never heard of that class. :(
 
fge
=javadoc Arrays.copyOf(*)
 
=javadoc Arrays#copyOf(Object[], int)
 
2:38 AM
@fge Sorry, I never heard of that class. :(
2
Which one do you mean?
* #copyOf(Object, int)
* #copyOf(Object, int, Class)
* #copyOf(byte, int)
* #copyOf(short, int)
* #copyOf(int, int)
* #copyOf(long, int)
* #copyOf(char, int)
* #copyOf(float, int)
* #copyOf(double, int)
* #copyOf(boolean, int)
 
@fge Well, didn't get to that yet. >.>
 
Haha, @fge :P
 
fge
slaps @Michael
 
Owwww
=about
 
OakBot v0.0.2 by Michael | source code | built: 5 minutes ago | started up: 4 minutes ago
 
fge
2:39 AM
How does it feel to be slapped by one of your peons?
 
/I laugh at the corner watching a dog and monkey fight
 
I feel...dirty...
 
@user3189321 you need 20 or more reputation to talk here
please answer questions, edit them and come back when you have reputation :)
 
fge
2:57 AM
Great stuff
Argh, sh*
Bounties have to wait a full day, but I want to award that one immediately
 
3:26 AM
=javadoc Function
 
Which one do you mean?
* java.util.function.Function
* com.google.common.base.Function
 
Hmm...
 
Morning :)
 
=javadoc com.google.common.base.Function
 
@Unihedro com.google.common.base.Function: Determines an output value based on an input value. (1/3)
 
3:26 AM
@Strider Morning :)
@Mic what does (1/3) mean?
 
@Unihedro how r u ?
 
fge
3:39 AM
@Unihedro wait, you still haven't mastered that part of Guava and you want to play with Streams? ;)
 
@fge :D
 
fge
=pecs
 
@fge I don't know that command. o_O
 
must... master... guava \ _ /
 
fge
@Michael teach Oakbot about PECS, pretty please
@Unihedro if you have questions about Guava, do not hesitate to ask me
I don't know all of it but I know a pretty large chunk of it
 
4:28 AM
=javadoc ArrayList
 
@ItachiUchiha java.util.ArrayList: Resizable-array implementation of the List interface. Implements all optional list operations, and permits all elements, including null. In addition to implementing the List interface, this class provides methods to manipulate the size of the array that is used internally to store the list. (This class is roughly equivalent to Vector, ...
except that it is unsynchronized.) (1/9)
 
=javadoc Label
 
Which one do you mean?
* ezvcard.property.Label
* java.awt.Label
 
@Michael where is javafx.scene.Label. I thought it supported Java8. Erhh..
 
5:24 AM
=about
 
OakBot v0.0.2 by Michael | source code | built: Today at 2:34 AM | started up: Today at 2:35 AM
 
6:05 AM
I'm learnding
 
learnding?
 
Also ralph: "Me fail english? That's unpossible!"
 
6:20 AM
@Gemtastic I thought it was a perfectly cromulent usage.
 
@ElliottFrisch thank you :)
oh well.. off to school
 
7:22 AM
greetings
 
7:32 AM
Morning
 
 
1 hour later…
8:41 AM
is there anybody using cassandra?
 
cassandra db?
 
What's that?
 
Its a NoSQL database
 
@ItachiUchiha yeah
@ItachiUchiha are you familiar with that?
 
@jesse Nope, btw its github and not gethub :P
 
8:55 AM
@ItachiUchiha got it
 
 
1 hour later…
10:09 AM
@uni der?
 
@ItachiUchiha Yes, I'm alive.
 
10:20 AM
 
@uni how do i check if a variable in unix has some special character or not?
 
"special character" - ???
 
I have a variable storing some string from a file, but while comparing the string it always fails.
I have this idea that some special character must have crept while reading the data and with the variable
header2=grep "Content-Type: " header | tr -s " " | cut -d " " -f2``
echo $header2
returns me "application/json"
while if [ $header2 != "application/json" ] is true
I have tried "$header2" as well
@uni
 
fge
Moo
 
agrees
I still have no idea cial character iswhat this
 
10:34 AM
Morning @fge
 
sory for dialect type, but I'm in a chess tourney :D
 
11:44 AM
Hmm, long lunch
 
Hehe
 
fge
12:42 PM
Hmm OK, I need help
What do you guys want to know about how to use the java.nio.file API?
 
1:02 PM
Yaay my first accepted answer!
I'm over 100p now :D
 
Congrats! :D
 
I can create chatrooms wee
 
You need 15 more rep to downvote!
 
Yep :)
So one more accepted answer? XD
 
Or go write something awesome and get two upvotes :P
 
1:13 PM
Well, I preyed on a very simple question to get that accept
 
fge
Prayed or preyed?
 
With e of course derp moment
 
fge
Simple questions abound on SO -- I'm just not interested in them anymore ;)
Not for core Java stuff at least
 
what's simple for you may not be simple for me :P
This was really simple though;
0
A: Accessing an Arraylist from Mainclass in other classes

GemtasticIf you put the arraylist in outside of the main() method and make it static you can access it through Main.nameOfArrayList.

And yaay my re-tag was accepted!
+2p ;P
 
1:16 PM
It's moderation hour for me now, so try not to answer what I'm about to raid-close.
@Gemtastic Congrats!
 
I will try
 
fge
@Gemtastic well hey, I've been doing Java for a while you know ;)
But I am still totally unable to create an ultra basic GUI app
 
quietly murmurs something about schools to self
 
What are schools? :P
 
@fge Yeah. I feel as if I should know more by now. I'm near 4 months into Java now
 
1:18 PM
@OlegKuznetsov institution buildings that teaches horribly
 
@fge Well, the 4 weeks I spent on FX you spent on something far more advanced ;P
 
in The SO Tavern (Free Snacks), Aug 21 at 10:00, by HamZa
hahaha dude. I was doing an internship 2 years ago (or was it 3?). Anyways, for the interview. It started with usual introductions etc... They were amazed that I didn't follow "programming course" at school so they asked me whether what I'm doing there. I told them the story that I'm self taught. So the interviewer wanted to test me:
- Interviewer: you have a website (he started drawing a basic skeleton of it: header, content, footer etc), how are you going to make this?
- I was a bit confused of the meaning, but I guessed that he wanted me to write code to make that skeleton. So I started
^ The PHP god speaks about schools
 
fge
@Gemtastic not more advanced, just different
 
@Unihedro I love that story
I read it when he posted it
Or maybe not
 
Yes, I remember showing you that, I'm just poking Oleg about it :)
 
1:20 PM
@fge GUIs really aren't advanced, especially not FX.
 
GUIs are just another component of programming.
 
@Unihedro Funny :)
 
Well, Swing might be... I heard a lot of people curse over that...
I'm trying to learn the web framework Spring
 
@OlegKuznetsov click on the timestamp to show it in a new tab and show all of it, it's wrapped currently
 
@Unihedro Yes, I've read it all
 
1:21 PM
But the teacher hasn't delivered shit so we actually had a meeting with the education headmaster today
the teacher is currently in a meeting with him
 
@Gemtastic Swing was the first (and only) GUI framework from the Java API I learned, after I learned that I just jumped into the world of OpenGL and completely neglected JavaFX until now.
I <3 opengl
 
We're waiting for him to get back.
 
@Unihedro OpenGL drivers - </3
 
Oh, you're supposed to be having the lesson right now?
 
@Unihedro I haven't looked into OpenGL at all. But maybe I should?
 
1:22 PM
@Gemtastic It's advanced and lots of maths.
 
Yep. I'm in school and derping
 
@OlegKuznetsov Do you have a prebuilt (as in computer)?
 
@Unihedro Not sure if I like that or not. I don't mind math and I love being 100% in control... but I'll have to get to that when I understand what exactly Spring does other than add annotations to my code
 
anyone good with UNIX here?
 
And for some reason we're learning JSP
 
1:23 PM
@Gemtastic possibly nothing
@Gemtastic JSP's deprecated.
 
@Unihedro What do you mean?
 
@Unihedro Exactly my point
So far the teacher taught us that spring does magic and automatically does stuff for us
 
@Gemtastic I'm not surprised. I spoke with a developer (the other one on embercraft.us/staff next to me) studying university in the US, they keep complaining about how school "game dev class" keeps teaching deprecated classes and libraries.
So, our leisure time hanging out on the Dev Chat skype group was basically him ranting over university.
 
At least we managed to pry out of the teacher that tomcat pretty much is the server container
 
Hehe.
 
1:26 PM
lolz
 
fge will disapprove what I'm saying, but eh.
 
@Unihedro But this isn't the US. This education is supposed to teach us what's out there in use, but not the deprecated stuff
 
@Gemtastic To me, schools are unreliable.
 
fge
Tomcat is a servlet container
 
Which is why we learned FX; Swing may be in use, but it's becoming abandoned in favour of FX
@fge Yes, I worded it wrong
The container for servlets inside the server
 
1:31 PM
@fge Google Drive... Why?? Google sucks!!!
 
fge
@Unihedro I don't listen anymore when you say that something sucks :p
(for whatever "listening" means on a web chat anyway)
 
1:45 PM
\o
 
@ZouZou Hello!!! Welcome to the room of Java!
 
if(unihedro.thatSucks()){
    fge.chatListener(remove);
}
 
:D
User.getByName("Unihedro").wait(For.event(message::matches("sucks")).success(() -> {
  User.getByName("fge").ignore(this, Integer.MAX_VALUE, TimeUnit.SECONDS);
});
Because code golf is so 1993.
 
Indeed XD
 
2:06 PM
not bad
 
Can't watch in school
No audio
 
aww
I always bring headphones to school whenever there's a programming lesson that day.. guess why :D
 
I don't have any to bring
 
oh :(
walks away quietly in sorrow
 
I mean, any that can survive the journey
 
2:44 PM
Cool, haven't used Google for a while now, their search mechanics got better!
 
fge
1
A: Find name of all files present in a dir inside a war

fge I want to get the file object of a file in WEB-INF/classes/templates based on name of the file With java.io.File, you can't do that. With the java.nio.file API, you can: final Path warpath = Paths.get("path to your war file here"); final URI uri = URI.create("jar:" + warpath.toUri()); tr...

JSR 202 ftw
 
3:12 PM
Nyugh I can't get javac to work >_<
 
:o
 
Stupid SO giving me the wrong link to put as a source >_<
\bin was enough
 
3:29 PM
Time to go home and make it work on the stationary computer :P
 
3:58 PM
Hey, quick question about regex, what to write inside the .split() function to split at ";" and ","
 
@charen ??
will [;,] not suffice?
I really should open up a web service for people to pay for me to write a regex.
 
:D
 
01:00 - 16:0016:00 - 00:00

« first day (1516 days earlier)      last day (3439 days later) »