(1)安装包时unixODBC包会报错用下面命令:rpm-ivh×-odbc-5.1.8-1.rhel5.i386.rpm--nodeps
分类:
系统服务 时间:
2015-07-17 07:11:49
收藏:
0 评论:
0 赞:
0 阅读:
320
1.在网站注册帐号,创建工程linux_bash,进入工程,右下角会有一个项目仓库的地址。https://github.com/braverior/linux_bash.git(此处可以选择SSH或者是Subversion,即可将https替换成git等)2.Linux下安装git(如果已经安装有git,就可以忽略该步,可以键入$git--version,..
分类:
Web开发 时间:
2015-07-17 07:11:40
收藏:
0 评论:
0 赞:
0 阅读:
394
/***选择排序(简单选择排序)*@authorCinn**/publicclassselectSort{/***@paramargs*/publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubint[]array={48,58,50,98,69,51,27,99,100};selectsort(array);printArray(array);}/***简单选择排序算法接口*@parama*..
分类:
编程语言 时间:
2015-07-17 07:11:10
收藏:
0 评论:
0 赞:
0 阅读:
186
#1字符匹配importrer=r‘ab‘printre.findall(r,‘abcdefgabcd‘)#2如果有元字符,注意使用转义符‘\‘r=r‘1\*2‘printre.findall(r,‘01*234501*2345‘)#元字符介绍#3^匹配行首r=r‘^123‘printre.findall(r,‘1234512345‘)#4$匹配行尾r=r‘345$‘printre.findall(r,‘1234512345‘)#5.匹配单..
分类:
编程语言 时间:
2015-07-17 07:10:59
收藏:
0 评论:
0 赞:
0 阅读:
186
一、strip函数原型声明:s为字符串,rm为要删除的字符序列s.strip(rm)删除s字符串中开头、结尾处,位于rm删除序列的字符s.lstrip(rm)删除s字符串中开头处,位于rm删除序列的字符s.rstrip(rm)删除s字符串中结尾处,位于rm删除序列的字符如下:>>>a=‘hheloooogoooodbyyyy..
分类:
编程语言 时间:
2015-07-17 07:10:49
收藏:
0 评论:
0 赞:
0 阅读:
222
在一个项目中,看到需要为政府机构编码,百度了一下国标编码,找不到。那就自己动手吧。
以下是自定义的编码规则,以池州市为例。
政府部门或单位编码规则:
[中国行政区划简化编码][点号][区划内部门或单位编码]
编码用数字或小写字母组合。
简化编码格式如下:
【1】中国简化编码:1
【2】安徽省简化编码:34
【3】池州市简化编码:3417
【4】青阳县简化编码:341723
区划...
分类:
其他 时间:
2015-07-17 07:09:19
收藏:
0 评论:
0 赞:
0 阅读:
198
抛开所谓的创业原罪不谈,很多行业都有一些属于自己的黑暗部分。十几年前,这种黑暗在中关村各大卖场尤其明显。扎货跑路是当年最常见的。
当年,经常听到某某又跑路的消息,意思是:拿了货卖掉,然后拿着钱消失了。开始时年底时能听到,后来是奉节会有发展,比如:五一、十一。因为这样可以利用假期为自己争取很多逃跑的时间。...
分类:
其他 时间:
2015-07-17 07:09:13
收藏:
0 评论:
0 赞:
0 阅读:
200
为什么要用它(原文地址:http://blog.csdn.net/niu_gao)SDWebImage是一个从网站下载图片的库,它扩展了UIImageView类。UIImageView本来就可以直接从网站下载图片,但是它没有考虑对图片进行缓存,导致只要显示图片就要访问网络。而SDWebImage就解决了这个问题(当然不止这一个功能)。下载位置https://github.com/rs/SDWebI...
分类:
Web开发 时间:
2015-07-17 07:09:12
收藏:
0 评论:
0 赞:
0 阅读:
275
锁的开销锁的开销是巨大的,特别是对于多核多处理来讲。 引入多处理,本身就是为了将并行化处理以提高性能,然而由于存在共享临界区,而这个临界区同时只能有一个线程访问(特别是对于写操作),那么本来并行的执行流在这里被串行化了,形象地看,这里好像是宽阔马路上的一个瓶颈,由于串行化是本质上存在的,因此该瓶颈就是不可消除的。问题是线程执行流如何度过这个瓶颈,很显然,它们谁都绕不开,现在问题是是它们...
分类:
系统服务 时间:
2015-07-17 07:08:10
收藏:
0 评论:
0 赞:
0 阅读:
147
1.7 Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column are set to 0.LeetCode中的原题,请参见我之前的博客Set Matrix Zeroes 矩...
分类:
其他 时间:
2015-07-17 07:06:38
收藏:
0 评论:
0 赞:
0 阅读:
155
1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 i...
分类:
其他 时间:
2015-07-17 07:06:28
收藏:
0 评论:
0 赞:
0 阅读:
345
1.6 Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you d...
分类:
其他 时间:
2015-07-17 07:06:18
收藏:
0 评论:
0 赞:
0 阅读:
217
Question:Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the st...
分类:
其他 时间:
2015-07-17 07:06:08
收藏:
0 评论:
0 赞:
0 阅读:
96
1.5 Implement a method to perform basic string compression using the counts of repeated characters. For example, the string aabcccccaaa would become a...
分类:
其他 时间:
2015-07-17 07:05:58
收藏:
0 评论:
0 赞:
0 阅读:
240
分类:
其他 时间:
2015-07-17 07:05:48
收藏:
0 评论:
0 赞:
0 阅读:
252
Themain.mFileandtheUIApplicationMainFunctionThemainfunctioninmain.mcallstheUIApplicationMainfunctionwithinanautoreleasepool.@autoreleasepool{returnUIA...
分类:
移动平台 时间:
2015-07-17 07:05:38
收藏:
0 评论:
0 赞:
0 阅读:
144
-(void)viewDidLoad{UISwipeGestureRecognizer *recognizer; recognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwip...
分类:
其他 时间:
2015-07-17 07:05:28
收藏:
0 评论:
0 赞:
0 阅读:
147
一、margin 内边距1、margin常用于网页内部块与块之间的距离。2、margin附有多个属性,分别是 margin-left【左】 margin-top【上】 margin-bottom【下】 margin-right【右】3、属性调用数值 ,像素,来执行目标。二、padding 外边距1、...
分类:
其他 时间:
2015-07-17 07:05:19
收藏:
0 评论:
0 赞:
0 阅读:
111
安装方法参考:http://www.jb51.net/os/RedHat/149653.html具体内容:在安装Git之前,需要先安装一些依赖包,安装依赖包之前可以先检查下是否已经安装。shell命令如下:# rpm -qa | grep zlib-devel 如果没有安装,我们先要安装这些依赖.....
分类:
系统服务 时间:
2015-07-17 07:05:08
收藏:
0 评论:
0 赞:
0 阅读:
209
在看了别人的代码后发现有很多可以避免出现精度问题的方法(如坐标都乘2等) 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxx=1010; 7 const double eps=1e-5...
分类:
其他 时间:
2015-07-17 07:04:58
收藏:
0 评论:
0 赞:
0 阅读:
158