« first day (1470 days earlier)      last day (3470 days later) » 
00:00 - 16:0016:00 - 00:00

12:10 AM
sorry
 
fge
Well, that's OK ;)
I have a "musical ear", so I listen to all music styles equally
It just happens that my personal tastes lead me to jazz ;)
 
I like a lot of styles, but I'm serious though, I just can't concentrate on Jazz for some reason. It goes in one ear and out the other.
 
12:28 AM
:/
 
fge
Well, "jazz" is {over,under}defined anyway
There are still people who think "dixie land" when they hear "jazz"
But this is 2014, not 1964
EST, to quote a Swedish jazz band, is no dixie land at all
If I were to give a definiton of jazz musicians, it is musicians which can play anything, anywhere, at any time, and always in tune
 
:)
 
fge
1:14 AM
Grr, not satisfied with this level of documentation: github.com/fge/json-patch/blob/master/src/main/java/com/github/…
 
1:32 AM
O.o
Meanwhile:
Classmate: "Yaay! Let's celebrate passing the course!" Teacher: "You didn't pass anything yet, I haven't seen any code from you!"
 
 
1 hour later…
fge
2:40 AM
1
Q: How to prepare Unicode strings for indexing?

Oliver HauslerThis question refers to normalization of international characters for storing local names in indexes. I would like to discuss the problem in general and also hear about possible existing solutions (classes/libraries) in Java. -- In a global application, users enter their name and the applicatio...

This question deserves upvotes
 
fge
3:07 AM
You really have to wonder why, in 2014, there are still people using File instead of the vastly better Path
 
 
2 hours later…
4:57 AM
hi
 
 
2 hours later…
6:38 AM
Trick or treat!
 
 
2 hours later…
8:46 AM
Morning
 
user4136732
9:32 AM
can anyone answer for this question
 
user4136732
0
Q: Why class using scope prototype executes class using scope singelton in same package?

TerminatorIn java springs,class using the scope prototype executes the code of the class using the scope singelton,when the class using the scope prototype is EXECUTED. OUTPUT of the class using scope PROTOTYPE Constructor initilized!!! Automatic!!!! Singelton initMethod called!!!Singelton_Init_Destory [...

 
11:26 AM
I see everyone is busy enjoying their halloween :P
 
Seems like it
Or sleeping it off
Did you do your competition yet
?
 
Yeah.
 
How did it go?
 
Actually, three classmates went with me, our conversation went like this:
 
hi guys
can someone answer this question? stackoverflow.com/questions/26688819/…
 
11:36 AM
A: OMG, I finished it all and slept through the remaining hour after guessing all the multiple choice questions.
B: Only took me 20 minutes, I only knew the answers to three of the multiple choices.
C: Ya, I practically only did question 4, the rest were guessed.
Me: Wow, was it really that hard? I only didn't knew one of the questions where you have to fill in code...
 
XD
 
I took a quick skim when the ambassador collected the test papers, I'm probably the only person to attempt more than 3 questions where you have to write something.
 
Well, they weren't very into it anyway you said?
 
:D
 
Did you win or isn't it announced yet?
 
11:38 AM
@OiRc What's type lock?
@Gemtastic It has to be graded.
 
Ok :)
 
@Unihedron ???
 
@OiRc lock lock = new ReentrantLock();
 
@Unihedron i want to acquire the lock of the object passed to the function , not ot the object class, is it possible to do that?
 
@OiRc What's the point? That's not how locks work.
 
11:43 AM
i' m not getting you, really. what's wrong on how i' m asking? lock blocks object instance, so???
 
Maybe we should make Junior keep track on if we're AFK or not. Like !!afk getting pizza
 
Sure, why not? ;)
And when we get pinged it would help to point the user to the fact that we're away.
 
Exactly
Like !!whereIs user
we could have it listen for brb and afk and break it when the user speaks again
 
I should write them down before I lose track of the todos. :P
 
You should :)
I wish I knew how to do it, but I don't know how to add stuff for the listener :(
At least it's fun to make up ideas
 
11:51 AM
I should redo part of this. It's not very OOP atm. :P
 
Yeah :P
Well, I can't say much
I mean I can't even add stuff to it yet >_>
 
I'll document it :)
 
Yaay!
Though I should learn to read code as is
But it would be nice to know where to start >_>
Well, main obviously
 
Actually, it will be a good idea.
 
but.. meh
A good idea to learn reading it without doc?
 
11:56 AM
Todays' contest included code comprehension, where you're given some obviously garbage and whoever that have written it should be fired for writing inefficient loops, stupid magic numbers, golfed and definitely terrible code and have to figure out the output printed on the console.
 
I think the bad code is part of the test
But I dunno
 
Your stories of "proffessional" education coding is.. well.. it might actually be a herpaderp that wrote it
 
