小说网 找小说 无限小说 烟雨红尘 幻想小说 酷文学 深夜书屋

01 2010 档案

zend db 多表查询 LIMIT BUG 解决方法
摘要:zend db 多表查询 LIMIT BUG 解决方法 将Zend/Db/Adapter/Pdo/mssql.php中 如下方法替换 。 public function limit($sql, $count, $offset = 0) { $count = intva... 阅读全文

posted @ 2010-01-28 17:35 王峰炬 阅读(129) 评论(0) 推荐(0)

jQuery 控制表单里回车键 自动下一个标签
摘要:jQuery 控制表单里回车键 自动下一个标签 默认情况下,在表单(form)的输入框(input)里按回车将会提交(submit)表单。这会造成一个问题:当用户在填写表单时不小心按了回车键(特别是输入框含有历史记录时,这种情况经常发生),这时不完整的表单会被提交。我们可以通过Javas... 阅读全文

posted @ 2010-01-27 09:01 王峰炬 阅读(139) 评论(0) 推荐(0)

Firefox 图片模糊的问题
摘要:Firefox 图片模糊的问题 Firefox(3.0) 图片很模糊, 字都看不清楚, 以为是图片本身的问题, 但用IE看的时候却非常清楚,很是奇怪. 后来在网上查了一下, 发现遇到这个问题的人还不少. 解决方法你肯定想不到. 那就是..................Ctrl+0 <=是零... 阅读全文

posted @ 2010-01-26 15:11 王峰炬 阅读(132) 评论(0) 推荐(0)

VBA获取新浪博客列表
摘要:Sub Blogsina() Const url As String = "http://www.google.cn/search?q=site%3Ablog.sina.com.cn/u/&num=100&start=" Dim n As Long, p As Long, s() ... 阅读全文

posted @ 2010-01-25 16:57 王峰炬 阅读(161) 评论(0) 推荐(0)

Number of sets of natural numbers less than n which sum to n.
摘要:The integer sequence was in : A111133 Seems easy. Sub Calc() Dim n As Long, count(), i As Long n = 500 ReDim count(n) count(0) = ... 阅读全文

posted @ 2010-01-17 17:07 王峰炬 阅读(228) 评论(0) 推荐(0)

一元多项式的幂
摘要:Function PowerPolynomial(ByVal f As String, ByVal n As Long) As String If n = 1 Then power = f: Exit Function Dim a() As Long, b, c(), s() As... 阅读全文

posted @ 2010-01-17 14:23 王峰炬 阅读(178) 评论(0) 推荐(0)

SQL2000 修改表所有者的方法
摘要:SQL2000 修改表所有者的方法 单个修改所有者sql语句如下: 查询分析器输入:EXEC sp_changeobjectowner 'user.table', 'dbo' user.table的意思为:所有者.表名,比如oblog.oblog_user,以前的语句表示将table这张表... 阅读全文

posted @ 2010-01-16 09:02 王峰炬 阅读(139) 评论(0) 推荐(0)

jquery tablelist Tablesorter 表格控件
摘要:jquery tablelist Tablesorter 表格控件 Tablesorter 是一个用来直接在浏览器上对表格数据进行排序的jQuery插件,无需再次刷新页面,支持多种单元格数据类型,例如数值、字符串、日期和自定义排序。 主要的特点包括: 多列排序 支持文本、URL地址、数值... 阅读全文

posted @ 2010-01-15 11:51 王峰炬 阅读(179) 评论(0) 推荐(0)

An UDF to calculate weekday
摘要:It seems feasible . Function myweekday(ByVal y As Long, ByVal m As Long, ByVal d As Long) As Long Dim bias As Long If m > 2 Then b... 阅读全文

posted @ 2010-01-09 23:50 王峰炬 阅读(99) 评论(0) 推荐(0)

delphi 注册 com 对象的方法
摘要:delphi 注册 com 对象的方法 procedure TForm1.Button3Click(Sender: TObject); var Sd: TSecurityDescriptor; begin InitializeSecurityDescriptor(@Sd, SECUR... 阅读全文

posted @ 2010-01-09 12:46 王峰炬 阅读(195) 评论(0) 推荐(0)

delphi dll 静态调用和动态调用方法总结
摘要:dll 调用方法有 静态调用和动态调用两种方法 用到的dll为上篇文章所编写的dll. 总结如下: Unit Unit1; Interface Uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls... 阅读全文

posted @ 2010-01-09 12:40 王峰炬 阅读(211) 评论(0) 推荐(0)

delphi dll 实例 与 dll窗体实例
摘要:delphi dll 实例 与 dll窗体实例 本动态链接库方法有 Min,Max,SynAPP,ShowForm,showmyform dll工程文件 Library Project1; uses dllUnit1 in 'dllUnit1.pas' {Form1}; funct... 阅读全文

posted @ 2010-01-09 12:35 王峰炬 阅读(168) 评论(0) 推荐(0)

delphi 编写的com 对象 用delphi 的调用实例
摘要:delphi 编写的com 对象 用delphi 的调用实例 COM 对象与 前一篇文章的 PHP调用的COM为同一个对象,故不例出COM. procedure TForm1.Button4Click(Sender: TObject); var myCounter, mReturn: va... 阅读全文

posted @ 2010-01-09 09:39 王峰炬 阅读(136) 评论(0) 推荐(0)

delphi 编写的com 对象 用php调用的实例
摘要:delphi 编写的com 对象 用php调用 的 实例 delphi: function Tmyxml.Get_xml: WideString; begin Get_xml:='wo shi a lei!'; end; function Tmyxml.Get_xmld... 阅读全文

posted @ 2010-01-08 17:23 王峰炬 阅读(128) 评论(0) 推荐(0)

delphi 生成xml 方法 与 delphi txt文件操作
摘要:Procedure TForm1.Button1Click(Sender: TObject); Var xmlstr,FileName: String; f: Textfile; Begin xmlStr := ''; xmlstr := xmlstr + '张三男'; sho... 阅读全文

posted @ 2010-01-08 14:13 王峰炬 阅读(216) 评论(0) 推荐(0)

msde 安装一半倒退 msde 安装不上 解决方法
摘要:msde 安装一半倒退 msde 安装不上 解决方法 安装MSDE要开几个服务,有些XP版本停掉了这几个服务的,把它们打开就可以正常安装MSDE了, 下面是要开着的几个服务: WINDOWS INSTALLER WORKSTATION SERVER 其中WORKSTATION服务要一直开着才... 阅读全文

posted @ 2010-01-06 15:30 王峰炬 阅读(165) 评论(0) 推荐(0)

百度输入框的秘密
摘要:前不久,百度发布了手机输入法。相比较之前的点讯输入法,在用户桌面增加了一个百度搜索框。这里来探究一下搜索框的一些做法。 在默认状态下,搜索框是隐藏的,只在Menubar上有一个百度图标显示,如图 当点击百度图标时,图标隐藏,搜索框弹出,如图 搜索框还自适应输入法面板,如图 用CE... 阅读全文

posted @ 2010-01-06 11:39 王峰炬 阅读(159) 评论(0) 推荐(0)

SSH酒店点菜系统笔记
摘要:我做的是一个酒店点菜系统,其中包括用户表,VIP表,前台管理表,后台管理表,菜表,汤表,酒表,点心表,菜单表共九个表,用户分为普通用户和VIP,后者可以给予优惠。用户表和VIP表要和菜单表关联为外键,用来给每一个用户添加一份菜单;用户每次注册成功后,才能和VIP登陆,成功后进入点菜模块,其... 阅读全文

posted @ 2010-01-04 21:22 王峰炬 阅读(203) 评论(0) 推荐(0)

Four dogs in a square with two distinct distances
摘要:How many ways can four dogs be arranged in a square so that the six distances between pairs of them take on only two different values? It's funnin... 阅读全文

posted @ 2010-01-04 17:57 王峰炬 阅读(159) 评论(0) 推荐(0)

Two math problems in http://projecteureka.org sumitted by me.
摘要:http://projecteureka.org/problem/question/814 Problem 814 - Tringles whose perimeter are 12345 Count different Tringles whose all 3 side length... 阅读全文

posted @ 2010-01-03 13:57 王峰炬 阅读(113) 评论(0) 推荐(0)

Fundamental Solution to Pell's Equation
摘要:From Wikipedia, Pell's equation is any Diophantine equation of the form where n is a nonsquare integer and x and y are integers. We can calcul... 阅读全文

posted @ 2010-01-03 13:19 王峰炬 阅读(169) 评论(0) 推荐(0)

导航