« first day (3079 days earlier)      last day (2095 days later) » 

mr5
mr5
02:47
o/
03:19
Hmmm Scanner out there keeping scanning and spam my web server
Whats up
You should see your house
I hooked up a sonicwall to my house once, it's like wild fire
 
3 hours later…
05:58
posted on March 19, 2019 by Scott Hanselman

I've blogged a little about Blazor, showing examples like Compiling C# to WASM with Mono and Blazor then Debugging .NET Source with Remote Debugging in Chrome DevTools as well as very early on asking questions like .NET and WebAssembly - Is this the future of the front-end? Let's back up and level-set. What is Blazor? Blazor is a single-page app framework for building interactive client-side

 
1 hour later…
06:58
Anyone know this error, I'm calling web service which is throwing me this error.
>Authentication failed because remote party has closed the transport stream
07:13
(removed)
(removed)
Who uses hangfire here?
(I'm Not)
(removed)
Hey AppleCider
Have you ever seen PeachCider?
07:29
@Arphile shutup and take my money!
haha
@Arphile it's PeachCiderYummy
@Neil do you use hangfire?
@Neil where's your money!
@AppleCiderYummy nope, just sounds delicious
Oh I see. So, I'm looking for something like runs as a background service. Something that will generate report automatically without triggering the ui. Let's say, automatic report that will send to the boss in every last day of a month
@Neil have you tried this?
https://cdn.discordapp.com/attachments/558554422309814275/558554439691141121/900.png
those are amazing..
07:36
nope, but my proxy has maybe
I understand
wassup @Proxy
08:02
Why to do all exceptions [Serializable]?
@QuicoLlinaresLlorens so that you're guaranteed if you need to write out an error to a log, you're not going to get a not serialized exception instead
seems kind of straightforward
You can somewhat plan for certain types of exceptions, but it would be silly to plan for them all
it makes more sense that should you have an exception, you should be able to serialize it
So my wife's birthday is tomorrow
she said not to buy her something, but I wanted to get her a small gift anyway
any suggestions?
maybe flowers
no flowers.
she likes flowers though
don't ask me why.. I like a laser-pointer distance measuring device
she likes watching flowers whither and die
08:13
Hewwow.
Meow
Meow
mr5
mr5
@Neil "I don't want anything for my birthday" it's a trap bruh
when should I use static classes?
mr5
mr5
she'll open up one day when you fight: "you didn't even get me anything on my birthday Y_Y"
08:25
when you need to access form from another form and so on?
mr5
mr5
make her a website that redirects to facebook
google "c# why static classes"
if you have to ask..
mr5
mr5
why static classes is static
@mr5 ok, which is why I want to get her something anyway
ohayou
@AppleCiderYummy nothing special. How about you?
08:37
but you waited until the last possible day? That hurts.
@ABuckau she said not to get her anything!
If I get her something just the same, that should be positive not "why the hell didn't you buy me something sooner!?"
no.
you put more efforts into riddle on the internet..
@Neil Get her socks
maybe a new husband?
XD
you guys are useless
I asked her not to get anything for my birthday and she didn't.. how double-edged and f**ed up is it to expect something different?
and the point, was that I was looking for something..
08:44
um..
well the goto is to find something she enjoys doing, but woukdnt axtually "waste" money on for herself...if she does art, sometthing srt rwlated etc etc. if she doesnt need snything like that..
Hi guys
@Neil What makes you want to get something now?
do something with her yhat she enjoys? maybe a specisl date?
maybe a day at a spa just for her?
I just wonder about what's the correct way to signup by using OTP
@Vintage like the thought just crossed your mind..or are you willing to put a little effort into it?
surely yhere are tutorials that cover the logic/security aspects involved.?
08:50
Should I have create user data to DB before they verify their OTP?
shoukd you take security advice from a random person on the internet?
probably? otherwise any P works for anybody. ?
I just want to know about which's the correct way
The correct OTP work flow
09:10
buy her an edible G-string. When she asks why you bought her present, you can say, it's for you!
FBI joins 737 investigation.
Funny.
Politics joins Boeing.
Heyo
I have a base class Invoice and 2 subclasses (InvoiceA, InvoiceB).
InvoiceA has a public bool Property { get; private set; } I want.

Now another class takes an Invoice as paramater and I conditionally need the public field.
I tried:
if(invoce is InvoiceA)
{
(InvoiceA)invoice.Property;
}
Why does this not work?
((InvoiceA)invoice).Property;
or if (invoce is InvoiceA invA) invA.Property.....
Ah yep, now I see it, thank you!
As simple as 1+2*3!=9 and 1+2*3=7.
However, you can do new Something().DoSomething() without paranthesis around new Something() which is a bit odd.
@Neil I'd give her a hard copy of the original C# 1.0 spec.
09:38
is there any tool to generate a db schema from a sqlite query ?
@QuicoLlinaresLlorens How is the query specifying types?
what do you mean?
DB schemas usually have types defined for each column
Queries very rarely have anything to do with types
So, trying to create a schema from a query you'd pretty much have to make every column nvarchar(max) or binary.
Writing create table statements isn't that hard. You probably have some normalizing to do anyway so start by thinking what you need to store and then create a new schema.
10:20
@MikaelDúiBolinder its not really odd, just the order of parsing
or the explicitness of the grammar
morn
p...
.orn
c
c#
Java++
!!c# or java
10:23
May 5 '16 at 15:17, by BoltClock
THIS ROOM IS OUT OF CONTROL
lmao
#fail
10:38
!!java or c#
!!did you fall asleep ?
@Hans1984 Of course!
> Unhandled exception: System.AI.ThinkingTimeoutException: Could not determine result.
11:05
!!>(![] + [])[+[]] +(![] + [])[+!+[]] +([![]] + [][[]])[+!+[] + [+[]]] +(![] + [])[!+[] + !+[]];
@nyconing "fail"
the size of that is quite large for the small output it has
I am confused as to why the difference is that big
hi
can anyone help me in understanding the difference between :
bool XYZ = true;

1) if (XYZ)
{
//Code
}

