« first day (1495 days earlier)      last day (3464 days later) » 

11:00 AM
"Perhaps Sir Butter Cup he could make a fine instrument"
 
@R.MartinhoFernandes Why don't they join Schengen
 
treeView.Items.Filter(item => true).Select(item => item.Background = "green");
why doesn't that work
 
@LightnessRacesinOrbit cool stuff
@CatPlusPlus the UK?
if they did, that'd make it too easy for them to come and steal our jobs!
 
@LightnessRacesinOrbit Oh, nevermind. I didn't notice it was a private enterprise.
 
Clearly you're too bad at your jobs!
 
user1804599
11:06 AM
@BartekBanachewicz == noob
 
Ell
or our population doesn't want them for whatever reason
 
@rightføld wut
 
user1804599
= not ==
 
user1804599
for comparison
 
I want to mutate
 
user1804599
11:07 AM
use ForEach not Select.
 
user1804599
Stop writing confusing code.
 
@BartekBanachewicz metapod would love that, too
 
Ell
yeah that is confusing
 
whoa I found a COBOL developer in my city on linkedin
 
Call the local museum
 
11:08 AM
I wonder why he has to write COBOL at a new company
 
jeez, I thought NYC was more open-minded: youtube.com/watch?v=ls6-ZYSZoDM
 
maybe it's one of those outsourcing companies
> Xoomworks is a consulting and outsourcing company.
yeah, it appears so
 
user1804599
@AlexM. To maintain old code.
 
so they must have a client with a COBOL codebase
 
Ell
11:10 AM
@MarcoA. how do these people know he is a homosexual?
I think it's fake anyway
 
@Ell I suppose from how he dresses, not sure
 
@Ell erm
I think it goes like this
 
@BartekBanachewicz then why are you selecting? that would return something that matches a test.
 
@MarcoA. welcome to the real life
 
@rightføld correction, because they are bad.
 
Ell
11:12 AM
@MarcoA. how can you tell if a man is attracted to another man by the way he dresses?
 
he looks different in terms of attire => he appears to wear clothing that appears to be feminine => he must be gay
I think that's how people judge
 
@Ell I can't say it, but it's common belief that straight men are too afraid to be addressed "homosexuals" or inhibit their "woman-predatoryness" by wearing pink or tight dresses
if that's supported by evidence, I can't say.
 
also his clothing is disgusting, gay or not gay looking
 
@R.MartinhoFernandes you boob. How are we having all these 'parallel' turns when you are giving them sequential numbers? This is all turn 15, maybe do like 15a 15b 15c etc.
if you really want to break it down like that.
 
@AlexM. lol you're not open-minded enough
 
11:14 AM
I'm not fond of going out and seeing someone's junk
 
@thecoshman Sigh.
 
oh, it was jeff who did that
 
btw all the other people are wearing heavier clothes (coats and such)
 
@R.MartinhoFernandes what? do you not agree that these all part of turn 15?
 
12 hours ago, by Jefffrey
Oh, @R.MartinhoFernandes, technically speaking, here, all of those are turns, so they are not all under "turn 15".
See from there.
There's no official turn numbering.
 
11:16 AM
sure
I'd still argue though that these are all part of one big 'turn 15' with parralle turns being like '15a, 15b' etc.
@Jefffrey @CatPlusPlus what you think?
 
Lost my wallet, damn I'm forgetful
 
yes I know it's not 'official'
but I think it's better to keep track of proper turns correctly.
 
@Columbo You're not forgetful, kid.
You should meet me. I can give you a few lessons.
 
ie, my turn will be 16
 
I don't really care about turn numbers
They're not referenced anywhere anyway
 
11:19 AM
Hmm.
How pathetic.
 
I'm known for my good memory and for my terrible memory.
 
@CatPlusPlus no, but I think it's better to track them 'correctly' if at all.
 
Feel free
@R.MartinhoFernandes And also computer memory
 
Ell
I think I'm going to use flow
 
