摘要: 源码地址:https://github.com/whj198579 linkedlist 链表相关的算法 单链表倒置 linkedlist.c 实现单链表倒置非递归和递归两种算法 链表倒数第K个节点 backkth.c 链表倒数第K个节点,如果K大于链表长度则返回NULL 单链表的中间节点 fin... 阅读全文
posted @ 2013-05-15 09:58 BlueMountain_79 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 下载、配置环境、build和运行参考的都是Android Source提供的文档,包括:Initializing a Build Environment,Downloading the Source和Building the System。我是在OSX 10.10.3上编译的AOSP,记录一下中途碰... 阅读全文
posted @ 2015-04-26 22:09 BlueMountain_79 阅读(1604) 评论(0) 推荐(0) 编辑
摘要: Mac上JDK的版本为1.8,编译AOSP时发现需要JDK 1.7。想找一种比较容易切换JDK版本的方式,经过一番Google发现Jenv比较合适。安装Jenv至少有三种方式:-$ git clone https://github.com/gcuisinier/jenv.git ~/.jenv-$ ... 阅读全文
posted @ 2015-04-26 18:38 BlueMountain_79 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 1 CC=gcc 2 DEPS=base.h 3 OBJ=linkedlist.o base.o 4 5 %.o: %c $(DEPS) 6 $(CC) -c -o $@ $< 7 8 linkedlist: $(OBJ) 9 $(CC) -o $@ $^10 11 clear:12 rm $(OBJ) linkedlist 参考:http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/ 阅读全文
posted @ 2013-05-06 12:57 BlueMountain_79 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Class: Class 1 [Serializable] 2 class SerializeDemo 3 { 4 public String Name; 5 public Int32 Score; 6 [NonSerialized] 7 public String Grade; 8 } D... 阅读全文
posted @ 2013-04-26 21:42 BlueMountain_79 阅读(791) 评论(1) 推荐(0) 编辑
摘要: 大概翻译了一下。 来源:http://blogs.microsoft.co.il/blogs/idof/archive/2011/08/10/wsdl-vs-mex-knockout-or-tie.aspx 当教WCF时候经常被问到,通过WSDL的Http-GET网址方式获取服务的元数据 与 通过... 阅读全文
posted @ 2013-04-14 21:54 BlueMountain_79 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 一、WCF服务 WCF服务有两种方案可以发布自己的元数据。一种是基于HTTP-GET协议提供元数据;另一种则为MEX终结点元数据交换方式,和WCF服务一样使用一个专门的终结点,称为MEX元数据交换终结点。 《basicHttpBinding,HTTP-GET,SOAP》采用HTTP-GET协议提供元... 阅读全文
posted @ 2013-04-12 10:44 BlueMountain_79 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 一、WCF服务 写了一个简单的WCF服务,配置文件表明,本服务采用basicHttpBinding,即采用Http协议传输SOAP消息,采用HTTP-GET协议提供元数据。 服务契约: 服务契约 1 [ServiceContract] 2 public interface Ihttpsoap ... 阅读全文
posted @ 2013-04-11 18:08 BlueMountain_79 阅读(537) 评论(0) 推荐(0) 编辑
摘要: SSH开启 在osx中开启ssh访问非常简单,只需要打开“系统偏好设置”并且点击“共享”图标即可。 选中下图中的check box即允许远程登陆。server处于下图的这个状态时,处于两个选择,可以远程登陆到所有用户,也可以远程登陆到指定用户。 创建新的git用户,只需返回到“系统偏好设... 阅读全文
posted @ 2013-04-09 09:32 BlueMountain_79 阅读(4547) 评论(0) 推荐(0) 编辑
摘要: 来源:http://www.codeproject.com/Articles/165368/WPF-MVVM-Quick-Start-Tutorial?msg=4486786#xx4486786xx,对关键的地方进行了翻译。 基本点: 1、WPF最重要的事情是数据绑定(data binding)。... 阅读全文
posted @ 2013-03-18 22:02 BlueMountain_79 阅读(602) 评论(0) 推荐(0) 编辑