« first day (3456 days earlier)      last day (1477 days later) » 

V.7
12:11 AM
 
12:55 AM
WriteLine is a function, validator is not
it is an instance of Func
or... it is a delegate
 
mr5
1:08 AM
@c0dem0nkey you mean, does Prism works in MacOS? It is claiming it can.
 
1:25 AM
posted on March 26, 2020 by Scott Hanselman

I saw this over on the Microsoft Remote Desktop Uservoice Allow ability to choose subset of local monitors for RDP session (full screen) Allow ability to select a subset of current monitors with full screen. Currently can choose all or 1 but cannot choose for instance 2 of 3 (full screen). That seems useful, I wish it did that. I know about this checkbox that says "Use all my monitors" but

 
 
1 hour later…
mr5
2:31 AM
Jack, self-destruct
 
....Come Again?
 
mr5
Jack, learn self-destruct <>https://i.imgflip.com/2nsyoh.jpg
 
I've learned the command self-destruct
 
mr5
Jack, self-destruct
 
mr5
2:33 AM
noice
|| learn self-destruct
 
Invalid Number of args
 
 
2 hours later…
 
2 hours later…
5:53 AM
2 hours later…
 
Buenos dias
 
6:24 AM
Morning/Buenos días
 
6:40 AM
This years April fools joke was way worse than the last year. It was awesome
 
I didn't actually follow that yesterday lol
For some reason I didn't really...notice many aprils fools jokes
 
And it is kinda ironic anouncing a fake ultra dark theme, when the actual dark (beta) theme is pretty buggy
 
Some subreddits switched things around, but that's it
Biggest bug: It's not on chat
 
This years joke ultra dark mode
The review queues are wrong, some are unreadable
 
mr5
dark theme doesn't work for phones. sad
ultra dark theme looks cool but laggy
 
6:50 AM
Also hard to read because of hte low contrast. But I' use it as long as it's here :D
 
My first website 20 yers ago had a very similar look to ultra dark mode, it did address how to configure a US Robotics 56k on Linux
 
Hey I bet someone will make it into a custom style to use with stylus...then with higher contrast.
@bradbury9 How did the screen then handle it?
 
Pretty good, no need for bootstrap and things like that because nobody had large screens
And it was a bunch of text and script and tips to configure that modem
So no big deal
I wish I could know if anyone did use that info tho
I do think "Yup, I did something, it could be useful, but... did it help?" nowadays we got analytics and get feedback
 
mr5
7:33 AM
ah
accountability
 
is this url fine
X/{A}Y/
 
7:47 AM
@bradbury9 2019 q4 and 2020 need to restart 🤔
 
8:02 AM
Human should learned to protect our home Earth already after pandemic
Especially China
 
agreee
I will protect everyone
 
@Shad This is a strange URL
 
but is is a valid url?
if it is valid, why you calling it strange?
not adhering to standards or something?
 
I don't know the official standard by heart, but I'm pretty sure you need a tld at the end
 
mr5
@Shad yep. pretty uncommon
 
8:15 AM
url?
A/A/A/A/A/A/
 
yes that one
I meant route
@mr5 hmmm okay
 
ahoy mateys
 
A/喵喵!/o(∩ω∩)m/
 
:)
 
No! A squirrel! Anyone, bring me the shotgun!
 
8:25 AM
Ahoy Captain O7
 
@bradbury9 Try us matey!
 
a weird thing is happening
I have applied 2 group joins
x
y
I decided to put y above x
groupjoin(y)
groupjoin(x)
now it is giving me wrong output
 
it's not weird. Think about it. If you first group by days, than by months, you will have max 31 groups of max 12 items
if first by months, than by days, opposite.
 
still don't understand sorry :(
 
8:37 AM
if you can explain nthol example
I am trying to think of it
 
too abstract, any reproducible parts?
 
I group Join by days
so I have 31 groups
and then I decide to do group join by months
hmm
so I can have max 372 records right @ntohl?
@nyconing sorry I can't even reproduce right now haha
ok I do understand I will get different groups
 
for example. You have items on days 01.01 and 02.01. You will have result of item[1][2] rather than [2][1]
 
so when I do GroupJoinX.GroupJoinY.ToList();
I will have different counts right?
 
yes
 
8:46 AM
okay so one will have count 1 and other will have count value 2
right?
in your example
 
yes
 
