上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
  2011年12月29日
摘要: s=" a b c "" ".join(s.split())awesome python! 阅读全文
posted @ 2011-12-29 17:55 eshizhan 阅读(2728) 评论(0) 推荐(0) 编辑
摘要: run a command as root using sudo from Python: 1 import subprocess 2 3 def mypass(): 4 mypass = '123' #or get the password from anywhere 5 return mypass 6 7 echo = subprocess.Popen(['echo',mypass()], 8 stdout=subprocess.PIPE, 9 )10 11 sudo = ... 阅读全文
posted @ 2011-12-29 09:59 eshizhan 阅读(3372) 评论(0) 推荐(1) 编辑
  2011年12月7日
摘要: 从网上找了些资源,东拼西凑,自己调整了一下,Linux和Vim常用命令的桌面壁纸,初学者必备。 阅读全文
posted @ 2011-12-07 09:22 eshizhan 阅读(2664) 评论(0) 推荐(0) 编辑
  2011年12月4日
摘要: Win7安装VirtualBox出现Installation failed! Error: 系统找不到指定的路径是由于中文账户名引起的,如:C:\Users\小明两个解决办法:1.该用户名,这个麻烦点儿,但很彻底,有注册表修改经验的可参考这篇:如何改变X:\Users\XXX的用户名称。2.加参数VirtualBox-XXXXX-Win.exe -extract ,解压这个包,再到%temp%\VirtualBox文件夹(Win+R,输入%temp%\VirtualBox,Enter)中找对应的文件安装。 阅读全文
posted @ 2011-12-04 12:19 eshizhan 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: 参考了两篇文章:How to Change the User Folder Name of a User Profile in Windows 7http://www.sevenforums.com/tutorials/147545-user-profile-folder-change-user-account-folder-name.htmlHow To Change A Windows Account Name And User Profile Folder Namehttp://www.ghacks.net/2011/03/28/how-to-change-a-windows-accou 阅读全文
posted @ 2011-12-04 12:01 eshizhan 阅读(4198) 评论(0) 推荐(0) 编辑
  2011年12月3日
摘要: Q:symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_datalist_get_dataA:sudo pacman -S glib2Q:cp: cannot stat /usr/share/lxde/pcmanfm/pcmanfm.conf No such file or directoryA:mkdir -p /usr/share/lxde/pcmanfmcp -a /etc/xdg/pcmanfm/default/pcmanfm.conf /usr/share/lxde/pcmanfm/pcmanf 阅读全文
posted @ 2011-12-03 18:47 eshizhan 阅读(747) 评论(0) 推荐(0) 编辑
  2011年11月30日
摘要: Q:The headers for the current running kernel were not found.error in /var/log/vboxadd-install.log/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make againA:安装缺少的包,并创建一个符号链接就可以了。yum install kernel-devel gcc makels 阅读全文
posted @ 2011-11-30 16:57 eshizhan 阅读(1945) 评论(1) 推荐(1) 编辑
摘要: 不看不知道,一看真奇妙,太简单了,KISS法则 符号:` 名称:反引号,上分隔符 位置:反引号(`)这个字符一般在键盘的左上角,数字1的左边,与(~)在同一键上,不要将其同单引号(’)混淆 作用:反引号括起来的字符串被shell解释为命令行,在执行时,shell首先执行该命令行,并以它的标准输出结果 阅读全文
posted @ 2011-11-30 16:39 eshizhan 阅读(23304) 评论(0) 推荐(2) 编辑
  2011年11月28日
摘要: 名称:ReadyFor4GB功能:使工作站版本 32位 x86 的 Vista/Windows 7 支持超过 4GB 物理内存使用方法:运行ReadyFor4GB.exe,之后运行AddBootMenu.cmd,重启后启动菜单选带有128GB的原理:破解Windows PAE 内核文件 ntkrnlpa.exe,绕过 ZwQueryLicenseValue API 函数的许可限制详细的内容请看原文:http://www.geoffchappell.com/viewer.htm?doc=notes/windows/license/memory.htm主要是PAE技术,需要CPU硬件支持和操作系统 阅读全文
posted @ 2011-11-28 21:52 eshizhan 阅读(738) 评论(1) 推荐(0) 编辑
  2011年11月15日
摘要: 小技巧,分享一下,类比可精确到分钟,精确到小时,精确到天(使用TimeSpan.TicksPer*)private static DateTime CutOffMillisecond(DateTime dt){ return new DateTime(dt.Ticks - (dt.Ticks % TimeSpan.TicksPerSecond), dt.Kind);} 阅读全文
posted @ 2011-11-15 17:54 eshizhan 阅读(4005) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页