« first day (1509 days earlier)      last day (2640 days later) » 

12:00 AM
I may just check for a few simple cases, and reset otherwise
but yeah - trying to make something to handle (immutable) collections getting binding updates ;)
 
I have some stuff here
pretty sure it does not qualify as nice algo
 
yes
the framework controls do not handle list of more than one item in newitems/olditems
 
that's a significant change :)
 
well, you can do >1 add event ;)
etc
(it does handle that)
 
12:03 AM
true
 
my first naive version was doing that - it'd collection them
and if there was <4, it'd raise them in series, otherwise, turn it into a reset
 
@JohanLarsson makes one wonder why are these collections
 
but - given what I'm doing now, I don't think I even need to do that - can just stomp individual elements
@milleniumbug 1 change (with move allowing swaps) handles the 99% use case
 
sure but if the >1 aren't handled, then one could simply have a nullable OldItem/NewItem property
 
I'm not proud of that code but it has been somewhat nice to use in apps
not optimal anywhere
 
12:06 AM
oh, I skipped over the ">1 add event"
fair enough
 
 
8 hours later…
8:26 AM
morning
 
morning
 
ahoy
 
 
4 hours later…
12:58 PM
Morning, friends
 
morning
 
 
2 hours later…
2:48 PM
WpfFarmer.CausePercipitation(Type.Rain,Intensity.Light);
.    .       .         .            .
Raining here ever so lightly
 
 
2 hours later…
4:49 PM
xD
 
Hey Maverik
Got serilog working with sql
Trick was to create a separate connection from the one for EF
Otherwise it'll fail silently
 
hmm
connection - as in string or connection as in actual connection?
 
Connection string
The EF connection string has some extra info that's not needed for a basic connection
Such as metadata
 
soundsl ike an ef6 string
ef7 string doesn't have that
 
5:07 PM
Yep, it's EF6
Wow this room's quiet today
 
probably because i'm not spamming today?
i'm home and laying low cos of flu
i think lynn's doing the same
 
Sorry. Hope you both feel better soon
 
nod thanks
i should be up and running closer to weekend unless it changes into dry cough (it normally does - usually the 2 week sickness pattern)
 
5:24 PM
Yeah, had a summer cold. Hot and cold at the same time
Tackling multiple projects today
Some WPF... added serilog sql logging to console app. It was writing to file before
Some TCP data processing via another project
And some MVC this afternoon
 
5:38 PM
I gotta return to this chat more often...
Sup all
 
Lots of context switching for me
 
Oh, the dark chat for SO is amazing
 
~reused type~ + enum is such a common pattern
such sadness
 
6:03 PM
it is indeed Andre - welcome back
fyi, we've got our own version of extension as well (it's got c# / f# support while rlemons plugin focuses on langauges mostly used in his chat groups i think)
PR is still pending with him so maybe he'll eventually have it all as well
 
._. Yeah, formatting doesn't have c# or f# :(
 
rlemons doesn't - my fork does - the downside is mine is an "unpacked extension" that runs in developer mode
github.com/Venomed/se-chat-dark-theme-plus <- just clone it and load it as unpacked extension until PRs make it into main repo
 
6:24 PM
@maverik Have you done a PR yet?
 
yea 2 trivial ones
 
not the one that fixes the languages, though?
 
waiting to see how it goes next to the 5 others pending
no not that one - as i was saying earlier, i wanted to see his reaction to trivial fixes before i dump a big one
 
nvm, got it
 
i've mentioned though that i've done it in my own fork in one of the PRs so its on his radar
reason my language support is non-trivial is because it not only updates the CodeMirror js package - it actually draws on its code and dynamically fills the combobox based off CodeMirror's declaration of language support. RLemon on the other hand is using hardcoded strings that don't work when you invoke full support of codemirror
because code mirror uses the same underlying markup language for multiple syntaxes, i had to also switch it from using a name of language to it's mime-type based off codemirror's js declaration
roughy speaking - this expands his extension from about 10-15 langauges to 130ish i think
 
