低风险高收益的投资平台 17 May 2014 Jeff Other 其他, Random Thought 随想随记 早在2010年,在平安公司工作的大学同学告诉我,他们正准备上一个 P2P 借贷项目。我好奇地问,什么是 P2P 借贷?我是一名程序员,对网络世界的 P2P 有所了解,但是对于金融世界是一片茫然。他说,你听过“人人贷”吗?我们就是要仿照这个模式。那次谈完话,我回家立即搜索“人人贷”,从而开始接触和使用人人贷,居然成为了人人贷最早的一批使用者。 网络上的 P2P 应用刚开始时很少有人了解,之后一发而... [More]
[Solved] SyntaxHighlighter issues after upgrading BlogEngine.NET from 2.6 to 2.7 21 April 2014 Jeff BlogEngine.NET, JavaScript Problem: I updated my BlogEngine.NET from 2.6 to 2.7, and everything goes well. But one day I found that the syntax highlighter were functioning horribly poor. They are: Js error thrown on every ... [More]
[Solved] Uncaught Error: Can’t find closing comment tag to match: ko if: ***. 17 April 2014 Jeff JavaScript Background: I spent a lot of time to debug this knockout js error as the title shows, and finally I found the cause which made me kind of angry because it was not worth wasting so much time on it. L... [More]
Bundle javascripts safely in ASP.NET MVC 01 April 2014 Jeff ASP.NET, MVC, C# Problem: The other day I spent a lot of time to figure out that why my web application didn’t work correctly is because of the ASP.NET MVC default JavaScript bundle renamed the function name of Canva... [More]
Git subtree cheatsheet 02 March 2014 Jeff Computer Network 计算机网络 1. List all the existing subtrees under current Git repository Usage: git log | grep git-subtree-dir | tr -d ' ' | cut -d ":" -f2 | sort |uniq Example: $ git log | grep git-subtree-dir | ... [More]
Replace Telerik window with jquery-ui dialog 28 February 2014 Jeff ASP.NET, C#, JavaScript When you need to display some information via pop up window, it's better to use jquery-ui dialog than Telerik window. Not only because the Telerik is not supported any more, but also because the jquer... [More]
Solved: Error trying to read the VSIX manifest file "obj\Release\extension.vsixmanifest" when building VSIX project. 13 February 2014 Jeff Programming 编程 Problem: When building a VSIX project on Windows 8 through Visual studio, the following errors occurs: Error trying to read the VSIX manifest file "obj\Release\extension.vsixmanifest". The netwo... [More]
Git subtree 命令的几条常用场景 13 February 2014 Jeff Computer Network 计算机网络 1. 查看当前 Git 仓库有哪些已建立的 Subtree 语法:git log | grep git-subtree-dir | tr -d ' ' | cut -d ":" -f2 | sort |uniq 示例: $ git log | grep git-subtree-dir | tr -d ' ' | cut -d ":" -f2 | sor... [More]
Speed up opening file explorer in Windows 8 07 February 2014 Jeff Computer Network 计算机网络 Problem: When opening file explorer in Windows 8, the desktop seems frozen for quite a while until it is opened eventually. Cause: Did some searching on internet and found this problem exists i... [More]
将小数转化为分数的算法 21 January 2014 Jeff Math 数学, Programming 编程, JavaScript 问题: 对于一个分数,使用除法就能够得到其小数表示。如: 2/3 = 0.666666… 一般计算器都支持将分数转化成小数的计算模式。但是反过来,拿到一个小数,怎么得到其分数的表示形式呢?似乎没有像除法这样直接的算法,而且一般的计算器和计算程序都没有将分数转化成小数的模式。 比如,拿到一个小数:0.571428571428…,怎么知道它等于4/7? 分析: 小数可分为以下几种: ... [More]