• 2008-03-15

    享受假期? - [心情]

      每个人应该都有一个玩的天性,想去的地方和想去的人,没有压力的放松。有人可以放下许多事情不管,沉浸在自己的游戏中,享受自己的度假生活,没有电话,没有访问,没有电邮,有的只是放松与快乐,轻松与自由。这应该是一种非常好的生活态度吧。有张有弛,收放自如,所有人都希望有如此生活。我也一样,所以我同所有人一样,我羡慕王石,这个号称一年中三分之一时间工作,三分之一时间游玩,三分之一时间陪伴家人的男人。他有这份豪气,他也有这个底气说这个话,做这个事。可以,我呢,现在的我可以有这个豪情么,没有的。
      在我看来,日常生活的质量要高于平常游戏的感觉,两都轻重关系如此明显。即使我去玩了,如果生活的质量还不令人满意,这种游玩,对我来说是完全没有愉快感的,因为我有太多的事要操心。这是我的性格,我的脾气,看来今年的计划,享受假期,还是实现不了,努力的为将来才是首要的。
  • 2008-03-13

    super Pi for Ubuntu - [软件]

    Super PI 是一个计算圆周率的软件,在 Windows 平台上,经常使用 Super PI 来测试 CPU 超频是否稳定,可以说,Super PI 测试是否通过已经作为判断 CPU 稳定性的依据。suxixb(http://www.shareitem.org/2007/11/29/software-super-pi/)的一篇在UBUNTU下使用Super PI让我等使用ubuntu之辈也可以享受Super PI带来的好处了了。
    使用方法,请至网页http://www.shareitem.org/2007/11/29/software-super-pi/下载super PI for ubuntu,解压后放在任意文件夹,使用终端进入文件夹,执行命令
    sh super_pi,就可以执行SUPERPI了
            说明:最后的 20 代表 1M(100万位),21 代表 2M,25 代表 32M。

    下面是我的机器运行 sh super_pi选择 20 的结果
    sh super_pi
    Version 2.0 of the super_pi for Linux OS
    Fortran source program was translated into C program with version 19981204 of
    f2c, then generated C source program was optimized manually.
    pgcc 3.2-3 with compile option of "-fast -tp px -Mbuiltin -Minline=size:1000 -Mnoframe -Mnobounds -Mcache_align -Mdalign -Mnoreentrant" was used for the
    compilation.
    ------ Started super_pi run : Wed Mar 12 00:16:45 CST 2008
    Parameter(%i) to super_pi is missing. Parameter value ? 20
    Start of PI calculation up to 1048576 decimal digits
    End of initialization. Time=       0.484 Sec.
    I= 1 L=       0        Time=       1.420 Sec.
    I= 2 L=       0        Time=       1.576 Sec.
    I= 3 L=       1        Time=       1.640 Sec.
    I= 4 L=       2        Time=       1.664 Sec.
    I= 5 L=       5        Time=       1.608 Sec.
    I= 6 L=      10        Time=       1.608 Sec.
    I= 7 L=      21        Time=       1.584 Sec.
    I= 8 L=      43        Time=       1.584 Sec.
    I= 9 L=      87        Time=       1.640 Sec.
    I=10 L=     174        Time=       1.600 Sec.
    I=11 L=     349        Time=       1.584 Sec.
    I=12 L=     698        Time=       1.560 Sec.
    I=13 L=    1396        Time=       1.580 Sec.
    I=14 L=    2794        Time=       1.580 Sec.
    I=15 L=    5588        Time=       1.568 Sec.
    I=16 L=   11176        Time=       1.580 Sec.
    I=17 L=   22353        Time=       1.568 Sec.
    I=18 L=   44707        Time=       1.540 Sec.
    I=19 L=   89415        Time=       1.408 Sec.
    End of main loop
    End of calculation.    Time=      31.706 Sec.
    End of data output.    Time=       0.168 Sec.
    Total calculation(I/O) time=      31.874(       1.044) Sec.
    ------ Ended super_pi run : Wed Mar 12 00:17:35 CST 2008

    32秒不到,看来还是不错的。
  • 2008-03-12

    virtualbox USB支持 - [软件]

       最近需要在XP下安装一些软件并作相应的测试,但是我的机子只安装了一个系统,所以使用virtuaBox安装了一个winxp的虚拟机,但是在实际使用过程中,使用USB却碰到了麻烦,启动时virtualbox会有usbfs的权限报错,修改权限后问题解决。

    1. VirtualBox安装
      http://195.34.175.98/download/1.5.6/virtualbox_1.5.6-28266_Ubuntu_gutsy_i386.deb
      使用上述地址下载最新版的virtualbox,这个是for gutsy(ubuntu7.10)的,如使用其他的linux系统,请至http://www.virtualbox.org/wiki/Downloads选择相应的版本,下载完毕后双击后输入ROOT密码就可以完成安装。
      当然,如果你喜欢使用apt-get 来安装软件,可以参考http://www.virtualbox.org/wiki/Downloads上面关于使用源来安装软件的方法。
    2. 设置USB使用权限
      需要设置两个文件的内容
      1) sudo gedit /etc/udev/rules.d/40-permissions.rules(你也可以使用VIM等其他文本编辑器),找到如下语句
      # USB devices (usbfs replacement)
      #SUBSYSTEM=="usb_device",        MODE="0664"
      改成
      # USB devices (usbfs replacement)
      SUBSYSTEM=="usb_device",        MODE="0666"
      2)sudo gedit /etc/init.d/mountdevsubfs.sh,找到如下语句
          # Magic to make /proc/bus/usb work
          #
          #mkdir -p /dev/bus/usb/.usbfs
          #domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
          #ln -s .usbfs/devices /dev/bus/usb/devices
          #mount --rbind /dev/bus/usb /proc/bus/usb
      取消前面的#引用标识,更改后如下
          # Magic to make /proc/bus/usb work
          #
          mkdir -p /dev/bus/usb/.usbfs
          domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
          ln -s .usbfs/devices /dev/bus/usb/devices
          mount --rbind /dev/bus/usb /proc/bus/usb
      至此保存后,重新启动virtualbox就可以正常的使用USB了。

  • 2008-03-11

    一机双号 - [工作]

      相信很多朋友会像我一样,有两个或两个以上的手机号码,一个私人电话,一个工作电话。但是,经常的带两个手机,是比较麻烦的一件事。使用哪些双卡的手机,可以选择的就比较少了。所以当中国移动推出一机双号功能后,我很感兴趣。使用了快有一周了,感觉还是很不错的。
      使用这个业务,不用更换原来的手机SIM卡,也不用换手机,就可以在原来的号码上增加一个新的号码。两个号码有主副之分,但是两个号码均可以同时电话短信,按照各自的资费标准交费,各自的虚拟网各自保存。对于主号码来说,使用与平常一样。对于副号码来说,在使用时,要在拨出的号码或发出的短信的手机号码前加上1259023,以标识用的是副号码。同时,办理完成后,副号码的SIM卡会立即失效,同时,副号码将不能拥有呼叫转移等功能。当然,这两个号码要都是你自己使用的。
      关于收费,浙江移动现在推出的优惠是在2008年06月30日前使用,享受月功能费10元的减免优惠。如果不在此间办理,将要对副号码征收10元的月功能使用费。

  • 2008-03-05

    白雪公主的马云 - [心情]

      只为记录,要做就做最强的,一般人我不错。
  •    其实普通人的生活,本来都是非常的平静的,平静到不想去做什么事情,只想自己与家人生活的很幸福。但是生活,其实并不是如此,并不是怎么想就会有什么样的 生活,生活中有太多的意外,太多的无法控制。就如同一盒巧克力,永远不知道下一块吃到的是什么味道的。所以,生活中的人们,都在时刻的准备着生活去解决生 活中发生的问题,很多的问题,很多意外的问题。
      Michael Clayton 是一部好片子,就是讲了 Michael 这一个普通人的生活,怎么会被意外打乱,让自己陷入了一个困境,又是如何因为好运与谨慎,让生活重新圆规正常。作为一个普通的调解公司的非正式职员,他在 这家公司做了十几年,也曾经几次的与老板去谈成为正式工的问题,正式的做一些自己最拿手也最乐意做的事情,同时也为了有一份正常的工作,有一份持续的收 入,可以维持他的家庭,还有他看起来体面的生活。但是,因为这是生活,并不是自己想就可以的,他并没有得到他想要的,无奈之下,只有依靠自己的力量,去开 了一家餐馆。但是,境况并非可以由自己控制的,餐馆的生意并没有原来想象的那样,不但没有成为生活的另外一份收入开源,反而给自己带来的无尽的问题,欠费 7万5千美元,而自己所能凑出的,也不过只有一万多一点而已。因为自己的自尊,处事的方式,他并没有想到让他人来帮助自己,即使这个人是他的家人。他把所 有的事情放在心上,一个人去处理所有的事情。去与老板谈钱的事情,去努力的做每一件事,努力的挣钱,去给自己,给家人带来安全富足的生活。但是,事与愿 违,想象的事情并没有实现。亚瑟事件差点让他入了一条不归路,不过,祸兮,福之所倚;福兮,祸之所伏。逃过一劫的Michael发现了问题,抓住的问题的 关键,解救了自己。
      但是,电影终规还是电影,并不是生活。电影中的生活,只是艺术化后的生活,现实生活的事情,却永远没有Michael这样的好运,生活 的中的人们还是继续要在这么一个没有安全感的社会中生存下去。其实,有时候想想还是很悲哀的,现在的生活,已经退到了为安全生存担忧的边缘。也许,正因为 有这么多人有这样的担忧,整天的精神的压力,而让偶像,而让信仰,而让宗教有了非常大的生存空间,普通人可以把自己的精神压力告诉一个并不存在的虚体,然 后为他们而生活,而让自己感到充实,释放压力。
      OSCAR的评委们,还是不错的,具有平民生活的气息,在我看来,这一部Michael clayton其主题,与Forrest gump有异曲同工这妙,生活就像一盒巧克力,你永远不会知道,下一块是什么味道。
  • 2008-02-27

    安装OSS过程记录 - [软件]

      在安装新的OSS驱动之前,如果系统中还有残留的驱动文件存在,安装过程是不能够完成的,因此首先要做的就是查看一下,系统内是否有以前的驱动存在。方法如下:
    1 在终端下进入目录/var/lib/dpkg/info,命令 cd /var/lib/dpkg/info
    2 删除所有以oss-linux开头的文件,命令sudo rm oss-linux*
    3 编辑文件/var/lib/dpkg/status,sudo gedit /var/lib/dpkg/status,找到关于oss-linux的有关内容,并将其删除(内容如下)

    Package: oss-linux
    Status: install ok installed
    Priority: extra
    Section: alien
    Installed-Size: 8440
    Maintainer: root <root@dev-desktop>
    Architecture: amd64
    Version: v4.0rc9-999
    Depends: libatk1.0-0 (>= 1.12.1), libc6 (>= 2.4-1), libcairo2 (>= 1.2.4), libfontconfig1 (>= 2.3.0), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.10.3), libpango1.0-0 (>= 1.14.5), libx11-6, libxcursor1 (>> 1.1.2), libxext6, libxfixes3, libxi6, libxinerama1, libxrandr2, libxrender1
    Conffiles:
    /etc/oss.conf 055432d38aaf37fc6de3dba4a95accc3
    Description: Open Sound System sound drivers for Linux
    Open Sound System for Linux (OSS/Linux) is a commercial quality sound driver
    distributed by 4Front Technologies (http://www.opensound.com). OSS provides
    support for practically all sound cards on the market including PnP and
    many PCI ones. Installation and configuration is higly automated and easy to
    perform. To obtain technical support and additional features, you will need to
    order a license key from http://www.opensound.com/order.html
    (Converted from a rpm package by alien version 8.64.)

    4 查看oss-linux当前状态,命令 sudo dpkg --purge oss-linux,则会显示如下信息
    dpkg - warning: ignoring request to remove oss-linux which isn't installed.
    5 安装oss-linux,命令 sudo dpkg -i oss-linux_v4.0-1013_i386.deb,安装显示信息如下
    brucebot@brucebot-laptop:~/MyDownloads$ sudo dpkg -i oss-linux_v4.0-1013_i386.deb
    Selecting previously deselected package oss-linux.
    (Reading database ... 132118 files and directories currently installed.)
    Unpacking oss-linux (from oss-linux_v4.0-1013_i386.deb) ...
    Setting up oss-linux (v4.0-1013) ...
    Building OSS Modules for Linux-unknown 2.6.22-14-generic
    OSS build environment set up for REGPARM kernels
    Building module osscore
    Building module ali5455
    Building module allegro
    Building module als300
    Building module als4000
    Building module apci97
    Building module atiaudio
    Building module audigyls
    Building module audioloop
    Building module audiopci
    Building module cmi8788
    Building module cmpci
    Building module cs4280
    Building module cs4281
    Building module digi32
    Building module digi96
    Building module emu10k1x
    Building module envy24
    Building module envy24ht
    Building module fm801
    Building module geode
    Building module hdaudio
    Building module hdsp
    Building module ich
    Building module imux
    Building module lynxone
    Building module lynxtwo
    Building module maestro
    Building module neomagic
    Building module ossusb
    Building module riptide
    Building module s3vibes
    Building module sblive
    Building module sbxfi
    Building module softoss
    Building module solo
    Building module sonorus
    Building module trident
    Building module via8233
    Building module via97
    Building module vmix
    Building module vortex
    Building module ymf7xx
    depmod -a
    -----------------------------
    Detected Intel High Definition Audio (ICH8)
    Detected Generic USB audio device (BETA)
    Detected OSS Transparent Virtual Mixing Architecture
    -----------------------------
    Starting Open Sound System

  • Lenovo F31A has used many technology from thinkpad, such as Active Protection system for the hard disk(HDAPS).What is APS system? Here we go.

    The Active Protection System

    With the new series of ThinkPads IBM introduced the Active Protection System (APS) in 2003. The APS is a protection system for the ThinkPad's internal harddrive. A sensor inside the ThinkPad recognizes when the notebook is accelerated. A software applet then is triggered to park the harddisk. This way the risk of data loss in case of when the notebook is dropped is significantly reduced since the read/write head of the harddrive is parked and hence can't crash onto the platter when the notebook drops onto the floor.

    The hardware sensor is capable of not only recognizing acceleration of the notebook, but also (to a certain degree) of its whole orientation in space, relative to gravity's axis. Furthermore, having the actual control put into software, its functionality is extendable and it gives chance to implement features like the "ignore minor shocks" feature which is present in the Windows based control applet. (This feature prevents the harddrive from parking in case of minor regular shocks such as occur when in a train or car.)
    And the following websites are recorded for the future configuration for my notebook.

    1.http://www.thinkwiki.org/wiki/Active_Protection_System
    2.http://article.gmane.org/gmane.linux.drivers.hdaps.devel/1040
    3.http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS

      

     

  •   最近因为一些明星的事件,数据安全的问题就非常显眼的放在面前了,还有一些有远见的商家们已经开始谋划一些数据安全保护的方法去为一些有类似需要的高端客户服务了。不过在princeton的研究人员们看来,任何保护都是可以破解的,比如应用比较多的 BitLocker, FileVault, dm-cryptTrueCrypt加密系统.拿季微软件vista下的bitlocker来说吧,BitLocker 通过将两个主要子功能(完整的驱动器加密和对早期引导组件的完整性检查)相结合来增强数据保护,也就是说如果电脑失窃了,没有密码就不能打开硬盘查看里面的数据。如果想通过拆下硬盘安装到别的机器上来实现数据的读取,也是行不通的。因为它的工作原理就是两把钥匙一起,少了一把就别想打开硬盘查看数据。
      但是,这些安全保护对于princeton的研究人员来说,就显得的微不中道了。经过研究发现,DRAM中存的数据如果没有被刷新过的话,内部的数据还会保留一几分钟,即使这时将它从主板上拆走。当然这个时间远远不够的,他们发现,通过冷冻的方法,可以将内存中的数据保留更长的时候,他们找了几台笔记本电脑,分别是Dell dimension 4100,toshiba portege,Lenovo thinpad T43p,X60,3000 N100,都可以通过这种方法德到想要的数据。 

     

     

  • 2008-02-21

    元宵节快乐 - [心情]

      元宵节是快乐的,作为传统农历新年的第一个月圆之夜,也是新年后的最后一餐团圆饭,闹一闹是应该的。早就看到住的楼下已经有很多灯扎好装好在哪里了,不远处也有一个新的舞台搭好,今天晚上应该会是很热闹的吧。只是我不在家,家里的热闹,只能透过电话感觉而已。电话中,有传来放焰火的声音,我能够想象绽放时的绚烂。那种放炮的感觉,是小时候扎的最深的过年的记忆。只是,现在已经很少有这种感觉了。过年成了赶场,没有了年的气氛,反而感觉是一种负担。看着别人的那种热闹,朱大人的那句¨热闹是他们的,我什么也没有¨就会不自觉的冐出头来。
      是的,这些年感觉自己越来越是奇怪了,在最闹腾的地方,自己的心却非常的平静;在越是安静的地方,却会感觉到不安,而且根本就不知道这种不安是因为什么。也许这个世界真的是很奇怪的,当你越是在意一件事的时候,它却总不会让你得偿所愿,当你决定完全丢开时,它却会主动的找上门了。也许是因为这样,才有这么奇特的不安与宁静吧。还是想想forrest gump的母亲的话吧,life was like a box of choclate,you never know what you are gonna got.