« first day (714 days earlier)      last day (3435 days later) » 
00:00 - 14:0014:00 - 22:00

12:23 AM
mostly
multi-touch stuff is different/unhandled directly
 
 
6 hours later…
6:08 AM
Morning!
It's the kanelbullens dag today!
 
Hey!
 
Hey
 
Is there any way to fill a Rectangle with RadialGradientBrush but without Gradient?
I need a set of solid colors.
One of the ways is doubling GradientStops. Like if you want Red-Black from 00 to 11. By default it will be two GradientStops, Red on Point (0, 0) and Black on 11.

And adding 2 more gradients like that: Red 0-0, Red 0.5-0.5, BLack 0.5-0.5, Black 1-1
Will reslut in almost 2 solid colors.
But if you zoom, there will still be short gradient between Red and Black in (0.5; 0.5).
Is there any way to remove this short Gradient?
 
wait, why don't you use a SolidColorBrush then?
 
Using other Brushes is not the way, because I have a lot of GradientStops. And with Brushes like DrawingBrush or VisualBrush I would end up with lots of geometries or visuals.
 
6:18 AM
ahaa
 
Because with SCB I will have to create hundreds of Brushes.
 
you want two or more colors without the gradiation?
 
I want all of them.
Like a brush with a thousand GradientStops without Gradient.
With this approach RadialGradientBrush gives me pretty nice performance.
I can have tons of colors and it does not lag.
 
then I can't help you there... I guess you could create your own brush that doesn't do the gradient. but I don't really know how...
 
Well, as Maverik suggested I gotta learn pixel shaders, but it requires time.
 
6:21 AM
mhmm
doesn't seem to be very much information on that on the interweb... maybe you could use a image and a DrawingBrush (msdn.microsoft.com/en-us/library/…)
 
I do not know... It will end up in creating thousands of Geometries...
Tho, probably it is same as creating GradientStops...
Well, may be I may try.
 
6:59 AM
i'm back!
it might more fit in a c# room, but, I will post it here
10^3 = 9
why?
Math.Pow(10,3)=1000
isn't those a same thing?
(I wanna produce 1000 btw)
 
xor
var m = 1E3; is one way
 
yep
 
Hello Johan
Home with the dog? :)
 
nope overslept
 
ajaj :)
 
7:14 AM
Does a datatemplate always generate a ContentPresenter ?
 
still no usage of SO chat on the job?
 
should go now though
@Asheh you use a datatemplate in a presenter
@Markus I have started to bring my personal laptop + phone to connect
not very active in chat while at work though
 
I have an expander, with a headertemplate. BUt it generates a ContentPresenter automatically
But its the wrong size, so I have no idea how to make it bigger...
 
bye
 
7:15 AM
(based on snoop)
 
 
1 hour later…
8:19 AM
Don't worry guys, I fixed it.
MORNING
 
dude ^
10^3 = 9
why?
isn't it should be 1000?
 
No
Use Math.Pow
^ is the logical XOR operator
 
oh so johan was answering me... quite confused back there. thanks.
 
8:35 AM
Just don't ask me why 10 XOR 3 is 9, hahaha
 
@Sean , and why 10 XOR 3 is 9?
 
001010 = 10
000011 = 3
001001 = 9
 
wow thanks markus
 
Markus wins. It makes loads of sense when you lay it out correctly
 
Yeahy!
 
8:40 AM
(i still don't understand btw, quite weak in binary. but nevermind, thanks anyway ;))
 
XOR means exclusive OR
 
right
 
Only returns true if only one side fulfills the condition
You might call it a "true OR"
 
and that means that one 1 will be 1, but two will be 0
 
Rather than an "either or"
 
8:42 AM
mmm... mmkay XD
 
And when working with binary numbers, it operates on all the bits
Markus' layout is spot on for understanding it
From right to left you've got "Is 1 only present once? Yes. Is 2 only present once? No. Is 4 only present once? No. Is 8 only present once? Yes. Result 8 + 1 = 9"
 
   0101
   0111 xor
   0010

   0101
   0111 or
   0111

   0101
   0111 and
   0101
 
You can tell who actually paid attention is CS classes
All I remember is "[insert paragraph from textbook here]. Hmmmm.... That's a bit heavy... Let's go through that step by step."
Oh, and making a shit version of pong in Java :D
 
hehe
 
Cos I went to the back of the textbook and found all the cool shit
We were really bored, there was an example of a bouncing ball in a box and someone said "I bet you can't turn that into pong"
So I did.
I was showing off but they were all dicks anyway :D
 
8:50 AM
our programming teacher made a mine sweeper game, and our assignment was to do a solver to it. we all received an api and went home doing the task. But some of the teachers colleagues also thought is was interesting so they also made a solver. But they didn't use the api, instead they somehow hacked their way into the memory and solved the pattern in less than a couple of ms, while our solvers at best did it in like 10 secs or so...
 
Hahaha that's brilliant
I didn't go to university
So when I say CS, I mean "Computing A Level"
 
it was some good times man :)
 
