当前位置: 编程技术>移动开发
本页文章导读:
▪持续 验证码 继续 验证码
返回字符HTTP/1.1 200 OKDate: Thu, 15 Nov 2007 01:09:49 GMTServer: Microsoft-IIS/6.0MicrosoftOfficeWebServer: 5.0_PubX-Powered-By: ASP.NETPragma: no-cachecache-ctrol: no-cacheContent-Length: 1254Content-Type: image/BMPExpires: .........
▪ div 框子阴影 div 边框阴影
关于网页页面边框阴影的实现 浏览次数:858次悬赏分:30 | 解决时间:2009-10-31 19:42 | 提问者:飞剑侠 比如这个网页http://www.w3school.com.cn/index.html我想知道这个最外面的阴影是.........
▪ awk 日记解析 awk 日志解析
cat test.txt test1.txt | sort | uniq -d
vimdiff tmp1 tem2
cat tmp1 tmp2 | uniq -d
awk '{print $7}' log.2 | sort | uniq > log2.log
合并文件
cat file1.out file2.out > file2.out
cat promition.success.log.2011-08-15-* > pr.........
[1]持续 验证码
来源: 互联网 发布时间: 2014-02-18
继续 验证码
返回字符
HTTP/1.1 200 OK
Date: Thu, 15 Nov 2007 01:09:49 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Pragma: no-cache
cache-ctrol: no-cache
Content-Length: 1254
Content-Type: image/BMP
Expires: Thu, 15 Nov 2007 01:08:49 GMT
Set-Cookie: ASPSESSIONIDSQSQTRST=GOOONBLBJCDIBGFHALMMIPOH; path=/
Cache-control: private
BM?
这个MB?后面无法显示,这里应该就是图片了,但是我不知道怎么把图片弄到pictureBox1中
string picstr = this._data.Substring(this._header.Length+4);
byte[] s = (byte[])System.Text.Encoding.Default.GetBytes(picstr.Trim());
MemoryStream buf = new MemoryStream(s);
Image image = Image.FromStream(buf,true);
return image;
提示我说参数无效,picstr 是我从BM开始截取的,包含BM,头都大了,那位老大指点一下,感激不尽
返回字符
HTTP/1.1 200 OK
Date: Thu, 15 Nov 2007 01:09:49 GMT
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Pragma: no-cache
cache-ctrol: no-cache
Content-Length: 1254
Content-Type: image/BMP
Expires: Thu, 15 Nov 2007 01:08:49 GMT
Set-Cookie: ASPSESSIONIDSQSQTRST=GOOONBLBJCDIBGFHALMMIPOH; path=/
Cache-control: private
BM?
这个MB?后面无法显示,这里应该就是图片了,但是我不知道怎么把图片弄到pictureBox1中
string picstr = this._data.Substring(this._header.Length+4);
byte[] s = (byte[])System.Text.Encoding.Default.GetBytes(picstr.Trim());
MemoryStream buf = new MemoryStream(s);
Image image = Image.FromStream(buf,true);
return image;
提示我说参数无效,picstr 是我从BM开始截取的,包含BM,头都大了,那位老大指点一下,感激不尽
[2] div 框子阴影
来源: 互联网 发布时间: 2014-02-18
div 边框阴影
关于网页页面边框阴影的实现 浏览次数:858次悬赏分:30 | 解决时间:2009-10-31 19:42 | 提问者:飞剑侠
比如这个网页
http://www.w3school.com.cn/index.html
我想知道这个最外面的阴影是怎么做出来的,是CSS还是什么?能从源代码帮我指出来吗?
最佳答案 <html>
<head>
<title>bluewolfe<br></title>
<style>
body {
margin: 0px;
padding: 20px;
font-family: verdana;
font-size: 12px;
}
/* CSS container shadow */
#shadow-container {
position: relative;
left: 3px;
top: 3px;
margin-right: 3px;
margin-bottom: 3px;
}
#shadow-container .shadow2,
#shadow-container .shadow3,
#shadow-container .container {
position: relative;
left: -1px;
top: -1px;
}
#shadow-container .shadow1 {
background: #F1F0F1;
}
#shadow-container .shadow2 {
background: #DBDADB;
}
#shadow-container .shadow3 {
background: #B8B6B8;
}
#shadow-container .container {
background: #ffffff;
border: 1.5px solid #848284; (这里就是阴影数据设定)
padding: 10px;
}
/* CSS container shadow */
</style>
</head>
<body>
<div id="shadow-container">
<div >
<div >
<div >
<div >
bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>
bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>
bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>
bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
关于网页页面边框阴影的实现 浏览次数:858次悬赏分:30 | 解决时间:2009-10-31 19:42 | 提问者:飞剑侠
比如这个网页
http://www.w3school.com.cn/index.html
我想知道这个最外面的阴影是怎么做出来的,是CSS还是什么?能从源代码帮我指出来吗?
最佳答案 <html>
<head>
<title>bluewolfe<br></title>
<style>
body {
margin: 0px;
padding: 20px;
font-family: verdana;
font-size: 12px;
}
/* CSS container shadow */
#shadow-container {
position: relative;
left: 3px;
top: 3px;
margin-right: 3px;
margin-bottom: 3px;
}
#shadow-container .shadow2,
#shadow-container .shadow3,
#shadow-container .container {
position: relative;
left: -1px;
top: -1px;
}
#shadow-container .shadow1 {
background: #F1F0F1;
}
#shadow-container .shadow2 {
background: #DBDADB;
}
#shadow-container .shadow3 {
background: #B8B6B8;
}
#shadow-container .container {
background: #ffffff;
border: 1.5px solid #848284; (这里就是阴影数据设定)
padding: 10px;
}
/* CSS container shadow */
</style>
</head>
<body>
<div id="shadow-container">
<div >
<div >
<div >
<div >
bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>
bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>
bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>
bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>bluewolfe<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
[3] awk 日记解析
来源: 互联网 发布时间: 2014-02-18
awk 日志解析
cat test.txt test1.txt | sort | uniq -d vimdiff tmp1 tem2 cat tmp1 tmp2 | uniq -d awk '{print $7}' log.2 | sort | uniq > log2.log 合并文件 cat file1.out file2.out > file2.out cat promition.success.log.2011-08-15-* > promition.success.log gamelogin.log 16日 awk 'BEGIN {FS="|"}; {print substr($1,index($1, " ") + 1, 2) "|" $2 "|" $3 "|" $4}' gamelogin.log | awk 'BEGIN {FS="|"}; { if(index($2,":")>0) {print $1 "|" substr($2, 1, index($2,":")-1) "|" $3 "|" $4 } else {print $1 "|" $2 "|" $3 "|" $4} }' | awk 'BEGIN {FS="|"}; {print $1 " " $3 " " $2 " " $4 }' | sort| uniq -c |awk 'BEGIN {FS=" "}; {print $3 " " $1 " " $5 " " $4 " " $2 }' | sort -r -n > tmp ----------------------------------- awk 'BEGIN {FS="|"}; {print $2 "|" $3 "|" $4}' gamelogin.log > tmp.1 awk 'BEGIN {FS="|"}; { if(index($1,":")>0) {print substr($1, 1, index($1,":")-1) "|" $2 "|" $3 } else {print $1 "|" $2 "|" $3} }' tmp.1 > tmp.2 awk 'BEGIN {FS="|"}; {print $2 "|" $3 "|" $4}' gamelogin.log | awk 'BEGIN {FS="|"}; { if(index($1,":")>0) {print substr($1, 1, index($1,":")-1) "|" $2 "|" $3 } else {print $1 "|" $2 "|" $3} }' > tmp.3 awk 'BEGIN {FS="|"}; {print $1 " " $2 " " $3 }' tmp.3 | sort| uniq -c > tmp.4 awk 'BEGIN {FS="|"}; {if($2!=""){print $2 "|" $3 "|" $4}}' gamelogin.log | awk 'BEGIN {FS="|"}; { if(index($1,":")>0) {print substr($1, 1, index($1,":")-1) "|" $2 "|" $3 } else {print $1 "|" $2 "|" $3} }' | awk 'BEGIN {FS="|"}; {print "|" $1 "|" $2 "|" $3 }' | sort| uniq -c |awk 'BEGIN {FS="|"}; {print gsub(/[[:blank:]]*/,"",$1) "|" $2 "|" $3 "|" $4}'| sort > tmp.5 awk '{ sub(/^[ \t]+/,""); print }' tmp.5 > tmp.7 awk 'gsub(/^ *| *$/,"")' awk 'BEGIN {FS="|"}; {print gsub(/[[:blank:]]*/,"",$1) "|" $2 "|" $3 "|" $4}' tmp.5 > tmp.6 sort tmp.5 > tmp.6 ----------------------------- awk 'BEGIN {FS="|"}; {if($2!=""){print $2 "|" $3 "|" $4}}' gamelogin.log | awk 'BEGIN {FS="|"}; { if(index($1,":")>0) {print substr($1, 1, index($1,":")-1) "|" $2 "|" $3 } else {print $1 "|" $2 "|" $3} }' | awk 'BEGIN {FS="|"}; {print "|" $1 "|" $2 "|" $3 }' | sort| uniq -c |awk 'BEGIN {FS="|"}; {print gsub(/[[:blank:]]*/,"",$1) "|" $2 "|" $3 "|" $4}'| sort > tmp.5 awk 'BEGIN {FS="|"}; {print $2}' tmp.5 | uniq | sort > tmp-uid =================================================================== promition.success.log 15日 awk 'BEGIN {FS=","}; {print $6 " " $7 " " $2 " " $3 " " $4 " " $5 " " $8 " "substr($1,index($1, " ") + 1, 2) }' promition.success.log | sort |uniq -c |awk 'BEGIN {FS=" "}; {print $2 " " $3 " " $1 " " $5 " " $4 " " $6 " " $7 " " $8 " " $9}'| sort -r -n >log.1 awk 'BEGIN {FS=","}; {print $6 " " $7 " " $5 }' promition.success.log | sort |uniq -c |awk 'BEGIN {FS=" "}; {print $1 "|" $4 "|" $2 "|" $3 }'| sort >log.1 awk 'BEGIN {FS="|"}; {print $2}' log.1 | uniq | sort > log-uid //多个文件合并为一行: // paste glogin-uid-count.log prom-suc-uid-count.log log-rate.log > flux.log ---------------------------------- 算登录率 cat log-uid tmp-uid | sort | uniq -d|wc -l >test.log 最终整理如下: awk 'BEGIN {FS="|"}; {if($2!=""){print $2 "|" $3 "|" $4}}' gamelogin.log | awk 'BEGIN {FS="|"}; { if(index($1,":")>0) {print substr($1, 1, index($1,":")-1) "|" $2 "|" $3 } else {print $1 "|" $2 "|" $3} }' | awk 'BEGIN {FS="|"}; {print "|" $1 "|" $2 "|" $3 }' | sort| uniq -c |awk 'BEGIN {FS="|"}; {print gsub(/[[:blank:]]*/,"",$1) "|" $2 "|" $3 "|" $4}'| sort > glogin.log awk 'BEGIN {FS="|"}; {print $2}' glogin.log | uniq | sort > glogin-uid awk 'BEGIN {FS=","}; {print $6 " " $7 " " $5 }' promition.success.log | sort |uniq -c |awk 'BEGIN {FS=" "}; {print $1 "|" $4 "|" $2 "|" $3 }'| sort > prom-suc.log awk 'BEGIN {FS="|"}; {print $2}' prom-suc.log | uniq | sort > prom-suc-uid 计算前一天的次登录率 cat glogin-uid | wc -l > tmp-glog-prom-uid.log cat prom-suc-uid | wc -l >> tmp-glog-prom-uid.log cat prom-suc-uid glogin-uid | sort | uniq -d|wc -l >> tmp-glog-prom-uid.log cat tmp-glog-prom-uid.log | xargs echo > tmp-flux-rate.log 单个文件合并为一行 计算登录率 awk 'BEGIN {FS=" "}; {print $1 "|" $2 "|" $3 "|" $3/$2}' tmp-flux-rate.log > flux-rate.log rm -f tmp* ----------------------------- awk 'BEGIN {FS="|"}; {if($2!=""){print $2 "|" $3 "|" $4}}' gamelogin.log | awk 'BEGIN {FS="|"}; { if(index($1,":")>0) {print substr($1, 1, index($1,":")-1) "|" $2 "|" $3 } else {print $1 "|" $2 "|" $3} }' | awk 'BEGIN {FS="|"}; {print "|" $1 "|" $2 "|" $3 }' | sort| uniq -c |awk 'BEGIN {FS="|"}; {print gsub(/[[:blank:]]*/,"",$1) "|" $2 "|" $3 "|" $4}'| sort > glogin.log awk 'BEGIN {FS="|"}; {print $2}' glogin.log | uniq | sort > glogin-uid awk 'BEGIN {FS=","}; {print $6 " " $7 " " $5 }' promition.success.log | sort |uniq -c |awk 'BEGIN {FS=" "}; {print $1 "|" $4 "|" $2 "|" $3 }'| sort > prom-suc.log awk 'BEGIN {FS="|"}; {print $2}' prom-suc.log | uniq | sort > prom-suc-uid cat glogin-uid | wc -l > tmp-glog-prom-uid.log cat prom-suc-uid | wc -l >> tmp-glog-prom-uid.log cat prom-suc-uid glogin-uid | sort | uniq -d|wc -l >> tmp-glog-prom-uid.log cat tmp-glog-prom-uid.log | xargs echo > tmp-flux-rate.log awk 'BEGIN {FS=" "}; {print $1 "|" $2 "|" $3 "|" $3/$2}' tmp-flux-rate.log > flux-rate.log rm -f tmp* 结果 532853|36842|15950|0.43293 ---------------------------------- 简化版
最新技术文章: