/** * 将小数度数转换为度分秒格式 * @param numStr (主要用于图片中存储经纬度) * @return */ public static String convertToSexagesimal(String numStr){ do...
分类:
移动开发 时间:
2014-07-22 22:54:53
阅读次数:
248
Hello everybody,One day I had problems with GUI svn client and a big headache how to commit my changes. I have found how to do that using Terminal and...
分类:
其他好文 时间:
2014-07-19 21:30:39
阅读次数:
197
1.NginxNginx是通过将多个Web Server绑定到同一个IP地址下,以实现多个WebServer间的负载均衡,降低单个Web Server的负荷,以提高整体的性能与稳定性。安装和配置Nginx的简单方式如下:1)下载并解压Nginx到本地目录:http://nginx.org/en/do...
分类:
其他好文 时间:
2014-07-19 21:23:22
阅读次数:
227
启动脚本startup.sh#!/bin/bashx=$(($1))while (($x>0))do java -jar /home/chenpenghui/crawler/crawler-hb/StartUpIp.jar & sleep 3 x=$(($x-1))done线程数 ...
分类:
编程语言 时间:
2014-07-19 21:00:09
阅读次数:
273
题目链接:点击打开链接
题意:
给定 a个箱子 b个球 常数n (球和箱子都是各不相同的,不会出现有一样的物品)
设 way = 把b个球放到a个箱子中的方法数, 若way >= n则游戏结束
有2个人玩游戏。
若当前轮到 X时
1、 X选择增加一个箱子或增加一个球
2、若增加完后方法数>=n 则X失败
若先手必胜,则输出 Masha ,若先手必败则输出 Stas ,若为平局则输出...
分类:
其他好文 时间:
2014-07-18 22:31:42
阅读次数:
282
在mysql数据库中操作同样有循环语句操作,标准的循环方式: while 循环 、 loop 循环和repeat循环。还有一种非标准的循环: goto。 鉴于goto 语句的跳跃性会造成使用的的思维混乱,所以不建议使用。这几个循环语句的格式如下:WHILE……DO……END WHILEREPEAT…...
分类:
数据库 时间:
2014-07-18 21:20:19
阅读次数:
194
I went through the EE445M and found it’s interesting since the goal of this class is to build a working RTOS. The first lec note mentioned how to make...
分类:
其他好文 时间:
2014-07-18 16:27:54
阅读次数:
175
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-07-18 00:32:24
阅读次数:
271
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...
分类:
其他好文 时间:
2014-07-17 00:23:27
阅读次数:
215
while循环适用于循环次数未知的场景。语法格式:
whileCONDITION
do
statement
……
done
说明:while是当CONDITION成立的时候就执行循环,当条件不成立时,退出循环。示例1:计算从1加到100.[root@Server3Learn]#catwhile1.sh
#!/bin/bash
declare-isum=0
declare-ii=0
while[..
分类:
其他好文 时间:
2014-07-16 16:42:00
阅读次数:
191