在此输入代码 Bootstrap Template 1 道德经原文 上篇 Launch demo modal × Modal title One fine body… Close Save changes × Modal title22222222222 One fine body2222222222222222222… One fine body22222...
分类:
其他好文 时间:
2014-09-14 23:48:48
阅读次数:
578
1. 测试框架,mocha, chai, sinon, supertest可以联合使用,需要尽可能分离出各种组件,方便组合使用.2. restful,node-restify3.Monitor for any changes in your node.js application and autom...
分类:
Web程序 时间:
2014-09-11 10:51:21
阅读次数:
225
SVN中,当我们需要revert之前的commit的时候,有两个选项:1. Revert to this revision2. Revert changes from this revision下面说一下两种方式的区别:假设我们有四个连续的commit : 1, 2, 3, 4对于commit 2选...
分类:
其他好文 时间:
2014-09-09 17:30:09
阅读次数:
157
Java 生成字符串的Hash值: /** * A hashing method that changes a string (like a URL) into a hash suitable for using as a * disk filename. */ p...
分类:
编程语言 时间:
2014-09-09 12:18:08
阅读次数:
1072
给你一个矩形的长宽比,中间为矩形两端为圆弧的跑道周长为400,求长宽。
我的做法:
反正两边的圆弧可以随便做,那么为了方便起见,就直接用长宽的一半做直角三角形的斜长做圆弧的半径
求出周长的缩小比例
我的代码:
#include
#include
#include
#include
#include
#include
#include
#includ...
分类:
其他好文 时间:
2014-09-07 23:52:46
阅读次数:
383
Book DescriptionIf you’re a developer with core Java SE skills, this hands-on book takes you through the language changes in Java 8 triggered by the a...
分类:
编程语言 时间:
2014-09-07 19:46:05
阅读次数:
248
分布式版本控制系统 配置文件: /etc/gitconfig?系统对所有用户普遍适用的配置 ~/.gitconfig?用户目录下的配置文件只适用于该用户 ? 工作目录下不外乎两种状态:以跟踪或未跟踪。 ? Changes?to?be?committ...
分类:
其他好文 时间:
2014-09-05 18:35:22
阅读次数:
278
观察者模式(Observer Pattern)在项目中经常会被使用到,也被叫做发布订阅模式,也就是说 观察者 = 发布者 + 订阅者
GoF的《设计模式》中对观察者是这样描述的:
Define a one-to-many dependency between objects so that when one object changes state, all its depende...
分类:
其他好文 时间:
2014-09-05 01:00:30
阅读次数:
373
SoundPool在实际应用中可能会遇到的一些奇葩的问题:
1、AudioFlingercould not create track, status:-12
SoundPool在创建的maxStream这个参数代表能够同时播放的最大音效数,这里切忌合理使用,写的太大后会报AudioFlingercould
not create track, sta...
分类:
其他好文 时间:
2014-09-04 19:10:20
阅读次数:
187
CHFN(1) 用户命令 CHFN(1)名称 chfn - 更改真名和信息大纲 chfn [选项] [登录]描述 The chfn command changes user fullname, office room number, office phone number, and home pho...
分类:
系统相关 时间:
2014-09-03 16:17:17
阅读次数:
442