^ magic numbers and inefficient loops
Yes, the answers are f(2,0); and f(5,1);.
 
I don't know C though, but it looks terrible from what little I gather
 
12:01 PM
It's C++.
(The people just never realized they've coded in C++, not C.)
 
XD
That was what confused me; I thought you said you were doing C++ but that looked like C XD
 
Binary search is great :D
 
I don't know anything about it yet though
Uni, you needa teach me what you know so we hcan have great conversations! :D
 
Well, if you want to figure out if 1 exists in [2, 3, 4, 1, 5], what will you do? :P
 
In C++? No clue
 
12:05 PM
No, Java.
Actually, let's forget the contest altogether, cuz it was no challenge.
 
I'd do a char search
 
Oh? :P
OMG, JavaBot has a type error.
 
:O
 
Someone couldn't differentiate between JSONChatConnection and JsonChatConnection.
Oh well... To git blame! :D
 
You have the commit log
just browse it :P
 
12:09 PM
It's Vogel's fault! :P
Oh well, I'll fix
 
And I really need to practice comparing things >_<
 
hehe
Well, you can't fool git
 
fge
12:31 PM
Uh
2
Q: How to prepare Unicode strings for indexing?

Oliver HauslerThis question refers to normalization of international characters for storing local names in indexes. I would like to discuss the problem in general and also hear about possible existing solutions (classes/libraries) in Java. -- In a global application, users enter their name and the applicatio...

Oops
smack
You should at least Thread.currentThread().interrupt()
 
@fge Um...
I'm in this "OMG WHY ARENT THE HARDCODED MESSAGES GRAMMATICALLY CORRECT" mode
 
fge
github.com/Vincentyification/JavaBot/blob/master/src/main/java/… <-- the preferred exception here would be ExceptionInInitializerError
 
ok
 
1:06 PM
people at the MySQL and DB chat are sleeping..... so can i take my chances here to ask? not really DB specific,.. more of design
 
@LeeJeong I'm in SQL chat, they're hard at work most of the time, what is it you need?
 
ouch.. searched for database chat... and went to MySQL chatroom... everyone is gone there
anyway, here goes
what does auto increment do in database when two operations at the same time inserts a record? <- dumb question, but one part of me tell, that db would prompt an error of duplicate id or something..
im looking at mysql website now about it..
 
it gets indexed properly
 
you mean... even at the VERY same time they were going to get inserted... one would be greater than the other.?
one would still* be greater than the other?
 
Even in the same nanosecond
'Cuz that's how indexes works
 
1:10 PM
oh yeah!
got a question... when dealing with transactions... do you leave it to auto-increments or do you make a specific algo to create your unique IDs?
I really love it here!! thank you so much @Unihedron
for always saving my ass..
 
hello everyone
 
@LeeJeong You're welcome, new to Stack Overflow? :P
Hey there!
Nope, I see you've talked on Oct 4 as well
 
nope, not really new... :)
This another question:
when dealing with transactions... do you leave it to auto-increments or do you make a specific algo to create your unique IDs?
* i hope i was not spamming. i got the feeling that you had overlooked that messaged
 
Sounds like a design question for you, not sure if I should intervent. :P
 
yeah, if I am not new, can't I just say hello to you guys
 
1:13 PM
@ashutiwari4 hi
 
@Unihedron
@Unihedron my very concern only is just to make sure no two transactions have the same ID, so that i can refer to it correctly in the future..
 
@Unihedron Hi :)
well I have this confusion, is it recommended to make a separate class for getter and setters.
 
i guess, auto-increment already suffices?
 
Yes, I believe so.
@ashutiwari4 Separate class? Getters and setters are mostly a design thing. Encapsulation, check layer, or simply more OOP.
 
@ashutiwari4, newbie here... but would just like to ask why would you do that?
 
1:15 PM
So there's no recommending or not, if it's good for design, go for it.
 
@Unihedron thank you thank you!
 
I think it encapsulate things ... I usually make a separate class for beans and by instantiating class I use it .. But someone I know is a good programmer says not to do so .. He concerns more about memory and performance also
 
@ashutiwari4 Well, take a look at this:
 
Ya you can call me newbie :D
 
1. new constructs objects. This means that the Java Runtime has to reserve and allocate memory for your object.
 
1:19 PM
Good morning, Java!
 
Hey @Michael!
 
here it is evening in asia
;)
 
Hey @Uni
 
It's 21:19 pm
 
Not where I live. xD
 
1:20 PM
I'm finally working on the chat bot again.
 
@Unihedron where do you live.. Philippines here @21:20PM
 
I'd like to work on that sometime this weekend.
 
I'm going to redo the listener system first, so it actually works.
 
anyway lets help me :P
 
@LeeJeong HKSAR
@Michael Ok!
 