I can imagine
Having people with actual knowledge
Instead of a PE teacher who might have had a passing interest in programming
Nobhead.
 
when I went to highschool (or what it's called when your around 18-19 years) I had a PLC programming course. one assignment was to make two picking machines communicate with each other. After finishing the task the teacher asked me to teach him, because he didn't know... we had the grade system of 1-5. and I got a 4... what more could he possibly have asked for???
now it's lunch!
 
Markus, are you currently studying your bachelor?
 
9:07 AM
@Markus I hate that. You probably missed something out of the marking scheme
 
10:01 AM
nope I finished my master 6 years ago
 
Morns
 
morn'n
 
Morning André
How's it going?
 
hello!
How do I get started with WPF?
recommendations please!
 
read up on MVVM
 
10:06 AM
Still tired from all the political incorrectness from my facebook feed
 
I've used MVVM extensively in my MVC applications
I've got problems with XAML though
 
MVC? isn't that ModelViewControl (instead of MVVM)?
 
yes it is, but splitting Model into Models and ViewModels (and then mapping them) makes code a lot more maintainable... Each View will have a ViewModel, but not necessarily a Model
 
And you @Sean are you good ?
 
I see.
 
10:13 AM
That might help, @gldraphael
And then there's always trusty ol' WPF Tutorial
@AndréSilva Yeah I'm fine thanks =]
 
thanks @Sean
I was looking for something like that!
 
No problem ^_^
 
10:34 AM
Hello WPF genius peeps.
 
hides in a corner, unworthy of the name
puts dunce hat on
sucks thumb
 
I have a template, which uses a content presenter. If I use "HeaderTemplate" it doesn't seem to inherit the DataContext
If i use Header, it does
Sorry this isn't very clear
 
Context: expander
 
So, my control template uses this:
<ContentPresenter ContentSource="Header"/>
my data template uses this:
<DataTemplate x:Key="ArrayFieldTemplate">
    <Expander Template="{StaticResource StructureExpanaderTpl}">
        <Expander.Header>
            <Grid>
if I use <Expander.HeaderTemplate> //content presenter does not inherit data context
<Expander.Header> // Does
 
10:59 AM
why do you need to use content presenter?
 
to present my content :)
 
The ContentPresenter is in the StructureExpanaderTpl template
 
@Asheh well that's not what i meant exactly, but anyway, i'll let @Sean handle this instead. Good luck
 
LOL
It's here because I handled it and burnt my hands
 
:)
 
11:02 AM
I've been relegated to the dunce corner
 
if I help you, then I will indirectly insult you.. SOOOOOOO, MOSES OUT!
back to my project!
 
:)
 
@Asheh HAHAHAHAHAHAHAHA
I'll let Mav watch that and clean it up
I think he will find it amusing
Awww guys you need to get on the bass from the first track in this mix: youtube.com/watch?v=tqTiqGIJ4PQ
Give it 30 secs
And prepare to have an eargasm
 
11:20 AM
Fun fact, Reed is stackoverflows 18th highest ranking member when sorted by overall rep :)
 
Wow
We truly are in the presence of giants
If you bother to stick around until US-land wakes up
 
ahead of eric leppert - the sole reason i left him in there :)
 
YESSSSSSS UK REPRESENT
Gew on Jon Skeet, my son
 
xD
 
Fun fact : There's more C# than java at the first glance. Lambda ftw
 
11:24 AM
Java has lambdas now (its had since java 7)
i think reason jon skeet ranks so much higher than others is.. he ranks on both c# & java
while most others are one or other
 
Did I say hello? Cuz hello.
 
nope. Hello. How's day?
 
ohai bill
 
Hey Billdr :D
@AndréSilva I totally didn't ask how you were earlier. So, how are you?
 
bill there's a typo in your email.. right in start and I feel i said this same thing last year?
 
11:27 AM
I'm not sure how today is. Extra-Life is going to make that javascript I wrote the other night their official thing, once they give me an api to use instead of page scraping. That's cool.
 
That is cool!
 
A typo in my email?
 
yea imagine!
:D
 
Oh, in the extra-life "thank you" email?
That was all defaulty and not my thing. I'll be happy to report it if you can tell me what it is.
 
"Thank you very much for your supporting me with your" <-- first your
 
11:29 AM
That's tricky
 
that sentence is grammatically awkward....
 
I'm not sure if "your supporting me" is correct
 
'Thank you very much for supporting me....' would be better.
 
Yes
It needs rewording
 
I mean, it's a thing that could be said, but it's not right
 
