about-ethernet
以太网帧的尺寸https://www.zhihu.com/question/58979135
about-zypper
#cmdzypper ar -c -t yast2 “iso:/?iso=/home/jaimin/su1100.001.iso” “openSuSE 11”
about-design-pattern
扩展的方法,1继承的方法,2. 组合的方式组合优于继承 封装变化点:将稳定点,与变化点隔离开
about tree
树,二叉树,traverse平衡二叉树二分法查找红黑树逆波兰表示法epoll的底层是 红黑树poll 和select的底层是线性表
sql 语句入门
12345678SELECTwakeup_source ,COUNT(*) ASwaekup_source_counterWHICH production_version LIKE "nwe-10%"AND production_version LIKE "%211%"ORDER BY waekup_source_counter DES
debug-xp
uboot 中启动httpd 服务的时候,使用浏览器无法打开升级网页,是因为浏览器默认启用了https,ubooot中的httpd 命令不支持 ssl加密 没有这个,所以用http://192.168.4.1 就能打开了 mail.zowee.com.cn网站手机上打不开,电脑浏览器上能打开,因为手机上默认使用的http访问的,pc上默认使用了https访问 test
bash grammar cheatseet
先贴一个bash中类似与c++ 中的switch case的demo12345678910111213141516171819202122232425#!/bin/bash# switch.sh # $# 代表使用这个脚本的时候给这个脚本传递的参数个数 -lt 代表 less than# $0 代表脚本的名字, 和C语言main函数的argv[]参数类似if [ $# -lt 1 ]; then echo "Usage: $0 [sth] [sth]"fi# $1 $2 $3 代表传给脚本的第几个参数if [ $# -eq 2 ] && [ $2 == "debug" ]; then echo "this enter debug mode" DBG_FLAG=1ficase $1 in x86) echo "this is case x86" ;; arm32) echo "this is case arm32" ;; arm64) ech...
fast-power-algorithm
快速幂算法, 先贴一下算法模板,后边研究好了再贴研究心得,还有什么矩阵的快速幂算法1234567891011int fastpow(int base, int n) { int ans = 1; while (n) { if (n&1) { ans *= base; } base *= base; n >>= 1; } return ans;} 直接幂算法,在数值比较大的时候,在做算法题目的时候,时间复杂度不能接受12345678int normalpow(int base, int n) { int ans = 1; int i; for (i = 0; i < n; i++) { ans *= base; } return ans;}
Linux software commonly used
ubuntu 内核调试开发常用软件包名 记录12libncurses5-dev gcc-arm-linux-gnueabi build-essential gcc-5-arm-linux-gnueabi git libssl-dev openssl bc flex bison qemu make gdb gdb-multiarch \device-tree-compiler uml-utilities bridge-utils nfs-kernel-server 1234# openssl's liblibssl-dev# elf's liblibelf-dev 内核启动的三种方式 initrd (init ram disk) init= root
风言风语
为什么选择租房的地方离公司近? 不是为了多加班被资本压榨剩余价值,而是为了减少通勤时间,把时间用在睡觉和学习上来提升自己的竞争力