« first day (1664 days earlier)      last day (3276 days later) » 
00:00 - 20:0020:00 - 22:00

fge
12:08 AM
Not me
Hoo
Internal Java compiler error
 
12:46 AM
?!
 
1:01 AM
can anyone see whats wrong with this mysql?
Insert into ebdb.AppEvent (createDate, eventType, severity, details) Values (NOW(), "eventType", "severity", "details");
 
Wrong label syntax
 
how so?
@Unihedron
 
1:24 AM
@NickH Which part of "your label has wrong syntax" don't you understand?
 
 
3 hours later…
4:40 AM
Mornning
 
morning
 
5:02 AM
resConf.setSetOfResRoomsSv(new HashSet(confRooms));
confRooms is an ArrayList
Is there anyway that i can forcefully order the elements of the created HashSet ?
I can't change the setSetOfResRoomsSv() setter to accept an ArrayList or some other naturally keep the order. If i do so, there is a big impact to the existing classes
some help guys ?
 
5:34 AM
You can either put the elements in a PriorityQueue, then dump them
er.. ya that's probably your best bet for sorting the elements
 
fge
@CrazyNinja what do you mean by forcefully order? You want to retain what? Iteration order?
 
idk if it's what you're looking for; but here's an example of priorityqueue; it's ordered as you call it's remove() method. stackoverflow.com/questions/683041/…
 
5:47 AM
@fge i want to keep the same order what i have in my ArrayList (confRooms)
 
fge
OK, so that's iteration order then
/javadoc LinkedHashSet
 
@fge java.util.LinkedHashSet: Hash table and linked list implementation of the Set interface, with predictable iteration order. This implementation differs from HashSet in that it maintains a doubly-linked list running through all of its entries. This linked list defines the iteration ordering, which is the order in which elements were inserted into the set (insertion-order). ...
Note that insertion order is not affected if an element is re-inserted into the set. (An element e is reinserted into a set s if s.add(e) is invoked when s.contains(e) would return true immediately prior to the invocation.) (1/11)
 
fge
^^^ use that
Note: "with predictable iteration order"
 
Thanx. i'll try it
 
fge
But why a Set by the way?
 
5:50 AM
They have implemented in that way. I don't know why is that.. some how now i need to deal with it :(
 
@Woodrow thanx. that is something new to me
 
mhmm
 
@fge some serious science business; Though i did science in my high school, didn't get what they are saying
 
6:58 AM
Hey, can I throw Javascript questions here?
 
Well you can, @MadaraUchiha would love it :D
 
is he on? thanks @ItachiUchiha
 
on whom? :P
 
I mean is he online. hehe
@MadaraUchiha dude, is there a workaround to set dialog height and width of a modal window in IE10+?
 
IE twitch
 
7:00 AM
I hope he's on. My ticket is almost 2 months now. I feel so incredibly useless in my company
yeah, fvck it right. no choice in the corporate world
 
> IE sucks, no matter what someone says about it being secure.
> This is the reason Microsoft is putting it to sleep.
^^ But are they?
 
NOPE
hello Edge.
 
@MadaraUchiha and if possible no tweaking on the document mode. We need it on standard mode.
 
fge
@LeeJeong why don't you just join the JavaScript chat room?
 
7:03 AM
@fge because i love the people here. I fear new people. haha
 
^^ haha
@LeeJeong Give it a try, you got nothing to loose.
 
