<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9184684285812920265</id><updated>2011-10-08T10:25:20.246+08:00</updated><category term='asp'/><category term='小说'/><category term='javascript'/><category term='python'/><category term='google api'/><title type='text'>Never Say Never</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9184684285812920265.post-4402245348972289400</id><published>2009-05-08T13:33:00.002+08:00</published><updated>2009-05-08T13:34:22.655+08:00</updated><title type='text'>小白</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_KSzNSbArQ2Y/SgPETePQpSI/AAAAAAAAAB4/ve3Zo_0jYmI/s1600-h/22e6816.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5333322222550426914" style="WIDTH: 320px; CURSOR: hand; HEIGHT: 234px" alt="" src="http://3.bp.blogspot.com/_KSzNSbArQ2Y/SgPETePQpSI/AAAAAAAAAB4/ve3Zo_0jYmI/s320/22e6816.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9184684285812920265-4402245348972289400?l=maya40000.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/4402245348972289400/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9184684285812920265&amp;postID=4402245348972289400' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/4402245348972289400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/4402245348972289400'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/2009/05/blog-post.html' title='小白'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_KSzNSbArQ2Y/SgPETePQpSI/AAAAAAAAAB4/ve3Zo_0jYmI/s72-c/22e6816.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9184684285812920265.post-2649530376335334302</id><published>2009-04-25T11:28:00.014+08:00</published><updated>2009-04-25T12:28:10.922+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小说'/><title type='text'>我眼中的网络小说(已出版)关键字</title><content type='html'>……&lt;br /&gt;&lt;br /&gt;2005年新武侠、军事、架空，&lt;br /&gt;2006年青春、纯爱、历史，&lt;br /&gt;2007年盗墓、恐怖、都市，&lt;br /&gt;2008年穿越、职场、官场，&lt;br /&gt;2009年穿越、职场、商战……&lt;br /&gt;&lt;br /&gt;2010年……&lt;br /&gt;……&lt;br /&gt;&lt;br /&gt;呵呵，纯属娱乐，还有一类经久不衰，大家都知道。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9184684285812920265-2649530376335334302?l=maya40000.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/2649530376335334302/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9184684285812920265&amp;postID=2649530376335334302' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/2649530376335334302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/2649530376335334302'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/2009/04/blog-post.html' title='我眼中的网络小说(已出版)关键字'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9184684285812920265.post-1740983586963609654</id><published>2009-01-30T11:18:00.003+08:00</published><updated>2009-01-30T11:43:01.070+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小说'/><title type='text'>小说《地产女老板》</title><content type='html'>做阅读器的时候，让自己体验一下使用上有什么缺陷，顺便看了这本书。最后被吸引了，今天凌晨两点多看完的。这个作者（小男人）以前写过一本小说《眉姐》，这两本风格很像，都是姐弟恋，我读的时候有时甚至会混淆小说的角色，主要是眉姐的印象太深了。我觉得这本小说比眉姐多了一些YY，结局相对美好一些，过程还是那么的痛苦。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9184684285812920265-1740983586963609654?l=maya40000.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/1740983586963609654/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9184684285812920265&amp;postID=1740983586963609654' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/1740983586963609654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/1740983586963609654'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/2009/01/blog-post_30.html' title='小说《地产女老板》'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9184684285812920265.post-6652179670900180200</id><published>2009-01-17T18:42:00.006+08:00</published><updated>2009-01-17T19:13:04.335+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google api'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>折腾</title><content type='html'>好久没这么玩了。&lt;br /&gt;&lt;br /&gt;研究了一下午的google calendar api，一直是401，中文的资料几乎没有，英文也很少，我用的是asp，classic asp，硬着头皮看英文的官方论坛，最后才发现，关键在 页面重定向 这里了，在header里面插入一条"X-If-No-Redirect"，值为1，不让其重定向。然后从google反馈回来的header里面取出cookie，"S=*******"，再加上token，一并放到header里面，认证通过。刚刚添加了一条event。发现英文水平被逼的又进步了一小块。&lt;br /&gt;&lt;br /&gt;呵呵，对我来说这个日历能有很多用处的。实际上这个东西国外也有人做，和twitter整合在一起的，很方便，我只是喜欢自己动手，想学习学习，如果有时间的话可以考虑开发一个应用。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9184684285812920265-6652179670900180200?l=maya40000.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/6652179670900180200/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9184684285812920265&amp;postID=6652179670900180200' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/6652179670900180200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/6652179670900180200'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/2009/01/blog-post.html' title='折腾'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9184684285812920265.post-5338413576375424903</id><published>2008-10-08T00:42:00.003+08:00</published><updated>2008-10-08T00:58:57.082+08:00</updated><title type='text'>google docs 博客发布不理想</title><content type='html'>本来先是想用gd发布的，在自己的小虚拟主机上写了一个接收的asp程序，可是考虑到还是google服务器好啊（免费），于是注册了blogger，结果gd的标题过不来，格式又乱。最后还是用html吧。&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9184684285812920265-5338413576375424903?l=maya40000.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/5338413576375424903/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9184684285812920265&amp;postID=5338413576375424903' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/5338413576375424903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/5338413576375424903'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/2008/10/google-docs_08.html' title='google docs 博客发布不理想'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9184684285812920265.post-6051120014849972615</id><published>2008-10-08T00:24:00.002+08:00</published><updated>2008-10-08T11:55:26.587+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><title type='text'>用JavaScript修改网页布局</title><content type='html'>&lt;p&gt;以前帮人改了个网页，用js可以很快的把网页改成任意你想要的样子，在不动后台程序的情况下。 &lt;/p&gt;&lt;p&gt;function showsubmenu(sid)&lt;br /&gt;{&lt;br /&gt;var x = document.getElementsByTagName("td");&lt;br /&gt;for(var i=0;i if (x[i].style.display=="block"){x[i].style.display="none";}&lt;br /&gt;}&lt;br /&gt;document.all.["submenu"+ sid].style.display="block";&lt;br /&gt;} &lt;/p&gt;&lt;p&gt;这个是以前帮人写的，因为有的系统后台都是调用，不能改，所以就用js在前台改了：） &lt;/p&gt;&lt;p&gt;function ck(){var x = document.getElementById("main").contentWindow.document.getElementsByTagName("td");&lt;br /&gt;if(x.length&amp;gt;0){&lt;br /&gt;if (x[x.length-1].innerHTML.indexOf("某某")!=-1){x[x.length-1].innerHTML="某某某某";}&lt;br /&gt;}} &lt;/p&gt;&lt;p&gt;呵呵，这是最近写的，去掉顶部的iframe&lt;/p&gt;&lt;p&gt;document.getElementsByTagName('iframe')[0].parentNode.removeChild(document.getElementsByTagName('iframe')[0]);&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9184684285812920265-6051120014849972615?l=maya40000.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/6051120014849972615/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9184684285812920265&amp;postID=6051120014849972615' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/6051120014849972615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/6051120014849972615'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/2008/10/js-function-showsubmenusid-var-x.html' title='用JavaScript修改网页布局'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9184684285812920265.post-3118743121581811652</id><published>2008-10-08T00:00:00.005+08:00</published><updated>2008-10-08T11:57:00.624+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='python'/><category scheme='http://www.blogger.com/atom/ns#' term='asp'/><title type='text'>保存远程防盗链图片到本地</title><content type='html'>&lt;p&gt;刚刚用到了，google搜到的，参考了这篇文章，“ASP,PHP与.NET伪造HTTP-REFERER方法及防止伪造REFERER方法探讨”，搜索一下就能看到，找不到原创的地址了。&lt;/p&gt;&lt;p&gt;现在一些网站为了防止盗链都对文件加了保护，这个方法实际上就是伪造referer，下面是源代码。&lt;/p&gt;&lt;p&gt;ASP:&lt;/p&gt;&lt;p&gt;Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")&lt;br /&gt;With Retrieval&lt;br /&gt;.Open "Get", url, False, "", "" 'url是图片地址&lt;br /&gt;.setRequestHeader "Referer","&lt;a href="http://www.maya40.com/"&gt;http://www.maya40.com/&lt;/a&gt;" '在这里伪造了referer&lt;br /&gt;.Send&lt;br /&gt;getdata = .ResponseBody&lt;br /&gt;End With&lt;br /&gt;Set Retrieval = Nothing&lt;br /&gt;Set Ads = Server.CreateObject("Adodb.Stream")&lt;br /&gt;With Ads&lt;br /&gt;.Type = 1&lt;br /&gt;.Open&lt;br /&gt;.Write getdata&lt;br /&gt;.SaveToFile server.MapPath("local.jpg"),2&lt;br /&gt;.Cancel()&lt;br /&gt;.Close()&lt;br /&gt;End With&lt;br /&gt;Set Ads=nothing &lt;/p&gt;&lt;p&gt;Python:conn = httplib.HTTPConnection("&lt;a href="http://www.maya40.com/"&gt;http://www.maya40.com/&lt;/a&gt;")&lt;br /&gt;conn.putrequest('GET',url)&lt;br /&gt;conn.putheader('Referer','http://www.maya40.com/')&lt;br /&gt;conn.endheaders()&lt;br /&gt;getdata = conn.getresponse()&lt;br /&gt;fwrite = open('local.jpg','wb+')&lt;br /&gt;ftmp = getdata .read()&lt;br /&gt;fwrite.write(ftmp)&lt;br /&gt;fwrite.close()&lt;br /&gt;conn.close()&lt;/p&gt;&lt;p&gt;这只是一种方法而已，并不是通用的，还是有方法可以做到防止伪造referer的。&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9184684285812920265-3118743121581811652?l=maya40000.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/3118743121581811652/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9184684285812920265&amp;postID=3118743121581811652' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/3118743121581811652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/3118743121581811652'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/2008/10/googleaspphp.html' title='保存远程防盗链图片到本地'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9184684285812920265.post-5484993060661479971</id><published>2008-10-05T12:00:00.003+08:00</published><updated>2008-10-07T23:57:52.352+08:00</updated><title type='text'>hello world</title><content type='html'>hello world&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/9184684285812920265-5484993060661479971?l=maya40000.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://maya40000.blogspot.com/feeds/5484993060661479971/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=9184684285812920265&amp;postID=5484993060661479971' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/5484993060661479971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9184684285812920265/posts/default/5484993060661479971'/><link rel='alternate' type='text/html' href='http://maya40000.blogspot.com/2008/10/hello-world.html' title='hello world'/><author><name>maya40</name><uri>http://www.blogger.com/profile/09126715143921277562</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
