ITeye博客

tianyalinfeng

tianyalinfeng · 共 355 篇文章

新概念英语第三册Lesson 8

A famous monastery What are the St.Bernard dogs used for? The Great St.Bernard Pass connects Switzerland to Italy. At 2,470 metres, it is the highest mountain pass in Europe. The famous monastery of St.Bernard, which was founded in the elevventh century, lies about a mile away. For hundreds of year…

2011-05-24 12:38 · English · 评论(0) · Go

新概念英语第三册Lesson 7

Mutilated Ladies Why did Jane cook John's wallet? Has it ever happened to you? Have you ever put your trousers in the washing machine and then remembered there was a large bank note in your back pocket? When you rescued your trousers, did you find the note was whiter than white? People who live in …

2011-05-24 12:22 · English · 评论(0) · UP

海量数据处理分析

1. 海量数据处理分析 (作者 北京迈思奇科技有限公司 戴子良) 原文地址: http://blog.csdn.net/DaiZiLiang/archive/2006/12/06/1432193.aspx 笔者在实际工作中,有幸接触到海量的数据处理问题,对其进行处理是一项艰巨而复杂的任务。原因有以 下几个方面: 一、数据量过大,数据中什么情况都可能存在。如果说有10条数据,那么大不了每条去逐一检查,人为处 理,如果有上百条数据,也可以考虑,如果数据上到千万级别,甚至过亿,那不是手工能解决的了,必须 通过工具或者程序进行处理,尤其海量的数据中,什么情况都可能存在,例如,数据中某处格式出了问题 …

2011-05-24 09:18 · Database · 评论(0) · SQL Server · 算法 · 数据结构 · SQL · 数据挖掘

新概念英语第三册Lesson 6

Smash-and-grab How did Mr.Taylor try to stop the thieves? The expensive shops in a famous arcade near Piccadilly were just opening. At this time of the morning, the arcade was almost empty. Mr.Taylor, the owner of a jewellery shop was admiring a new window display. Two of his assistants had been wo…

2011-05-23 14:48 · English · 评论(0)

新概念英语第三册Lesson 5

The facts What was the consequence of the editor's insistence on facts and statistics? Editors of newspapers and magazines often go to extremes to provide their readers with unimportant facts and statistics. Last year a journalist had been instructed by a well-know magazine to write an article on t…

2011-05-23 14:04 · English · 评论(0) · Go

判断变量是否是日期类型

function testObjectType(val) { var t; switch(val) { case null: t = "null"; break; case undefined: t = "undefined"; break; default: t = Object.prototype.toString.call(val).match(/object\s(\w+)/)[1]; break; } return t.toLowerCase(); } 如果是日期类型则返回值是"date"

2011-05-20 14:46 · Js · 评论(0)

日期格式化函数

Date.prototype.pattern=function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 "h+" : this.getHours()%12 == 0 ? 12 : this.getHours()%12, //小时 "H+" : this.getHours(), //小时 "m+" : this.getMinutes(), //分 "s+" : this.getSeconds(), //秒 "q+" : Math.floor((this.getMonth()+3)/3)…

2011-05-20 14:43 · Js · 评论(0) · prototype

数值转为字符串

UPDATE my_resume SET Name = Name + CONVERT(nvarchar, Id) Id,int类型 Name,nvarchar类型

2011-05-20 14:34 · Sqlserver · 评论(0)

jquery 筛选器

$("a[id^='pageTag']").click(function(){ alert(this.id); }); 其中a与中括号之间如果有空格,如$("a [id^='pageTag']"),则jquery不识别

2011-05-17 14:04 · Jquery · 评论(2) · jQuery

static方法 可以重载但没有多态

class Animal{ public static void m1(){ System.out.println("Animal m1()"); } } class Bird extends Animal{ public static void m1(){ System.out.println("Bird m1()"); } } public class Test{ public static void main(String[] args){ Animal a=new Brid(); a.m1(); } } 打印结果是Animal m1() 如果不是静态方法则打印结果是Brid m1()

2011-05-16 17:36 · Java · 评论(0)

新概念英语第三册Lesson 4

The double life of Alfred Bloggs Why did Alf want a white-collar job? These days, people who do manual work often receive far more money than people who work in offices. People who work in offices are frequently referred to as 'white-collar workers' for the simple reason that they usually wear a co…

2011-05-16 13:42 · English · 评论(0) · Go · Office

将截断字符串或二进制数据

要插入的数据超过数据库定义的长度

2011-05-16 13:03 · Java · 评论(0)

SCJP 学习笔记

第1 章声明和访问控制 目标一 创建数组 1、 int k[]=new int[] {0,1,2,3,4};//right int k=new int[5] {0,1,2,3,4} //Wrong, will not compile! 2、 问题 1)怎样通过一个语句改变数组大小同时保持原值不变? 1) Use the setSize method of the Array class 2) Use Util.setSize(int iNewSize) 3) use the size() operator 4) None of the above 答案 1) 4) None of the a…

2011-05-13 09:45 · Java · 评论(0) · C · C++ · 游戏 · C#

新概念英语第三册Lesson 3

An unknown goddess How did the archaeologists know that the statue was a goddess? Some time ago, an interesting discovery was made by archaeologists on the Aegean island of Kea. An American team explored a temple which stands in an ancient city on the promontory of Ayia Irini. The city at one time …

2011-05-12 15:05 · English · 评论(0) · C · C++ · C#

新概念英语第三册Lesson 2

Thirteen equals one Was the vicar pleased that the clock was striking? Why? Our vicar is always raising money for one cause or another, but he has never managed to get enough money to have the church clock repaired. The big clock which used to strike the hours day and night was damaged many years a…

2011-05-12 13:24 · English · 评论(0) · Go · UP