自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 资源 (2)
  • 收藏
  • 关注

原创 Linux单用户模式及grub使用

linux的单用户模式

2016-08-26 09:42:24 2332 1

原创 进入docker容器的方法

进入docker容器的方法及优缺点对比

2016-08-18 12:04:03 25191

原创 数据库新建用户分配权限

数据库创建用户时,除了考虑表空间,数据文件外,最重要的事情就是考虑该用户的权限问题了。在oracle数据库中,常用的系统权限有三个:CONNECT(基本的连接), RESOURCE(程序开发), DBA(数据库管理),可以通过查询role_sys_privs表,看到具体的权限有哪些。

2016-07-28 15:41:08 637

原创 制作docker image

1.使用febootstrap制作base image制作镜像目录           在Docker入门(http://blog.csdn.net/woshiluahuo/article/details/51838451)中,我们讲到base image,现在要使      用febootstrap工具制作base image:      febootstra

2016-07-11 21:23:12 5513

原创 Docker离线安装——centos7

网络上有很多docker安装的教程,大多都是在线安装、一键搞定的。因为网络环境问题,需要离线安装docker,成功后分享下过程,方便学习。1.准备工作操作系统          docker需要64位的内核版本3.10以上的操作系统支持。          查看操作系统位数:getconf LONG_BIT          查看内核版本:uname -

2016-07-06 14:12:23 3819 5

原创 Docker入门

1.什么是docker     Docker是一个开源的引擎,可以轻松的为任何应用创建一个轻量级的、可移植的、自给自足的容器。提到Docker人们总会将它列为虚拟化产品,将其类比VMware产品,了解了docker运行原理和container的概念后,你会发现docker不仅可以实现虚拟化,还能应用于以下场景:应用的打包和发布部署和调整数据库或其他应用标准化开发、测试环境

2016-07-06 14:10:40 533

原创 leetcode-shell-194. Transpose File

Given a text file file.txt, transpose its content.You may assume that each row has the same number of columns and each field is separated by the ' ' character.For example, if file.txt has the foll

2016-06-16 16:04:19 632

原创 leetcode-shell-192. Word Frequency

Write a bash script to calculate the frequency of each word in a text file words.txt.For simplicity sake, you may assume:words.txt contains only lowercase characters and space ' ' characters.E

2016-06-16 16:03:45 437

原创 leetcode-shell-193. Valid Phone Numbers

Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print all valid phone numbers.You may assume that a valid phone number must appear i

2016-06-16 16:02:58 466

原创 leetcode-shell-195. Tenth Line

How would you print just the 10th line of a file?For example, assume that file.txt has the following content:Line 1Line 2Line 3Line 4Line 5Line 6Line 7Line 8Line 9Line 10You

2016-06-15 14:16:01 339

原创 leetcode-database-177. Nth Highest Salary

Write a SQL query to get the nth highest salary from the Employee table.+----+--------+| Id | Salary |+----+--------+| 1 | 100 || 2 | 200 || 3 | 300 |+----+--------+

2016-06-15 14:15:14 432

原创 leetcode-database-178. Rank Scores

Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next consecutive integer value.

2016-06-15 14:14:34 487

原创 leetcode-database-262. Trips and Users

The Trips table holds all taxi trips. Each trip has a unique Id, while Client_Id and Driver_Id are both foreign keys to the Users_Id at the Users table. Status is an ENUM type of (‘completed’, ‘ca

2016-06-15 14:13:55 272

原创 leetcode-database-185. Department Top Three Salaries

The Employee table holds all employees. Every employee has an Id, and there is also a column for the department Id.+----+-------+--------+--------------+| Id | Name | Salary | DepartmentId |+--

2016-06-14 14:43:31 324

原创 centos 内核升级(2.6.32->3.19.0)

1.理解内核的定义及升级内核的意义     操作系统是和硬件打交道并且提供人机操作交互的支撑软件。     linux内核负责管理系统的进程、内存、设备驱动程序、文件和网络系统,决定着系统的性能和稳定性。所以说,当有硬件新特性或者对系统稳定性有更高要求的时候,我们需要升级内核。比如,本次我升级是因为想使用docker,docker要求centos内核版本至少3.8以上,所以我需要升

2016-06-12 16:48:03 1528

原创 leetcode-database-180. Consecutive Numbers

Write a SQL query to find all numbers that appear at least three times consecutively.+----+-----+| Id | Num |+----+-----+| 1 | 1 || 2 | 1 || 3 | 1 || 4 | 2 || 5 | 1 || 6 | 2

2016-06-07 16:19:37 269

原创 leetcode-database-178.Rank Scores

Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next consecutive integer value.

2016-06-07 14:41:11 558

原创 模拟器默认横屏

iPad开发中,遇到启动默认横屏问题,解决办法如下:iPad有4种屏幕展示:portrait(肖像)(top home button)竖屏,home键在上面portrait(肖像)(bottom home button)竖屏,home键在下面landscape(风景)(left home button)横屏,home键在左边landscape(风景)(right

2016-05-11 15:24:58 559

原创 first responder与小键盘之间的关系

第一响应对象苹果官方文档的说法是:第一响应对象是窗口中,应用程序认为最适合处理事件的对象。第一响应对象和其他响应对象有什么区别呢?普通的触摸事件没有区别,就算我把一个按钮设置成第一响应对象,当我点击其他按钮时,还是会响应其他按钮,而不会优先响应第一响应对象。成为第一响应对象要当第一响应对象,还需要有View来毛遂自荐:- (BOOL)

2016-03-17 18:01:06 641

原创 tableViewCell中嵌套collectionViewCell 显示异常

现象:微博客户端,如果微博内容包含图片,图片偶尔显示偶尔空白,还会出现混乱的现象异常1:图片混乱分析:因为tableViewCell使用复用机制,所以tableViewCell中的collectionView也被复用了,所以不会再调用collectionView的代理方法,所以图片沿用之前复用的图片,出现混乱现象。解决方法:在加载collectionView之前,删除col

2016-03-17 17:59:00 3210

原创 UICollectionView

UICollectionView可以粗暴地理解为多列展示的UITableView,所以UICollectionView、UICollectionViewCell、UICollectionViewController一套的使用方法类似UITableView、UITableViewCell、UITableViewController。区别1. layout        

2016-03-17 17:57:20 344

原创 iOS 网络

一、webView UIwebView是iOS中内置的浏览器控件。除了能够加载网络资源外,也可以加载本地资源,目前支持的常用的文档格式:html、pdf、docx、txt等。1.获取页面     1.创建request请求          将要访问的地址保存在字符串url中           NSString *url = [UrlstringB

2016-02-26 10:30:49 328

转载 iOS URLencoding

在ios开发中,涉及网络部分的时候,需要写一些url,url中不能避免的会出现中文,出现中文的时候,如果不做处理,就会出现错误。解决这个的问题办法就是对url进行URLencoding,原因和解决方法如下。原因:     之所以有URLencoding这种编码方式,是因为全世界都是用URL访问网站的页面,然而各个国家不同,语言也不同,网站不能兼容所有的语言,所以给大家统一了URL访

2016-02-25 09:26:58 706

原创 UIViewController+UITableView 和 UITableViewController

UIViewController+UITableView实现的功能和UITableViewController实现的功能差不多,但是在使用过程中还是存在细微的差别的。提前了解好需求,在一开始做出最优选择。一、共同点:UITableViewdataSource是UITableViewDataSource类型,主要为UITableView提供显示用的数据(UITableView

2016-02-02 14:12:26 602

操作系统答案(第七版)

操作系统的答案 英文中文的都有 第七版的

2010-12-26

新理念学习大厅4(听力 综合)

新理念学习大厅的听力和综合的4的答案 两套的都有

2010-05-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除