Problem Description
XXX is puzzled with the question below:
1, 2, 3, ..., n (1
Operation 1: among the x-th number to the y-th number (inclusive), get the sum of the numbers which are co-prim...
分类:
其他好文 时间:
2014-09-30 02:54:32
阅读次数:
302
在国内访问的时候,WordPress 里面引用的 google 字体可能会导致加载速度变得很慢。要修改的地方有(我使用的版本是 4.0):wp-includes 里面的script-loader.php 有一行:$open_sans_font_url = "//fonts.googleapis.co...
分类:
其他好文 时间:
2014-09-29 14:07:40
阅读次数:
255
geekso还没更新破解补丁。我就用10.5的破解好的jar,自制了10.6的破解jar.用反编译工具看了下源码,其实就是两文件为关键:LicenseKey和SKU,只需替换这两文件,破解就成功了~自行替换com.zend.php.core_10.6.0.v20140128-2127.jar中\co...
分类:
Web程序 时间:
2014-09-29 00:11:06
阅读次数:
234
mysql主键设置成auto_increment时,进行并发性能测试出现主键重复Duplicate entry 'xxx' for key 'PRIMARY'
解决方法:
在my.cnf的[mysqld]片段中添加设置innodb_autoinc_lock_mode=0
同时注意调大jdbc的活跃链接数,如设置 jdbc.maxActive=300,因为设置innodb_autoinc_lo...
分类:
数据库 时间:
2014-09-28 19:51:05
阅读次数:
209
有两种方式://通过读取配置文件来获取连接字符串第一种方式:App.config 文件的格式: 在SqlHelper中通过代码读取配置文件中的字符串:(需添加引用:using System.Configuration;)private static readonly string co...
分类:
移动开发 时间:
2014-09-28 16:07:13
阅读次数:
247
针对一些运营商的锁网需求,MTK平台已经对其有很好的支持。绝大多数的海外需求可以通过直接配置相关文件来完成。这里简单描述一下配置方法,不做原理分析。相关数据结构分析:Modem中与SML锁网配置相关的数据结构有:Sml_context_struct:SML上下文,cat:SML种类,目前MTK平台共...
分类:
其他好文 时间:
2014-09-28 14:09:42
阅读次数:
261
简介Netstat 命令用于显示各种网络相关信息,如网络连接,路由表,接口状态 (Interface Statistics),masquerade 连接,多播成员 (Multicast Memberships) 等等。输出信息含义执行netstat后,其输出结果为Active Internet co...
分类:
Web程序 时间:
2014-09-28 11:58:11
阅读次数:
352
n^3的复杂度计算最小子矩阵,用了最大连续和的DP算法。
14273282
108
Maximum Sum
Accepted
C++
0.013
2014-09-27
#include
#include
#include
using namespace std;
const int INF = 1 << 30;
co...
分类:
其他好文 时间:
2014-09-27 21:38:40
阅读次数:
208
1.结构Lock的实现类其实都是构建在AbstractQueuedSynchronizer上,每个Lock实现类都持有自己内部类Sync的实例二。LockSupportThis class associates, with each thread that uses it, a permit (in...
分类:
其他好文 时间:
2014-09-27 18:00:40
阅读次数:
217
1.一个简单的单例类:
class Singleton
{
public:
static Singleton *getInstance()
{
if(pInstance_ == NULL){
mutex_.lock();
if(pInstance_ == NULL){
...
分类:
其他好文 时间:
2014-09-27 14:43:19
阅读次数:
132