public function utf8_unicode($str) { $unicode = array(); $values = array(); $lookingFor = 1; for ($i = 0; $i = ord('0') && $thisValue <= o...
分类:
Web程序 时间:
2014-12-09 19:29:46
阅读次数:
232
SQL一些基础的命令 插入数据Insert into Persion1(Name,Age) Values(‘zhanghui’,21);用newid自动生成序号。Insert into Persion2(Id,Name,Age) Values(newid(),’hui’,22); 更新数据1: UP...
分类:
数据库 时间:
2014-12-09 19:16:47
阅读次数:
240
题目
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorde...
分类:
其他好文 时间:
2014-12-09 15:41:35
阅读次数:
150
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:
其他好文 时间:
2014-12-09 15:23:03
阅读次数:
178
在自定义一个View的时候,为了让View的功能变得强大点,往往我们需要支持自定义属性来支持显示界面中所需要的效果,比如说:android:textColor="#ffffff"这样定义一个属性,可支持显示不同颜色,那么我们在项目中要如何定义?
首先我们需要在res/values目录下新建个attrs的xml文件当然这个名字是可以自定义的,但是不能重复定义一个属性。...
分类:
其他好文 时间:
2014-12-09 14:05:44
阅读次数:
261
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1 ....
分类:
其他好文 时间:
2014-12-09 13:54:28
阅读次数:
205
【题目】
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Giv...
分类:
其他好文 时间:
2014-12-09 12:14:27
阅读次数:
164
1)TD项目修改alps\mediatek\source\frameworks\base\core\res\res\values\Strings.xml中
的wifi_tether_configure_ssid_default_for_cmcc变量
2)非TD项目修改alps\frameworks\base\core\res\res\values\strings.xml中的wifi_tethe...
分类:
移动开发 时间:
2014-12-09 10:40:00
阅读次数:
177
(1)将alps/framework/base/packages/settingsprovider/res/values/defaults.xml里
面airplane_mode_toggleable_radios标签中的“bluetooth”去掉。
(2)在packages/apps/settings/src/android/settings/bluetoothangel/Bluetooth...
分类:
移动开发 时间:
2014-12-09 10:39:39
阅读次数:
180
第一种:beginforr1in1..3000000loopinsertintooracle_study(id,name)values(r1,‘abc‘||r1);commit;endloop;End;35分钟57秒(2157.182秒):插入3000000条每秒1390.7032条第二种:INSERTINTOORA_STUDYSELECT*FROMORACLE_STUDY;COMMIT;613.662秒:插入3000000条每秒4888.6847条
分类:
数据库 时间:
2014-12-09 02:04:40
阅读次数:
175