2008年12月6日星期六
电话聊天短信社交网络all in one,2小时国际 长途电话免费打
电话聊天短信社交网络all in one,2小时国际
长途电话免费打[Voxox]
今天早上在 google reader上订阅的趣站酷软, 上边介绍的电话聊天社交网络为一体的客户端软件VoxOx,新用户赠送2小时免费国际长途,能同时登陆msn,Gtalk,Yahoo!等IM,更多功能就赶快去体验吧。
需要邀请码的可以留下邮箱,邀请后,就可以和我直接成为好友,同时还可以给增加点积分。
下边放两张我的截图

Google Talk Gadget
为自己的博客添加了Google Talk Gadget
早上起来在Google Reader里看到了关于给网站添加Google Talk Gadget的文章 ,于是迫不及待的在自己的blogger中尝试添加,点击这里 就可创造自己的Google Talk Gadget,里边分了好几种情况。
由于开始打算是将代码放在blogger的html里边,所以定义的时候只能选择no frame,感觉不好看。于是就先添加了一个html/javascript Gadget,然后选择了具有边框效果的Google Talk Gadget生成代码,显示效果如下,比较满意。 并且该使用Google Talk Gadget与你聊天的用户并不一定需要google帐号,这点都是很方便。不过还有一点就是,当有人跟你发信息的时候,如果你开的是Gtalk客户端,那么你会受到一个链接,需要点那个链接跳转到网页上,才能继续聊天,而并不能直接在客户端进行。当然如果你登录Gmail的话,就可以直接在Gmail 里使用web页面进行聊天。
从这个也看一看出Google的去客户端化,将一切都般上网络,就说Gtalk前一段时间出的视频功能,也是只有web端才由,客户端好像已经死了。
从这个也看一看出Google的去客户端化,将一切都般上网络,就说Gtalk前一段时间出的视频功能,也是只有web端才由,客户端好像已经死了。
java 中函数参数个数未知的两种实现形式
java 中函数参数个数未知的两种实现形式
//:initialization/VarArgs.java
class A {}
public class VarArgs
{
static void printArray(Object[] args) {
for (Object obj : args)
System.out.print(obj +" ");
System.out.println();
}
public static void main(String[] args) {
printArray(new Object[] {
new Integer(47),
new Float(3.14),
new Double(11.11)
});
printArray(new Object[] {"one","two","three"});
printArray(new Object[] {new A(),new A(),new A()});
}
}
/*output:
47 3.14 11.11
one two three
A@1a46e30 A@3e25a5 A@19821f
*/
以上是JavaSE5以前的做法,下边的是JavaSE5中新增的特性,更加方便使用
//:initialization/NewVarArgs.java
public class NewVarArgs {
static void printArray(Object... args) {
for(Object obj : args)
System.out.print(obj + " ");
System.out.println();
}
public static void main(String[] args) {
printArray(new Integer(47),
new Float(3.14),
new Double(11.11));
printArray(47,3.14F,11,11);
printArray("one","two","three");
printArray(new A(),new A(),new A());
//or an array
printArray((Object[])new Integer[] {1,2,3,4});
printArray();//Empty list is OK
}
}
/*output
47 3.14 11.11
47 3.14 11 11
one two three
A@1a46e30 A@3e25a5 A@19821f
1 2 3 4
*/
此篇文章为阅读Thinking in Java摘抄
//:initialization/VarArgs.java
class A {}
public class VarArgs
{
static void printArray(Object[] args) {
for (Object obj : args)
System.out.print(obj +" ");
System.out.println();
}
public static void main(String[] args) {
printArray(new Object[] {
new Integer(47),
new Float(3.14),
new Double(11.11)
});
printArray(new Object[] {"one","two","three"});
printArray(new Object[] {new A(),new A(),new A()});
}
}
/*output:
47 3.14 11.11
one two three
A@1a46e30 A@3e25a5 A@19821f
*/
以上是JavaSE5以前的做法,下边的是JavaSE5中新增的特性,更加方便使用
//:initialization/NewVarArgs.java
public class NewVarArgs {
static void printArray(Object... args) {
for(Object obj : args)
System.out.print(obj + " ");
System.out.println();
}
public static void main(String[] args) {
printArray(new Integer(47),
new Float(3.14),
new Double(11.11));
printArray(47,3.14F,11,11);
printArray("one","two","three");
printArray(new A(),new A(),new A());
//or an array
printArray((Object[])new Integer[] {1,2,3,4});
printArray();//Empty list is OK
}
}
/*output
47 3.14 11.11
47 3.14 11 11
one two three
A@1a46e30 A@3e25a5 A@19821f
1 2 3 4
*/
此篇文章为阅读Thinking in Java摘抄
2008年12月5日星期五
在 Ubuntu8.10 上安装 ubuntu-system-panel (USP)
ubuntu-system-panel 是一GNOME下的一个简单的菜单,提供了方便的访问电脑上的位置、应用程序和配置选项的方法。这篇文章引导大家如何在 Ubuntu8.10 上安装和配置UPS。
最先发布于ownlinux
ubuntu-system-panel(USP) 安装后的界面:
1 安装 ubuntu-system-panel
- 打开一个终端
- 安装Subversion:
sudo apt-get install subversion - 下载ubuntu-system-panel源码:
mkdir -p ~/Downloads/SVN
cd ~/Downloads/SVN
svn checkout http://ubuntu-system-panel.googlecode.com/svn/trunk/ ubuntu-system-panel - 安装ubuntu-system-panel:
cd ubuntu-system-panel
./usp_update install fresh
- 如果你是X86_64系统的话,在这之后,你还需要运行下面的命令:
sudo cp /usr/lib/python2.4/site-packages/usp/plugins/_keybind64.so _keybinder.so - 最后运行 :
killall gnome-panel这将使你的panel消失一回,不过不用担心,你已经安装好ubuntu-system-panel了,并且可以使用了 - 剩下这些是你可能会用到的命令
- 升级:
cd ~/Downloads/SVN/ubuntu-system-panel
./usp_update update - 卸载:
cd ~/Downloads/SVN/ubuntu-system-panel
./usp_update uninstall - 完全卸载:
cd ~/Downloads/SVN/ubuntu-system-panel
./usp_update uninstall complete
2 使用 ubuntu-system-panel
- 升级:
只需在panel上右击,选“添加到面板”,然后找到ubuntu-system-panel添加上去就OK拉!
来一张我的截图
翻译者:张升起(risent)
英文原文: http://howtoforge.com/installing-ubuntu-system-panel-on-ubuntu-8.10最先发布于ownlinux
2008年12月1日星期一
订阅:
博文 (Atom)


