瑞雪年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: 订阅 订阅 :: 管理 ::
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2011年6月26日

摘要: 在我们学习一门新的语言时,总要把它和我们熟悉的语言对比着来学习,就象学习英语时,都要记单词的汉语意思,来帮助我们对单词的理解和记忆。下面通过与C#的对比来学习Objective-C, 首先对比一下语言的定义: Objective-C,通常写作ObjC和较少用的Objective C或Obj-C,是在C的基础上,加入面向对象特性扩充而成的编程语言。目前,Objective-C主要应用于Mac OS X和iOS这两个NeXTSTEP的派生系统,而在NeXTSTEP和OpenStep中它更是基本语言。Objective-C可以在任何gcc支持的平台上进行编译,因为gcc本地支持Objective-. 阅读全文
posted @ 2011-06-26 20:11 瑞雪年 阅读(1981) 评论(7) 推荐(3) 编辑

2011年6月16日

摘要: 今天看到了一篇关于Windows支撑世界的文章,不知怎的,我却想到了国货,这和国货有半毛钱的关系吗?!细想一下,原来我对Linux和国货的情感是相似的,所以,大脑才产生了如此的联想。会不会可以有篇叫《这是一个由进口货支撑的中国》的文章呢?!就是因为有你对Windows的“支持”,才有了今天的Windows支撑世界,如果你能支持国货,相信一定会有一天国货可以支撑中国,就像大家都支持Linux,Linux一定可以支撑世界一样!!! --即使这种支持很微弱,但也是一种支持!!! 阅读全文
posted @ 2011-06-16 21:22 瑞雪年 阅读(207) 评论(0) 推荐(0) 编辑

2011年5月20日

摘要: 之前ubuntu使用Canonical时,我曾尝试过,严重受挫(2010/06/13).这次在得知ubuntu转投OpenStack后赶紧再次尝试,真不愧时代进步啊!!!基本上全自动化,无悬念搞定!!!wget --no-check-certificate https://github.com/elasticdog/OpenStack-NOVA-Installer-Script/raw/master/nova-installsudo chmod 755 nova-installsudo bash nova-install -t cloudsudo bash nova-install -t co 阅读全文
posted @ 2011-05-20 00:36 瑞雪年 阅读(6017) 评论(8) 推荐(2) 编辑

2011年5月17日

摘要: Mono喜迁新家-http://www.xamarin.com/http://tirania.org/blog/archive/2011/May-16.html发条新闻赚点人气!Today we start Xamarin, our new company focused on Mono-based products.今天我们开始Xamarin,我们公司关注基于Mono的产品。These are some of the things that we will be doing at Xamarin: 这是一些我们在Xamarin将作的:Build a new commercial .NET o 阅读全文
posted @ 2011-05-17 08:19 瑞雪年 阅读(2741) 评论(12) 推荐(5) 编辑

2011年5月7日

