Recently, I was studying serial communication in a cross-platform manner under .NET Core, and I came across an article discussing communication in Linux/IoT. The main issues arise with the following two libraries: SerialPortStream flyfire.CustomSerialPort Auth…

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

前些天在学习在 .NET Core下,跨平台使用串口通讯,有一篇文章说到在Linux/物联网下,实现通讯。 主要问题出现在以下两个类库 SerialPortStream flyfire.CustomSerialPort 作者地址: https://www.cnblogs.com/lonelyxmas/p/10363869.html   说明 由于.net core 2.x 中,已经找不到 serialport 库,使用需要使用第三方框架,可以直接在 Nuget 中搜索 SerialPortStream 开…

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

Table of Contents:   1. HttpWebRequest Instantiation 2. GetResponse to Retrieve Request Results 3. Retrieve Results 4. Get Stream Information   HttpWebRequest is an HTTP request class that inherits from WebRequest. WebRequest is an abstract clas…

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

目录:   1,HttpWebRequest 实例化 2,GetResponse 获取请求结果 3,获取结果 4,获取流信息   HttpWebRequest 是一个Http 请求类,继承于 WebRequest。 WebRequest 是一个抽象类,能够对统一资源标识符 (URI) 发出请求。 WebRequest 有以下派生类:   System.IO.Packaging.PackWebRequest System.Net.FileWebRequest Syst…

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

The Author's Website whuanle.cn Upon visiting, you will be redirected to https://www.whuanle.cn Similarly, visiting www.whuanle.cn also redirects to https://www.whuanle.cn. The author's website is deployed using Tencent Cloud + jexus and is developed with ASP.…

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

笔者的网站 whuanle.cn 访问你会发现,跳转到 https://www.whuanle.cn 同样,访问 www.whuanle.cn,也跳转到 https://www.whuanle.cn。 笔者的网站使用 腾讯云+jexus来部署,网站使用ASP.NET Core来编写。 加上免费的 CDN 加速、强制跳转 https,让网站感觉 “很正规”、速度又快。 你想使用腾讯云那么多的免费产品,首先你得有一台腾讯云服务器。  腾讯云基础产品有 云服务器 CDN 云网络 云存储 …

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

So far, I have interviewed  5  10 companies... The company for this interview task is a listed company. The task is in English (translation provided below): You're given a task of writing a simple program where a user will be able to perfor…

2019年12月15日 3条评论 4409点热度 1人点赞 痴者工良 阅读全文

目前为止,已经面试  5  10 家了。。。 这个试题面试的公司是某一上市公司。 试题是英文的(后面给出翻译): you're given a task of writing a simple program where an and user will be able performing some basic spreadsheet operation(i.e. sum) in a nutshell,the program should work as follows: …

2019年12月15日 3条评论 4603点热度 1人点赞 痴者工良 阅读全文

The article is continuously being updated. Features are not concentrated in a specific namespace, but rather different features exist under different namespaces. Features are syntactic sugar provided under a specific namespace. Which namespaces provide feature…

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

文章持续补充中 特性并不是集中在某一命名空间中,而是不同的特性在不同的命名空间下,特性是某一命名空间下提供的语法糖。 有哪些命名空间提供特性:   命名空间   描述 Microsoft.Build.Framework 包含定义任务和记录器与 MSBuild 引擎的交互方式的类型 Microsoft.JScript 包含支持使用 JScript 语言编译和生成代码的类 Microsoft.SqlServer.Server   Microsoft.VisualBasic   Micros…

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

  Categories of Knowledge Points to Master in T-SQL SQL for executing queries against databases SQL for retrieving data from databases SQL for inserting new records into databases SQL for updating data within databases SQL for deleting records from databa…

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

  T-SQL 要掌握的知识点分类 SQL 面向数据库执行查询 SQL 从数据库取回数据 SQL 在数据库中插入新的记录 SQL 更新数据库中的数据 SQL 从数据库删除记录 SQL 创建新数据库 SQL 在数据库中创建新表 SQL 在数据库中创建存储过程 SQL 在数据库中创建视图 SQL 设置表、存储过程和视图的权限 SQL 是一门 ANSI 的标准计算机语言,用来访问和操作数据库系统。SQL 语句用于取回和更新数据库中的数据。SQL 可与数据库程序协同工作,比如 MS Access、DB2、Info…

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

Table of Contents 1. Network Basics 2. Socket Object 3. Bind() Binding and Connect() Connection 4. Listen() Listening for Connection Requests and Accept() Receiving Connection Requests 5. Receive() and Send() 6. Releasing Resources 7. IPAddress and IPEndPoint …

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

目录 一,网络基础 二,Socket 对象 三,Bind() 绑定与 Connect() 连接 四,Listen() 监听请求连接 和 Accept() 接收连接请求 五,Receive() 与 Send() 六,释放资源 七,IPAddress 和 IPEndPoint 2019-2-14 晚上第一次写,后面会不断修改、更新。 文章按照 Socket 的 创建、连接、传输数据、释放资源的过程来写。给出方法、参数的详细信息。 一,网络基础 说到 Socket,需要学习一下TCP/IP的知识,了解一下OSI…

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

 Newtonsoft.Json Newtonsoft.Json is a tool for manipulating JSON on the .Net platform. There is no need to elaborate on its introduction; I have recently been working on interfaces that require JSON manipulation. Taking the Token from a certain cloud comp…

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

 Newtonsoft.Json Newtonsoft.Json 是.Net平台操作Json的工具,他的介绍就不多说了,笔者最近在弄接口,需要操作Json。 以某个云计算平台的Token为例,边操作边讲解。 Json 转为 Model 将 Model 转为 Json 将 LINQ 转为 JSON Linq 操作 命名空间、类型、方法大全 另外附上 百度AI 文字识别 Json 及其模型类      Newtonsoft.Json 将字符串转为对象,是根据类型对象名称进行的,大小写不分,…

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

Sum of Digits Given a non-negative integer num, repeatedly add the digits of the number until the result is a single digit. Example: Input: 38 Output: 2 Explanation: The process of adding the digits is as follows:3 + 8 = 11, 1 + 1 = 2. Since 2 is a single digi…

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

各位相加 给定一个非负整数 num,反复将各个位上的数字相加,直到结果为一位数。 示例: 输入: 38 输出: 2 解释: 各位相加的过程为:3 + 8 = 11, 1 + 1 = 2。 由于 2 是一位数,所以返回 2。 进阶:你可以不使用循环或者递归,且在 O(1) 时间复杂度内解决这个问题吗? 题目地址 https://leetcode-cn.com/problems/add-digits/ 代码模板 public class Solution { public int AddDigits…

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

Problem 1 Original link https://leetcode-cn.com/problems/two-sum/ Given an integer array nums and a target value target, please find the two integers in the array that add up to the target value and return their array indices. You may assum…

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

题目一 原题链接 https://leetcode-cn.com/problems/two-sum/ 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以…

2019年12月15日 1条评论 4865点热度 0人点赞 痴者工良 阅读全文
1444546474854