自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (1)
  • 收藏
  • 关注

原创 Python 3.8.2 安装 matplotlib 模块

Python 3.8.2 安装 matplotlib 模块Win10, Ctrl + R, 输入cmd先执行 python -m pip install --upgrade pip 升级PIP模块到最新版本pip-20.0.2python -m pip list 查看安装模块然后python -m pip install matplotlib等待自动下载和安装python -m pip list...

2020-04-05 10:20:57 2163

原创 vb.net VS2013 创建文件,保存log

首先在代码最前面导入根类Imports System.TextImports System.IO.Ports然后定义一个全局的log文件路径和名字,字符串型Private strFileName As String = ""Private strPath As String = ""在窗口load事件中加入代码 With SaveFileDialog1...

2019-08-19 16:40:29 652

原创 VC.Net, VS2015 添加类,找不到基类CAsyncSocket

学习VC++网络编程,基于CAsynSocket类的,创建了Client和Server两个Projects,为了开发基于指针机制的socket程序,把这两个Project移动到一个新目录base_CAsyncSocket下面。奇怪的现象出现了,我的新project里面添加类,居然找不到基类CAsyncSocket。而且,Project --> Add Class后也不会出现对话框让选择什么类...

2019-01-17 22:27:32 1355

转载 深入理解蓝牙4.0BLE协议栈

深入理解蓝牙4.0BLE协议栈协议栈概述我们以TI的CC254X系列BLE芯片为例来深入了解下蓝牙4.0BLE协议栈。TI的蓝牙4.0BLE协议栈包含两部分:主机和控制器。主机和控制器的分离要追溯到蓝牙BR/EDR设备时期,控制器和主机通常会分开实现。 协议栈的实现方式采用分层的思想,控制器部分包括:物理层、链路层、主机控制接口层;主机部分包括:逻辑链路控制及自适应协议层、安全管理层、属性协议层、...

2018-06-22 17:15:26 1256

原创 Linux驱动开发笔记

1. 中断先申请中断号 irqno = get_irqno_from_node();在申请中断request_irq(irqno, key_irq_handler, IRQF_TRIGGER_FALLING|IRQF_TRIGGER_RISING,"key3_eint10", NULL);2. 中断驱动,加入字符框架后,出现空指针NULL pointer问题Unable to handle ker...

2018-04-19 23:11:40 272

转载 VB data type

  一、数值类型1、unsigned 和 signed 数值类型   sign 指的是 +/- 正负符号,unsigned 数值类型即无正负符号的数值类型,也就是正值数值类型;signed数值类型即带正负符号的数值类型,可能是正值也可能是负值,但其绝对值范围约为对应 unsigned数值类型的一半。如:SByte (signedByte)占用1个字节,取值范围为 -128 到 127,而 Byte...

2018-04-04 09:40:06 472

原创 学习笔记:编译内核scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory

编译内核命令make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-出现fatal error: openssl/名单.h: No such file or directory。原因是libssl-dev~没有安装libssl-dev包含libraries, header files and manpages,是openssl的一部分使用sudo ...

2018-03-31 22:28:27 14865 4

原创 学习笔记:make ARCH=arm menuconfig

 *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. ***  *** Install ncurses (ncurses-devel) and try again. *** make[1]:...

2018-03-31 22:13:23 3167 1

原创 获取本机IP , VS2013 VB

说明,显示初值是length/2,是因为IPv6和IPv4都会获取到,而v6集中在前,v4在后,所以直接跳过v6,只是show出v4的。        Dim HostName As String        Dim HostIP As String = ""   '//定义主机IP地址集        Dim IPAddress As System.Net.IPAddress()  ' /...

2018-03-28 11:32:02 782

转载 11个让你吃惊的 Linux 终端命令

编译自:http://linux.about.com/od/commands/tp/11-Linux-Terminal-Commands-That-Will-Rock-Your-World.htm 作者: Gary Newell 原创:LCTT https://linux.cn/article-5438-1.html 译...

2018-03-27 09:04:23 183

原创 校验码生成函数,异或运算 VS2013, VB源代码

传入参数为:数组名,起始下标名, 计算元素数    Public Function checksum(array As Byte(), i_start As Integer, n As Integer) As Byte        If i_start < 0 Or n < 2 Then            MessageBox.Show("数组下标不能为负,或者求checks...

2018-03-26 11:00:34 859

原创 SOCKET编程, Visual Studio 2013, Visual Basic, UDP收发,单播,广播,接收超时,发送超时,blocking mode

Imports SystemImports System.NetImports System.Net.SocketsImports System.Text Dim ip As String = txt_Dst_IP.Text '""        Dim port As Integer = CType(txt_Port.Text, Integer)        Dim s As New So...

2018-03-26 10:57:30 599

原创 字符串和字节数组间的转换 VS2013 VB源代码

字符串到字节数组说明1string表示这里要填入一个字符串变量;        '        Dim sendbuf As Byte() = Encoding.ASCII.GetBytes(1 string) '中文,用Unicode编码方式,英文用ASCII方式,名称空间system.text        '        Dim sendbuf As Byte() = Encodin...

2018-03-26 10:49:51 685

原创 VB.net VS2013 Visaul basic Ping程序源码

   Private Sub Btn_Ping_Click(sender As Object, e As EventArgs) Handles Btn_Ping.Click        If CType(txtBox_ping_start.Text, Integer) < 1 Or CType(txtBox_ping_end.Text, Integer) > 254 Or CTy...

2018-03-26 10:42:47 486

转载 VB.net VS2013 Visual basic MD5编码计算

MD5_R=CType(System.Security.Cryptography.CryptoConfig.CreateFromName("MD5"), System.Security.Cryptography.HashAlgorithm).ComputeHash(MD5_S)MD5_R是一个16bytes的字节数组MD5_S是源字符串转换后的字节数组,源字节数组可以是任意字节长度;Dim MD5...

2018-03-26 10:40:39 336

UEFI_What is it

Spring  2017  UEFI  Seminar  and  Plugfest March  27  -­ 31,  2017 Presented  by  Dong  Wei  (ARM)

2020-09-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除