hmm
but the overall data(info) they contain is still same right?
thank you so much! 0>
 
after the SelectMany, it should I think
ofc if there is a distinct, it's not the case
 
var dict = listOfDateTime.GroupBy(x=>x.Month).ToDictionary(x=>x.Key,c=>c.GroupBy(v=>v.Day).ToDictionary(s=>s.Key,d=>d.ToList()));
var foo = dict[12][31];
 
thank youu
I want to master this
 
9:07 AM
hmm.. that suit your case?
actually you do not need to always pre-process the data, unless you are heavily rely on that and performance critical
you can run query like .Where(x=>x.Month==12 && x.Day==31) when you need
 
I will think about it...can't thank you enough :)
 
9:23 AM
Hello guys
I need some advise regarding 404 file or directory not found error
I uploaded all my code to server using remote desktop but when I am trying to open my website url . I get 404 file or directory not found error
can anyone help me on this
 
Do you use IIS?
 
yes
 
Is IIS activated?
(turned on)
 
on server?
 
9:27 AM
let em check
yes it running properly
 
Do you have another website on that server that runs properly?
 
yes
 
Does the IIS site point to the folder with the web.config in it?
 
yes
 
Any redirects or url rewrites configured?
 
9:35 AM
Yo
 
I have a rewrite url written in default.aspx file
 
any idea about the equivalent of C# ?? in JS?
Because I am about to stab sumwun
 
@Maximious What kinda website is this? Haven't worked with aspx in a while.
@HéctorÁlvarez Doesn't have that. In JS you just go if(someVariable) and it'll check for undefined/null
 
it loads some data and documentation
 
9:37 AM
Also why not typescript?
 
Because this is an embedded utility to do stuff that isn't available otherwise
I am not supposed to develop scriptlets, but I have the option in case someone asks for something idiotic
 
TypeScript is absolutely lovely. Use it.
 
I can't
 
Write typescript, compile it to javascript
 
^. But if you're lazy and want to continue hating your life, use c = a || b in JS
 
9:43 AM
I. Can't. Use. Typescript.
Actually || is the equivalent, lol
sort of.
 
It's really not. But it works for most cases. Just remember the type weirdness of js.
 
Well, I didn't know there were Java-based JS engines until recently.
 
@HéctorÁlvarez Not with that attitude you can't.
 
@HéctorÁlvarez doubt
 
10:04 AM
o> <o
 
mr5
holy crap
I'm super productive today
I can't believe I can do this at home
 
Just remember that Javascript is so far the most advanced AI man has created. It looks at what you want it to do, and almost does it but fucks it up in the most annoying way.
 
mr5 uses home office
its super effective !
;)
 
mr5 is my nemesis, I am bored AF, I got boring tasks and find it difficult to ne productive
One the positive side: My home enviroment is much better than work, better screen, better chair
 
mr5
I'm also bored AF when my tasks are UI related.
I'm lucky today because there's very little UI related stuff I've done, most were service related :)
 
10:18 AM
I had back pain caused to loss of muscle (too much hours a day sitting) and I need a good chair. My home chair is far better
 
mr5
same here
 
arch nemesis ?
 
mr5
I need the gaming chair
but I'm broke af
 
Fuck gaming chairs, I have Steelcase reply air
Best buy I did since I move to my own apartment
The comercial at the shop taught me how to sit in the best ergonomic way
 
mr5
 
10:27 AM
I just use "manager chair"s from costco
We got them in work ages ago and I bought myself one for home
 
Their "executive chair" looks much better, it has a proper lumbrar protection
At the same price
 
10:42 AM
@mr5 lol
 
Oh I can't remember
They've got a few
The point being, theyre all good
 
so has anyone played disco elysium by now ?
 
10:58 AM
Hola, everybody.
 
Hallo
!~shiba
 
I HATE VB.NET
To be honst, VB isn't even that bad
What is bad however is this 4 year old code that I wrote in VB
 
11:16 AM
@CaptainObvious sounds like Photoshop
@mr5 gold
@CaptainObvious You forgot to hiss. hiss
 
I should hiss
But there's some rock solid VB projects which are somehow surviving the absolute battering thye're getting
 
make c# lib inside vb project
 
Why we use stack for calling methods but not queue??
 
Exactly
 
11:21 AM
@chiragsoni Think about what a stack means in the context of calling methods.
 
FILO
 
