Android常用工具类主要介绍总结的Android开发中常用的工具类,大部分同样适用于Java。目前包括HttpUtils、DownloadManagerPro、ShellUtils、PackageUtils、PreferencesUtils、JSONUtils、FileUtils、Resourc...
分类:
移动开发 时间:
2014-05-01 08:55:11
阅读次数:
570
判断valid,没有更好的方法,只能brute force。 1 class Solution { 2
public: 3 bool isValidSudoku(vector > &board) { 4 5 int n; 6 for (int...
分类:
其他好文 时间:
2014-05-01 08:54:28
阅读次数:
332
inline-block可以定义元素为行内块级元素,即既具有行内元素同占一行的特点,又具有块级元素的box模型。但是IE67和其他浏览器的支持差别比较大:1、行内元素使用inline-block变成"行内块级元素"。
行内元素直接inline-block即可,浏览器都识别,只是IE67中元素彼此之....
分类:
其他好文 时间:
2014-05-01 08:53:47
阅读次数:
297
本题与POJ 1655的区别是要把所有重心的点按顺序输出出来。// poj3107
Godfather#include #include #define NDEBUG#define MAXN 50005using namespace
std;int N;int edgefw[MAXN*2], ...
分类:
其他好文 时间:
2014-05-01 08:53:09
阅读次数:
284
1、将hdp002的数据库放到hdp004后,发现yii出现找不到表messages的迹象。用hdp002远程登录hdp004后发现,原来是hdp004没有授权给hdp002,用下面的sql语句即可:在安装mysql的机器上运行:
1、d:\mysql\bin\>mysql -h localho.....
分类:
数据库 时间:
2014-05-01 08:45:25
阅读次数:
473
InterceptorManager PluginManageropenfire
插件的中servlet 在web-custom.xml 中的配置 url 一定要小写,访问时不区别大写小 否则404如: Sample1Servlet
com.myyule.openfire.plugin.S...
分类:
其他好文 时间:
2014-05-01 08:42:11
阅读次数:
305
今天写的特别简单的代码,大体是一个模式选择,从控制台读入一个数,然后做出相应的选择.
代码如下:using System;using System.Collections.Generic;using System.Linq;using
System.Text;using System.Thre...
分类:
其他好文 时间:
2014-05-01 08:41:35
阅读次数:
340
本次主题:指针与数组在进入主题前,我们先看一个例子:#includeint main(){
int a[5] = { 1, 2, 3, 4, 5 }; int *ptr = (int *) (&a + 1); printf("%d,%d\n",
*(a + 1), *(ptr - ...
分类:
其他好文 时间:
2014-05-01 08:40:11
阅读次数:
324
for Web Authors and WebmastersThis is an
informational document. Although technical in nature, it attempts to make the
concepts involved understandabl...
分类:
其他好文 时间:
2014-05-01 08:37:04
阅读次数:
438
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-05-01 08:35:40
阅读次数:
443