« first day (1468 days earlier)      last day (3475 days later) » 

3:00 PM
I don't know :D
Maybe it's cooler
 
Hey everyone!
 
fge
@Unihedron OK, my turn; musicians having fun: youtube.com/watch?v=7ImemCb8XoA#t=43m44s
 
:D
@Appu hiya!
 
This error has been haunting me XMLHttpRequest cannot load api.example.com. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://requestserver.com:ip' is therefore not allowed access.
 
@fge O_O
 
3:07 PM
@Unihedron Howdy!
 
fge
@Unihedron the best part is not there however, keep listening ;)
 
I like the tetris extension xD
This is great! :D
 
I had seen many posts, but I still can't get my head around those answers. I tried many, but no luck.
 
fge
Tetris extension?
 
The person holding the ipad did a jam to the tetris tune
 
fge
3:10 PM
@Unihedron I am afraid I am missing a reference here... Link?
 
it's at 44:00
 
Does anyone have idea on that?
 
you need to add an Access-Control-Allow-Origin: entry to the XMLHttpRequest...
 
Ohai @Vog! You're still here!
 
I suggest you get into your fireproof underwear and ask the Javascript guys...
yea...
Question to you @Unihedron ..
what tact does "Guilty Filty Soul" from AWOLNATION follow?
 
3:15 PM
@Vogel612 Please ask :P
wth?
 
the meter...
3/4 8/8 6/8 7/4...
 
Well I am using ajax, but I think it has something to do with remote server that I am requesting to.
 
??? I have no udea
I'm conphused
 
@Appu the request you're sending is missing a field in the request header..
@Unihedron how do you count the tact for that song...
 
Oh,
Awolnation is a band right?
 
3:18 PM
solo artist band...
> A solo project of Aaron Bruno, AWOLNATION began as a .....
 
But I tried many times, still didn't work. Well, will try to resolve as best as I can again
 
@Appu again.. you need to add the header field to your request..
else your server will keep rejecting it..
alternatively you could reconfigure the server to allow requests without access-control, which is ...
not a really good idea mostly..
 
okay, but I tried to keep this option in different ways in my ajax request. The last one I tried is--> headers:{"Access-Control-Allow-Origin":"*"},
Code snippet---> $.ajax({
type:"GET",
url:"http://url",
headers:{"Access-Control-Allow-Origin":"*"},
params: {
'param1': param1val,
'param2': val2
},
contentType: false,
success: function(data){
console.log(data);
}
});
 
* won't help..
you need the URL you loaded the script from..
so to say localhost
 
fge
@Unihedron so, what do you think about the video? :p
 
3:24 PM
Yeah, it's great, surprising and the jazz were as amazing as always :)
 
okay, will try. brb
 
@Appu maybe you want to read this MDN article
 
3:38 PM
empty hash map, why! :@
 
3:49 PM
now @Unihedron what is the meter?
 
What's a meter?
 
about 100cm
 
@Gemtastic No, it had to do with the soloist's song
 
the tact...
the thing you squeeze the rythm in
that what the drummer is supposed to hold
 
@Unihedron I just wanted to be funny
 
3:52 PM
@Gemtastic ha
 
~clapping extremely slowly
 
