自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

sudo.lee的专栏

Life runs on code...

  • 博客(54)
  • 资源 (9)
  • 收藏
  • 关注

原创 linux和windows时间同步问题(UTC&localtime)

Linux使用UTC,但是windows默认使用localtime.解决的办法如下:进入windows使用regedit写入DWORD值(设置成十六进制"1"):HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversalWindows XP 和 Windows

2013-10-31 22:01:43 4383

原创 cscope无法索引代码树之外的软链接

背景:为什么非要使用cscope?不用ctags?尽管ctags可以索引软链接,但是,ctags不能查找“调用者”,比如:你想看看某个函数在哪些位置被调用了, .etc1, 卸载cscope2, 下载cscope源代码:http://sourceforge.net/projects/cscope/files/cscope/15.8a/p.s 我下载的15.8a,在debian

2013-06-08 00:04:36 2315

原创 在thinkpad上安装(kde)debian wheezy/sid (Note of install (kde)debian wheezy/sid on Thinkpad)

亲测机型: Thinkpad T420(爱机)1, 下载镜像文件: debian-testing-amd64-DVD-1.isoaxel -a http://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-dvd/2, 制作U盘安装盘:cat debian-testing-amd64-DVD-1.iso > /dev/sdx3, 默认安

2013-04-20 15:05:51 4255

原创 给linux发行版安装新内核

我的机器是Thinkpad T420i, 系统是debian wheezy.1, 编译Kernel: make menuconfig make -jn sudo make modules_install sudo make headers_install sudo make install sudo update-grub (Ubuntu only) NOTE

2012-12-04 10:47:40 1950

原创 手动打包sun java jdk [Installing the latest JDK on Debian by creating a .deb package from Sun binaries]

Installing the latest JDK on Debian by creating a .deb package from Sun binariesNormally we download Sun JDK installation binaries and install them. Then we configure the PATH environment variab

2012-10-22 13:55:46 1152

原创 virtualbox无法挂载u盘解决办法

==在/etc/group文件中修改:"vboxusers:x:122:" -> "vboxusers:x:122:your-username"==

2012-10-21 22:49:49 4350

原创 debian更新源

= wheezy =## chinadeb http://ftp.cn.debian.org/debian/ wheezy main contrib non-freedeb-src http://ftp.cn.debian.org/debian/ wheezy main contrib non-freedeb http://ftp.cn.debian.org/debian/ whe

2012-10-10 13:58:09 10065

翻译 部件工具箱[widget toolkits]

= http://en.wikipedia.org/wiki/List_of_widget_toolkits =Widget toolkit comparison tableToolkit name MS Windows Mac OS X Unix-like Programming language licenseQt Y

2012-09-15 17:44:54 944

原创 我的减肥经历和一些经验[2]

【现状】 又1个月过去了,马上进入秋天了。这一个月运动的强度没有变化,只是维持之前的强度。现在的体重到了128斤(昨晚2012.09.10称的,已经隐约可以看到6块腹肌了),已经达到我的期望值了,其实半个月前就已经到130斤了。【计划】 已经开始减小运动强度,计划每个项目每周减去2个。这样要15周(半年才能减到每个都只有30个,要不要每周减4个呀?)。最后每个项目留下30个作

2012-09-11 12:49:32 887

翻译 device instance IDS(设备范例ID)

系统提供的设备的设备范例ID是一个唯一标识系统中的设备标识字符串。即插即用(PnP)管理为系统设备树(device tree)的每个设备节点(devnode)分配设备范例id。此字符串的格式由设备ID的紧接范例ID组成,如下所示:\设备实例ID的字符数,不包括空字符,必须小于MAX_DEVICE_ID_LEN的。此约束应用于的所有字段和设备ID与特定实例ID字段之间的“\”字段分隔符的长

2012-09-10 17:53:22 5359

原创 将firefox和thunderbird最小化到系统托盘

minimize firefox and thunderbird to system tray有几个插件可以办到,比如:minimize to tray 和 firetray

2012-08-11 15:45:46 3861

翻译 linux USB monitor 【linux usb抓包】

linux-stable/Documentation/usb/usbmon.txt* IntroductionThe name "usbmon" in lowercase refers to a facility in kernel which isused to collect traces of I/O on the USB bus. This function is analo

2012-08-06 16:34:25 5850

原创 我的减肥经历和一些经验[1]

概述:减肥是一件比较辛苦的事情,不但要下苦还要坚持下苦。减肥有很多方式:比如单纯节食(这个显然会弄坏自己的胃,不提倡);比如抽脂(这个听着有点怕怕,但是正规的医院应该是没有问题的);比如排毒减肥,安利纽崔莱和天津天狮集团都有相应的疗程(这个较贵);比如运动减肥等,当然也可以几种方法组合、搭配减肥。 首先要说的是单纯的节食减肥这种做法是极不提倡的,首先它损害自己的胃,而且早晨血糖低没精

