-
Archives
- January 2012
- October 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- August 2010
- July 2010
- July 2009
- February 2009
- December 2008
- November 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- April 2007
- November 2006
-
Meta
Category Archives: linux应用
News: filesystem upgrade – manual intervention required(ZZ)
最近用上了archlinux,挺不错,不过升级系统的时候,出现错误,mtab有冲突,如果删除,又会出现空间不够的错误。google到了解决方法,如下: When upgrading to filesystem-2011.12 there will be a conflict with /etc/mtab. Install the package as follows: pacman -S filesystem –force It is strongly advised to avoid the –force or -f switch as it is not safe. However, in this … Continue reading
Posted in linux应用, 技术为本
Leave a comment
aptitude update – Error: Connection failed [IP: 127.0.0.1 8080]
最近ubuntu一直无法更新,开始也没注意,过去很久了一直不能更新。今天抽空看了一下,原来是proxy的问题。 错误提示是:Connection failed [IP: 127.0.0.1 8080] 解决办法是: 将/etc/apt/apt.conf文件里面有关代理的设置删掉。 OK。
Posted in linux应用
Leave a comment
MD5 算法 (The MD5 Message-Digest Algorithm)
MD5即Message-Digest Algorithm 5(信息-摘要算法 5),用于确保信息传输完整一致。是计算机广泛使用的雜湊算法之一(又译摘要算法、哈希算法),主流编程语言普遍已有MD5实现。 在维基百科上有详细介绍,在各种语言上也都已有相应实现。 http://www.ietf.org/rfc/rfc1321.txt 上给出了算法介绍和C语言的实现。 我们在使用过程中发现一个问题,就是计算出来的MD5值有误。 经过调查,并非算法有问题,而是因为机器是64位系统导致的,在32位系统上就没问题。 为了通用性,只要把md5.h中的41行,修改一下就可以了。 typedef unsigned int UINT4;
Posted in C&C++, linux应用, 技术为本
Leave a comment
一个简单的 makefile 模板
一个简单的 makefile 模板, CC = gcc CFLAGS+=-c -Wall -I[include_path] LDFLAGS+= -lm SOURCES= \ main.c \ OBJECTS=$(SOURCES:.c=.o) EXECUTABLE=test all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ .c.o: $(CC) $(CFLAGS) $< -o $@ .PHONY: clean clean: rm -f $(EXECUTABLE) $(OBJECTS)
Posted in C&C++, linux应用, 技术为本
Leave a comment
Extra Keyboard Keys
简介 许多键盘都有一些”特殊按键”(也叫热键),用于执行某个应用程序或者输入那些不被包含在标准键盘映射表中的特殊字符。由于没有相应的规格标准,内核无法知道如何处处理它们,这也是为什么我们需要(手工的)将这些按键映射到特定的动作。我们有两种方法来实现: 通用的做法,使用HAL和Xorg提供的工具 (最终被桌面环境工具利用到) 更快的方式,使用第三方程序在图形界面中完成所有配置 也许出乎你的想象,第一种方法更受亲睐,因为HAL和Xorg较之任何第三方程序都更加通用和普适。
Posted in linux应用, 技术为本
Leave a comment
Keyboard scancode and keycode
列举几个有关scancode和keycode的资源,备用,还没有仔细研究。 http://www.win.tue.nl/~aeb/linux/kbd/scancodes.html https://bbs.archlinux.org/viewtopic.php?id=43662 http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlkeycodes.html
Posted in linux应用, 技术为本
Leave a comment
merge Android 的 kernel 代码 by Git-Rebase
為了玩 Android,學會了 git 的初步使用。不過僅止於基本的 git checkout、git log、git diff、git status、git commit 等。 這幾天為了協助同事將 Android 移植到廠商的板子上,必須將廠商提供的 kernel 與 Android kernel 做結合。為此請教一些 git 高手。經過一番練習,總算對 git rebase 的使用有了初步的掌握。也漸漸了解了 git 的強大威力,為什麼高手都愛用… 特別將這段經驗記載在這邊,給有興趣的人參考。