i'm on it now. idk either people are asleep or hates me now there.
((:
 
@LeeJeong No one hates anyone on SO. Some people are just stupid and get into your nerves. Just do not be one :D
 
:)
 
bleh
 
7:09 AM
!!urban bleh
 
@ItachiUchiha Bleh State of mind usually caused by boredom or a annoying situation that doesn't really causes any heavy emotional reactions.
 
!!urban meh
 
@ItachiUchiha Meh Indifference; to be used when one simply does not care.
 
!!urban duh
 
@ItachiUchiha Duh Duh means "No shit sherlock" and/or "Thank you captain obvious"
 
7:10 AM
interesting..
 
@LeeJeong "Modal window"?
 
modal pop-up.. sorry for that.
@MadaraUchiha dude you still there?
 
7:27 AM
modal pop up still tells me nothing
Code please
 
@ItachiUchiha no one's responding on javascript room.. :/
window.showModalDialog()
that method, it should show a modal, but on IE10, it shows a modal that doesnt respect sizes.
window.showModalDialog("/sso/modal.htm", new Array(window), "dialogWidth:" + modWidth + "px;dialogHeight:" + modHeight + "px;");
how do you format codes in SO chat?
 
7:40 AM
0
Q: Random order of a HashSet is always same until Server stopped

Crazy NinjaHashSet does not maintain the order of its elements. But I deployed my app to jBoss server and I was observing the order of a HashSet. It was random. But always had that same random order until I restarted my Application server. Anyone can explain this situation with underlying mechanisms? I w...

 
@CrazyNinja HashSet is not guaranteed to be ordered, but there's nothing preventing it from being ordered.
@LeeJeong Paste, CTRL+K, Enter
 
window.showModalDialog("/sso/modal.htm", new Array(window), "dialogWidth:" + modWidth + "px;dialogHeight:" + modHeight + "px;");
oh, thanks... that's my code
 
@LeeJeong I'm not sure actually. I've never used showModalDialog before, it's bad UX.
 
i know right? fvck it.
 
(I tried a minimal showModalDialog from console, and FF built-in pop-up blocker blocks it. lol)
 
7:45 AM
That because popups suck and no one likes them
@LeeJeong why popup?
 
that's existing code we support..
then the customer upgraded versions, and ...... code broken
@nhahtdh Im using IE. and.... :/ fvck this.
 
morning
 
hello guys
 
morning
 
@LeeJeong Sounds like a clever client
And sounds like it's time for you guys to upgrade your code as well
 
7:49 AM
right... thats whats going to happen.
@Gemtastic how was your project in JOOQ?
 
Rushed
 
and what happened, was it still a success?
 
For class, yes
But not good enough for me to be happy with it
 
1 message moved to Trash can
 
!!tell Unihedron sandbox
 
8:02 AM
@Unihedron Please go and play in the Sandbox
 
kk
 
fge
8:26 AM
@CrazyNinja the javadoc says that much; this is what (non) guarantees HashSet provides
Don't expect to use HashSet and have a predictable iteration order, full stop
 
HAMMERTIME!
 
fge
If you want that, again, use a LinkedHashSet
 
fge
Grrr, that internal compiler error gets on my nerves
I'd never have thought I'd encounter one :(
 
9:06 AM
@fge yeah. I resolved my issue using LinkedHashSet with minimal change to the existing code :)
 
Morning
Alternatively you could use a TreeSet (I think)...
 
fge
@Vogel612 a TreeSet guarantees natural ordering, not iteration ordering
 
@fge inb4 "I hate java" rant
from @Madara
;P
 
@Vogel612 yeap. I tried it. as fge said, it's only natural ordering, not insertion order
 
9:28 AM
!!urban inb4
 
@ItachiUchiha inb4 Generally used on internet forums, inb4 refers to a user posting a reply to a message/topic "before" another user posts an obvious response. When used appropriately, inb4 is followed by a word or short phrase that the user knows will eventually appear in the topic conversation.
 
@cp101020304 heya
 
Does anyone have any useful links to an algorithm that can find the largest independent set of nodes in a complete binary tree? I've tried google, but just can't seem to find one that is relatively simple and easy to understand
 
"relatively simple"
Relative to what?
There are tutorials online (fin).
 
9:33 AM
@Unihedron links?
 
fge
"independent set"?
 
@fge "Given a complete binary tree with node weights we want to find a subset of the nodes such that they are independent"
is the problem i'm trying to solve
 
fge
Well, define "independent"
 
@fge no edge between two nodes in a set
 
fge
9:37 AM
What? How are such nodes even part of the tree then?
 
@fge hold on i'll find a picture to explain
 
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
pffft
> A new version of IntelliJ IDEA is available!
... I just updated you
 
starting from the outermost leaf or what?
 
@Vogel612 does it matter which leaf you start from?
 
9:45 AM
sure, because the first leaf you mark as independent determines all others....
 
@Vogel612 oh yes sorry, have to start from the leaf and work up to the root
 
aaaaaaand IDEA is blocked again :(
 
where do you work again?
 
@Unihedron and the question goes to?
 
you
 
9:52 AM
ah, ok :D
 
~badCompanies.push(response());
 
location-wise, London. Company-wise, IG Index
started here about a month ago
may I ask why? or just mere curiosity?
 
1 min ago, by Unihedron
~badCompanies.push(response());
 
huraay
 
10:49 AM
Hello
I am using a JDateChooser -How do I disable/not allow the user to edit the text field that appears?
Hello
 
no idea
 
@Unihedron Okay, is it possible to validate it on focus lost?
 
@Giovanrich maybe something here can help you: stackoverflow.com/questions/tagged/jdatechooser
 
I realized that a user can edit that text field and enter date that is not in correct format
 
well, then just validate what the user inputs
 
11:13 AM
@Tavo How can I do that?
 
11:46 AM
Good Eve
 
@greenhorn Greeting with non-morning time phrases are off scope here.
5
 
LOL
 
12:14 PM
we should start using "ahoi"
 
No.
 
we should vote
 
Totally pointless poll: Star this message to vote for making non-morning time phrases greetings in scope.
Totally pointless poll: Star this message to vote against making non-morning time phrases greetings in scope.
 
is "ahoy" (merriam-webster says it's with 'y') included in the "non-morning" category?
 
Yes - ye shall only greet with "Good morning", unless it doesn't have to do with time at all, like "tadaima"
 
12:20 PM
IOW: I'm back
 
'ahoy' is not time-related either
 
Welcome back!
@Tavo it's not non-morning but it's also not a time phrase so you're good
 
cool. Now that I'm fully informed, I can vote. <sarcasm> Just like people did in the UK last week </sarcasm>
 
> It states that it is always morning when person comes into a channel, and it is always late night when person leaves. Local time of any member of channel is irrelevant. Resistance is futile. Your ass will be laminated.
 
That's why I don't greet with time-related greetings
 
12:31 PM
yup. Vote for "ahoy"
 
No
 
I'll stick to my guns. One day...
 
12:45 PM
"some strange, ugly issues." ... alternative way to call them? i mean in english
 
fge
@CrazyNinja heisenbugs
Or Schrödinbugs
 
Or Bohrbug
:D
 
fge
Uhm, not really, if anything Böhr's atomic model is deterministic :p
 
In computer programming jargon, a heisenbug is a software bug that seems to disappear or alter its behavior when one attempts to study it. The term is a pun on the name of Werner Heisenberg, the physicist who first asserted the observer effect of quantum mechanics, which states that the act of observing a system inevitably alters its state. In electronics the traditional term is probe effect, where attaching a test probe to a device changes its behavior. Similar terms, such as bohrbug, mandelbug, and schrödinbug have been occasionally proposed for other kinds of unusual software bugs, sometimes...
Oops.
One should read the complete page before linking to it...
 
I call it a Hawking Bug
 
12:55 PM
@fge Of course you were right!
> A bohrbug, by opposition, is a "good, solid bug". Like the deterministic Bohr atom model, they do not change their behavior and are relatively easily detected.
> A mandelbug (named after Benoît Mandelbrot's fractal) is a bug whose causes are so complex it defies repair, or makes its behavior appear chaotic or even non-deterministic.
> A schrödinbug (named after Erwin Schrödinger and his thought experiment) is a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.
> A hindenbug (named after the Hindenburg disaster) is a bug with catastrophic behavior.
 
1:15 PM
Hello Everyone.
 
Hi.
 
ahoy
 
1:54 PM
@Unihedron, that's an interesting way to get a badge, starred for amusing me. :D
 
Eh, I already got that badge so starring won't really help, but thanks :p
 
Oh, well it's the thought that counts then ;)
 
^^
 
 
2 hours later…
3:33 PM
Hey all. Anyone familiar with JNLP .xml logic? I am trying to set the content type within a JNLP since internet explorer doesn't want to open my jnlp files with WS. I found some oracle documentation which has the line : <%@ page contentType="application/x-java-jnlp-file" %> . Which allows the JNLP to open, but then gives a parsing error ..
 
:/
 
Not impressed?
I realize its sort of an xml question, but its relevant to java is it not lol
 
It is
 
fge
3:59 PM
@Dustiny what parsing error?
It may very well be that your file is indeed malformed
Or, well, invalid
 
I added that line I got from oracle at the very beginning of the jnlp as per : download.oracle.com/otn_hosted_doc/jdeveloper/j2ee101302/… . The error given is WARNING: <> tag is not closed correctly. The rest of the JNLP worked properly (and using chrome and firefox didn't give errors) without this line but IE doesn't like it..
More detail about my issue could be found here: stackoverflow.com/questions/30196177/… . Just figured someone in here may have ran into it before.
 
fge
Argh, IE
 
My sentiments exactly. Client's be stubborn though..
 
4:25 PM
IE6
can't get any better than that
 
@Unihedron
You were wrong btw :)
 
@NickH Huh?
 
the mysql syntax was fine
-1 for you
 
@NickH No it wasn't.
 
It was actually :)
 
4:30 PM
@NickH lol +1
 
run it through a validator lol
 
To be honest with you, I actually don't know whether it was actually fine, I just guessed so.
 
Ok - but thats not nice or helpful. You are leading people down paths of frustration for no reason.
 
Great!
 
Sigh. Kids.
 
4:33 PM
I love trying to help. Whether that's helpful is another thing altogether. It's not like my answers are always right.
 
then you should preface it with 'im not sure', if you're not sure
you sounded pretty confident that the syntax was wrong, when it wasn't
 
@Unihedron you deserve public whipping for that
 
@Tavo No.
 
you are plainly against anything I say
 
@Unihedron this isn't a place for trolls. You should leave if you cat that way.
 
4:36 PM
@Tavo Not plainly, only conditionally.
 
@NickH I think most cats are trolls at heart though.
 
4:51 PM
.
Hello @Unihedron long time :3
 
Hi there
 
u prolly won;t remember me
:P
was here last yr
 
... And you're right, I really don't :p
 
Another accnt :P
Since you're here and you are the one who can help me best
What is the best algorithm to solve the Travelling Salesman Problem?
Finding the shortest path
I'm struggling hard with it
 
I remember using a machine learning algorithm for that back in University. As for the specific algorithm I would need to look it up.
 
4:54 PM
The travelling salesman problem (TSP) asks the following question: Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city? It is an NP-hard problem in combinatorial optimization, important in operations research and theoretical computer science. TSP is a special case of the travelling purchaser problem. In the theory of computational complexity, the decision version of the TSP (where, given a length L, the task is to decide whether the graph has any tour shorter than L) belongs...
just google stuff up...
 
Can it be done in 3 hours?
 
you can probably do it in about 10 mins if you google it
I'm sure there are tens of implementations of each algorithm
 
The problem is I'm not sure what to use
Linked list?
HashTable
 
you asked about the algorithm
that has nothing to do with the implementation
 
I made an implementation in brute-force(i.e my own way of doing it) however I need to write a code with an efficient algorithm
So basically an implementation from scratch
with the efficient algorith
 
4:56 PM
just go to google and read a bit about it
 
fge
Aah, the TSP
An NP problem, that one
I don't recall whether it is NP complete though
 
fge
@Sabir try Djikstra's shortest path
 
there you have a full implementation
(not the prettiest though)
@fge it is not
 
@fge according to my friends Djikstra's is not good and I should use weighted/unweighted which I don't know
 
4:58 PM
(afair)
 
fge
It is not what?
 
@Tavo I don't have an adjacency matrix(I actually have this page opened on another tab lol)
I have a file that I have to load
it goes like this
A : B : 10
A : D : 12
etc
 
fge
Well, try jgrapht
It has algorithms to solve many graph problems
Including Djilkstra's and A*
 
Looking up for it .
Be back a bit later. Hopefully I can start something
I have to test the runtime as well and not sure how to do that.
 
5:17 PM
permutations.set((String)startNode+permutations.get(i)+startNode, permutations.get(i));
Why won't this work?
startNode is a string
permutations.get(i) as well is a string
Basically I'm trying to get the String of permutations.get(i) and manipulate it by adding the same string to it in beginning and end and replace it in the ArrayList
Ignore me please I made some dumb mistake :)
 
>_>
 
Hell is other people's code
I've spent the last 2 days fixing some "architectural oversights" in two pieces of open source code and I kind of want to burn something down.
 
@Kylar I can relate. I mess up all my assignments because we need to implement from the code they give us :(
nordehinu :3
^I remember this guy
 
Oh, my alt account which is now a chat bot?

SOCVR Testing Facility

Testing lab for the SO Close Vote Reviewers (with all their bo...
^ go visit it :P
 
@Unihedron what is the best way to compute a value and then store the value as well as it's string(in that case the definition of the value) and print them both out?
I have an arraylist of Strings
ABCDA for example
 
5:25 PM
@Sabir .toString()
 
Now I'm gonna use these values to compute a number
now I want to print ABCDE has a cost of number
 
you're going ahead of yourself
You don't even have an algorithm laid out to convert ABCDA into ABCDE
 
I already did
I made a permutation method
and stored the value in an arraylist
:D
I did it in like 3 minutes :D
Now I'm stuck
I have an arraylist of arrays
[A,B,10]
Now I have ABCDE as a string
I need to calculate the cost
AB = 10
so I need to figure a way to get the values from my arrayList and then add them together
 
6:17 PM
Evening
 
Hello
 
6:33 PM
@Gemtastic it's always Morning when you join chatrooms...
3
 
@Vogel612 see the poll
 
Hello
Anyone knows the best algorithm with a good implementation for The Travelling Salesman Problem?
I'm having a hard time getting one on Google
 
there's some questions about it on CodeReview.
 
I can't find a good implementation
I made a bruteforce and it works perfect
however I need an improved solution(i/e more efficient algorithm) I have 1 hour to complete this
 
Maybe you want to take a look at these questions
 
6:54 PM
Nice stuff. But I can't post mine on code review.
Since it's an assignment. I just need help on how to use my brute force code and find an efficient algorithm and implement it
 
Well good thing you still have plenty of time to do it, and you didn't procrastinate doing it until right before its due, right? ;)
 
No. I had 3 tests, got a wisdom tooth out, got an exception to complete an assignment for yesterday and been working on it the whole day(except for going to tutorials and lectures)
 
@Sabir You don't have to post it, you can search for other people's question about it and look at the answers
 
So I have like 3 hours
2.30 hrs exactly
I made my brute-force in 3 hrs
which is scaring me
 
Haha I was joking. I did my year long thesis in the last 8 hours before it was due. We've all been there.
(Maybe)
 
6:57 PM
Yeah. But my life depends on this, I may have to repeat the course if my mark isn't decent
lol
A thing that I don't get is how to actually generate a test case for my code
I made it with 4 vertices
 
@Sabir "need to find an efficient algorithm"... Why do you think did I link these??
 
@Vogel612 I found several, but not sure how to implement
I find it easier to write code on my own that looking at an algorithm which confuses me and now I am at the point where I have to learn how to implement an algorithm
 
7:44 PM
I'm curious if I should synchronize when I add or remove an element from a map. The
code can be visited by multiple threads:

I'm thinking of synchronizing them as follows:
* Clears the specified element from the cache.
*
* @param wsn the Well id to clear.
*/
@SuppressWarnings("boxing")
public synchronized void clear(int wsn) {
m_directionalSurveyMap.remove(wsn);
}
public Boolean add(int wsn, DirectionalSurvey directionalSurvey) {
    Boolean result = Boolean.FALSE;
    if (directionalSurvey != null) {
        synchronized (m_directionalSurveyMap) {
            m_directionalSurveyMap.put(wsn, directionalSurvey);
        }
        result = Boolean.TRUE;
    }

    return result;
}
I'm not even sure if I need to do that because it is instantiated as follows:
m_directionalSurveyMap = java.util.Collections.synchronizedMap(new LRUCacheMap<Integer, DirectionalSurvey>(10));
 
00:00 - 20:0020:00 - 22:00

« first day (1664 days earlier)      last day (3276 days later) »