:(
 
? :o
 
Well I got 5 internet points in IRC so, HA!
 
I was going to try to cheer you up, but since IRC is being nice today (amazingly).... :D
 
4:02 PM
:P
I got my new keyboard and mouse today
Nive and backlit
 
Do lots of people use Twitter?
 
Yes
Millions
If people in here are though, I don't know
 
muhahahahhh44h4h4h4h4h4h44h54h4
 
... Wait, I'm a room owner
Nope, not today -.-
 
:19696851 who z he?
 
4:06 PM
NOOOOOOOOO
@ItachiUchiha you don't want to know...
 
You will not kill my world!
Code Golf will dominate! It's inevitable!
 
Code REVIEW will dominate! It's inevitable!
 
haha...
 
Code REVIEW is scheduled for graduation and Code Golf (~shivers) ISN'T
 
That's because of Area 51 site graduation bars
 
4:08 PM
no.. It's official
 
It's official
1 message moved to Trash
There is no spoon.
ಠ_ಠ
 
oh come on, even that??
 
Get me out of here!!
 
I just got mail.
 
me too
 
4:10 PM
It says... Internet is down
 
it says request for link exchange of code review
wtf?
 
@Unihedron why the carp do you keep getting these mails "advertise my **** for me"?
or something...
why do people think you are SE??
 
shrug
the spammers should... learn to read
 
4:23 PM
I read "with a passionate interest in intimate things, such as physics"
Mmm babe, let me get some friction going~ just wait until I give you my laws of newton~
 
4:36 PM
I leave for a little bit, and the room goes nuts!
 
fge
@Joe'sMorgue you have some pretty "high" defintion of "nuts"; this room is not normal by any way, shape or form
 
I'm very attractive you know, my mass does it for me
3
Everything's a little bit attracted to you too
(still talking physics)
 
- Which coffee are you drinking?
- Java
 
hehe
 
fge
"I'm very attractive you know, my mass does it for me" -- bwahahaa... Quite a statement since the gravitational force is widely considered by physicians to be the lowest potent force in the known universe
 
4:40 PM
I never said my mass would force you
 
fge
@Gemtastic I didn't mean it in a negative way ;)
 
@fge interestingly it's the most persistent one, too...
and the only one that doesn't have two poles IIRC.
why is mass attracted to mass, and not anti-mass?
 
@Gemtastic Thank you.
Justin contacted me. He never got my request
 
fge
@Vogel612 the most persistent and the least defined/understood... Even though we now know that there may be such an entity as a Higgs field
 
may or may not, but all evidence points to it.
even though it seems we lost the higgs boson again...
 
4:53 PM
@Vogel612 They're redoing the experiment
 
@Joe'sMorgue Yeah,maybe you got the wrong user?
I don't get how people get their credit-card's information stolen...
 
@Gemtastic Some people can't use a computer.
 
Especially in my country where you don't even have to have credits attached to the card
 
5:13 PM
Hi
 
hi
 
I have this odd bug
I'musing a jfilechooser to get the path of a file and put it in a textfield
If the file path has a greater length than the legth of the JTextField\
then the JTextField resizes itself to display the path fully
which Idon't want
 
have you set a maximum size to the JTextField?
 
@MayukhNair that's a layout problem - the size of the textfield should have been constrained when you laid out the container
 
Umm so I should set a max size to the jtextfield and disable any auto resizing?
 
5:25 PM
Isn't that what you were just complaining about?
like.. you want it to be a fixed size?
 
night
ohai @Kylar, have a good day!
 
Hey @Unihedron ! Good to see you
 
My pleasure to see you
It's like 1:26 am
 
Hi. One question
 
We're building a chatbot for the room @Kylar, you might see it at work later :)
ASK
 
5:29 PM
private String larquivoid;

private String type;



public String getType() {
return type;
}

public void setType(String type) {
this.type = Settings.NUMERIC_FIELD_VALUE;
}

@XmlValue
public String getLarquivoid() {
return larquivoid;
}

public void setLarquivoid(String larquivoid) {
this.larquivoid = larquivoid;
}
 
That's not a question
Only when you have a question will you get an answer
or at least have a chance to
... Out of patience, night!
 
the attribute is not going to XML. Gives me an error:If a class has @XmlElement property, it cannot have @XmlValue property.
 
@Kylar
Yes I don't want it to change it's size at all
 
How can I mix these?
 
5:42 PM
Hey all
Hows everyone here..?
 
I'm fine and dandy
 
i have a very small but strange issue.. are you free to help me with it?
related to instanceof in Java
 
get going @Nezam
 
public String getString(String optionName)
{
if (options.get(optionName) instanceof String)
return (String) options.get(optionName);
else
return null;
}
 
@MayukhNair there's maximumSize, preferredSize, minimumSize and Size...
you could try to set them all
@Nezam y u do dis??
 
5:47 PM
@Nezam what's your error?
 
here options is HashMap<String, Object> @Vogel612
 
So I am setting maximumSize same as minimumSize, let's see @Kylar
 
@Nezam why isn't it EnumMap<Object> or rather EnumMap<String>?
 
my problem is that in the watcher when i debug i can see that the string is there with a value but still when i get it by getString(myString) gives me a null
 
have you tried isAssignableFrom() instead?
 
5:49 PM
@Vogel612 actually i am working on a open source code.. so i made least changes toit
 
scratches head
 
@Kylar
 
Options is a limited set of known things mostly...
 
ahh yes it has stopped misbehaving thanks
 
and Stringtyping HashMaps for useful stuff is... suboptimal
 
5:50 PM
@Vogel612 yes
my when i am getting it,it retrieves null..
 
that aside, what is, options.get(optionName).getClass()?
 
So what do you suggest?
 
isAssignableFrom()
or rather: String.class.isAssignableFrom(options.get(optionName).getClass());
oh and while you're on it: introduce a variable to lookup in the map only once...
 
@Vogel612 Ok i am on it
 
6:12 PM
@Vogel612 Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
 
your map already returns null...
 
@MayukhNair You shouldn't have to set the maximum size of a component - it should be constrained by the layoutmanager
 
yeah but the watcher shows not null
meaning obviously doesnt look null..
 
@Nezam:
 
@Kylar Nah, still doesn't work. Works on Windows XP but not on Windows 8
Signing off, about 12 in the night
Bye
 
6:15 PM
Shall i show a screenshot to you all?
 
The maximumSize thing works on Windows XP......run the same code onWindows 8 and it does nothing
 
@Nezam try sysouting the thing you get from the map..
 
@Nezam can you give me a bit more of the code? The map could be changing between calls. Make it idempotent
 
@Vogel612 didnt get you..
 
System.out.println("MapEntry: " + options.get(optionName));
 
6:16 PM
Am I a bad person for feeling schaudenfreude?
 
@Gemtastic that's actually ... normal?
 
@Nezam try this: pastebin.com/2UGptDHm
@Vogel612 No... it's not. and @Gemtastic Yes. You're a horrible human being if you're truly experiencing it.
I mean, everything is situational
If somebody is a complete asshole to you, then his car gets stolen... you might feel like that's Karma
 
@Vogel612 Two classmates of mine have been acting a bit cocky about coding, since they've been taking a java course before and self studied, and now they failed this course :')
 
