Monday, December 29, 2008

IE 6 CSS vs The Standart CSS

http://msdn.microsoft.com/en-us/library/bb250395(VS.85).aspx

Sunday, December 28, 2008

CS3 reactivate problem

1. 进入C:\Documents and Settings\All Users\Application Data\FLEXnet目录;
2. 找到 adobe_00080000_tsf.data 这个文件,删掉它或者将它移到其他地方;
3. 重新运行Flash/Fireworks/Dreamweaver…. 照常注册激活,一切OK~~

http://moscar.cn/?p=598

Wednesday, December 24, 2008

glassfish default setting

location: /usr/local/glassfish-v2ur2
user:admin
pass:adminadmin

http:8080
https:8181
admin:4848

Play RMVB in ubuntu 2

http://hi.baidu.com/rogertu/blog/item/eeeb2013aeec7c26dc54017d.html
一、使用自带的Totem Movie Player播放
1、安装ubuntu-restricted-extras
直接通过 Synaptic Package Manager 安装
2、安装w32codecs
下载安装文件w32codecs_xxx_i386.deb(http://debian-multimedia.org/pool/main/w/w32codecs/)来安装

之后,自带的"Totem Movie Player"即可播放rmvb格式文件。
但在测试时发现不能播放Audio Codec为“Real Aduio 10 (ACC)”格式的rmvb文件,error log(通过consolei启动时可看到)如下:

GStreamer encountered a general stream error
** Message: Error: GStreamer encountered a general stream error.
rmdemux.c(943): gst_rmdemux_loop (): /play/decodebin0/rmdemux0:
stream stopped, reason not-negotiated
(totem:11550): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

目前还不知如何解决。

二、使用MPlayer播放
1. 如“一、使用自带的Totem Movie Player播放”中描述,安装ubuntu-restricted-extras和w32codecs
2. 安装MPlayer
直接通过 Synaptic Package Manager 安装
3. 修改"/etc/mplayer/mplayer.conf"文件(解决不能全屏播放问题)
去掉配置行"#zoom=yes"中的注释符"#"

目前还没有发现不能播放的rmvb文件。

三、使用RealPlayer播放(from: http://www.ubuntux.org/how-to-install-the-realplayer-multimedia-player)
1. Download the RealPlayer11GOLD from http://www.real.com/linux to your home directory.
2. Open Terminal (from this point on, you must have admin rights).
3. Type sudo chmod +x RealPlayer11GOLD.bin
4. Type sudo "./RealPlayer11GOLD.bin"
5. Follow prompts. It'll start the installer. Do as it instructs and hit Enter.
6. It'll ask for the install path. Default is fine and hit enter.
7. It'll ask for a confirmation of install path. Press F to Finish the install.
8. It copies files, installs icons, etc. When you get the prompt, it's done.
9. To launch the app, go to Applications > Sound & Video > RealPlayer 11.

目前还没有发现不能播放的rmvb文件。

Play RMVB in ubuntu

http://www.simplehelp.net/2007/07/27/how-to-play-rmvb-files-in-ubuntu/

This tutorial will take you step by step through installing all of the software necessary to play rmvb (RealMedia Variable Bitrate) files in Ubuntu Linux.

Though the steps and screenshots are specific to Ubuntu, they will likely be similar for other versions of Linux. With that said, be sure to read the MPlayer README file if you’re not using Ubuntu. Similar to some of the other tutorials on Simplehelp, this is almost certainly not the only way to play .rmvb files in Ubuntu, but it’s the easiest way I could find. If you know of a easier method, by all means please feel free to leave a comment.

1. The first step in playing .rmvb files in Ubuntu is to use the Synaptic Package Manager to install MPlayer. When you mark MPlayer for installation, you’ll be prompted to install additional software packages (if they’re not already installed).

play rmvb files in ubuntu linux
click to enlarge
2. After MPlayer has been installed, exit out of the Synaptic Package Manager and visit the MPlayer binary codec download page. Download the codec package for your platform (for example, if you’re using a 32bit Intel or AMD processor, download the Linux x86 package).

Save the file to your desktop (or home folder). Once the download has completed, double-click that file. Select the folder to uncompress, and click the Extract button.

play rmvb files in ubuntu linux
click to enlarge
3. Choose a location to extract the files (your desktop is ideal) and again click Extract.

play rmvb files in ubuntu linux
click to enlarge
4. Make sure the files extracted correctly. They’ll be in a folder titled essential-date.

play rmvb files in ubuntu linux
5. Open up a Terminal by selecting Applications -> Accessories -> Terminal.

play rmvb files in ubuntu linux
6. Enter the following commands (and your password when prompted):

cd Desktop
cd essential-date
sudo mkdir /usr/lib/codecs
sudo cp * /usr/lib/codecs

play rmvb files in ubuntu linux
click to enlarge
7. NOTE: you may need to install libstdc++5 to get .rmvb files to play. Even though it might not be necessary for you, it can’t hurt to install (the package isn’t very big). Run the command: sudo apt-get install libstdc++5 in a Terminal, or use Synaptic and search for libstdc++5. Thanks to everyone who commented (see comments below) for the tip.
8. Launch MPLayer by selecting Applications -> Sound & Video -> MPlayer Movie Player. Right-click in the Mplayer - Video window and select Preferences from the menu.

play rmvb files in ubuntu linux
9. Select the Video tab and change the Available drivers: to x11 X11 (XImage/Shm).

play rmvb files in ubuntu linux
click to enlarge
10. Select the Codecs & demuxer tab and change the Video codec family: to RealVideo decoder and the Audio codec family: to FFmpeg/libavcodec audio decoders. When you’re done, click OK and close down MPlayer.

play rmvb files in ubuntu linux
click to enlarge
11. Locate one of your .rmvb files, right-click it and select Properties.

play rmvb files in ubuntu linux
12. Select the Open With tab and change whatever the default is to MPlayer Movie Player. Click Close.

play rmvb files in ubuntu linux
click to enlarge
13. Double-click any of your .rmvb files and they should open up in MPlayer and start playing.

play rmvb files in ubuntu linux

Thursday, December 18, 2008

How to install uTorrent in Ubuntu with wine

http://news.softpedia.com/news/uTorrent-under-Ubuntu-in-3-Easy-Steps-49037.shtml

sudo apt-get install wine

wget http://download.utorrent.com/1.7.5/utorrent.exe

wine utorrent.exe

http://news.softpedia.com/news/uTorrent-under-Ubuntu-in-3-Easy-Steps-49037.shtml
Step 1 - Install Wine

Open a console and type:

CODE
sudo aptitude install wine

Step 2 - Create uTorrent executable script

CODE
sudo gedit /usr/bin/utorrent

A text editor will open, just paste in the following lines. Remember to leave a blank line after the code below!

CODE
#!/bin/sh
cd ~/utorrent/
if [ "$1" != "" ]; then
var="`echo $1 | sed 's////g'`"
var="Z:${var}"
wine utorrent.exe "$var"
else
wine utorrent.exe
fi

Save and close. This will create a script in your /usr/bin/ folder. You still need to make this script executable, so type the following command in a console:

CODE
sudo chmod a+x /usr/bin/utorrent

Now create a folder called utorrent in your home directory, then download the latest version (Standalone, NOT the installer) of the uTorrent application from Softpedia and place it in the folder you've just created.

Step 3 - Create Desktop Shortcut

In this final step, we're gonna create a desktop shortcut for the uTorrent script above, so you don't have to type any command at all.

Right click on your desktop and go to "Create Launcher...". On the new launcher window, fill the fields as follows:

Type: Application
Name: uTorrent
Command: wine "/your-home-directory/utorrent/utorrent.exe"
Comment: BitTorrent Client

Install KTorrent with WebGUI on Ubuntu

http://lukedoomer.blogspot.com/2008/02/install-ktorrent-with-webui-on-ubuntu.html

1. ktorrent needs php executable path to show web interface so you have to install php command-line interpreter as well

sudo apt-get install php5-cli ktorrent

2. go to Settings / Plugins to load Web Interface plugin first

3. switch to WebInterface Options. if php executable path field shows "Php executable isn't in default path, please enter the path manually" or the light color is red, just set the path to /usr/bin/php then it'll turn green.

https://help.ubuntu.com/community/KTorrent
http://packages.ubuntu.com/feisty-backports/net/ktorrent
http://blog.nanaimoinn.com/index.php?blog=3&p=541&more=1&c=1&tb=1&pb=1
http://en.wikipedia.org/wiki/Comparison_of_BitTorrent_clients