上一页 1 2 3 4 5 6 7 ··· 17 下一页

2010年6月11日

XCode 下的开发 类的方法扩展 读书日志记录1.

摘要: @interface Fraction : NSObject { int numerator; int denominator;}-(Fraction*) initWithNumerator:(int)n denominator:(int)d;-(int) numerator;-(int) denominator;-(void) print;-(void) setNumerator:(int)n;-(void) setDenominator:(int)n;-(void) setNumeratorAndDenominator:(int) num andDeno:(int) den... 阅读全文

posted @ 2010-06-11 14:18 老代哥哥 阅读(171) 评论(0) 推荐(0) 编辑

XCode 开发时,一个小BUG,记录之.

摘要: 1):Rectangle.h//// Created by dhanzhang on 10-6-11.// Copyright 2010 __MyCompanyName__. All rights reserved.//#import <Cocoa/Cocoa.h>@interface Rectangle : NSObject {int width;int height;}-(Rectangle*) initWithWidth: (int) w height: (int) h;-(void) setWidth: (int) w;-(void) setHeight: (int) h; 阅读全文

posted @ 2010-06-11 11:57 老代哥哥 阅读(138) 评论(0) 推荐(0) 编辑

2010年6月10日

ASP.NET 给图片打水印

摘要: public void AddWaterOnPicture(string srcImagePath) { string waterImagePath = Server.MapPath("~/skin/mainaer/images/water_logo.png"); if (!File.Exists(waterImagePath)) return; if (!File.Exists(srcImagePath)) return; string backF... 阅读全文

posted @ 2010-06-10 06:22 老代哥哥 阅读(143) 评论(0) 推荐(0) 编辑

showModalDialog 跨页传值的问题,由A页面传到showFrame。aspx页面时

摘要: 1)A.html http://www.w3.org/1999/xhtml"> 2)B.aspx http://www.w3.org/1999/xhtml"> B页面 3) s.aspx htt... 阅读全文

posted @ 2010-06-10 06:03 老代哥哥 阅读(102) 评论(0) 推荐(0) 编辑

2010年6月9日

.NET 4.0中的Parallel.For 和 Parallel.ForEach的用法

摘要: 记录在此,以做备案。 public static void ForTest1() { int[] nums = Enumerable.Range(1, 10000000).ToArray(); long total = 0; Console.WriteLine(); // Use type parameter to make subtotal a long, not an int Parallel.For(0, nums.Length,... 阅读全文

posted @ 2010-06-09 11:00 老代哥哥 阅读(315) 评论(0) 推荐(0) 编辑

2010年6月7日

转帖:jquery插件开发方法

摘要: jQuery为开发插件提拱了两个方法,分别是: jQuery.fn.extend(object); jQuery.extend(object); jQuery.extend(object); 为扩展jQuery类本身.为类添加新的方法。 jQuery.fn.extend(object);给jQuery对象添加方法。 fn 是什么东西呢。查看jQuery代码,就不难发现。 jQuery.fn = jQuery.prototype = { init: function( selector, context ) {//.... //...... }; 原来 jQuery.f... 阅读全文

posted @ 2010-06-07 04:27 老代哥哥 阅读(147) 评论(0) 推荐(0) 编辑

利用jQuery自定义插件的方法

摘要: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml"> 无标题页 --------------备注:$.fn.XXX 是对jQuery 本身的扩展。。今日记录之。。。。 阅读全文

posted @ 2010-06-07 04:18 老代哥哥 阅读(174) 评论(0) 推荐(0) 编辑

2010年6月3日

测试日志

摘要: live writter 发布日志测试。。。 阅读全文

posted @ 2010-06-03 17:23 老代哥哥 阅读(93) 评论(0) 推荐(0) 编辑

自定义 Google GOverlay 实现图片高亮切换

摘要: <!-- copyright (c) 2009 Google inc. You are free to copy and use this sample. License can be found here: http://code.google.com/apis/ajaxsearch/faq/#license--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 阅读全文

posted @ 2010-06-03 16:54 老代哥哥 阅读(340) 评论(0) 推荐(0) 编辑

BTree 算法的实现演示

摘要: BTree 算法的实现演示 阅读全文

posted @ 2010-06-03 10:26 老代哥哥 阅读(346) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 17 下一页

导航