雁字掠过愁转浓,
身不由己漂泊客,
相知相惜难相逢......
分类:
其他好文 时间:
2014-05-07 08:16:45
阅读次数:
194
import org.junit.Test;
public class Multiple {
public void printMultiple99() {
int i = 1;
for (; i < 10; i++)
for (int j = 1; j <= i; j++)
System.out.print(j + "*" + i + "=" + i * j + " ...
分类:
其他好文 时间:
2014-05-07 06:46:25
阅读次数:
359
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of gr...
分类:
其他好文 时间:
2014-05-07 06:10:17
阅读次数:
370
今天遇到一个问题,要做一个语音识别接口的对接,想先跑一下对方给的demo,但是发现使用了maven却没有在pom里添加依赖,不知道他那边是怎么运行的。于是想到要在pom中添加本地依赖,结果真的可以:
System Dependencies
Dependencies with the scope system are always available and are not looked...
分类:
其他好文 时间:
2014-05-07 04:16:42
阅读次数:
407
using UnityEngine;
using System.Collections;
public class moive : MonoBehaviour {
public MovieTexture movTexture;
public GameObject moive_texture;
public GameObject quan_bt;
public GameObject...
分类:
其他好文 时间:
2014-05-07 03:13:16
阅读次数:
426
我们退出Activity可以调用:finish(),system(0),但是这些都只是单单退出单个Activity
也有人会说,直接把进程杀死,这些做法都不是很可取,其实我们翻看api可以发现,Activity
都是放入stack中管理,我们只要把stack清空了,不就完全退出了嘛。要对Activity的stack
管理,就需要了解launchMode的四种状态,这里...
分类:
移动开发 时间:
2014-05-06 23:40:01
阅读次数:
409
1、环境描述
服务器A(主) 192.85.1.175
服务器B(从) 192.85.1.176
Mysql版本:5.1.61
系统版本:System OS:ubuntu 10.10 X86
(系统安装及数据环境搭建,省略)
2. 创建同步用户:
在服务B命令行执行 :
grant replication slave on *.* to...
分类:
数据库 时间:
2014-05-06 23:02:17
阅读次数:
543
通过PHP程序完成修改Hosts文件原理如下:
1,Neil没有找到直接利用PHP修改的方法,所以首先是写一个.bat文件
2,使用system(),调用.bat完成修改Hosts的目的
代码如下:
//创建.bat
$filename = "updata.bat";//'@echo 127.0.0.1 baidu.com >>C:\Windows\System32\Drive...
查询注册表是否禁用USB@echooffset"str=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR"for/f"tokens=2*"%%ain(‘regquery"%str%"/vStart2^>nul‘)doset"a=%%b"if"%a%"=="0x4"(echoUSB已经禁用>>USB已禁用)else(echoUSB未禁用>>USB未禁用)禁用USB..
分类:
其他好文 时间:
2014-05-06 17:06:20
阅读次数:
280
方法一:
在Arcmap中转换:
1、加载要转换的数据,右下角为经纬度
2、点击View——Data Frame Properties——Coordinate System
3、导入或选择正确的坐标系,确定。这时右下角也显示坐标。但数据没改变
4、右击图层——Data——Export Data
5、Use the same coordinate system a...
分类:
其他好文 时间:
2014-05-06 15:00:20
阅读次数:
403