自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (1)
  • 收藏
  • 关注

原创 [Android] 如何查看当前分支

想要知道如何编译Android,请看http://source.android.com/source/index.html想要知道如何下载Android,请看http://source.android.com/source/downloading.html1. 如何查看本地Android代码的分支信息,以及查看更多的分支$ git --git-dir=.repo/manifests

2012-03-01 12:36:18 2530

原创 Gentoo Linux设置文本模式下的分辨率

本文仅仅记录作者本人解决问题的过程,更多详情请翻墙GoogleGentoo在VMWare上编译安装Step 1: 编译内核,安装图形驱动Device Drivers -> Connector - unified userspace kernelspace linker ---> Graphics support -> [*] Support for frame buf

2011-12-28 17:36:42 1231

原创 [Gentoo]安装运行后,/boot文件夹为什么是空的?

Gentoo安装完成后,发现/boot文件夹下面没有任何内容此问题由二个原因引起的,一是内核不支持ext2,另一是fstab配置错误 Step 1: 重新编译内核File systems --->      Second extended fs support       [*]   Ext2 extended attributes       [*]

2011-12-28 17:17:30 1313 6

原创 VMWare安装Gentoo错误"cannot open root device sda3..."

本文仅仅记录解决问题的过程...供大家参考 问题的原因是由于缺少SCSI驱动引起的 解决方法如下:Step 1: 修改SCSI驱动类型VM->Edit Settings->SCSI controller 0->change type,设为BusLogic此项设置据说是因为2.6+的内核不再支持LSI Logic Step 2: 用LiveCD启动,并进入编译

2011-12-28 12:45:19 1043

原创 计算质数

质数是指在一个大于1的自然数中,除了1和此整数自身外,没法被其他自然数整除的数。下面的程序计算区间[a, b]之间的质数#include #include #include #include void Prime(int min, int max){ int i, j, count = 0, square, isPrime; for (i = min; i

2011-10-14 15:56:19 623

原创 VS2008下配置安装WTL开发环境

1. 首先,去http://sourceforge.net/projects/wtl/下载WTL安装包,当前最新是WTL81_9127.zip2. 解压zip文件,选择自己喜欢的目录,比如D:/WTL81_91273. 运行文件D:/WTL81_9127/AppWiz/setup90.js4. 在VS2008中添加Include files, Tools->Options-

2011-07-01 14:49:00 877

原创 C语言指针 -- 面试题

有人在群里发布了一道试题,学习一下,测试学习环境为32位机#include int main() { int a[5] = { 1, 2, 3, 4, 5 }; int *p1 = (int*)(&a + 1); int *p2 =

2011-03-30 15:52:00 1439 1

原创 gnu make学习笔记一

gnu make, gcc "-M"参数, 正则表达式, 自动生成依赖, sed反斜杆, shell元字符

2010-11-29 18:19:00 723

原创 Mozilla编译命令

Gecko, Firefox, Mozilla Build System

2010-11-08 16:37:00 793

原创 正则表达式,awk实例

正则表达式、awk、egrep

2010-11-04 16:08:00 649

原创 为Firefox主题自动生成jar.mn

Mozilla Build System, JAR Manifests, awk, jar.mn

2010-11-03 13:20:00 575

原创 XPCOM编译错误

1. LNK2019: public: wchar_t const * __thiscall nsAString::BeginReading(void)const设置VC编译选项 /Zc:wchar_t-To set this compiler option in the Visual Studio development environmentOpen the project's Property Pages dialog box. For details, see Modifying Project S

2010-10-22 18:04:00 643

原创 函数模板与名字空间, 编译错误C2440

#include namespace A{ template void foo1(T& value) { std::cout void foo1(T& value)" << std::endl; } template void foo1(T& value) { std::cout void foo1(T& value)" << std::endl

2009-12-30 10:50:00 1738 1

原创 IWebBrowser2在没有焦点时响应滚轮事件

 首先, 获得IE控件窗口句柄, 父窗口调用EnumChildWindows, 回调函数代码:BOOL CALLBACK CWebDialog::EnumChildProc(HWND hwnd, LPARAM lParam){ CWebDialog* webDialog = (CWebDialog*)(lParam); return webDialog->EnumChildProc

2009-11-25 18:20:00 1656

原创 std::not2调试版本错误

#include #include #include #include templatevoid Output(_RanIt _First, _RanIt _Last){ for (_RanIt next = _First; next != _Last; ) { std::cout << *next; next++; if (next != _La

2009-10-16 17:31:00 791

原创 指针数组与数组指针

#include #include int main(){ int n = 1; // int int array[2] = { 1, 2 }; // int [2], 数组 int *p = &n; // int *, 指针 int **pp = &p; // int * *, 指针的指针 int *parray[2] = { &n,

2009-10-12 18:52:00 519

原创 Linux的栈大小

#include int count = 0;void foo(){ char buffer[0x7FFFFFFF - 255]; buffer[sizeof(buffer) - 1] = 1; count += buffer[sizeof(buffer) - 1];}int main(){ for (int i = 0; i < 1

2009-03-30 16:46:00 636

原创 成员函数指针,静态成员函数指针,友元函数指针

#include class A{public: A(int a) : m_a(a) { } static void foo(void* param) { printf("static %s/n", __func__); } void foo() { printf("%s/n", __fun

2009-03-20 15:48:00 2027

原创 rdate更新设置时间

$ cat /etc/redhat-releaseCentOS release 5.2 (Final) Step 1: su -Step 2: rdate -s time-a.nist.govStep 3: hwclock --systohc 时钟服务器可选time.windows.comtime.nist.govtime-nw.nist.govtime

2009-02-27 14:35:00 1239

原创 Grub源代码分析

GRUB简体中文化版使用方法http://sysoft.zdwx.com/grub/Grub 源代码分析http://www.linuxsir.org/bbs/showthread.php?t=170348

2006-05-09 17:26:00 3291

du meter 4.16.3102 包含破解

DU Meter 是显示直观的网络流量监视器,既有数字显示又有图形显示。让你清楚的看到浏览时以及上传下载时的数据传输情况,实时监测你的上传和下载的网速。新版增加了观测日流量、周流量、月流量等累计统计数据,并可导出为多种文件格式。 du meter 4.16.3102 包含破解,兼容windows 7,经测试可用

2011-12-19

空空如也

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

TA关注的人

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