[self.navigationController.navigationBar setShadowImage:[Static ColorToImage:[Static colorWithHexString:[UIColor red]]]];Static 里的几个静态方法+ (UIImage *)C...
分类:
其他好文 时间:
2015-01-16 18:25:26
阅读次数:
146
1 版本信息
系统版本:Red Hat EnterpriseLinux *
2 配置步骤
2.1 添加新用户
添加新用户。
useradd username
2.2 修改用户密码
修改用户密码。
passwd username
2.3 修改passwd配置文件
修改passwd文件,将root的信息赋予新用户username。
vi /etc/passwd
#...
分类:
系统相关 时间:
2015-01-15 20:24:41
阅读次数:
208
/* CSS属性级Hack */color:red; /* 所有浏览器可识别*/_color:red; /* 仅IE6 识别 */*color:red; /* IE6、IE7 识别 */+color:red; /* IE6、IE7 识别 */*+color:red; ...
分类:
Web程序 时间:
2015-01-15 19:50:37
阅读次数:
126
现在很多程序员都应用GCC,怎样才能更好的应用GCC。目前,GCC可以用来编译C/C++、FORTRAN、JAVA、OBJC、ADA等语言的程序,可根据需要选择安装支持的语言。本文以在Redhat Linux安装GCC4.9.2为例(因在项目开发过程中要求使用,没有用最新的GCC版本),介绍Linu...
分类:
系统相关 时间:
2015-01-15 17:56:15
阅读次数:
211
Linux操作系统学习linux的特点优点:1、免费的/开源的系统2、支持多线程/多用户的系统3、安全性好4、对内存和文件管理优越linux体积最少只需要内存4M,由于小所以可以做嵌入式开发缺点:操作相对困难Linus于1991年至1994年将unix的微型版minis加以开发出linux现在red...
分类:
系统相关 时间:
2015-01-15 17:28:52
阅读次数:
277
实现效果:
代码:
*
{
margin:0;
padding:0;
}
#container
{
width:70%;
background-color:Red;
margin:0px auto...
分类:
Web程序 时间:
2015-01-14 22:56:58
阅读次数:
256
一、问题描述实现3种树中的两种:红黑树,AVL树,Treap树二、算法原理(1)红黑树红黑树是一种二叉查找树,但在每个结点上增加一个存储位表示结点的颜色,可以是red或black。红黑树满足以下五个性质:1) 每个结点或是红色或是黑色2) 根结点是黑色3) 每个叶结点是黑的4)如果一个结点是红的,则...
分类:
编程语言 时间:
2015-01-14 06:11:18
阅读次数:
287
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers ...
分类:
其他好文 时间:
2015-01-13 09:01:28
阅读次数:
117
浪去项目有个头图滑动横向滑动的需求,故写次demo
滑动跟随手指横向滑动
.spirit { /* 方块的class名称*/
position: absolute;
width: 50px;
height: 50px;
background-color: red;
}
...
分类:
其他好文 时间:
2015-01-12 16:30:12
阅读次数:
148
1. 红黑树(RED-BLACK TREE)引言:红黑树(RBT)可以说是binary-search tree的非严格的平衡版本。与之相应的是平衡二叉树(Balanced Binary Tree)又称之为AVL树(因为是G.M. Adelson-Velsky 和 E.M. Landis在1962年发...
分类:
编程语言 时间:
2015-01-12 15:56:55
阅读次数:
357