Hello Linux! RadControls for Silverlight Support the Preview of Moonlight 4.

18 Feb

The preview of Moonlight 4, an open source Linux implementation of Microsoft Silverlight by Novell is already a fact. And so is Telerik RadControls for Silverlight support for it. Now Linux users gain access to the latest Silverlight content and also to the advantages of the latest features of Silverlight on all platforms.

Telerik and Moonlight is a powerful development combination. The preview of Moonlight 4 and RadControls for Silverlight support for it, now gives developers the flexibility they need to extend rich media application development to Linux. And this is not the first time we cooperate with Novell. Back in 2009, RadControls for ASP.NET AJAX was the first commercial UI suite to support Mono and now we very excited about Moonlight as well.

If you are considering cross-platform development and are new to RadControls for Silverlight learn more about the suite and download a free trial here. Or try the free Telerik Silverlight components here.

actionscript3 hash class

17 Feb

这是一个存储数据的集合示例,这是我常用的一种存储数据类,能够方便的通过id来获取它,当然,还可以扩展出更多的功能。

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package com.data
{
import com.global.CmkGC;
 
public class AIHash
{
/**
 * 存储数组,用来存储的多维数组 
 */
private var _group:Array = new Array();
 
public function AIHash()
{
}
 
/**
 * 存储器长度
 * @return 存储器长度
 * 
 */		
public function get count():int
{
	var i:int = 0;
	for(var long:String in this._group)
	{
		i++;
	}
	return i;
}
/**
 * 通过ID获取
 * @param id
 * @return 
 * 
 */
public function getElementById(id:String):Object
{
	var value:Object = null;
	if(this._group[id]!=null)
	{
		value = this._group[id];
	}
	return value;
}
/**
 * 添加一个到存储器。 
 * @param id ID
 * @param obj 要存储的对象
 * @return 存储器长度
 * 
 */
public function addElement(id:String,obj:Object):int
{
	this._group[id] = obj;
	return this._group.length;
}
/**
 * 移除一个数据
 * @param info id
 * @return 存储器长度
 * 
 */
public function removeElement(name:String):int
{
	var tempArray:Array = new Array();
	if(this._group[name]!=null)
	{
		delete this._group[name];
	}
	return  this._group.length;
}
/**
 * 移除所有
 * 
 */
public function clear():void
{
	this._group = null; //没什么用。
	this._group = new Array();
	CmkGC.gc(); //强制垃圾回收
}
}
}

美女时钟-windows7小工具

30 Jan

桌面的装扮除了图标和壁纸,当然也离不开小工具。诸如招财猫、农历、天气,最值得放置的当然是美女桌面时钟!

这是来自日本的tokei美人计时。

http://www.bijint.com/jp/

tokei

tokei

jQuery tabs

21 Jan

这个jquery tabs提供两个方法,分别可以根据json创造tabs和根据html改造tabs。

.addTabHtm(index)

将一个符合标准的html容器改造成一个tabs控件。

index: Number | 默认值:0 | 作用是设定初始化后tabs所选中第几个tab

使用方法:

首先应该建立如下HTML:

<div id="tabsA">
	<ul class="tabes_Head">
		<li><a href="#tab1">blog</a></li>
		<li><a href="#tab2">tag</a></li>
		<li><a href="#tab3">hot</a></li>
	</ul>
	<div class="tab_container">
		<div id="tab1" class="tab_content">
		   Tab 1 content
		</div>
		<div id="tab2" class="tab_content">
			Tab 2 content
		</div>
		<div id="tab3" class="tab_content">
			Tab 3 content
		</div>
	</div>
</div>

再通过javascript改造它:

1
2
3
$(document).ready(function() {
	$(".tabsB").addTabHtm();
});

如果我们希望选中”tag”,则输入1(排序从0开始计算,”blog”即为第0个):

1
2
3
$(document).ready(function() {
	$("#tabsA").addTabHtm(1);	//首次开启选中第二个tab
});

.addTabHtm(json)

根据一个json数组创造一个tabs控件。

json: object | 作用是设定每个tab的内容。

使用方法:

你应该先构建一个json对象如下面一样:(仔细对比demo中的内容,我就不一一说明它们了)

1
2
3
4
var testjson = {
			"testCreateTab1":{id:"tab3",tdata:"test"},
			"testCreateTab2":{id:"tab4",tdata:"test3"}
		};

再建立如下HTML:

<div id="createTabA"></div>

最后在javascript中创造:

1
2
3
$(document).ready(function() {
	$("#createTabA").addTabDom(testjson);
});

下载压缩包

三里屯苹果零售店遭攻击?

6 May

有个机器人乞丐(大家应该会认出来是终结者)在三里屯门口要钱,结果也不知道是怎么回事,它掏出了枪,最后打出了WIN7的牌子,这个是国内laxina的CG高手做的效果。[from cn.engadget.com]

My Google Chrome Theme : Comoloka v1.3

2 May

Updated: Saturday, January 29, 2011 Version: 1.3
更新于:2011年1月29日星期六 版本:1.3

中文请见下面。

Besides working requirement, chrome is my frist choice of webbrowser, and I’m using it whenever I can. I’m a person who longs for the beauty of  visual effections, thus I’m working to make my chrome even more beautiful, not only in the sense of prettier, but also to bring better visual experiences. My opinion is that users should be able to do long-lasting work in this beautiful broswer inviroment, without feeling uncomfortable in the eye. In order to realize this, on the backgrounds, I have soften the buttons, lines and such details, and I hope these changes will present more natureness to the user, so that they could feel they are as whole as the browser inviroment.

Download url: google chrome extension gallery

comoloka theme

Comoloka是我这么多年来第一次制作的属于自己的公开作品,虽然它只是一个浏览器的皮肤,但我希望以此为起点,在未来制作更多开源项目的作品。

另外,制作它的原因是目前除了工作之外,使用最多的浏览器就是chrome,我是个追求唯美的人,所以想让我的chrome看上去更漂亮,同是也能耐看,我不希望我或者大家在使用它后觉得视觉上太过刺激而造成疲劳,于是在漂亮的窗体背景上,对按钮,块及边框等细节的色温,质感做了柔和的处理。

1.1版更新了:

  1. 优化chrome的背景图。

1.2版更新了:

  1. 精简了代码,但无损压缩了图片,使其质量提高。

1.3版更新了:

  1. “bg.PNG”错误修复。主题在GoogleOS及其他一些系统上不会忽略这个大小写错误,我非常抱歉。至此,Comoloka已经相当完善,在无chrome重大更新前,我将不再更新它。

已知BUG:在隐身模式下tab背景不正常。

下载地址:谷歌浏览器扩展库

Hello world!

2 May

第一篇文章献给我热爱的互联网事业,这就如同基督教每餐前的祷告,是真诚的。