But the code is mostly bad because I wrote it when I didn't really knoiw what I was doing
 
When you call a method, you're halting execution of your current method, switching to a different one, and then you return to the calling context.
 
Ok fine.
 
So when you call a method, you push the new method context onto the stack. When you return from it, you pop it - and you're back at the previous method.
 
11:23 AM
The one I'm working on is also my first WPF project, so it's all done without bindings and the xaml is a mess because I used the designer
 
If you have a method that calls a method which calls a method - 3 levels in - you're currently executing the last in - it's the first out.
When it returns, you get the next most recent. That's pure LIFO
 
Think of it like a physical stack of papers
 
hello avner :)
 
mr5
o/ avnir
how's Google
and what are the answers to the up coming code jam plz
 
11:33 AM
@mr5 Fantastic facilities <points to the wobbly garden table holding a 27" monitor in the corner of his living room>, excellent cafeterias <points to his kitchen>, and a lively, dynamic work environment <points to his children running around>
 
mr5
ha! distributed office :D
 
 
1 hour later…
@AvnerShahar-Kashtan can You ask if which Windows mono version is equivalent of 4.0.0.4 fsharpc deb package? I mean I would like to compete in F# on windows, but the requirement specifies the mono version like I would apt-get install fsharpc
 
@ntohl Ask... who?
 
some inner support group. IDunno
 
At... google?
 
at Google. It's Google Code Jam
 
12:43 PM
Pretty sure F# is Microsoft
 
Ah. No, I have no idea.
/away washing the floor because my house is a pigsty.
 
There should be some comparison where you can map mono version to .net framework version
 
but it's not even that. It's comparing a .deb package's random version number with mono version
it would be a next step
 
12:54 PM
Is there a reason you can't use F# on .NET Core?
 
F# should work on core shouldn't it
 
1:15 PM
Hello all
 
hello
 
I asked one question of angularjs, but didn't get proper answer as per my requirement so I realize some thing at c# side which is related to asked, so could I update that question or have to raise new one?
 
You're a tad late mate
Although I do admit we haven't pinne anything about that so it might be easy to not see those conversations.
 
im still using light mode
( ͡° ͜ʖ ͡°)
 
1:29 PM
Like you have a choice - chat doesn't have dark mode yet!
So I jsut had a lightbulb appear over my head
 
you always have a choice !
 
The winchesters are from Lawrence, Kansas
The song that is the theme for that serial most of the time is Carry on wayward son
From the band Kansas!
 
CARRY ON MY WAYWARD SOOOOOOOOOOOOOOOOOOOON
 
Have you ever seen that in spanish? Is it as horrible as in german? Sam sounds like a damn child. I was perplexed when I switched from the german to the english version, and that was around the time I decided to watch everything in english.
 
I have this password hashing class. pastebin.com/E5YbGN9s I've used it before but it's been a while. I'm trying to remember what I would put in for dbhash in the ValidatePassword function.
nm. It's coming back.
 
1:41 PM
Your hasing iteration count lacks an h
 
Hmm?
 
HasingIterationCount
 
An 'h'?
 
2:02 PM
@Squirrelkiller What do you mean it's missing an 'h'?
 
hasing -> hasHing
 
Oh
As I recall I copied and pasted a bunch of this.
A class library project supports app.config, right?
 
@Squirrelkiller I thought you meant guns... no I haven't watched any other winchesters
 
I have a bunch of class libraries and one web project in this solution. If I try to access appsettings in a class library, I'm getting the values from the web project's web.config instead of that class library's own app.config. Is that right?
 
@Hypersapien Yup. Class libraries don't define configuration scopes. They're hosted in the web app, so they use the web app's configuration.
 
2:12 PM
ok
 
You'll have to add the library's expected configurations to your main web.config. Which makes sense, right? What happens if two different web apps want to use the same class library? Configuration is an application-level concept, not a library.
 
Right
 
@HéctorÁlvarez Dude, Supernatural!
 
2:28 PM
Hey guys I have a question regarding database and interface
I have two Actions (userinput and click) that are being registred in the database. When I retrieve the objects I place them under a List<IAction> so as children of the IAction interface
 
@MwBakker If the question is "do those two words rhyme", then yes, yes they do.
 
Now I want the interface to hold a property Enum that says "ActionType"
 
@Squirrelkiller I watched like... half an episode
probably because it was in Spanish, I quit fast
 