11:20 AM
@Jefffrey lol, search bookmarks.
 
¬_¬ I think some plastic pal removed my edit privileges
 
Guess you didn't deserve them
 
@thecoshman theuh
 
@BartekBanachewicz ?
 
I don't think this thing has ForEach
 
11:22 AM
@BartekBanachewicz what thing?
 
ForEach as a method sucks
Use the loop like a normal person
 
@rightføld About 10 of 500 students guessed correctly.
 
@thecoshman I might have rearranged the trust levels.
 
@CatPlusPlus like a fucking animal you mean
 
@thecoshman No, that's Where
 
11:23 AM
Guess it's still crap anyway.
 
why would I use a for loop to mutate a tree
seriously
 
I'll fix it later.
 
Select is map
 
@CatPlusPlus pure map?
@thecoshman TreeView
 
11:23 AM
@R.MartinhoFernandes I noticed.
 
@thecoshman There was a new feature in TLs so I wanted to check it out.
 
@CatPlusPlus either way, it's not for mutating
 
11:24 AM
@R.MartinhoFernandes vOv shit I'm sure.
 
Discofeature
 
@R.MartinhoFernandes Same with me lol
 
At least with new categories there is no stupid gap on the left anymore
 
@TonyTheLion Don't worry, it's some O'Reilly online thingie. No way to link to that, I'm pretty sure.
 
Discogood adjective Something that is bad, but we can't admit it, so say it's the best thing ever!
 
11:26 AM
ah oh right
TreeView.Items is just a list of strings
or not
 
unless you are taking about java Item object which implements toString
 
for (int i = 0; i < treeView.Items.Count; i++)
{
    for (int j = 0; j < ((TreeViewItem)treeView.Items[i]).Items.Count; j++)
    {
        TreeViewItem item = ((TreeViewItem)((TreeViewItem)treeView.Items[i]).Items[j]);
        item.Background = new SolidColorBrush(Color.FromRgb(0x33, 0xcc, 0x33));
    }
}
 
Bartek.toString();
 
Are you doing Android or something?
 
11:34 AM
nah WPF
 
Why are you not doing that in XAML, then?
 
Nested TreeView?
 
It's probably a lot less awkward.
 
@R.MartinhoFernandes I don't know what I'm doing
also this loop isn't recursive
my loops work on 2nd tree level
I wanted a function operating on the whole tree but I don't know how
 
11:37 AM
treeView.Items.Cast<TreeViewItem>()
    .SelectMany(i => i.Items).Cast<TreeViewItem>()
    .ForEach(i => i.Background = new SolidColorBrush(Color.FromRgb(0x33, 0xcc, 0x33)));
@BartekBanachewicz Oh.
 
Ell
@R.MartinhoFernandes won't you leak brushes like that?
wait ignore me I don't know anything
 
There's a garbage collector.
 
You don't leak them, but you could probably do with just one
 
Ell
Only for memory though, right?
Brushes are an unmanaged resource I thought but I'm probs wrong
 
Oh, dunno.
 
11:38 AM
@CatPlusPlus no Common Subexpression Elimination?
 
I just transformed the code from Bartek.
 
Ell
Yeah fair play
 
@BartekBanachewicz No, different semantics.
 
CSE would be invalid here
 
It would change the Brush's identities.
 
11:39 AM
derp
'System.Collections.Generic.IEnumerable<System.Windows.Controls.TreeViewItem>' does not contain a definition for 'ForEach' and no extension method 'ForEach' accepting a first argument of type 'System.Collections.Generic.IEnumerable<System.Windows.Controls.TreeViewItem>' could be found
 
It's not a standard thing
Write an ext method if you really want it
 
I thought they added it now.
 
@CatPlusPlus what
 
Oh.
Comes with Rx.
 
11:43 AM
> The first reason is that doing so violates the functional programming principles that all the other sequence operators are based upon.
ha ha ha lol.
 
79
A: What is this functionality of C++ called?

