inicio mail me! sindicaci;ón

Archive for Web Develop

《Papervision3D Essentials》中文翻译

 转自http://lushisang.com/?p=36

《Papervision3D Essentials》是一本最新的Papervision3D入门书,对学习Papervision3D很有帮助。以下是中文翻译,版权归原书作者和出 版社所有,感谢他们,感谢为大家付出时间和精力的翻译志愿者。每个翻译者是自己翻译的那部分内容的负责人,包括权利和义务。感谢riabook.cn发布了活动公告,感谢9ria.com置顶了翻译事项帖子,它们对翻译活动起了很大帮助。

因为是业余翻译,有人比较简化,加入了自己的理解,有人喜欢一一对应,直译每句话,水平也各异,审核和排版方面也不够专业,有错漏不一之处,还请见谅。会英语可以直接看原版英语书,翻译只做参考,这样可能更容易理解。

部分内容还正在翻译,请耐心等待。大家有问题可以在此贴讨论,或者另外发帖讨论。:-)

英语电子书下载地址:http://www.riabook.cn/en_book/papervision3d-essentials.htm

书中源码下载地址:http://www.packtpub.com/files/code/5722_Code.zip

《Papervision3D Essentials》中文翻译

1.Setting Up 准备

http://docs.google.com/Doc?docid … OG5jNQ&hl=zh_CN

2.Building Your First Application 构建你的第一个应用
风飘飘飘飘~~
http://e.ys168.com/?superherosk123的pv3d目录(用IE访问)
http://docs.google.com/fileview? … U4MDhi&hl=zh_CN

3.Primitives 基本几何体
风飘飘飘飘~~
http://e.ys168.com/?superherosk123的pv3d目录(用IE访问)
http://docs.google.com/fileview? … JmNjE4&hl=zh_CN

4.Materials 材质
kenjor
http://docs.google.com/fileview? … A2NzJm&hl=zh_CN

5.Cameras 摄像机
风飘飘飘飘~~
http://e.ys168.com/?superherosk123的pv3d目录(用IE访问)
http://docs.google.com/fileview? … g0NTY2&hl=zh_CN

6.Moving Things Around 移动物体/物体运动(两个版本)
骜鹰傲,缺最后一节部分内容
http://docs.google.com/fileview? … llOTk5&hl=zh_CN
风飘飘飘飘~~,完整版
http://e.ys168.com/?superherosk123的pv3d目录(用IE访问)
http://docs.google.com/fileview? … JhOTBl&hl=zh_CN

7.Shading 着色
kenjor
http://docs.google.com/fileview? … MwNTM1&hl=zh_CN

8.External Models 外部模型
郝檬
http://docs.google.com/fileview? … RmYjgw&hl=zh_CN

9.Z-Sorting Z排序
夜梦
http://docs.google.com/fileview? … lkOGI0&hl=zh_CN

10.Particles 粒子

http://docs.google.com/Doc?docid … cnR3OQ&hl=zh_CN

11.Filters and Effects 滤镜和效果
sliz,1-5节,博客:http://space.flash8.net/space/?534614/
陆,5-10节
http://docs.google.com/Doc?docid … 2tkaHM&hl=zh_CN

12.3D Vector Drawing and Text 3D矢量绘图和文本(未完)
月之魂

13.Optimizing Performance 性能的优化
老五
http://docs.google.com/fileview? … Y2YTky&hl=zh_CN

素材

字体下载
http://www.homefont.cn/

网页素材
http://www.zcool.com.cn/

jQuery plugin