7:19 PM
Anyone have any experience with ServiceStack? I'm thinking I want to replace my WCF services at some point.
 
dont
unless you're willing to pay for it - in which case my question would be why servicestack and not nancy?
or even webapi which has come a long way over the years
imho going from wcf to webapi will be easiest transition
especially if you already use basicHttpBinding
 
Yeah, WebAPI is the way to go
 
Not sure what I'm currently using. Default I guess. I just use it to send data between my server and my .NET application.
 
NancyFx & WebAPI are both excellent alternatives
but ServiceStack was great community project until 3.x - at 4.x the developer switched it into a commercial product with "free quota" included
i felt betrayed in that granted it was open source and developer had the right to earn but switching a product from a community project to full on commercial product .. that's wrong imho
also, its not nearly as fast as its alternatives - it's fastest component was ServiceStack.Text (its serialization library) but it's no longer the king especially if you're willing to use newer binary formats
its ORM layer was hideously slow and much lower in functionality than EF4 even
in case you're thinking you can try out 3.x of ServiceStack - it's .Net 3.5 based and isn't maintained (hasn't been for years)
 
My plan was to use EF as ORM since I have a bit of experience with it through school. So I'm just looking for something that makes it easier for me to send data back and forth between server and client. It could honestly run on TCP for all I care. :P
However, I feel HTTP is a better choice since it's more flexible in the future.
 
7:34 PM
just use webapi based off minimal owin stack
 
Is there a lot of plumbing involved with WebAPI? One of the things I enjoyed with WCF was that I just wrote a bit of code and everything else was taken care of for me.
 
there's a bit of initial setup yes but no i wouldn't class it as excessive
 
Gotta love some descriptions @ MSDN
Hey MSDN, give me some insight on CryptographicException please.
MSDN: "Sure thing André, a CryptographicException is 'The exception that is thrown when an error occurs during a cryptographic operation.'"
No sh*t...
 
yes, in my limited experience with C#, the docs are mostly decent, but when they fail, they fail horribly
 
7:49 PM
depends on which intern you've run into
some interns have their particular signature on documentation all over the place
 
Another random commentary from my part...
One of the best thing about living with a stomach reduction is that it is 17h51 and I'm still trying to finish my breakfast :)
I guess I'll have breakfast for dinner today
 
šŸ˜€ well i've had that without reduction for years now :D
my typical day involves one proper meal + 2 cups of coffee / hot chocolate / tea (some combo variation between these)
 
But you're still skinier than me after 1 year and 4 months of surgery :p
 
think its a habit that once you develop for whatever reason, holds on for as long as you're willing to let it have a hold :)
i strongly doubt that!
 
Gonna weight myself, one sec
 
7:54 PM
i seem like somebody who chugs kegs of beer on daily basis and at least 4 meals a day
 
doubt it
 
The way you describe yourself, mav, you seem like those alien coffee drinkers from MIB
 
with my routine that i just mentioned - my body is holding at 80kg right now - up from 76kg from last year
 
And I'm weighting 78.5kg today :)
 
see - i just proved you're "skinnier" than myself :D
 
7:55 PM
I usually tend to weight around 78kg to 82kg
 
that's definitely not 4 meals a day, chugging from kegs of beer daily, size
lol
 
i was varying between 76-79 up until last year - this year i've gained weight and haven't lost it at all.. i'm not sure how that works
 
If he is 1.5 meters tall... 80kg is overweight
 
no i meant it "seems" that way :D
damn it now i need conversion!
 
._. Wtf system do you use? You use kilogram but not meters?
 
7:58 PM
1.75
we use british system!! where we don't discriminate against units! we use all systems available!
 
You and your queen system...
 
well be thankful i'm not telling you weight in stones!
 
That sounds so funny
 
perhaps - but thats the norm šŸ˜€ people talk in stones normally over here
 
But why ?
 
7:59 PM
Silly Brits.
 