1:21 PM
@Unihedron where is that?
 
Hong Kong
 
I want to change the way the Javadocs are read...I think it might be better to pull the Javadocs directly from the web.
 
fge
Hello @Michael
 
@Michael I have an idea for that.
 
Hey @fge.
 
fge
1:21 PM
(btw, what are names in italics?)
 
@fge room owners
 
i see...
 
fge
Ah OK
 
2. Types are defined in its own file, which introduces disc space for the compiled object code and class files.
If unnecessary, you can get away with fields.
<chatbot idea = "Basically, my idea is that we can use a class forName on the environment; If it exists, we brute-force it into a URL with regex." / >
'Cuz that means it exists in JRE path.
 
But how would we get the class's javadocs?
 
1:23 PM
If need be, we can scrap from their HTML off the bat or something.
@Michael HTML Scrapping
 
@Unihedron Yeah, so what does "Class.forName" have to do with anything?
 
Unless you want to have the javadocs cloned, I can host all that as well
@Michael To check that the class exists before (brute force) conversion into a web URL, then get an exception
 
fge
Err, gentlemen... Java 8 has a new API for Javadoc, you may want to have a look at it
 
Oh?
 
Really?
frantically rushes to google it
 
1:27 PM
@fge Care to share a link? I can't seem to find anything. xD
 
Nothing here either...
 
Oh wow. That's incredible, thanks!!
 
@fge Eh, that's a "com.sun" class...
 
fge
Yes, that's the only problem with it :p
 
1:34 PM
:)
 
@Unihedron Should be more like "SELECT * FROM World WHERE "Someone" LIKE "%Me%" LIMIT 1"
 
@Michael (insert no limit joke here)
 
xD
Any other questions, @ashutiwari4?
 
Guess they're reading the documentation after we feed them with information :)
 
no not for now
 
1:40 PM
By the way, anyone seen the Github Halloween Theme?
in The SO Tavern (Free Snacks), 23 hours ago, by ProgramFOX
I like this Halloween-style GitHub contributions chart:
 
Haha, cool.
 
I have an @interface AdvancedListener interface, is it possible to define within @Target that it can only be used on type ChatMessageListener?
Meh doesn't matter, Type will do.
 
I'm not familiar with coding your own annotations. :(
 
It's alright, the toolkit is limited anyway.
I really want immutablelists though.
Ok, added guava as a dependency. :D
 
fge
@Unihedron, @Michael: you may also want to have a look at this: docs.oracle.com/javase/8/docs/api/index.html?javax/tools/…
 
1:54 PM
... JavaFileObject?
Because File isn't poor enough :P
 
@fge So that basically allows you to build a class's Javadoc from a Java program?
@Unihedron "File" is so 1.4
 
@Michael Right, Path ftw
 
xD
 
Morning
 
Hey @Joe.
 
1:56 PM
(Trashtalking in Java...)
Hey @Joe'sMorgue!
 
How are you?
 
Good you?
 
Waking up
 
fge
@Michael yep; in the same manner as you can invoke the compiler
(I actually wrote a compiler invocation for one of my projects)
 
What the red is import org.eclipse.jetty.util.MultiMap?
Well that's new..
 
1:59 PM
@fge Interesting.
 
fge
Also, if you want to salvage some code, this project is FreeNode's javabot, and it has a fully working ~javadoc command: github.com/evanchooly/javabot
You may want to have a look
 
:O
 
@fge Cool, thanks!
 
fge
It looks up the JDK API and also Guava and a few others
Works damn well
 
2:15 PM
Hi
when I deploy my app.war in jboss using jboss cli tell me the app.war is directory
didd you have any idea ?
 
Hmm, jBoss.
 
I'm getting frustrated. I found code about making buttons for Android in Java, and I'm reading it, and not seeing button references in several pages...
 
I've never used that before.
 
2:28 PM
Thank god for enummaps...
 
hey
private int getFreeHeight() {
    int height = 0;

    while (true) {
        for (War war : wars) {
            if (war.getHeight() == height) {
                height += 4;
                continue;
            }
            return height;
        }
    }
}
Basically i have a list of Wars, each war has an height
Now when creating a new war, i need to get a free unused height number, the height nubmer must be jumped by 4s so valid height values are 0, 4, 8, 12, 16, 20 etc
Is that a good way to find free height?
 
no
 
oh i think theres a little problem in my code
the continue continues the for loop not the while
 
@BenBeri The "break" keyword will exit whatever loop it's inside of.
 
@Michael Would you use a label in this case or a break?
break sounds more suiteable
 
2:37 PM
@BenBeri You got it.
Well, I don't know what your code is supposed to do, so that might not be the correct solution.
 
Yawn
 
