Authentication for Angular .Net Core Project
I have used Angular since .Net Core 2.2. In the past, I still can use identity framework core but you have to link the Angular with your api by yourself, you need to jwt serialization. But in the .net Core 3 with Visual Studio 2019, you need to create the angular project with by selecting the individual user account. Then the basic identity framework core structure will be generated for you. The user login and registration user page are generated. That is so easy and saved at least an hour work for me too!
UTF-8 Slug Issue on WordPress
In the past, my hosting server supports UTF-8 URL, I can use the chinese name as Slug in wordpress. In the past few days, there is a server upgrade, then UTF-8 does not support anymore. In the past, because I am lazy, blogging in my top priority, I left the chinese name in URL. I know that is not good for SEO. Also, it made all post links are not working anymore.
I found only way is to reset all post slugs with a random number. I know that affects SEO, it made all post links in search engine in not working.
At the end I ran this sql to reset all old posts,
update set wp_posts
set post_name = floor(RAND()*10)+15
where post_name like '%\%%'
That is a bad solution, but that is the best solution I had now. Now, I manually write 301 Direct for all popular posts I have aware to the new url.
Raspberry Pi 4 Lanched
Finally, Raspberry Pi 4 is released. It got 3x higher performance 1.5GHz quad-core 64-bit ARM Cortex-A72 CPU, and you can choose 1Gb, 2GB and 4GB. That is very useful if you are doing machine learning. Moreover, it supports:
- Full-throughput Gigabit Ethernet
-Dual-band 802.11ac wireless networking and Bluetooth 5.0
-Two USB 3.0 and two USB 2.0 ports
- Dual monitor support, at resolutions up to 4K
- VideoCore VI graphics
- 4Kp60 hardware decode of HEVC video
That is more powerful computer. I think even you can use it to replace your home desktop. For basic model (1gb RAM) $59.95 and the top model (4GB) $94.95.
But the down side, it sounds more power is required. The input power is 5V 3A USB-C. Moreover, that is much more expensive.
New Mac Pro 2019 - 28 Core Xeon 1.5TB Ram
I watched some important parts of WWDC 2019. The long waited New Mac Pro is finally released. It will 28 Cores Xeon, 1.5TB RAM, dual graphic cards. That sounds a beast to do the video rendering. That sounds cool. I wish to say "I want it", but that will be available on Fall 2019 + starting price is USD$6K! That is not a affordable price tag for me!
IKEA USB Type-C Cable
IKEA is the name of furniture store, my blog is about IT. Mentioning their product in my blog, it does not make very sense. Actually, IKEA sells some IT gadgets and they are with good value too. Recently, I bought a USB Type-C cable for AUD$7.99. In other places, I think I need to spend at least 10 dollars. Moreover, It has a durable textile surface, it looks nice and that is more durable! I highly recommended this product, super value for money