10/22/2009
10/18/2009
关于vista解除文件关联
只有在控制面板\默认程序\设置关联才有,但是只能更改关联
下列步骤可以删除文件的关联
恢复到未知文件类型
重启之后图标改回来了,好像图标文件被加载到内存里了,重启就行了
详细位置:
HKEY_CLASSES_ROOT\
HKEY_USERS\S-1-5-21-1283515444-3789667760-3496897243-500\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\
以上三处的相应后缀名项全部删除,最好之前导出该项的备份以防不测
10/16/2009
Jokes about Erdos number (From Wiki)
On April 20, 2004, Bill Tozier, a researcher with an Erdős number of 4, offered the chance for collaboration to attain an Erdős number of 5 in an auction on eBay. The final bid was $1,031, though apparently the winning bidder had no intention to pay. The winner (who already had an Erdős number of 3) considered it a "mockery", and said "papers have to be worked and earned, not sold, auctioned or bought".
Another eBay auction offered an Erdős number of 2 for a prospective paper to be submitted for publication to Chance (a magazine of the American Statistical Association) about skill in the World Series of Poker and the World Poker Tour. It closed on 22 July 2004 with a winning bid of $127.40.
Cultural anecdotes
It is jokingly said that American baseball player Hank Aaron has an Erdős number of 1 because he autographed a baseball with Erdős when Emory University awarded them both honorary degrees on the same day.
10/08/2009
Ubuntu Linux系统下安装NVIDIA显卡驱动 (ZT)
运行glxinfo | grep rendering
如果显示"direct rendering: Yes",则已安装
1、下载驱动
http://www.nvidia.com/page/home.html
我下载的就是NVIDIA-Linux-x86-100.14.19-pkg1.run这个文件
2、删除原驱动包
sudo apt-get --purge remove nvidia-glx nvidia-glx-new
然后删除 /lib/linux-restricted-modules/2.6.22-14-generic/文件夹下面带有nvidia字样的内容,这里是内核自带的驱动
再检查一下这两个文件是否存在,
/etc/init.d/nvidia-glx
/etc/init.d/nvidia-kernel
如果存在,删除掉。
3、安装要用到的软体
sudo apt-get install build-essential pkg-config xserver-xorg-dev linux-headers-`uname -r`
安装编译包。
4、备份
sudo cp /etc/default/linux-restricted-modules-common \ etc/default/linux-restricted-modules-common.backup
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
5、禁止系统使用默认的驱动
sudo gedit /etc/default/linux-restricted-modules-common
在最后的双引号中添加nv nvidia_new,即把文件中的“”,改成“nv nvidia_new”
如果前面第二步删除完整了其实也可以不用执行这一步。
6、停止GDM进程
sudo /etc/init.d/gdm stop
按Ctrl+Alt+F1,登录后进入第7步。
7、进入下好的驱动所在目录(用ls命令确认文件在不在)
sudo sh NVIDIA-Linux-x86-100.14.19-pkg1.run
安装过程中,
如果提示有旧驱动,询问是否删除旧驱动,选Yes;
如果提示缺少某某模块(modules),询问是否上网下载,选no;
如果提示编译模块,询问是否进行编译,选ok;
如果提示将要修改Xorg.conf,询问是否允许,选Yes;
接下来就是等待安装完成。
8、安装完成就回到终端,重启GDM
sudo /etc/init.d/gdm restart
好了,当看到NV的logo后,安装成功。
如果实在不想看NVIDIA的LOGO,可以修改 /etc/X11/xorg.conf
在Section "Device"中添加Option "NoLogo" "True"
如:
Section "Device"
Identifier "通用显示卡"
Driver "nvidia"
Option "NoLogo" "True"
EndSection
10/07/2009
Matlab Symbolic Toolbox on Linux - GLIBC_2.0 issue fixed also on kernel 2.6.17
Hi folks!
First of all I have to thank slackwarelife and Anonymus (I hope he will post me his nick!) to have posted on their comments two sources for the solution of MATLAB's Symbolic Toolbox issue with the not found GLIBC_2.0!
If you are on this page you are probably trying to fix this:
Unable to load mex file: /usr/local/matlab7/toolbox/symbolic/maplemex.mexglx.
/usr/local/matlab7/bin/glnx86/libmaple.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
??? Invalid MEX-file '/usr/local/matlab7/toolbox/symbolic/maplemex.mexglx': .
Error in ==> maple at 104
[result,status] = maplemex(statement);
Error in ==> sym.maple at 85
[result,status] = maple(statement);
Error in ==> sym.plus at 22
X = maple(A(:),'+',B(:));
We got a solution with a strange method: setting the global variable LD_ASSUME_KERNEL to 2.4.1 avoiding libmaple's call to GLIBC_2.0 that caused the crash.
On kernel 2.6.17 (for the Ubuntu-users as I am it means from Dapper to Edgy) this trick doesn't work anymore because with the new kernel setting that variable to 2.4.1 cause the system not to find the base libraries like libc6.so that is needed for command calls like "matlab" to start the program!
So MATLAB doesn't start!!!
Instead to reinstall Dapper or search about kernel patch I decided to wait and to try other things because in this period I don't needed Symbolic Toolbox.
Yesterday that two bloggers brought to me the solution!
I fixed the issue in this way:
download THIS FILE with the patched libmaple.so directly from the MathWorks site
Unpack the zip, I guess you unpacked it on your desktop if not change some path in the next rows.
From the terminal go to your MATLAB installation directory for me:
~$ cd /usr/local/matlab7
go to bin/glnx86
[install_folder]$ cd bin/glnx86
make a backup copy of libmaple:
$ sudo mv libmaple.so libmaple.so.old
copy the patchd libmaple.so in the same folder:
$ sudo cp /home/[user]/Desktop/libmaple.so ./
change file's owner and group
$chown root:root libmaple.so
make the file executable by the owner, by the group any by any users:
$chmod ugo+x libmaple.so
Little explanation of chmod... I typed "ugo" because it was funny ;-) to be more strict we have had to use "ogu":
"o" means owner
"g" means group
"u" means users
"+x" means add the execution permission to the file (type "-x" to remove it)
so we added exec permission to that file either for the owner "o" either for the users in the group "g", either for the generic user "u"!
The typical order of permission is owner-group-users so "ogu" is more correct... but "ugo" is funnier!!! ;-)
To view the permission of files use ls -l instead of the optionsless ls.
Now all is fixed, this is the ultimate solution to the issue because the new library doesn't link anymore to GLIBC_2.0
10/04/2009
Sony A840, S740 and S640 Walkmans debut
Sony Japan have announced a bevy of new Walkman PMPs, the NW-A840, S740 and S640. The A840-series gets an OLED display like its X-Series sibling, but in this case its a regular display rather than a touchscreen. Still, it manages to be the thinnest Walkman to-date, at just 7.2mm thick, despite that 2.8-inch display, up to 64GB of storage and a battery apparently good for up to 29 hours of music playback or 9 hours of video.
You can also hook the A840 Walkmans up to your TV, with up to 720 x 480 resolution video supported. There’s also ambient noise reduction, drag & drop content transfer from your PS3, and a set of the company’s high-end MDR-EX300SL earbuds.
As for the S740 and S640 Walkmans, they have the same headphones and video-out capabilities as the A840, but smaller 2-inch LCD displays. Some models include integrated speakers, while others have noise-cancellation.
The new Sony Walkman NW-A840 series will be available from October 31st, ranging from the 16GB NW-A845 (¥24,000/$264), through the 32GB NW-A846 (¥30,000/$330), and topping out at the 64GB NW-A847 (¥40,000/$440). Meanwhile the new S-series PMPs will arrive earlier, before the end of this month, priced between ¥16,000 to ¥25,000 ($176-275).
10/03/2009
猜一个历史人物。。。
24岁時和只有18岁的秘书交往并結婚
28岁见到1岁的女嬰,开始光源氏计划、
在31岁到日本旅行认识一名15岁的女仆,
隔年认识10岁的萝莉,
在日本旅行期间就周旋于女仆和萝莉之间,
38岁和萝莉結婚、39岁回到中國,
49岁光源氏计划成功,把22岁的小妹妹带回家,
后來活到59岁死亡。
请问这人生的贏家是哪个历史人物?
1885年 19岁 与卢慕贞(18岁)结婚,后育有三子
1891年 24岁 认识陈粹芬(18岁),后成为侧室
1894年 28岁 初次见到宋庆龄(1岁岁女婴)开始光源氏计划
1897年 31岁 流亡日本,认识浅田春(15岁女仆)
1898年 32岁 认识大月熏(10岁罗莉)
1900年 34岁 9月20日上午在神户市相生町加藤旅馆跟浅田春(18岁)OOXX
1901年 35岁 向卢慕贞(34岁)提出离婚(当时似乎还没正式离婚,不过民国的民法颁布于孙某死后,故忽略)
1902年 36岁 向大月熏(14岁)父亲提亲被拒绝
1903年 37岁 8月与大月熏(15岁)订婚
1904年 38岁 7月19日与大月熏(16岁)正式成亲
1915年 49岁 与卢慕贞(48岁)正式离婚 与宋庆龄(22岁)结婚
答案:孙中山
sony mp3工程模式详解 (转自百度mp3玩家吧)
一般来说,能调节的,是CLESTE和DAC两项。其他的不影响声音。
DAC中有B GAIN与T GAIN两个选向,每个选项下分GAIN 与 FC两个选项。
B GAIN中的FC为50HZ,不建议改动,否则影响低音下潜。GAIN默认是-6.0,负值绝对值调小可以改善声音闷的情况,但是会使低音变得无力,不过如果觉得闷,为了声音整体平衡,可以适当减小到-4.5。
T GAIN 中的FC默认为5KHZ,可以调节为7,10,15KHZ,FC调高会使声音开阔一些,甚至华丽一些,但是高音的控制力会减弱,可以理解为牺牲音质换听感。本人目前用的ATH-A1000,在FC为10KHZ时音质已经不能接受了,人声颗粒感严重,毛刺特别突出。低端耳机也许可以设为10khz
T GAIN中GAIN默认值为0.0,设为+1.5可以让声音明亮,但是有很明显的“不干净”的感觉,所以建议对于T GAIN只调节FC。
CLESTE下分WCABLE于WOCABLE,绝对值调大可以展宽声场,减轻头中效应,改善闷的感觉,代价是会使声音的力度有所损失…
根据猜测,CLESTE应该是CLEAR STEREO的参数,但是实际调节发现,改动该参数后即使不打开CS,也会对声音有影响。很容易猜到WCABLE 应该对应的是有延长线,默认值-34;而WOCABLE对应的是无延长线,默认值-38。至于两者数值差对于不打开CL时的影响尚没有发现,各位有时间可以自己把玩。
关于音效我的一点看法。
Clear Stereo不建议打开,虽然可以获得比较好的定位感,但是牺牲声场,头中效应也比较明显,容易引起听觉疲劳。
DSEE酌情处理,该音效会产生很多极高频音甚至超声波,容易引起人的不适,比如头晕,但是该音效可以减少高音的毛刺,有点“毒”的效果。开不开视耳机而定。
关于EQ我的观点是能不开则不开。当然,如果耳塞太不平衡,比如ex082的话,还是开了好。
许多人报怨082声音闷而增益8k和16k。
私以为,增益1k比较合适。
Sony A815 工程模式,针对非原配耳机(森海塞尔MX760)的调整
1. 先把音樂停掉
2. 按”back”退回menu
3. “hold” on
4. 按著”OPTION” 然後快按”上-上-下-下-右-左-上-下-上-下-右” + “PLAY”
5. 解開”hold”
原始数据:
CLESTE
—WCABLE: -34
—WOCABLE: -38
B~GAIN
—DAC BASS GAIN -4.5
—DAC BASS FC 50Hz
T~GAIN
—DAC TREBLE GAIN 0.0
—DAC TREBLE FC 5kHz
调整1:(加大声场)
进入工程模式后,找到CLESTE选项,把WOCABLE初始数值调到-45;找到DAC选项,把B-gain调节到-4.5,把T-GAIN里调节为+1.5。
然后保存退出,重新开机。
进入均衡器设置选项,选定制,把EQ参数依次调整为:clearbass+1 +1 +1 +2 +2 +1
音效除了VPT和高清晰立体声关闭之外,其他全开。
调整2: (相当清澈的声音)
CLESTE
—WCABLE: -40
—WOCABLE: -40
B~GAIN
—DAC BASS GAIN 0.0
—DAC BASS FC 50Hz
T~GAIN
—DAC TREBLE GAIN 1.5
—DAC TREBLE FC 15kHz
Clear Bass: +2
Equalizer: +2, 0, +1, 0, +2
DSEE : OFF
Clear Stereo: OFF
Normalizer: ON