1、linux 下nginx默认支持x-sendfile模式Nginx 默认支持该特性,不需要加载额外的模块。需要发送的 HTTP 头为 X-Accel-Redirect。另外,需要在配置文件中做以下设定location /protected/ { internal; root /some/pa.....
分类:
Web程序 时间:
2014-10-29 08:02:47
阅读次数:
151
第一个单调队列优化dp写了半天,最后初始化搞错了还一直wa。。题目大意:炒股,总共 t 天,每天可以买入na[i]股,卖出nb[i]股,价钱分别为pa[i]和pb[i],最大同时拥有p股且一次交易后至少要间隔w天才能再次交易,初始有0股,本金无限,求最大收益题解:dp[i][j]表示第 i 天,有 ...
分类:
其他好文 时间:
2014-10-28 19:22:54
阅读次数:
169
这题分两步,第一步由给定的p字符串得到原来的括号表达式,第二步由括号表达式得到W字符串。q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses before the ith right pa...
分类:
其他好文 时间:
2014-10-28 10:16:45
阅读次数:
154
问题描述:1、机器:Linux主机,特别是主机为大内存,比如: 4G内存的使用pae内核的Ubuntu系统的dell电脑。2、情况:使用VirtualBox安装Linux系统时,比如:通过Virtalbox安装 ChromeOS、安装YLMF OS等。3、原因:需要安装的linux系统需要启动 pa...
上一篇博客我们把权限和欢迎动画讲了一下,接下来给大家讲服务和主活动的使用,在上一篇中我们介绍到了服务和活动,在
启动服务之后,服务会将网络请求到的天气信息以广播的形式发送至活动,而活动只需要接收广播就OK了,之后将得到的数据
赋给对应的容器组件就OK了
下面我们先来看看服务的代码 (extends IntentService implements LocationListener):
pa...
分类:
移动开发 时间:
2014-10-27 09:23:41
阅读次数:
235
The zero value of a slice isnil.A nil slice has a length and capacity of 0.(To learn more about slices, read theSlices: usage and internalsarticle.)pa...
分类:
其他好文 时间:
2014-10-27 01:42:33
阅读次数:
165
EmacsWiki上关于它的介绍HighlightParentheses,下载最新版请通过作者的GitHub:https://github.com/nschum/highlight-parentheses.el目前的最新版是1.0.2加载文件中加入以下语句(require 'highlight-pa...
分类:
系统相关 时间:
2014-10-26 20:59:11
阅读次数:
340
用于矿脉钻探、天然气钻探、包含大地环境的地科研究项目Geosoft Oasis.Montaj.v7.51 1CDGeosoft Oasis.Montaj.v7.0.1 1CD(用于矿脉钻探、天然气钻探、包含大地环境的地科研究项目,与未爆弹侦测等作业)\Eencom PA 8\MapObjects.J...
分类:
其他好文 时间:
2014-10-26 16:43:14
阅读次数:
118
题目大意:……简洁明了自己看
第一问快速幂
第二问扩展欧几里得
第三问BSGS
顺便一开始没看到p是质数0.0 去弄了EXBSGS的模板0.0 懒得改了
#include
#include
#include
#include
#include
#define M 1001001
using namespace std;
typedef long long ll;
typedef pa...
分类:
其他好文 时间:
2014-10-23 14:28:12
阅读次数:
239
Problem Description
The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group. A quote from the book:
Tout avait Pa...
分类:
其他好文 时间:
2014-10-21 21:44:00
阅读次数:
217