but only when it involves people - kilos for many other things - still.. pounds for many other things!
 
That makes no sense...
 
i like to think we use a smart unit system - after a certain number it scales up to a bigger unit :)
 
Well... like all systems :X
 
Isn't that the point of SI prefixes? :P
 
8:00 PM
no its not like all systems
all other systems i know of use units within the system only - i'm talking about not having that limitation
we don't jump from grams to kilograms - we can jump to something else :P
 
Oh yeah, but unnecessary information is needed for convertion
Well, it seems unnecessary for me at least
 
yea but only when i have to do a conversion i don't normally do
 
Brazil can barely hold metrics
 
otherwise in your head you know the relative value of unit in question
its like me giving you 30 degrees for weather but giving you 100 degrees for my fever
you're not going to assume i'm talking Centigrade in both cases (though you can get a bit confused about weather without more context)
100 degrees fever is a lot easier to say than to give you the centigrade reading :)
 
Range finding. I really like the mix of WPF and XNA.
 
8:04 PM
Right, but if the system is not precise, it is only used to conversations...
 
@WilliamMariager whoa! there's a visual!! noice!
PS XNA is deprecated IIRC
 
XNA was launched deprecated
 
Oh, it's very very deprecated :P But I know it and it uses DX9 like WPF, so it's a perfect fit.
 
why not unity ?
 
Shared some insight with a dev that having one lookup table for all lookup types is not a good idea
Now it's coming back to bite him in the you-know-what
 
8:06 PM
@Alex i dunno? šŸ˜‡
 
Not a huge fan of Unity. I've tried using it a few times, but it's too magic for me. And it's so very far behind in .NET Framework.
 
:)
 
One other thing that always boggled my mind is signing stuff for anywhere that speaks english...
 
i'm sure there must be something out there you can use in place of xna (something thats current and supported)
 
I always have to sign with the initial letter of name/surname
I don't like that :(
 
8:07 PM
I could use SharpDX/SlimDX/MonoGame, but it'll be more complicated and no real gain.
 
Plus, said we should use non-EF models (what we call VMs) to pass to views
 
umm thats meant to be only for signatures that are token signatures
 
Now coming around to wanting to use them
 
All I need is basic 2d rendering that isn't as slow as the internal renderer in WPF.
 
Well, yes, but still. I hate that
My full name is André Silva de Seixas
de means of or from depending on the context, so it is not relevant to the name
So I have to sign it as ASS
šŸ˜¬
 
8:08 PM
Alex: having all enum lookups in one table - it shuoldn't be a problem if managed properly
 
I'd probably go with ASdS? :P
 
for the longest time I've considered it to be a problem but then realised that a table is really just a virtual partition - you could just as easily do that yourself - for example in redis
 
Yeah, have to go with ASdS :/
 
I'd normally shorten that to AS
out of curiosity: why does your name have location in it? is it a traditional thing?
 
Meh, I don't like to sign with my initials, rather do a blood pact
Well, because here in Brazil there were a lot of slaves and slave owners
So back then, when a slave was owned by someone, like Seixas
They were XYZ from Seixas or XYZ of Seixas
Really, really common in a lot of places
 
aa so historical thing thats now just part of traditional naming?
(i'm assuming slavery is longer a thing in brazil)
 
Yes, slavery was abolished, but a lot of people kept their names
Just like in some places of nordic descent, people have surnames that you can track back to their grand-grand-grand-(...)-parents work.
Like "John the Smith", but here in Brazil is "André from Seixas family"
 
nod
yea i figured it was a family thing now but was curious about origin
my original guess was it was a town
 
Blame your country neighbors
 
you mean franssu or julien?
 
8:20 PM
Mariager is a town in Denmark. We got the name because I had family living there back then when everyone was getting surnames.
 
I mean Portugal and Spain
 
oh damn - i was so ready to place the blame with those two
mm don't think we have spanish regulars here?
Portugal - nope doesn't ring a bell so far
 
When you mix 1494, the Pope, Spain and Portugal you get Treaty of Tordesillas
That means that each country get to screw a part of Brazil :)
Dutch was involved too but only messed a bit at the south and Uruguai
And a little bit at the north for no reason at all
 
