Android SDK的很多API是隐藏的,我无法直接使用。但是我们通过编译Android系统源码可以得到完整的API库。编译Android系统源码后可以在out\target\common\obj\JAVA_LIBRARIES目录中有它所有API库(java)。当然对于一般情况,out\targe...
分类:
移动开发 时间:
2014-07-03 10:24:02
阅读次数:
239
今天试图用heidisql 导入一个150M的数据文件(.sql), 结果报out of memory 错误。在网上搜了很多案例,都没能解决问题。我甚至怀疑是mysql 的default的内存设置的太小了。于是跑到my.ini文件里修改了innodb_buffer_pool_size 为96M * ...
分类:
数据库 时间:
2014-07-01 16:59:24
阅读次数:
395
简要分析一下build.prop是如何生成的。Android的build.prop文件是在Android编译时收集的各种property(LCD density/语言/编译时间, etc.),编译完成之后,文件生成在out/target/product//system/目录下。在Android运行时...
分类:
移动开发 时间:
2014-07-01 16:56:01
阅读次数:
515
Add-Type -Assembly PresentationCore[Windows.Clipboard]::SetText("abc中文def")先用 $output | Out-String 整成一个多行字符串$output = "String 整成一个多行字符串"$OutputEncodin...
分类:
其他好文 时间:
2014-07-01 16:42:41
阅读次数:
203
Combinations:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ ...
分类:
其他好文 时间:
2014-07-01 12:58:20
阅读次数:
212
package com.print.xingzhuang;public class Print_SanJiaoXing { public static void main(String[] args) { System.out.println("------------第一行5个...
分类:
其他好文 时间:
2014-07-01 12:32:56
阅读次数:
194
1. 应用场景不同 ref主要是函数内部对函数外部的值进行改变 out主要是内部为外部变量赋值,一般用于函数有多个返回值的地方2. 初始化方式不同 ref使用之前必须先初始化,而out不需要初始化 原因:ref为引用,所有必须要先"有",才能引用 out是内部为外部赋值,不需要初始...
分类:
其他好文 时间:
2014-07-01 11:01:09
阅读次数:
213
编译 windows上编译lua源码
cl /MD /O2 /W3 /c /DLUA_BUILD_AS_DLL *.c
del *.o
ren lua.obj lua.o
ren luac.obj luac.o
ren print.obj print.o
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
link /OUT:lua.ex...
分类:
其他好文 时间:
2014-07-01 07:21:11
阅读次数:
199
#include
#include
#include
static char out_ip[15] = "52.0.10.188";
static int out_port = 8888;
int main()
{
char sSendBuf[2049], sRecvBuf[2049];
int connfd = 0, iRet = 0, iSend...
分类:
其他好文 时间:
2014-07-01 06:31:44
阅读次数:
212
cas官网http://www.ja-sig.org/products/cas/。
ok,现在开始本文的重点内容讲解,先来了解一下cas 实现single sign out的原理,如图所示:
CAS" border="0" height="345" width="588">
图一
CAS"...
分类:
其他好文 时间:
2014-07-01 06:29:53
阅读次数:
224