摘要: 本文主要讲网站程序在云服务器迁移时遇到的问题,和各家云服务的比较选择。 之前用laravel 5.1开发了一个社区交流的程序,放在亚马逊的EC2实例上,是一个AIM 亚马逊自家构建的linux服务器,不能不说亚马逊的服务是一流的,基本没有多少坑给你踩,但是自从发现 linode, DigitalOcean, Rackspace之后,比较了一下性价比,就有了迁移的想法,毕竟便宜了一半。 linod... 阅读全文
posted @ 2016-08-27 13:54 grkin 阅读(505) 评论(1) 推荐(0) 编辑
摘要: Angular 客户化定制 @ = & 的区别 阅读全文
posted @ 2016-03-25 09:31 grkin 阅读(2166) 评论(0) 推荐(0) 编辑
摘要: Today, I had spent 3 hours to fix one problem, The old program has a bug, originally, when a user profile don’t now allow Multi Logon, It will update the other login records of [LoginAudit] table o... 阅读全文
posted @ 2015-11-07 15:10 grkin 阅读(531) 评论(0) 推荐(0) 编辑
摘要: function countDown(dateStr){ var end = +new Date(dateStr), start = +new Date(), during = Math.floor((end - start)/ 1000); var ... 阅读全文
posted @ 2015-10-17 15:47 grkin 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 写一个函数,把数字日期如2014-06-21转换为 二零一四年六月二十一日星期三function convert(dateStr) { var dict = { "0": "零", "1": "一", "2": "二", "3": "三"... 阅读全文
posted @ 2015-10-17 14:12 grkin 阅读(3129) 评论(0) 推荐(0) 编辑
摘要: 1、在JavaScript中,arguments对象是比较特别的一个对象,实际上是当前函数的一个内置属性。arguments非常类似Array,但实际上又不是一个Array实例。可以通过如下代码得以证实(当然,实际上,在函数funcArg中,调用arguments是不必要写成funcArg.argu... 阅读全文
posted @ 2015-10-17 04:31 grkin 阅读(300) 评论(0) 推荐(0) 编辑
摘要: When confronted with a problem , we think about it. The issue, of course, is that our efforts may be fruitful or they may not, depending on the effectiveness of the thinking done. Good thinking is... 阅读全文
posted @ 2015-07-15 20:12 grkin 阅读(304) 评论(0) 推荐(0) 编辑
摘要: Eloquent: SerializationIntroductionBasic UsageHiding Attributes From JSONAppending Values To JSONIntroductionWhen building JSON APIs, you will often n... 阅读全文
posted @ 2015-07-06 10:45 grkin 阅读(339) 评论(0) 推荐(0) 编辑
摘要: Eloquent: MutatorsIntroductionAccessors & MutatorsDate MutatorsAttribute CastingIntroductionAccessors and mutators allow you to format Eloquent attrib... 阅读全文
posted @ 2015-07-06 10:44 grkin 阅读(406) 评论(0) 推荐(0) 编辑
摘要: Eloquent: CollectionsIntroductionAvailable MethodsCustom CollectionsIntroductionAll multi-result sets returned by Eloquent are an instance of theIllum... 阅读全文
posted @ 2015-07-06 10:42 grkin 阅读(346) 评论(0) 推荐(0) 编辑