码迷,mamicode.com
首页 > 全部
java之七 高级类设计
static的用法     有时你希望定义一个类成员,使它的使用完全独立于该类的任何对象。通常情况下,类成员必须通过它的类的对象访问,但是可以创建这样一个成员,它能够被它自己使用,而不必引用特定的实例。在成员的声明前面加上关键字static(静态的)就能创建这样的成员。 如果一个成员被声明为static,它就能够在它的类的任何对象创建之前被访问,而不必引...
分类:编程语言   时间:2016-05-22 12:14:34    阅读次数:218
ceph总结
ceph系统 1 流程说明 1.1 应用 1) RADOS GW是一个提供与Amazon S3和Swift兼容的RESTful API的gateway,以供相应的对象存储应用开发使用。RADOS GW提供的API抽象层次更高,但功能则不如librados强大。因此,开发者应针对自己的需求选择使用。 2) RBD则提供了一个标准的块设备接口,常用于在虚拟化的场景下为虚拟机创建volum...
分类:其他好文   时间:2016-05-22 12:15:07    阅读次数:351
用户和组与进程凭证
用户和组与进程凭证 本文是作者阅读TLPI(The Linux Programer Interface的总结),为了突出重点,避免一刀砍,我不会过多的去介绍基本的概念和用法,我重点会去介绍原理和细节。因此对于本文的读者,至少要求读过APUE,或者是实际有写过相关代码的程序员,因为知识有点零散,所以我会尽可能以FAQ的形式呈现给读者。 用户和组每个用户都拥有一个唯一的用户名和一个与之相关联的数值型...
分类:系统相关   时间:2016-05-22 12:14:23    阅读次数:292
bzoj 1005: [HNOI2008]明明的烦恼(组合数学 purfer sequence)
1005: [HNOI2008]明明的烦恼 Time Limit: 1 Sec  Memory Limit: 162 MB Submit: 3945  Solved: 1563 [Submit][Status][Discuss] Description   自从明明学了树的结构,就对奇怪的树产生了兴趣......给出标号为1到N的点,以及某些点最终的度数,允许在 任意两点间连线,可...
分类:其他好文   时间:2016-05-22 12:15:42    阅读次数:343
LeetCode:Intersection of Two Arrays II
Intersection of Two Arrays II Total Accepted: 1340 Total Submissions: 3078 Difficulty: Easy Given two arrays, write a function to compute their intersection. Example: Given...
分类:其他好文   时间:2016-05-22 12:14:20    阅读次数:153
LeetCode:Intersection of Two Arrays
Intersection of Two Arrays Total Accepted: 5682 Total Submissions: 12479 Difficulty: Easy Given two arrays, write a function to compute their intersection. Example: Given n...
分类:其他好文   时间:2016-05-22 12:12:52    阅读次数:162
LeetCode:Invert Binary Tree
Invert Binary Tree Total Accepted: 92036 Total Submissions: 200903 Difficulty: Easy Invert a binary tree. 4 / 2 7 / \ / 1 3 6 9 to 4 / 7 ...
分类:其他好文   时间:2016-05-22 12:15:10    阅读次数:132
LeetCode:Implement Stack using Queues
Implement Stack using Queues Total Accepted: 39756 Total Submissions: 130128 Difficulty: Easy Implement the following operations of a stack using queues. push(x) -- Push e...
分类:其他好文   时间:2016-05-22 12:14:21    阅读次数:145
LeetCode:Intersection of Two Linked Lists
Intersection of Two Linked Lists Total Accepted: 74850 Total Submissions: 246823 Difficulty: Easy Write a program to find the node at which the intersection of two singly linked li...
分类:其他好文   时间:2016-05-22 12:13:38    阅读次数:181
LeetCode:Length of Last Word
Length of Last Word Total Accepted: 94220 Total Submissions: 319858 Difficulty: Easy Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return ...
分类:其他好文   时间:2016-05-22 12:14:00    阅读次数:150
LeetCode:Excel Sheet Column Number
Excel Sheet Column Number Total Accepted: 80221 Total Submissions: 190904 Difficulty: Easy Related to question Excel Sheet Column Title Given a column title as appear in an ...
分类:其他好文   时间:2016-05-22 12:11:20    阅读次数:155
一起talk C栗子吧(第一百五十三回:C语言实例--socket通信地址系统调用一)
各位看官们,大家好,上一回中咱们说的是计算机中大小端的例子,这一回咱们说的例子是socket通信地址的系统调用 。闲话休提,言归正转。让我们一起talk C栗子吧!...
分类:编程语言   时间:2016-05-22 12:13:55    阅读次数:148
Android开发实践 ContentProvider和ContentResolver
1.关于ContentProvider和ContentResolver (1)ContentProvider(内容提供者) ContentProvider是不同应用程序之间进行数据交换的标准API,只提供数据的访问接口。 ContentProvider以某种Uri形式对外提供数据,允许其他应用访问或修改数据,其他应用程序通过ContentResolver根据Uri去访问操作指定数据。 将一个字符串转换成Uri:Uri...
分类:移动开发   时间:2016-05-22 12:14:05    阅读次数:257
微信支付Native扫码支付模式二之CodeIgniter集成篇
微信支付API类库来自:https://github.com/zhangv/wechat-pay 请先看一眼官方场景及支付时序图:https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_5 官方API列表:https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1 ...
分类:微信   时间:2016-05-22 12:11:10    阅读次数:520
[Nutch]Hadoop单机伪分布模式的配置
在之前的博文中,我们一直在使用Nutch的local模式,那么Nutch的Deploy模式该怎么使用呢?首先我们来配置hadoop,为使用Nutch的deploy模式做准备。...
分类:其他好文   时间:2016-05-22 12:11:53    阅读次数:196
[Nutch]Hadoop单机伪分布式模式的使用(deploy)
在上一篇博文我们对Nutch进行了hadoop的配置,那么本文就对nutch的deploy模式的使用进行说明。...
分类:其他好文   时间:2016-05-22 12:12:49    阅读次数:186
【LeetCode】257. Binary Tree Paths 解题报告
转载请注明出处:http://blog.csdn.net/crazy1235/article/details/51471280Subject 出处:https://leetcode.com/problems/binary-tree-paths/ Given a binary tree, return all root-to-leaf paths.For example, given the fo...
分类:其他好文   时间:2016-05-22 12:12:55    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!