2012-08-02 14:47:36 1976 5

原创 RNDIS protocol and INF Template

== 1 ==Remote Network Driver Interface Specificationhttp://msdn.microsoft.com/en-us/library/ee524902%28v=PROT.10%29.aspx== 2 ==The following Windows versions include a Remote NDIS driver for U

2012-08-01 15:38:02 1250

原创 ubuntu systray(系统托盘)图标问题

--systray上应用程序的图标无法显示:1, install dconf-tools, and run "dconf editor".2, add your application(want to show in systray) to Desktop -> Unity -> Panel. e.g.- systray-whitelist ['JavaEmbeddedFrame',

2012-07-04 16:05:16 1394 1

原创 如何打开/生成initrd.img

1, 解压initrd.imgzcat /boot/initrd.img | cpio -id2,压缩initrd.imgfind . | cpio -H newc --create | gzip -9 > ../initrd.img

2012-05-26 14:51:33 3635

原创 kubuntu input method

You may want to take a look here: http://code.google.com/p/ibus/wiki sudo apt-get update sudo apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase I have also installed p

2012-05-19 17:12:07 882

原创 s3c2440 primary boot from nand flash

S3C2440A boot code can be executed on an external NAND flash memory. In order to support NAND flash bootloader, the S3C2440A is equipped with an internal SRAM buffer called ‘Steppingstone’. When boo

2012-04-29 21:08:27 938

原创 Access linux fs from windows

----how to access linux fs(partitoins) from windows--1, Explore2fsext2+ext3http://www.chrysocome.net/explore2fsExplore2fs is a GUI explorer tool for accessing ext2 and ext3 filesystems.It runs

2012-04-27 21:27:37 1155

原创 some useful linux commands

--dosfslabel--dosfslabel device [label]set or get a MS-DOS filesystem label--e2label--e2label device [ new-label ]Change the label on an ext2/ext3/ext4 filesystem--查看2进制包--1, vim:%! xxd -

2012-03-30 16:27:44 801

原创 windows xp的问题

****验证是否激活****开始-> 运行-> oobe/msoobe /a

2012-03-06 10:19:56 638

原创 sun-java6-jdk的问题

之前一直按照这个网页搭建环境http://source.android.com/source/initializing.html今天发现sun-java6-jdk不能安装,按照ubuntu wiki的方法仍然失败:http://wiki.ubuntu.org.cn/Sun-java6LOG:在编译android代码时报错如下(之前只有openjdk-6-jdk):

2012-03-01 20:04:39 3602

原创 git使用问题

****保存git提交密码****Description:避免每次push/pull输入密码解决办法: $ echo 'machine code.google.com login username password ******' > ~/.netrc这里使用的是googlecode,如果是别的服务器,替换之即可。如果是google code的服务器,还需在项目根目录做如下修改:

2012-02-11 15:56:44 1067

转载 windows里的【.inf】文件

Inf 文件简介软件编程   2008-12-23 1635   阅读88   评论0   字号: 大大  中中  小小 Inf文件简介(参考和翻译文件来源如下我看了MSDN 和OSR 的解释,加了自己的理解,也翻译了一些内容,也去掉了一些内容,英文好的自己看好了。相信该作者BrianCatlinInf 是一个头疼的东西,主要它是一个不用语言而是用配置文件来处理的文

2012-02-07 13:40:45 5021

原创 svn一些使用问题

*******问题1*******--错误log如下:[Lee]~/cache/tmp$ svn ci -m "message"Sending patch-learning/READMEsvn: Commit failed (details follow):svn: File '/patch-learning/README' is out of date--问题产生的原

2012-02-07 04:06:23 816

原创 删除windows代码文件中的'^M'

有时从windows中copy过来的代码文件中会有很多'^M'(回车)字符,这使代码看起来很不整洁。这里分享一个简单的处理办法。思路:找到文件中的'^M'字符,并全部替换为space。最后用indent整理代码。'^M'的ascii是13。代码:#include #include #include #include #define M_ASC 13int main(

2011-12-13 23:05:26 1263

原创 如何做?如何作?

昨天跟一个同事的朋友聊起来:如何工作?如何成为一个工程师?这个问题,很尴尬,我不能回答。一时间不知如何是好。跨专业就业本来就是很有挑战的,但是这一年来也从没有停歇,却仍然不能看到想要的结果,是不是当初的选择错了?还是。。。又或者。。。迷惘了。该如何是好呀?如何是好?好好反思一下!反思!反思!

2011-12-07 20:36:01 468

原创 简单字符设备驱动(driver of simple char device)

1>驱动代码:/* * Copyright (c) 2011 sudo.lee * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free

2011-11-28 22:59:56 1433

原创 usb数据结构(data structure)

sturct usb_device { struct usb_host_endpoint ep0; /* endpoint 0=contrl point */ struct usb_device_descriptor descriptor; struct usb_host_config *config; /* all of the configs */ struct usb_host_

2011-11-24 18:21:38 1233

原创 安装cross toolchain及NO_PUBKEY错误解决办法

在ubuntu上安装交叉编译工具,以前安装交叉编译工具是件很麻烦的事情(那些依赖关系),但是现在emdebian已经打包好了.1>加入源:根据http://www.emdebian.org/crosstools.html的提示需要在/etc/apt/source.list中加入emdebian的源,如下:#Stable (Squeeze)#There are gcc-4.4 and

2011-11-03 11:09:42 1569

原创 container_of()宏

container_of()宏在操作内核标准链表时很有用,也是内核提供的标准方法之一,其他的大多数链表操作都依赖这个宏.这个宏用于获得一个结构(成员)的父结构体的入口地址.因为C语言在编译的时候,结构体的地址就由ABI确定下来了, 这才有了下面的实现:#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)/*

2011-10-21 22:04:04 603

原创 中断下半部_工作队列(work queue)

1>work_queue: __3.0.42>description:中断下半部,在内核线程的进程上下文中执行推后的工作.它是唯一能在进程上下文运行的中断下半部实现机制,也只有它才可以睡眠.3>创建推后的工作:DECLARE_WORK(const char *na

2011-10-18 18:18:28 5446 2

原创 推后执行_等待队列(waitqueue)

1>wait queue: __3.0.42>description:在处理推后的工作或阻塞等待某个条件时很有用,wait_queue_func_t func运行在进程上下文.3>declare or init:struct __wait_queue_head {

2011-10-18 14:28:05 2181

原创 国标网线制作方法

第七代系统使用国标直通线,两种标准都可用RJ-45连接器的线排列有两种方法,分别是568B和568A,我们常用 568B方式,排列见下图:  实际上在10M 100M网络中,仅仅使用12 36 这四根线,1000M网络要用所有的。 两边使用同样标准的线称为直通线(

2011-10-15 16:11:03 659

原创 ubuntu常用软件

/** * ____/| sudo apt-get install gcc g++ make gdb libc6 libc6-dev manpages manpages-posix manpages-dev manpages-posix-dev glibc-doc * \

2011-10-11 18:47:32 471

原创 my vim settings

"" Just copy this text document to ~/.vimrc for vim settings"se nuse cursorlinese tabstop=4se shiftwidth=4se hlsearchse incsearchs

2011-10-10 11:15:19 432

原创 ubuntu FAQ

> 几乎所有Ubuntu的使用问题可以在这里找到答案.... http://wiki.ubuntu.org.cn

2011-10-08 19:08:00 754

原创 I2C-client-devices-drivers-writing

About L3G4200D digital output gyroscope sensor            made by STMicroelectronics.i2c-client的驱动从板级枚举开始(对应的结构:struct platform_data{})         >>> e.g: /arch/arm/mach-x/xxx.c        a:板级枚举时

2011-09-02 17:57:18 1644

原创 errno_table_on_linux

/** * asm-generic/errno-base.h */#define EPERM 1 /* Operation not permitted */#define ENOENT 2 /* No such file or directo

2011-09-02 10:19:12 559

原创 测测你的电脑是男是女?

create a txt file named: filename.VBSfill in it below:CreateObject("SAPI.SpVoice").Speak "I love YOU"double click, the sound may

2011-08-31 18:59:27 515

arm cross toolchain with gcc 4.8.1

arm平台交叉编译器,静态编译。 主要资源版本: linux-3.12.12 binutils-2.23.2 gcc-4.8.1 glibc-2.18

2014-04-19

busybox 1.20.2 for android

busybox 1.20.2 for android. steps: adb remount adb push ./busybox-1.20.2-android2 /system/bin/ adb shell busybox ifconfig......

2012-08-22

rvct22 for linux_x86

RVCT22 for linux,带有头文件和armlib,cpplib,使用只需修改license.dat里的hostid(mac地址)和env设置脚本里的路径。

2012-04-06

ARM体系结构与编程_杜春雷.pdf

ARM体系结构与编程_杜春雷.pdf,。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

2011-09-13

精通linux设备驱动程序_en

精通linux设备驱动程序_en,图灵丛书

2011-08-18

linux devices drivers_3_en

LDD3_en Over the years, this bestselling guide has helped countless programmers learn how to support computer peripherals under the Linux operating system, and how to develop new hardware under Linux. Now, with this third edition, it's even more helpful, covering all the significant changes to Version 2.6 of the Linux kernel. Includes full-featured examples that programmers can compile and run without special hardware.

2011-08-02

空空如也

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

TA关注的人

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