自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (2)
  • 收藏
  • 关注

原创 gluster的event pool原理

gluster使用基于epoll的event_pool,由slot(可以理解为槽位),最大可以创建1024X1024个slot,每个slot中关键数据为:fd,events,handler,分别对应文件描述符,epoll事件(EPOLLIN/EPOLLPRI/EPOLLOUT等)事件处理函数。

2023-03-18 20:56:44 145 1

原创 在centos8上部署ceph(16.2.11-0)集群

创建4台虚拟机, 每台机器配置8G内存和32G硬盘. 在每台机器上安装。2. 安装ceph 16.2.11-0。

2023-03-24 13:58:52 1323

原创 在centos 7.6中使用python3.7写一个带daemon.notify的systemd service

​在python-systemd-tutorial有一个demo, 但是这个demo在centos 76 + python37下,无法运行,一直报错:raise TypeError("state must be an instance of Notification") ​

2023-03-22 16:53:31 196 1

原创 Javascript bind() call() apply()

这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Ma...

2020-04-02 12:24:08 171 1

原创 Javascript中最简单的Async/Await/Promis代码段

(async () => { const wait = await new Promise( resolve => { setTimeout(() => { console.log('await 2000ms') resolve("this resolve statement is...

2020-03-21 16:31:22 155

原创 用hidusb.sys还是winusb.sys读写一个只有In/Out Interrupt Endpoints的STM32 USB设备?

    最近,公司使用STM32F407,开发了一个基于USB的CAN设备(内部称为CAN盒子),USB的固件使用STM32官方提供的BSP进行开发,而没有做任何修改的这个固件,只支持3个EndPoints: Control Enpoint, In/Out Interrupt Endpoint.    为了在Windows端操作该设备的CAN,我们拟定使用c#开发一个上位机程序,刚开始,看上去特别...

2018-04-15 09:19:40 1733

原创 解决ads1.2的破解问题

1. 将crackads12.rar解压后的license.dat文件分别拷贝的安装目录如:C:\Program Files\ARM\ADSv1_2和C:\Program Files\ARM\ADSv1_2\licenses两个目录下2. 在c盘根目录下创建flexlm目录,并将1中的license.dat文件拷贝到这个目录下,并建立环境变量LM_LICENSE_FILE=c:\flexlm\

2011-10-20 11:13:48 1626

原创 minix学习历程

<!-- @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } --> NOTE:以下所有操作都是在Fedora Core 5下完成的 bochs的安装和使用 从bochs.sourceforge.net上下载bochs的rpm包,直接安装

2006-08-06 18:28:00 2309

原创 在Linux fedora 5上安装本地dictd server的方法

1.  使用root登录后,在命令行提示符下用:[root@localhost ~]# yum install dictd安装上dictd,你可以在命令行上使用如下三个命令:a.   [root@localhost ~]# dictd  结果是:      [root@localhost ~]#b.   [root@localhost ~]# dict 结果为:dict 1.9.15/rf on

2006-07-30 09:18:00 1245

原创 在Linux fedora 5上使用yum来安装xine的方法

采用yum来安装xine的步骤如下:1:  reshrpm的yum仓库配置文件(如果你已经安装就不比了),从http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.freshrpms/freshrpms-release-1.1-1.fc.noarch.rpm下在这个rpm包后, 使用下了命令进行安装:[root@localhost ~]# rpm -iv

2006-06-19 23:03:00 1392 1

xfs-filesystem-structure

The largest scalability problem facing XFS is not one of algorithmic scalability, but of verification of the filesystem structure. Scalabilty of the structures and indexes on disk and the algorithms for iterating them are adequate for supporting PB scale filesystems with billions of inodes, however it is this very scalability that causes the verification problem.

2023-03-22

Category Theory for Programmers

值得每个程序员看得范畴论

2022-11-02

ads12破解文件

ads1.2 license, 自己使用的文件

2011-10-20

stm32 TIMX

TIM32中有很多timer资源,可以用来定时产生时钟脉冲,我以调试通过

2009-05-30

空空如也

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

TA关注的人

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