« first day (991 days earlier)      last day (3325 days later) » 

00:00
If you're using static inner classes, you're doing something wrong 90% of the time
(inner classes in general)
RELOAD! There are 1667 unanswered questions (94.5475% answered)
@JeroenVannevel But...but...Microsoft does it.
@JeroenVannevel Why's that?
Sometimes you gotta abuse functionality for learning purposes
00:02
var test = {foo: 5};
with(test){
    bar = foo + 5;
}
test.bar // 10
@EBrown wtf
0
Q: Unwieldy Rails model method

Thomas TaylorI was asked to make a view which is a mix of HTML & ERB logic available in multiple views. At first this seemed pretty simple. However, some of these views required the output to be plaintext instead of HTML & ERB. The rational behind this was that the strings can be added to, removed and updated...

@Mat'sMug can you freeze/lock/readonly the help desk and the help desk proposal rooms, please?
@EBrown Wow. That's awful.
I'm not even sure I'd still call that a query.
0
Q: Help Desk Chatroom

Quill11 days ago, I put forward a proposal to the moderators for a Help Desk chatroom, which we would link to the Stack Overflow comments Duga posts, and to the potentially off-topic questions on Code Review. An example comment back was simply the comments from the 3 Questions meta with If you have a...

00:16
@Phrancis ^
Saw it, thank you sir
Wrote you an answer.
For some values of answer.
Does FirstOrDefault accommodate the possibility of a null data set?
0
Q: Efficiently return a ChatColor