R. Martinho FernandesThe comma operator† evaluates the left hand side, discards its value, and as a result yields the right hand side. WSA_FLAG_OVERLAPPED is 1, and that is the result of the expression; all the other values are discarded. No socket is ever created. † Unless overloaded. Yes, it can be overloaded. N...

REgtlhrthjeshkrjgaejkrghfjkdghwlaeughadgjkf
 
well fuck then it's a mutable container
 
@BartekBanachewicz he's right htough.
 
@R.MartinhoFernandes ...
 
Then again, he's EricLippert, so he's probably right no matter what he's saying.
 
11:44 AM
13th best answer now :<
 
why the fuck is this question at +50
 
.ForEach explicitly mutates
 
Because snack overflow
 
57 secs ago, by Bartek Banachewicz
well fuck then it's a mutable container
 
11:44 AM
@BartekBanachewicz it's an enumerable.
It's not a mutable container
It's not even a container, it's just a sequence of things
 
does he really propose I write it as Lens?
 
What.
FFS dude. Let go of the Haskell.
 
@R.MartinhoFernandes v & lens %~ mutator
 
If you want to use it as a mutable container, then make it one. You can do myEnumerable.ToList().ForEach( (element) => {... your stuff here ...})
@BartekBanachewicz such clear syntax.
 
where & clearly separates mutation from mutator
 
11:46 AM
foreach(var i in treeView.Items.Cast<TreeViewItem>()
                         .SelectMany(i => i.Items).Cast<TreeViewItem>())
    i.Background = new SolidColorBrush(Color.FromRgb(0x33, 0xcc, 0x33));
 
@BenjaminGruenbaum it's very clear. Simply uses Lens operators.
 
@CatPlusPlus mmmm nachos
@R.MartinhoFernandes quite right, Erlang is clearly better.
 
So here's what's happening: you don't understand LINQ very well and you're trying to treat a sequence as a list or as a container although it's not one. You can either enumerate it explicitly (via a foreach loop or a .ToList()) - it's lazy.
 
So there's no way to map over the whole tree of treeview with a mutating function?
 
If you .Select it just queues that operation on a sequence, doing the same for .ForEach would make no sense since you want side effects but it won't happen until you actually enumerate it.
 
11:47 AM
Sigh.
@BartekBanachewicz Select can do that just fine.
You could have also read the article.
 
Yeah, that would have also worked.
 
@R.MartinhoFernandes the article tells me to use a statement for loop
 
Don't use maps with a mutating thing ugh
 
.ForEach() is a lot better than .Select().Consume(), though.
 
Just remember, LINQ is lazy (like your precious haskell) so a ForEach which explicitly only does side effects would make no sense since you don't get to choose when it is run until explicit enumeration.
 
11:48 AM
@BartekBanachewicz And.
 
@BartekBanachewicz Yes that's what you should use
 
but that won't descend into tree elements
 
You should consider why you have to use a foreach loop.
 
@BenjaminGruenbaum You mean like ToList? Or OrderBy (ok, this one is weird)?
 
.Items of treeelem are its children.
 
11:48 AM
@BartekBanachewicz you have an abstract enumerable, you don't care how it descend only that it does.
 
@BartekBanachewicz SelectMany can do that
 
