- 博客(13)
- 资源 (2)
- 收藏
- 关注
原创 Python 中的 bytes 和 str
Python里面有bytes 和 str两种类型, 一直没有搞明白他们之间的区别,也不知道为什么还需要进行decode和encode进行转化,今天终于搞明白了。他们的区别和Unicode,UTF-8有关。首先要明白的是Unicode是一个字符集,给每一个符号(包括汉字)都规定了二进制代码,但是没有规定应该如何存储。可以理解为字符的唯一的标识。而且Unicode是固定的两个字节表示的,当然现...
2018-09-07 21:13:24
2211
原创 使用KGDB 在Ubuntu PC上调试驱动
今天加载wifi驱动的时候居然直接造成linux内核崩溃,重启PC后在/var/run/dmesg.0中找不到错误信息。我要如何在我的这台Ubuntu上调试这个驱动呢?答案是KGDB,以前也尝试过,但是最后都放弃了。今天决定再攻关一次,不想居然最后基本成功了。下面的内容都是从网上东拼西凑的,重点参考了CSDN上dndxhej的博客, http://blog.csdn.net/dndxhej/art
2017-12-28 09:52:12
809
转载 修改PDF在页码控制中显示的页数和文档中的页码编号一致
http://www.w3.org/TR/WCAG20-TECHS/PDF17.htmlDescriptionThe objective of this technique is to help users locate themselves in a document by ensuring that the page numbering displayed in the PDF
2016-05-11 19:11:57
5469
原创 主页 被 2345 篡改怎么办
2345这个臭流氓好意思在主页上说要开创中国百年品牌,是要开创100年流氓品牌吗?最近发现无论是ie 还是 firefox主页都被2345改了,试了网上所有方法都不行,看来流氓又出新招了,只好自己研究了。消灭的办法就是:1 我的电脑点右键 ->管理->服务和应用程序->服务有一个没有说明的服务"windows boot", 双击后,先停止,然后启动类型选 禁用。可执行文件的路径
2015-10-08 23:49:18
8164
1
原创 upgrade from 12.04 to 14.04
Upgrade from 12.04 to 14.04.4今天升级了一下,遇到了几个问题。1)升级完了后GUI登录不成功,登录guest都可以,但是自己的帐号就会黑一下屏,然后回到登录界面,google各种解决方案都不能成功,研究了/var/log目录下的错误信息,也没有发现可疑信息。最后看到有人提到文件 ~/xsession-errors, 一看果然有错误信息原来是~/.profile里
2015-09-25 11:04:50
326
原创 Linux shell 中有条件的函数定义
今天看脚本发现一段脚本是这样的:init_wireless_driver() {name="$1"; shiftcmd="$1"; shiftcase "$cmd" indump)add_driver() {eval "drv_$1_cleanup"json_initjson_add_string name "$1"json_add_
2014-09-11 18:11:43
612
原创 字符数组的赋值方式
busybox 1.19.4,init.c,一个很酷的字符串复制方式: static const char actions[] ALIGN1 = "sysinit\0""wait\0""once\0""respawn\0""askfirst\0" "ctrlaltdel\0""shutdown\0""restart\0";
2013-08-13 11:26:51
720
原创 使用KGDB 在Ubuntu PC上调试驱动
今天加载wifi驱动的时候居然直接造成linux内核崩溃,重启PC后在/var/run/dmesg.0中找不到错误信息。我要如何在我的这台Ubuntu上调试这个驱动呢?答案是KGDB,以前也尝试过,但是最后都放弃了。今天决定再攻关一次,不想居然最后基本成功了。下面的内容基本上都是从网上东拼西凑的,重点参考了CSDN上dndxhej的博客, http://blog.csdn.net/dndxhej/
2012-11-30 23:34:32
819
转载 Sharing Files Between Ubuntu Flash Drive and Windows
I find run ubuntu usb install drive is very good, no need to install. But in order to utilize the full capacity of USB drive, the following
2011-09-28 18:42:47
310
转载 How to: Change / Setup bash custom prompt (PS1)
How to: Change / Setup bash custom prompt (PS1) Posted by Vivek Gite [Last updated: October 9, 2007] sr_adspace_id = 2926307; sr_adspace_width = 300; sr_adspace_height = 250; s
2008-10-24 19:59:00
933
原创 login shell and non-login shell
The following content is copied from:$ info bashLogin shell When bash is invoked as an interactive login shell, or as a non-inter- active shell with the --login option, it first reads and
2008-10-24 19:30:00
446
原创 Linux From Scratch
决定好好学习一下Linux,先从Linux From Scratch 开始,这样可以全面了解学习一个Linux 系统。对于使用商业的发行版Linux也应该有帮助。这个blog记录一下学到Linux 知识和体会。
2008-10-24 19:25:00
401
Concise Computer Vision - An Introduction into Therory and Algorithm
2016-04-08
802-2001 specification
2012-02-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人