11:30 AM
You could omit the first your
"Thank you very much for supporting me with your..."
 
well even if its not right, at least its readable.. two yours give you a pause
 
They do
Mav, Binding StringFormat with DateTime, GO
See if you can beat google
 
i can't
 
Awwwww
 
i have to prepare interview questions for a senior asp.net guy :(
why can't i interview somebody about something i actually know
 
11:31 AM
ctrl+shift+t is an important shortcut in chrome.
 
oh yea
it works in firefox too (i just converted to firefox from chrome on windows 10)
 
11:45 AM
2 hours ago, by Sean
How's it going?
Wasn't that for me ?
 
Maybe. How's it going?
@Maverik Win10 is going to have to wait until after the live stream. I don't wanna deal with not-final-code any more than Steam Early Access forces me to.
 
howdy folks.
 
Hey hey!
11 donors so far, three are from this room. I <3 you guys so much. sniff
 
Need some advice, I am going to be working on a web based system. I haven't done web work in 4 years. And that was all in Perl/JQuery. What are my best tools for web stuff these days in C#/.NET?
I hear good things about AngularJS, that is is like working in WPF for web
 
Oooh, this is me!
So, every project I have is WebAPI2, MVC5, EF4, JQuery, and KnockoutJs.
I will sometimes use amplify, but I don't need it often.
People like AngularJs. I haven't had an opportunity to actually look at it. I'm going to petition for a few weeks of fiddling around without a project after this wraps up. I am getting a bit burned out and my tech feels stale.
stale to me, because I haven't done anything really new in a while.
 
12:04 PM
Knockout looks amazing. may have to do some research on both angular and knockout and see what I see
 
@AndréSilva It was. I am retarded
I think MS advocate knockout for use with MVC don't they?
 
Do they? It kinda breaks the mvc pattern
 
Also, EF is EF6 now
Does it?
 
KO is MVVM.
 
I use MVVM with MVC
You know how you've got @model SomeNamespace.ModelType I just make view models
 
12:08 PM
Yeah.. that's model, not viewmodel.
 
Hmm... OK =]
 
the controller emits models which are consumed by the view. The models are also stored in the database, in a straight MVC project.
with MVVM my controller pulls a model from the database, transforms it to a viewmodel, which knockout consumes and applies to the view.
 
Fair enough, I put a viewmodel in there in case my view needs other stuff
But I am probably fucking the pattern up :D
You do more of it than I do, I trust your judgement here
 
It's tricky to do MVC without changing the model.
which is why I like MVCVM :p
 
lol
So maybe that's what I do as well hahaha
 
12:10 PM
I pinned Bill's Extra-Life
So newcomers will be able to check it too
 
THE BILL
 
Knockout is kinda like bindings in WPF. I don't know enough wpf to expand on that... but it seems to do a lot of what the xaml does.
Eu so O Bill.
Andre was speaking English and thinking Portuguese. :)
 
Yeah
 
Thanks Andre.
 
I was answering an email while writing that
 
12:12 PM
You guys could probably bin my gif also, so as to not annoy mav.
 
And I'm listening to some Deustchrock :(
1 message moved to recycle bin
Haha I forgot about that
 
I meant to put a period after it, but then I got desecrated talking about web technologies.
 
Can anybody advise me. I have a datatemplate and within it, based if SOMEVALUE==0. I want to display somthing different.
What would be best for this? TemplateSelector?
 
Triggers
 
DataTrigger?
 
12:18 PM
Yarp
 
12:51 PM
@DreadPiratePeter sorry about being late to this party, i had a quick go at both (KO & angular) -- Angular in my mind appears to be a superset of KO
KO is pretty cool for bindng stuff.. but Angular brings other stuff to the table like resource management & DI if memory serves
 
I think I am tripping...
 
for my currently running job ad, we've asked for somebody who at least is aware of angular
also I like that gif -- too precious :)
 
false && false evaluates to what?
False. I'm stupid
I hate filters
 
thanks guys. is IIS still my goto for the backend?
 
2 messages moved to recycle bin
no
self hosted ftw
 
1:02 PM
hrm. 1/1/1900 12:00:00 AM is apparently an awkward date for EF to choose to use as a default datetime.
 
like most ms things, IIS is too bloated -- its the freakin swiss knife thats not very good at any one thing
 
I use IIS, it's a bit slow and tricky to configure.
 
@Billdr give the yy default.. it makes sense
 
ah, so what would you use instead for a decent-size enterprise-y app
 
given*
IIS can be very good, if you have full admin control of machine -- you need ot unlock its machine.config sections
and then your web.config can trim it down to just the right things
 
1:03 PM
I like Azure for my personal stuff. There's IIS somewhere in the stack, I'm sure, but I don't interface with it.
 
