Better Man Send someone to love me 请赐给我一个爱人, I need to rest in arms 我想在她的臂弯中休息。 Keep me safe from harm In pouring rain 别让我在暴风骤雨中,受到伤害。 Give me e...
分类:
其他好文 时间:
2015-07-05 16:32:59
阅读次数:
117
一、[root@movie~]#curlifconfig.me124.193.193.25[root@movie~]#curlifconfig.me/allip_addr:124.193.193.25remote_host:user_agent:curl/7.19.7(x86_64-redhat-linux-gnu)libcurl/7.19.7NSS/3.16.1BasicECCzlib/1.2.3libidn/1.18libssh2/1.4.2port:46231lang:connection:keep..
分类:
系统相关 时间:
2015-07-04 23:37:15
阅读次数:
546
Description There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out...
分类:
其他好文 时间:
2015-07-04 16:40:17
阅读次数:
96
A classic subroutine of merge sort. Just merge the elements from back to forth. Keep a pointer for the merged position of the element and two other po...
分类:
其他好文 时间:
2015-07-02 19:29:31
阅读次数:
112
用pair作为基本结构保存q和d,在用一个数组vector<pair >来存储输入数据。然后按照等待时间 d 排序,注意用sort排序默认是用first,这里的的first是q,所以要重写一个比较函数,用second排序。
接下来就是贪心算法,用优先队列priority_queue<pair > 存储结果,这里体现了用pair的优点,刚好优先队列中就是first高优先级高。
一个个入队,如果总时间超过了当前限制时间,则把队中花费时间最长的元素(就是q最大的)删掉。...
分类:
其他好文 时间:
2015-06-25 09:03:00
阅读次数:
205
一:HTTP协议HTTP协议:超文本传输协议.主要用于传输文本信息.二:HTTP协议的版本http0.9:只有基本的文本GET功能。http1.0:引入MIME完善的请求/响应模型,并将协议补充完整。http1.1:在1.0基础上进行更新,增加了如长久连接keep-alive与chunked等功能。三:HTTP协议请求的方法有哪..
分类:
Web程序 时间:
2015-06-25 01:30:30
阅读次数:
228
1、什么是Keep-Alive模式?我们知道HTTP协议采用“请求-应答”模式,当使用普通模式,即非KeepAlive模式时,每个请求/应答客户和服务器都要新建一个连接,完成之后立即断开连接(HTTP协议为无连接的协议);当使用Keep-Alive模式(又称持久连接、连接重用)时,Keep-Aliv...
分类:
Web程序 时间:
2015-06-24 15:58:09
阅读次数:
189
看到有人问Connection: close和Connection: keep-alive有什么区别?想起以前学习到的一篇文章,今天转载来,大家看看,我也再温故知新下。如果有问题补充的在下面可以扩充下。等忙完了,我也再补充些。一、问题现象: 一个JSP页面,居然要耗时40多秒。网页中有大量的图片的C...
分类:
其他好文 时间:
2015-06-24 12:40:23
阅读次数:
162
控制表头不换行://设置不换行GridView1.Style.Add("word-break", "keep-all");GridView1.Style.Add("word-wrap", "normal");或者//正常换行GridView1.Attributes.Add("style", "wor...
分类:
其他好文 时间:
2015-06-23 19:36:00
阅读次数:
117
程序员必须知道的编程格言分类:程序员/站长2012-02-29 09:52588人阅读评论(2)收藏举报编程blog1.保持简单直白(Keep It Simple Stupid)2.不要自我复制(Don’t Repeat Yourself)3.能干的人解决问题。智慧的人绕开问题(A clever p...
分类:
其他好文 时间:
2015-06-23 13:19:43
阅读次数:
146