Alex刺客

Dancing fingers, damage world. -- 舞动手指,破坏世界.

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  57 随笔 :: 0 文章 :: 76 评论 :: 0 Trackbacks

2010年3月18日 #

Linux下的播放器.

还记得N年前,本本装个Linux能发出声都是万幸的事.现在 Linux 平台越来越强大.驱动也更完善 . 像咱们这些喜欢音乐的 fans 也开始追逐 Linux 上的音质表现.
大多数Linux发行版本默认都不带音/视频解码器.只要你配置了第3方yum 比如(http://rpmfusion.org/). 然后打开系统自带的 totem 播放器随意打开个视频就会自动下载相关的解码器(建议尝试播放你机子上所有不同的视/音频格式.这种你就获得了最全面的解码器).
目前常见的格式 flac ape wav ogg mp3 aac m4a wma 只要你的系统安装了对应解码器都可获得支持.至少在我过的播放器中没碰见那种格式不能解释的.(前提你系统安装了解码器)
音乐播放器.
    1.Rhythmbox gnome 默认带的大多数格式都支持(前提你系统安装了解码器). 音质还算一般. 样子有点像 iTunes.均衡要装插件,调节后会有一点点的改善.但不突出.

    2.Audacious (有自己的解码器) 跟win 下的千千静听差不多.个人不太喜欢它的均衡没法调.
         安装方法: # yum install audacious audacious-plugins*

    3.Exaile 比较小 Python 语言写的. tags编辑功能是一大亮点,分类是我最喜欢的方式.均衡相对来说比以上两个要好一些.是我比较喜欢的一个player.
         安装方法: # yum install exaile

    4.Mplayer + smplayer 虽说是Linux下最牛的视频播放(全视频格式都支持,我机子上740p, 1080p都能跑就是CPU高了点.),用来播放音乐不合适.但是Linux下的音乐播放器(只说音质的话)我认为没一个音乐播放器的音质比mplyer强.不信你自己用无损的音乐仔细试听一下.总感觉有层次感一些.(调一点点均衡"V型"更容易突出这种效果.)
         安装方法: # yum install smplayer

刚捉的图欣赏一下. 每个播放器都带均衡调节喔.我的均衡方案说不定不适合你喔(理论上来说增强了低音跟高音,降低了中音频)合适听R&B,Hip-Hop,Rap,Rock.风格.
图: http://www.flickr.com/photos/56749281@N05/

Tips:
 推荐一个桌面歌词 Osd-lyrics 感觉还不错
os: feodra 14
Downlaod: http://code.google.com/p/osd-lyrics/

posted @ 2010-12-06 23:49 Alex刺客 阅读(6961) | 评论 (0)编辑 收藏

     摘要: linux 安装 Tomcat6
linux 安装 apache-tomcat-6.0.29
Tomcat 配置成 Linux 服务
Linux install Tomcat
Configured Linux installation services tomcat6  阅读全文
posted @ 2010-10-27 19:08 Alex刺客 阅读(1716) | 评论 (0)编辑 收藏

     摘要: WebQQ 无法登录 没有登录按钮  阅读全文
posted @ 2010-10-17 22:23 Alex刺客 阅读(1742) | 评论 (3)编辑 收藏

     摘要: Linux 下安装 牛津高阶英语词典 第8版 英英 支持 英音 美音 真人发音  阅读全文
posted @ 2010-10-13 02:19 Alex刺客 阅读(5943) | 评论 (3)编辑 收藏

     摘要:   阅读全文
posted @ 2010-10-13 01:53 Alex刺客 阅读(3898) | 评论 (2)编辑 收藏

     摘要:   阅读全文
posted @ 2010-09-09 04:13 Alex刺客 阅读(415) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-09-04 09:28 Alex刺客 阅读(48170) | 评论 (6)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-29 23:17 Alex刺客 阅读(1919) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-29 22:38 Alex刺客 阅读(494) | 评论 (0)编辑 收藏


 1     <!-- Proxool 连接池配置 -->
 2     <bean id="datasource" class="org.logicalcobwebs.proxool.ProxoolDataSource">
 3         <property name="alias" value="pfms-proxool" />
 4         <property name="driverUrl" value="jdbc:mysql:///pfmsdb" />
 5         <property name="driver" value="com.mysql.jdbc.Driver" />
 6         <property name="user" value="root" />
 7         <property name="password" value="123456" />
 8         <property name="maximumConnectionCount" value="10" />
 9         <property name="houseKeepingTestSql" value="select CURRENT_DATE" />
10     </bean>

posted @ 2010-08-24 22:15 Alex刺客 阅读(720) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-24 22:11 Alex刺客 阅读(2787) | 评论 (1)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-23 04:53 Alex刺客 阅读(285) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-14 04:21 Alex刺客 阅读(3131) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-14 04:02 Alex刺客 阅读(5532) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-10 08:04 Alex刺客 阅读(307) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-10 07:55 Alex刺客 阅读(302) | 评论 (0)编辑 收藏

     摘要: 看来ExtJS 3 border 布局 又增加了新的属性
collapseMode: 'mini',
minSize: 80, //最小高/宽度
maxSize: 400, //最大高/宽度
看看这些属性带来了什么功能  阅读全文
posted @ 2010-08-03 09:08 Alex刺客 阅读(1521) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-03 07:28 Alex刺客 阅读(984) | 评论 (1)编辑 收藏

     摘要:   阅读全文
posted @ 2010-08-03 06:40 Alex刺客 阅读(384) | 评论 (0)编辑 收藏

     摘要:   阅读全文
posted @ 2010-07-30 09:07 Alex刺客 阅读(307) | 评论 (0)编辑 收藏

Tomcat服务器.在使用 Ajax get方法的时候中文参数提交到了服务器变成了乱码.
这是因为 Tomcat 默认的 URL 编码为 ISO-8859-1 导致的.以下有两种解决方案.

1.java转换编码方式
 1     /**
 2      * 转换字符串编码
 3      * @param str 要进行转换的字符串
 4      * @param oldCode 指定str的编码
 5      * @param newCode 目标字符串编码
 6      * @return 目标字符串
 7      * @throws UnsupportedEncodingException
 8      */
 9     public static String transcoding(String str,String oldCode, String newCode) throws UnsupportedEncodingException{
10         byte[] bytes = str.getBytes(oldCode);
11         String newStr = new String(bytes, newCode);
12         return newStr;
13     }

1 String name = request.getParameter("name");
2 String resultStr = transcoding(name, "ISO-8859-1""UTF-8");
3 System.out.println(resultStr);

2.指定Tomcat URL编码
1 <Connector port="80" protocol="HTTP/1.1" 
2                connectionTimeout="20000" 
3                redirectPort="8444"
4                URIEncoding="UTF-8"/>
在配置http端口的地址添上URIEncoding="UTF-8".

这样就可这直接获取 URL 的属性
1 String name = request.getParameter("name");
2System.out.println(name);

posted @ 2010-07-14 23:33 Alex刺客 阅读(290) | 评论 (0)编辑 收藏

     摘要: 刚刚看了一下struts2/docs/json-plugin.html文档,正好前几天研究一下jQuery的API今天就试着练练jQuery做个 Study_Notes.IDE: eclipse-jee-galileo-SR2-linux-gtk例子完整的源代码,日志最下面有下载.1.注解方式Code highlighting produced by Actipro CodeHighlighter...  阅读全文
posted @ 2010-07-13 10:32 Alex刺客 阅读(5224) | 评论 (2)编辑 收藏

     摘要:   阅读全文
posted @ 2010-07-02 23:10 Alex刺客 阅读(421) | 评论 (0)编辑 收藏

     摘要: 省市县三级连动SQL语句  阅读全文
posted @ 2010-07-02 09:50 Alex刺客 阅读(1991) | 评论 (0)编辑 收藏

     摘要: 前言:
一.fedora 下载地址 跟 oracle database 11gr2
二.查看自己机子的信息
三.安装oracle database11gr2依赖包
四.配置系统文件
五.安装Oracle Database 11GR2
六. 成功安装完成后再接着配置。
问题1 解决方案
问题2 : 重启系统后oracle服务不会自动启动  阅读全文
posted @ 2010-06-22 22:29 Alex刺客 阅读(7365) | 评论 (3)编辑 收藏

1.首先找到my.cnf(MySQL配置文件)
     一般情况下在/etc/my.cnf 或者/etc/mysql/my.cnf 这个路径.如果你都找不到请用 "find /etc -name my.cnf" 命令搜索.

用vim打开 更改相应的属性值

 1 [mysqld]
 2 
 3 # MySQL 字符集
 4 default-character-set=utf8
 5 
 6 # MySQL 连接字符集
 7 init_connect='SET NAMES utf8'
 8 
 9 # 默认使用innoDB引擎
10 default-storage-engine=INNODB
11 
12 # 指定Mysql不区分大小写表名
13 lower_case_table_names=1
14 
15 [client]
16 
17 # 客户端字符集
18 default-character-set=utf8
19 


参考MySQL5.1官方中文手册
http://dev.mysql.com/doc/refman/5.1/zh/index.html

posted @ 2010-06-21 23:54 Alex刺客 阅读(466) | 评论 (0)编辑 收藏

     摘要: /**
* Project Name : Oracle_Database_11g_Study_Notes
* File Name : 2.User_Management.sql
* Author : Alex刺客
* Date : June 21,2010
*/  阅读全文
posted @ 2010-06-21 04:10 Alex刺客 阅读(507) | 评论 (0)编辑 收藏

     摘要: /**
* Project Name : Oracle_Database_11g_Study_Notes
* File Name : 1.Start_Login.sql
* Author : Alex刺客
* Date : June 21,2010
*/  阅读全文
posted @ 2010-06-21 04:03 Alex刺客 阅读(540) | 评论 (0)编辑 收藏

初次安装Oracle11G时EM服务已经启动但是关机后(或者IP时间过期后)EM无法启动

1.在系统环境变量设置ORACLE_SID = oracle (数据库sid),

2.在DOS中执行“emca -config dbcontrol db -repos recreate”命令重建EM.

3.如果还是无法解决请禁止网卡后再试(如果这种方案通过以后在启动EM时先禁止网卡)。

提示:
如果你的IP总是在更换比如在公司回来又在家(EM肯定在一个地方无法启动),
如查你的IP是DCHP非静态IP。

以上情况最好在安装前Oracle把网卡禁止掉,再安装Oracle,安装完成后再开启网卡。以后在启动EM时先禁止网卡启动EM后。再开启网卡。(我只有这个办法不知道哪位还有更好的方法)


安装好Oracle后 在Windwos服务当中把Oracle相关的3个设置成手动启动,这样加快计算机启动时的速度,要用Oracle的时候,再去XP的服务当中开启Oracle 的服务。

EM启动停止命令

emctl start dbconsole
emctl stop dbconsole
posted @ 2010-06-16 08:13 Alex刺客 阅读(875) | 评论 (0)编辑 收藏

     摘要: 1.确定oracle Listener 监听服务已经启动。
2.如果你的oracle数据库不是安装在本机那么请把oracle所在主机防火墙给关掉(哪怕你的防火墙开放1521端口,因为当有一个连接请求 1521端口时oracle会随机分配另一个端口给它.这是个人见解!望高手指点)
3.确定你连接的IP地址正确。

如果以上问题你都核实过那么请继续往下看。  阅读全文
posted @ 2010-06-16 07:53 Alex刺客 阅读(56193) | 评论 (4)编辑 收藏

     摘要: MyEclipse 8.5.0
MyEclipse Blue 8.5.0
MyEclipse for Spring 8.5.0
Windows 32、linux-gtk-x86、linux-gtk-x86_64、macosx
官方下载地址!  阅读全文
posted @ 2010-05-14 19:15 Alex刺客 阅读(116318) | 评论 (36)编辑 收藏

     摘要: 123.456 转 IEEE754 单精度浮点数二进制为:
符号位 阶码 尾数
0 10000101 11101101110100101111000

说明:
符号位
因为此数为正数所以为0。
阶码
IEEE 754 标准 把小数点移至最高有效位后,即指数为 6 ,再加上 指数偏移量 127 (等于 133) 那么阶码(移码)的二进制为 10000101 。
尾数
单精度浮点数只保留23位尾数即多余的尾数去掉,即原码 11101101110100101111000  阅读全文
posted @ 2010-04-18 08:04 Alex刺客 阅读(3690) | 评论 (0)编辑 收藏

     摘要: 原码

数值 X 的原码记为 [X]原,如果机器字长为 n (即采用 n 个二进制位表示数据),则最高位是符号位,0 表示正号,1 表示负号,基余的 n~1 位表示数值的绝对值。数值零的原码表示有两种形式:[+0]原=00000000,[-0]原=10000000。

例:
[+4]原 = 00000100
[-4]原 = 10000100
[+127]原 = 01111111
[-127]原 = 11111111   阅读全文
posted @ 2010-04-15 07:36 Alex刺客 阅读(731) | 评论 (0)编辑 收藏

     摘要: 如果只用 r 个基本符号表示数值,则称其为 r 进制。 r 称为该数制的基数。
比如:在二进制计数制中,r = 2 ,基本符号为 0 和 1 。二进制数中的一个 0 或 1 称为 1 位(bit)。

二进制转十进制
将二进制数的每一位数乘以它的权,然后相加,即可求得对应的十进制数值。

例: 1010110.011
= 1*2^6 + 0*2^5 + 1*2^4 + 0*2^3 + 1*2^2 + 1*2^1 + 0*2^0 + 0*2^-1 + 1*2^-2 + 1*2^-3
= 64 + 16 + 4 + 2 + 0.25 + 0.125
86.375  阅读全文
posted @ 2010-04-14 06:36 Alex刺客 阅读(851) | 评论 (0)编辑 收藏

     摘要:
解决方法:xulrunner 软件中有一个libxul.so
在自己的系统中找到一个xulrunner所在的路径
比如我的/usr/lib/xulrunner-1.9.1/.
用文本编辑器打开spket目录下的spket.ini在最后增加以下内容:
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-1.9.1/  阅读全文
posted @ 2010-03-18 00:32 Alex刺客 阅读(327) | 评论 (0)编辑 收藏

     摘要: 1.检查系统是否有open-jdk

[root@localhost Alex] rpm -qa | grep java
tzdata-java-2010c-1.fc12.noarch
java_cup-0.11a-1.fc12.noarch
java-1.5.0-gcj-1.5.0.0-29.fc12.i686
java-1.6.0-openjdk-1.6.0.0-33.b16.fc12.i686
java-1.6.0-openjdk-plugin-1.6.0.0-33.b16.fc12.i686  阅读全文
posted @ 2010-03-18 00:19 Alex刺客 阅读(2281) | 评论 (0)编辑 收藏

1.安装smplayer

[root@localhost Alex]# yum install smplayer

2. 去http://www.mplayerhq.hu/MPlayer/releases/codecs/下载解码器

all-20100303.tar.bz2
windows-all-20071007.zip

3.解压解码器

[root@localhost 下载]# tar jxvf all-20100303.tar.bz2
[root@localhost 下载]# unzip windows-all-20071007.zip

[root@localhost 下载]# mkdir /usr/lib/codecs/
[root@localhost 下载]# mkdir /usr/lib/win32/

[root@localhost 下载]# mv all-20100303/* /usr/lib/codecs/
[root@localhost 下载]# mv windows-all-20071007/* /usr/lib/win32/


4.解决Smplayer没有画面
启动Smplayer -> 选项 -> 首选项 -> 常规 -> 视频 -> 输出设备 (更改为:gl2)


posted @ 2010-03-18 00:18 Alex刺客 阅读(536) | 评论 (0)编辑 收藏

1.安装ATI HD 3200 3D驱动
[root@localhost /]# yum install mesa-dri-drivers-experimental

2.重启计算机
[root@localhost /]# reboot

3.检查是否安装了渲染引擎
[root@localhost /]# glxinfo | grep direct
direct rendering: Yes

4.安装compiz-fusion
[root@localhost /]# yum install ccsm emerald-themes compizconfig-backend-gconf fusion-icon-gtk emerald compiz-fusion compiz-fusion-gnome libcompizconfig compiz-gnome compiz-bcop compiz compizconfig-python compiz-fusion-extras compiz-fusion-extras-gnome

5.安装cairo-dock工具栏
[root@localhost /]# yum install cairo-dock cairo-dock-devel cairo-dock-plug-ins cairo-dock-plug-ins-webkit cairo-dock-plug-ins-xfce





posted @ 2010-03-18 00:15 Alex刺客 阅读(356) | 评论 (0)编辑 收藏

方法:
1. 用VIM编辑/usr/bin/qq 启动器

[root@localhost bin]# vim /usr/bin/qq

2. 在cd前面增加 export GDK_NATIVE_WINDOWS=true 这行代码

#!/bin/sh
export GDK_NATIVE_WINDOWS=true
cd /usr/share/tencent/qq/
./qq

3. 保存退出完成
posted @ 2010-03-18 00:14 Alex刺客 阅读(372) | 评论 (0)编辑 收藏

1.安装主菜单编辑器
yun install alacarte

2.显示菜单跟按钮图标
gconftool-2 --type boolean --set /desktop/gnome/interface/buttons_have_icons true
gconftool-2 --type boolean --set /desktop/gnome/interface/menus_have_icons true

3.安装RAR压缩工具
yum install unrar

4.安装p7zip(7z压缩)
yum install p7zip
yum install p7zip-plugins

6.安装CHM阅读器
yum install gnochm

7.安装Adobe flash 插件
yum install flash-plugin

8.安装腾讯QQ
yum --nogpgcheck localinstall linuxqq-v1.0.2-beta1.i386.rpm

9.安装AdobeReader阅读器
yum install AdobeReader_enu
posted @ 2010-03-18 00:13 Alex刺客 阅读(397) | 评论 (0)编辑 收藏

fedora12 少数文档已经出来中文,可以支官方下载资料
http://docs.fedoraproject.org/

注意以下命令全部都是在Root用户下执行,请你使用su命令切换至root用户.
[alex@localhost ~]$ su

1.安装第三方软件包仓库
[root@localhost alex]# rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

2.安装自己挑选快速源镜像
[root@localhost alex]# yum install yum-fastestmirror

3.安装ibus五笔输入法
[root@localhost alex]# yum install ibus-table ibus-table-wubi

4.安装Adobe软件包仓库
[root@localhost alex]# rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

5.安装yum多线程下载工具Axel

[root@localhost ~]# yum install axel

配置 axelget yum 插件
[root@localhost ~]# svn co http://cnfreesoft.googlecode.com/svn/trunk/axelget/ ~/axelget
A    /root/axelget/axelget.py
A    /root/axelget/axelget.conf
取出版本 622。
[root@localhost ~]# cd /etc/yum/pluginconf.d/
[root@localhost pluginconf.d]# ln -s ~/axelget/axelget.conf
[root@localhost pluginconf.d]# cd /usr/lib/yum-plugins/
[root@localhost yum-plugins]# ln -s ~/axelget/axelget.py

6.修改源配置文件

修改/etc/yum.repos.d/*.repo文件,此步主要是为了获取较快的站点,如果你不修改,你的/var/cache/yum下每个文件夹的 mirrorlist.txt中就会有大量的的日本,台湾的服务器站点,这些站点速度非常慢
       修改方法:
[root@localhost /]# gedit /etc/yum.repos.d/*.repo
       在每个文件的mirrorlist那行(一般是第5行,每个文件里有3处地方)的最后面加上“&country=us”.即选择美国的服务器,因为美国的服务器最多,同时速度基本上是最快的(其他自己增加源的不须要更改。

7.更新系统包包
[root@localhost alex]# yum -y update
posted @ 2010-03-18 00:12 Alex刺客 阅读(723) | 评论 (0)编辑 收藏