状 态机简写为FSM(Finite State Machine),主要分为2大类:第一类,若输出只和状态有关而与输入无关,则称为Moore状态机;第二类,输出不仅和状态有关而且和输入有关系,则 称为Mealy状态机。要特别注意的是,因为...
分类:
其他好文 时间:
2015-01-28 14:51:53
阅读次数:
334
iOS8中定位服务的变化(CLLocationManager协议方法不响应,无法回掉GPS方法,不出现获取权限提示) 最近在写一个LBS的项目的时候,因为考虑到适配iOS8,就将项目迁移到Xcode6.0.1上,出现了不能正常获取定位服务权限...
分类:
移动开发 时间:
2015-01-28 14:54:50
阅读次数:
206
电子书可以给我们一个有结构有组织的方式学习新的知识。学习 AngularJS也一样。现在最棒的事情莫过于电子书中提供大量实践练习,帮助我们理解各种方面。 让我们度下面7本书探究 AngularJS 吧——有的综合性强,有...
分类:
Web程序 时间:
2015-01-28 14:54:14
阅读次数:
317
参见:http://www.w3cschool.cc/bootstrap/bootstrap-carousel-plugin.html <!DOCTYPE?html>
<html>
<head>
???<title>Bootstrap?实例?-?简单的轮播(Carousel)插件</title>
???<link?href="/bootst...
分类:
其他好文 时间:
2015-01-28 14:52:28
阅读次数:
656
最近发现,php运行自动加载类函数时总是超时,跟踪php慢查询日志,发现程序卡在了include某个类文件时竟然超时。 ????初步定位是io响应超时,硬盘读取有问题。 ????通过几个命令来定位: ????...
分类:
Web程序 时间:
2015-01-28 14:51:17
阅读次数:
225
In my?previous post I talk about reusable apps, but I don’t really explain it that much. If you have an app that might be useful in another project, it’s best to not refer to the project name i...
分类:
编程语言 时间:
2015-01-28 14:52:02
阅读次数:
198
Blender 的 c 语言 api 与 python api 颇为相似。[感觉像Python的超级扩展] Mesh Subdivide 下面是对 blender 中的 mesh subdivide operator 代码的分析 Registration 首先我们需要在 window manager 中注册 op...
分类:
其他好文 时间:
2015-01-28 14:52:21
阅读次数:
993
more命令,功能类似 cat ,cat命令是整个文件的内容从上到下显示在屏幕上。 more会以一页一页的显示方便使用者逐页阅读,而最基本的指令就是按空白键(space)就往下一页显示,按 b 键就会往回(back)一页显示,...
分类:
系统相关 时间:
2015-01-28 14:52:38
阅读次数:
197
实际上元组是跟列表非常相近的另一种容器类型.元组和列表看起来不同的一点是元组用的是圆括号而列表用的是方括号。而功能上,元组和列表相比有一个很重要的区别,元组是一种不可变类型。正因为这个原因,元组...
分类:
编程语言 时间:
2015-01-28 14:52:20
阅读次数:
217
操作HDFS:先要保证HDFS启动了: 启动spark集群: 以spark-shell运行在spark集群上: 查看下之前上传到HDFS上的”LICENSE.txt“文件: 用spark读取这个文件: 使用count统计该文件的行数: ?我们可以看到count 耗...
create?view?total?
????as?select?s.organization_name,s.name,s.sex,s.identity_card_number,date_format(s.final_into_association_time,‘%Y-%m-%d‘),s.number_of_worked_in_association,(year(now()...
分类:
数据库 时间:
2015-01-28 14:50:52
阅读次数:
180
转自:http://www.tuicool.com/articles/bmuaEb 今天早上初尝seajs,发现一个非常蛋疼的事情,使用官方demo中的jquery是没有问题, 下载官方最新版jquery 2.1.1发现console.log($)返回null,百思不得其解!只能求...
分类:
Web程序 时间:
2015-01-28 14:50:42
阅读次数:
158
通过sql语句获取数据表中的随意一条数据 --?rand()?获取0到1之间的随机浮点数
--?((select?max(id)?from?test)?-?(select?min(id)?from?test))?*?rand()?获取到随机数
--?+?(select?min(id)?f...
分类:
数据库 时间:
2015-01-28 14:52:26
阅读次数:
129
1. 下载openCryptoki源码,并解压到本地目录(opencryptoki) ? ? http://sourceforge.net/projects/opencryptoki/ 2. 构建和安装(root用户) 命令执行顺序: # cd opencryptoki # ./bootstrap.sh ? # ./configur...
分类:
其他好文 时间:
2015-01-28 14:50:03
阅读次数:
735
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
根据一个点坐标计算出其他三个点的位置。
可以依据,每个点到外边框的对应距离相等,推算坐标。
...
分类:
其他好文 时间:
2015-01-28 14:49:45
阅读次数:
131
Problem Description
A snail is at the bottom of a 6-foot well and wants to climb to the top. The snail can climb 3 feet while the sun is up, but slides down 1 foot at night while sleeping. The snai...
分类:
其他好文 时间:
2015-01-28 14:51:13
阅读次数:
126
写了一个Android notification本地通知插件,在4.0版本的小米出现了问题。
使用了Notification.Builder的方法。但是小米这个会报标题上的错误。
于是改为旧的方法做兼容。
Notification notify = new Notification(R.drawable.icon,args.getString(0),System.currentTimeMil...
分类:
移动开发 时间:
2015-01-28 14:48:35
阅读次数:
255