« first day (1446 days earlier)      last day (1793 days later) » 

4:00 AM
 
 
3 hours later…
7:09 AM
Morning!
 
Morning!
 
7:38 AM
Morning!
 
Morning!
 
7:59 AM
Morning!
 
Morning!
 
"Congratulations!

This was only a test, designed to make sure you were paying attention. You passed." ... heh, I love that. Nice one, SO.
 
@GreenAsJade Congrats on passing audit.
 
I love that there is an audit!
Slick-as too. I had no idea...
 
Anonymous
8:33 AM
need help, do i say bar's score or bar score ?
 
Anonymous
bar is a variable
 
@Joiner do you have a full sentence?
 
Anonymous
You can set bar score to 0.
 
Anonymous
You can set bar's score to 0.
 
why not bar.score ?
 
Anonymous
8:34 AM
because score isn't a method
 
Anonymous
it is, literally, score
 
like in a Map / Dictionary??
 
Anonymous
what ?
 
@Joiner go with the second one. You're giving a score to fields, I think?
 
Anonymous
it is: the score of bar
 
Anonymous
8:37 AM
score means points
 
Anonymous
the second one ?
 
Map<Object, Integer> scorings = new HashMap<>();
scorings.put(bar, score);
 
Anonymous
no
 
Anonymous
bukkit api...
 
Anonymous
bar.setScore(int)
 
Anonymous
8:38 AM
you can set bar score to 0
 
Anonymous
you can set bar's score to 0
 
Anonymous
or
 
Anonymous
0
A: Bukkit reset score from an objective

JoinerYou can set bar score to 0. Score bar = obj.getScore("bar"); bar.setScore(0); Also take a look at Scoreboard.resetScores(String). Removes all scores for an entry on this Scoreboard

 
5 mins ago, by Stijn
@Joiner go with the second one. You're giving a score to fields, I think?
 
Anonymous
done, thanks
 
9:03 AM
@Joiner It doesn't work.
I just tried this on my local server. It sets the score to zero, literally.
 
9:31 AM
OK, added my own answer.
Hiya @Sam!
 
Sam
Morning!
 
Morning!
 
 
2 hours later…
Sam
11:55 AM
@Uni Quick random Q: do you use deviantart?
 
@Sam I used to, but I'm not really for the cool tools. I use MS paint.
in Java, 5 hours ago, by Unihedron
user image
 
Sam
Right, well, could I quickly borrow your opinion of which category you think this pic would belong in?
 
:O
inspirational!
 
Sam
:)
 
I have no idea what category it would be though.
 
Sam
12:03 PM
Yeah, same here. I'm kinda stuck for a title, too.
 
What are magic quotes?
 
Sam
Not sure, never heard of 'em.
 
Thanks!
 
Sam
Yw.
 
Sam
12:34 PM
@Unihedron Well, I ended up dumping it in Photograghy -> Other.
 
XD
 
 
2 hours later…
2:45 PM
I'm working with XPath today, it's like it was invented by the same people who came up with regular expressions. Oh, it looks like you have a syntax error in your expression, good luck finding out where it is!
 
Lol, really
 
Just came up with this, perhaps I should just give everything an ID instead.
$x("//a[contains(concat(' ', normalize-space(@class), ' '), ' link-to-shoppingcart ')]/following-sibling::*//span[.='Nieuw']")
 
I like regexes more. Just sayin'
 
3:05 PM
code-explanations are off-topic, right?
 
Don't know, are they?
 
@Vogel612 depends on the size, I think.
 
I've seen on-topic and well received code explanation questions before though.
 
0
Q: Why doesn't this break

Johnathan KennedyMy code below is from Oracle. public class MyLoop { public static void main(String[] args) { String[] sa = {"tom ", "jerry "}; for(int x = 0; x < 3; x++) { for(String s : sa) { System.out.print(x + " " + s); if(x == 1) break; } } } } Output: 0 t...

 
Glorified version of the halting problem
 
3:08 PM
@Unihedron not really...
Halting problem is about determining whether code finishes somewhen or not..
 
@Unihedron so... do you know XPath? I just bumped in a small problem.
 
and that's obvious here... when the outer for-loop terminates, execution halts.
 
You're right
I'm no expert but feel free to ask @Sti
 
$("#basketModal")
Output: Object[div#basketModal.modal.hide.fade.in]
$x("//div[id='basketModal']")
Output: []
 
maybe you want @id? ...
 
3:12 PM
@Unihedron right, thanks. I tried a bunch of variations and at some point dropped the @
 
xD
It's like when I forgot to use io.flush() when doing graphics :p
 
3:35 PM
hmm [strunk&white] earned.
 
@Vogel612 Congratulations!
 
/me bows
 
/me remains proud for the three bronze tag badges
 
@Unihedron I got a java and a c# bronze badge on cr.... so no worries ;)
 
CR vs CG: Good code or maintainable code, you decide!
 
3:51 PM
@Unihedron umm... you mean good and maintainable code vs unreadable and long-running code?
 
My grammer is gooder.
 
 
4 hours later…
 
3 hours later…
11:35 PM
so what's up?
 

« first day (1446 days earlier)      last day (1793 days later) »