• MAC电脑操作快捷键

    2009-06-20 16:34:11

    注:command即苹果键,也有人称为花键。ctrl即control键。escape即键盘左上角的esc键。space空格键。 

     

    屏幕捕捉快捷键 

    动作:保存到-快捷键 

     

    全屏捕捉-桌面(.pdf文件):command + shif...
  • An Interesting Problem from Kenneth Baclawski's "Introduction to Probability with R"

     

    Exercise 1.20 (Prendergast)


    Two technicians are discussing the relative merits of two rockets. One rocket has

    two engines, the other four. The engines used are all identical. To ensure success

    the engines are somewhat redundant: the rocket will achieve its mission even if

    half its engines fail. The first technician argues that the four-engine rocket ought

    to be the better one. The second technician replies, "Although I cannot reveal the

    failure probability of an engine, because it is classified top secret, I can assure you

    that either rocket is as likely to succeed as the other."

    The first technician replies,"Thank you. What you just told me allows me to

    compute the failure probability both for an engine and for a rocket."

    Can you do this computation also? (Exercise 1.20, p. 21)

     

     

    the answer is:

    1/3, 1/9

     

  • 2010-01-21 15:54:25
    在安装pydelicious库之前要同样在google code上下载安装一个叫feedparser的东西...
    
    
    D:\Python26\user\feedparser-4.1>python setup.py install
    running install
    running build
    running build_py
    creating build
    creating build\lib
    copying feedparser.py -> build\lib
    running install_lib
    copying build\lib\feedparser.py -> D:\python26\Lib\site-packages
    byte-compiling D:\python26\Lib\site-packages\feedparser.py to feedparser.pyc
    running install_egg_info
    Writing D:\python26\Lib\site-packages\feedparser-4.1-py2.6.egg-info
    
    
    D:\Python26\user\pydelicious050\pydelicious.py:90: DeprecationWarning: the md5 module is deprecated; use hashlib instead
      import md5, httplib
    running install
    running build
    running build_py
    creating build
    creating build\lib
    copying pydelicious.py -> build\lib
    running install_lib
    copying build\lib\pydelicious.py -> D:\python26\Lib\site-packages
    byte-compiling D:\python26\Lib\site-packages\pydelicious.py to pydelicious.pyc
    running install_egg_info
    Writing D:\python26\Lib\site-packages\pydelicious-0.5.0-py2.6.egg-info

     

  • notepad.exe %windir%\system32\drivers\etc\hosts

  • 使用

    truncate table dbname.tablename

    或者

    truncate table tablename

    可以清空一张表的所有内容

    万万不可用drop table命令,这个将把此表内容与结构彻底摧毁。

     

  • Advanced Task Killer

    Advanced Task Manager

    Android System Info

    AndroZip

    AnFetion

    aQQ

    Bible ASV

    超级记事本

    DOCUMENTS TO GO

    大众点评

    点阵灯牌

    FLASHLIGHT

    FXCAMERA

    GOGGLES

    GOOGLE SKY MAP

    GPSTEST

    流量统计

    METAL DETECTOR

    MUSICAL LITE

    OPEN GPS

    OPENVPN

    飘信

    ROOT EXPLORER

    SHAZAM

    SMS BACKUP

    TEETER

    条码扫描器

    PICSAY PRO

    UC浏览器

    系统信息浏览器

    信号发生器

    虚拟来电

     

  • 在Windows下使用Android SDK and AVD Manager下载安装SDK的问题解决方法

    下载解压缩了android-sdk-windows包之后运行SDK Setup.exe

     

    出现:

    Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

    按照提示,勾选了settings里面的:

    Force https://... sources to be fetched using http://...,

    并且点击了save&Apply,但是依旧提示:

    Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml

    应该时设置的Force的功能没起作用,在网上搜了以下,有很多人遇到了类似的问题,Android官方也还没有提出解决方法,但是在Google Group中找到了一种方法(参见:http://groups.google.com/group/android-developers/browse_thread/thread/63a44163a8d07cd9?pli=1):

    可以在执行android update sdk前,先在命令行中设置一个环境变量:

    export GDK_NATIVE_WINDOWS=true

    然后在执行android update sdk,设置Force https://... sources to be fetched using http://...,点击Save&Apply,就可以了。

    其实我后来发现,不用设置什么环境变量也可以,出现上述问题的主要原因是,勾选了Force……之后,用鼠标点击Save&Apply按钮,没起作用,应该是UI对单击事件没响应,有很简单的方法就是,用回车,因为勾选完,默认的选项按钮就是Save&Apply,直接回车就可以了,如果不是默认按钮,可以先用鼠标点一下,使其变为当前选中按钮,然后回车就可以了

     

     

    基本上转载自以下链接:

    http://blog.csdn.net/JiangBo_HIT/archive/2009/11/24/4860996.aspx

  • 在HP 6531s笔记本上安装Windows XP必须要先在BIOS中将SATA MODE修改为IDE, 否则一般的没有继承ICH驱动的XP安装盘将无法驱动硬盘,从而不能安装系统。

    在用IDE模式安装好了XP系统之后,此时此刻计算机的硬件管理器中的情况是这样的, 在IDE ATA/ATAPI 控制器类别内有六个条目, 前两个分别是:

    Intel(R) ICH9M/M-E 2 port Serial ATA Storage Controller 1 - 2928

    Intel(R) ICH9M/M-E 2 port Serial ATA Storage Controller 2 - 292D

    后面4个是: 两个 主要IDE通道, 两个 次要IDE通道。

    如图所示: 

     

    要想开启SATA的AHCI模式,需要在惠普提供的相关驱动sp40078或者sp45106解压缩出来的文件中寻找适合32位Intel机器的ICH驱动,我们要找到的是这样一个文件夹

    xxxx\Drivers\Global\INTELMSM\Winall\Driver,  在这个文件夹中有六个文件:

    4/18/2008  10:44            11,509 iaAHCI.cat

    4/16/2008  00:53             8,794 iaAHCI.inf

    4/18/2008  10:23            11,215 iaStor.cat

    4/16/2008  00:53             8,114 iaStor.inf

    4/16/2008  01:53           312,344 IaStor.sys

    4/16/2008  00:53             4,573 TXTSETUP.OEM

                  6 个文件        356,549 字节

    下面要做到就是打开设备管理器,右击条目Intel(R) ICH9M/M-E 2 port Serial ATA Storage Controller 1 - 2928, 选择更新驱动程序, 然后逐步选择, 不让连接WIN UPDATE, 从列表或者指定位置安装,不要搜索, 我自己选择要安装的驱动程序, 然后点下一步,  此时, 选中条目对应项, 然后点击“从磁盘安装”, 浏览选择上面提到的iaStor.inf文件,无视系统提示的警告,进行更新。然后系统会提示你重启计算机, 请顺服系统提示(不要贪心去更新第二条目),点重启计算机,当计算机重新启动的时候快按F10进去BIOS把SATA模式修改为AHCI,然后启动WINDOWS,成功! 不再蓝屏了!

    此时我们在去设备管理器一看, 原来的六个条目只剩下了一个:

    Intel(R) ICH9M-E/M SATA AHCI Controller

    此时系统已经开启了AHCI模式! 但是。。如果我重新将SATA模式改为IDE还能启动Windows系统吗?实验之后我发现不能! 看来... 欲与熊掌暂时不可得兼啊!

    好了! 如果你知道如何能够让系统自由切换于AHCI和IDE这两种SATA模式, 请留言,不要客气  : )

     

  • c:\>convert X: /fs:ntfs

  • %windir%\system32\rundll32.exe %SystemRoot%\system32\OobeFldr.dll,ShowWelcomeCenter LaunchedBy_StartMenuShortcut

    %windir%\ehome\ehshell.exe

    %windir%\system32\StikyNot.exe

    %windir%\system32\SnippingTool.exe
    ...
  • 感谢JJW博士的教导

     

    n维欧式空间中半径为r的球体积的一般公式是:

     

    V = Pi^(n/2) * r^(n) / Gamma(n/2 + 1)

     

    比如三维下:

     

    Gamma = G

    G(x+1) = xG(x)...
  • 今天实验<<iText in Action>>书中第32页第二章Listing 2.1的代码时,代码如下:

    import com.lowagie.*;

    import com.lowagie.text.*;

    import com.lowagie.text.pdf.*;

    import java.io.*;

     

    ...

  • 2009-11-17

    希腊字母表 - [数学]

    α Α alpha ['ælfa]
    β Β beta ['bi:ta / 'beita]
    γ Γ gamma ['gæma] 
    δ Δ delta ['delta]
    ε Ε epsilon ['epsilan / ep'sailan]
    ζ Ζ zeta ['zi:ta] ...

  • 2008-08-11

    All About Questions - [随笔]

    我有太多太多的疑问,无论是那种,我要把它们记录在这里。

    非常欢迎您回答我的任何问题,多谢!

    Let the  Q&A begins!  :)