感谢您来,如果留言不方便,你可以Mail我:我的邮箱
echo 'RW1haWwvTVNOL0d0YWxrOiBhMThjY21zQGdtYWlsLmNvbQo=' | base64 -d

被GoogleReader宠坏了

2010年5月21日 8 条评论

唉,自从开始用GoogleReader之后就没有把精品的发布到我的博客上的习惯了。真是太郁闷了。每次看到好的文章直接就加星,共享。唉~~便捷的操作真的让人懒惰。有没有什么办法直接把我共享的文章发送到Blog的办法呢?~~~呵呵~~我以后会尽量注意的。或者就单独发布Only我自己的东西。马上六月了。急切等待Ipad港行上市中~~~~~~

分类: 混论分类 标签: ,

Snow Leopard Virtuabox Install WindowsXp Error with Vt-x

2010年5月11日 没有评论

Today I installed Windows Xp in Virtuabox however happen an error.

VT-x is not available
Unknown error creating VM

So How to solve this problem?Do it:

In VirtualBox 3.0.2, this option no longer appears in the Advanced pane. Nevertheless I managed to find a workaround to deselect the option despite it no longer appearing in the UI:

Under the ~/Library/VirtualBox/Machines directory you will find a folder for each virtual machine you have created. Within this directly you will find an XML file with the machine settings.

It looks like:

 13     </ExtraData>
 14     <Hardware version="2">
 15       <CPU count="1">
 16         <HardwareVirtEx enabled="true" exclusive="false"/>
 17         <HardwareVirtExNestedPaging enabled="true"/>
 18         <HardwareVirtExVPID enabled="true"/>
 19         <PAE enabled="true"/>
 20       </CPU>

Just change the 'enabled="true"' part to 'enabled="false"'.

Enjoy.

分类: Linux 标签: , ,

bash_completion install in Mac OS X Snow Leopard

2010年5月5日 1 条评论

Recently,I Try to use the Snow Leopard ,But it lacks a feature.

Debian-like bash_completion! I missed you! So I Seached with Google!

To install it just do:

sudo port install bash-completion
echo "source /opt/local/etc/bash_completion" >> ~/.bash_profile
chmod +x ~/.bash_profile

Tip: You must have MacPorts installed to run the first command. MacPorts Form http://www.macports.org .

If you don’t know yet what is bash_completion, it is  a feature for shells to autocomplete commands. Example: You are on a git repository. You type git fe and press TAB, bash_completion will fill “fetch” for you. If you have branches, they are autocompleted too. GNU Tar only shows files compatible with the filters you selected. So if you tar xvzf my-softw TAB, it will complete only filenames that are on tar.gz or tgz format and that starts with the string you already typed.

It is heaven again.

分类: Linux 标签: , ,

选择适合过一辈子的人 …[转自未知]

2010年5月2日 2 条评论

★心理学家认为,判断男女两个人是否适合“牵手”,应考虑以下10个因素。

  1. 第 一、彼此都是对方的好朋友,不带任何条件,喜欢与对方在一起。
  2. 第二、彼此很容易沟通、互相可以很敞开地坦白任何事情,而不必担心被对方怀疑或轻 视。
  3. 第三、两人在心灵上有共同的理念和价值观,并且对这些观念有清楚的认识与追求。
  4. 第四、双方都认为婚姻是一辈子的事,而 且双方(特别强调“双方”)都坚定地愿意委身在这个长期的婚姻关系中。
  5. 第五、当发生冲突或争执的时候可以一起 来解决,而不是等以后来发作。
  6. 第六、相处可以彼此逗趣,常有欢笑,在生活中许多方面都会以幽默相待。
  7. 第七、彼此非常了解,并且接纳对方, 当知道对方了解了自己的优点和缺点后,仍然确信被他所接纳。
  8. 第八、从最了解你、也是你最信任的对方处得到支持的肯定。
  9. 第九、有时会有浪漫的感情,但绝大多 数的时候,你们的相处是非常满足而且是自由自在的。
  10. 第十、有一个非常理性和成熟的交往,并且双方都能感受到,在许多不同的层面上你们 是很相配的。

阅读全文...

分类: 混论分类 标签: ,

tar打包排除某个或多个子目录 | AWK命令

2010年4月25日 4 条评论

下午遇到一个小问题:文件目录结构如下

/dir0-
-/dir1         <---该文件很大,欲排除
-/dir2         <---该文件很大,欲排除
-/dir3         <---目标目录之一
-index.php  <---目标文件之一
.............以下省略N个子目录和子文件.............

目录下很多子目录,而我需要打包。目标是   /wwwroot 下所有子文件+/dir3 ,于是那些多余的子目录就让我头疼,
怎样在不影响文件结构的情况下打包呢,搜索网上,很多人用下面这个方法:
阅读全文...

分类: Linux 标签: , ,