摘要: http://www.asp.net/web-api/overview/formats-and-model-binding/parameter-binding-in-aspnet-web-api http://www.codebetter.com/howarddierking/2011/10/11/ 阅读全文
posted @ 2015-09-23 11:43 Jeremy Wu 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Stack & Queue Implementations Basic Sorting Algorithm Implementations package cn.edu.tsinghua.stat.mid_term; /** * Created by shuaiyi on 04/11/2017. * 阅读全文
posted @ 2017-11-05 16:02 Jeremy Wu 阅读(232) 评论(0) 推荐(0) 编辑
摘要: To use codecs, we can write UTF-8 characters into csv file 阅读全文
posted @ 2017-04-21 14:25 Jeremy Wu 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Recently I find there will be some issue to use composer command, which seems too slow to finish. After my investigation, I find that this problem is 阅读全文
posted @ 2017-03-08 11:46 Jeremy Wu 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 最近在准备技术串讲,就顺便简单的聊一下什么是技术串讲吧。 rerfer to: 如何做好技术串讲 阅读全文
posted @ 2017-03-02 11:53 Jeremy Wu 阅读(928) 评论(0) 推荐(0) 编辑
摘要: Python Spark tutorial one Python Spark tutorial two 阅读全文
posted @ 2017-02-08 11:04 Jeremy Wu 阅读(317) 评论(0) 推荐(0) 编辑
摘要: It is very useful in .net we can user framework provided role manager, and easily configure in Web.Config. However, I find when I fullfil such configu 阅读全文
posted @ 2016-10-20 11:55 Jeremy Wu 阅读(445) 评论(0) 推荐(0) 编辑
摘要: Reference article: https://rkeithhill.wordpress.com/2007/09/16/effective-powershell-item-7-understanding-output/ 阅读全文
posted @ 2016-08-09 10:13 Jeremy Wu 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Recently, I find I used many different type method to invoke other scripts or exe in PowerShell. Maybe by start new process, or just use the call oper 阅读全文
posted @ 2016-07-22 16:29 Jeremy Wu 阅读(255) 评论(0) 推荐(0) 编辑
摘要: If I create a new array, and using the method Add(). Windows PowerShell will tell me : Reason: When you use the $array.Add() method, you're trying to 阅读全文
posted @ 2016-07-20 11:30 Jeremy Wu 阅读(727) 评论(0) 推荐(0) 编辑
摘要: hashtable is easy to create, access and manipulate. we simply use to create an empty hash table. and use to set the key and value pair. refer to http: 阅读全文
posted @ 2016-05-31 16:21 Jeremy Wu 阅读(162) 评论(0) 推荐(0) 编辑
摘要: When PS scripts executes, it is possibly create much user defined variables. So, sometimes these varibales may confuse us a lot. Here's a workaound: M 阅读全文
posted @ 2016-04-29 12:18 Jeremy Wu 阅读(214) 评论(0) 推荐(0) 编辑
摘要: E.g I want match the keword "3398" after "red" from the string "This is red with number 3398". Using non-capturing group regex will help me sovle this 阅读全文
posted @ 2016-04-05 10:22 Jeremy Wu 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Sometimes, if we want to do convert between two enums, firstly, we may think about one way: Obviously, it's dangerous, if the int value of TheirMale i 阅读全文
posted @ 2016-03-21 15:28 Jeremy Wu 阅读(247) 评论(0) 推荐(0) 编辑
摘要: When I want to pass some value that won't be seen by users, I find it useful to use this. It can help us creates a hidden input on the form for the fi 阅读全文
posted @ 2016-02-27 12:31 Jeremy Wu 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 先来看一下默认的连接SQL Server数据库配置 SqlConnectionStringBuilder实例化时需要使用connectionString。如:SqlConnectionStringBuild builder = new SqlConnectionStringBuild(connect... 阅读全文
posted @ 2016-01-05 10:45 Jeremy Wu 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #Select specified items from Tuple List##Select one item to form list`tupleList.Select(element => new string(element.Item1)).ToList();`##Select one it... 阅读全文
posted @ 2015-12-17 19:50 Jeremy Wu 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Yield has two great usesIt helps to provide custom iteration with out creating temp collections.It helps to do stateful iterationIteration. It creates... 阅读全文
posted @ 2015-12-14 10:10 Jeremy Wu 阅读(162) 评论(0) 推荐(0) 编辑
摘要: we can copy files by the powerful robocopy tool, and it allow copy using muliti-threaded as well.As Robocopy is generally a command-line only utility ... 阅读全文
posted @ 2015-11-25 11:43 Jeremy Wu 阅读(213) 评论(0) 推荐(0) 编辑
摘要: In .net 4.5 Framework, we can zip a file by this way: private static string CompressFile(string sourceFileName) { using (ZipA... 阅读全文
posted @ 2015-11-20 15:07 Jeremy Wu 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 悲观锁悲观锁是指假设并发更新冲突会发生,所以不管冲突是否真的发生,都会使用锁机制。悲观锁会完成以下功能:锁住读取的记录,防止其它事务读取和更新这些记录。其它事务会一直阻塞,直到这个事务结束。悲观锁是在使用了数据库的事务隔离功能的基础上,独享占用的资源,以此保证读取数据一致性,避免修改丢失。悲观锁可以... 阅读全文
posted @ 2015-10-22 10:04 Jeremy Wu 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Cyclomatic Code Complexity was first introduced by Thomas McCabe in 1976. In 1976, Thomas McCabe published a paper arguing that code complexity is d... 阅读全文
posted @ 2015-10-22 10:01 Jeremy Wu 阅读(374) 评论(0) 推荐(0) 编辑
摘要: I've met this problem for so many times and let me write a blog for solving this problem.First, you have a repository called repo1 for example, and wa... 阅读全文
posted @ 2015-10-14 10:23 Jeremy Wu 阅读(490) 评论(0) 推荐(0) 编辑
摘要: reset命令有3种方式:git reset –mixed:此为默认方式,不带任何参数的git reset,即时这种方式,它回退到某个版本,只保留源码,回退commit和index信息git reset –soft:回退到某个版本,只回退了commit的信息,不会恢复到index file一级。如果... 阅读全文
posted @ 2015-08-19 10:12 Jeremy Wu 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 请求方法是请求一定的Web页面的程序或用于特定的URL。可选用下列几种: GET:请求指定的页面信息,并返回实体主体。 HEAD:只请求页面的首部。 POST:请求服务器接受所指定的文档作为对所标识的URI的新的从属实体。 PUT:从客户端向服务器传送的数据取代指定的文档的内容。 DELETE:请求... 阅读全文
posted @ 2015-07-28 11:40 Jeremy Wu 阅读(392) 评论(0) 推荐(0) 编辑
摘要: from: http://stackoverflow.com/questions/630453/put-vs-post-in-restAccording to the HTTP/1.1 Spec:The POST method is used to request that the origin s... 阅读全文
posted @ 2015-07-27 09:57 Jeremy Wu 阅读(342) 评论(0) 推荐(0) 编辑