The way to watch TV
In the past, we watched TV via an antenna. We needed to follow the station time table to watch the programs. I still remember I had a video recorder to record any programs I missed by using a timer to set the recording time.
During recent years, in Australia, our ways of watching TV are changed. Now, we watch TV via the internet, not via an antenna anymore. A lot of friends had some online TVB subscriptions, such as Netflix or TVBA. Even some people like us not willing to spend on watching TV. All free-view TV stations are available on the internet. We can watch the live broadcast via the internet. A lot of newer TVs have built-in FreeView app, that is very easy to navigate via your TV remote. For us, they got an old TV. But I had a Raspberry PI, which can act as a TV box to connect the internet from our TV. Also, in Brisbane, some areas have not a very good TV signal. So, watching TV via internet is more stable. Moreover, some stations have free Program On -Demand service, so I can watch the programs I like in any time I like!
String.Contains won't work in EF Core 3.0
In the past, when I used EF Core 1.1, I can use String.Contains() in where to preform string like search.
Such as:
_db.Customers.where(x=>x.FirstName.constains("michael"))
But we moved to EF Core 3.0. I found that is a problem, I got the exception regarding the LINQ translation. This sort of helper function in where is no longer support.
I need to re-write the query, like this:
_db.Customers.Where(x=>EF.Functions.Like(x.FirstName, "%michael%")
)
Angular Material Radio Button is not working
These few months, I am working on a project which is using Angular Material Framework. Its functions are very rich. It makes UI very nice. But you need to have a very tiny html template. I found my Radio Button is not working. You cannot select the values. After several trial and error, I found the mistakes I did is placing mat-radio-group elements in a mat-form-field element. Even the page is still rendering the nice UI, but the functions are not working. The solution is simple, I just need to change mat-form-field to a div!
Angular Material Animations is not working
Angular Material framework is very useful. It will make your SPA look like a native mobile app. It works fine in desktop, tablet and Mobile. However, I found sometimes, the styles are broken and the Animations does not working anymore. I did a research on the internet, a lot of people are saying that is because the style files are not applied. In my situation, it does not sounds that is the case. Finally, I deleted the elements one by one. Then I found it caused by the malform elements
Cherry MX Brown - Programmers' Switch
A lot of programmers like to use mechanical keyboards. The type of keyboards got better experiences on typing and more durable than the traditional membrane keyboard.
For mechanical keyboards, there are several different types of keyboards switches to choose. Each type of switch will give you a different typing experience. I have used the top 3 popular switches.
Firstly, I tried Cherry MX Blue. A lot of people call it "Typist Switch." It got a "clicky" sound when you are typing. But I found that it is noisy, and the keys are a bit "hard."
Secondly, I bought a keyboard with Cherry MX Red afterward. I like that. It has not the "clicky" sound, and the keys are much softer, more comfortable for typing. That is very good.
Recently, I bought a ducky keyboard with Cherry MX Brown. I found this type of switch is my most favorable switch. The keys are soft too, and it got a bit "clicky" sound, but not very noisy. I will award this type of switch the name, "Programmers' Switch."