« first day (1634 days earlier)      last day (3321 days later) » 

fge
1:11 PM
Weee
The goals of the project have expanded quite a bit
 
maybe is better...
 
^^ Makes me laugh
 
1:44 PM
how the crap....
private void writeInformation(List<T>  data) {
    boolean flag = data.get(0).getSomething().equals(CONSTANT);
}
^^ how the heck can there be a ClassCastException here?
 
does your getSomething() type throw a ClassCastException on equals()?
 
getSomething() returns a String.
 
What's T?
 
a special class which extends Map and provides some additional stuff
including "something"
 
Is it a generic type or a class?
 
1:49 PM
a class
 
Then I really have no idea.
 
it's java.util.HashMap cannot be cast to redacted.T
 
It's with the way you pass in the parameter to the method, no?
 
yes it looks like that...
because someone thought it might be acceptable to do:
List parameter = new LinkedList();
and then fill some stuff in there, later pretending it's T
 
there's your problem, it's a rawtype
 
1:52 PM
yes. and there's HashMaps in there
which obviously can't be cast to T
 
an unsafe cast threw it off
probably an inferred one
 
there is no cast.
 
Inferred cast, not an explicit one.
 
yes... when the paramteter gets passed to writeInformation.
 
then gg
@apiNote If you pass in a {@code List} pretending it's a <code>List&lt;T&gt;</code>, you suck
 
1:56 PM
ya kinda...
oh awesome... it's Maps inside Ts inside Maps inside Ts inside a Map in the Session
or something
anybody see a reasonable Data structure????
 
sup guys
does anyone know if stackoverflow has an R chat room?
 
@cp101020304 yes
 
somewhere...
 
i mean typing "R" in the filter bar doesnt really do much...
 
it is called "R Public"
 
2:01 PM
@cp101020304 R public.
Dammit, Sword :p
 
thanks @Unihedro @Sword
 

R Public

A general room for discussion of all things about and related ...
 
I see you've joined :P
and left
 
@cp101020304 had to , to send you the link
 
cheers mate
 
2:03 PM
I prefer python
 
@Sword not quite correct...
 
Python is a great chat room. Shame the language sucks
 
meh...
 
@Unihedro try saying that over there..
or wait , let me do the needful
:D
 
it's easier to start flamewars in Lounge<C++> soo....
 
2:04 PM
@Sword You can throw that out in the next session of Truth or dare.
 
lets see what the pythonistas have to say
join the room
 
Am in.
 
done!!!
:D
 
!!urban cbg
 
@Vogel612 CBG It stands for Chill Black Guy. Term became famous thank to the popular hip-hop hit CBG by Jay Ughh & Young Hawaii Slim.
 
2:09 PM
@Vogel612 y u no do salad?
 
salad??
 
u win this time.. @Unihedro
f.lux is a treat to the eyes..
 
Old news is always so exciting :D
and yes it is
 
And here's some latest news:
mine is 1 of the 65 votes that you got.
do downvotes reduce the vote count?
 
2:23 PM
What do you mean? Of course
 
o_O
so many haters!!
 
meh.
@Sword you're overreacting...
 
I thought many people are having their revenge.. :P
 
Nah, just blind voters.
I don't have a lot of rep, you see.
in Tavern on the Meta on Meta Stack Exchange Chat, 2 mins ago, by xkcdBot
1. Martijn Pieters (40/40): 7389
2. meagar (40/40): 4743
3. Jon Clements (40/40): 3931
4. Matt (40/40): 3521
5. Second Rikudo (40/40): 3397
6. deceze (39/40): 2663
7. Jeremy Banks (39/40): 1653
8. vcsjones (39/40): 663
9. Raghav Sood (38/40): 1948
10. Paresh Mayani (38/40): 1851
11. slugster (37/40): 1375
12. rekire (37/40): 501
13. Jason C (36/40): 1604
14. Moshe (36/40): 411
15. codeMagic (36/40): 326
16. Idan Adar (35/40): 171
17. Sergey K. (34/40): 795
18. Amit Joki (34/40): 46
19. Ed Cottrell (33/40): 1585
Statistically, candidates with higher C-score gets more votes.
I have 24/40, which is low
 
@Unihedro yeah , rep builds trust.. If you were around 60-70k u could have crossed a 1000 easily.
hmmm
 
