直接运行一下代码就可以:
log-error=log-error.log
log=log.log
log-bin=log-bin.log
log-queries-not-using-indexes=log-queries-not-using-indexes.log
log-warnings=1
log-slow-queries=log-slow-query.log
log-u...
分类:
数据库 时间:
2015-02-14 12:26:22
阅读次数:
152
Rabbitmq 官方给的NET consumer示例代码如下,但使用过程,会遇到connection断开的问题,一旦断开,这个代码就会报错,如果你的消费者端是这样的代码的话,就会导致消费者挂掉。using System;using RabbitMQ.Client;using RabbitMQ.Cl...
分类:
其他好文 时间:
2015-02-12 22:32:38
阅读次数:
580
import java.util.Random; import java.util.concurrent.LinkedBlockingQueue; class producer { Random rdm = new Random(); void produce( Lin...
分类:
编程语言 时间:
2015-02-12 20:09:01
阅读次数:
216
题目链接:http://acm.sgu.ru/problem.php?contest=0&problem=455Due to the slow 'mod' and 'div' operations with int64 type, all Delphi solutions for the probl...
分类:
编程语言 时间:
2015-02-11 21:48:03
阅读次数:
322
Time Limit: 2 Seconds Memory Limit: 65536 KBOne day, Nobita found that his computer is extremely slow. After several hours’ work, he finally found that it was a virus that made his poor computer s...
分类:
其他好文 时间:
2015-02-10 15:21:51
阅读次数:
183
https://scotch.io/tutorials/handling-checkboxes-and-radio-buttons-in-angular-forms Angular Checkboxes and Radio But...
分类:
Web程序 时间:
2015-02-10 14:53:52
阅读次数:
158
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combinat...
分类:
Web程序 时间:
2015-02-08 21:54:06
阅读次数:
201
DROP命令(Commands)实现:
/*
* Drop one or more objects.
*
* We don't currently handle all object types here. Relations, for example,
* require special handling, because (for example) indexes have add...
分类:
数据库 时间:
2015-02-06 14:57:50
阅读次数:
290
题目:
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?分析:首先使用快慢指针技巧,如果fast指针和slow指针相遇,则说明链表存在环路。当f...
分类:
其他好文 时间:
2015-02-05 20:29:16
阅读次数:
180