Gesture RecognizersGesture recognizers convert low-level event handling code into higher-level actions. They are objects that you attach to a view, wh...
分类:
移动开发 时间:
2014-12-25 12:51:17
阅读次数:
658
jQuery Callback 函数 Callback 函数在当前动画 100% 完成之后执行。 jQuery 动画的问题 许多 jQuery 函数涉及动画。这些函数也许会将 speed 或 duration 作为可选参数。 例子:$("p").hide("slow") speed 或 durati...
分类:
Web程序 时间:
2014-12-25 09:50:31
阅读次数:
142
1.使用命令 showvariableslike‘slow_query_log‘; 查看到当前没有开启慢查询2.使用命令 showvariableslike‘%log%‘; 也没有开启log_queries_not_using_indexs3.setgloballog_queries_not_using_indexes=on;4.showvariableslike‘long_query_time‘; 查看到long_query_time的值为10..
分类:
数据库 时间:
2014-12-24 18:22:24
阅读次数:
320
In my recent codeproject article on the DataGrid I described a number of techniques for handling the updates to DataTables which are bound to the grid...
在写celery后台任务时,使用redis作为broker,但是启用worker时一直报错,[2014-12-23 14:50:16,056: ERROR/MainProcess] consumer: Cannot connect to redis://localhost:6379/0: Error 111 connecting to loca...
分类:
系统相关 时间:
2014-12-23 17:49:26
阅读次数:
541
SDL2.0中循环播放一段声音文件 ,并且添加上注释。
/* 加载并且循环播放一个WAV文件*/
/* loopwaves.c is much more robust in handling WAVE files --
This is only for simple WAVEs
*/
#include "SDL_config.h"
#include
#include
#if HA...
分类:
其他好文 时间:
2014-12-23 12:33:13
阅读次数:
401
1.开启MySQL的慢查询日志功能默认情况下,MySQL是不会记录超过一定执行时间的SQL语句的。要开启这个功能,我们需要修改MySQL的配置文件,windows下修改my.ini,Linux下修改my.cnf文件,在[mysqld]最后增加如下命令:复制代码代码如下:slow_query_loglong_query_time=1
分类:
数据库 时间:
2014-12-20 10:30:35
阅读次数:
227
RabbitMQ是一个消息代理,核心原理:发送消息,接收消息。RabbitMQ主要用于组件之间的解耦,消息发送者无需知道消息使用者的存在,反之亦然。 单向解耦 双向解耦(如:RPC)例如一个日志系统,很容易使用RabbitMQ简化工作量,一个Consumer进行消息的正常处理,另一个Co...
分类:
其他好文 时间:
2014-12-19 15:40:47
阅读次数:
199
siblings(可选):用于选择同辈元素的表达式;slideDown(speed,[callback]):speed(String,Number):三种预定速度之一的字符串("slow","normal" or "fast"), 或者设定的毫秒数值(如:200)callback(Function)...
分类:
Web程序 时间:
2014-12-18 13:22:31
阅读次数:
205
做kafka相关项目,需要用到监控的东东,找到了两个方法第一个:http://quantifind.com/KafkaOffsetMonitor/非常容易上手,效果也直观,可以显示各个topic consumer的offset broker存储log的长度不过发现一个bug就是当 consumer没...
分类:
其他好文 时间:
2014-12-17 17:55:21
阅读次数:
768