2:36 PM
@Sword ikr
After I've done enough coding for the day I'll go answer stuff
gotta get that regex dupehammer :D
 
All the best !! ;)
dinner.. cya
 
Seeya!
 
@Unihedro close all the regex questions as Dupe of the canonical
 
3:25 PM
I voted for @second and @Uni
 
Thanks!
:)
 
~screams in agony
<rant>
WHO IN [HIGHER ENTITY OF CHOICE]'S NAME GOT THE GLORIOUS IDEA TO USE INTERNAL PROPRIETARY API OF ORACLE JDK 6 IN THE CENTRAL UTILITY LIBRARY OF THE COMPANY!?!?!?!?!?
AND WHY THE CRAP IS THAT NOT DOCUMENTED?!?!?!?!?!
AND WHY CAN I NOT GET THE JDK FROM AN OFFICIAL SITE NOW???
A
AND WHY HAS NOBODY REALIZED THAT THE UPDATES OF JDK'S ARE NOT FOR EFFING FUN!?!?!?!
AND HOW THE HELL AM I SUPPOSED TO IMPROVE THE LIBRARY NOW?!
</rant>
 
@Vogel612 Now who's been rubbed the wrong way? ;P
 
thanks for the smile
@Gemtastic I have...
the funnier thing about this is that my (senior) coworker's first reaction was: "Oh I bet it's Linux's fault"
and the next reaction was "Oh I bet it's your fault because your buildscript isn't working" (which it provably does T.T)
and the one after is "Dammit I told you to use oracle jdk 1.6.0_23 ages ago"
 
3:45 PM
>_<
 
and 20 minutes of googling later I found an official Api, which does the same thing, in a shorter way and better without relying on internal classes
 
Hey everyone :)
 
Hiya @JayGould
 
Hows it going @Vogel
oops
 
hmm... depends
who's asking and why ;)
well I was about to rip someone's head off about 20 minutes ago
 
3:50 PM
Work going well then? :D
 
now I am chuckling
so ya, work's kinda going well...
 
@JayGould Hi!
 
Hey @Unihedro !
Are you all java developers by job or students? Feeling like one of very few newbies :D
 
I'm both!
 
How are you finding it?
 
3:52 PM
What do you mean? Java, being a java developer, or a student?
 
developer :) I'm more than likely going to be looking for an internship with Java (it's great, finding it fun) so trying to find out how the jobs typically are.
 
question:
 
WAIT
Commitstrip.
Ok, ask now.
 
considering a map declared as: Map someMap = new HashMap()
and a map Map<?, ?> someOtherMap = new HashMap<?, ?>();
 
http://www.commitstrip.com/en/2015/04/14/coders-priorities/
CommitStrip - Blog relating the daily life of web agencies developers
Coders’ priorities
CommitStrip
1429026881
 
3:56 PM
why does someMap.entrySet() return a Set<Object> and someOtherMap.entrySet() return a Set<Map.Entry<?, ?>>?
 
@Vogel612 which exactly don't you get?
=javadoc Map#entrySet
 
@Unihedro Set entrySet(): Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation, or through the setValue operation on a map entry returned by the iterator) the results of the iteration are ...
undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.
 
I don't understand why it's an Object if I didn't explicitly specify the generics
I assumed a rawtype declaration to infer ? into the generics
 
@Vogel612 no, ? isn't only a wildcard, it's a wildcard capture of Object
umm
Rawtypes has no generics, so anywhere it needs a return of T where T is erased by a rawtype, you get a delegation to Object
 
4:11 PM
but why is Map.Entry<(rawtype), (rawtype)> an Object and not a Map.Entry?
I'll be commuting now... responses may be delayed or unintelligible because of mobile chat...
 
Might be a java 6 thing...
Or even worse, an eclipse bug
 
fge
Using both Eclipse and SVN? You masochist
 
Meh.. not too many new things at once you know?
Uni mind trying an enhanced for-loop? ?
 
4:29 PM
That's an Object, yeah. But only because entryMap().iterator() is Iterator of rawtype.
Which is expectable.
 
^^ideone "repro"
But it shouldn't be.....
 
Why shouldn't it? entryset().iterator() for a rawtype Map is a rawtype Iterator
 
But entrySet reurns set <Map.Entry> which is not Set<rawtype> and not Set<Object>
So where does the loss of Type information come from?
 
user201891
type gremlins
 
