« first day (1444 days earlier)      last day (3721 days later) » 
04:00 - 22:0023:00 - 00:00

04:02
Hey guys, anyone got a minute to help out?
I'm the only user online in the room, what's your problem?
@Vimzy hello?
04:42
@Unihedron hey man
I asked a question here and it was answered perfectly: stackoverflow.com/questions/26209842/…
it's just that I'm still having trouble understanding HOW to get those answers..
I really do need to understand it
 
3 hours later…
07:41
@ItachiUchiha hello man :)
08:36
1. Write good, on-topic questions such that other users wouldn't close your questions, instead potentially upvote them to give them more attention.
2. Use good, accurate tags such that experts of the fields who are subscribed to these tags will see your question and share their insights.
3. Get lucky. It's not everyday the users who are willing to write good answers answers your question.
 
1 hour later…
09:49
Is there any way of setting a timeout for a RS that actually works? If I type the wrong port number on purpose, the application never stops trying to connect..
10:34
hi everybody
@Unihedron, is possible to see if a String is a valid date with comma in middle, like this: 2009-01-18 00:00:00,2014-09-18 23:59:00
Define a valid date. I have no idea what you want.
If it's expected that the String is valid most of the time, parse with SimpleDate and catch for errors. If there is no parseerror, it's valid.
Otherwise, use regex.
yyyy/mm/dd hh:mm:ss, yyyy/mm/dd hh:mm:ss
Just that syntax?
10:41
yes
Hallo Java
if (string.matches("\\d{4}\\/(?:0\\d|1[0-2])\\/(?:[0-2]\\d|3[01]) (?:[01]\\d|2[0-3])(?::[0-5]\\d){2}, \\d{4}\\/(?:0\\d|1[0-2])\\/(?:[0-2]\\d|3[01]) (?:[01]\\d|2[0-3])(?::[0-5]\\d){2}"))
    // do whatever
@Sabಠ_ಠ hi there
Hallo @Unihedron
If you want to check for feburary - max 29th in date, etc, you'd have to use the parser
I need help with linked lists
10:47
try it out here regex101.com/r/wY3vD2/1
nice, thanks
heelo people !
@ItachiUchiha heya
Yo @Itachi
10:49
@Sabಠ_ಠ long time ?
Exam time
I'm late with Java as well
I need to make something in Linked List I can't get it
Basically find the integers greater
@Itachi @Unihedron
What?
I need to make a class Solution.java to make the linked list in ascending order.
I have no idea how
I need to use the 3 classes provided
:/
10:59
@Unihedron how I make yyyy-mm-dd, instead of yyyy/mm/dd?
@Goldbones replace all \\/s in the regex with -
Thanks
can anyone help ? :S
I need to practice a lot of linked list
yes you do
I'm not sure how to make the solution.java to generate the numbers though
@Uni can u help pls
11:23
Are you going to ask your question already? I'm still waiting!!!
I sent you the pastebin :O
I need to make a Solution.java class that will make the linked list in ascending order
.. and? it holds the main method? it invokes the methods provided? it calculates on construction?
it extends LinkedList
Then Test3B is the Driver class which will just output whatever happened in Solution
hi :3
hiya @Neil
11:37
Anyone good with Java and ResultSet here?
@Unihedron how you doing ?
Can't get my result set to stop trying!
@Sabಠ_ಠ cant visit this link
Sorry, I mean JDBC *
@Unihedron when are you planning to finalize the rule book
@miniHessel what is the problem ?
11:40
@Itachi where do I paste it? :S
I am using JDBC driver to connect to a sql database.. But if I for example enter the wrong port number in run time, the application don't stop trying to connect.. I would like a timeout
@miniHessel define a timeout
DriverManager.setLoginTimeout(10);
conn = DriverManager.getConnection(myUrl, "root", "root");