@R.MartinhoFernandes yeah. (Also, I disagree that it's weird)
 
@CatPlusPlus how?
 
It's a flattening map
 
@BenjaminGruenbaum yes, if it does. stop being an ass and start listening to me.
 
11:49 AM
You have to get the whole collection in order to OrderBy, that makes sense. All I'm saying (and I think we agree here) is that you shouldn't rely on when that enumeration is happening - and if you do at least know what does it.
@BartekBanachewicz what do the docs say?
 
Look at what Robot wrote above
 
Second day in a row. Could @BenjaminGruenbaum be the new @LightnessRacesinOrbit?!
 
@CatPlusPlus yeah trying that now
 
@LightnessRacesinOrbit what?
 
11:50 AM
Just write a simple tree traversal. FFS.
 
No, seriously, I didn't get the joke @LightnessRacesinOrbit
 
error CS0411: The type arguments for method 'System.Linq.Enumerable.SelectMany<TSource,TResult>(System.Collections.Generic.I‌​Enumerable<TSource>, System.Func<TSource,System.Collections.Generic.IEnumerable<TResult>>)' cannot be inferred from the usage
 
@BenjaminGruenbaum That's okay; it wasn't a good one
 
You seem to be finding yourself in the midst of these nonsense arguments a lot this week ;P
 
11:51 AM
no I completely didn't use anything from the element
neither is it cast two times
the fuck is this thing doing
 
@LightnessRacesinOrbit well, and I'm just agreeing with robot and cat here about stuff generally.
@BartekBanachewicz select is just map, selectmany is just flatmap.
public IEnumerable<TreeNode> GetChildren(TreeNode Parent)
{
    return Parent.Nodes.Cast<TreeNode>().Concat(
           Parent.Nodes.Cast<TreeNode>().SelectMany(GetChildren));
}
First result on StackOverflow. My descendant nodes are my children, and their descendants in turn. Two lines of code. Makes perfect sense.
 
do I have to write all of those types there?
 
WPF uses untyped collections.
But look on the bright side: at least you can name your types with lowercase.
 
so they're danymically typed?
 
Xeo
@R.MartinhoFernandes lol
 
11:54 AM
@R.MartinhoFernandes for the love of god
 
@BartekBanachewicz They're type erased.
 
@R.MartinhoFernandes to Item. That's hell of erasure.
 
it's ItemCollection
 
Right, it's not erasure, it just predates generics in the language.
 
11:56 AM
Yes, which is a type-erased collection.
 
[] returns object
 
Right, that's type-erasure.
 
uh.
what's the practical difference between that and dynamic typing?
 
Dunno.
Dynamic typing in this context is confusing.
(Because dynamic)
So I stick with the specific alternative.
 
11:58 AM
Yeah, C# does dynamic typing.
If you ask nicely, and don't care about performance.
Untyped collections are not type safe, they're older. They predate the newer collections. You have a List<T> and then you have a List.
You generally don't use those, and wrap them when you work with them.
 
I think WPF collections are untyped not for age but for complexity of implementation.
 
@BartekBanachewicz Imagine working with code that works with arrays instead of std::vector in C++ (where appropriate), kind of like that.
 
It's due to XAML
 
XAML didn't support generics at all when it started.
 
Yeah, there's that.
XAML only does generics since .NET 4 iirc.
 
12:00 PM
But XAML uses dynamic typing, which is why I recommended it for this instead.
It's likely to be a lot cleaner.
 
Wait you mean I can specify behaviours in xaml or what
@BenjaminGruenbaum it's all rather non-intuitive
I should probably use this mvvm thing instead somehow
 
@BartekBanachewicz right, because it was not designed with the language capabilities of C# 5 in mind. Just like the std::vector array example.
 
@BartekBanachewicz IMO if you're writing such code not as some kind of control or XAML extension or whatnot, you're doing it wrong. XAML is quite powerful.
 
@BartekBanachewicz erm, you should probably not be touching the XAML from code. No matter what you're doing.
 
@R.MartinhoFernandes I probably are
@BenjaminGruenbaum I thought XAML defines just how things look. How do I change how they look from code then?
 
12:05 PM
@BartekBanachewicz you data bind.
What are you trying to change for example?
 
I have a treeview control in my XAML
 
@BartekBanachewicz But defining how things look is exactly what i.Background = new SolidColorBrush(Color.FromRgb(0x33, 0xcc, 0x33)); does :P
 
I wanted to change some nodes background to green
 
Use bindiiiiiiiings
 
I know I know
just wanted to see if it's possible in a "manual override" way :P
 
12:06 PM
this.myTree.DataSource = yourSimpleCSharpObject
 
@BenjaminGruenbaum I guess that can be specified from XAML directly too
 
@BartekBanachewicz It always is, but also is invariably ugly.
 
via { Binding yourSimpleCSharpObject } or whatever it is
 
Ell
what do you call the bit at the end of a member function which tells you that it is const, ref, rvalue ref or volatile?
 
@R.MartinhoFernandes okay
@Ell ref-specifier
 
12:07 PM
@BartekBanachewicz yes, that's how you actually do it
 
Ell
is it cv-ref qualifier?
 
As always
 
lesson learned, point taken
 
Now make blue science
 
I'm once again debugging code that isn't running :|
 
12:08 PM
That said, IIRC TreeView is exceptionally bad at data binding to it. Haven't used it in years though.
 
@CatPlusPlus I made a car and then I drove into my lab destroying both.
 
Xeo
@Ell cv-qualifier and ref-qualifier, ye
 
First I drove into some trees.
anyway I'll prolly scrap that design because I overcomplicated supply lines
processing shouldn't be dependend on where the raw materials come from
OTOH at the first stages it's much cheaper to process on-site
 
@BartekBanachewicz Well done
 
@CatPlusPlus it was fast! :<
 
12:11 PM
gottagofast
 
Also @Cat I have a question
I use two sides of conveyor belts for iron plates and gears and it works perfectly. However, for grabbers/belts pair (needed for green science) they mix up
because proportions aren't equal, the belts start to dominate and block the conveyor, not letting any more grabbers to the end
so I wanted to ask if I have to force the belts on one part of the conveyor or is there a way to balance that somehow
 
vOv make a picture
 
oh well. Okay, on the evening then.
haven't installed Factorio on my work PC.............................................. yet
 
Speaking of drove into things, I had a dream a few days ago about I rented a large truck (similar to those 20 metre shell truck) for my construction project. Then one early morning, I didn't have enough sleep, also had a few drinks the previous night, I lost control of the truck at a corner and the truck span around to cut off two high voltage power line.
 
Ell
@BartekBanachewicz I think you have to force one item type per side
 
@thecoshman Fixed. I guess. One page still says there are only two TL4 users, but the list of TL4 users shows 5.
 
lol Ubisoft added a FOV slider in Far Cry 4 in a day 1 patch, which means pretty much anyone who complains about a lack of FOV sliders in the game is a pirate pcgamer.com/…
 
@AlexM. That's cool, haha.
For once the pirates get hurt, not the real customers.
> Size: 7XL
 
Or the patch server was down or whatsitsname didn't notice there's a patch
 
12:29 PM
@CatPlusPlus And they'll get it in a moment.
 
that's a pretty nice twist on it. A few other games have managed to just misbehave in various ways when pirated, which IMO just resulted in pirates thinking "this games is broken as shit, good thing I pirated it instead of paying for it". Explicitly and publicly adding the feature they're asking for in a day 1 patch seems less likely to backfire like that.
 
Xeo
GameDev Tycoon had a "your game is being pirated!"-event - only if you pirated it.
 
@Xeo yep, which was cute and funny, but again, most pirates didn't seem to get the point
they just thought the game was impossibly difficult
ending up with another "phew, my decision to pirate it was justified then, it's not worth spending money on a broken game"
It was funny for everyone else though :D
 
Xeo
alright, time to take my first steps in Unity...
not super thrilled, from what I've heard
but we'll see
 
Ell
@BartekBanachewicz @CatPlusPlus what is your accumulator capacity?
 
12:34 PM
I don't have any yet
 
let's talk about philae:
Philae (/ˈfaɪli/ or /ˈfiːleɪ/) is a robotic European Space Agency lander that accompanied the Rosetta spacecraft until its designated landing on Comet 67P/Churyumov–Gerasimenko (67P), more than ten years after departing Earth. On 12 November 2014, the lander achieved the first-ever controlled touchdown on a comet nucleus. Its instruments obtained the first images from a comet's surface. Philae is tracked and operated from the European Space Operations Centre (ESOC) at Darmstadt, Germany. Several of the instruments on Philae made the first in situ analysis of a comet sending back data that will...
On the morning of 14 November 2014, the battery charge was estimated to be only enough for continuing operations for the remainder of the day. After first obtaining data from instruments whose operation did not require mechanical movement, comprising about 80% of the planned initial science observations, both the MUPUS soil penetrator and the SD2 drill were commanded to deploy.
 
Ell
lol I just realised two of my assemblers were missing inserters
 
I wonder where's that figure '80%' coming from ...
it hasn't even digged its claws into the mud ... correct me if I am wrong, but all it did was taking pictures?
 
@chmod711telkitty It's called a ratio.
You have the part, and you divide it by the whole.
It gives something around 0.8, and 80% is just an alternative notation for the same number.
That notation is called percentage.
That's because 0.8 is the same as 80/100.
Cheers and hope that helps.
 
yeah but what divided by what?
surely esa did not send a half billion dollar toy into the space to take pictures??
 
12:40 PM
The part by the whole.
 
user1804599
@FredOverflow 500 noobs of which 10 lucky gamblers
 
and also would be nice to know what were the intended tests and what were actually conducted & results were sent back
 
Yes, that is very well guarded information.
They don't even put it in the official website nor anything.
 
user1804599
@thecoshman except they earn your decennial salary in a single week.
 
Of course, no one would ignore that, unless they wanted to paint it as a complete failure against all evidence.
 
12:42 PM
@rightføld and they don't work for a single week
and the work is not enjoyable
I wouldn't go through hell for a lot of money
 
@chmod711telkitty And the answer to "what were actually conducted" is 80%!
See how easy that is?
 
@Jefffrey How old is the girl suppsed to have been? 15+ and it is legal here. :)
 