but if, in general, you consistently take pleasure in the misfortune of others....
 
Oh dear, yes
 
6:20 PM
@Gemtastic Yeah, that's kind of OK
 
@Kylar I mean... who doesn't??
 
@Kylar Generally I don't... I think
 
somewhere, somehow...
 
@Nezam did that code help?
 
Objects.requireNonNull(optionName); calling in
 
6:21 PM
@Kylar just give me a moment..
 
@Vogel612 you're making it too complicated :)
 
@Kylar eeeh?? not really...
 
Remember the KISS principle, especially with less experienced coders
 
isn't Objects.requireNonNull(thingy); much KISSier than if (thingy == null) throw new IllegalArgumentException();??
 
No
 
6:24 PM
KISS? chuu chuu
 
Keep It Simple, Stupid
 
if(null == foo) { bar();} is a more universally recognized paradigm. And he's not trying to throw a NPE, which is what requireNonNull does.
Not to mention that you were talking about using EnumMaps - when that's completely inappropriate for his use case
:)
 
@Vogel612 In a way I wish some people followed that on CR
 
@Gemtastic you mean the askers??
or the answerers?
 
@Vogel612 No the answerers
 
6:27 PM
@Kylar eeeeehhh??
 
@Vogel612 when @Nezam was showing you his Map definition, you suggested he use an EnumMap:
@Nezam why isn't it EnumMap<Object> or rather EnumMap<String>?

And that's totally wrong.
 
"Hi I've been coding for about 8 weeks and I made this very simple thing just to see if my structure and OOP works" and I get two pointing out that my value generator for the cards isn't super advanced
:P
 
@Gemtastic Just take a grain of salt :) - They're trying to help
 
"I do not wanna visit your casino!"
 
@Kylar how so? Mapping something to a known limited set of constants is the Job of an EnumMap
 
6:29 PM
le list of cardgame rules I have no idea about :P
 
and not that of a HashMap<String, Object>
 
@Kylar I know, and I got two good anwers as well. Very constructive and answered ont what I was asking
 
At what point did he say he had a map of constants?
 
