Upcoming Posts

  • There is no upcoming posts now!

HTML5 The Terminater Of Flash? No,no~
以下内容来自RIA周刊第十五期[2009-6-22]的《为什么说HTML5不是Flash的终结者》
这里有个原文链接:http://www.jadbox.com/2009/06/why-html-5-is-not-a-flash-killer/
RIA周刊的翻译内容:

在作者看来,HTML5定义的新特性,需要很长的时间来实施。画布绘图和视频播放的功能,应该在10年前就已经开始实施了,如果W3C动作再快一点,我们现在可能已经在使用HTML9了。值得注意的一点是,Flash或任何其它的富媒体插件都不会受到HTML5的威胁,视频播放和简单的画布支持只是Flash开发中的很小一部分。

人们有一个很大的误解,就是认为之所以在网页上使用Flash技术很大一部分原因是为了播放视频。甚至认为正是由于视频播放技术才使Flash生存至今(包括数字加密,动态缓冲,视频控制),并与其它技术相区别。现在看起来好像宣传HTML5的大都是HTML开发人员,似乎他们不喜欢Flash,当然作者本人没有指责任何人的意思,只是“HTML5将干掉 Flash,Silverlight,Unity3D,O3D,或者任何其它的富媒体插件”这个说法,很明显忽略了一个事实,即:这些工具实际上已经创建了很多大型的应用,游戏,3D多媒体开发。或许你会说有人会基于Canvas写一个3D引擎,但是它的速度将难以抗衡浏览器插件,而且难以使用硬件加速。

作者想说的是,应该使用正确的工具做正确的事情。Silverlight是一个多媒体工具,用于和.NET协作开发;Flash是一个多媒体工具,适用于非编程人员和Java类别的开发人员。HTML是一个伟大的网页标记语言,适合介绍内容。使用不合适的工具达到目的是滥用平台。挑选最合适的工具才是对项目最重要的。

原来大家一直觉得HTML5将是Flash,SL的终结者,主要原因是HTML5内置了Canvas和视频播放器标签。而文中主要是以这2点出发,分析Flash并不仅仅是因为视频播放技术才得以生存至今(比如有AIR~)。
的确,Flash目前的使用领域已经非常之大,并且呢,使用HTML5内置的Canvas开发应该需要复杂的JS支持。
看目前的样子,应该是HTML5,Flash,SL,etc共存的局面。
PS:话说W3C的东西也太慢了吧,搞了那么多年了都?

09/07/2 20:13AFK Some Days–

iphoneappicon
Beacuse those days,my work was changed to Objective-C,I has to spend more time to study,,sooooo….
AFK for some days,I will come back when it’s not so busy yet.
:wuwu

全函数列表请参见这里:《WordPress模板标签Template_Tags》
这里只列出最常用的几个。先是重要的bloginfo(),不直接echo数值的函数为get_bloginfo();恩,不少函数都是按照这个规则写的,PS:并不是全部!echo出函数值的函数为xxx()的话,那么不echo出结果值的的函数为get_xxx()。
该函数范围的是WordPress的配置参数,主要参数和值举例如下,常用的黑体标出:

admin_email = admin@example
atom_url = http://example/home/feed/atom
charset = UTF-8
comments_atom_url = http://example/home/comments/feed/atom
comments_rss2_url = http://example/home/comments/feed
description = Just another WordPress blog
home = http://example/home这个是网站首页地址
html_type = text/html
language = en-US
name = Testpilot网站名称
pingback_url = http://example/home/wp/xmlrpc.php
rdf_url = http://example/home/feed/rdf
rss2_url = http://example/home/feed
rss_url = http://example/home/feed/rss
siteurl = http://example/home也是网站地址
stylesheet_directory = http://example/home/wp/wp-content/themes/largo
stylesheet_url = http://example/home/wp/wp-content/themes/largo/style.css主题文件夹下的style.css地址
template_directory = http://example/home/wp/wp-content/themes/largo主题包地址
template_url = http://example/home/wp/wp-content/themes/largo
text_direction = ltr
url = http://example/home
version = 2.7
wpurl = http://example/home/wp
举例,bloginfo(”wpurl “)会输出“http://example/home/wp”。