Brazil speaks Portuguese, which is similar to Spanish
It's a lovely language
 
Yes, Portugal colonized most part of Brazil while Spain colonized the rest of South America
 
8:24 PM
Wonder what the languages were before colonization
 
Portuguese is quite lovely, but it is damn complicated
I think Bill knows a lot about languages
Pretty sure I remember him showing interest in learning about language creation and its history
But you know you're screwed when you 8yo and have to learn about Future, Present, Past, Perfect Past and More Than Perfect Past tense
 
:)
 
Ah, conjugation
 
that feels true for all languages?
 
It's true for all
But we can pick up langs quicker/easier up to age 12 or so
After that, our brains get hard wired
 
8:32 PM
i dunno - as devs we pick up languages in routine even in our 40s
granted that languages we pick up are trivial compared to "real life" ones - but they're still just languages
 
Yeah, if we immerse in the culture, it's easier
Well, programming langs are a little different. There's formal grammar with them, but there are tools to help us get the syntax right
 
Well, we get the concept of different types of programming languages
But we don't actually have to learn that much
 
true but you only really need tools in start then it becomes wired into our brain
 
9:01 PM
When deploying a console app, do I need to include all the language folders? It's only going to be used on one server internally
 
generally no except the satellite thats relevant
 
I don't think so, should resolve to neutral iirc
 
Like en
I think I'm doing this so manually, it's not funny
 
the satellites are almost always optional with a default fallback to built-in neutral locale
 
@Alex not needed, include sv-SE and you are fine
 
9:02 PM
which defaults to en but can be declared something else
 
I've taken the contents of the Debug folder and zipped them up, sent them to be tested on our test server
@JohanLarsson ;)
 
Alex you should really start using gitlab with its CI+CD chain
 
Hmm. How do I get started?
 
setup a linux appliance with gitlab on it
 
hipster score: 9.8 :)
 
9:04 PM
What I'd like to do is just give an installer to our server team and have it install to c:\program files\appName\
I've used WIX before to create an installer
 
well you're gonna have to code that and in fact it may be true for CI+CD combo too
but the point of CD is to automate the process of "sent to server team - waiting for them to unzip correctly - hope they run it correctly"
biggest hurdle in gitlab adoption is it's linux dependency generally
 
Ahh
 
if you have docker - its as easy as issuing docker command
if you don't - and you have anything that can install a vanilla linux binary distro, you can get the linux installer and be done with it
Azure offers gitlab vm appliance if that's an option
there's a deployment for AWS too
 
Thanks, Maverik
 
np, but let me know what you choose because it's gonna be a bit of effort to get it up and running properly (and i'm assuming you have git setup already going)
brb
 
10:04 PM
What's your preference when it comes to scripting?
Especially with .NET.
I've used Roslyn which gives a great experience and gives you the imperative approach that scripting usually does.
The benefit is that there is no plumbing. Whatever you've made available by reference simply works.
Lua is popular, but requires a lot more plumbing.
 
@WilliamMariager What are you trying to script?
because for most build related things, FAKE is awesome
all of the access to anything you have in .NET, and a huge amount of helpers baked in to make life easy for build/deploy/CI/etc related issues
 
Well, this would be addons to a game. Things like new abilities, monster ai, and such. So for the end user, not for development.
 
ahh - then it's more "what would your users be the most comfortable using" IMO
not what's easiest for you :p
 
Yeah. The Roslyn/C# approach is definitely the easiest for me, but you don't really see C# as a scripting language in the wild. Lua seems to be leading in that department.
 
