Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2014-07-03 18:57:04
阅读次数:
193
Android下压缩图片的方法: 大概能将3M左右的图片压缩到100K左右, 几乎不失真。 代码如下: import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.OutputStream;i...
分类:
移动开发 时间:
2014-07-03 13:18:49
阅读次数:
686
1.链接数据库:mysql -h localhsot -u root -p2.显示MySql中的数据库:show databases;3.进入数据库:use (数据库名称);4.查看数据库中的表:show tables;5.显示表结构:desc (表名称);6.创建数据库:create badaba...
分类:
数据库 时间:
2014-07-03 13:16:56
阅读次数:
299
http://codeplanet.io/principles-good-restful-api-design/hateoashttp://en.wikipedia.org/wiki/HATEOAShttp://en.wikipedia.org/wiki/RSDLhttp://www.doc88.c...
题目很简单,但是一开始却得到了TimeLimit的结果,让人感到很诧异。仔细阅读发现,题目中有一个说明:Neitherofthese,AorL,islargerthan2,147,483,647(thelargestvaluethatcanbestoredina32-bitsignedinteger...
分类:
其他好文 时间:
2014-07-03 13:06:40
阅读次数:
129
安装Nginx 和 Gitwebsimba@simba-laptop:~$ sudo apt-get install nginx gitweb修改Gitweb配置文件simba@simba-laptop:~/git-repo$ vim /etc/gitweb.conf修改或添加以下:[plain]#...
分类:
Web程序 时间:
2014-07-03 12:49:23
阅读次数:
197
This is a simple circle as a drawable in Android.```html ```
分类:
移动开发 时间:
2014-07-03 12:48:05
阅读次数:
151
借助securtCRT,使用linux命令sz可以很方便的将服务器上的文件下载到本地,使用rz命令则是把本地文件上传到服务器。 其中,对于sz和rz的理解与记忆我用了如下的方法(很多时候容易搞混): sz中的s意为send(发送),告诉客户端,我(服务器)要发送文件 send to cilent,就...
分类:
其他好文 时间:
2014-07-03 12:46:05
阅读次数:
238
需求:在html中查找并替换相应的html标签代码实现- (NSString *)replaceImageHtml:(NSString *)oldHtml { NSString *regex = @"()"; NSRange r; NSMutableString *newHtml ...
分类:
移动开发 时间:
2014-07-03 12:45:26
阅读次数:
343
MySQL 服务正在启动 .MySQL 服务无法启动。系统出错。发生系统错误 1067。进程意外终止。检查了一个晚上才发现是---配置问题#Path to installation directory. All paths are usually resolved relative to this....
分类:
数据库 时间:
2014-07-03 12:14:10
阅读次数:
808