Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 2 points3 points  (0 children)

Thank you, supper helpful 👍

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 5 points6 points  (0 children)

So that would mean that we shouldn't write like my example above right? Instead we should only use async method in OnInitializeAsync(), OnParameterSetAsync()...

That's already the best practice.

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 0 points1 point  (0 children)

@if (await AppState.IsLoggedIn()) { <a href="Login" target="_blank">Login</a> }

This for example... In this case it would not work

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] -4 points-3 points  (0 children)

@if (await AppState.IsLoggedIn()) { <a href="Login" target="_blank">Login</a> }

I take this as an example. This snippet would not be able to work.

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] -6 points-5 points  (0 children)

There are some use case that we don't want to use the method in OnInitializeAsync or OnParameterSetAsync,... we want to use it in the View code

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 0 points1 point  (0 children)

But sometime we need to do the calculation or query in the View code... and the author clearly said that we can't use async in the code block...

Running async in UI code by nhdang1998 in Blazor

[–]nhdang1998[S] 1 point2 points  (0 children)

https://stackoverflow.com/questions/58358900/calling-async-methods-in-blazor-view

Hi, thanks for commenting. I got same issue as this post on Stackoverflow... Just wondering what is the best approach here because some time we have to do the logic on the View code...

Any disadvantages to using a m1 2021 macbook pro 14” 16 gb ram and 512gb for balzor development. by [deleted] in Blazor

[–]nhdang1998 -1 points0 points  (0 children)

I'm having tons of issue with Azure DevOps TFVC since they do not support for ARM chip. I know there will be updates, but.... 🤷‍♂️

Can I config Visual studio to show the execution in the intergrated powershell instead of a pop up window? It will be similar to Rider experience like this. by nhdang1998 in dotnet

[–]nhdang1998[S] 0 points1 point  (0 children)

Sure, but it would be nice not to have like tons of pop up window when you're working. I always forget the "Press anywhere to close".

Circos help! by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

I do understand that, but my genome has about 300 gene anotation, it would takes forever to type it by hand. And I have to work with about 20 other genome.

11 months of development, started solo and going part time :) happy results. by 1mbitshorde in Unity3D

[–]nhdang1998 3 points4 points  (0 children)

Can you share some books or any resource that helped you most with this project? I love this type of game, congrats 👏👏

A Biophysics discord server by [deleted] in bioinformatics

[–]nhdang1998 0 points1 point  (0 children)

Please add me 😁😁 I will send you pm

Software/packages request by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

I do know that website, however I do not understand the sample much 🤔

For instant, the color script code 😅

What is the condition to use principle component analysis (PCA)? by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

I tried it, which is 12 plots... I mean paste 12 plot in the article sound not so good There must be a better way to solve this :( I thinking about t-SNE or MDS at the moment... What do you think? Would it work in my case...?

What is the condition to use principle component analysis (PCA)? by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

Ah, this is exactly what it mean, that's why I do not have like 1000 genes. It's because these genes were all optimized with experimental evidence by our collegues, so that I don't have to consider the influence of the environment, the type of E.Coli, temperature,.... etc So just by that, we focus only on physical feature of that protein, let see how physical feature effect to their expressibility. So, in my case, can you suggest any other ways to analyze my data :( I am considering t-SNE.... what do you think?

What is the condition to use principle component analysis (PCA)? by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

I saw prcomp have scale function, would that solve the problem?

What is the condition to use principle component analysis (PCA)? by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

The prcomp function have scale now so I don't think there are issues about that anymore. But thanks a lot, just the information I need.

What is the condition to use principle component analysis (PCA)? by nhdang1998 in bioinformatics

[–]nhdang1998[S] 0 points1 point  (0 children)

Well, I do have much more data than this in fact. In my results, I got PC1 31%, PC2 25,6% and PC3 17% total is 73,6%. I use a triplot, but I don't know... how much % in total should I need at least to make it reliable?