awesomebing1I am working on a plugin for a Minecraft server. In it, I have a function that returns a ChatColor depending on what permission level you are. Whenever I need reference the user with proper colors, I always get a color from the below function. /** * ChatColor * * @param Player * @return Cha...

@Quill were you in the process of posting a "keep it" answer on there? If not I'll write one.
00:25
@Phrancis I wasn't in the process of writing one, but if you want to, go for it
No worries @Mat'sMug, whenever you can :-)
nice answer :-)
^^we don't need to keep this pinned very long, just a day or two so we get some feedback
Console.WriteLine("Found none count: " + (nodes.Count() ?? 0)); // Operator "??" cannot be applied to operands of 'int' and 'int'
huh?
00:34
Unfortunately, I don't see that room being of any value with the current way the chat system stands.
I thought that was how you use the null-coalesce operator
@Quill No.
The left side has to be nullable.
@EBrown Can you clarify what you mean by "current way"? Just curious
nodes.Count() returns an int, which is not nullable.
@Phrancis The 20 rep requirement, mostly.
Should SE make a way for RO's to specify a specific minimum rep requirement, then it might be viable.
Oh, right, that is a bit of a PITA but I understand why it is there
00:35
@EBrown ah, I see. thanks
@Quill You can do nodes?.Count() ?? 0, though.
At least, in C#6.0.
Ah, null-coalesce, so handy :) (in SQL at least)
The ?. means "execute the right side ONLY if the left side is not null", then the ?? 0 means "if the left side is null, then evaluate as 0."
lol
00:37
What is that "lol" for?
your face is glaring at me is all, like that "no face" meme.
LOL I see it now.
That stern look, "No."
Also, what are you trying to get the count of where it's a method? A List<T>?
HtmlNodeCollection part of the HtmlAgilityPack nuget
Ah, it doesn't have a Length property?
and no, I don't think so
00:40
Ah, well that's a bummer.
Usually something being a method means it has side-effects.
And it does. It looks like HtmlNodeCollection is an IEnumerable.
> To be added.
> See Also: Inherited members from object.
yeah, I'm think I'm just going to try to find a better library than that
they use XPath anyway...
>.>
Sounds like the performance issue has to do with p.hasPermission. — EBrown 18 secs ago
user image
3
Mad MSPAINT skillz :D
2
p.getPermission or p.permission
honestly, does the user not see the +2000ns jumps for each else statement
@Quill That was my first thought.
@Phrancis That rep must be my SO rep.
But I'd star that.
00:49
@EBrown whoops
Your chat profile links to your SO profile, FYI
@Phrancis That's because I was on SO before CR.
No idea how to change it.
<-- Click your picture, choose User Profile
Then you'll see a link that say Parent User, click [Change]
That's it
Well that was dumb, I clicked yours expecting the link to be there. Lol
All better.
Man, I'm really proud of some of my SO answers.
20
Q: Can one or two emoticons be used in a PhD Thesis?

GabrielI have a very dumb :-) question: Are emoticons (if rarely placed - one or two times) in a PhD thesis considered unorthodox? I have an introduction where I give an apt example and appended some small footnote where I make fun of the author (that's me) and I was so laughing when writing this I al...

> Or I'll be funny on a website like this so I can wallow in a mass of glorious unicorn points.
user image
4
There we go
01:03
Beautiful.
New Facebook profile picture.
its so beautiful it makes me cry tears of blood
01:20
@Quill s/for learning purposes/to test new diagnostics and code fixes/
@Hosch250 Teach me how to one-box Dilbert strips.
@Phrancis Is that @EBrown?
@Mast Yep.
Defaced smileyd
@Mast Like that?
@Quill I remember downvoting that question.
@Hosch250 Exactly.
01:30
Go to the page, right-click the cartoon, and select Copy Image Location (FF phrase).
The link should look like http://assets.amuniversal.com/26f4d7d06d6301301d80001dd8b71c47.
Paste that into the chat box and put .png at the end.
So cheat the png after it.
Woot.
@hosch250 has earned the title of dilbert master
2
@Phrancis It's still lacking the reputation.
@Quill I usually don't star messages relating to me, but that is too good to pass up.
BLOG: @AspNet 5 is dead: Introducing @AspNet Core 1.0 and @dotnet Core 1.0 http://bit.ly/1S2Llj1
lol
onebox you stupid thing
01:33
Lol
there
ASP.NET vNEXT? ASP.NET 5? No! ASP.NET Core 1.0!
@Phrancis Nice edit on my meta answer by the way. Makes it much better.
@JeroenVannevel Another reason not to leave your glasses at home and don't C#.
The terminology surrounding it is baffling.
@JeroenVannevel If I tweet Belgian Masterrace, will you re-tweet it?
I don't trust this
@Quill What has been seen can't be unseen.
01:38
it's better than the nodocs solution I had already implemented
Free ebooks for anyone interested.
This probably belongs to codereview.stackexchange.com, hopefully some moderator can move it there :-) — Tomas Petricek 22 secs ago
@Duga Kind of short, but I don't know F# enough to tell if it is stub or not.
If you intend on moving this to Code Review, make sure that the code isn't hypothetical or broken, and that you're actually looking for a review, not just verification of completion. — Quill 45 secs ago
@Duga Where is the help-desk link?
01:43
6
Q: Help Desk Chatroom

Quill11 days ago, I put forward a proposal to the moderators for a Help Desk chatroom, which we would link to the Stack Overflow comments Duga posts, and to the potentially off-topic questions on Code Review. An example comment was simply the comments from the 3 Questions meta with If you have any qu...

Tomas, this is fantastic. TVM. 1Q - with prices I am just publishing a series of prices for each id (a list/set of prices), but for volume I am publishing series of amounts at various prices (a list/set of price/amount pairs). I notice you have removed what I had declared as a generic and made it Event<int> rather than Event<'a>. Was this by design? I was rather hoping to "put in" the different data 'under' the generic hood. — Simon Woods Jun 26 '12 at 8:04
If this works it would definitely be on-topic for Code Review. — Mast 48 secs ago
Is it just me, or is there no link on that comment?
Not just you.
@Quill So, you aren't going to be linking it in comments until that question is resolved?
yes
01:45
I asked Mat to freeze the rooms too until resolution
It seems migrated questions with comments don't properly link user profiles
Oh, that makes sense.
Wow. A 50 minute backup.
I guess maybe I should zip some of my big downloads.
Oh, a 7:30 minute backup.
0
Q: Write Binary save file in python

magu_I'm fixed on the save file format. There are only three types of data: long (numpy int32 array, independent of platform) double (numpy double array) string (utf-8, but ord(c) < 128 for all characters) whereby the first two get saved in their binary representation. Strings get saved as string ...

Maybe I don't need to zip any files after all.
@Hosch250 Windows minutes, you never know how long it takes till you're finished.
Where's that XKCD?
01:52
if code is working a better place to ask is codereview.stackexchange.comcharlietfl 40 secs ago
@Hosch250 Can't find it either.
Beat me to it.
Turns out if you simply put xkcd windows time in DuckDuck it will tell you exactly what you mean.
var links = document.GetElementsByTagName("a");
This is valid C# and JS in my codebase!
Manually searching through the archive isn't always working.
01:55
goggling "xkcd progressbar" does the same
@Quill That's a little frightening, yet cool.
wouldn't idiomatic JS be document.getElementsByTagName?
Yes, but it's only off by a character.
Aren't both C# and JavaScript part of the ES standard?
difference is that the C# links is likely some IEnumerable<Element> while the JS links is some ..duck.
@Mat'sMug NodeList in JS
01:58
0
Q: Implementing an inner product using pyspark

Thunder ShiviahI'm trying to implement a dot product using pyspark in order to learn pyspark's syntax. I've currently implemented the dot product like so: import operator as op from functools import reduce def inner(rdd, rdd2): return (rdd.zip(rdd2) .map(lambda x: reduce(op.mul, x)) .redu...

and IHtmlCollection<IElement> in c#
@SirPython What?!
C# has any relation whatsoever with JS?
what does IHtmlCollection<T> offer that IEnumerable<T> doesn't?
No, it doesn't. I just thought I read that somewhere.
<sup>citation needed</sup>

« first day (991 days earlier)      last day (3325 days later) »