一、 yum作用: yum 命令是在Fedora 和RedHat 以及SUSE 中基于rpm 的软件包管理器,它可以使系统管理人员交互和自动化地更新与管理RPM软件包, 能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系, 并且一次安装所有依赖的软件包, 无需繁琐地...
分类:
其他好文 时间:
2015-03-18 17:16:38
阅读次数:
131
源端字符集与endian查看:
SQL> select userenv(‘language’) from dual;
USERENV(‘LANGUAGE’) SIMPLIFIED CHINESE_CHINA.ZHS16GBKSQL> SELECT d.PLATFORM_NAME, ENDIAN_FORMAT
2 FROM VTRANSPORTABLEPLATFORMtp,VT...
分类:
其他好文 时间:
2015-03-18 16:04:01
阅读次数:
151
problem:
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entir...
分类:
其他好文 时间:
2015-03-18 12:26:30
阅读次数:
127
Use lMax get the maximum value of a sub SINGLE branch (left branch or right branch or just current node).Use gMax get the maximum value of the whole s...
分类:
其他好文 时间:
2015-03-18 08:56:01
阅读次数:
190
谈到单例模式,我们立马会想到饿汉式和懒汉式加载,所谓饿汉式就是在创建类时就创建好了实例,懒汉式在获取实例时才去创建实例,即延迟加载。饿汉式:Java代码package com.bijian.study;public class Singleton { private static Single...
分类:
编程语言 时间:
2015-03-17 23:21:23
阅读次数:
277
SSO (Single Sign-on) 顾名思义就是几个子项目共用一个登录点. 原理简单来说就是服务端session 共享, 客户端跨域cookies.实现非常简单,protected/config/main.php中修改session配置即可代码如下: 1 $host = explode('.'...
分类:
其他好文 时间:
2015-03-17 14:07:16
阅读次数:
197
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2015-03-17 02:00:44
阅读次数:
102
一个整数数列,除其中一个数以外,其他数都出现3次;试找出这个数 -Single Number II.
分类:
其他好文 时间:
2015-03-16 16:20:42
阅读次数:
122
可以在一个数组数据结构中存储同一类型的多个变量。 通过指定其元素的类型声明数组type []arrayName; 1 class TestArraysClass 2 { 3 static void Main() 4 { 5 // Declare a single-d...
分类:
编程语言 时间:
2015-03-16 14:23:41
阅读次数:
150
系统:mac 10.9.5 编辑器:xcode 6.1 语言:swift新建一个single view application,将use core Data勾选。在xcode最左侧会有一个xxx.xcdatamodeld文件,点击添加一个entity,并双击重命名为Person。然后点击添加属性.....
分类:
移动开发 时间:
2015-03-15 23:29:57
阅读次数:
2761