wget常用命令
Posted on
|
In
linux
word-break:break-all和word-wrap:break-word的区别
Posted on
|
In
css
它们的区别就在于
word-break: break-all:例如div宽200px,它的内容就会到200px自动换行,如果该行末端有个英文单词很长(congratulation等),它会把单词截断,变成该行末端为conra(congratulation的前端部分),下一行为tulation(conguatulation)的后端部分了。word-wrap: break-word:例子与上面一样,但区别就是它会把congratulation整个单词看成一个整体,如果该行末端宽度不够显示整个单词,它会自动把整个单词放到下一行,而不会把单词截断掉的。word-break原来是个ie专有的css属性,现在的浏览器多数都已经支持。
chrome浏览器http request timeline各阶段说明
Posted on
|
In
web
Rough Definitions
- DNS Lookup: Translating the web address into a destination IP address by using a DNS server Connecting: Establishing a connection with the web server
- Blocking: Previously known as 'queueing', this is explained in more detail here
- Sending: Sending your HTTP Request to the server
- Waiting: Waiting for a response from the server - this is where it's probably doing all the work
- Receiving: Getting the HTTP response back from the server
apache2.2日志中的特殊字符
Posted on
|
In
linux
出于安全考虑,从2.0.46版本开始,%r,%i,%o中的特殊字符,除了双引号(")和反斜线(\)分别用\"和\\进行转义、空白字符用C风格(\n,\t等)进行转义以外,非打印字符和其它特殊字符使用\xhh格式进行转义(hh是该字符的16进制编码)。
在2.0.46以前的版本中,这些内容会被完整的按原样记录。这种做法将导致客户端可以在日志中插入控制字符,所以你在处理这些日志文件的时候要特别小心。
在2.0版本中(不同于1.3),%b和%B格式字符串并不表示发送到客户端的字节数,而只是简单的表示HTTP应答字节数(在连接中断或使用SSL时与前者有所不同)。mod_logio提供的%O格式字符串将会记录发送的实际字节数。