Read the rest of this entry »

09/06/29 09:30WordPress-Theme的制作

以下内容建立在有部分HTML基础下,如果有疑问可以Twitter我,EMAIL我,MSN我,留言我,电话我,etc,但是不要QQ我~
WP的主题所在文件夹为XXX\wp-content\themes\,里边每个包都是目录(如果正常的话)。
先来讲下主题的组成,可以先参考这个文章《WordPress -Template System模板系统》
从该文章中我们可以发现,最最最简单的WP皮肤只需要一个文件,index.php,出于维护和多方合作开发以及修改的简便性来说,个人觉得一个主题至少应该分成以下几个部分:
header.php,里边放HTML的头部,一般是包含文档声明到body开始处,有时候也会包含菜单部分。

< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>< ?php bloginfo('name'); ?> < ?php if ( is_single() ) { ?> Blog Archive < ?php } ?> < ?php wp_title(); ?></title>
..................
<body>

Read the rest of this entry »

adobechinadeveloper
http://www.adobechinadeveloper.com/developerday/Shanghai

尊敬的开发伙伴:
我们诚挚地邀请您参加将于2009年7月16日在上海举行的 奥多比开发者技术日 !
奥多比开发者技术日 是由奥多比公司举办的面向 Flash 平台应用及Web应用开发者的技术研讨培训活动。旨在为开发者介绍和讲解有关 Adobe Flash 平台技术及其应用开发的相关知识和开发技巧,以及 Adobe Flash 平台技术的发展趋势等。同时也为开发者搭建一个互相学习和交流的平台,在此与奥多比公司的技术专家和资深的开发者们分享各自的开发经验和创新设计理念,共同推动 RIA 技术的发展。
光临此次开发者技术日,您将在第一时间聆听最新发布的 Adobe Flash Builder 4 和 Adobe Flash Catalyst 的新功能和新特性,欣赏炫酷的应用演示,还有机会获得Adobe Flash平台应用开发工具光盘和热销的中文版开发工具书。还等什么?赶快注册吧!* 座位有限,先来先得!
Read the rest of this entry »

Learned from http://megazine.mightypirates.de/?c=home&l=en.

What is this?
MegaZine 3 is a pageflip engine. There are many like it, but this one is… free. And open source, too. This means two things, basically: you don’t have to pay for it, and you can even modify it in any way you see fit.
That said, if you wish to use it commercially, an LGPL licensed version is available for purchase, too.

MegaZine 3是个啥呢?MegaZine 3是一个基于LGPL协议的开源的Pageflip制作引擎,话说这个Pageflip真不知道该翻译成什么,直观的说,成品就是一个课本样的Flash,不知道这样翻译合适不……
先来个Live Demo地址:http://megazine.mightypirates.de/demo/index.html
Read the rest of this entry »

The HTC Hero phone will have Flash support built in.(Credit: HTC)

Learned from http://news.cnet.com/8301-1035_3-10272261-94.html?part=rss&subj=news&tag=2547-1_3-0-20.

Marking a departure from the world of iPhone, HTC’s new Android-based Hero phone will also come with the ability to handle Flash elements that adorn many Web sites and power YouTube video.

HTC新款Android系统手机Hero将内建Adobe Flash播放器。

Adobe Systems announced on Wednesday that its Flash Player will be built into the HTC phone, an important step in the company’s efforts to spread Flash to mobile phones. The phone, one of several from HTC to use Google’s open-source operating system, is scheduled to ship in Europe starting in July and in Asia and North America later in the year.

Adobe在周三发布了一个公告称Flash Player将内建在HTC手机中,这是Flash迈向手机平台关键性的一步。Hero是HTC使用Google的开源操作系统的其中一款手机,将在7月登录欧洲,并在晚些时候登录亚洲和北美。
Read the rest of this entry »

09/06/23 15:04jQuery-Slider Plugins

来自http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider
Learned from http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider
本地Demo地址:http://nwhy.org/nwhy/jsdemo/slider.html
使用很简单,HTML部分代码如下:

<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/easySlider.js"></script>
$(document).ready(function(){
	$("#slider").easySlider();
});
<div id="slider">
	<ul>

	<li>content here...</li>
	<li>content here...</li>
	<li>content here...</li>
	...
	</ul>
