public static int haoping(string x)//类里边,函数名随便起,需要传入参数为string类型 { //判断电话号码的输入情况,首位为1且总长度为11 //返回1表示填入号码正确,返回2则表示填入号码不正确 try { if (Convert.ToInt32...
为了实现项目中图片资源上传后,可以自动等比压缩,以加快用户访问速度,发现了此项技术Inotify,关于此项技术的具体介绍,这里不再啰嗦,百度一搜有很多介绍。这里举单例介绍了Inotifywait的使用vi/tmp/monitor_jpg.sh
#!/bin/bash
exportLANG=C
inotifywait-mrq--eventcreate..
分类:
其他好文 时间:
2015-04-16 17:55:47
阅读次数:
124
static void Main(string[] args) { ArrayList al = new ArrayList(); Console.Write("请输入人数"); int n = Convert.ToInt32(Console.ReadLine()); for (int i = 0....
分类:
其他好文 时间:
2015-04-16 11:51:03
阅读次数:
123
namespace 兔子生兔子函数递归{ class Program { static void Main(string[] args) { Console.WriteLine("请输入你想知道兔子哪个月的数量:"); int m = Convert.ToInt32(Console.ReadLine...
分类:
其他好文 时间:
2015-04-16 00:56:28
阅读次数:
188
1、错误描述
[ERROR:]2015-04-14 08:47:48,688 [异常拦截]
org.hibernate.exception.GenericJDBCException: Could not open connection
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(Stand...
分类:
数据库 时间:
2015-04-15 23:23:00
阅读次数:
203
题目:Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below a...
分类:
其他好文 时间:
2015-04-15 23:17:55
阅读次数:
125
Hdfs环境搭建
下载最新版本的Hadoop编译好的tar包:http://hadoop.apache.org/releases.html确认HDFS namenode和datanode的角色,并将namenode以及datanode的ip机器名对应关系写进每台机器的/etc/hosts文件。
确认namenode可以不需要密码就一个通过ssh联通datanode结点。
执行如下...
分类:
其他好文 时间:
2015-04-15 21:33:56
阅读次数:
152
static void Main(string[] args) { ArrayList al = new ArrayList();//集合里面所有类型都可以放入 Console.Write("请输入人数:"); int n = Convert.ToInt32(Console.ReadLine());...
分类:
其他好文 时间:
2015-04-15 19:08:41
阅读次数:
116
Implement atoi to convert a string to an integer....
分类:
编程语言 时间:
2015-04-15 17:08:36
阅读次数:
117
Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CONVERT(varchar(100), GETDAT...
分类:
数据库 时间:
2015-04-15 16:19:29
阅读次数:
209