No timeout there ? :P
networktimeout perhaps?
11:43
try the edited
Cool, proposed my first Area51 proposal.
Now watch it get closed...
If I write the wort port, the whole application just freezes.
@Unihedron project title redacted ?
@miniHessel coz it trying to connect
@ItachiUchiha Yes, redacted title so I can actually take the screenshot without getting into trouble.
you should always keep the connection in try..catch
@Unihedron ahh.. i see :P
11:45
Ye, but should't it stop soon, as I have timeout ? :P
it's in a try catch
AFAIR, though I haven't worked with database for quite few days, if the port is wrong, it should throw an error instantaneously.
I actually do it like this: DriverManager.setLoginTimeout(10);
Connection c = DriverManager.getConnection(url, username, password);
11:47
I need to create a Solution.java class that extends LinkedList and turns the List I input in ascending order. If I can get this one, then I may try others such as descending order, odd numbers etc
Brb in 10 minutes
just freezes up here, even if I write the ip wrong.
final LinkedList list = new Solution();
I dont see a Solution Class here
@miniHessel hmm.. strange. It should ideally throw an error! Ahh, most probably you are trying to connect in the JavaFX Application thread, which when gets an exception, just hangs the UI !
hmm, that could be it ye.
so I should create a new thread?
No, you should try-catch the exception.
11:53
@miniHessel try to put in inside a Task and try
Hmm, a task ? :O
and I should do this even though I implement a connectionPool, right?
First try this here, I just want to know why is there such a strange behavior
Yo
11:58
Need to understand this task thing then
@Karl yo !
@mukeshvishwas welcome !
you need atleast 20 reputation to talk here.
Browse StackOverflow, ask questions, edit them or answer them and earn reputation !
@Karl heya
@ItachiUchiha should I implement task at the whole class, or just the method connecting?
@ItachiUchiha Browse [so], ask questions, edit them or answer them and earn reputation !
12:00
@miniHessel Read the Documentation!
@Unihedron I need this automated :(
I cant write a nice tag everytime
@ItachiUchiha Quick! Write a script to post automatic welcome messages!
lolz
What script works in SO ?
JS ?
There are python and C# bots on SE. There's no language-binding factor for building chat bots, you just need to wire up the server (your home machine most of the time), websockets, and your web client.
My machine doesn't work 24x7
My desktops run 24/7
12:04
Is this a SO Bot ?
Well, I have a file server, so it kinda NEEDS to
Our main computer just sleeps while everyone is AFK
I am slow @ItachiUchiha :(
@ItachiUchiha Yes it is. It works on Stack Exchange chat rooms.
@miniHessel take your time, read through the whole documentation. This is something you must know ! :)
@Unihedron I see ! Can be a reference..
@miniHessel I you already know how threads/runnable interface works, Task and Service will be a one day session :)
12:09
@ItachiUchiha I believe I don't entirely do
@Itachi ?
21 mins ago, by ItachiUchiha
I dont see a Solution Class here
but it's complaining that my sql class isn't abstract, so guess I got to read some more.
My server is being annoying...I hate that!
@miniHessel Don't try to implement it while you read :P
12:12
Haha, but I'm in programming mode :(
Try to make a small demo !
they only use strings and integers
@ItachiUchiha So you're going to build it in Node.JS? :P
@Unihedron is that a node.js script ?
@ItachiUchiha No it's JavaScript. And JS =/= Java.
12:17
@Itachi I need to make the solution class
I dunno how though.
That's my question actually
@Unihedron I know that
@Sabಠ_ಠ You should go ask a question on Stack Overflow. Tag it with .
Node.js is a server side scripting language written in JS
events are pain the ass in java :(
@Neil I disagree.
12:19
@Sabಠ_ಠ lolz, seriously ?
syntax is so easy in js
i am trying yo bind multiple functions in one event
to*
How do you make rainbow text with CSS?
i dnt knw :/
@Itachi I'm serious. I don't have time to learn it, so I need a code to learn from :/
Then I'll try descending order
I'll try odd numbers
sums
etc
@Unihedron i new in java
12:23
@Neil whats the issue ?
@Sabಠ_ಠ Your solution must extend the LinkedList class
@ItachiUchiha i am trying to bind multiple functions in event
using reflect method
and add any extra functionality that you need to add
so that i can invoke them by single function call
@Itachi Yeah
i am able to bind single method , but having trouble in multiple functions
12:25
@Neil If you just want different methods to be invoked inside one event, just call them inside the event handler
@ItachiUchiha can you give some reference to exact same concept ? I need to read
@Neil how are you doing this ?
@ItachiUchiha something like this ? pastie.org/9624718
@miniHessel Does this code even compiles ?
yes it does, but gets a null pointer :(
12:32
coz the conn outside Task body is null
I know, but can't understand how I should return the conn from the task
@ItachiUchiha i am working on a library . In which there is a function lets say bindMethod(String event, Method[] method)
and wants to invoke those methods like invokeMethod(String event)
i defined the hashmap<string, List<object>>
my problem is
i am unable to pass multiple methods as parameter in bindMethod function
maybe there is better way which i dont know
@miniHessel use a Future !
wow, so many new things today :p
but you don't have to make things so complex
12:37
i am able to bind single method using reflection api stackoverflow.com/questions/26096180/…
So how to simplify then :P
pastie.org/9624744 Like this @ItachiUchiha ?
Unihedron helped me in hashmaps , but stuck at this problem now
@miniHessel WTF ?
haha embarrassed
@Neil I am not sure what your problem is, I gotta rush now!
May be later
12:41
Seeya!
no problem , bb
@miniHessel later
@Unihedron c ya !
@ItachiUchiha later :) I will try to get this!()"/#)(!"#/)("! working
I can't fix this website thing... I'm trying to get a rainbow slider
Be amazing if someone can take a look at it: gist.github.com/Vincentyification/d7111e3e58112d616858
My fan fell off the heat sink of my video card on my server!
12:50
... Wow.
The mount MELTED!
Tell me about it!
I don't have many video cards laying around either...
@Unihedron is it not working ?
@Neil Nope, it's... red
12:54
i c
Which connection pool api should I use? c3p0?
bonecp I guess?
13:52
Do you seriously need maven just to install hikariCP?
@miniHessel You need maven for almost every single dependency now, it's stupid.
fuck, really.. Can't even understand maven, it sucks
I need to find a connection pool library that doesn't use maven and works.
The second part might be easy, as for the first... Good luck :o
is the UCP from Oracle good?
just bacause you don't understand it, it doesn't mean it's bad :P Though if you have issues understanding it, it's userfriedliness might suck a little..
13:56
it can use maven, as long as I don't have to use it to install it
@Gemtastic Were it within my power I would burninate every maven module, every maven engine, and all the surefire manuals ever printed, digitally duplicated, or hand-typed.
c3p0 actually uses a BASIC jar file
@Unihedron You really don't like it :P
I don't know enough to have an opinion yet :)
14:10
is ANT better?
Eh, you'll find yourself using ANT pretty often when you start deploying your applications.
Morning
It's a lot of work to set up if you're a starter, e.g. when your codebase < 12k bytes in bytecode
Morning @spoulson!
:@
This is what makes me think of Java the same way I think of horse shit.
Well, at least it's "write once runs everywhere" (with occasional NullPointerException crashes, but it's OK)
14:13
anyone tried Oracle's own ConnectionPool then?
I guess that means I can download apache connection pool without maven?
Does it work though?
all the PMS color went away?
gg no re
IT FUCKING WORKS!
14:35
pms colours?
Pms has colour?
I wonder what colours PMS has
hi everyone!
14:51
hey
anyone can help with minimum triangle paths?
giving more info might be a good start.. :)
@mlwn haha yes sorry.. well basically, i calculate the minimum path from top to bottom in a triangle (i get the value) but now would like to display the actual path (which nodes it goes through) but i'm having trouble with that
hello @sach @mlwn
hello @Unihedron
14:54
@sachalondon are you displaying in a console ?? or GUI ??
@Unihedron hiiii (z)
:)
@mlwn it's a command-line program, so in a console
@sachalondon can you please paste what you have done so far on pastebin? or somewhere ??
so that we don't start a new solution all over..
@mlwn yes sure :) one sec
@sachalondon Let me try something.. I'll get back to you with some ideas...
@mlwn so as i said, i can display the minimal path value giving as input a text-format triangle - now i want to display the actual path nodes
14:57
@Unihedron do you know why in my properties file, something\u0020 and \u0020something dont work(do not introduce an empty space) and some\u0020thing (introduce an empty space) works?
@mlwn okay thank you! :)
@sachalondon would you pastebin some textfile with the matrix as well ?
@mlwn yes 1 sec
@Goldbones sounds weird
15:07
@sachalondon Obviously, you are considering negative numbers as negatives.. is that intended ??
@mlwn yes it's intended
@sachalondon if you try your example with the below paste, what do you get ? and what should you get ????
I think you should get 24... but you are getting 36
@mlwn just the minimal path value? or the nodes it goes through too?
I was checking the minimal path value first.. and I wrote that example...
shouldn't it be 4 + 3 + 3 + 2 + 12 ??
@mlwn Yes my code gives 36 and it's right, because from the second 3, you can't go to 2 as u only have the choice between 12 and 14. See what I mean?
15:13
I want to understand that thing well... I didn't understand why you can't go to 2 ?
because you can only go to the 2 nodes underneath the node, in this case you have 12 and 14 which are available for this 3
ahh... so it's like a symetrical trangle... not a straight angle one...
yes it's a symmetrical triangle, sorry for not being clear
is this a better preview ?
@mlwn yes, view it like that for understanding
15:16
yes, I don t understand. There is another form to put an empty character instead of " "?
@mlwn makes sense now?
@sachalondon Very... what I am thinking, is to show the minimal path by printing its elements in between brakets or <> ....
@mlwn just printing the elements as a sum so with the example i sent it would be : 7 + 6 + 3 + -11 = 5
What do you think ?
@mlwn Well, what I would like is when I run the code, it would display : "Minimal path is: 7 + 6 + 3 + -11 = 5" - currently, my code displays "Minimal path is: 5"
15:24
ok
one more confusion... why did you move from 7 to 6? and not from 7 to -3 ?
ok ok
I got all now
don't worry about that...
@mlwn ok ok, just in case : because otherwise the path wouldn't be smaller than 5
15:43
@mlwn so any ideas?
@sachalondon the way the code is structured, you cannot access the elements... *I am still thinking about it..
How can I send you the result, just in case you left the chat before I finished ?
@mlwn is there any way to send private message on stack?
I thnk not...
when do you think you will be finished?
I created a new room where both of us are in.. did you get a notification about that ?
15:57
yes
Good luck!
@Unihedron There is another form to put an empty character instead of " "?
16:20
posted on October 06, 2014 by Caroline Kvitka-Oracle

