Blog.Xinxing

Articles about tech, physics, and everything else related to life!

Why sometimes the dropdown list does not show up in a Dash table?

/

The Dash datatable is a very useful component provided by Plotly Dash. An editable Dash table allows for dropdown list for certain columns. However, sometimes the dropdown list does not show up properly. Let’s now review a few reasons that cause the problem. Reasons for invisible dropdown list with the default style For the Dash …

Build multiple binaries from one project in dotnet

/

Sometimes we might need to build slightly different binaries (or assemblies) out of the same code repository. For example, you might want to release your application with some features to your customers, while hosting/running the full version only by yourself, or in one platform a dependency of your application is not available, while there is …

834. Sum of Distances in Tree

/

Intuition of O(n) solution based on “undirected” tree My solution is in principle the same with the O(n) solutions posted by other people. But their explain is more or less based on directed tree while my intuition based directly on undirected tree, as mentioned in the original problem. In an undirected, every node simply “connects” …

WPF default style

/

How to use a WPF Style Every WPF FrameworkElement has a Style property, which you can use to customize your WPF controls. Create a style the control’s Style property, and you can set any DependencyProperties of that control with Setters or Triggers in the Style: <TextBlock Text=”Welcome to my blog!” > <TextBlock.Style> <Style> <Setter Property=”Background” …