摘要: 说实话,写的太粗糙,真有点不好意思拿出来示人,可是又一想,写都写了,还怕给人看?!俗话有说,“丑媳妇早晚还是要见公婆”, 不是吗?!主要功能:通过自定义Razor(C#)表达式,对Orchard中Content的Handler添加处理程序,说白了,就是在内容有新建,发布等时,可以自已干点啥,比如:通过输入的内容创建另外类型的内容。支持IContentHandler 定义的全部事件:namespace Orchard.ContentManagement.Handlers { public interface IContentHandler : IDependency { void Activat 阅读全文
posted @ 2011-05-07 19:42 瑞雪年 阅读(1145) 评论(2) 推荐(0) 编辑

2011年5月5日

摘要: 书接上回:Razor view for Orchard又添加了些新功能:1. Razor Filter for Body Part:正常Body内容,在开启此Feature后,可以启用对Razor表达式的执行: 1.1 开启Razor Filter 1.2 创建新页 2.3 查看效果 2.4 对比未开启Razor Filter的效果2. 在编辑Razor时 ,添加了TinyMce支持,可以作到HTML"所见即所得" 2.1 开启Razor TinyMce 2.2 使用TinyMce编辑Razor Page 2.3 查看效果3. 重新定义了Razor Model,添加了Con 阅读全文
posted @ 2011-05-05 22:28 瑞雪年 阅读(1491) 评论(3) 推荐(1) 编辑

2011年5月4日

摘要: 本人刚刚创建了个项目Razor4Orchard(http://razor4orchard.codeplex.com/), 是为Orchard(http://orchard.codeplex.com/)开发的一个模块,使用了RazorEngine(http://razorengine.codeplex.com/)用于在Orchard页面上使用C#代码定制更加丰富的扩展功能。可以在asp.net mvc3项目中测试通过后*.cshtml 代码直接的粘贴至页面上使用。如何使用:1. 安装Razor4Orchard模块:从http://razor4orchard.codeplex.com/是下载Orc 阅读全文
posted @ 2011-05-04 21:27 瑞雪年 阅读(1818) 评论(6) 推荐(1) 编辑

2011年4月23日

摘要: http://drupal.org/project/csharphttp://drupal.org/node/1136450Download Size md5 hashcsharp-6.x-1.0.tar.gz 8.23 KB ae6a76a65c7bdd5d81755e6ab542dff8csharp-6.x-1.0.zip 9.31 KB b4ca4f865b980f59292c9543dc757e97 阅读全文
posted @ 2011-04-23 23:32 瑞雪年 阅读(343) 评论(0) 推荐(0) 编辑

2011年4月16日

摘要: 准备:PostgreSQL RDBMS version 8.2 或更高 (推荐8.4)tasksel install postgresql-serverMono 2.10.1 目前的Ubuntu默认安装最高支持到mono 2.6.7,所以要上2.10.1可以自已编译,参见: http://mono-project.com/Compiling_Mono 编译mod_mono,可在这里下载源码: http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.10.tar.bz2Apache 2apt-get install apache2添加 阅读全文
posted @ 2011-04-16 23:09 瑞雪年 阅读(1746) 评论(1) 推荐(3) 编辑

摘要: git clone --branch master username@git.xxx.xxx:xxxxxxx/username/xxxxxx.gitgit add -Agit statusgit config --global user.name "username"git -commit -m "commint message"git pushgit pull origin mastergit add filename1 filename2git remote add xxxx username@git.xxx.xxx:xxxxxxx/username 阅读全文
posted @ 2011-04-16 13:52 瑞雪年 阅读(247) 评论(0) 推荐(0) 编辑

2011年3月22日

摘要: 1. Add JSONRPC Serverwget http://ftp.drupal.org/files/projects/services-6.x-2.4.tar.gztar xvfservices-6.x-2.4.tar.gzwget http://ftp.drupal.org/files/projects/jsonrpc_server-6.x-1.3.tar.gztar xvfjsonrpc_server-6.x-1.3.tar.gz2. Call Drupal JSONRPC service with Javascript<html> <head> <t 阅读全文
posted @ 2011-03-22 20:31 瑞雪年 阅读(301) 评论(0) 推荐(0) 编辑

2011年3月16日

摘要: 阅读全文
posted @ 2011-03-16 00:25 瑞雪年 阅读(154) 评论(0) 推荐(0) 编辑

2011年3月11日

摘要: 总结:就是一带触摸的笔记本。 阅读全文
posted @ 2011-03-11 22:14 瑞雪年 阅读(327) 评论(1) 推荐(0) 编辑

2011年3月3日

摘要: 这几天的学习Drupal, 发现居然没找到这样的东东(有知道的不妨告诉一声,先谢过!),刚刚写了个Drupal的Module,名字叫CSharp filter, 已经上传到http://drupal.org, 目前状态正在审批。不过,这里还是可以“尝鲜”的。name = CSharp filterdescription = Allows embedded CSharp code/snippets to be evaluated.core = 6.x下载地址:http://dynamicdllimport.googlecode.com/files/csharp.tar.gz效果图: 阅读全文
posted @ 2011-03-03 01:53 瑞雪年 阅读(1428) 评论(5) 推荐(0) 编辑

2011年3月2日

摘要: Create new content type-> go to http://localhost/kb/admin/content/types/addCreate views and pages1. Enable "Chaos tool suite", "Panels" and "Views" modules.2. -> http://localhost/kb/admin/build/views/add3. -> http://localhost/kb/admin/build/pages/addAdd rules-& 阅读全文
posted @ 2011-03-02 15:16 瑞雪年 阅读(206) 评论(2) 推荐(0) 编辑

2011年3月1日

摘要: -->Install Themes and Modulessudo sucd /var/www/sites/allmkdir modulesmkdir themeschmod 777 *cd themeswgethttp://ftp.drupal.org/files/projects/acquia_marina-6.x-3.1.tar.gzwgethttp://ftp.drupal.org/files/projects/pixture_reloaded-6.x-3.2.tar.gzls -la *.tar.gz | awk '{print $8}' | xargs -t 阅读全文
posted @ 2011-03-01 13:29 瑞雪年 阅读(335) 评论(3) 推荐(0) 编辑

2011年2月28日

摘要: 安装Drupal.-> Install LAMPtasksel install lamp-server-> Create databasemysql -u root -pcreate user 'kb'@'localhost' identified by 'password';create database kbdb;grant all privileges on kbdb.* to 'kb'@'localhost';-> Prepare for clean URLa2enmod rewrite/ 阅读全文
posted @ 2011-02-28 15:57 瑞雪年 阅读(270) 评论(0) 推荐(0) 编辑

2011年1月1日

摘要: 不为别的,就上来留个记号。 阅读全文
posted @ 2011-01-01 00:45 瑞雪年 阅读(163) 评论(0) 推荐(0) 编辑

2010年12月26日

摘要: 刚刚,看到一个帖子的讨论提到“property和field有什么区别”, 然后,就突然想写段代码看一下。情况是这样的,对于property和field的使用,代码是不同的,对于field使用的IL中,stfld设置数据,ldfld加载数据,我们知道property最终是被生成方法的,所以对于property的使用,实际是对方法的调用,set_ 设置数据,get_ 加载数据。对于“没有逻辑”的property,看上去和field没有曲别,但是,一旦“没有逻辑”成为“过去”,(需求会变化,你懂的。)有没有使用property情况就不同了,使用property的情况下,只需要修改相应的逻辑代码,并编 阅读全文
posted @ 2010-12-26 02:34 瑞雪年 阅读(1848) 评论(1) 推荐(0) 编辑

2010年12月5日

摘要: 好吧,我也“今天闲来无事"给dac添加了读取SharePoint List的功能,说白了,就是把SharePoint的List看成数据库的表,这样,就可以把http://moss这样的地址当成数据库连接字符串,把caml语句当成command,像使用真的数据库一样获取数据。代码代码代码代码[代码]注:1. “今天闲来无事",纯属剽窃,原创请见:http://www.cnblogs.com/gongji/archive/2010/12/04/1896009.html2. 请使用“EntitiesGenerator”,选择从SharePoint导入,生成实体项目。3. http://dac.cod 阅读全文
posted @ 2010-12-05 22:28 瑞雪年 阅读(1364) 评论(0) 推荐(0) 编辑

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