1:MongostatMongoDB2.6版本MongoDB3.0版本2:db.setProfilingLevel(2):打开profiler类似于MySQL的slow logProfiler默认是关闭的,你可以选择全部开启,或者有慢查询的时候开启。db.setProfilingLevel(leve...
分类:
数据库 时间:
2015-07-01 17:57:29
阅读次数:
243
Rabbit 通过方式获取消息:订阅方式其实是向queue注册consumer,通过rpc向queue server发送注册consumer的消息,rabbitMQ Server在收到消息后,根据消息的内容类型判断这是一个订阅消息,这样当MQ 中queue有消息时,会自动把消息通过该socket(长连接)通道发送出去。
可以通过channel.basicQos(1); 设置RabbitMQ调度分...
分类:
其他好文 时间:
2015-06-30 18:28:37
阅读次数:
131
1.首先在华为官网用手机号注册账号http://consumer.huawei.com/cn/
2.http://www.emui.com/plugin.php?id=unlock&mod=detail 在此界面申请解锁
其中用到的一些数据:
产品S/N号查询方法:在手机的拨号界面输入*#*#2846579#*#*,进入ProjectMenu -
单板基本信息查询 - 其他查询,即可看到...
分类:
其他好文 时间:
2015-06-30 13:06:47
阅读次数:
206
一、概述模拟生产者消费者问题二、代码1.Consumer.java2.Producer.java3.SyncStack.java4.Test.java1.Consumer.javapackage ProducerConsumer;public class Consumer implements Ru...
分类:
编程语言 时间:
2015-06-29 13:00:48
阅读次数:
117
转载请注明出处:jiq?钦's
technical Blog
一、静态代理:
假设原来有一个实现了指定接口/抽象类的子类:
class RealSubject implements Subject{
public void request(){
System.out.print("real request handling\n");...
分类:
编程语言 时间:
2015-06-28 06:28:30
阅读次数:
141
Why to use splash screen?Typically, you should use a splash screen in your app only if your app is unusually slow to load if you want to add additiona...
原文:Handling Concurrency with the Entity Framework 6 in an ASP.NET MVC 5 Application1.并发冲突: 当一个用户编辑一个实体数据时,另一个用户在第一个用户的改变提交到数据库之前同时也在编辑这个实体数据,这时就会发生冲突....
分类:
Web程序 时间:
2015-06-26 10:48:41
阅读次数:
171
Exception handling statements
分类:
其他好文 时间:
2015-06-26 00:26:06
阅读次数:
153
If you're handling sensitive data and you don't want exceptions logging details such as variable contents when you throw them, you may find yourself f...
分类:
Web程序 时间:
2015-06-24 18:05:20
阅读次数:
148
具体步骤:
Export... -> java -> Runnable JAR fileLaunch configuration:选择main方法所在的文件/类Export destination:选择或填写jar包的名字,如:d:\a.jarLibrary Handling:随便选择一种(三种的区别请看后文)点击“Finish”按钮,生成jar文件
执行jar文件:
jav...
分类:
编程语言 时间:
2015-06-24 16:23:14
阅读次数:
170