jQuery Right-click Plugin
$(“#selector”).rightClick( function(el) {// Do something});
http://abeautifulsite.net/notebook/68#download

ContextMenu plugin
右键菜单
http://www.trendskitchens.co.nz/jquery/contextmenu/

NiceJForms
表单美化
http://www.lexcat.ro/nicejforms/nicejforms.html

jQuery Star Rating Plugin
星星等级
http://www.fyneworks.com/jquery/star-rating/

liScroll
滚动内容
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html
http://stone.dialog.jp/code/jquery/jdNewsScroll/

A Cool CSS Effect - Dashboard [Updated x2]

Ever want to alert your users to a really important message? Ever care to have some effect that looked like dasboard?

I wanted to do this for numerous sites so I finally I decided to scan the web for some resources. I didn’t find any real conclusive matches on Google. I mean what do you search for?

So, I started thinking about what we were actually doing and then finally I got code working. I’ll post the code and then briefly explain it. Here is a picture so you can get the idea of what it does, or you can simply go to my new website and click on either “About” or on “Contact.”

Dashboard CSS Effect

Add this to your css file or inside your “head” tags:

.darkenBackground {
background-color: rgb(0, 0, 0);
opacity: 0.7; /* Safari, Opera */
-moz-opacity:0.70; /* FireFox */
filter: alpha(opacity=70); /* IE */

z-index: 20;
height: 100%;
width: 100%;
background-repeat:repeat;
position:fixed;
top: 0px;
left: 0px;
}

Basically, this says set a style in CSS to have a black background, 70% transparent, filling the entire screen.

We then add this code anywhere inside our “body” tag:


This places our black box on the screen, and then the javascript hides it. We can then show it later on by putting this javascript in an event handler like onclick: 

document.getElementsById(”darkBackgroundLayer”).style.display = “”;

This will show our darkened layer using javascript.

This will show our darkened layer using javascript.You can then use javascript to show a different window like the above code. This effect is really great and extremely useful in drawing the user’s attention.

I hope that helps you make some neat effects. Post in the comments if you have any interesting twists.

[Updated] One problem I have run into with this is that the dark black shade cuts off at the end of the browser window, meaning that if you scroll down the page, the effect does not continue. This has to do with how css repeats vertically. If any one knows a fix, please comment as well.

[Updated x2] Fixed the scrolling bug. Thanks to all the great comments. Also changed the opacity options so hopefully works on more browsers. Changes are in red. Thanks to digg, story is here.

Thanks

http://dbachrach.com/blog/2006/10/09/a-cool-css-effect-dashboard/

This will show our darkened layer using javascript.

JavaScript Object Notation Support for .NET 2.0

JavaScript Object Notation, or JSON, is meant as a light weight alternative to XML when XML is just a bit heavy weight for what you are trying to achieve. Although JSON is not extensible, as it makes use of a fixed set of data types, it can be used to textually represent complex objects. JSON is a perfect data-interchange format when using technologies such as AJAX as your server side objects can be converted to JSON, sent to the client, evaluated in a client script and then manipulated to build dynamic adverts, menus etc.

http://www.codeproject.com/KB/recipes/JSON.aspx

日期时间正则表达式

^((((19|20)(([02468][048])|([13579][26]))-0?2-29))|((20[0-9][0-9])|(19[0-9][0-9]))-((((0?[1-9])|(1[0-2]))-((0?[1-9])|(1\d)|(2[0-8])))|((((0?[13578])|(1[02]))-31)|(((0?[1,3-9])|(1[0-2]))-(29|30)))))(\x20(0?[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){1,2})?$

用户体验:新窗口还是原窗口

自从W3C的XHTML标准被我们了解了以来,这个问题便被讨论不断。
http://bbs.blueidea.com/thread-2452838-1-1.html

到底网页是在新窗口中打开好,还是在原窗口中打开?这个问题是要根据网站目标用户来决定的。

首先,总是使用_blank确实是会引起一些老资格互联网用户的讨厌,认为“被强奸了”,我没让你弹出新窗口,却非要弹出来,还制止不了。
如果不使用_blank,一些不懂使用右键>新窗口打开或是Ctrl+点击的用户又不干了,干嘛老是要我后退,甚至他根本不懂得后退。

我拥护W3C,但如果我看新闻时总是要我Ctrl的话我也是会受不了的——习惯总是很难被改变的。
于是便有人提出,可个性化的,如果你希望新窗口打开,便设置为新窗口打开,默认是遵循标准原窗口打开的。
可是,很多不懂右键或是Ctrl打开新窗口的人,根本是不会也不知道这是可以设置的,这个功能就如鸡肋了,怎么办?
最好的办法还是根据目标用户来决定。如果目标用户已经习惯了新窗口打开或是新窗口会便方便,还是默认为新窗口吧,提供一个设置不使用新窗口打开的功能给怕“被强奸了”的用户就好了(如Google中国)。反之亦然。

在PHP中使用IIS SMTP Service发送邮件

服务器环境为Windows2003+Apache2.2+PHP5。
最常采见的办法是使用免费邮件供应商的SMTP服务发送邮件,如126.com等。但经测试后发现这是不可行的,原因在于大多免费邮箱都会封杀或不允许频繁使用SMTP来发送邮件。
如果需要在本地服务器提供SMTP服务,最快捷的方法便是使用IIS自带的SMTP Service。
先在添加/删除Windows组件中将SMTP Service选上并安装。
测试SMTP正常后,修改php.ini
SMTP = localhost
smtp_port = 25
sendmail_from = 你的邮箱名称@你的域名.com
保存后重新启动Apache即可直接使用PHP的Mail函数来发送邮件。
需要说明的是,这样发出的邮件很可能会被归为“垃圾邮件”,一般原因是sendmail_from中“你的域名”的DNS MX记录与服务器IP不符。解决办法比较简单,将域名的MX记录指向服务器IP即可。

昨日新闻 - ASP.NET 自定义错误

昨日新闻 - SQLServer迁移到Mysql的心得

  1. SQLServer迁移到Mysql的心得
  2. 从SQLServer数据库导入Mysql数据库的体验
  3. ASP.NET编译问题的公开Hotfix补丁发布了

SQLServer日期类型转为MySQL时间戳:
datediff(s, ‘1970-01-01 00:00:00′, regDate) - 8 * 3600

.Net网站中的错误:
Could not load file or assembly ‘App_Web_e9dbmaj……
将web.config文件一节的batch属性设置成false
或者删除Temporary ASP.NET Files文件夹里的缓存文件

· Next entries »
Close
E-mail It