一

{"type":"编程笔记"}


  • Home

  • Archives
  • Search

linux剪贴板管理工具收集

Posted on 2012-04-10   |   In linux

parcellite

Read more »

wget常用命令

Posted on 2012-04-06   |   In linux

wget指定下载文件名

Read more »

word-break:break-all和word-wrap:break-word的区别

Posted on 2012-03-20   |   In css

它们的区别就在于

  1. word-break: break-all:例如div宽200px,它的内容就会到200px自动换行,如果该行末端有个英文单词很长(congratulation等),它会把单词截断,变成该行末端为conra(congratulation的前端部分),下一行为tulation(conguatulation)的后端部分了。
  2. word-wrap: break-word:例子与上面一样,但区别就是它会把congratulation整个单词看成一个整体,如果该行末端宽度不够显示整个单词,它会自动把整个单词放到下一行,而不会把单词截断掉的。
  3. word-break原来是个ie专有的css属性,现在的浏览器多数都已经支持。
Read more »

chrome浏览器http request timeline各阶段说明

Posted on 2012-03-12   |   In web

Rough Definitions

  1. DNS Lookup: Translating the web address into a destination IP address by using a DNS server Connecting: Establishing a connection with the web server
  2. Blocking: Previously known as 'queueing', this is explained in more detail here
  3. Sending: Sending your HTTP Request to the server
  4. Waiting: Waiting for a response from the server - this is where it's probably doing all the work
  5. Receiving: Getting the HTTP response back from the server
Read more »

apache2.2日志中的特殊字符

Posted on 2011-12-20   |   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格式字符串将会记录发送的实际字节数。

Read more »
1…404142…99
yuweijun

yuweijun

492 posts
12 categories
RSS
GitHub Twitter
© 2021 yuweijun
Powered by Hexo
Theme - NexT.Mist.KISS