准备工作安装:openssl卸载旧版本apt-get remove opensslapt-get autoremove openssl下载最新版本wget http://www.openssl.org/source/openssl-1.0.1i.tar.gztar -zxvfopenssl-1.0....
分类:
其他好文 时间:
2014-08-30 18:57:19
阅读次数:
3363
上一节我们讲到了Fragment的生命周期(都是基于android.support.v4.app包下的Fragment),学习之后相信大家对它的生命周期有了很深入的了解了,如果还有不懂得,可以再看一下,传送门。现在我们来讲一下有关Fragment的常用函数。
一、Fragment对象
1.void setArguments(Bundle args); 这个函数为Fr...
分类:
移动开发 时间:
2014-08-30 17:51:30
阅读次数:
295
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Ses...
分类:
其他好文 时间:
2014-08-30 13:46:49
阅读次数:
368
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2014-08-30 08:49:59
阅读次数:
210
实验01:YUM配置实验目标通过yum配置安装gcc实验步骤1、挂载光盘2、安装RHEL5.9的图形环境[root@localhostmedia]#ls/misc/cdClusterRELEASE-NOTES-U9-as.htmlRELEASE-NOTES-es.htmlClusterStorageRELEASE-NOTES-U9-bn.htmlRELEASE-NOTES-fr.htmlEULARELEASE-NOTES-U9-de.htmlRE..
分类:
其他好文 时间:
2014-08-30 02:27:29
阅读次数:
214
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2014-08-30 02:21:18
阅读次数:
246
导数使用T.grad计算。
这里使用pp()打印梯度的符号表达式。
第3行输出是打印了经过优化器简化的符号梯度表达式,与第1个输出相比确实简单多了。
fill((x** TensorConstant{2}), TensorConstant{1.0})指创建一个x**2大小的矩阵,并填充1。
importtheano.tensor as T
fromtheano import pp
fr...
分类:
其他好文 时间:
2014-08-29 20:10:08
阅读次数:
338
# Definition for singly-linked list.class ListNode: def __init__(self, x): self.val = x self.next = Noneclass Solution: # @return ...
分类:
其他好文 时间:
2014-08-29 19:40:58
阅读次数:
164
leetcode上有四道关于移除有序序列中重复数字的题目,其中两道为数组结构,两道为链表结构,分别为:
(1)Remove Duplicates from sorted array I:移除一个有序数组中的重复数字,并且返回新数组的大小。
(2)Remove Duplicates from sorted array II:移除一个有序数组中的重复数字,并且返回新数组的大小,和上道题目不同的是每...
分类:
其他好文 时间:
2014-08-29 18:24:28
阅读次数:
289
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:
其他好文 时间:
2014-08-29 02:35:13
阅读次数:
203