嵌入式内存对齐及位运算解析
Linux Debugging Tools
Posted on
Edited on
Symbols count in article: 384 Reading time ≈ 1 mins.
Symbols count in article: 384 Reading time ≈ 1 mins.
Linux 调试工具
优化 c 程序可执行文件大小
优化 elf 大小的各种方式
eCos3.0-dlmalloc
Posted on
Edited on
Symbols count in article: 247 Reading time ≈ 1 mins.
Symbols count in article: 247 Reading time ≈ 1 mins.
ubuntu 20.04 GitBook 升级
ubuntu 20.04
下 GitBook
运行出现错误
$ gitbook serve
Live reload server started on port: 35729
Press CTRL+C to quit ...
/usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287
if (cb) cb.apply(this, arguments)
^
TypeError: cb.apply is not a function
at /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
at FSReqCallback.oncomplete (fs.js:184:5)
ubuntu20.04 ssl 导致 svn update失败
升级 ubuntu 20.04
后 svn update
失败
svn: E170013: Unable to connect to a repository at URL 'https://svn.xxx.com
svn: E120171: Error running context: An error occurred during SSL communication
DVB PSI/SI 组成
DVB PSI 基础知识
强制删除未完全安装包
ubuntu 20.04
安装 touchpad-indicator.deb
因为依赖问题导致安装失败,卸载时出现如下问题
$ sudo apt remove touchpad-indicator
/usr/sbin/deluser: The user `backup' is not a member of group `input'.
dpkg: error processing package touchpad-indicator (--remove):
installed touchpad-indicator package post-removal script subprocess returned error exit status 6
$ sudo dpkg -l "touchpad-indicator"
rH xxx xxx
touchpad-indicator
的 BUG,需要将 backup
加入 input
组,但是卸载时会将用户删除,不可行
强制卸载如下:
$ sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/
$ sudo mkdir /var/lib/dpkg/info/
$ sudo apt-get update
进一步可以清除 info_old
中 touchpad-indicator.*
并将 info_old
还原
jenkins-shell-echo-off
Problem:
# jenkins shell
08:06:57 + export KEYPWD=secretPwd
08:06:57 + KEYPWD=secretPwd
原因:
By default, Jenkins launches Execute Shell script with set -x. This causes all commands to be echoed
$ man bash
-x Print commands and their arguments as they are executed.
解决方案:
#!/bin/bash +x
tcp 性能优化
- Packet Size ,Window Size and Socket Buffer In TCP
- Nagel and Delayed Ack
- SO_SNDBUF and SO_RCVBUF
- TCP Window FULL
- TCP Window ZERO
- sack
- BDP(bandwidth-delay product) and RTT(round trip time)
- 重传超时时间(RTO)
- Interactive Data Flow and Bulk Data Flow
- RWND and CWND
tcp 选项 SO_REUSEADDR
SO_REUSEADDR
用于调整解决地址复用问题
ssh 升级导致 git clone 失败
错误信息
Unable to negotiate with 192.168.110.254 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fork safety 以及多线程环境下注意事项
python 数据库
- 关系数据库和非关系数据库
- python 数据库介绍
MMU 下虚拟地址向物理地址的转换
- MMU 概念
- 虚拟地址转换为物理地址
- Cache 概念