mercredi 27 octobre 2010

lundi 25 octobre 2010

【转】如何正确内置CUE文件

发现很少有人注意这个问题,所以提出来大家参考。大家应该知道在foobar的媒体库设置里提供有限制类型和排除文件类型的选项。比较旧的foobar 版本里这里的设置默认为空,而最新的版本比如v0.9.5.6里默认为排除cue文件。所以有人升级foobar后发现播放列表里只有一个个的ape文 件,没有具体曲目信息。可能大家已经习惯了,右边的分类播放列表里有一个ape文件和对应的cue文件提供的曲目信息。这样多少有点“重复”的意思。有人 问过如何去掉那个ape文件,让播放列表里只有cue曲目信息。这里我提供的建议是,大家保留媒体库里的排除cue文件设置,同时将cue文件内置到 ape文件里。如何内置呢?其实很简单。在最新的foobar播放界面右键点击一个ape文件,选择工具-编辑cue sheet,在弹出的界面中勾选“启用文件里内嵌的cue sheet”,然后点击“载入……”,找到这个ape文件对应的cue文件,确定就可以了。 当内置cue文件成功后,重新扫描媒体库就可以了。播放列表里就没有多余的ape文件了,而cue文件也可以放到回收站了。建议你保留,因为你已经在媒 体库里排除了cue文件,万一以后要用到呢。呵呵! 下面几点很重要,因为我们有时并不能成功内置cue文件,即使成功了也会发现播放列表显示不正确。需要注意的是以下几点: 1,确保cue文件格式正确。至于这点请查看置顶帖。 2,在进行操作前不能播放当前ape文件里的歌曲,否则会弹出出错提示框。 3,如果cue文件正确,载入成功,重启foobar后发现列表里多余的ape文件也没有了,但是歌曲的标题不正常,并不是cue文件提供的歌曲标题,或 许全部显示为专辑的标题。至于这点请这样做:全选右边播放列表里那个ape文件包含的所有曲目文件,右键选择属性,将元数据栏里的艺术家,标题和专辑的值 全部清空,然后重新内置cue文件,一般就可以解决了。

*原文转自:http://www.foobar2000.com.cn/archiver/showtopic-5705.html

jeudi 21 octobre 2010

[转] Ubuntu 10.04 LTS 安装 sun-java6-jdk

今天需要用到sun的jdk,但找了半天就是找不到,只有openjdk,后来才知道,是10.04中弄走了sun-java6-jdk,官方的release notes 中看
到如下一段:

Sun Java moved to the Partner repository

For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.
If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Repository. You can configure your system to use this repository via command-line:
add-apt-repository "deb http://archive.canonical.com/ lucid partner"



于是,添加上面的源后再



sudo apt-get update



sudo apt-get install sun-java6-jdk

*原文转自:http://blog.csdn.net/cangzhubai/archive/2010/06/25/5693021.aspx

mardi 19 octobre 2010

alias mysql=/usr/local/mysql/bin/mysql

mysql --user=chen --password=cwang mysql

前提:MySQL 已经打开;

lundi 27 septembre 2010

how to check the mac system is 32 or 64 bit

打开终端,输入命令:uname -p
如果是i386就是32位,x86-64就是64位

jeudi 29 juillet 2010

Resetting the AirPort Express

At the risk of piggybacking on the work of my betters, I'd like to devote today's entry to expanding on some information provided in Jason Snell's Editors' Notes blog. Specifically, I thought I might provide some more details about resetting the AirPort Express.
Jason mentions that you can reset the AirPort Express by holding down the tiny reset button. Absolutely true, but it's only one of three ways to reset the device (and each variety of reset does something a bit different).
The three reset types are soft, hard, and factory default. You issue a soft reset when you need to reset your base station password (if you forget the password you originally entered, for example). A hard reset is for those times when the device stops responding. This kind of reset doesn't erase saved profiles. The final reset -- factory default -- does exactly what it says. It returns the AirPort Express to the condition it was in when you pulled it out of the box. Invoking a factory default reset erases all saved profiles.

To perform each reset, follow these steps:
Soft Reset
With the AirPort Express plugged into a power outlet, launch the Network System preference and choose AirPort from the Show pop-up menu. Click the TCP/IP tab and choose Using DHCP from the Configure pop-up menu. Press and hold the device's reset button for 1 second. The light will flash yellow and you'll have five minutes to make changes before the AirPort Express reverts to its previously saved configuration.
Hard Reset
With the AirPort Express plugged into power, press and hold the device's reset button for 10 seconds. A green light will flash for a bit and then the device will reset itself -- a process that takes about 45 seconds. Once reset, you can configure it with the AirPort Express Assistant or the AirPort Admin Utility.
Factory Default
Unplug the AirPort Express from the power outlet and press and hold the reset button. While still holding down the reset button, plug the device into a power outlet. Hold down the reset button until you see the light flash green four times. Let go of the button and the device will reset itself. Wait the requisite 45 seconds and configure it with the AirPort Express Assistant or AirPort Admin Utility.


Original Link: http://www.macworld.com/article/36834/2004/08/000282.html

vendredi 21 mai 2010

[zz] Tomcat install woes – Cannot find …bin/catalina.sh

November 14th, 2007
This week I was assisting a customer with installing Tomcat on the System i5 and ran into an issue I thought I would post here to assist others.
After placing a non-IBM version of Tomcat in the IFS, I started up a QShell session, changed directory to the Tomcat bin directory, and executed startup.sh. The result of running startup.sh was the following:
startup.sh
Cannot find /tomcat/v4.1/bin/catalina.sh
This file is needed to run this program
After reviewing the bin directory I confirmed that catalina.sh DOES exist. I modified the files permissions through WRKLNK thinking that may be the issue – no go. After digging around the internet I found somebody with the same issue except they were on a Linux machine and were directed to chmod the execution authority on that file. So I ran the same from QShell and walla! It worked! I am not sure why it worked because I had already set that file to *PUBLIC *RWX on the i5OS side [scratching head]. Anyways, to remedy the situation, and keep further such things from happening, I ran chmod on all files in the bin directory that I thought might need it:
chmod +x startup.sh
chmod +x shutdown.sh
chmod +x catalina.sh
chmod +x setclasspath.sh
chmod +x bootstrap.jar
chmod +x tomcat-jni.jar
Hope that helps someone else in need!