自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 gcc optimize options

优化选项 (OPTIMIZATION OPTION)这些选项 控制 多种 优化措施:-O-O1优化. 对于 大函数, 优化编译 占用 稍微多 的 时间 和 相当大 的 内存.不使用 `-O' 选项 时, 编译器 的 目标 是 减少 编译 的 开销, 使 编译结果 能够 调试. 语句 是 独立的: 如果 在 两条语句 之间 用 断点 中止 程序, 你 可以 对 任何 变量

2014-03-28 09:47:39 1124

原创 自定义的delay()函数(C语言)

#include void my_delay(long int delay_t){clock_t start_time; //the start timestart_time=clock();while((clock()-start_time) }

2014-03-27 13:34:29 7187

原创 Linux文件的优先级

r=4, w=2, x=1Octal Binary File Mode0 000 ---1 001 --x2 010 -w-3 011 -wx4 100 r--5 101 r-x6 110 rw-7 111 rwx

2014-03-27 13:09:32 828

原创 不需要密码就登陆SSH Server

Your aimYou want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don't want to enter any passwords, because you

2014-03-27 13:07:34 514

原创 Linux下的儿童教学软件

gcompristuxmathflashcard4cn

2014-03-27 13:06:06 1052

原创 git下载和上传的用法

Usegit clone ssh://username@url.com/~username/workfolder/ mylocalrepoWhich will create the repository on your local machine. Any commits you make to that branch are to your local repository, a

2014-03-27 13:00:45 512

原创 Linux Remote Desktop For Controlling Windows XP / Vista / Server 2003 ( rdesktop )

Install rdesktop# apt-get install rdesktopConnect to MS Windows 2000/2003 server from Linux, type the following command at a shell prompt (connect to Windows server called mw2sn100.mycorp.com)

2014-03-27 12:58:41 790

原创 vsftpd as ftp server

You can edit the vsftpd configuration file,/etc/vsftpd.conf, to change the default settings.0)sudo apt-get install vsftpdIn this example, anonymous FTP is not desired, but a group of trusted

2014-03-27 12:57:36 679

原创 gdb:怎样做内存查找?

x /16xb 0x8ae64de16=length of memoryx = format, like printf(format)b = binarythe result is as0x47    0x00    0x11    0x17    0x1d    0x01    0xbb    0x01

2014-03-27 12:54:49 2573

原创 vim:怎样查找?

1 search a word "word", use:/word, when found, use "n" or "N" or "3N" to go to next/previous one2 search a word "word" ignore the case, use:set ignorecase/wordto set back, use:set

2014-03-27 12:53:20 464

原创 bug管理工具知多少?

from wiki:launchpadJIRARoundupTRACBugzilla

2014-03-27 12:52:13 592

原创 03/2010 Filezilla: Best ftp gui client for ubuntu

Filezilla is moved to ubuntu in about 2007 year.It's a gorgeous ftp gui client.

2014-03-27 12:48:34 942

原创 GIT LOG:REVIEWING HISTORY

The git log command can show lists of commits. On its own, it shows all commits reachable from the parent commit; but you can also make more specific requests:$ git log v2.5.. # commits since (not

2014-03-27 12:47:06 602

原创 python to print hex of a decimal

print "hex(255) =", hex(255) # 0xff

2014-03-27 12:45:07 897

原创 vim faq: how to view the hex text?

in vim, there's a xxd as an external program.vim foo:%!xxd

2014-03-27 12:44:26 506

原创 如何发现0200:1521就是igb.ko

我是通过bing.com来查到这些信息的,当时我lspci -k发现网卡驱动不起来,于是开始bing.com 0200:1521,这是网卡的pci id找到的位置如下,由此我知道这是i350网卡,对应的modules是igbhttp://openbenchmarking.org/linux/PCI/0200/8086:1521igb 0000:08:00.0:

2014-03-27 07:31:51 1479

原创 SourceMonitor的复杂度计算方法

圈复杂度下面科普性的内容来自:http://blog.youkuaiyun.com/lg707415323/article/details/7790660 圈复杂度(Cyclomatic Complexity)是一种代码复杂度的衡量标准。它可以用来衡量一个模块判定结构的复杂程度,数量上表现为独立现行路径条数,也可理解为覆盖所有的可能情况最少使用的测试用例数。圈复杂度大说明程序代码的判断逻辑复杂

2014-03-25 13:23:09 4298

原创 Use g++ to replace gcc when link the .cpp file

Use g++ to replace gcc when link the .cpp fileQ:I have a small program, test.c. It runs OK. This is on Linux (kernel2.6.8.1, GCC 3.4.1).I decided to convert it to C++ before expandin

2014-03-25 13:11:45 482

原创 Gcc IDE for windows, recommand DEVCPP

light weighted a compiler for small compile or different language identification

2014-03-25 13:10:37 993

原创 grep: How to find a word inside a directory

grep: How to find a word inside a directorye.g.grep -l "ERROR:" *.logto recursively search in a directory is as,grep -r "LOG" *where -r means recursively, * means match any file

2014-03-25 13:09:36 511

原创 gdb faq: how to set/cancel a break

gdb faq: how to set/cancel a breakin the command line,gdbthen it will enter gdb command linefile foobarrun foobarbreak foo.cpp:15    (which means to break at line 15 of foo.cpp)info

2014-03-25 13:07:17 574

原创 how to mount remote disk as local disk at startup

1 sudo vi /etc/fstabin this file, add the line as,//host_machine_name/d$ /mount smbfs user=foo,domain=bar,password=alice_password,iocharset=utf8 0 0notice that you should replace the corre

2014-03-25 13:05:28 651

原创 how to mount remote disk as local disk

sudo mount -t smbfs //xxx_host/d$ /mount -o user=foo_user,domain=bar_domain,iocharset=utf8you'd better replace //xxx_host with your host machine name, a.k.a doggy-host, 10.2.3.4,replace foo_us

2014-03-25 13:04:28 763

原创 how to edit grub2 menu in ubuntu

I means about grub2, not grub.sudo vi /etc/default/grubin that file /etc/default/grub, you can foundGRUB_TIMEOUT=10change this to the seconds you wantGRUB_TIMEOUT=3and then exe

2014-03-25 13:02:46 531

原创 How to let ubuntu auto login

in the command line, execute:sudo visudoadd in the end of the file:xxx ALL=NOPASSWD: ALLnotice to replace xxx with your user/group. a.k.atuxtoken ALL=NOPASSWD: ALL

2014-03-25 13:01:27 966

原创 How to let ubuntu mount at startup?

1 sudo fdisk -l2 sudo vi /etc/fstabadd the following:/dev/sda4 /media/diskA ext4 defaults 0 0/dev/sda5 /media/diskB ntfs defaults 0 03 sudo mkdir /media/diskAsudo mkdir /media/

2014-03-25 12:59:52 531

空空如也

空空如也

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

TA关注的人

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