Loading

03 2012 档案

摘要:IEnumerable<Employee> empJson = from emp in employees where emp.Department == "IT Department" select emp; DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(IEnumerable<Employee>)); MemoryStream ms = new MemoryStream(); ser.WriteObject(ms, empJson); string j 阅读全文
posted @ 2012-03-31 14:31 .net's 阅读(331) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-03-31 10:46 .net's 阅读(428) 评论(0) 推荐(0)
摘要:Ever been working on a project for a while, then go work on something else, then come back after a few weeks? Sure you have.Ever come back and somebody deleted your nice nginx config file you had in there for your local dev server? Ever wonder where the hell it went? Well wonder no more!I had this h 阅读全文
posted @ 2012-03-30 16:55 .net's
摘要:首先去官方下载p4merge工具1.http://www.perforce.com/downloads/complete_list2.Browse by Platform>选择相应平台系统下载后安装3.安装完毕后,在安装根目录下会有一个p4merge(.exe)的文件Windows配置:在Git配置中如下配置(请自己写明p4merge路径):.gitconfig代码[diff] tool = p4m [difftool "p4m"] cmd = cmd = \"/cygdrive/d/development/Perforce/p4merge.exe\&quo 阅读全文
posted @ 2012-03-30 11:33 .net's 阅读(1943) 评论(0) 推荐(0)
摘要:Open the .gitconfig file under the directory "c:\Users\[UserName]\.gitconfig",append the following words:[mergetool "p4merge"] cmd = "p4merge.exe" "$BASE" "$LOCAL" "$REMOTE" "$MERGED" keepTemporaries = false trustExitCode = false 阅读全文
posted @ 2012-03-29 21:24 .net's 阅读(415) 评论(0) 推荐(0)
摘要:1, creat one file located in "C:\Users\[UserName]\" folder, named it as "difftool.sh".and in the file, write the following words:#!/bin/shp4merge "$2" "$5"2, open git bash window,type the following command words:$ git config --global diff.external "c:/use 阅读全文
posted @ 2012-03-29 21:16 .net's 阅读(388) 评论(0) 推荐(0)
摘要:There are two ways to access a property of an object:Using square bracket notation, for example hero['occupation']Using the dot notation, for example hero.occupation 阅读全文
posted @ 2012-03-28 20:46 .net's 阅读(312) 评论(0) 推荐(0)
摘要:JavaScript uses arrays to represent indexed arrays and objects to represent associative arrays. If you want a hash in JavaScript, you use an object. 阅读全文
posted @ 2012-03-28 20:44 .net's 阅读(356) 评论(0) 推荐(0)
摘要:Functions are Data This is an important concept that we'll need later on—functions in JavaScript are actually data. This means that the following two ways to define a function are exactly the same:function f(){return 1;}var f = function(){return 1;}Callback Functions Because a function is just l 阅读全文
posted @ 2012-03-27 17:04 .net's 阅读(551) 评论(0) 推荐(0)
摘要:All values become true when converted to a boolean, with the exception of the six falsy values:""nullundefined0NaNfalse 阅读全文
posted @ 2012-03-23 17:00 .net's 阅读(355) 评论(0) 推荐(0)
摘要:vmnet上面的ip没用,即使你更改了也没用。1、首先确定你的电脑连接的网络可以自动分配ip,或者至少可以在为你的本地主机分配ip后还能同时再为你的虚拟机分配一个ip2、虚拟机启动前设置桥接方式,然后启动进入。3、关闭宿主机的防火墙,查看宿主机和虚拟机各自的ip,然后互ping4、一般这样设置就没有问题了,enjoy!!!附言:装好虚拟机后vm1,vm8最好不要动他,任由他们在那里就好了,不会有什么问题。检查虚拟机是否开启了ssh服务:命令:dpkg --list|grep ssh如果没有就到官网上下载ssh组件 阅读全文
posted @ 2012-03-08 12:23 .net's 阅读(639) 评论(0) 推荐(0)