Firefox wide space problem

software, ubuntu No Comments »

今天Ubuntu下更新完firefox3.0.10之后,发现firefox变成这样了

中间空格变成了两个汉字宽度。
郁闷,一开始怀疑扩展问题,全干掉之后,问题依然,刪除~/.mozilla目录,重装问题依旧。
郁闷了,网上找了下出现这种问题的人不少,但是都没有解决方法。

最后,从IRC中找到了答案。
原来很简单,只要卸载掉pango-graphite问题就解决了
sudo aptitude remove pango-graphite

一切正常

  • Share/Bookmark

maven use jboss-maven-plugin

development, java No Comments »

在maven中如何使用Jboss,在网上找了下,一般都是使用cargo-maven2-plugin这个插件来操作的,但是maven中明明提供了jboss-maven-plugin为啥不能用呢?历经千辛万苦终于找到了使用方法

1,配置pom.xml文件,增加

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jboss-maven-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<jbossHome>/opt/jboss-4.2.2.GA</jbossHome><!-- jboss 安装目录 -->
<port>8080</port> <!-- jboss使用端口 -->
</configuration>
</plugin>

Read the rest of this entry »

  • Share/Bookmark

Ubuntu Soft

ubuntu No Comments »

自己常用的ubuntu软件及安装,高手大虾可以直接无视。

注意: 下面提供下载的所有软件都是Ubuntu 8.10 i386 x86环境下的,如果系统或者硬件环境不同,请到Google上去找或者下面这个地方下载

http://www.getdeb.net/

安装说明:

使用源安装,直接使用命令

sudo apt-get install xxx或者 sudo aptitude install xxx

deb文件使用命令

sudo dpkg -i xxx 或者 sudo gdebi xxx

因为这是个初级教程,没有需要自己编译的软件,这里顺便说下编译吧,通常是使用以下命令

./configure(这里可能要接一些参数,参数一般在目录下的README里有详细说明)

make

sudo make install

当然中间可能出现缺少编译环境的情况,从源里或者网上把缺少的编译环境装上就可以了

Read the rest of this entry »

  • Share/Bookmark

20090413 desktop show

theme No Comments »

最近XP出问题,安装了Ubuntu。留图,风格somatic使用了AWN

前段时间通过Google Friend Connect申请,前两天就顺便加到Blog上了,欢迎大家试用

  • Share/Bookmark

TaskSpeed

javascript 2 Comments »

Dojo出的用于测试纯DOM操作和几个流行JS包操作DOM的速度,只是很奇怪为啥没有Ext

This is not SlickSpeed, though uses the same framework.
Tests are run against a local copy of this document. They add, remove, append, connect and otherwise mangle the DOM as defined by the sample-tests.js file.

下面是我本机测的结果(Inetl T2080*2+DDR2 800 2.5G+Ubuntu 8.10+Firefox3.0.8),点击进入 Report能看到所有参加测试并提交后的平均结果。

Links: TaskSpeed Report

  • Share/Bookmark

Callbacks vs Events

javascript No Comments »

这是个比较有意思的对比
首先作者使用了基于Events的DOMContentLoaded来执行两个单独的初始化工作

document.addEventListener("DOMContentLoaded", function() {
  console.log("Init: 1");
  DOES_NOT_EXIST++; // this will throw an error
}, false);

document.addEventListener("DOMContentLoaded", function() {
  console.log("Init: 2");
}, false);

得到结果

Init: 1
Error: DOES_NOT_EXIST is not defined
Init: 2

虽然产生了错误,但是两个初始化都是有执行的。
Read the rest of this entry »

  • Share/Bookmark

Prototype 1.6.1 RC2

ajax, javascript No Comments »

第一个接触的JS lib,现在转向jQuery,用得比较少了。这个版本主要是对 Internet Explorer 8 进行了一些兼容方面的优化。

更新如下:

  • Full compatibility with Internet Explorer 8. Juriy has spearheaded the effort to replace most of our IE “sniffs” into outright capability checks — making it far easier to support IE8 in both “super-standards” mode and compatibility mode.
  • Element storage, a feature announced previously. Safely associate complex metadata with individual elements.
  • mouseenter and mouseleave events — simulating the IE-proprietary events that tend to be far more useful than mouseover and mouseout.
  • An Element#clone method for cloning DOM nodes in a way that lets you perform “cleanup” on the new copies.

一些改进:

  • Better housekeeping on event handlers in order to prevent memory leaks.
  • Better performance in Function#bind, Element#down, and a number of other often-used methods.
  • A number of bug fixes.

Links: prototype Download: prototype 1.6.1 RC2 API: api doc

  • Share/Bookmark
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in