If resx localization doesn’t work on your .NET Core application…

Let’s say, you are writing .NET Core application in VS 2017. You have added the following resx resource files to your project

  • Resources.resx (Let’s take it as en)
  • Resources.fr.resx
  • Resources.zh-Hans.resx

However, when running on a French OS, sometimes you may still get English text  for Resource via  GetString.

You might as well try Rebuilding the project.

Switched WordPress database to SQLite

It’s a long trek for sure *sigh*

The beginning of this 3-day journey is a simple installation of SQLite Integration. After following the instructions to switch the back-end database from MySQL to SQLite, I found this plugin worked out very well. Then I decided to convert or import the data from MySQL to SQLite database, where the nightmare begins.

After a series simple googling, I found this question on Stack Overflow, and the following tools for conversion. I’m running Windows 10 on my laptop. Continue reading Switched WordPress database to SQLite

Written a MediaWiki Client Library

This is a MediaWiki client library based on .NET PCL, targeting at .NET Framework 4.5, ASP.NET Core 1.0, Xamarin.iOS, and Xamarin.Android. The verified supported MediaWiki API version can be as low as MediaWiki 1.19 (Wikia). FYI, now Wikipedia is using MediaWiki 1.28.

Repository: https://github.com/CXuesong/WikiClientLibrary

Other MediaWiki client libraries: https://www.mediawiki.org/wiki/API:Client_code

Advertise for it: Frankly I haven’t take time to summarize, but it supports

  • common API for page query/creation/edit/deletion
  • generators.
  • file upload
  • query result pagination (encapsulated as IAsyncEnumerable )

Continue reading Written a MediaWiki Client Library

Coursera Machine Learning Ex.6 2.5: Try your own emails

ml-spam-test-4
Perhaps this mail is so short that it seems like a spam XD

Continue reading Coursera Machine Learning Ex.6 2.5: Try your own emails