十年当个程序员

the lyf so short, the craft so long to lerne. - Chaucer

今天看李笑来的博客,说他两年内学了下面这些内容:

  • HTML
  • HTML DOM
  • XML
  • CSS
  • JAVASCRIPT
  • PHP
  • MYSQL
  • LINUX(UBUNTU)
  • APACHE
  • IIS
  • WORDPRESS
  • DOKUWIKI
  • MEDIAWIKI

    然后又看了这么一篇文章:

    http://www.javaresearch.org/article/12568.htm

    我想我不会做一个程序员。我觉得这事要聪明人干呐。但我很想对这些东西有所认知。留着慢慢看看吧。一面遇到困难,一面四处求知弥补漏洞的那段日子,收获的滋味最畅快。
  • Posted by yuvia

    2008/11/12 16:35 2008/11/12 16:35
    Response
    No Trackback , No Comment
    RSS :
    http://2008.yuvia.org/rss/response/351

    本地化

    一个本地化课程的资料。

    • 本地化概述
    • 本地化翻译工作的特点
    • 本地化翻译职位技能
    • 本地化翻译的对象类型
      • 软件用户界(UI)
      • 文档(UE)
      • 网站
      • 电子课件
    • 本地化翻译的工作流程
      • 准备
      • 翻译
      • 编辑
      • 校对
      • 内部QA
      • 客户Review
      • 最后检查
      • 提交
    • 翻译样式指导文档
    • 本地化翻译的规则
    • 翻译文件的准备
    • 翻译过程
    • 翻译过程注意事项
    • 计算机辅助翻译技术
      • 翻译记忆TM
      • 机器翻译MT
      • 术语管理
      • 内容管理系统CMS
    • 本地化工具介绍
      • 文档本地化工具
      • 软件本地化工具
      • 其它本地化工具
    • 本地化工具的选择方法
      • 选择原则
      • 选择时机
      • 选择方法
    • [实例]Trados在本地化项目翻译中的应用
      • 简介
      • 安装
      • 设置
      • 翻译记忆库创建、更新与查看
      • Trados Translator's Workbench的操作
      • Trados TagEditor的操作
      • Trados WinAlign的操作
      • Trados在本地化项目的高级使用技巧
    • [实例]Alchemy Catalyst在软件本地化项目翻译中的应用
      • 简介
      • 安装
      • 设置
      • 翻译记忆库创建、更新与查看
      • Alchemy Catalyst的翻译操作
      • Alchemy Catalyst在本地化项目的高级使用技巧
    • 翻译记忆库TM的操作和维护规范
      • 创建
      • 更新
      • 导出
      • 导入
      • 合并
      • 共享与权限
      • In-house与Vendor应用TM
    • 术语表的操作和维护规范
      • Glossary与Terminology
      • 创建或获取术语
      • 术语更新与维护
      • 术语管理工具
      • 术语交换与TBX
    • 翻译质量控制
      • 本地化翻译质量与客户期望
      • 确定本地化翻译质量指标
      • 内部译员的翻译质量控制
      • 外部Vendor的质量控制
      • 经验与教训
    • 翻译质量检查类别
      • 本地化翻译质量检查清单
      • 一致性检查
      • 语言质量检查
      • 规范性检查
      • 遵守Instruction的检查
    • 本地化翻译的职业发展
    • 问题与讨论

    Posted by yuvia

    2008/10/09 21:24 2008/10/09 21:24
    Response
    No Trackback , No Comment
    RSS :
    http://2008.yuvia.org/rss/response/328

    用CSS控制表格的样式和颜色

    http://www.xiaocui.cn/blog/article.asp?id=161

    Posted by yuvia

    2008/09/05 11:27 2008/09/05 11:27
    Response
    No Trackback , No Comment
    RSS :
    http://2008.yuvia.org/rss/response/307

    跟我学CSS 2 语法

    今天发现了已经被翻译完的一个版本。嗯,有点失望。不过反正我还是要继续学习,所以不会就此结束我的翻译!后来仔细对照了一下,还是有些地方不一致的。我只忠于我的原文就好了。

    不过也要记住,在做事之前先观察好整个大背景环境。不要做重复劳动。

    今天的内容还是很简单的一些东西。我记得第一次设计页面的时候被人问到id和class的区别。找了一篇文章,来解释这个问题>>>

    喜欢的站点:http://www.w3school.com.cn/index.html

    原文出处:http://www.w3schools.com/css/css_syntax.asp

    Syntax

    语法

    The CSS syntax is made up of three parts: a selector, a property and a value:

    CSS语法由三部分组成:一个选择器,一个属性和一个值:

    selector {property: value}

    The selector is normally the HTML element/tag you wish to define, the property is the attribute you wish to change, and each property can take a value. The property and value are separated by a colon, and surrounded by curly braces:

    选择器一般就是你希望定义的HTML元素/标签,更改你希望更改的属性,给每个属性赋一个值。属性和值之间用冒号分割,二者由大括号包围:

    body {color: black}

    Note: If  the value is multiple words, put quotes around the value:

    注:如果值有多个单词构成,用引号引起来:

    p {font-family: "sans serif"}

    Note: If you wish to specify more than one property, you must separate each property with a semicolon. The example below shows how to define a center aligned paragraph, with a red text color:

    注:同一选择器下的多个属性由分号分割。下面的例子演示了怎样将一个段落居中并将文字设为红色:

    p {text-align:center;color:red}

    To make the style definitions more readable, you can describe one property on each line, like this:

    为了方便阅读,可以将各个属性分行展示:

    p
    {
    text-align: center;
    color: black;
    font-family: arial
    }


    Grouping

    组合

    You can group selectors. Separate each selector with a comma. In the example below we have grouped all the header elements. All header elements will be displayed in green text color:

    你可以将多个选择器组合在一起,用逗号链接。下例将所有标题元素文本定义为红色:

    h1,h2,h3,h4,h5,h6 
    {
    color: green
    }


    The class Selector

    选择器“类”

    With the class selector you can define different styles for the same type of HTML element.

    使用类选择器可以为同一类型的HTML元素定义不同的样式。

    Say that you would like to have two types of paragraphs in your document: one right-aligned paragraph, and one center-aligned paragraph. Here is how you can do it with styles:

    比如,你希望同一个文件中的段落有两种样式:一种居右,一种居中。你可以按照下面的方式定义:

    p.right {text-align: right}
    p.center {text-align: center}

    You have to use the class attribute in your HTML document:

    这样,你就需要用类来定义HTML元素:

    <p class="right">
    This paragraph will be right-aligned.
    </p>
    <p class="center">
    This paragraph will be center-aligned.
    </p>

    Note: To apply more than one class per given element, the syntax is:

    注:如需给一个元素定义多个类,可以这样写:

    <p class="center bold">
    This is a paragraph.
    </p>

    The paragraph above will be styled by the class "center" AND the class "bold".

    这个段落就被同时赋予两个类,名字分别为“center”和“bold”。

    You can also omit the tag name in the selector to define a style that will be used by all HTML elements that have a certain class. In the example below, all HTML elements with class="center" will be center-aligned:

    如果你需要定义所有HTML元素中的某个类,需要将标签名去掉,如下例所示。此例中,所有具有“center”类厄HTML元素都会被居中显示:

    .center {text-align: center}

    In the code below both the h1 element and the p element have class="center". This means that both elements will follow the rules in the ".center" selector: 

    在下面的例子中,h1和p都有叫做“center”的类,这就说明,h1和p都要遵守“.center”这一选择器的规则:

    <h1 class="center">
    This heading will be center-aligned
    </h1>
    <p class="center">
    This paragraph will also be center-aligned.
    </p>

    Remark Do NOT start a class name with a number! It will not work in Mozilla/Firefox.
     Remark不要以数字为首命名一个类哦,这样将在火狐中失效。


    Add Styles to Elements with Particular Attributes

    为具有某种特定属性的元素添加样式

    You can also apply styles to HTML elements with particular attributes.

    一个已经具有某种属性的HTML元素仍然可以被定义样式。

    The style rule below will match all input elements that have a type attribute with a value of "text":

    下面的例子中,蓝色背景色的样式将对所有据有text属性值的input元素生效:

    input[type="text"] {background-color: blue}


    The id Selector

    id选择器

    You can also define styles for HTML elements with the id selector. The id selector is defined as a #.

    你也可以用id选择器来定义HTML元素的样式。id选择器以“#”号开头。

    The style rule below will match the element that has an id attribute with a value of "green":

    下列的样式举例中,所有据有“green”id属性的元素的文本内容都将被定义为绿色。

    #green {color: green}

    The style rule below will match the p element that has an id with a value of "para1":

    下面的样式作用于所有据有“para1”id的所有段落(p)元素:

    p#para1
    {
    text-align: center;
    color: red
    }

    Remark Do NOT start an ID name with a number! It will not work in Mozilla/Firefox.
     Remark 不要以数字开头命名ID!这样样式将在火狐中失效。

    CSS Comments

    CSS注释

    Comments are used to explain your code, and may help you when you edit the source code at a later date. A comment will be ignored by browsers. A CSS comment begins with "/*", and ends with "*/", like this:

    注释用来解释你的代码,可以帮助日后对源代码进行编辑。注释是不会被浏览器识别的。CSS注释以“/*”开始,以“*/”结束:

    /* This is a comment */
    p
    {
    text-align: center;
    /* This is another comment */
    color: black;
    font-family: arial
    }

    Posted by yuvia

    2008/07/18 16:23 2008/07/18 16:23
    Response
    No Trackback , No Comment
    RSS :
    http://2008.yuvia.org/rss/response/270

    跟我学CSS 1 Introduction

    嗯,最近翻译东西,心想不如翻译我想学的东西。因此开始翻译CSS教程。8过初期的东西俺都懂,只是想做一个完整的教程。

    俺们要搬了,囧。搬到有很多男人的地方。。。请开始自行yy。。。
    原文出处:http://www.w3schools.com/css/css_intro.asp

    What You Should Already Know

    Before you continue you should have some basic understanding of the following:

    • HTML / XHTML

    If you want to study this subject first, find the tutorials on our Home page.

    学CSS前,你得先会的东西

    开始CSS学习,请先对下面的知识有初步了解:
    • HTML / XHTML

    想先学HTML / XHTML,请走这边。



    What is CSS?

    • CSS stands for Cascading Style Sheets
    • Styles define how to display HTML elements
    • Styles are normally stored in Style Sheets
    • Styles were added to HTML 4.0 to solve a problem
    • External Style Sheets can save you a lot of work
    • External Style Sheets are stored in CSS files
    • Multiple style definitions will cascade into one

    CSS是个啥?

    • CSSCascading Style Sheets (层叠样式表)的缩写
    • 样式决定HTML元素的展示形式
    • 样式保存在样式表
    • 样式最先被引入到HTML 4.0是为了解决某问题
    • 外部样式表能帮你省不少事
    • 外部样式表保存为CSS类型文件
    • 多个样式定义均层叠为一个文件



    CSS Demo

    With CSS, your HTML documents can be displayed using different output styles:

    See how it works

    CSS Demo

    一个HTML可以因为不同样式表变得不同哦:

    看看范例


    Styles Solve a Common Problem

    HTML tags were originally designed to define the content of a document. They were supposed to say "This is a header", "This is a paragraph", "This is a table", by using tags like <h1>, <p>, <table>, and so on. The layout of the document was supposed to be taken care of by the browser, without using any formatting tags.

    As the two major browsers - Netscape and Internet Explorer - continued to add new HTML tags and attributes (like the <font> tag and the color attribute) to the original HTML specification, it became more and more difficult to create Web sites where the content of HTML documents was clearly separated from the document's presentation layout.

    To solve this problem, the World Wide Web Consortium (W3C) - the non profit, standard setting consortium, responsible for standardizing HTML - created STYLES in addition to HTML 4.0.  

    All major browsers support Cascading Style Sheets.

    样式表解决一个常见问题

    HTML标签最初是为了定义文件内容制定的,例如<h1>,<p>,<table>它们表达不同的意义:“这是一个标头”,“这是一个段落”,“这是一个表格”,等等等等。如果没有格式标签,文件的页面布局由浏览器决定。

    Netscape和IE作为两大主要浏览器,不断收录新的HTML标签(像<font>标签、颜色属性等)。这使得编写一个表达布局脱离HTML语言控制的网页越来越不可能了。

    为了解决这个问题,负责制定HTML标准的非盈利组织W3C(万维网联盟)制定了样式这一概念。

    所有主流浏览器均支持阅读层叠样式表。



    Style Sheets Can Save a Lot of Work

    Styles sheets define HOW HTML elements are to be displayed, just like the font tag and the color attribute in HTML 3.2. Styles are normally saved in external .css files. External style sheets enable you to change the appearance and layout of all the pages in your Web, just by editing one single CSS document!

    CSS is a breakthrough in Web design because it allows developers to control the style and layout of multiple Web pages all at once. As a Web developer you can define a style for each HTML element and apply it to as many Web pages as you want. To make a global change, simply change the style, and all elements in the Web are updated automatically.

    样式表省时省力

    样式决定HTML元素的展示放肆,就像HTML 3.2时的字体标签和颜色属性一样,CSS一般存为外部.css格式的文件。外部样式表使你能够仅仅修改CSS文件,就轻易改变网页的外观和布局。

    CSS使网页开发者能够一次性控制多个网页的样式和布局,是网页设计的一项重大突破。你可以为每项HTML元素编写一个样式,然后在多个网页中应用。小小改变一个样式,就能带动全局改变,所有的网页元素够跟着自动更新。




    Multiple Styles Will Cascade Into One

    Style sheets allow style information to be specified in many ways. Styles can be specified inside a single HTML element, inside the <head> element of an HTML page, or in an external CSS file. Even multiple external style sheets can be referenced inside a single HTML document. 

    多个样式合为一体

    样式表允许以各种方式指示信息。样式表可以嵌入单个HTML元素、可以在HTML<head>中说明,也可以作为外部样式表形式存在。多个外部样式也可以定义同一个HTML文件。

    Cascading Order

    What style will be used when there is more than one style specified for an HTML element?

    Generally speaking we can say that all the styles will "cascade" into a new "virtual" style sheet by the following rules, where number four has the highest priority:

    1. Browser default
    2. External style sheet
    3. Internal style sheet (inside the <head> tag)
    4. Inline style (inside an HTML element)

    So, an inline style (inside an HTML element) has the highest priority, which means that it will override a style declared inside the <head> tag, in an external style sheet, or in a browser (a default value).

    层叠顺序

    一个HTML元素中被多个样式定义时,哪个被优先使用呢?

    一般来说,所有的样式都被层叠起来,形成一个“虚拟的”新样式表。各项样式按照下列顺序排列,优先级由小到大。

    1. 浏览器默认样式
    2. 外部样式表
    3. 内部样式表(定义在<head>标签部分)
    4. 内嵌样式(在HTML元素内部定义)

    所以,内嵌样式(在HTML元素内部定义)具有最高优先级,可以覆盖内部样式表、外部样式表和浏览器(默认值)中的样式定义。

    Posted by yuvia

    2008/07/17 16:20 2008/07/17 16:20
    Response
    No Trackback , a comment
    RSS :
    http://2008.yuvia.org/rss/response/269

      头:header  内容:content/container

      尾:footer    导航:nav

      侧栏:sidebar  栏目:column

      页面外围控制整体布局宽度:wrapper  左右中:left right center

      登录条:loginbar  标志:logo

      广告:banner  页面主体:main

      热点:hot  新闻:news

      下载:download  子导航:subnav

      菜单:menu  子菜单:submenu

      搜索:search  友情链接:friendlink

      页脚:footer  版权:copyright

      滚动:scroll  内容:content

      标签页:tab  文章列表:list

      提示信息:msg  小技巧:tips

      栏目标题:title  加入:joinus

      指南:guild  服务:service

      注册:regsiter  状态:status

      投票:vote  合作伙伴:partner

      (二)注释的写法:

      /* Footer */

      内容区

      /* End Footer */

      (三)id的命名:

      (1)页面结构

      容器: container

      页头:header

      内容:content/container

      页面主体:main

      页尾:footer

      导航:nav

      侧栏:sidebar

      栏目:column

      页面外围控制整体布局宽度:wrapper

      左右中:left right center

      (2)导航

      导航:nav

      主导航:mainbav

      子导航:subnav

      顶导航:topnav

      边导航:sidebar

      左导航:leftsidebar

      右导航:rightsidebar

      菜单:menu

      子菜单:submenu

      标题: title

      摘要: summary

      (3)功能

      标志:logo

      广告:banner

      登陆:login

      登录条:loginbar

      注册:regsiter

      搜索:search

      功能区:shop

      标题:title

      加入:joinus

      状态:status

      按钮:btn

      滚动:scroll

      标签页:tab

      文章列表:list

      提示信息:msg

      当前的: current

      小技巧:tips

      图标: icon

      注释:note

      指南:guild

      服务:service

      热点:hot

      新闻:news

      下载:download

      投票:vote

      合作伙伴:partner

      友情链接:link

      版权:copyright

      (四)class的命名:

      (1)颜色:使用颜色的名称或者16进制代码,如

      .red { color: red; }

      .f60 { color: #f60; }

      .ff8600 { color: #ff8600; }

      (2)字体大小,直接使用"font+字体大小"作为名称,如

      .font12px { font-size: 12px; }

      .font9pt {font-size: 9pt; }

      (3)对齐样式,使用对齐目标的英文名称,如

      .left { float:left; }

      .bottom { float:bottom; }

      (4)标题栏样式,使用"类别+功能"的方式命名,如

      .barnews { }

      .barproduct { }

      注意事项::

      1.一律小写;

      2.尽量用英文;

      3.不加中杠和下划线;

      4.尽量不缩写,除非一看就明白的单词.

      主要的 master.css

      模块 module.css

      基本共用 base.css

      布局,版面 layout.css

      主题 themes.css

      专栏 columns.css

      文字 font.css

      表单 forms.css

      补丁 mend.css

      打印 print.css

    Posted by yuvia

    2008/06/21 00:39 2008/06/21 00:39
    Response
    No Trackback , 2 Comments
    RSS :
    http://2008.yuvia.org/rss/response/238

    创建字体快捷方式

    将字体文件存放在其他分区,不仅可以释放更多系统分区的空间,而且可以免去重装系统不慎丢失字体。方法如下:
      
    把字体文件存放到其他分区,然后在 Windows 的 Fonts 目录下打开“文件”下拉菜单,选择“安装新字体”,路径选择存放字体的的路径,把“将字体复制到 Fonts 文件夹”前面的勾去掉,然后确定。这样就建立了该字体的快捷方式。

    Posted by yuvia

    2008/06/20 21:53 2008/06/20 21:53
    Response
    No Trackback , 2 Comments
    RSS :
    http://2008.yuvia.org/rss/response/237

     <a href="#" class="nav1">分类一</a>

    a.nav1{
    float:left;
    width:100px;height:22px;line-height:22px;
    background:url(图片地址) no-repeat;
    background-position:0 0;
    }

    a.nav1:hover{
    background-position:0 -22px;
    }

    Posted by yuvia

    2008/06/20 21:49 2008/06/20 21:49
    Response
    No Trackback , No Comment
    RSS :
    http://2008.yuvia.org/rss/response/236

    链接点击之后不出现虚框

    转自:稀饭的幸福造句

    方法1:
    以下代码加入<head>区内:
    <script language=javascript>
    function bluring(){
    if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
    }
    document.onfocusin=bluring;
    </script>

    或者把以上代码保存为bluring.js
    然后在需要的页面<head>区加入<script src="bluring.js"></script>

    方法2:
    <style>
    a {mayfish:expression(this.onfocus=this.blur);cursor:hand}
    </style>

    方法3:
    <style>
    a,area { blr:expression(this.onFocus=this.blur()) } /* for IE 过多使用效率低*/
    :focus { -moz-outline-style: none; } /* for Firefox */
    </style>

    方法4:
    <a href=# onFocus="this.blur()">aaaa</a>
    这样便可针对某一链接使用此效果~

    ------------------------------------------------------

    局部控制

    <a href="link1.htm" onfocus="this.blur()">link1</a>
    <a href="link1.htm" onfocus="this.close()">link1</a>
    <a href="link1.htm" hidefocus="true">link1</a>
    <a href="link1.htm" hidefocus="hidefocus">link1</a>

    全局控制 CSS实现

    a{blr:expression(this.onFocus=this.close());} /* 只支持IE,过多使用效率低 */
    a{blr:expression(this.onFocus=this.blur());} /* 只支持IE,过多使用效率低 */
    a:focus { -moz-outline-style: none; } /* IE不支持 */

    HTC实现 IE支持,页面载完才有效果

    把下面这段代码存为.htc为扩展名的文件
    <public:attach event="onfocus" onevent="hscfsy()"/>
    <script language="javascript">
    function hscfsy(){this.blur();}
    </script>
    调用 a {behavior:url(htc文件所在路径地址)}

    JS遍历实现

    window.onload=function()
    {
    for(var ii=0; ii<document.links.length; ii++)
    document.links[ii].onfocus=function(){this.blur()}
    }
    JS封装为函数

    function fHideFocus(tName){
    aTag=document.getElementsByTagName(tName);
    for(i=0;i<aTag.length;i++)aTag[i].hideFocus=true;
    //for(i=0;i<aTag.length;i++)aTag[i].onfocus=function(){this.blur();};
    }
    当前是添加一个hidefocus的属性,注释掉的句子是添加onfucus=this.blur();
    然后调用fHideFocus("A"),即可把a的虚线框去掉
    通过传递不同的参数,可以去掉更多的虚线框,比如"BUTTON"可以去掉button的
    但要记住参数要用大写字母

    A. map area内链接如何消除链接虚线?
    这是一个观念上的错误,其实应该在所在map的图片上加以控制,而不是在area内,参考传统办法

    B. 关于onFocus
    <a href=“http://blog.csdn.net/alonesword/“ onFocus="this.blur()">
    <Img Src="Example.jpg" Border=0>
    </a>
    onFocus是设置鼠标焦点事件的东西,这个可以用,也可以不用,不过为了让更多的浏览器识别的话,建议采用Border=0 这个才是去除虚线框的关键所在
    (在网上看到有的人用onFocus="this.blur()"来消除虚线框,但在本地测试时,仅仅用这一句是不能消除的)

    日志原文:http://king001.blog.sohu.com/64577175.html

    我的意见:onFocus="this.blur()",使用起来效果还挺好,跟border是没有什么关系的,一两下用也没有必要做成函数了。

    Posted by yuvia

    2008/06/20 21:48 2008/06/20 21:48
    Response
    No Trackback , No Comment
    RSS :
    http://2008.yuvia.org/rss/response/235

    火狐3发布,大家都跟着玩。偶很落后,收藏夹全都在IE里。今天导入到火狐,出来乱码。当然是编码的问题。

    以下是两个浏览器导出的bookmark的头部代码:

    火狐的:
    <!DOCTYPE NETSCAPE-Bookmark-file-1>
    <!-- This is an automatically generated file.
    It will be read and overwritten.
    DO NOT EDIT! -->
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
    <TITLE>Bookmarks</TITLE>
    <H1 LAST_MODIFIED="1123163518">Bookmarks</H1>

    IE的:

    <!DOCTYPE NETSCAPE-Bookmark-file-1>
    <!-- This is an automatically generated file.
    It will be read and overwritten.
    Do Not Edit! -->
    <TITLE>Bookmarks</TITLE>
    <H1>Bookmarks</H1>

    把头部换成目标浏览器的就OK了。收藏夹不再呈乱码状。但是韩语搞不过来。莔。


    Posted by yuvia

    2008/06/19 16:51 2008/06/19 16:51
    Response
    No Trackback , No Comment
    RSS :
    http://2008.yuvia.org/rss/response/232


    블로그 이미지

    我和我的一二三四天

    - yuvia

    Notices

    Archives

    Authors

    1. yuvia

    Calendar

    «   2012/02   »
          1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 15 16 17 18
    19 20 21 22 23 24 25
    26 27 28 29      

    Site Stats

    Total hits:
    111948
    Today:
    79
    Yesterday:
    209