By Guest Blogger Timothy Beneke The final keynotes of JavaOne took place on Thursday, with the Intel, Technical, and Community keynotes. These keynotes cast strong glances both backward and forward at the platform and celebrated new technologies, especially related to the Internet of Things. Intel Joins OpenJDK Intel’s Michael Greene, vice president of system technologies and optimization

posted on October 06, 2014 by Caroline Kvitka-Oracle

By Guest Blogger Bob Larsen, Java.net editor Stuart Marks, principal member of technical staff at Oracle, facilitated a fantastic discussion about lambda expressions during JavaOne. A panel of gurus offered their diverse perspectives and answered questions about lambdas submitted via Twitter. The panel included Maurice Naftalin, principal developer at Morningside Light; Brian Goetz, Java langu

hi can anyone heere help me with something im working in java?
@Panthy what can i do for you ??
16:35
can we take this to a seperate chat?
Love is in the air
lol
@Goldbones you're so funny... :P
-,-
16:58
Hey everyone!
hai
anyone that has experience with HikariCP here?
 
1 hour later…
Tim
Tim
18:33
Hi, are there online official introduction and reference for Java, just like those on Python.org for python?
@panthy discuss about java in separate chat :O
? I was just answering Tim's question
18:53
@ItachiUchiha yo :)
Tim
Tim
@Panthy Is Oracle site the only one for official documentations?
@ItachiUchiha which chatroom?
Someone that knows anything about connection pools here?
19:11
I got a video card...
19:27
FINALLY. My server is up and running again
@kiheru Alive?
Hello, Java guys
Is it possible to capture a keypress globally with Java?
So if I press a key combo outside the application, the app would catch that
Also, is it possible to get a screenshot of the screen with Java?
19:47
@mateon universal key listeners are not possibke using java
20:03
hello..
@miniHessel yo
Tim
Tim
20:21
@ItachiUchiha which chatroom?
4 hours ago, by Panthy
can we take this to a seperate chat?
20:40
Hey @ItachiUchiha
20:55
@Karl heya, heard you got a new graphics card?
@ItachiUchiha Would it theoretically be possible with native methods?
Also, what about my second question, the screenshots
Screenshot might be possible
@Mateon1 Key logger is possible only with languages native to the OS
Would I be able to call a native method that uses C code that uses the Windows API so I would be able to do so?
i dont see y not
Okay, I'm going to look it up, maybe ask tomorrow
21:29
Yeah. Now my server is up and running again. I thinks I fixed other issues too
hello
anyone good at generics here
like knows a lot about it
is that a yes? C:
i can try
I have this groups variable
private Map<String, ObjectList<? extends Positionable>> groups = new HashMap<>();
well a map
21:42
ok
Now I want a method, that adds a group. Now I don't want to create a method for each objectlist type (e.g ObjectList<Object>, ObjectList<Temporary>) etc
so i made one:
public <T extends ObjectList<? extends Positionable>> T getGroup(String group) {
    return (T) this.groups.get(group);
}
Now, for that I need to do complex things to get my group e.g :
Manager().<ObjectList<GameObject>>getGroup("castlewars").clear();
Any way to make it more simple, without making method per objectlist generic type?
IF i could store types into variables, i could do:

Manager().<Type.OBJECT>getGroup("castlewars").clear();
makes it more simple
but its not possible i guess
store types into variables?
Well I just said my imaginary
where variables can hold a type and then be used in generics
i think you can with reflection, but i don't want to
well I am not aware of such thing
may be I am not the perfect guy for such questions
ah alright
04:00 - 22:0023:00 - 00:00

« first day (1444 days earlier)      last day (3721 days later) »