码迷,mamicode.com
首页 > 2015年04月03日 > 全部分享
Android onPause和onSaveInstanceState的区别
onPause在Activity部分不可见的时候被调用,onSaveInstanceState在需要空出内存给当前Activity的时候执行。onSaveInstanceState有时候在onPause()运行前调用,有时候不(Pre-HONEYCOMB 版本前可能先调用onSaveInstanceState,之后onPause先调用)。Android Activity的详细文档在这里。...
分类:移动开发   时间:2015-04-03 17:30:50    阅读次数:149
IOS中获取各种文件的目录路径的方法
iphone沙箱模型的有四个文件夹,分别是什么,永久数据存储一般放在什么位置,得到模拟器的路径的简单方式是什么. documents,tmp,app,Library。 (NSHomeDirectory()), 手动保存的文件在documents文件里 Nsuserdefaults保存的文件在tmp文件夹里 1、Documents 目录:您应该将所有de应用...
分类:移动开发   时间:2015-04-03 17:32:40    阅读次数:110
leetcode_110_Balanced Binary Tree
思路: 走了好多弯路,最后才发现直接根据定义来就可以了,左右子树的深度不超过1且左右子树都是平衡二叉树,就是这么简洁明快。...
分类:其他好文   时间:2015-04-03 17:32:35    阅读次数:128
推荐算法注意事项总结
本文总结了多种推荐场景中的注意事项,或者推荐中比较关键的因素,不涉及算法描述,仅仅说明关注点,仅供参考。 推荐算法有很多种,从算法的角度来说,我认为主要由以下几种:协同过滤系列(基于item和user),机器学习分类系列(喜欢和不喜欢二分类,或者回归中的分值代表喜欢程度),矩阵分解系列(mahout ALS算法,netflix举行推荐大赛获奖算法),关联规则(电商常用)。本文将从以上几种系列进行总结。...
分类:编程语言   时间:2015-04-03 17:31:18    阅读次数:251
Cordys BOP 4平台开发入门实战演练——HTML/JS界面开发实践
本文案例介绍基于HTML/JS方式开发Web界面,不使用Cordys XForm的解决方案。...
分类:Web程序   时间:2015-04-03 17:32:57    阅读次数:297
weblogic的Serverlog内容自定义
weblogic的Serverlog内容自定义...
分类:Web程序   时间:2015-04-03 17:32:36    阅读次数:104
linux下使用优盘的方法
步骤如下: root@debian:/home# fdisk -l    Device Boot      Start         End      Blocks   Id  System /dev/sdc1            8064    15646719     7819328    b  W95 FAT32 root@debian:/home# mount ...
分类:系统相关   时间:2015-04-03 17:29:46    阅读次数:237
jQuery——Write less,do more
What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library. Itmakes things like HTML document traversal and manipulation, event handling,animation, and Ajax much simpler with an easy-to-use API that works across amultitude of bro...
分类:Web程序   时间:2015-04-03 17:32:43    阅读次数:109
Subsets--LeetCode
题目: Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. ...
分类:其他好文   时间:2015-04-03 17:30:47    阅读次数:107
南阳理工ACM975--关于521
http://acm.nyist.net/JudgeOnline/problem.php?pid=975 这是我的源码。一直超时,一直超时。 还有itoa函数函数的使用。可以改成sprintf(str, " %d" , num); 但是杭电的ACM complier不接受itoa函数,原因是itoa是c++的扩展函数,当然不能指望任何编译器都可以编译了~~ 注: ...
分类:其他好文   时间:2015-04-03 17:32:11    阅读次数:308
线程一-------经典案例买票
/* * extends THread也可以 不过都是使用下列方法 */ public class MyThread implements Runnable { private int ticket = 5; //5张票 public void run() { for (int i=0; i<=20; i++) { if (t...
分类:编程语言   时间:2015-04-03 17:29:03    阅读次数:228
Subsets II--LeetCode
题目: Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not ...
分类:其他好文   时间:2015-04-03 17:28:54    阅读次数:107
LeetCode系列字符串操作(一)ZigZag输出,寻找最大不重复字串长度。
ZigZag Conversion   The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) ...
分类:其他好文   时间:2015-04-03 17:31:12    阅读次数:160
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementatio
错误信息: java.lang.IllegalAccessError: Class ref inpre-verified class resolved to unexpected implementatio 发生场景:在动态加载APK、jar的时候 错误分析:这种一般是引用重复(也就是你现在的APK和你要加载的APK、Jar之间有重复的引用),像在我的项目中遇到的问题就是:...
分类:数据库   时间:2015-04-03 17:28:21    阅读次数:170
缓存方案之Redis
Redis是Remote Dictionary Server(Redis) 的缩写,或许光听名字你就能猜出它大概是做什么的。不错,它是一个由Salvatore Sanfilippo编写的key-value存储系统,是一个使用ANSI C语言编写、遵守BSD协议、支持网络、可基于内存亦可持久化的日志型的Key-Value数据库,并提供多种语言的API。...
分类:其他好文   时间:2015-04-03 17:30:39    阅读次数:121
JNI(Java Native Interface)_03
JNI(Java Native Interface)_03 c/c++区别 jni调用: * c: jstring str = (*env)->NewStringUTF(env,getHello()); * c++:jstring str = (env)->NewStringUTF(getHello()); * 区别如下: * 1,c++中把(*env) 的\*号去掉 * 2...
分类:编程语言   时间:2015-04-03 17:29:29    阅读次数:207
线程二-----------线程池的问题
借鉴了几位大神的博客,学习下 线程池的作用: 线程池作用就是限制系统中执行线程的数量。      根据系统的环境情况,可以自动或手动设置线程数量,达到运行的最佳效果;少了浪费了系统资源,多了造成系统拥挤效率不高。用线程池控制线程数量,其他线程排队等候。一个任务执行完毕,再从队列的中取最前面的任务开始执行。若队列中没有等待进程,线程池的这一资源处于等待。当一个新任务需要运行时,如果线程池中...
分类:编程语言   时间:2015-04-03 17:28:39    阅读次数:118
2299条   上一页 1 ... 40 41 42 43 44 45 46 ... 136 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!