TIL that the square of a prime number has exactly 3 divisors
no idea what this could help me with
but hey
 
user1804599
Hey @FredOverflow is it possible to make a parameter implicit only within the body, like def f(x: Int) = { implicit val x_ = x; ... } except without introducing a new variable?
 
no one said it was a complete failure and for all those who bothered to track the mission, I suspect that most would still say the resource spent was worth the attempt
 
12:44 PM
The mission is not over yet.
 
but 80% is too random of a number don't you think?
how many times have you scored exactly 80%?
 
Lemme apply my randomness test on it.
 
please do ..
 
0.8 == 4? Nope, not random.
So yeah, seems like a fine number.
 
fine number on undisclosed statistic always looks very suspicious ...
 
12:46 PM
Have you noticed the words around it?
Yeah, I know, words. But still.
 
@TonyTheLion Nice typesetting!
 
And yeah, ESA has always been crazy secretive about the whole mission. They disclose no information to the public whatsoever. Which actually explains why it was a media sensation.
Oh, wait, no. That only makes sense in the heads of irrational people.
 
take Mars lander for example
taking soil samples seems to always being an important mission for landers
 
Anyway, here's the whole story for you to shut the fuck up. Emily said "about 80%". The word "about" is important because it implies an approximation or an estimate. Emily also said that that was the data obtained before using the mechanical instruments. The word "before" is important here because it implies that the mechanical instruments had not been used before that moment.
I know, English is hard.
She also said that after that, MUPUS, the soil penetrator, aka, the drill, was used and worked perfectly and its data was recovered and was being analysed.
Now, yeah, shut the fuck up.
 
so are taking surface temperature, measuring sunlight exposure, wind speed and all other weather related measurements over the time
 
12:55 PM
Guys!
I've got a standardese problem!
 
@rubenvb Not now! munches popcorn
 
Ell
yep my accumulators can get me theough the night
 
@R.MartinhoFernandes Analysis of the data returned indicates that MUPUS did not penetrate much into the subsurface, which rather than being fluffy as expected is apparently as hard as ice,[42] and that drill samples were not delivered to COSAC.[43]
 

« first day (1495 days earlier)      last day (3464 days later) »