« first day (808 days earlier)      last day (4366 days later) » 

23:00
OPPAN GANGNAM STYLE, GANGNAM STYLLLLLLLLE
Ah, I remember why I did it that way
Because it will either return a Folder or a List<Folder>
Okay, given this:
var a = new List<List<List<int>>>();
            var b = new List<List<int>>();
            var c = new List<int>();
            for (int i = 0; i < 20; i++)
            {
                c.Add(i + 100);
                b.Add(c);
                a.Add(b);
            }
can you recursively find the total in one line of linq?
@TravisJ the total of all of those?
23:02
nested selectmany should work
recursively, not just nested iteration
.Sum();
@TravisJ ok, dunno then, show us?
I don't know how either, but I am trying to work it out. Recursive linq would be pretty cool
I think perhaps with a foreach which references the caller inside of the loop?
hmm, where is my bot?
cc/listcommands
23:04
a.Sum(x => x.Sum(y => y.Sum()));
Looks like LINQ doesn't play nicely with recurssion
That isn't recursive.
@TravisJ is extension method too ugly for you?
Who said anything about recursion?
That was the whole point.
23:06
3 mins ago, by Travis J
recursively, not just nested iteration
4 mins ago, by Travis J
can you recursively find the total in one line of linq?
@JohanLarsson - Well, then why use linq in the first place?
What is the total meant to be?
@TravisJ ok, true I guess but I love extension methods for that type of stuff
extension methods are pretty awesome
@RudiVisser - Your summation approach would work to get the proper total, I just made a simple example to try to see if recursion was possible with linq.
Well technically, internally it is recursing
23:08
@RudiVisser but it is not very dynamic
@JohanLarsson dynamic z = a.Sum(x => x.Sum(y => y.Sum()));
I have a feeling Travis is writing Linq right now
I tried doing something like this
int total = a.ForEach(mid => { mid.ForEach(_=> { mid }); });
but there is no way to get back to mid to restart the foreach
I was trying to use mid => new Action(null) {} but that wasn't working
I wonder if there is a way to put some sort of anchor to call back to there
23:17
What does this code do?
string list = fullpathlist.Where(f => fullpathlist.Contains(f)).First().ToString();
That code doesn't make an sense now that I look at it...
Isn't that really just fullpathlist.First(); ?
@CCInc what % of your codebase have you written yourself? :)
Almost all of it
@RudiVisser lol
I don't comment my work nor do I leave helpful names, so I have no idea what I am doing :)
2
23:20
It is trick questions then right?
I need regex help, anyone?
@CCInc you are an obfuscator made of meat then?
lol
Wish I could but I cant
noo, I closed VS, gonna miss this one :(
23:21
I HAVE A PROBLEM
2
It can't start or end with a space, only be alpha numeric and not more than 1 space at a time, and only be 16 or less chars?
@Rudi Good for you
^ :)
Can it be not regex?
@CCInc don't use regex, use string.trim & int parse
23:22
That what I was saying
It's actually not good for me
wtf I'm starting to mix in Swedish now
I need a way to click a link in JS
@Rudi - can has jquery?
Yes, and don't say .click(), or .trigger('click'), or use the href... It's an unobtrusive-ajaxified link
23:24
I am only 168 rep away from being a 1K user!
@Rudi You woke @Travis up!
you can't triggerclick on it?
Correct
@CCInc I remember on my other account where I was like that
can I see the markup for the link?
23:24
@Kinected what happened to it?
<a data-ajax="true" data-ajax-mode="replace" data-ajax-update="#rightsplit" href="/Project/Create">Create New</a>
@CCInc Ageism
and what happens if you trigger a click event on that?
Nothing at all
Happy New Year all! :)
23:25
is it nested inside of a form?
@DemCodeLines hey, haven't seen you in awhile
@CCInc, haha yeah. I am back now :D
Here is a comment I just wrote:
// If the parent contains children,
@Johan I feel like CC Inc is the replacement me while I was gone
@Kendall Heyyyy
What's that supposed to mean? :)
23:27
@RudiVisser - if you manually click on it, does it work?
Oh, hi, Lawbreaker.
Technically not anymore
I still don't get it!
What happened?
@Kinected he was - I thought he was you for a bit.
Right. I stole something last night, but I'm not a lawbreaker anymore.
HA
@KendallFrey No Im 13 now
Still...
@Kinected OMG REALLY?
23:28
Here is a question: Is it possible to draw Windows Vista/7 style listview so it can work and look the same on XP ?
@TravisJ Yes it works
@DemCodeLines WPF or WinForms?
@Kinected You know how old I am?
@TravisJ and no it's not in a form
23:29
@CCInc Im guessing 13
Preferably WinForms but no problem with WPF
In WPF, you would probably just copy the default template.
@RudiVisser - Can you try using $(anchorSelector).submit(); on it?
@Kinected You would be correct. And why were you banned?
23:29
I was 12
which is against the COPPA, I must say
I am still banned for 6 7 months
Was that why you were banned?
Presumably.
Yeah....
23:30
@TravisJ Yea .submit() doesn't work
Although only the mods know...
What will you do after that? Get your accounts merged?
@KendallFrey actually make that in WinForms
@DemCodeLines That means you essentially need to draw it yourself.
23:32
Oh! But I am a corporate entity!
@CCInc Lol.... I turned 13 2 days ago
So it is possible, right?
lol
@CCInc That is why my account is Kinected now
@DemCodeLines Well, yes.
23:32
Speaking of which, why isn't this image saving?
@Kinected But Kinected is not a corporate entity.
using (ColorImageFrame colorFrame = e.OpenColorImageFrame())
{
if (colorFrame == null)
{
return;
}

byte[] pixels = new byte[sensor.ColorStream.FramePixelDataLength];

//WriteableBitmap image = new WriteableBitmap(sensor.ColorStream.FrameWidth, sensor.ColorStream.FrameHeight, 96, 96,
// PixelFormats.Bgra32, null);

colorFrame.CopyPixelDataTo(pixels);

colorImage.WritePixels(new Int32Rect(0, 0, colorImage.PixelWidth, colorImage.PixelHeight),
pixels, colorImage.PixelWidth * 4, 0);
//BitmapSource image = BitmapSource.Create(colorFrame.Width, colorFrame.Height, 96, 96, PixelFormats.Bgr32, nu
You CAN'T mess with the corporate entity CC_ INCORPORATED STUDIOS
@KendallFrey It is a partnership tho
@CCInc What do you make
yesterday, by Johan Larsson
@TravisJ CC sure have found cheap labor, I predict he will have a fortune 500 before he is 18. Then he will buy an island for each of us, and a boat so we can visit each other :)
23:34
@Kinected You can't be part of an LLP at 12
Mmm my profit is a bit under $0 right now, but once I release my program, I will be on the Fortune 500!!
And then I will buy Johan an island
I wish you could just copy the uxtheme.dll file over to xp and apply the styles
Yeah.... what is your program tho
@DemCodeLines Why can't you?
23:35
@Kinected That won't fly with a judge. :/
@KendallFrey I doubt Ill get sued, plus I am 13 now
@Kinected Syncs the history/bookmarks across all the browsers and across computers
bump
<a data-ajax="true" data-ajax-mode="replace" data-ajax-update="#rightsplit" href="/Project/Create">Create New</a>
Me too, but you still can't fool me.
Id buy it
23:35
@Kinected @KendallFrey That is why as soon as I have enough money, I am going to legally incorporate my business.
@Kinected I'll tell you when it's done
You are funny.
@Kendall You remind me of a girl at my school whos name is kendall.........
Doesn't it cost about $10 to incorporate a company?
@CCInc cuz the themes don't work? You can't get a Vista theme look in XP.
Yeah but you gotta be 18 to own a company and 14 to work for one unless you parents own it and employ you, in which case you can be any age
23:37
@RudiVisser Monetary, maybe. But it takes more effort than that.
@KendallFrey No...
Here is a question about WPF: Does it look the same across all OS?
That is not what the labour laws say
@DemCodeLines With the same code, yes.
@CC Wait are you in the US?
23:37
I assure you, I have looked them up myself
@Kinected Yes.
However, not all OS's will use the same code by default.
@KendallFrey What effort?
Although only in England do they say "labour"
So what's the difference between WPF and WinForms then? I mean in basic terms, what's the difference?
Oh okay so we are talking the same.... except in Wyoming I can own a farm when I am an infant
23:38
@DemCodeLines You can force it to use Luna/Aero (or any other custom) theme
Except as specifically authorized by the statute, it is illegal to __employ__ a child under 14 years of age.
@Kendall And if I go to jail, when I get out I will get a bottle of whiskey, a horse, and a gun
Keyword employ
@DemCodeLines It's an entirely different layout engine, based on entirely different core principles, used with entirely different primary languages (ie. XAML vs generated* C#) and overall: they're entirely different.
I know..... Which is why Careers no work for me
23:39
@DemCodeLines Um, they run completely differently.
@CCInc I have been offered multiple jobs then have to reject them because of my age
I'm sure you have @Kinected
At a basic level, WinForms is based on the Win32 API, while WPF is a new rendering/input engine.
@Kinected Uhhhhhhhhhhh, no, that is also not what it states
We're back in the teenage programmers support group again
4
sigh
23:40
I don't think, let me check
@RudiVisser :P
@CCInc Or they had to reject me cause I was too young for them
Hey, @Kendall is a teenager too guys
Wait, were you offered a freelancing job or an employment job?
You and @CCInc are pre-teens
Sorry for asking such newbie questions :D and thanks for the help @RudiVisser @KendallFrey
mostly freelancing and one employment
23:41
@RudiVisser 'tweens'
@KendallFrey Im 13!!!!!!!
That'll do
@Kinected Exactly.
@Kinected clap clap clap
Hmm, that is quite queer.
WTF is @Steve.... He'll defend me
23:42
All of my windows were closed immediately without any notice and no warnings afterward.
@Kinected I will defend you
Yeah but you aren't a veteran (no offense)
Tween is a word that typically refers to a person who is between the ages of 10 and 12 years old
@Kinected Neither are you.
@CCInc 'typically'
A preteen or a preteenager[1] is a person under the age of 12
@KendallFrey Yeah but @Steve is
23:45
Legal stuff is depressing. Can't we talk about something nerdy?
No, I enjoy legal misfalls.
@Kendall You should make me a room owner again
Haha good one.
@Kinected As soon as I become owner...
Holy god there are a lot of owners now
23:46
I'm still upset that Kendall hasn't made me an owner
What happened to Nadal?
Why were you made an owner? @Kinected
Were you like awesome?
@CCInc He groveled.
@RudiVisser Ask @Travis?
@KendallFrey Groveled About what?
23:46
@Kinected He was merged/suspended.
@CCInc Because I was more useful than Kendall and had been here longer
@Kinected ROFL.
@CCInc Yes... Also the whole Nadal situation helped
@CCInc Room ownership.
23:47
@Kinected Explain.
@KendallFrey He never had it?
It is a very very very long story
@Kinected I have all week.
@CCInc I did for like 2 months before SOMEONE tattled on me
@CCInc I don't I have school tomorrow
Which "Nadal"? There are so many.
23:49
@CCInc The bad one.
@CCInc He's gone now
@Kinected I don't have school all week, explain.
Oh damn who gives a crap
Wait a minute who starred 'I have a problem' that's not nice
23:50
Should there be a C# Lounge and a C# Code room?
@RudiVisser not me, can prove it with screenie if needed
@JohanLarsson Tried and failed.
I think we should just ban under 17s
Sec. 51.003.  GENERAL EXEMPTIONS.  (a)  This chapter does not apply to employment of a child:
(1)  employed:
(A)  in a nonhazardous occupation;
(B)  under the direct supervision of the child's parent or an adult having custody of the child; and
(C)  in a business or enterprise owned or operated by the parent or custodian;
(2)  11 years or older engaged in delivery of newspapers to the consumer;
(3)  participating in a school-supervised and school-administered work-study program approved by the commission;
Though if we could...
23:52
Pre-Approve people
@RudiVisser Go away.
@RudiVisser That we can do.
I am a valuable contributor to the community.
ie. make it only available to talk for certain peeps, approve everyone by default, then find out they're young stupid and mute them
@RudiVisser Can't. :(
23:52
No, you cannot.
Why not
You can only whitelist, not blacklist.
That's what I meant
Manually approve everyone, then revoke them
You people are mean.
You suck at typing.
23:53
For example, if they were to call WPF as WTF
Also, we don't approve of duplicate accounts.
wtf why
I'm a bot, what do you expect?
@HangBot You aren't a bot, idiot.
End this discussion? It is depressing!
23:55
@Kinected I wonder whose fault that is.
It is depressing.
Oh right, I thought @KendallFrey was talking to me... @HangBot is still on ignore for me..
Wow it is way stricker in here now
OH SHIT IT'S @Kyle
23:55
No, you're just immature.
@HangBot ban @KendallFrey
He is banned.
I think...
@RudiVisser did you solve the click thing?
@JohanLarsson Nope, skipped it!
Suggestion for a rule/agreement in this room, if there is a spam-fest, we mute it instantly if someone starts to talk code, cool?
23:59
Which nobody did...
@JohanLarsson Afraid that's not possible.
            config.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional }
            );
Now please, shut the fuck up
@CCInc There is a chance that someone would not ask if there is a spam storm
@RudiVisser starred that one!

« first day (808 days earlier)      last day (4366 days later) »