#javadoc java.util.Map.Entry#iterator
=javadoc java.util.Map.Entry#iterator
 
4:43 PM
@Unihedro Sorry, I can't find that method. :(
 
=javadoc Entry#iterator
 
@Unihedro Sorry, I can't find that method. :(
 
really? problems with inner classes?
=javadoc Map#Entry
 
@Unihedro Sorry, I can't find that method. :(
 
It's a set iterator..
 
4:43 PM
oh
=javadoc Set#iterator
 
@Unihedro Iterator iterator(): Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
 
That doesn't explain the loss of type information....
 
I'm staring at the JDK code.
 
Ugh... Migraines suck >_<
 
Yeah it does
 
4:50 PM
Huh.
 
I feel like someone put a bullet in my head :(
 
entrySet().iterator() is Iterator, but Set<Map.Entry> set = entrySet(); set.iterator() is Iterator<Map.Entry>.
 
@Gemtastic I hate when it attacks me
 
@ItachiUchiha Then you know my pain D;
 
0
Q: Why am I losing type information?

Vogel612I have found something interesting to happen with Maps, rawtypes and generics. Following code: static { Map map = new HashMap (); Set <Map.Entry> set = map.entrySet (); for (Map.Entry entry : set) {} // fine for (Map.Entry entry : map.entrySet()) {} // c...

 
5:02 PM
@Vogel612 IKRweird
instead of iterator would it be better to have foreach?
I mean, iterable
tagging, that is
 
Feel free to edit.. mobile is a royal PITA
additionally I'd say...
 
Set <Map.Entry> set = map.entrySet (); is an "unchecked assignment" which is allowed. That is what allows the first iterator to work. You can achive the same result by making the cast explicit in the second case:for(Map.Entry entry : (Set<Map.Entry>)map.entrySet()) { }Richard 1 min ago
Actually, to make it clear, entryset is still rawtyped. :p
 
Soo.. the rawtypes 'bubble up' the type inference? Isn't that a bug?
 
Generics in Java are broken, just like deep inheritance.
 
5:18 PM
Generics are just syntactic sugar, and they're too easy to get wrong. They can make writing code quicker and more self-explanitory, but they're prone to epic mistakes. Autoboxing is worse.
When people start treating primitives and objects the same... whew.
 
5:30 PM
@Unihedro, you can only refer to Map.Entry if you've declared the generic types in the declaration. By using rawtypes you've changed the method contract. The Javadoc for the generic classes doesn't mention that they return rawtypes if the type information is not given (e.g. List.subList, but that is how they are designed. — DavidS 7 mins ago
TIL
 
user201891
Whoever wrote that is a scholar and a gentleman. Bravo to him.
 
3
A: Why am I losing type information?

RichardI think the short answer is that Java allows "unchecked cast" in some situations but not others. Dealing with raw types (Generic types without a specified type) is one of these instances. Keep in mind that for (Map.Entry entry : set) is equivalent to: Iterator it = set.iterator(); while (it.has...

^ Brilliant, clear and concise!
@DavidS Haha, that's true!
 
5:45 PM
I'll tell Josh all the complaints about generics next time I see him.
"People say they're horrible. Worst thing in Java ever!"
 
:)
 
And his answer will be "N00bs don't deserve true generics!"
 
He'll say something like "Neil said the same thing, dammit."
LOL
 
^^
@Gemtastic Java doesn't have true low-level generics to begin with. ;)
It's all just... sugar...
 
@Unihedro Like I said, they don't deserve true generics. They get this fake non generics version ;P
 
5:47 PM
@Gemtastic Gotcha ^^
 
You don't get real sugar, you get corn syrup!
 
merh
 
tastes fine to anyone who don't know better ;P
 
so true
 
And it's not really that healthy either..
 
5:48 PM
I am tired and I shall sleep, enjoy yourselves!
 
Adieu!
 
Night uni
 
Mata ashita
 
Oyasuminasai Uni-kun ^^
 
:O yuni-kun
Oyasuminasai
 
5:53 PM
Anata no namae wa Yuni desu ka? Kawaii~
 
err yuni-chan
 
Did you understand what I asked?
 
Your name was (has been?) Yuni? cute
namae is kana for "name", right?…
 
I asked if your name is Yuni since you seemed to correct me
 
I have no idea. xD
Yeah, I fixed your suffix because I'm younger (?).
Actually, my limited knowledge of Japanese isn't helping here. xD
 
6:05 PM
There's no y defining that XD
I'm calling you -kun because you're younger
 
Ohh
 
I could call you -chan, but considering you're my programming sempai, I think -kun is more apropriate
 
Chan, Kun, Sama, San?
 
-chan mean "cute little", it's normally used for girls, but it's totally ok for older neesans like me to use for shounens like you :P
 
Oh.
 
6:08 PM
Just like how bosses usually refer to their female subordinates as -kun
 
Ok!
 
:)
 
> Kun

Overview: This is where you start getting more casual. Kun is primarily used when refering to other males, usually by someone of high status to someone younger / lower status than them. A good example would be a teacher talking to a (usually male) student. Some (masculine) females get called (name)-kun, though this is less common.
TIL
 
I have no idea who wrote that XD
 
> Chan

Overview: Now we’re in deep waters. Chan is primarily used on children, female family members, lovers, and close friends. Really, it’s a term of indearment. Often times, one’s name will be shortened to add chan to it. For example, I get the Ko-chan treatment instead of Koichi-chan, which just sounds awkward.
Oh dear.
I was right about the name shortening part at least.
Welp >_>
 
fge
6:11 PM
-dono, -sensei, -senpai, etc etc
 
Night!
 
What do you mean by shortening? With the y? No, that's never happening, especially not with a y since the Y alone doesn't exist in japanese :P
 
Kyu?
 
Ya, yu, yo <--
きゅ = Kyu
Which is a Ki and a tiny yu
 
I think Uni in Universe is pronounced with Y.
 
6:12 PM
No, they call them X and Y university to avoid being sued
 
:O
 
Japanese lessons?
 
TIL
 
I believe they even write them in roman letters.
 
What's TIL?
 
6:13 PM
!!urban TIL
 
@Unihedro [TIL](http://til.urbanup.com/4190243) T.I.L. (Today I Learned)
Often used as a space saver on websites such as Reddit or DIGG when writing the titles of links to interesting things the submitter has learned that day.
 
Today I learned a lot
 
@Unihedro Thanks
 
きょうはようくやったね~
 
"I did well (something good?) today" or something :D
 
6:24 PM
Today was great, wasn't it
:P
 
@Gemtastic うん!今日は素晴らしいです
And the credit goes to Google Translate :D
 
6:44 PM
うん!素晴らしいですよ!
 
いいですね
 
Eh.... japanese
 
7:07 PM
Guguru-honyaku warui desu.
(Google translate sucks.)
(Somewhere along those lines.)
 
haha
 
(I should also mention that I don't actually know any significant amount of Japanese; I read a book and that's about it.)
 
7:25 PM
Is it possible to, in a debugger, look if a ResultSet object have any further entries?
Without actually advancing things?
 
@SecondRikudo What do you mean by further lines?
 
@Mr.777 Corrected. I mean entries.
 
@SecondRikudo Isn't there a size property?
 
@Mr.777 nope.
 
How can I have ListView displayed as a Grid in JavaFX? I am aware of ControlFX GridView but it misses alot of basic functionality.
 
7:36 PM
Don't you just put it in the grid O.o
Did you even try googling?
 
7:50 PM
@Moiz You do not need ControlsFX :)
+ I don't get what you mean by ListView displayed as a Grid. Can you explain yourself?
@SecondRikudo resultSet.hasNext() is what you are looking for
 
@ItachiUchiha Thanks
 
An ubuntu question. I just installed an application, how do I locate its executable?
whereis name doesn't work
neither does locate name | grep bin
 
8:21 PM
@ItachiUchiba what are you trying to locate? Did you try "which"? like "which java"
 
I installed an application name scenebuilder. It is correctly installed and I am using it, but I need to link it to my IDE and I can't find the location it is installed at :/
itachi@Itachi-PC:~$ which scenebuilder
itachi@Itachi-PC:~$
 
can you run it from the shell
 
itachi@Itachi-PC:~$ locate scenebuilder|grep bin
itachi@Itachi-PC:~$ ^C
itachi@Itachi-PC:~$ whereis scenebuilder
scenebuilder:
itachi@Itachi-PC:~$ ^C
I guess the name is incorrect :/
@Kylar ??
 
Can you run it from the shell? or do you run it from the GUI
 
Did you install it just a moment ago? locate uses a index that is updated only periodically
 
8:28 PM
@Kylar I run it from the GUI
@kiheru I installed it days ago
 
ok. I'd try "locate -i"
or if it's installed through the normal package manager, it should be findable with that
(whichever it is that your system uses)
 
@kiheru That worked :)
 