@MwBakker Might aswell go switch(typeof(list[0]))
 
@MwBakker That's a pretty common pattern, though it's not always used.
 
2:32 PM
Side story, my colleague delivered 3 sequential releases and committed none.
We have no tags now, yaaay.
 
As @Squirrelkiller says, you can use the type as the metadata here, but there are certainly advantages to holding it as part of the data - especially if you serialize it to the DB and have to know what to deserialize it as.
 
@Squirrelkiller Is also possible but how would the property look like in the interface: would it be `Type {get; set;}'
 
@AvnerShahar-Kashtan I would use .NET core ofc. But the scoring system uses mono> codingcompetitions.withgoogle.com/codejam/faq
 
@MwBakker No, just {get;}.
 
and then the children return ClassType you mean?
 
2:33 PM
public interface IAction
{
    ActionType Type {get;}
}
public class DeleteAction : IAction
{
    public ActionType Type {get;} = ActionType.Delete
}
 
Aah ofc all I need is a get property
Thank you, this clears out!
 
It's hard-coded for each type, so you never need to set it, just return the constant value.
 
ofc cause it's an enum yes
 
F#:
 4.0.0.4 (package: fsharp)
 fsharpc --crossoptimize+ --nologo --tailcalls+ -O -o Solution.exe Solution.fs
 mono Solution.exe
 
thanks
 
2:36 PM
Which repo is it from?
@ntohl It looks like it uses the F# Open Edition, a pretty old version but one that is cross-platform compatible: github.com/praeclarum/fsharp
4.0.0.4 isn't hte latest version, but it's close, but from 2015.
 
yeah. It's old, but it doesn't really matter for algorithmic competition
thanks
 
3:01 PM
hmm. I think I should use Mono 4.2.2 than.
 
3:36 PM
<o
 
4:25 PM
I have another question unfortunatly
It was not a class that had the interface I mentioned, but it is another interface
And I can't get it right
In short: I need one interface to implement another
I'll explain further
I have logics that need to be registered, these logics are Click and UserInput. Both Logics are an Action. Both logics (Click and UserInput) are registered in the database but when these are retrieved from the database I want them in one DataGrid bound to List<IAction>
The logics (Click, UserInput) are already interfaces
wait don't mind answering this yet I think I found out
 
im having a server side date problem, anyone here?
 
take him/her to an oreantal restaurant and go paintball afterwards. It's classical and exciting at the same time
and don't event mention your main sever to your side it will mess up your life
 
4:40 PM
lol
 
 
1 hour later…
5:43 PM
@AvnerShahar-Kashtan thx for that. wasn't aware of that sugar. (setting default get value this way )
 
6:37 PM
docs.microsoft.com/en-us/dotnet/csharp/programming-guide/… shows an example of how you might override == so it compares by value instead of by reference. There are many calls to Object.ReferenceEquals to handle when the left or right hand sides are null. I have many classes that I would like to implement == for, and I would rather not type out the same override every time.
Is there a more concise solution? I thought about creating an interface, ComparesEqualityByValue, and having all of my classes implement it. But that doesn't strike me as terribly idiomatic
Or maybe ComparesEqualityByValue ought to be a class, not an interface... Either way, I'm wary
I could skip overriding == entirely and simply never use == anywhere in my code, instead calling .Equals explicitly... But it's a little hard to do a find-and-replace on all my existing ==s without missing some
 
6:56 PM
You know what? If you employ programmers, don't be surprised when the project doesn't do things that you never said you wanted it to do.
 
Darn, I hoped that implementing IEquatable would supply the boilerplate value-equality operators for me, but it doesn't look like it
 
Is it possible to override a method while it still does what it did before override without copy paste that method's substance?
Like "keep doing X, but also do Y" and that Y is the only thing in the method's override
 
7:21 PM
:49012125 you @MeBakker you can have something likle
```
public override int myaction(int mynumber){
return base.myaction(0) + mynumber;
}
```
 
I see
 
@MwBakker you dont need inheritance for that tho
 
 
2 hours later…
8:59 PM
Hi guys!
 
 
1 hour later…
10:20 PM
Hi guyz, do you know how to set Binding Path programmatically?

I tried to invoke PropertyPath but it does not exist in Xamarin.Forms apparently.
 
11:07 PM
@ntohl I asked about groupjoin though not groupby xD
 

« first day (3456 days earlier)      last day (1477 days later) »