ITeye博客

搜索

cjc · 共 847 篇文章

Visual Studio 2008 每日提示(二)

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2008-12-03 09:54 · 评论(0)

O'Reilly Mediation公司介绍——让专业的人做专业的事

今天翻看《RESTful Web Services中文版》(W3China徐涵等翻译),不小心细细读了O'Reilly Media公司的简介,很有意思,我想这也是国内专业媒体所应该学习和借鉴的地方。摘抄如下,估计O'Reilly不会说我侵犯版权的:) O'Reilly Media, Inc.是实际上在Unix、X、Internet和其他开放系统图书领域具有领导地位的出版公司,同时也是在线出版的先锋。 从最畅销的《The Whole Internet User's Guide&Catalog》(被纽约公共图书馆评为20世纪最重要的50本书之一)到GNN(最早的Internet门户和商业网站),…

2008-12-02 18:05 · 评论(0)

Visual Studio 2008 每日提示(一)

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2008-12-01 00:45 · 评论(0)

中文版Visual Studio 2008 SP1 智能提示为英文的补丁发布

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2008-11-28 16:33 · 评论(0)

在SQL Server中使用种子表生成流水号注意顺序

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2008-11-28 11:10 · 评论(0)

一个字节造成的巨大性能差异——SQL Server存储结构

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2008-11-28 10:44 · 评论(0)

vb分割三角形

题目要求: 分割三角形的方法是从一个大的等边三角形开始,将其三边的中点进行连线,分成相同的四个三角形,除中间外的三个三角形再重复上述过程,直到满足给定条件的层次数为止. (原贴地址: http://topic.csdn.net/u/20081126/19/ea2362d5-613a-464d-8567-0ac64ca858a2.html ) 模块代码: Type point x As Single y As Single End Type Sub drawit(ByVal deep As Long, ByRef pp1 As point, ByRef pp2 As point, ByRef …

2008-11-27 09:32 · 评论(0)

感激的心境

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2008-11-27 03:03 · 评论(0)

一个九位数由1-9数字组成并前N 位被N整除

题目: 请将123456789九个数字以特定的顺序排列,组成一个9位数ABCDEFGHI(每个数字只能使用一次),使得: 1.第一位数字组成的整数可以被1整除 2.第一、二位数字组成的整数可以被2整除 3.第一、二、三位数字组成的整数可以被3整除 4.第一、二、三、四位数字组成的整数可以被4整除 ...... 9.第一、二、三...九位数字组成的整数可以被9整除 分析: 通常想法是遍历9!=362280种排列。 其实第5位E一定是5,这样可缩减到8!=40320种排列 进一步分析,偶数位一定是偶数(BDFH={2,4,6,8}),奇数位一定是奇数(ACGI={1,3,7,9}),因而只需分析…

2008-11-26 19:13 · 评论(0)

一道趣味算术题

先看几个数:312132,231213,41312432,23421314 可以看到以上字串有以下特点: 2个1 之间有1个数,2个2 之间有2个数,2个3之间有3个数... 试找出由(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8) 16个数组成的字符串满足上述条件的所有组合,即2个1 之间有1个数,2个2 之间有2个数,2个3之间有3个数...2个8之间有8个数. 1,2,3,...N共2N个数排成一行,2个1 之间有1个数,2个2 之间有2个数,...2个N之间有N个数... 设 1 放在X(1) ,X(1) + 2 2 放在X(2) ,X(2) + 3 3 放在X(3…

2008-11-26 10:31 · 评论(0)

随机排列n*n方阵

将n组1-n随机置于n*n的单元格中,使得每行,每列都是1-n的一个全排列 Sub Perm() Dim n As Long, i As Long, j As Long, arr(), brr(), t As Long n = 20 ReDim arr(n - 1, n - 1) ReDim brr(n - 1) For i = 0 To n ^ 2 - 1 arr(i \ n, i Mod n) = (i \ n + i) Mod n + 1 Next Randomize For i = n - 1 To 0 Step -1 t = Int(Rnd * i + 1) For j = 0 T…

2008-11-25 21:51 · 评论(0)

最好的自己

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…

2008-11-25 00:37 · 评论(0)

The four number game

The Four Numbers Game is a mathematical game , as taught by Dr. Paul Sally , Prof. of Mathematics at the University of Chicago . To play this game , draw a square and put a number at each corner , thus: 5___9 | | | | | | 7___13 Now form a new square based on the difference between each the values a…

2008-11-24 20:27 · 评论(0)

Which Numbers are the Sum of Two Squares?

The main goal of today's lecture is to prove the following theorem. Theorem 1.1 A number is a sum of two squares if and only if all prime factors of of the form have even exponent in the prime factorization of . Before tackling a proof, we consider a few examples. Example 1.2 . is not a sum of two …

2008-11-24 19:50 · 评论(0)

tomcat在opensuse下开机自启失败的原因

tomcat在opensuse下开机自启失败的原因 环境 opensuse 10.2 tomcat 5.5 设置信息 在/etc/init.d/boot.local中添加如下命令: /opt/tomcat/bin/startup.sh 错误描述 opensuse启动完毕后,tomcat一直没启动。 分析 1. 系统启动完毕后,手动启动tomcat可以成功,说明不是权限的问题。 2. 查找系统日志(/var/log/boot.msg),找到了如下信息: Neither the JAVA_HOME nor the JRE_HOME environment variable is defined …

2008-11-23 15:44 · 评论(0)