摘要: 当数据类型转换需要指定平台时,这个标准指定了一个最小的数据类型集,这些类型应该被所有符合CLI的实现所支持。另外的数据类型能通过指定平台的方式来被支持,用定制的属性和(或)定制的修饰语来指定任何要求在特定实现上的特定的操作。 阅读全文
posted @ 2010-04-07 20:17 cubean 阅读(759) 评论(1) 推荐(0) 编辑
摘要: 看到类型系统的概述时,就忍不住按图索骥,想搞清楚CLI如何定义的整个类型系统。于是翻遍了整个标准,将类型系统中最核心的、与运行平台密切相关的类型定义与说明整理了出来,以供理清思路。 阅读全文
posted @ 2010-04-07 20:00 cubean 阅读(1712) 评论(0) 推荐(1) 编辑
摘要: HBase简介HBase – Hadoop Database,是一个高可靠性、高性能、面向列、可伸缩的分布式存储系统,利用HBase技术可在廉价PC Server上搭建起大规模结构化存储集群。HBase是Google Bigtable的开源实现,类似Google Bigtable利用GFS作为其文件存储系统,HBase利用Hadoop HDFS作为其文件存储系统;Google运行MapReduce来处理Bigtable中的海量数据,HBase同样利用Hadoop MapReduce来处理HBase中的海量数据;Google Bigtable利用 Chubby作为协同服务,HBase利用Zook 阅读全文
posted @ 2013-12-03 15:44 cubean 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 借用了网上的一个例子 warehouse,用的是silverlight4+prism4,因为项目中用silverlight5,所以找到了支持sl5的prism4.1 。折腾了半天才升级成功。Demo 链接:http://files.cnblogs.com/cubean/Warehouse.zip总结心得如下:1. 要用 prism成功,主要项目中一定要引用这几个库文件:Microsoft.Practices.PrismMicrosoft.Practices.Prism.MefExtensionsMicrosoft.Practices.ServiceLocationMicrosoft.Expre 阅读全文
posted @ 2012-06-22 20:30 cubean 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: 如果IIS在.net framework之后安装,需要将一些扩展名注册到IIS扩展中,可以运行以下命令补救:c:\windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i 阅读全文
posted @ 2012-06-05 19:19 cubean 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 前段时间,因为Server2008服务器的C盘被写满,导致IIS服务直接挂掉。然后给C盘清理出空间后,发现IIS服务无法启动。报错“Error 13: The data is invalid“,然后等待插件之类的错误。网上查了一圈,发现用以下方法管用:It seems that at some point the applicationHost.config got trashed. Luckily, when you make changes to web applications in IIS it creates a backup of the applicationHost.confi 阅读全文
posted @ 2012-03-26 17:05 cubean 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005You may have faced the issue of losing the SQL Server SA password. Perhaps you followed the security best-practice of removing the builtin\Administrators from the sysadmin server role, and no one you can find is in 阅读全文
posted @ 2012-03-10 19:16 cubean 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 近日弄了段以下程序(程序发布在IIS上,程序在运行时要到网站下载文件):WebClientclient=newWebClient();client.DownloadStringCompleted+=delegate(objects,DownloadStringCompletedEventArgsde){if(de.Error!=null){LoadingMessage="Anerroroccured:"+de.Error.Message;return;}}client.DownloadProgressChanged+=delegate(objectsender,Downlo 阅读全文
posted @ 2011-12-27 14:36 cubean 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 1. 对于静态资源,如下binding: <UserControl.Resources> <l:i18n x:Key="i18n" /></UserControl.Resources><StackPanel x:Name="LayoutRoot" Orientation="Horizontal"> <TextBox /> <Button Content="{... 阅读全文
posted @ 2011-12-16 11:33 cubean 阅读(372) 评论(0) 推荐(0) 编辑
摘要: silverlight 4 Business 为企业级系统生成了很多必要的程序。但这还远远不够,我们需要继续添加这样的功能…… 阅读全文
posted @ 2011-06-26 17:22 cubean 阅读(1807) 评论(3) 推荐(1) 编辑
摘要: 1. 获取指定目录下所有的文件全路径:publicIEnumerable<String>GetFiles(stringdir){foreach(StringfileinSystem.IO.Directory.GetFiles(dir,"*.*",System.IO.SearchOption.AllDirectories)){yieldreturnfile;}} 阅读全文
posted @ 2011-06-26 17:02 cubean 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 以下是host WCF的网站web.config配置。<?xmlversion="1.0"encoding="utf-8"?><configuration><configSections><sectionGroupname="system.serviceModel"><sectionname="domainServices"type="System.ServiceModel.DomainServices.Hosting.DomainServicesSe 阅读全文
posted @ 2011-06-15 10:00 cubean 阅读(782) 评论(1) 推荐(0) 编辑
摘要: 第1问:我们已经有了GDI、GDI+和DirectX,为什么我们还需要WPF呢?图1 从User32到WPF的发展历程 首先,让我们来回顾一下微软的各种界面显示技术: User32:它提供了最基本的Windows界面,包括按钮,编辑框和其他UI元素。但是,User32缺乏的是图形图像的绘制功能,无法对屏幕实现自定义的绘制。 GDI (Graphics device interface):- 为了提供图形图像的绘制功能,微软在User32的基础上引入了GDI。GDI不仅提供了图形图像的绘制功能,同时还对硬件显示进行了更高层次的抽象。换句话说,它将硬件的复杂性封装在了GDI API中,用户使用起来 阅读全文
posted @ 2011-05-23 21:32 cubean 阅读(1409) 评论(0) 推荐(0) 编辑
摘要: 如果你不想在声明delegate的类之外调用delegate,以及除了声明delegate的类,其它类只能订阅(Subscribe,即+=)或取消订阅(Unsubscribe,即-=)时就给delegate 对象的声明加个event关键字。 阅读全文
posted @ 2011-03-30 16:38 cubean 阅读(1281) 评论(0) 推荐(1) 编辑
摘要: 起因:装了win7,然后在另一个分区里装了Ubuntu。后来格掉了Ubuntu所在的分区。系统启动后出现命令窗口:grub rescue:_正确的解决方式:1.光驱插入win7安装盘或者用USB启动(win7支持USB直接启动安装):2.选择完语言后,进入下一步,选择底下的修复而不是继续安装;3.搜索完已经安装的系统后,进入下一步;4.不要让Windows自动修复,没用的,进入命令提示符模式;5.... 阅读全文
posted @ 2010-11-29 13:18 cubean 阅读(14413) 评论(0) 推荐(0) 编辑
摘要: 修改Ubuntu 10.04 启动菜单默认系统: 一、能上网情况下的最好方法:安装startupmanager——图形启动项管理器; 二、最方便的方法:调整Windows系统的默认启动顺序(不需要修改grub.cfg); 三、网上介绍最多的方法(修改grub.cfg) 阅读全文
posted @ 2010-08-02 11:05 cubean 阅读(8611) 评论(0) 推荐(1) 编辑
摘要: 原帖:http://blog.csdn.net/jecray/archive/2007/04/13/1563978.aspx有好久一段时间,我经常使用.net 1.1开发程序,发现.net 1.1缺少类似c++中的模板功能。这种支持类型参数的功能可以使我们设计一个有泛型的类,在运行时检测实际的类型。 这样意味着用一个泛型参数T,你可 以写一个MyList<T>类,在使用MyList&... 阅读全文
posted @ 2010-05-26 13:08 cubean 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 《C#与.NET 3.5高级程序设计》作者Andrew Troelsen在这本书中提及了他在msdn的这篇文章,特此收录,以备查用。英文版:http://msdn.microsoft.com/en-us/library/ms379563%28VS.80%29.aspx中文版:http://msdn.microsoft.com/zh-cn/library/ms379563%28v=VS.80%29.... 阅读全文
posted @ 2010-05-17 15:19 cubean 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 先到这里下载一个下载工具NetMassDownloader:http://netmassdownloader.codeplex.com/releases/view/43583然后按照Documentation的说明,进入控制台下运行NetMassDownloader.exe + 参数下载。下载的前提:Microsoft only supports the .NET Framework 3.5 an... 阅读全文
posted @ 2010-04-26 12:24 cubean 阅读(747) 评论(1) 推荐(1) 编辑
摘要: 以下内容转自:http://bbs.msembed.com/showtopic-1238.aspx嵌入式入门篇:什么是嵌入式系统 http://www.helloarm.com/Embedded-Learn/58.htm嵌 入式资深工程师白话说“嵌入式” http://www.helloarm.com/Embedded-Learn/52.htm嵌 入式系统的学习途径与基本方... 阅读全文
posted @ 2010-04-26 11:03 cubean 阅读(685) 评论(0) 推荐(3) 编辑
摘要: WPF Browser Application中默认创建的.pfx数字证书有效期只有一年,并且“颁发者”、“颁发给”均为当前机器名和当前登陆用户名的组合,且客户端需要手动安装证书。以下是总结的WPF Browser Application证书制作、发布与自动下载安装完整流程 阅读全文
posted @ 2010-04-22 14:33 cubean 阅读(6630) 评论(5) 推荐(1) 编辑