2) if (XYZ == true)
{
// code
}
why the first approach is best practice
11:20
both are best practice
@Rish because XYZ == true should be redundant assuming XYZ were named properly
if(isRaining) seems more straightforward to me than if(isRaining == true)
@Neil
I took XYZ name just for an example.
actual variable name is meaningful.
but if (rain) doesnt really make sense
@Wietlol in fact "rain" is a horrible name for a boolean variable
it represents the value of a condition.. and "rain" isn't a condition, it's just a noun
(I do know that in languages like JS, this is a common approach to check for presence)
11:23
@nyconing oO
@Neil it doesnt have to be a boolean tho (not even in C#)
@Wietlol so what would it check in that case? If it is null?
Unity has that idiocity for example
can you do if(nullableVariable == true) in C#?
Yeah, but not just if (nullableVariable)
@Rish == true is fairly standard practice for nullables
11:25
public static implicit operator bool(object obj)
{
    return obj != null;
}
actually, many times I get Code Review points from reviewers that
do not check the boolean variables like
if (someBooleanVariable == true)

instaed use
if (someBooleanVariable)
so I just wanted to know what is the difference and does it impact anything ?
there is no difference except for readability
It's redundant to use it for a plain bool
I find if (x == false) sometimes to be more readable than if (!x)
but always keep the name of the value in mind
if (isValid)
if (hasValue)
if (it.IsPresent())
if (rain == true) // todo pls rename this variable
It's just redundant, like writing isValid ? true : false
11:30
ok.. thanks
@Wietlol @KendallFrey @Neil
You gotta admit though, if(!yourIntel) doesnt read as fluently as if(yourIntel == false)
ye, the false cases are more interesting
but == true is a rare occurrence
11:57
my preference is bool isValid = <bool expr> == true; Func<bool> evaluateIsValid = () => isValid; return evaluateIsValid() ? true : false;
it was not long after I resigned from my prev company, when I took the time to just analyze some code in our company. Just to ease my guilt, that it's perfectly sane decision. And there were ~20 goto in the code with hungarian labels. And ~120 == true or == false. Best decision of my life...
I hope you don't mean the labels were literally written in the Hungarian language
yep. They were. Like goto Hiba;, which means goto Failure;
best best pun, or not intended pun was goto Hiab;, which is goto Fialure;
the code was first written in VB6 stored in CVS, than converted to C# stored in git. So if there were ancient codes which you were interested in how did it evolve, you had the option to go back to CVS and find out, or just shrug.
12:58
Any idea why VS wont group/collapse my app.config files?
files must be dependent on other files
app.Test.config depends on app.config
all app.XXX.config files are only transform files
only app.config has all the values
what kind of project is it?
test project
.net FW 4.7.2
open csproj file
you can see the include tags, your app.xxx.config is missing the dependent on thingy
(I realize that my explanation is completely understandable)
<None Include="app.config" />
<None Include="app.xxx.config">
	<DependentUpon>app.config</DependentUpon>
</None>
if you ask me why VS didnt do that for you? I would say "something something VS something something Rider something something"
;)
or maybe you did something weird
13:22
Ah I see
Hi, i need add hours, minutes or days to a DateTime according to the value of enumeration selected but i would like make it without check the value (without "if" statement). I thought of a extension method but I'm not sure
make a case switch then :D
I smell that smelly smell
give the enum a property that is a multiplier
13:30
so, minutes = 1
hours = 60
days = 1440
yourDateTIme.AddMinutes(x*yourEnum)
the only issue is that enums cant have properties
-_-
Well time for osme weekend, bye bye!
My logic of doing so is because if they add another type of unit in the list I do not want to have to add another if, I do not know if I understand what I intend
@Wietlol enums can have attributes which can have properties?
13:43
true
but that is rEfLeCtIoN
I could add an attribute that indicates the milliseconds that the property equals
or you could use a decimal
and then based on hours
except that... in decimals, 1/60 doesnt exist
bleh
thumbs down for decimal
fractional
1440 is not a particularly large number to have to save as an integer
no need to use decimal
13:49
0.01666666666666666667 is not an integer tho
wow, can't get anything by you, can I?
no, it's called a DE-CI-MAL
@FedericoFiaSare how about an DateTimeActionAttribute?
[DateTimeAction(dt => dt.AddDays(3)] AddDays = 1
I have a question about JavaScript from within Visual Studio. I know this is a C# room, but most C# peeps also seem to work with JavaScript.
I created new MVC application, and then I created a new javascript file with a function.
I can't tell how to test this single javascript function from within Visual Studio...
MS Tests run great for the C# code, but is there something I need to do for javascript (not typescript, no javascript framework, just javascript)
Then a DateTimeExtension
myDateTime.InvokeAction(myEnum)
@MyDaftQuestions what is the relationship between this javascript function and your MVC application?
Is it a web page?
13:54
@MikaelDúiBolinder something similar I thought
@MyDaftQuestions here's an entire sample for you: code.msdn.microsoft.com/Coded-UI-test-automation-ab99ca9a
Yes, a web page
[TimeMinutes(60)] Hours
and then MyDate.AddMinutes(x * Hours.GetMinutes()) GetMinutes() is a extension method
@MyDaftQuestions Usually to test a web page, you open a web browser
VS can open an internal web browser
@FedericoFiaSare timeUnit.Invoke(myDate, q)
13:58
Yes... I am aware of that... But I want to test the JavaScript. I used to use a runner (chutzpah) with Jasmine but that seems to have been depricated
Look for WebDrivers
I am already using Selenium
But that is obviously very slow
@MikaelDúiBolinder what is "q"?
@FedericoFiaSare It's the letter in the alphabet that follows P, but that's not important right now..
14:11
@MyDaftQuestions You can test on two different levels. UI testing, meaning you'll test the entire page in a browser and automate a test against that, or unit testing, where you split the piece of JS into chunks to test. For UI testing, look into Selenium. For unit testing, look into Jasmine.
Or mocha.
@Neil 'P' + 1 != 'q'
damnit
get your tables checked Neil
I said q is next in the alphabet, not the ASCII table
you know we are programmers, the alphabet is an ascii table
or rather, a sub range of the ascii table
"subset of" != "is"
but its still ascii ;)
and still a table
just not the ascii table
14:20
you mentioned ascii, not me
how difficult it is to put names to things!
Adding an extra field or two to my model would break it for other clients in web api ?
There are really two things programmers have a hard time with: cache invalidation, naming things, and off-by-one errors.
those are not three?
@FedericoFiaSare he was typing and meanwhile they breaded into three ?
14:31
!!woosh
Adding an extra field or two to my model would break it for other clients in web api ?
@Neil no u
you could also have said 11 things
but then the off by one makes less sense
I could have, but then it wouldn't have been funny
no one ?
14:40
@Pointless-Ai depends entirely on what happens when those values are not provided
If you have anything that's raw SQL that selects * it could break
But adding something to a model, unless a NameSpace is going to conflict you should have np
I don't know if he meant adding fields to a db table
Some model be it VM or DTO
Pick one, can't be anything else
Thanks @RoelvanUden... I used to have Jasmine with Cutzchazhpah but was recommended to stop using it... Went pure selenium and it's not practical
I have no idea what Cutzchazhpah is but it sounds like a Dark Souls boss.
Whatever this Cutzchazhpah is, it's not Jasmine/Mocha. You can continue using them.
14:55
Any BI gurus in the house?
I need a product recommendation for reporting and visualization, along the lines of Oracle OBIEE or Power BI or OpenText.
Yes, it is @RoelvanUden, Chutzpah is the test runner which executes Jasmine :)
You can use Jasmine without that odd test runner.
15:21
@KendallFrey holy fuck is the JS discord always this toxic?
Is it toxic?
It's like the epitome of "straight white males being strongly opinionated about things they don't understand" right now
And "being super condescending about it"
I've seen worse
15:34
@MikeTheLiar I think you may want to revisit now, tone has shifted; I expected to see some discussion carry in here because I could see you were getting uncomfortable. If I played any part in that, I apologize, wasn't even a fraction of my intention.
@MikeTheLiar what did they say
not verbatim but approx
Ööööööö, the alphabet is not an ASCII table.
mr5
mr5
Asciibet
Utf8bet
@misha130 tl;dr Trump/Pence aren't literally rounding up and executing LGBT people so they can't be anti LGBT, also trans people are fucked in the head and unstable and as such shouldn't be within 100 yards of a firearm
lmao a javascript discord server
well its my opinion but I think discord is always trash
mr5
mr5
Is racism in Europe really that common?
No European has ever been racist.
hmmm as an immigrant in 3 countries now I kind of just accept it as is
mr5
mr5
I always see a rant in 9gag coming from Western people talking about "white privileges" or something like that.
15:44
as a natural course of events
which sucks but whatever
@MikeTheLiar So every tech chat ever, then?
Only if we let it be.
mr5
mr5
Didn't know our country fell on top racist country in the world ¯\_(ツ)_/¯
I guess I'll just play dotka
16:01
@mr5 Vi sitter här i Venten och spelar lite DotA
mr5
mr5
I don't speak tilsitter language
mr5
mr5
What is Venten?
U mean ben10?
Why is the video not available for me? This is racist
Region specific?
@mr5 Ventrilo, I think
16:12
God damn that video is so.. old.
One day that was stuck in my head so I put it on loop and played factorio for a few hours
I've been damaged
It is wild to watch the video for it again; because everything in it is so antiquidated.
Because I guarantee, people playing SC1 during that period of time were not jamming with attractive women at whatever-kind-of rave this is
lol nowai
has anyone ever used the debug button when a windows app crashed?
(an app where you have no source for)
I tried it very briefly, once. I didn't get very far with it.
mr5
mr5
16:16
I put the link in a proxy and find a YT feature called Listen Noob Mode. Is this feature region specific also?
I wouldn't be surprised; since that is probably tied to YouTube Music
And I don't think YT Music is available everywhere.
why arent lan parties still a thing
humble wish
mr5
mr5
Weird. It is opening okay in my laptop.
Oh, ad block?
YT in recent months has been very fussy with my Ad Blockers.
@misha130 they are
mr5
mr5
16:19
LAN parties are still very common in our place, especially if you're a college student who plays MOBA
@hilli_micha it's not opening in my phone but okay in my laptop
That is downright goofy.
mr5
mr5
unpleasant foolish?
unpleasant stupid?
Only as unpleasant as you are feeling in this moment.
17:02
posted on March 22, 2019 by ericlippert

