« first day (3256 days earlier)      last day (1699 days later) » 

8:08 AM
What in the hell happened Friday
!!learn fridaywater <>https://chat.stackoverflow.com/transcript/message/47299293#47299293
 
@CaptainObvious Command fridaywater learned
 
 
4 hours later…
11:45 AM
Friday is when all the fun happens.
Probably because I'm not around on Fridays.
 
12:14 PM
Me too
 
I'm literally sitting here, watching a Spark cluster transform and convert several hundred gigabytes of data. Nothing to do until it finishes except occasionally monitor the statistics, which are meaningless until it finishes, anyway.
Screw it. I'm going to head outside for proper coffee and a croissant.
 
Good plan
I've just been out for lunch
 
12:57 PM
I'm back. Spark is... *checks* still running.
 
@AvnerShahar-Kashtan How was your croissant?
 
Very nice. Though not technically a croissant.
I actually don't know exactly what to call that particular pastry. It's not exactly a danish. Not a croissant. There's probably a super-specific French or Italian name for it.
Since Spark is still running, let's go over this and check:
This is a list of desserts from the French cuisine. In France, a chef that prepares desserts and pastries is called a pâtissier, who is part of a kitchen hierarchy termed brigade de cuisine (kitchen staff). == French desserts == Café liégeois Calisson Charlotte Clafoutis Coconut cake Crème brûlée Crème caramel Crêpe Suzette Croquembouche Custard tart Dariole Éclair Flaugnarde Floating island Fraisier (strawberry cake) Kouign-amann Macaron Marjolaine MendiantNorman Tart Opera cake Pain d'épices Pêche Melba Pièce montée Poire à la Beaujolaise Poire belle Hélène Pot de crème Plombières ice-cream...
I believe it was some variety of croustade
 
1:15 PM
I have, of course, fell into the rabbit hole of Wikipedia lists and am now both hungry, nauseous and faintly longing.
Deep-fried butter is a snack food made of butter coated with a batter or breading and then deep-fried. The dish has been served at several fairs in the United States; among them, the State Fair of Texas in Dallas, Texas, and the Iowa State Fair in Des Moines, Iowa. It has a significant buttery flavor, which has been compared to that of French toast. Fried butter is a similar dish, for which recipes exist dating to the 17th century. == History == === Canada === The debut of deep-fried butter in 2010 at the Canadian National Exhibition in Toronto, Canada may have led to a rise in attendance at the...
 
1:25 PM
Of course Fried Butter is popular in the US
> Some critics in Edinburgh have referred to deep-fried butter as a "coronary on a plate", but chefs at the pub have stated that when consumed in moderation it "should be all right".
"Should be"
 
Edinburgh, yes. We're talking about a city that, when confronted with the factually inaccurate claim that deep fried Mars bars were local specialties, instead of denying it, they simply adopted it as a locaŚš specialty.
 
1:41 PM
I'm sure there's a way to do it but my google skills have gone blank, say I have a class which has a bunch of string fields in it, how can I have that come through as a single parameter of the class when it hits the action method (asp obviously)
 
Not sure I understand.
You want to have it injected into the action method's parameters?
 
I feel like it's called bind or something but I can't remember. It shows up in the default EF scaffolded controller in the Create and Edit methods
Yeah I've got like 8 form controls which I'm sure there's a way to bind all their values back to an instance of a type
 
Oh, we're talking MVC and actual controls on the page. Haven't a clue.
 
Hmm
Wait hold on I might have got it
I don't got it
 
1:59 PM
@CaptainObvious that just works doesn't it?
I don't recall having to do anything special
You might need [FromBody] to accept a form submission as an action parameter
 
2:14 PM
It would appear not
I'll try FromBody
or maybe FormForm is another one I've seen
FromBody killed it even harder
FromForm makes the request "work" but still with null in all the fields as above
 
2:48 PM
[FromBody] just makes it more strict
best you can do is to take the json and to try to deserialize
(or have diagnostics tell you in the output)
also I very vaguely know that in WebAPI it doesn't work to have 2 parameters
and I am 90% sure that in MVC it does work
 
Hmm okay so I will have to put the orderID in the address model?
I'll give it a go
 
3:09 PM
but you are on mvc so yea
it should work as is
 
Does being on .net core 2.2 make any difference?
 
yes look through the docs
 
mr5
Monday again 1hr from now :(
 
Hometime 1hr from now :)
 
mr5
Is MVC a design pattern or framework in .NET world?
 
3:22 PM
I think it's kinda both, but I don't know. I'm fairly new to it
 
@mr5 its an architecture pattern
as MVVM and such others
 
mr5
but people always refer to it as it's some kind of framework
 
well yea cause an architecture is sort of the same as a framework
 
it's definitely a pattern, it's kinda a framework too
 
if you think about it
 
mr5
3:27 PM
"How do I do this in MVC" instead of "How can I do this with MVC pattern"
 
I think its also the name that they gave this template kind of
you wouldn't ask how to do things in MVVM if you are working with angular, right?
 
mr5
I'm not sure. I'll specify the pattern for sure if I ask
also, no idea how angular works
 
well no because you can't use any other pattern in the framework
 
mr5
I once used MVC pattern to design my GUI framework before (assuming I did it right)
the Controller controls the GUIs. Views are the GUI component itself. One thing I'm really unsure about is defining Models in a GUI framework
 
I wonder if webforms can be considered mvc
 
mr5
3:32 PM
I think that entire framework was built using that pattern
maybe it's because MS decided to attach the acronym MVC to its framework name
hence the confusion
 
ef is unit of work mostly
 
mr5
3:53 PM
interactive GraphQL
you get what you ask for
 
it doesnt work nice with models tho
or you have to make everything nullable
 
mr5
I think it's the responsibility of the caller to clearly define what he needs
 
4:13 PM
It's both. MVC the architectural pattern has been around a while and has implementations in many languages. Asp.net MVC is an implementation of MVC for . net
 
 
6 hours later…
10:31 PM
hello, I am working on a problem and have created a monstrosity but I have a fairly straightforward question. I have a List<string, int> and I would like to decrement the List<string, int>.First().Value. How do?
it says

int KeyValuePair<string, int>.Value
Gets the value in the key/value pair.

Property or indexer 'KeyValuePair<string, int>.Value' cannot be assigned to -- it is read only (CS0200) [Daegu]
 
11:03 PM
Hello experts, does anyone knows how can I trigger Azure functions on a specific time
 
like a cron job?
 
yes
 
I think NCRONTAB expressions will help
just got it
 
good job
 
11:05 PM
yeah this will work
 
by the way, do you have an answer to my question?
 
thank you guys
thanks Kush
 
I would like to decrement the value in the commented line myList.First().Value =
 
looking
var myOrderedEnumerable = inputDictionary.OrderByDescending(element => element.Value);
var myList = myOrderedEnumerable.ToList();
myList.First(d => d.No = "2");
i guess this might work
 

« first day (3256 days earlier)      last day (1699 days later) »