- Android学习总结
purplepass_953a
1).Java基本数据类型与表达式,分支循环。2).String和StringBuffer的使用、正则表达式。3).面向对象的抽象,封装,继承,多态,类与对象,对象初始化和回收;构造函数、this关键字、方法和方法的参数传递过程、static关键字、内部类。4).对象实例化过程、方法的覆盖、final关键字、抽象类、接口、继承的优点和缺点剖析;对象的多态性:子类和父类之间的转换、抽象类和接口在多态
- android学习总结汇总
Kael.dong
android学习androidstudio
本人做过android驱动、OTA、安全、架构;几乎整个BSP底层均有涉猎。android入门自学总结:入门初学,了解安卓编译,各个层的代码简单范例,相互间通信方式,简单定制。这里是早期经验,肯定有不足地方,blog也懒得重新审视更新,大家见谅。android系统源码根据不同的配置文件编译生成不同的系统android系统的简单定制android系统添加linux驱动android系统的日志系统分层
- Android学习总结
Monica_b73c
一眨眼两个周过去了,第一个周安装Androidstudio的时候出了问题然后重新安装了一下,弄好以后安装了模拟器,测试了第一个项目“helloworld”然后成功了。第一个周老师教我们学写静态的页面,做布局,还有图片存放的相关知识,做完以后做页面的跳转,注册和登录,学写了java代码,但也有一些和我们之前不一样的地方,有一些字段存放在res的value中,这两个周学的都是一些新东西,虽然不是对An
- Android学习总结(一)
MarkSiwat
Android学习总结安卓
学习总结学习历程Androidstudio小技巧1.完成一句代码2.打开文档3.提示方法参数4.复制代码5.快速打开文件6.重写父类方法7.安全重命名8.查找使用方法,或类学习历程在第一天开始学习android到现在感觉已经很久了,在自己学习的过程中,我也感觉到了探索知识的魅力。我同样也很享受自己的学习过程,享受从无到有的积累。Android这个领域对于我来说可能算是一个比较陌生的领域,唯一可能算
- Android学习总结--第一周
小芙子☞
Androidandroid编程语言
HelloWorld第一步:安装AndroidStudio软件。在Android官网下载AndroidStudio软件,网页地址https://developer.android.google.cn/about。下载之后安装软件。第二步:软件安装好后,首先新建一个空白模板,选择EmptyActivi,进行下一步。第三步:配置项目信息。Name:将在此应用程序的Android启动程序中显示的名称Pa
- android学习总结与杂想,第一周
sydnever
javaandroid笔记移动开发helloworldandroid软件开发
github:https://github.com/sydcloud先总结下我的技术基础,曾经是学生,大二,现在应该被称为自由职业者。同样的学年,大概大多数学生都和我一样只是初步接触了CC++java这三门语言,懵懵懂懂地知道点又似乎什么都不知道什么是面向对象,多态也没有太搞清是怎么回事。我之前接触了软件领域的很多不同的方向的一些基础,,比如说网页前端,网站构建,服务器维护,桌面级应用开发,数据库
- Android学习总结——Activity之间传递参数
yuxiaoyu.
核心内容:一.在Activity之间传递简单数据二.在Activity之间传递复杂数据三.在Activity之间传递自定义值对象软件环境:AndroidStudio一.在Activity之间传递简单数据主Activity:MainActivityIntentintent=newIntent(MainActivity.this,AnotherActivity.class);//加入参数,传递给Ano
- 在线聊天App研发说明(android学习总结)
疯魔症
本文通过描述在线聊天App的开发过程,对近期学习android开发技术的总结和记录。1.起因这几年android应用发展迅速,android平台已经成为和PC端并列的一大应用平台,在这个大的背景下,自己实在很想了解下android开发,也很有必要掌握下android应用开发。终于六月初时下定决心,认真学习下android开发,做一个App出来。2.初识android确定学习android之后,开始
- android学习总结——service
逍遥老师
service介绍service是Android四大组件之一,是一个可以在后台执行长时间运行操作而不使用用户界面的组件.。服务可由其他应用组件启动(如activity),服务一旦被启动,将一直在后台运行,即使启动服务的组件(activity)已销毁,也不受影响。此外,组件可以绑定到服务,以与之进行交互,甚至是执行进程间通信(IPC)。例如,服务可以处理网络事务、播放音乐,执行文件I/O或与内容提供
- android-----------textview -------------滚动
sno_guo
转自:http://blog.sina.com.cn/s/blog_821e2bb10100uoao.htmlAndroid文字自动滚动(跑马灯)效果的两种实现方法(2011-10-1307:59:43)转载▼标签:杂谈分类:Android学习总结一下跑马灯的实现效果,网上比较流行的有两种,测试过了都可以实现文字滚动效果,建议使用第一种,因为可以更好地控制文字滚动速度、样式、字体等属性,第二种方法
- Android学习总结——Popup menu:弹出式菜单
weixin_30536513
PopupMenu,弹出菜单,一个模态形式展示的弹出风格的菜单,绑在在某个View上,一般出现在被绑定的View的下方(如果下方有空间)。注意:弹出菜单是在API11和更高版本上才有效的。核心步骤:(1)通过PopupMenu的构造函数实例化一个PopupMenu对象,需要传递一个当前上下文对象以及绑定的View。(2)调用PopupMenu.setOnMenuItemClickListener(
- 小熊android学习总结:Linux内核怎样启动Android
xiaoxiongli
对Android感兴趣的朋友都知道,Android系统是建立在Linux内核之上的。那么Linux内核和Android什么关系?Linux内核是怎样引导起Android呢?本文进行简单的描述。Android虽然建立在Linux内核之上,但是他对内核进行了一些扩展,增加了一些驱动。比如Binder,loger等等驱动。可以拿Android内核代码和其Baseline版本进行对比。可以看到Androi
- Android学习总结(一)
好多鱼`_
Android
前几天接触了下安卓,刚开始学习和总结的时候找不到重点在哪,所以翻阅了一下资料,从宏观上看下Android到底是个什么东西。搭建应用开发环境:1.Dalvik虚拟机2.SDKAndroid体系结构具体的介绍:OS:安卓使用Linux为操作系统,对操作系统的使用包括核心和驱动程序两个部分。Libraries本层次对应一般嵌入式系统,相当于中间件层次,这里面存放的是各种库。Application应用程序
- Android学习总结
lulu10922
Android学习总结activity是AndroidSDK中Activity的一个实例,负责控制各组件与用户的交互布局定义了一系列组件,包括Button、TextView、RecyclerView。布局和组件之间的关系可用下图表示:常用组件和布局的继承关系如下图:3.项目的app/res/values目录下保存了一系列的资源,包括字符串资源,图片资源等,包括布局也是资源的一种。它们都通过资源ID
- Android学习总结(一)——Activity概念、生命周期和启动模式
lsh-sh
AndoridActivity生命周期
概念Activity是Android的四大组件之一,它是一种可以包含用户界面的组件,主要用于和用户进行交互。那到底什么是Activity呢?按我的理解是Android提供了一个界面,可以让用户进行点击和各种滑动操作,这就是Activity.生命周期首先来一个Activity生命周期图:让我们来看一下各个回调方法的含义:onCreate:表示Activity正在被创建,这是生命周期的第一个方法。on
- 第十一天 Android学习总结(新特性)
一只大黄牛
Android
1.fragment静态加载直接在xml中定义fragment控件动态加载先定义一个类继承fragment,重写其onCreateView方法,使用inflate方法将fragment_layout转换为view对象,并返回view对象.在activity中,定义初始化一个fragmentmanager和FragmentTransaction管理者和事务对象privateFragmentManag
- 第十天 Android学习总结(多媒体)
一只大黄牛
Android
1.计算机表示图形的几种方式图片的大小=图片的总像素*每个像素的大小bmpjpgpng:android采用获取bitmap图片,当加载大图时,需要先设置缩放比Bitmapbitmap=BitmapFatory.decodeFile(path,option);2.将bitmap图片在imageview上显示出来3.创建bitmap图片的模型(原图不能修改,只能修改模型)4.图形的api(旋转,缩放)
- 第十二天 Android学习总结(SVN)
一只大黄牛
Androidsvn
虚拟机的准备1.virtualbox虚拟机★作为服务端的虚拟机一台,使用桥接模式(可以修改ip地址为固定ip地址,ip地址需要与客户端ip地址处于同一网段,局域网的简单理解成前三个数字相同就好了)★作为客户端的虚拟机一台,使用nat连接模式(不可以修改ip地址)连接网络使用nat方式即可自动连接.不可修改ip地址(需要安装的系统有网络适配器,如果没有,下载个驱动精灵万能网卡版本安装网卡)要使用虚拟
- Android学习总结 :自定义 View(一)
SmartNi
android
在Android中,一个设计精良的自定义View就像其他设计精良的类一样,它封装了一些特殊的功能并且有一个方便使用的界面。真正设计好的自定义View,可以更有效地利用CPU和内存的资源。一个自定义View需要符合以下几点要求:符合Android设计标准为AndroidXMLlayouts界面提供自定义的styleable属性。能发送可访问的事件兼容更多的Android平台版本一、创建自定义view
- IOS及Android学习总结(一)
开心冰激凌
来公司有两个多月了,除了正常的工作以外,一有时间,我喜欢多多搜集关于APP页面设计的相关知识。做到多看,多练习,争取学以致用。经过这段时间的恶补,终于有些眉目了。Iphone设计尺寸分辨率iOS状态栏高度导航栏标签栏倍数关系320x480Iphone3Gs20px44px49px1x640x960Iphone4/4s40px88px98px2x640x1136Iphone5/5s/5c40px88
- Android学习总结--基本框架总结
梦里风吹过
从自学Android到现在也四五个月了,简单的小项目也做过三四个了,想想也是该总结一波的时候了,希望对那些跟我一样自学挣扎的小伙伴有所帮助。另外因为本人有iOS的基础,学习和思考过程很多都参照了很多我对iOS的理解,只是作为对比和加深理解,看到相关内容请自行查资料或者直接无视。基本框架总结因为本人是做iOS的,iOS项目经验还算是比较丰富的,再加上初学Android,项目也简单,因此在基本框架需求
- Android学习总结的tips
YueDev
CardView要在布局最外边,不然阴影显示不全获取app的目录获取当前程序路径getApplicationContext().getFilesDir().getAbsolutePath();获取该程序的安装包路径Stringpath=getApplicationContext().getPackageResourcePath();获取程序默认数据库路径getApplicationContext(
- Kotlin4Android学习总结一:kotlin安装与使用
sgffsg
前言关于Kotlin成为Android开发主力语言的大趋势我想大家都知道,毕竟Google官方都推荐使用了,而且最近JakeWharton大神也加入的google.加入的部门是@AndroidFrameworkteamtoworkon@Kotlinstuff.有句话这样说:跟上大神的脚步。所以我认为每一个Android开发人员都应该学习一下Kotlin,至少不会让自己掉队。我打算写几篇博客记录自己
- Kotlin4Android学习总结三:拓展函数再举例
sgffsg
上一篇已经提到了Kotlin的拓展函数,拓展函数算是目前发现的Kotlin的一个非常闪光的点,使用起来有时候有种暗爽,Kotlin的拓展函数是来干嘛的?准确的说就是来革工具类的命的。这一篇继续举例拓展函数。1,EditText的拓展函数还记得Java代码中EditText的监听文字变化的监听器,写法如下:edit_search.addTextChangedListener(newTextWatch
- Kotlin4Android学习总结二:Kotlin在Android中的基本使用
sgffsg
在上一篇中我们安装了Kotlin并且新建了一个KotlinActivity。这一篇写Kotlin在Android中的基本使用,Kotlin为什么受到那么多大牛的追捧,就是因为,有时候使用它开发确实能够提升效率,节省不少代码。甚至有些写法我感觉可以被称为奇技淫巧。例如:如何findViewById如何设置setOnClickListener如何跳转Activity如何吐司...1,关于findVie
- Android学习总结——Popup menu:弹出式菜单
孤独时代的老狗
Android开发
PopupMenu,弹出菜单,一个模态形式展示的弹出风格的菜单,绑在在某个View上,一般出现在被绑定的View的下方(如果下方有空间)。注意:弹出菜单是在API11和更高版本上才有效的。核心步骤:(1)通过PopupMenu的构造函数实例化一个PopupMenu对象,需要传递一个当前上下文对象以及绑定的View。(2)调用PopupMenu.setOnMenuItemClickListener(
- Android学习总结
lulu10922
activity是AndroidSDK中Activity的一个实例,负责控制各组件与用户的交互布局定义了一系列组件,包括Button、TextView、RecyclerView。布局和组件之间的关系可用下图表示:布局和组件的关系常用组件和布局的继承关系如下图:常用组件和布局的继承关系项目的app/res/values目录下保存了一系列的资源,包括字符串资源,图片资源等,包括布局也是资源的一种。它们
- Android学习总结(1)
Genius_J
Android
用inputStream读取时使用byte[1024],字符串没有这么多,会有不知明的字符引入,用Toast检测没有显示额外字符,但用System.out则会显示方案:改用BufferReadwebView加载的界面在url相同,LOAD_CACHE_ELSE_NETWORK的缓存模式情况下,每次打开app不会重新加载网上最新内容,要想加载网上最新内容必须清除app的Cookie,单单清除缓存可能
- Android学习总结之开发工具AndroidStudio的安装与配置
趣学程序
安装AndroidStudio首先下载AndroidStudio的安装包,直接在百度AndroidStudio下载即可,安装过程简单,只需要修改安装路径(不要有空格和中文即可)。然后下一步下一步就可以了。简单配置AndroidStudio安装完成之后,不要立即打开,我们打开安装目录,F:\Android_Studio\Android\Android_Studio\bin这个目录下找到idea.pr
- Android学习总结(5)——9个非常有用的Andorid 程序片段
u012562943
一,获取系统版本号:PackageInfoinfo=this.getPackageManager().getPackageInfo(this.getPackageName(),0);intversionCode=nfo.versionCodestringversionName=info.versionNam其实我们用的更多的是编译的版本号Build.VERSION.SDK_INT,范围从0到目前的
- Java常用排序算法/程序员必须掌握的8大排序算法
cugfy
java
分类:
1)插入排序(直接插入排序、希尔排序)
2)交换排序(冒泡排序、快速排序)
3)选择排序(直接选择排序、堆排序)
4)归并排序
5)分配排序(基数排序)
所需辅助空间最多:归并排序
所需辅助空间最少:堆排序
平均速度最快:快速排序
不稳定:快速排序,希尔排序,堆排序。
先来看看8种排序之间的关系:
1.直接插入排序
(1
- 【Spark102】Spark存储模块BlockManager剖析
bit1129
manager
Spark围绕着BlockManager构建了存储模块,包括RDD,Shuffle,Broadcast的存储都使用了BlockManager。而BlockManager在实现上是一个针对每个应用的Master/Executor结构,即Driver上BlockManager充当了Master角色,而各个Slave上(具体到应用范围,就是Executor)的BlockManager充当了Slave角色
- linux 查看端口被占用情况详解
daizj
linux端口占用netstatlsof
经常在启动一个程序会碰到端口被占用,这里讲一下怎么查看端口是否被占用,及哪个程序占用,怎么Kill掉已占用端口的程序
1、lsof -i:port
port为端口号
[root@slave /data/spark-1.4.0-bin-cdh4]# lsof -i:8080
COMMAND PID USER FD TY
- Hosts文件使用
周凡杨
hostslocahost
一切都要从localhost说起,经常在tomcat容器起动后,访问页面时输入http://localhost:8088/index.jsp,大家都知道localhost代表本机地址,如果本机IP是10.10.134.21,那就相当于http://10.10.134.21:8088/index.jsp,有时候也会看到http: 127.0.0.1:
- java excel工具
g21121
Java excel
直接上代码,一看就懂,利用的是jxl:
import java.io.File;
import java.io.IOException;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.Label;
import
- web报表工具finereport常用函数的用法总结(数组函数)
老A不折腾
finereportweb报表函数总结
ADD2ARRAY
ADDARRAY(array,insertArray, start):在数组第start个位置插入insertArray中的所有元素,再返回该数组。
示例:
ADDARRAY([3,4, 1, 5, 7], [23, 43, 22], 3)返回[3, 4, 23, 43, 22, 1, 5, 7].
ADDARRAY([3,4, 1, 5, 7], "测试&q
- 游戏服务器网络带宽负载计算
墙头上一根草
服务器
家庭所安装的4M,8M宽带。其中M是指,Mbits/S
其中要提前说明的是:
8bits = 1Byte
即8位等于1字节。我们硬盘大小50G。意思是50*1024M字节,约为 50000多字节。但是网宽是以“位”为单位的,所以,8Mbits就是1M字节。是容积体积的单位。
8Mbits/s后面的S是秒。8Mbits/s意思是 每秒8M位,即每秒1M字节。
我是在计算我们网络流量时想到的
- 我的spring学习笔记2-IoC(反向控制 依赖注入)
aijuans
Spring 3 系列
IoC(反向控制 依赖注入)这是Spring提出来了,这也是Spring一大特色。这里我不用多说,我们看Spring教程就可以了解。当然我们不用Spring也可以用IoC,下面我将介绍不用Spring的IoC。
IoC不是框架,她是java的技术,如今大多数轻量级的容器都会用到IoC技术。这里我就用一个例子来说明:
如:程序中有 Mysql.calss 、Oracle.class 、SqlSe
- 高性能mysql 之 选择存储引擎(一)
annan211
mysqlInnoDBMySQL引擎存储引擎
1 没有特殊情况,应尽可能使用InnoDB存储引擎。 原因:InnoDB 和 MYIsAM 是mysql 最常用、使用最普遍的存储引擎。其中InnoDB是最重要、最广泛的存储引擎。她 被设计用来处理大量的短期事务。短期事务大部分情况下是正常提交的,很少有回滚的情况。InnoDB的性能和自动崩溃 恢复特性使得她在非事务型存储的需求中也非常流行,除非有非常
- UDP网络编程
百合不是茶
UDP编程局域网组播
UDP是基于无连接的,不可靠的传输 与TCP/IP相反
UDP实现私聊,发送方式客户端,接受方式服务器
package netUDP_sc;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.Ine
- JQuery对象的val()方法执行结果分析
bijian1013
JavaScriptjsjquery
JavaScript中,如果id对应的标签不存在(同理JAVA中,如果对象不存在),则调用它的方法会报错或抛异常。在实际开发中,发现JQuery在id对应的标签不存在时,调其val()方法不会报错,结果是undefined。
- http请求测试实例(采用json-lib解析)
bijian1013
jsonhttp
由于fastjson只支持JDK1.5版本,因些对于JDK1.4的项目,可以采用json-lib来解析JSON数据。如下是http请求的另外一种写法,仅供参考。
package com;
import java.util.HashMap;
import java.util.Map;
import
- 【RPC框架Hessian四】Hessian与Spring集成
bit1129
hessian
在【RPC框架Hessian二】Hessian 对象序列化和反序列化一文中介绍了基于Hessian的RPC服务的实现步骤,在那里使用Hessian提供的API完成基于Hessian的RPC服务开发和客户端调用,本文使用Spring对Hessian的集成来实现Hessian的RPC调用。
定义模型、接口和服务器端代码
|---Model
&nb
- 【Mahout三】基于Mahout CBayes算法的20newsgroup流程分析
bit1129
Mahout
1.Mahout环境搭建
1.下载Mahout
http://mirror.bit.edu.cn/apache/mahout/0.10.0/mahout-distribution-0.10.0.tar.gz
2.解压Mahout
3. 配置环境变量
vim /etc/profile
export HADOOP_HOME=/home
- nginx负载tomcat遇非80时的转发问题
ronin47
nginx负载后端容器是tomcat(其它容器如WAS,JBOSS暂没发现这个问题)非80端口,遇到跳转异常问题。解决的思路是:$host:port
详细如下:
该问题是最先发现的,由于之前对nginx不是特别的熟悉所以该问题是个入门级别的:
? 1 2 3 4 5
- java-17-在一个字符串中找到第一个只出现一次的字符
bylijinnan
java
public class FirstShowOnlyOnceElement {
/**Q17.在一个字符串中找到第一个只出现一次的字符。如输入abaccdeff,则输出b
* 1.int[] count:count[i]表示i对应字符出现的次数
* 2.将26个英文字母映射:a-z <--> 0-25
* 3.假设全部字母都是小写
*/
pu
- mongoDB 复制集
开窍的石头
mongodb
mongo的复制集就像mysql的主从数据库,当你往其中的主复制集(primary)写数据的时候,副复制集(secondary)会自动同步主复制集(Primary)的数据,当主复制集挂掉以后其中的一个副复制集会自动成为主复制集。提供服务器的可用性。和防止当机问题
mo
- [宇宙与天文]宇宙时代的经济学
comsci
经济
宇宙尺度的交通工具一般都体型巨大,造价高昂。。。。。
在宇宙中进行航行,近程采用反作用力类型的发动机,需要消耗少量矿石燃料,中远程航行要采用量子或者聚变反应堆发动机,进行超空间跳跃,要消耗大量高纯度水晶体能源
以目前地球上国家的经济发展水平来讲,
- Git忽略文件
Cwind
git
有很多文件不必使用git管理。例如Eclipse或其他IDE生成的项目文件,编译生成的各种目标或临时文件等。使用git status时,会在Untracked files里面看到这些文件列表,在一次需要添加的文件比较多时(使用git add . / git add -u),会把这些所有的未跟踪文件添加进索引。
==== ==== ==== 一些牢骚
- MySQL连接数据库的必须配置
dashuaifu
mysql连接数据库配置
MySQL连接数据库的必须配置
1.driverClass:com.mysql.jdbc.Driver
2.jdbcUrl:jdbc:mysql://localhost:3306/dbname
3.user:username
4.password:password
其中1是驱动名;2是url,这里的‘dbna
- 一生要养成的60个习惯
dcj3sjt126com
习惯
一生要养成的60个习惯
第1篇 让你更受大家欢迎的习惯
1 守时,不准时赴约,让别人等,会失去很多机会。
如何做到:
①该起床时就起床,
②养成任何事情都提前15分钟的习惯。
③带本可以随时阅读的书,如果早了就拿出来读读。
④有条理,生活没条理最容易耽误时间。
⑤提前计划:将重要和不重要的事情岔开。
⑥今天就准备好明天要穿的衣服。
⑦按时睡觉,这会让按时起床更容易。
2 注重
- [介绍]Yii 是什么
dcj3sjt126com
PHPyii2
Yii 是一个高性能,基于组件的 PHP 框架,用于快速开发现代 Web 应用程序。名字 Yii (读作 易)在中文里有“极致简单与不断演变”两重含义,也可看作 Yes It Is! 的缩写。
Yii 最适合做什么?
Yii 是一个通用的 Web 编程框架,即可以用于开发各种用 PHP 构建的 Web 应用。因为基于组件的框架结构和设计精巧的缓存支持,它特别适合开发大型应
- Linux SSH常用总结
eksliang
linux sshSSHD
转载请出自出处:http://eksliang.iteye.com/blog/2186931 一、连接到远程主机
格式:
ssh name@remoteserver
例如:
ssh
[email protected]
二、连接到远程主机指定的端口
格式:
ssh name@remoteserver -p 22
例如:
ssh i
- 快速上传头像到服务端工具类FaceUtil
gundumw100
android
快速迭代用
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOExceptio
- jQuery入门之怎么使用
ini
JavaScripthtmljqueryWebcss
jQuery的强大我何问起(个人主页:hovertree.com)就不用多说了,那么怎么使用jQuery呢?
首先,下载jquery。下载地址:http://hovertree.com/hvtart/bjae/b8627323101a4994.htm,一个是压缩版本,一个是未压缩版本,如果在开发测试阶段,可以使用未压缩版本,实际应用一般使用压缩版本(min)。然后就在页面上引用。
- 带filter的hbase查询优化
kane_xie
查询优化hbaseRandomRowFilter
问题描述
hbase scan数据缓慢,server端出现LeaseException。hbase写入缓慢。
问题原因
直接原因是: hbase client端每次和regionserver交互的时候,都会在服务器端生成一个Lease,Lease的有效期由参数hbase.regionserver.lease.period确定。如果hbase scan需
- java设计模式-单例模式
men4661273
java单例枚举反射IOC
单例模式1,饿汉模式
//饿汉式单例类.在类初始化时,已经自行实例化
public class Singleton1 {
//私有的默认构造函数
private Singleton1() {}
//已经自行实例化
private static final Singleton1 singl
- mongodb 查询某一天所有信息的3种方法,根据日期查询
qiaolevip
每天进步一点点学习永无止境mongodb纵观千象
// mongodb的查询真让人难以琢磨,就查询单天信息,都需要花费一番功夫才行。
// 第一种方式:
coll.aggregate([
{$project:{sendDate: {$substr: ['$sendTime', 0, 10]}, sendTime: 1, content:1}},
{$match:{sendDate: '2015-
- 二维数组转换成JSON
tangqi609567707
java二维数组json
原文出处:http://blog.csdn.net/springsen/article/details/7833596
public class Demo {
public static void main(String[] args) { String[][] blogL
- erlang supervisor
wudixiaotie
erlang
定义supervisor时,如果是监控celuesimple_one_for_one则删除children的时候就用supervisor:terminate_child (SupModuleName, ChildPid),如果shutdown策略选择的是brutal_kill,那么supervisor会调用exit(ChildPid, kill),这样的话如果Child的behavior是gen_