Java类:UserInfo
public class UserInfo {
static {
System.loadLibrary("userinfo");
}
// 从JNI中直接访问字段
public String mUserName;
public int mUserAge;
public long mMoney;
public UserInfo() {
}...
分类:
编程语言 时间:
2014-05-23 02:34:37
阅读次数:
261
本文介绍了如何通过MS SQL Server提供的一些动态管理视图和函数分析磁盘I/O性能。...
分类:
数据库 时间:
2014-05-23 01:20:50
阅读次数:
298
介绍一个list滑动时通过一个text提示Array首字母位置的应用
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce...
分类:
其他好文 时间:
2014-05-23 00:58:42
阅读次数:
326
介绍在在title bar上显示indeterminate progress
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ...
分类:
其他好文 时间:
2014-05-23 00:31:27
阅读次数:
352
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo...
分类:
其他好文 时间:
2014-05-23 00:30:50
阅读次数:
415
public class TraditionalThreadTest {
static class Outputer {
public void output1(String name) {
synchronized (Outputer.class) {
for (int i = 0; i < name.length(); i++) {
System.out.pri...
分类:
其他好文 时间:
2014-05-22 23:53:45
阅读次数:
442
使用 HTTP
Web 使用超文本传输协议(Hypertext Transfer Protocol,HTTP)通信,通常用 web 浏览器,但是,出于某些原因,也可能想用脚本或程序中发出 web 请求,例如,通过 RSS 或 Atom feeds 收集站点内容。
生成 HTTP 请求,需要用 System.Net.WebRequest 类的静态方法 Create。它创建 WebRequ...
分类:
其他好文 时间:
2014-05-22 23:02:45
阅读次数:
307
今天在做图片上传 验证图片mime值时 突然发现 个别特殊情况下finfo_file 获取的MIME值不能直接使用,按照官方的写法是 $finfo=finfo_open(FILEINFO_MIME); $mime=finfo_file($finfo,$file_path); finfo_close($finfo); alert($mime);这样子获得文件mime类型的但是今天发现这样子...
分类:
其他好文 时间:
2014-05-22 22:37:21
阅读次数:
443
建立ssh无验证连接
Check for SSH keys、
cd ~/.ssh
ls
Check the directory listing to see if you have a file named either id_rsa.pub or id_dsa.pub
检查有无产生过的key,一台机器只能创建一个。如果重新创建则前一个会被覆盖。
Generate a new SSH ...
分类:
其他好文 时间:
2014-05-22 18:33:48
阅读次数:
261
通过IP获取归属地
请输入ip地址:
//获取ip地址
//$ip = $_SERVER['REMOTE_ADDR']; //自动获取客户端的IP
//ip对应的地区
if(!empty($_POST['ip'])){
$ip = $_POST['ip'];
//接口地址,这样返回的是一个xml结果集,如图1;
$str = file_get_cont...
分类:
Web程序 时间:
2014-05-22 18:27:26
阅读次数:
354