but normally this isn't an option
Self Hosted Owin is far easier to handle and starts all lean & trim
oh and no admin access needed besides a url reservation
 
Just use IIS
=P
 
^
 
given how the Asp .net is going and how .net 5 is going to show up -- nows the best time to catch up :)
iis will be changing its core to owin based code pretty soon, i'd say
 
Oh right, fair enough
It will probably still be less hassle than apache to set up and manage
Fuck apache
 
1:08 PM
haha, shellshock.
Holy hell you guys, we're making so much shellshock money.
 
"Open Source is safer cos more eyes"
 
The last year or so has been a weird realization that Linux may not actually be perfect, and so many people are shitting themselves.
 
Yeah, until retarded server admins don't patch vulnerabilities
 
katana is pretty easy to get up and running
i think 5-6 lines of code to get your webserver up in code
 
"I hate windows update, it restarts all the time"
Yeah, because there are retarded admins and users
Fuckin noobs
 
1:09 PM
ooh, nice cover of one of my favorite songs: youtube.com/watch?v=bJiaLPx4ZIo
 
NOOOOOO! A REBOOT! ON MY DESKTOP!
 
^ this
 
Sometimes a reboot takes five minutes. Five minutes!!!! Sure, I could uninstall some of the bullshit on my pc, but I'd rather complain and be snobbish about the os I use.
Take that, strawman.
 
I had to patch like 8 linux servers the other day
A day before it was in mainstream news sites, I might also say shines knuckles on chest
Meh anyway
 
Good on ya.
Although you may want to redo those patches, as most of the day one patches were half-steps.
 
1:12 PM
I updated bash, is that not sufficient enough?
 
apt-get dist-upgrade
 
I mean it was only one minor version out of date
I should check again
Ewwwwwwwww debian
 
rpm ?
package?
 
Yar
yum
Which is basically rpm
 
you should use SourceMage -- love that shiz
minimalistic and perfectly optimised to whatever you have
 
1:14 PM
Mmm
the vulnerability was in bash though
Being able to set functions as environment variables and then having them executed straight away
It wasn't in CGI or anything, it was a bash bug
And the upgrade fixed that. I will check for updates anyway
Yeah there are updates
le sigh
 
1:37 PM
the newspaper metro in sweden wrote about the shellshock bug: "the newly discovered bug bash in the operating system linux..."
 
Wow.
You know when you read tech hournals?
FFS.
Journals*
Or tech news sites, rather
And you think "How the fuck are you even employed to write about this?"
Well, that title is a case of "How are you even intelligent enough to survive?"
 
doing major transformations to my project. hope i don't do something stupid..
 
I mean, you can't really expect to for all newspapers to have a large part computer nerds writing about this stuff, but some correction reading from someone that has just a ounce of knowledge would be great
what other areas, that I don't know anything about, have they done the same mistakes in? and makes me sound like an idiot when i talk about stuff....
 
Yeah exactly
You expect a degree of professionalism
 
@MosesAprico I don't think that I ever made major transformations in a system without doing at least something a little stupid.. it's part of the process :)
 
1:45 PM
@Markus ugh dude. thank you for successfully rising my anxiety level.
 
well that sucks!
 
@Maverik I think he was joking?
 
I knew that already :)
What, you’re saying it’s other people too? Hmm… ;)
 
Jon Skeet rocks
 
yea he was :) -- sucks that in multi-line markdown won't parse
 
1:47 PM
Yeah it does
 
any music suggestions?
 
Pitbull feat. G.R.L Wild Wild Love
 
Did you see my deep house mix earlier Markus?
 
nope
 
Oh mate
Start here: youtube.com/…
And let it play
For hours
Just groove and code
 
1:53 PM
youtube?
don't you use spotify?
 
That's not on spotify
I have spotify
 
is it sfw?
 
hmmmmmmmmmmmmmmmmmmmmmmmmm
It's deep house. The pictures are of girls
 
hehe so I'll wait until I get home then :)
 
I wouldn't say they are lewd though
Will grab you some music from our tunes channel
I dunno wtf I'm linking here
just copy-pasting stuff
OH!
Have you heard Lindsey Stirling?
 
1:57 PM
it works
the links...
 
Yeah, they work
I dunno if they're any good though. I usually ignore most of that channel
 
ehh first was ok, second and third was not my kind of music
 
@Markus three good albums I listened to already today:
King Crimson Level 5
Neutral Milk Hotel - In an aeroplane over the sea youtube.com/watch?v=b3Bx1s8Nus8
 
Lindsey Stirling is on Spotify. It's violin set to electronic music, so a little bit of dubstep and dancey stuff
But most of it is really nice
 
00:00 - 14:0014:00 - 22:00

« first day (714 days earlier)      last day (3435 days later) »