今天想写个手电筒应用,看网上的代码基本都是如下:camera = Camera.open(); parameters = camera.getParameters(); parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH)...
分类:
移动开发 时间:
2014-09-26 01:07:58
阅读次数:
193
For mode 1, you have toergod all the data in the files. So thekeypoint to solve this problem is to save the words.I realized that using the Dictionary...
分类:
其他好文 时间:
2014-09-25 20:39:47
阅读次数:
171
webconfig里明明设置了timeout是很大的数值了,可是session的有效性仍然无法维持一小时。查了一下,主要是说 mode="InProc" 的话,session是放在进程里的,这样最容易丢失。如果放在 服务和数据库,会稳定一些。 很多人都放 服务里吗?cookieless设置成true...
分类:
Web程序 时间:
2014-09-25 19:30:27
阅读次数:
241
gitinit(版本库初始化命令)$cd/usr/local$mkdirdemo$cddemo$gitinit之后可以在demo目录下看到看到一个.git隐藏文件夹,这个文件夹就是版本库,而demo目录及其子目录就是工作区。gitadd(将工作区文件提交到暂存区stage)$touchwelcome.txt$gitadd文件welcome.txt从工作区被提交到..
分类:
其他好文 时间:
2014-09-25 13:54:39
阅读次数:
186
adadmin算是EBS DBA在常用不过的命令啦,下面我就简单介绍一下adadmin里面的常用的功能1.change maintenance mode这个是开启和关闭维护默认,当我们adpatch的时候一定要enable,正常运行EBS的时候disable.2.maintain multi-lin...
分类:
其他好文 时间:
2014-09-25 12:42:48
阅读次数:
959
0x00 预先准备和时间规划 1.因为要用到visual studio 2013,准备学习C#,预计一天时间能基本使用。 3.了解需求并设计基本数据结构与大致流程 20min 2.根据提议实现simple mode 30min 3.扩展simple mode的功能完成extend mod...
分类:
其他好文 时间:
2014-09-25 03:53:48
阅读次数:
295
原计划于周六开始着手写本次工程,周六下午配置好相关的开发环境和性能分析工具,晚上开始分析需求并构划大致的代码框架,周日正式开始代码正文的编写,于周一初步完成simple mode的代码设计,周二和周三除去写其他课程的作业再完成mode2和mode3的设计,再进行简单的代码优化。但是真正实施起来时才发...
分类:
其他好文 时间:
2014-09-25 02:08:47
阅读次数:
274
error: 'for' loop initial declarations are only allowed in C99 mode
使用gcc编译代码是报出
error: 'for' loop initial declarations are only allowed in C99 mode
note: use option -std=c99 or -std=gnu99 ...
分类:
其他好文 时间:
2014-09-24 23:35:17
阅读次数:
209
1. Mode.csl: using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace ProgressBar.Models{ public class User {...
分类:
Web程序 时间:
2014-09-24 19:51:27
阅读次数:
254
一、开启socketphpinfo();查看是否开启了socket扩展,否则在php.ini中开启。二、服务器端代码的写法server send:welcome"; socket_write($msgsock, $msg, strlen($msg)); echo 'read client messa...
分类:
Web程序 时间:
2014-09-24 18:45:37
阅读次数:
299