Referenced
I found the root cause is that the JSON generated by swagger is too large: Swagger outputs over 18000 lines for that API! Further research told me that two property fields contribute about 17000 lines. So how to configure swagger to ignore these two properties is the key. After googling a while, I found VeganHunter's answer in this thread Reference is the simplest.
Solution for .NET Core 3.1 and .NET Standard 2.1:
Use JsonIgnore from System.Text.Json.Serialization namespace.
( JsonIgnore from Newtonsoft.Json will NOT work )
public class Test
{
[System.Text.Json.Serialization.JsonIgnore]
public int HiddenProperty { get; set; }
public int VisibleProperty { get; set; }
}
Hope it could also help someone else. 😀
I watched the movie yesterday morning on my own. It's a moving movie, and it's great!
The reason to choose this movie is this tweet. I always have the interest in the Indian people in America. They are kind of our Asian's relatives, aren't they?
Three things made me love this movie.
- The plot, no preachment, just a story.
- The hunter, he is a great father!
- The mountains and the snow everywhere.
Indian people deserve a better treatment.
Previously, I have updated the firmware several times, so when I saw there's a new update, I clicked the "Update" button without too much thoughts.
Yes, I got trouble this time. I got a black screen while the system is not dead. I can log into the system by pressing Alt+Ctrl+F2, no gui, but I can do something to fix it. It is good enough.
I searched on my cellphone to try find something. And the following article helped me.
System76 login-loop-pop
In my case, I guess that the root cause could be the nvidia driver, so I followed the [Reinstall NVIDIA Driver] section in that article and it did save my life.
# remove current driver
sudo apt purge ~nnvidia
sudo apt autoremove
sudo apt clean
# reinstall it
sudo apt update
sudo apt full-upgrade
sudo apt install system76-driver-nvidia
In case someone else got trapped into the same situation, I wrote my solution here and hope it helps.
Eric and I watched the film tonight. He said it's so so.
Obviously, he didn't see the profound meaning in the film. That's ok, after all, he is only 14 years old.
I love this film. It always reminds people to question your current situation, and encourages people to get a change.
By my recommendation, my new workmate He (贺) moved to Ubuntu from windows, and he was annoyed of one thing: cannot input Chinese. And I have to google again to find out the answer. This is why I wrote this list for him like people and myself.
sudo apt install fcitx fcitx-rime
im-config # and select fcitx as the input engine
fcitx-configtool # > Add input method, remember to tick off `Only Show Current Language`