</div>

Read the rest of this entry »

BranfordMagazine
这是一款来自der-prinz.com的CMS主题皮肤,比较简单,轻便,可定制性也非常的强。
浏览器兼容性Getested in – Firefox – Internet Explorer 7 – Internet Exporer 6 – Opera
下边是:
Demo+++++++++++Download+++++++++++Support Forum+++++++++++Tutorials

09/06/19 14:04介绍下WordPress

先来讲下WordPress是什么

来自WordPress官方的介绍如下:

WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time.
More simply, WordPress is what you use when you want to work with your blogging software, not fight it.

WordPress是一个可用性强,遵循WEB标准的免费的内容发布平台,而简单的用途则是用它来搭建博客系统,恩,一个支持多用户的博客系统。
PS:关于wordpress.org和wordpress.com的区别,org是发布wordpress新版本,开发动向,插件,皮肤和其他关于wordpress技术方面的东西。而com则是一个博客平台,大家可以在上边搭建免费的个人博客,类似的服务国内很多,如新浪博客,网易博客。由于某些政治原因,不推荐在wordpress.com开博,一年里头没有几天是不被GFW的。
Read the rest of this entry »

Learned from 《swfInputs: Solving Mozilla + Transparent Mode + Win + Special Chars within inputs》
原来写过个日志《Flash在Safari下无法输入中文》,当时没有找到好的解决方案,现在在网上看到有这么个东西,swfInputs
What to do in your code?具体代码的使用:
swfInputs consists of two parts(swfInputs包含2个部分):
* The SWFTextInput AS3 Class (which create the connection to the JavaScript class),一个AS3组件,负责Flash和JS的通信。
* and the swfInputs JavaScript Class (which handles the creation and HTML communication),一个JS文件,负责在HTML端建立Input。
To activate the JavaScript part you just need to insert two script-tags into the HTML code and call the constructor method. At the moment swfInputs uses the dojoToolkit JavaScript library for position calculation and basic connection handling. I looking forward to remove this need of dojo to reduce the filesize.
swfInputs使用dojoToolkit JS框架,恩,作者根据需求修正了dojoToolkit的尺寸。

<script src="../javascript/dojo.js" language="javascript"></script>
<script src="../javascript/swfInputs.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
			swfInputs.init('swfInputTestcase');
</script>

Read the rest of this entry »

来自WopusIDC的信件,唉,nwhy就这么挂了一天,烦躁的。
——————————————————————————————-
亲爱的WopusIDC”地”(174.x.x.x)主机用户:
首先感谢您这么久以来对WOPUSIDC的支持,但很遗憾的是,由于”地”主机上的用户有不和谐的内容,导致整个主机的独立IP都被和谐,在和IDC紧急联系之后,”地”主机已经更换了新的IP,所以,请您在看到这封邮件的时候更换域名解析A记录。
把域名A记录由原来的:174.x.x.x 更换成 174.x.x.x。
我们也在WopusIDC发布了更换IP公告,如果您在更换IP之后有任何问题,请及时联系我们,回复此邮件即可。
再次感谢各位的理解与支持。
祝好。
————————————————–
这年头啊,可别乱讲话,别乱放东西哦,会被和谐哦。

本内容来自网络,有兴趣的自寻出处。
类内容如下:

