摘要:
using System;using System.IO;using System.Text;using System.Data;using System.Reflection;using System.Diagnostics;using System.Collections;//using cfg = System.Configuration; /// <summary> /// 说 明:Excel输出打印模块 /// 暂时不提供操作Excel对象样式方法,样式可以在Excel模板中设置好 /// </summary> public class ExcelHelper 阅读全文
posted @ 2012-05-11 23:04
ChaunceyHao
阅读(1069)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; namespace FlyweightPattern { // Flyweight Pattern Judith Bishop Sept 07 // Defined for state which is images // IFlyweight Interface public interface IFlyweight { void Load (string filename); void Dis.. 阅读全文
posted @ 2012-05-11 17:23
ChaunceyHao
阅读(203)
评论(0)
推荐(0)
摘要:
IKVM.NET(IKVM)是个面向.NET与Mono平台的JVM,用户可以通过它直接运行Java应用。近日,来自微软的Erik Meijer与IKVM创建者Jeroen Frijters讨论了该项目的几个方面。此次讨论的涉及面非常广,从IKVM的内核谈到了该项目的未来目标。其要点如下所示: Frijters从2002年该项目启动开始就作为项目的主开发者。此次讨论首先从Frijters介绍IKVM是如何成为Mono项目的一部分 (形成一种双赢的局面,两个项目可以彼此贡献补丁)开始。从架构上来说,IKVM在.NET上完全实现出了Java的内存模型。Frijters尝试尽量 不使用包装器,在某些情 阅读全文
posted @ 2012-05-11 17:01
ChaunceyHao
阅读(412)
评论(0)
推荐(0)
摘要:
Google本月初发布了企业级大数据分析的云服务——BigQuery为正式付费产品,这是Google迈向企业级云计算领域的关键一步。BigQuery本质上是一个云平台基础服务PaaS,旨在实时处理TB级别的大数据,并提供UI界面和Rest API两种访问方式。 BigQuery的产品经理Ju-kay Kwek,在博客和采访中是这样评价自己的产品: BigQuery可以使得企业用户,在不需要投资任何软硬件的情况下,获得实时处理海量数据的能力,5个TB的数据可以在15秒返回结果。 BigQuery团队的工程师haberman,在Hack News社区发表评论: 从技术的角度,BigQuer... 阅读全文
posted @ 2012-05-11 17:01
ChaunceyHao
阅读(444)
评论(0)
推荐(0)
摘要:
现在已经出现了一个静态编译的Ruby变体,用于构建面向iOS设备的应用。该语言叫做RubyMotion,来自于HipByte的这门语言与工具链完全遵循Apple的App Store指导方针。为了做到这一点,他们不得不去掉了JIT编译器与解释器,这会导致一些Ruby开发者觉得非常受限制。 其工具支持非常弱。RubyMotion并没有任何IDE支持。HipByte希望开发者使用自己的文本编辑器与命令行终端来完成大多数开发任务。 运行时则要好很多。RubyMotion完全支持多线程编程而不会遇到全局解释器锁的不便。它甚至为Grand Central Dispatch(Apple 的用于并发与并行编程 阅读全文
posted @ 2012-05-11 16:44
ChaunceyHao
阅读(190)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using FlyweightPattern; // The Client class Client { // Shared state - the images static FlyweightFactory album = new FlyweightFactory(); // Unshared state - the groups static Dictionary <string,List 阅读全文
posted @ 2012-05-11 16:26
ChaunceyHao
阅读(125)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Text; // for StringBuilder namespace CompositePattern { // The Interface public interface IComponent <T> { void Add(IComponent <T> c); IComponent <T> Remove(T s); string Display(int depth); IComponent <T> Find(T s); 阅读全文
posted @ 2012-05-11 16:24
ChaunceyHao
阅读(215)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.IO; using CompositePattern; // Composite Pattern Judith Bishop August 2007 // The pattern is generic, and an example is given for a real world client // The Client class CompositePatternExample { static void Main () { IComponent <string 阅读全文
posted @ 2012-05-11 16:23
ChaunceyHao
阅读(319)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; // Proxy Pattern Example Judith Bishop Aug 2007 // Sets up a SpaceBook page with registration and authentication class SpaceBookSystem { // The Subject private class SpaceBook { static SortedList <string,SpaceBook> community = new SortedList < 阅读全文
posted @ 2012-05-11 14:23
ChaunceyHao
阅读(159)
评论(0)
推荐(0)
摘要:
using System; // Proxy Pattern Judith Bishop Dec 2006 // Shows virtual and protection proxies class SubjectAccessor { public interface ISubject { string Request (); } private class Subject { public string Request() { return "Subject Request " + "Choose left door\n"; } } public cl 阅读全文
posted @ 2012-05-11 14:23
ChaunceyHao
阅读(111)
评论(0)
推荐(0)
摘要:
using System; //Decorator Pattern Judith Bishop Dec 2006 // Shows two decorators and the output of various // combinations of the decorators on the basic component interface IComponent { string Operation(); } class Component : IComponent { public string Operation () { return "I am walking " 阅读全文
posted @ 2012-05-11 14:15
ChaunceyHao
阅读(120)
评论(0)
推荐(0)
摘要:
using System; using System.Reflection; using ObjectStructure; // Visitor Pattern - Example Judith Bishop October 2007 // Sets up an object structure and visits it // in two ways - for counting using reflection namespace ObjectStructure { class Element { public Element Next {get; set;} public Elem... 阅读全文
posted @ 2012-05-11 14:13
ChaunceyHao
阅读(137)
评论(0)
推荐(0)
浙公网安备 33010602011771号