I'm trying to start a Geronimo server and when I startup the server in the bin directory, it says its running in the background. But I go to my localhost and it's not loading. Can someone point me in the right direction?
 
Uni
is this approach better:
private int getFreeHeight() {
        List<Integer> heights = new ArrayList<>();
        for (War war : wars) {
            heights.add(war.getHeight());
        }

        for (int i = 0; true; i+=4) {
            if (heights.contains(i)) {
                continue;
            }
            return i;
        }
    }
 
???
For what?
 
@Tokencodingnewbie What port is it running on?
 
2:42 PM
Is that binary search or something?
 
I'm guessing the default one? 8080
I checked the log here and it says this.
Main not found
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
I googled the error and found a solution but it didn't work for me.
This was the question I found
5
Q: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize

user3301492When building a java 8 project with maven, for example $ mvn clean package I get this message: Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0 How to remove this message?

 
Guys! Guys!
 
Why do we have both /javabot-0.0.1/src/main/java/com/gmail/inverseconduit/JavaBot.java and /javabot-0.0.1/src/main/java/com/gmail/inverseconduit/bot/JavaBot.java??
And they're duplicated code..
 
@Unihedron No idea. xD
@Tokencodingnewbie What URL are you typing into your browser?
 
@Unihedron I dunno. Who committed it:P
 
No need to blame anyone :D
 
@Tokencodingnewbie What error do you get in your web browser?
It might have been Justin, he was moving stuff around.
 
Error code: ERR_CONNECTION_REFUSED
 
@Unihedron is it not advisable to use hyphens in naming of tables, columns etc in MySQL?
 
2:54 PM
@LeeJeong Correct.
You would need to backtick the table names otherwise: `NUMBER_OF_USERS`
Which is not good practice.
 
@Michael what a Intelliji :) !!!!
is a good IDE :), make the developpement very fast and very well
 
@Unihedron oh man.. that svcks.. i have been happily using it for a purpose..
 
@LeeJeong Oh?
 
@Tokencodingnewbie Do you see any errors in the error logs?
 
@Unihedron well, how about a period?
**googling
**googling
@Unihedron well, how about a period?
 
3:00 PM
?
 
i mean instead of using hyphens... can i use periods?
sample product-price would become product.price as column name
@Unihedron underscore, has been reserved for another purpose
 
"Database and table names cannot contain “/”, “\”, “.”, or characters that are not permitted in file names."
@LeeJeong yes
 
@Unihedron thanks man...
 
@LeeJeong welcome
BTW, I'm not an SQL expert, I just google everything you asked and give you what I sum up with.
shrug.
 
This is the log file it produced.
Main not found
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
 
3:09 PM
ehehe.. @Unihedron i think you are experienced enough... :) thanks much
 
        new Runnable() {

            @Override
            public void run() {
                monitorRooms();
            }
        }
() -> { monitorRooms(); }
... Right?
 
@Tokencodingnewbie Looks like it can't find the man method.
 
It's in the bin file right?
 
What's the bin file called?
 
C:\Geronimo\bin
 
fge
3:16 PM
@Unihedron I believe you can simply write this::monitorRooms
 
@fge Oh cool, thanks!
 
@Tokencodingnewbie No, what file are you executing in order to start the server?
 
I would assume everything would work out of the box. You should just be able to run the startup script to start the server.
Do you have your JAVA_HOME set?
 
whistles innoscently
 
3:20 PM
s/o\Ks//
 
@Tokencodingnewbie What happens when you type "echo %JAVA_HOME%" on the command-line?
 
It shows me the directory it's in
 
@Tokencodingnewbie And what directory is that?
 
3:30 PM
@Michael C:\Program Files\Java\jdk1.8.0_25
 
What is displayed on the screen when you run the startup script from the command-line?
A more descriptive error may be getting sent to the stderr output stream.
 
C:\Geronimo\bin>startup
Using GERONIMO_HOME:   C:\Geronimo
Using GERONIMO_SERVER: C:\Geronimo
Using GERONIMO_TMPDIR: C:\Geronimo\var\temp
Using JRE_HOME:        C:\Program Files\Java\jdk1.8.0_25\jre

Starting Geronimo as background process.
See output from C:\Geronimo\var\log\geronimo.out
 
@Tokencodingnewbie And what is in the "geronimo.out" file?
 
3:47 PM
Main not found
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
 
That's all?
 
Yes
Is geronimo not compatible with java 8?
 
I don't see why it would be.
 
I don't know. I'm new to all of this and I was told this was just install and run! and you'll be good to go.
=( Just want to learn about web servicesssss
 
Sorry, I've never used Geronimo before. :(
 
3:58 PM
AAAAAAAAHHH
The jar throws an exception..
 
00:00 - 16:0016:00 - 00:00

« first day (1470 days earlier)      last day (3470 days later) »