:-)
 
It was hiding inside /opt
weird place get installed into
 
/opt is annoying. It was convention on some ancient systems, so people used to those were convinced that linux should have it too, so it made into FHS. Its use has never been consistent
(iirc it was not in FSSTND, but the misfeature got in at the same time it got named FHS)
 
8:44 PM
hmm
 
9:32 PM
Today I installed firebird...
It was installed to opt... which was empty before that.
On an unrelated note.... usually you can find a symlink to your executable in /usr/share/bin
 
9:49 PM
Ohh
Why do people talk shit in other rooms but people seldom strike out of work conversation in here?
Does it make the java room members more work centric??
 
You just seem to always miss it..
 
Talk shit?
 
Just esrlier there was some japanese, stuff about cool java things unrelated to work and yet earlier we were on about junkfood and militant vegetarianism
 
I can talk shit! That ItatchiUchiha is way too kind. All the people who can't even google get such nice and quick advice. He ruins our bad mood! ;P
Well... getting a convo going is so much easier when people reply XD
Or at least tell me my jokes are bad :P
 
Owwwww
 
9:57 PM
 
I need to be a BAAAAAAAAAAAAAAAD ASSSSSSS to make a convo started
 
@Kylar Yaay
You know how to make a derp gurl happy ^^
@ItachiUchiha I have a bad ass, does that count? ;P
 
