无法更新系统和软件 获取更新列表 apt list --upgradable 手动更新应用和解决依赖 sudo aptitude purge {software_name} 如果依赖无法解决, 依然使用上面的命令,选择 n [......] 继续阅读

2019年11月30日 1条评论 944点热度 0人点赞 痴者工良 阅读全文

无法更新系统和软件 获取更新列表 apt list --upgradable 手动更新应用和解决依赖 sudo aptitude purge {软件名称} 如果依赖无法解决, 依然使用上面的命令,选择 n [......] 继续阅读

2019年11月30日 1条评论 4874点热度 0人点赞 痴者工良 阅读全文

Path.GetDirectoryName(typeof(OneClass).Assembly.Location) OneClass is a type within this DLL. Directory.GetCurrentDirectory() does not necessarily retrieve the location of the current DLL. [......] 继续阅读

2019年11月28日 0条评论 1160点热度 0人点赞 痴者工良 阅读全文

Path.GetDirectoryName(typeof(OneClass).Assembly.Location) OneClass 是这个 dll 内的一个类型。 Directory.GetCurrentDirectory() 获取的不一定是当前 dll 的位置 [......] 继续阅读

2019年11月28日 0条评论 4736点热度 0人点赞 痴者工良 阅读全文

st, sk, sp When stressed, st, sk, and sp undergo sound changes; At the beginning of words, st, sk, and sp change their sound, but at the end of words, they do not change their sound; Sound changes: skate, skill, square, stand, sport, speak, study No sound chan…

2019年11月24日 1条评论 1158点热度 1人点赞 痴者工良 阅读全文

st、sk、sp st、sk、sp在重音里时要变音; st、sk、sp词首变音,词尾不变音; 变音:skate , skill, square , stand , sport , speak , study  不变音:interesting , inspiring 浊化对应 S后加清辅音,必须重读时才变成相对应的浊辅音 清辅音:/p/ /t/ /k/ 浊辅音:/b/ /d/ /ɡ/ [......] 继续阅读

2019年11月24日 1条评论 7684点热度 1人点赞 痴者工良 阅读全文

Support for .NET Core on Loongson and Thoughts on Embedded Development with .NET Core [TOC] 1. Regrettable Attempts A few days ago, I came across Zhang's public post titled 《Asp.Net Can Finally Run on Loongson Servers: Jexus Successfully Adapts to Domestic Ser…

2019年11月19日 1条评论 1134点热度 0人点赞 痴者工良 阅读全文

.NET Core 对龙芯的支持情况和对 .NET Core 开发嵌入式的思考 [TOC] 一,遗憾的尝试 前些天看到了张队公众推送的《Asp.Net终于可以在龙芯服务器上运行啦:Jexus成功完成对国产系列CPU的适配》,联想到上一周与朋友在龙芯捣鼓 .NET Core,就想写一下关于 .NET Core 在龙芯下的资料。 Jexus Web Server 能够在龙芯服务器上跑,但是 ASP.NET 呢?.NET Core 呢?安装什么版本的 Mono ?Jexus 作者的文章表达有点模糊呀~ 上一周与朋友在龙芯…

2019年11月19日 1条评论 5709点热度 0人点赞 痴者工良 阅读全文

For context classes, there should be an overloaded base(options) constructor. public partial class DatabaseContext : DbContext { public DatabaseContext() { } public DatabaseContext(DbContextOptions<DatabaseContext> options) : base(options)[......…

2019年11月18日 0条评论 1116点热度 2人点赞 痴者工良 阅读全文

对于上下文类,要有一个 base(options) 构造函数重载。 public partial class DatabaseContext : DbContext { public DatabaseContext() { } public DatabaseContext(DbContextOptions<DatabaseContext> options) : base(options) { } } 使用时 var opt[......]继续阅读

2019年11月18日 0条评论 5051点热度 2人点赞 痴者工良 阅读全文

First, switch to the root user and then execute apt-get install software-properties-common Then the following prompts will appear: Reading package lists... Done Analyzing the dependency tree Reading state information... Done The following packages will be inst…

2019年11月17日 0条评论 1186点热度 0人点赞 痴者工良 阅读全文

首先要切换到 root 用户,然后执行 apt-get install software-properties-common 然后会出现以下提示 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会同时安装下列软件: libappstream4 packagekit packagekit-tools python3-pycurl python3-software-properties 建议安装: appstream libcurl4-gnutls-dev python-py…

2019年11月17日 0条评论 5662点热度 0人点赞 痴者工良 阅读全文

EF Core 查询中默认是跟踪查询。

2019年11月15日 0条评论 1646点热度 0人点赞 痴者工良 阅读全文

EF Core 查询中默认是跟踪查询。

2019年11月15日 0条评论 6087点热度 0人点赞 痴者工良 阅读全文

Value type Equals and == are equivalent; For string, after overriding, Equals and == are equivalent; For object type, the specificity of string; For other class types. object t = "123"; object a = t; object b = "123"; Console.WriteL[......]…

2019年9月12日 2条评论 1596点热度 0人点赞 痴者工良 阅读全文

值类型 Equals 与 == 等同; string 经过重写, Equals 与 == 等同; object 类型,string 的特殊性; 其他类 类型。 object t = "123"; object a = t; object b = "123"; Console.WriteLine(a == b); Console.ReadKey(); object t = 1; object[......]继续阅读

2019年9月12日 2条评论 4510点热度 0人点赞 痴者工良 阅读全文

// Set up client HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue ("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes($"{user}:{[......]继续阅读

2019年9月9日 1条评论 2238点热度 1人点赞 痴者工良 阅读全文

// 设置 client HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue ("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes($"{user}:{pass[......]继续阅读

2019年9月9日 1条评论 4724点热度 1人点赞 痴者工良 阅读全文

dpkg-reconfigure tzdata is a command used in Debian-based Linux distributions to reconfigure the time zone data. When executed, it allows the user to select the desired time zone from a list of available time zones. This command updates the system's time zone …

2019年9月5日 1条评论 1082点热度 0人点赞 痴者工良 阅读全文

dpkg-reconfigure tzdata [......] 继续阅读

2019年9月5日 1条评论 4372点热度 0人点赞 痴者工良 阅读全文