« first day (3639 days earlier)      last day (1303 days later) » 

12:54 AM
Hi , how to use datarow foreach to only loop 2 row in c#?
Appreciate if someone could advice me on this
 
 
1 hour later…
1:58 AM
@Yong Datatable.AsEnumberable().Take(2) should be something to that effect
 
user14090664
2:48 AM
Hello
 
user14090664
Can someone explain to me what is happening here:
 
user14090664
public void NavigateTo(string pageKey, object parameter = null)
{
if (pages.TryGetValue(pageKey, out Type pageType))
{
var page = (Page)Activator.CreateInstance(pageType);
page.SetNavigationArgs(parameter);

MainPage.Navigation.PushAsync(page);
}
else
{
throw new ArgumentException($"This page doesn't exist: {pageKey}.", nameof(pageKey));
}
}
 
user14090664
```
 
user14090664
And this
 
user14090664
public static class NavigationExtensions
{
private static ConditionalWeakTable<Page, object> arguments = new ConditionalWeakTable<Page, object>();

public static object GetNavigationArgs(this Page page)
{
object argument;
arguments.TryGetValue(page, out argument);

return argument;
}

public static void SetNavigationArgs(this Page page, object args)
=> arguments.Add(page, args);
}
 
3:07 AM
if (pages.TryGetValue(pageKey, out Type pageType))
{
var page = (Page)Activator.CreateInstance(pageType);
page.SetNavigationArgs(parameter);

MainPage.Navigation.PushAsync(page);
}
else
{
throw new ArgumentException($"This page doesn't exist: {pageKey}.", nameof(pageKey));
}
}
 
user14090664
how does the code work
 
That is taking pageKey, TryGetValue to see if it has a key in the dictionary, if it does it makes a Page(Type) called page, and sets it's SetNavigation parameters
Then the MainPage.Navigation takes the page and shows it
if it's not found in the TryParse it errors
 
user14090664
ok
 
user14090664
how does this work
 
user14090664
And this
 
user14090664
3:10 AM
public class BindableBehavior<T> : Behavior<T> where T : BindableObject
{
public T AssociatedObject { get; private set; }

protected override void OnAttachedTo(T visualElement)
{
base.OnAttachedTo(visualElement);

AssociatedObject = visualElement;

if (visualElement.BindingContext != null)
BindingContext = visualElement.BindingContext;

visualElement.BindingContextChanged += OnBindingContextChanged;
}

private void OnBindingContextChanged(object sender, EventArgs e)
{
OnBindingContextChanged();
 
user14090664
I am learning an mvvm course on Pluralsight and there are some hard concepts
 
What course?
This is changing the visual tree BindingContextChanged
 
mr5
3:53 AM
ctrl + K to format
 
4:59 AM
posted on September 24, 2020 by Scott Hanselman

I talked about Cross-platform diagnostic tools for .NET Core and dotnet-trace for .NET Core tracing but I would be remiss if I didn't show and mention "dotnet monitor." dotnet monitor is an experimental tool that makes it easier to get access to diagnostics information in a dotnet process. If you're running .NET Core within a container - or mostly likely in Kubernetes - this tool offers an ins

 
 
2 hours later…
6:53 AM
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
Which day is it today?
Jack, funfriday
 
Donald and Melania Trump are covid19 positive
 
you are supposed to make a link of that and put becci behind it
 
Good job.
 
always the wrong order :D
 
7:32 AM
For the first time in history
a message from wietlol that I can starharharharharh
It's raining bugs

Hallelujah, it's raining bugs

Amen
 
im sure i had messages you starred before
 
Stop ruining my song!
 
you said "amen", you were done
 
It was for style not for closure!
 
 
2 hours later…
9:18 AM
o/
 
9:28 AM
o7 cap
The room is on 🔥 on this fun friday
 
People are actually at work for a change
 
Lerl
Truth.
 
mr5
I feel like I'm not gonna pass any interview next week.
I'm always zoning out that I can't even introduce myself in front of a computer.
 
@mr5 Fell you
 
10:10 AM
im not at work, im at home for a change
 
10:24 AM
Lazy fat lion!
 
mr5
when did you start working from home green lion?
 
you misspeled fat @mr5
 
mr5
green fatty lion
did you see him irl already?
 
o7
 
mr5
how do we know he's actually green?
 
10:30 AM
Look out of your window, and even you still can spot him.
Thats how big he is.
 
mr5
¿o?
 
?o¿
he's Fat!
You know..
 
mr5
yo mama
 
Youre mother is so fat, she needs 12 ZIP Codes.
 
10:31 AM
Or your mother is so fat, that we she jumped for joy, she got stuck.
@Hans1984 A selfie of wietlol :D
 
mr5
yo mama so fat she can't fit in blackhole
 
Ohh, that's heavy mr5
 
the fat get fatter while the thin get thinner
Oh wait, no thats not how it goes...
 
isnÄt it?
 
well its the same
 
mr5
10:34 AM
 
mr5
MSPaint show off
 
@mr5 nice
 
mr5
now that I think of it, can photoshop be made as CLI?
 
"feed me hooman. NOW "
 
mr5
10:36 AM
photoshop --replace-color #8B4513 #00ff00
ah, I forgot about imagemagick
 
That is a fat shiba!
 
11:00 AM
why does the chemical brothers make me work more than anything else i listen to
 
mr5
11:13 AM
chemical brothers = my chemical romance + jonas brothers
 
11:43 AM
lol
trump got the virus
why is there fat fetish porn here?
 
mr5
=P
 
I like SK's comprehensive list of robots here
 
mr5
🥳🥳🎆
 
12:07 PM
Ryan Donovan on October 02, 2020
Welcome to ISSUE #41 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. This week is pumpkin-spiced so your code can easily fall into your commits. We’ve got bushels of goodies this week: what our chief product and technology officer learned from hiring hundreds…
 
@Feeds Shut It!
 
wow it didn't take 2 years
 
Probs cuz he got rebooted
Give him 30s he'll be slow again
Jack, right?
 
JAAAAAAAK
 
I don't understand mate
 
12:15 PM
that is how we know him :D
 
xD
truth
@Freerey Damn you are slower than jack
 
wdym
I'm actually doing work; wtf are you doing?
 
Chillin'
Killin'
 
some dude on Twitter responded to my reply with "who the hell are you?"
and I'm like "I'm Bart Simpson. What kind of question is that?"
for some reason Twitter users always wanna respond to random replies with "ummm do I know you??"
can I also just say: journalists on twitter are probably the biggest wussies on the planet
 
anyone else refusing to download the nhs covid app cause it sucks balls?
 
12:22 PM
@Freerey The problem is that you're treating Twitter as anything more than a shouting shithole.
 
wdym? I'm still shouting
 
Twitter isn't a place where anyone ever read a tweet and thought "Yeah, you convinced me, I'm changing my mind."
It's just people shouting their opinions and refusing to read anything.
 
the irony is that it's not hard to read 240 characters :P
 
it is not hard to read, but it is hard to accept
 
12:37 PM
@Hozuki ^
@Wietlol ^
Damn wietlol, you're on 🔥 today
 
?
 
hat happend?
 
!~shiba
 
im on :emote: ?
am sorry, am ancient, dont understand your futuristic symbolic language
@Squirrelintraining also, yes, am now wearing hat
 
12:42 PM
Yes
What is this... emote you are talking about?
 
You're on fire. Get with the times, boomer
except "you're on fire" is slang that started in the 80s I'm pretty sure
 
Sheesh, I love mobx so much. Such an amazing library <3
 
@Freerey ⛽
 
gasoline?
or, I'm sorry: petrol
 
¯(°_o)/¯
 
12:47 PM
I have an urge to listen to backstreet boys all day and idk why...must be in a gay mood again
 
Nothing wrong with listening to backstreet boys.
 
ugh
killing your legs one day with heavy squats and then hiking 10miles the other doesnt go to well
 
^can confirm
 
today my legs are gone
 
@Hozuki blah it's just my parents would make fun of me for listening to them 😂
oh noo Hans is a parallelogram paraplegic
 
12:50 PM
D:
noo
 
@Freerey Shame on them. You do whatever you feel like. If you want to listen to that music, go for it. It's neither 'gay' nor 'sad' or something to tease you about. You like whatever you like and that's okay.
 
I never took it personally lol....I was just surprised when they didn't like em
 
Eh, music tastes differ, that's fine. It's not something to tease someone about.
 
well you would've raged at how people made fun of me for liking Linkin Park :P
 
12:55 PM
there were also some hipsters who only liked Green Day in the 90s...yeah, cause those were the best 3 years of their lives; meanwhile American Idiot (which basically WAS the GD album for us) was considered crappy to them
 
@Freerey they great
 
Kevin's the hot one
but I say that like they're not all good-looking guys lol
y'know it's funny I remember there was a One Direction song I liked, but then I realized it was plagiarizing I Want It That Way and I'm like "....oh"
 
@Freerey gd?
 
Green Day
 
oh
Yeah great band
Horrible teeth.
 
1:04 PM
you expect punks to get braces? :P
...cause I did
 
No, I expect them to... DIE
Muahahahahahahhahaah
 
this is all reminding me I need to find a cheap skateboard soon so I can start....all Walmart has are tiny ninja turtles boards and all I want is something properly sized, but inexpensive so that I don't ruin it with my inexperience
 
1:30 PM
@Freerey Let me in on a secret.
Amazon
 
meh I guess, but it's not like I can feel the board beforehand
there is a local board shop at the mall, but they're all for pros basically
 
@Freerey Let me fill you in on a second secret
14 Tage Rückgabegarantie bei Fernkäufen.
(German law that you can send items you bought via the telephone or internet back without any questions asked 14 days after delivery)
 
-_-
fiiiiiiineeee
 
@Freerey xD
 
2:02 PM
Caprica Six, the OG, the one and only, the best bot there ever was
Indeed
everything else is irrelevant
୧༼ಠ益ಠ༽୨
 
2:16 PM
IRRELEVCANT!
୧༼ಠ益ಠ༽୨
@rlemon bring back caprica, you can stay ded
♥
(not to be rude but we miss cap)
 
2:47 PM
yesterday I found out I apparently really suck at Crash Bandicoot now
or maybe the N Sane Trilogy is just that different from the original and it's screwing me up
 
3:06 PM
@Hozuki are ya reviewin anime, son?
 
Guys
weekedn time
sseing u
 
yeahhhhh have fun
 
Afternoon lads
Before y'all have too much fun weekending, take a nose at the eternal struggle to make System.Text.Json actually useful
 
is there an app that can let you cURL-POST from Android?
 
 
3 hours later…
6:08 PM
 
 
2 hours later…
8:21 PM
When you launch a separate thread, is there a problem passing an object into that thread while keeping a reference to it outside the thread, so the separate thread can modify a value and update on the progress, or is that a standard thing?
 
 
2 hours later…
10:36 PM
@Hypersapien I have seen in most places to have an object parameter version of calling Run on the new thread/task/whatever. Which should be used in the case if you are fearing the variable might be GCed or something, while the Thread is doing something with it
docs.microsoft.com/en-us/dotnet/standard/threading/… states that the modified value should be read from the spawning thread by callbacks
I have never done that tho. Adding data parameter which I did before
 

« first day (3639 days earlier)      last day (1303 days later) »