shut up losers
 
Are you talking shit?
Meh :(
 
10:13 PM
@ItachiUchiha I have images that I need to be displayed like this controlsfx.bitbucket.org/org/controlsfx/control/gridView.png
The List needs to be responsive so it will flow horizontally as long as it finds the space to fit and then flow vertically.
I need basic features like Selection Model etc
 
@Gemtastic lolz
@Moiz Use a FlowPane
=javadoc FlowPane
 
@ItachiUchiha javafx.scene.layout.FlowPane: FlowPane lays out its children in a flow that wraps at the flowpane's boundary. (1/18)
 
FlowPane does not work on a model, my data is very dynamic and I would like to work on the model and not redraw the UI everytime model is update
 
;P
 
@Tanmay I will kick you out. RO's listen to me. Isn't it @Kylar :P
 
10:22 PM
Yep
First and only warning @Tanmay
 
@Moiz hmm
 
Anybody in the mood to call the flag crew??
Or can that message just be moved to the trash?
 
@Gemtastic Yes I did, please read the question
 
I did
 
@Moiz why not DIY? I doubt there's a prebuilt solution for this problem...
 
10:31 PM
A very basic question, what is the best way to update a class level reference inside inner class.
I know it has to be final or effectively final. But I have a reference which has to be updated. Best practices?
 
@Vogel612 Yes that is my last resort, I was really hoping someone had already faced this problem and implemented it.
 
@ItachiUchiha depends a little.. inner class static? Reference static?
@ItachiUchiha stop wut?? Effectively final? No why?
Are you talking anonymous inner class here? ?
 
Myclass {
       MyObject result;
       something.somerthing (() -> {
           result = someresult;
       }
}
@Vogel612 yes
 
I'd suggest using a setter if there is one...
 
yeah..it got through me but is that really a good idea?
 
10:35 PM
Bit aside from that... looks totally fine like that...
Maybe depending on context you may make things too complicated, but...
@Gemtastic you begin to realize how it frels to get asked questions that are easily googleable now eh?
 
@Vogel612 Oh I've known all along
 
lolz
the perks of getting knowledgeable :)
=javadoc AtomicReference
 
@ItachiUchiha java.util.concurrent.atomic.AtomicReference: An object reference that may be updated atomically. See the java.util.concurrent.atomic package specification for description of the properties of atomic variables.
 
Anyways nemuisugite bedouni ikeruyo
Oyasumi
 
what?
 
10:50 PM
@Vogel612 Oyasumi!
 
@Gemtastic did you vote?
 
@ItachiUchiha Yup :)
 
great
The fact that we have unlimited votes in primary election always makes me want to go and vote for someone else :P
 

« first day (1634 days earlier)      last day (3321 days later) »