Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex...
分类:
编程语言 时间:
2015-06-03 13:27:52
阅读次数:
139
【背景】
在将某数字类型字段插入到目标端时,报错,提示类型不正确,查看数据发现确实为number,但发现为“全角”数字。
【解决】
利用函数,将“全角”转换成“半角”,使用如:to_single_byte()函数,对其转换,转换成半角后,成功存入数据库。
另外,如果遇到需要“半角”转换成“全角”的场合时,可以使用to_multi_byte()函数。
【实验】
小知识...
分类:
其他好文 时间:
2015-06-03 09:46:23
阅读次数:
166
CAS,Central Authentication Service—中央认证服务,是Yale 大学发起的一个企业级的、开源的项目,旨在为Web应用系统提供一种可靠的SSO解决方案。下面简单介绍SSO,重点介绍CAS认证过程。
一、 SSO简介
1.1 概念
SSO英文全称Single Sign On,是目前比较流行的服务于企业业务整合的解决方案之一, SSO 使得在多个应...
分类:
其他好文 时间:
2015-06-03 00:58:56
阅读次数:
153
题目要求:给出一个数组,只有一个数字出现一次,其他的都出现两次,找出那出现一次的数字,要求用线性的时间解出题目!
分析:因为题目要求的是用线性时间,所以类似于那种暴力解决的方法会超时,如下面这种:int singleNumber2(int *nums,int n)
{
int i,j;
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
{
if(nu...
分类:
其他好文 时间:
2015-06-02 18:03:54
阅读次数:
120
AngularJS入门 什么是AngularJSAngularJSis a modern JavaScript framework from Google commonly used to work with Single Page Applications (SPAs). AngularJS is...
分类:
Web程序 时间:
2015-06-02 16:56:10
阅读次数:
140
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using...
分类:
其他好文 时间:
2015-06-02 09:27:36
阅读次数:
118
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 entire inpu...
分类:
其他好文 时间:
2015-06-02 00:32:05
阅读次数:
121
概述
SSO(Single Sign On),单点登录,多个具有独立运行的系统组成一个大系统,实现用户登录一次,即可随意访问该大系统的子系统。单点登录的具体实现有多种方式,我们可以自己实现,也可以采用第三方提供的框架。
自定义SSO
方式一
部署图
...
分类:
其他好文 时间:
2015-05-31 21:43:37
阅读次数:
361
Kerberos协议:Kerberos协议主要用于计算机网络的身份鉴别(Authentication),其特点是用户只需输入一次身份验证信息就可以凭借此验证获得的票据(ticket-granting ticket)访问多个服务,即SSO(Single Sign On)。由于在每个Client和Ser...
分类:
其他好文 时间:
2015-05-31 18:06:08
阅读次数:
160
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without usi...
分类:
其他好文 时间:
2015-05-31 12:31:13
阅读次数:
118