2021年1月8日
摘要:
1. 概述 2. 框架比较 3. 为什么国内Angular不是很流行 1. 概述 总的来说一句话,如果你是老大,你可以选择用什么;如果你不是,那么,老大让用什么,你就用什么。 前端框架Angular,Vue,React三选一,没有第四种。 (当然,如果只是一两个简单的页面,纯JS、jquery足够了
阅读全文
posted @ 2021-01-08 15:46
Jack Niu
阅读(593)
推荐(1)
摘要:
1. Angular (Angular2)v.s. AngularJS 2. 检查本地环境的版本 3. TypeScript 4. Angular CLI 5. Angular 的版本 6. Angular 版本如何升级 7. 依赖注入(dependency injection) 8. 编译-AOT
阅读全文
posted @ 2021-01-08 15:02
Jack Niu
阅读(809)
推荐(1)
2021年1月7日
摘要:
1. 需求 一个angular web站点,通过一个iframe嵌套在另一个web站点中。点击一个按钮,希望能够在一个新的页面(Tab)中打开另外一个页面。 2. 方案 主要困难在于处理2个站点的地址不同的问题。既可以通过 html 设置href实现,又可以直接使用js代码实现。 Code: <a
阅读全文
posted @ 2021-01-07 21:38
Jack Niu
阅读(489)
推荐(0)
2020年12月30日
摘要:
1. 简单实现无服务器情况下,2个GIT客户端的同步 1. 简单实现无服务器情况下,2个GIT客户端的同步 1.1. 需求 1.2. 方案 1.1. 需求 有时候不希望经过server,实现2个客户端设备的代码同步 Server连不上,2个客户端设备急需代码同步 1.2. 方案 git versio
阅读全文
posted @ 2020-12-30 14:41
Jack Niu
阅读(338)
推荐(0)
摘要:
1. Filter简介 1.1. SpringBoot 中Filter的作用 1.2. @WebFilter 2. 基于@WebFilter的实现 2.1. SpringbootApplication方法上加上启动扫描 2.2. 新建Filter 2.3. 关于WebFilter 3. 总结 1.
阅读全文
posted @ 2020-12-30 09:19
Jack Niu
阅读(1128)
推荐(0)
2020年11月3日
摘要:
ejabberd Openfire homepage https://www.ejabberd.im/ http://www.igniterealtime.org/projects/openfire/ license GPLv2 Apache github 2060 stars https://gi
阅读全文
posted @ 2020-11-03 10:22
Jack Niu
阅读(110)
推荐(0)
2015年11月17日
摘要:
ejabberd Openfire homepage https://www.ejabberd.im/ http://www.igniterealtime.org/projects/openfire/ license GPLv2 Apache gith...
阅读全文
posted @ 2015-11-17 15:17
Jack Niu
阅读(1309)
推荐(0)
2013年5月30日
摘要:
AngularJS Pros -Uses primitive javascript types instead of function wrappers (“dirty checking”)-Loaded with functionality-Easy to get started-Fast development and smaller amounts of boiler-plate code ...
阅读全文
posted @ 2013-05-30 10:28
Jack Niu
阅读(3424)
推荐(0)
2013年5月29日
摘要:
AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinct...
阅读全文
posted @ 2013-05-29 13:55
Jack Niu
阅读(528)
推荐(0)
2013年5月27日
摘要:
Bootstrap Paginator is a jQuery plugin that simplifies the rendering of Bootstrap Pagination component. It provides methods to automates the update of the pagination status and also some events to not...
阅读全文
posted @ 2013-05-27 11:21
Jack Niu
阅读(2353)
推荐(0)
2013年5月21日
摘要:
1. through css #footer { position:fixed; left:0px; bottom:0px; height:30px; width:100%; background:#999; } 2. jQuery Easy Pinned Footer http://jack-fx.com/net/2013/05/21/sticky-footer...
阅读全文
posted @ 2013-05-21 13:27
Jack Niu
阅读(433)
推荐(0)
2013年5月15日
摘要:
所谓深度链接(Deep linking) 是为那些非Html页面应用而给定的一种关于URL定位的描述。 例如,在一个网页里,如果有“Home”、“About Us”和“Contact”三个导航按钮,无论什么时候点击它们,都会定向到一个独立的URL,譬如http://www.jack-fx.com/、http://www.jack-fx.com/net/。这样的好处是,你可以为你感兴趣的页面添加书签...
阅读全文
posted @ 2013-05-15 09:49
Jack Niu
阅读(912)
推荐(0)
2011年11月21日
摘要:
本文是从 Simplicity Oriented Programming 这篇文章翻译而来。 在Warsztat(一个波兰的游戏开发组织)工作的几年中,我发现一个有趣的现象。经常我们会组织一些编程竞赛,这些竞赛通常分为两种形式。一种是个人行动,一般只有2个小时的时间,另外一种是长时间的(数天/ 周)。作为一个额外的要求,前者通常限制只允许使用基本的API(SDL, OpenGL等),而后者通常没...
阅读全文
posted @ 2011-11-21 15:09
Jack Niu
阅读(343)
推荐(1)
2011年11月17日
摘要:
for asp.net, there are 2 spaces to set the maximun upload size. 1. in web.config, like this<httpRuntime executionTimeout="6000" maxRequestLength="150000" />2. in IIS=>Request Filtering: if your uploa...
阅读全文
posted @ 2011-11-17 14:20
Jack Niu
阅读(414)
推荐(0)
摘要:
Purpose: Parse MSI installer, to get information such as product name, product code, properties etc. MSI is a standard windows install techonoly, so there are APIs for developers to access. But they a...
阅读全文
posted @ 2011-11-17 14:07
Jack Niu
阅读(707)
推荐(0)
2009年11月16日
摘要:
select SERVERPROPERTY('productversion')
非常好用!
阅读全文
posted @ 2009-11-16 16:40
Jack Niu
阅读(1588)
推荐(0)
2009年6月12日
摘要:
* Automatically Implemented Properties * Object and Collection Initializers * Implicitly Typed Local Variables and Implicitly Typed Arrays * Extending Types with Extension Methods * Lambda Expressions...
阅读全文
posted @ 2009-06-12 15:32
Jack Niu
阅读(407)
推荐(0)
2009年5月25日
摘要:
Console.WriteLine("0.89265452879139".GetHashCode());Console.WriteLine("0.280527401380486".GetHashCode()); 输出结果是 20606538272060653827不过, 对于一般的应用来说, 将字符串(string)Hash一下用于比较,搜索还是可行的.
阅读全文
posted @ 2009-05-25 14:53
Jack Niu
阅读(592)
推荐(1)
2009年5月22日
摘要:
1,找开注册表编辑器; 2,找到HKEY_CLASSES_ROOT\Folder\shell; 3,在“编辑”下选择“新建”下面的“项”,输入随便什么名字,例如可以是cmd; 4,在cmd下再选择“新建”下面的“项”,输入名字command(注意要小写); 5,双击cmd的默认值,输入一个字符串,这个字符串就是日后在右键菜单上出现的字符串,例如可以输入:“进入命令行方式”;用户也可以使用&...
阅读全文
posted @ 2009-05-22 15:22
Jack Niu
阅读(1641)
推荐(0)
2009年5月9日
摘要:
// a demo stringstring xml = "<Root><Eles><Ele>abc</Ele><Ele>123</Ele></Eles></Root>";System.Xml.XmlDocument doc = new System.Xml.XmlDocument();doc.Load...
阅读全文
posted @ 2009-05-09 10:48
Jack Niu
阅读(1313)
推荐(0)