10:21 PM
as somebody who does scripting in c# - and not just because i already knew c# - it's more a case of people not realising they have this option than it being difficult to work with
my director has no clue about c# as a language but he has no problem modifying my linqpad scripts to make minor tweaks as he needs it just by following the logic already in there
while lua certainly has a lot of end user impression of the scripting language, it's not necessarily the easiest to work with imho (limited lua scripting experience) and as such you could just as well give them python scripting which also has a huge library support
at the end of the day, they'll learn whatever you'll give them (for example the autohotkey scripting? or actionscript?). We may be developers right now, but we're also end users of other people's works
and that last point is pretty important that a lot of us developers tend to forget - we're not gods in all realms.. we are also the PEBCAKs of other systems
as a very recent example - while I can certainly hold my own in c# / wpf / linq stuff - i'm the PEBCAK for Gjallarhorn
 
Yeah, that makes sense. I'll just go with C# scripting then. At least they don't have to worry about classes and such right away. :) And they'll learn The Right Languageā„¢.
 
well dunno about the right language but giving them c# scripting can let them use linqpad as a mini ide for scripting for free
and its a huge benefit when you're exploring new stuff - that'll be very handy for a script developer of your game
its sad that people think of linqpad as a query tool - its a full blown mini-ide with integrated debugger that supports everything you'd expect from a "professional" debugger
 
10:45 PM
I've actually never used it.
 
11:17 PM
@maverik Linqpad be tough to use for scripting stuff, since you'd have to mock out the environment, though
 
11:31 PM
I'm not sure how - you'd reference his sdk ?
but without referencing his sdk - i doubt there's any easy way?
 
for game scripting, IDE type environemnts are oftne difficult
because the API is often only meaningful when running in-game
 
agreed but i'm assuming since he's going to intentionally give the ability to plugin to the game the api will cater more to end user than to a well designed api meant for developers
my main argument for the ide type environment is: from my limited experience with third party scripting - its really really hard to script things in notepad or an "editor" that is basically a textbox in their program
with linqpads intellisense + ability to run random code as they're fleshing the script out could give them much nicer experience (especially if combined with debugger)
 
yeah - I spent a lot of effort making python add intellisense, nice output, etc for our in-app scripting :p
 
    using System.IO;

    public static class Foo
    {
        private static readonly Stream Stream = File.OpenRead("""");

        public static long Bar()
        {
            var stream = GetStream();
            return stream.Length;
        }

        public static Stream GetStream()
        {
            return Stream;
        }
    }
 
granted this debugger isn't something thats free (or intellisense even) - but there's no reason why he couldn't talk to linqpad author and offer a discounted linqpad in partnership with author so people who get his game and want to get into scripting could get linqpad intellisense at a discount
 
11:44 PM
I'm in the retarded zone :)
 
Johan not following whats wrong with your code?
 
testcases for the disposable analyzer
@Maverik nothing except empty string for filename I guess, just looked so strange
 
aa ok - that's more intelligence than i can comprehend - not sure why you're feeling otherwise :)
i thought he was trying to convolute the code to stress the analyzer
if its a disposable analyzer, not disposing stream anywhere would be the objective :)
 
gonna parse if the called method creates the idisposable
and probably recursive after that
 
this is no easy task
but just to point out - Microsoft own Code Analysers already do this
 
11:47 PM
dunno yet
for binary refefernces it is impossible
@Maverik which one?
 
the built=in stuff? Static Analysis - there's a rule for disposables that I've used in the past
 
yeah, it catches some things
 
perhaps its source could give you good starting point if its somewhere in github
i haven't used it in a while because disposing as soon as I can has become a second nature
 
i've actually now been guilty of occasionally disposing too quickly
 
11:50 PM
Maybe I should run code analysis on the app tomorrow instead of reinventing the wheel
 
its got a lot of helpful stuff in it
 
@JohanLarsson Yes - it's going to be extremely difficult to find some of these via an analyzer, esp. if they cross assembly boundaries
but the code analysis stuff will point out most of the issues (and probably others)
 

« first day (1509 days earlier)      last day (2640 days later) »