[Code is here.] Last time on FAIC we made a correct, efficient implementation of SelectMany to bind a likelihood function and projection onto a prior, and gave a simple example. I deliberately chose “weird” numbers for all the weights; let’s … Continue reading →

 
1 hour later…
18:25
19:22
The only usage for the this variable is to pass the current object as a parameter.
19:33
Hey guys, A quick question here
How can I contraint to generic type that have the + operator?
    public class RegionOfInterest<X_UNIT, Y_UNIT>
    {
        public new X_UNIT X { get; set; }
        public new Y_UNIT Y { get; set; }

        public new X_UNIT Width { get; set; }
        public new Y_UNIT Height { get; set; }

        RegionOfInterest(X_UNIT x, Y_UNIT y, X_UNIT width, Y_UNIT height) {
            X = x;
            Y = y;
            Width = width;
            Height = height;
        }

        public X_UNIT Left => X;
        public Y_UNIT Top => Y;

        // Not working because X_UNIT and Y_UNIT has no + operator defined
@NickB Unsure if you saw this; stackoverflow.com/questions/8950865/…
@Michael I haven't seen that one, but it's not what I'm looking for
In my case, X_UNIT could be time and Y_UNIT could be frequency
But in other case, it could simply be double and double
19:55
Since they're statics... Nope
You could however do a check in the constructor
But, IAddable<T> { T Add(T right); }
From what I've learned best practises is to put the operator logic in another place than the operator implementation, so you can call Add etc
ok, I'll give it atry

« first day (3079 days earlier)      last day (2095 days later) »