package
{
        import flash.utils.ByteArray;

        /**
         * ...
         * @author Will Chen
         * @msn chenyouyou@live.cn
         * @email c_youyou@163.com
         * @version 1.0
         * @description Convert Chinese to abc.
         */
       
        public class ChineseConvert
        {               
                /**
                 * 获取一串中文的拼音字母
                 * @param        chinese        <string>Unicode格式的中文字符串
                 * @return                        </string><string>拼音声母字符串
                 * @example
                 * var chinese:String = "说国家会被和谐的";
                 * var py:String = ChineseConvert.convertString(chinese);
                 * trace(py);        //sgjhbhxd
                 */
                public static function convertString(chinese:String):String
                {
                        var len:int = chinese.length;
                        var ret:String = "";
                        for (var i:int = 0; i < len; i++)
                        {
                                ret += convertChar(chinese.charAt(i));
                        }
                        return ret;
                }
               
                /**
                 *
                 * @param        char        <String>Unicode格式的一个中文字符
                 * @return                        </string><string>中文字符的声母
                 * @example
                 * var chineseChar:String = "我";
                 * var py:String = ChineseConvert.convertChar(chineseChar);
                 * trace(py);        //w
                 */
                public static function convertChar(chineseChar:String):String
                {
                        var bytes:ByteArray = new ByteArray();
                        bytes.writeMultiByte(chineseChar.charAt(0), "cn-gb");
                        var n:int = bytes[0] < < 8;
                        n += bytes[1];
                        if (isIn(0xB0A1, 0xB0C4, n)) return "a";
                        if (isIn(0XB0C5, 0XB2C0, n)) return "b";
                        if (isIn(0xB2C1, 0xB4ED, n)) return "c";
                        if (isIn(0xB4EE, 0xB6E9, n)) return "d";
                        if (isIn(0xB6EA, 0xB7A1, n)) return "e";
                        if (isIn(0xB7A2, 0xB8c0, n)) return "f";
                        if (isIn(0xB8C1, 0xB9FD, n)) return "g";
                        if (isIn(0xB9FE, 0xBBF6, n)) return "h";
                        if (isIn(0xBBF7, 0xBFA5, n)) return "j";
                        if (isIn(0xBFA6, 0xC0AB, n)) return "k";
                        if (isIn(0xC0AC, 0xC2E7, n)) return "l";
                        if (isIn(0xC2E8, 0xC4C2, n)) return "m";
                        if (isIn(0xC4C3, 0xC5B5, n)) return "n";
                        if (isIn(0xC5B6, 0xC5BD, n)) return "o";
                        if (isIn(0xC5BE, 0xC6D9, n)) return "p";
                        if (isIn(0xC6DA, 0xC8BA, n)) return "q";
                        if (isIn(0xC8BB, 0xC8F5, n)) return "r";
                        if (isIn(0xC8F6, 0xCBF0, n)) return "s";
                        if (isIn(0xCBFA, 0xCDD9, n)) return "t";
                        if (isIn(0xCDDA, 0xCEF3, n)) return "w";
                        if (isIn(0xCEF4, 0xD188, n)) return "x";
                        if (isIn(0xD1B9, 0xD4D0, n)) return "y";
                        if (isIn(0xD4D1, 0xD7F9, n)) return "z";
                        return "\0";
                }
               
                private static function isIn(from:int, to:int, value:int):Boolean
                {  
                        return ((value >= from) && (value < = to));
                }
               
                /**
                 *
                 * @param        chineseChar        <String>Unicode格式的一个中文字符
                 * @return                                <boolean>是中文返回true,不是返回flase
                 */
                public static function isChinese(chineseChar:String):Boolean
                {
                        if (convertChar(chineseChar) == "\0")
                        {
                                return false;
                        }
                        return true;
                }
        }
}

具体使用在文件中都写了例子,有兴趣的可以去改造成返回全拼音。

Discuz!
公司论坛前几天更换了下虚拟主机,结果附件无法上传,提示是上传目录的权限有问题,在网上找了下解决办法,有一个可行的,就是更改目录权限。
看了下服务器上的权限,是755,但是却无法修改,诡异的。而且原来可以正常使用的主机上,其实也是755的权限,但是没有问题啊。
试了下另一个办法,说是更改附件的保存格式,然后上传一个,之后修改回原来的显示格式,依然没能解决问题。
最后找到了个可行的方法,重命名虚拟主机上的附件目录(这里我们用的是附件按月份保存的格式),新建同名文件目录的,然后把文件重新传一遍(不知为何,FTP上的文件无法直接移动,提示无权限,如果可以直接移动过去的话,请直接移动附件。),接着应该就可以正常上传附件了。
希望对大家有点帮助,嘿嘿。

Chalkwork HTML Preview,it’s from mezzoblue.com.
htmlicon
一套很有爱的HTML图标,下边是下载地址:chalkwork-html.zip


© 2007-2008 Why? Nowhy! DFdou’s Blog | iKon Wordpress Theme by Windows Vista Administration | Powered by Wordpress