上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
  2010年8月5日
摘要: 1.安装sudo aptitude install pppoeconf2.配置sudo pppoeconf3.开启sudo pon dsl-provider # 具体的名字是在/etc/ppp/peer/中配置的4.查看日志sudo plog 5.关闭sudo poff 阅读全文
posted @ 2010-08-05 18:20 lbsx 阅读(1076) 评论(0) 推荐(0)
摘要: 更换网卡或者修改网卡地址之后,eth0可能会变成eth1等,是在/etc/udev/rules.d/70-persistent-net.rules中配置的。参考:http://www.linuxeden.com/html/sysadmin/20090531/65921.html 阅读全文
posted @ 2010-08-05 18:08 lbsx 阅读(1115) 评论(0) 推荐(0)
  2010年7月31日
摘要: reset是指将当前head的内容重置,不会留任何痕迹。Sets the current head to the specified commit and optionally resets the index and working tree to match.git reset --hard HEAD~3会将最新的3次提交全部重置,就像没有提交过一样。根据--soft --mixed --ha... 阅读全文
posted @ 2010-07-31 10:55 lbsx 阅读(1272) 评论(0) 推荐(0)
  2010年7月26日
摘要: http://www.cnblogs.com/dotlive/archive/2006/10/09/524633.html 代码下载 阅读全文
posted @ 2010-07-26 18:44 lbsx 阅读(301) 评论(0) 推荐(0)
  2010年5月25日
摘要: MySQL Tutorial - Import or Export A DatabaseThis tutorial section deals with mysqldump which is a tool to import and export MySQL databases.It can be used to back up a database or to move database inf... 阅读全文
posted @ 2010-05-25 17:02 lbsx 阅读(382) 评论(0) 推荐(0)
  2010年5月21日
摘要: DWORD WINAPI GetPrivateProfileString( __in LPCTSTR lpAppName, __in LPCTSTR lpKeyName, __in LPCTSTR lpDefault, __out LPTSTR lpReturnedString, __in DWORD nSize, __in LPCTSTR lpFileName);DWORD WINAPI Get... 阅读全文
posted @ 2010-05-21 16:24 lbsx 阅读(900) 评论(0) 推荐(0)
摘要: #的功能是将其后面的宏参数进行字符串化操作(Stringizing),简单说就是在对它所引用的宏变量通过替换后在其左右各加上一个双引号。Causes the corresponding actual argument to be enclosed in double quotation marks##被称为连接符(concatenator),用来将两个Token连接为一个Token。注意这里连接的... 阅读全文
posted @ 2010-05-21 16:08 lbsx 阅读(260) 评论(0) 推荐(0)
  2010年5月14日
摘要: 一直用命令行,没弄明白它俩的区别。原来keep只在当前aptitude会话期间禁止升级。因此在命令行直接 aptitude keep <package>是没有用的,马上会话就结束了。需要进到aptitude图形前端,然后按":",然后再升级,本次就不会升级它了;退出aptitude之后,下次依然会对这个包升级。而hold是一直禁止它升级。 阅读全文
posted @ 2010-05-14 08:59 lbsx 阅读(458) 评论(0) 推荐(0)
  2010年5月13日
摘要: LARGE_INTEGER BeginTime; LARGE_INTEGER EndTime; LARGE_INTEGER Frequency; QueryPerformanceFrequency(&Frequency); QueryPerformanceCounter(&BeginTime);//要测试的代码放在这里 QueryPerformanceCounter(&En... 阅读全文
posted @ 2010-05-13 20:15 lbsx 阅读(618) 评论(0) 推荐(0)
  2010年5月12日
摘要: Stopwatch sw= new Stopwatch(); sw.Start(); //do something sw.Stop(); Console.WriteLine(sw.Elapsed.TotalMilliseconds);参考:http://www.cnblogs.com/ajax-cn/archive/2007/04/14/713179.html 阅读全文
posted @ 2010-05-12 19:45 lbsx 阅读(366) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页