Albert

User banner image
User avatar

Posts

  • Checks if the remote file exists

    Language: C# /// <summary>Get remote file information</summary> /// <param name="url">The URL of the remote file</param>...
  • Extend some useful string functions in C#

    Add some useful extension methods for string manipulations in C#. Make coding more elegent, interesting...
  • Unicode to Chinese conversion notes

    Unicode expressed like “\u4a44“. Chinese words located from 0x3400 to 0x9fa5, including simplified and traditional...
  • Data visualization with Flask

    install Flask pip install flask Get Template Writing code Idea: Based on the proper visualization...
  • Accessing private fields in C#

    Based OO principles the private fields should not be accessd by anything outside of the...
  • MySQL urlencode/urldecode that support chinese chars

    Post_name in wordpress is urlencoded, and not showing Chinese chars. urlencode DELIMITER ; DROP FUNCTION...
  • Crawling 51job in Python

    Summary The data is stored in javascript variable in 51job website. The crawling could not...
  • Python Data Visualization Practise

    Python Code import json import requests # 3rd party import jsonpath from pyecharts.charts import Map...
  • 用设计模式降低循环复杂性

    条件语句的作用是更改控制流,任何程序都离不开条件判断。但条件判断会增加程序的复杂度,过多的条件判断会导致循环复杂度(Cyclomatic Complexity)。 这种复杂度取决于3个因素: 分支变量数 分支数 条件嵌套深度 if else if else if else if switch case...
  • concat all columns in SQL Server

    Joining all column values into one string with concat function is a pain, especially for...