Very thankful for that
 
His entire thing revolves around Strings
which is a way more common use case than enum maps
 
6:30 PM
@Kylar it's named options... and you are mapping values to their optionName,.
you're completely missing my point...
 
Apparently.
 
short example, what would you prefer:
options.get(Option.PLAYERNAME);
or:
options.get("Playername");
 
You're assuming a non-changing set of predefined options
 
@Kylar correct...
 
Which is almost never true on OSS
 
6:31 PM
OSS??
 
Open Source Software, which he specifically mentioned he was working on
 
assuming you want to introduce another option...
why not add it to public enum Options??
 
What if you want the end user to be able to define their own options?
 
:)
 
6:33 PM
;P
 
@Kylar that's seldom useful for end-user software...
 
/me bites his tongue
 
@Kylar c'mon at least resist a little ;)
 
Nah. I've run the amount of energy I had with this conversation. I know I'm right, and that's enough.
 
also fine ;)
 
6:35 PM
@Kylar its still returning null
 
@Nezam what exactly... the method??
 
@Nezam if it's returning null, then it's supposed to return null
 
that....
 
there's no loopholes in there.
Either your map is null, your name is null, or the name doesn't exist in the map
OR it's not a String
You could convert it to a string if it's a non-null Object that's of a different type
is that what's happening? Did you store a Long or a Color or a Fish in there?
and you want the String representation?
 
hey
 
6:40 PM
hello
 
Hey @BenBeri - I see you got your sliding card thing worked out.
 
@Kylar i will show you guys the content.. give me a moment..
 
@Kylar Yeah thanks for your help man, but I used the other guy's method, idk it just worked as i understood it a bit
 
No worries! That's what we're all about
 
It's better to use what you understand, than what you don't. - opinion of a n00b
 
6:44 PM
Unless you only understand stuff that's wrong :)
 
@Kylar well, imo then you don't fully understand it :P
 
"People who are only good with a hammer see every problem as a nail."
 
Indeed
I'm more of a toolbox; I need tools in me to fix the problems. And I love new tools
And that didn't come out quite as intended
Joe had better not read that
 
 
Guys
what do you prefer more, raw arrays or Lists?
My team mate told me to not use lists in most cases cause it's bad performance
 
6:48 PM
 
@BenBeri If it ain't broken... don't fix it..
 
@BenBeri What types of lists are you using?
 
ArrayList usually doesn't incur relevant performance cost over arrays..
 
fge
@BenBeri the use case being...?
 
@Kylar @Vogel612 look at this.. i am passing "full address" to get the value.. In the debugger it shows the value so HOW COME IT RETURNS NULL?
 
6:49 PM
then it isn't a string
 
@Vogel612 Well basically I am working on a game server team, There's a minigame that requires a list of the players who participate in the minigame. so Instead of MinigameEntity[] I did List<MinigameEntity> ... ArrayList<>
 
@BenBeri I prefer both of them. It depends what you're trying to do.
 
and that's also on the code by @Kylar
 
@Nezam Because the IP-Address stored in "full address" isn't necessarily stored as String...
 
@Gemtastic even if it's not a String.. it returns a null object
 
6:50 PM
@Nezam what does it show as the return Object
(toReturn)
 
@BenBeri That's a use case for a List.
 
@Nezam that's because you told it to return null if it wasn't a string object
 
in your debugger
 
@Kylar null
and it is put as a string
lemme show you the full code once
 
@Nezam OK
If there's a string key that is exactly the same, it should be returning it. There must be something weird going on there
 
6:56 PM
parse is called first to parse and fill in the HashMap.. and later i am calling getString
 
Yep
Ok I'm going to give you a bit of debugging code to pop in there, OK?
 
line number 28 puts full address into it
@Kylar Na'am (yes)
 
OK drop this in before the return statement:
for(Object key : options.keySet()){
System.out.println("Key:"+key);
System.out.println("Value:"+options.get(key));
}
and paste the whole output
let's see where we're going bad
 
i think the issue might be encodings.. since i am parsing a file.. and sometimes in the watcher it shows me..some questionmark characters prepended to some of the values/keys
 

« first day (1468 days earlier)      last day (3475 days later) »