﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-总是感觉累.....</title><link>http://www.cnblogs.com/reddust/</link><description /><language>zh-cn</language><lastBuildDate>Sat, 30 Aug 2008 12:39:15 GMT</lastBuildDate><pubDate>Sat, 30 Aug 2008 12:39:15 GMT</pubDate><ttl>60</ttl><item><title>用Google App Engine写一个留言板程序（一）</title><link>http://www.cnblogs.com/reddust/archive/2008/06/24/1229028.html</link><dc:creator>红尘中迷茫</dc:creator><author>红尘中迷茫</author><pubDate>Tue, 24 Jun 2008 07:49:00 GMT</pubDate><guid>http://www.cnblogs.com/reddust/archive/2008/06/24/1229028.html</guid><wfw:comment>http://www.cnblogs.com/reddust/comments/1229028.html</wfw:comment><comments>http://www.cnblogs.com/reddust/archive/2008/06/24/1229028.html#Feedback</comments><slash:comments>21</slash:comments><wfw:commentRss>http://www.cnblogs.com/reddust/comments/commentRss/1229028.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/reddust/services/trackbacks/1229028.html</trackback:ping><description><![CDATA[摘要: <p><img src="http://code.google.com/appengine/images/appengine-noborder-120x30.gif" align="right"/>前言：什么是Google App Engine？<br>Google App Engine是一个托管的服务，允许你本地使用Google基础设施构建Web应用，待其完工之后再将其部署到Google基础设施之上（Google的服务器环境）。Google App Engine分为免费版和收费版，免费版提供了一个配额系统，它限制了应用免费可用的存储、CPU和带宽。目前免费版的配额包括：3个应用/开发者、500MB存储/应用、2000封邮件/天（连续24小时）、10 GB入站带宽、10 GB出站带宽、200M CPU兆周、650k HTTP请求、2.5M Datastore API调用和160k URL Fetch API调用。这对我们来说足可以创建一个小型的、学习试验目的程序了。<br>目前Google App Engine提供的语言支持仅为Python，未来可能会增加更多语言支持（估计短期不太&nbsp;&nbsp;<a href='http://www.cnblogs.com/reddust/archive/2008/06/24/1229028.html'>阅读全文</a><img src ="http://www.cnblogs.com/reddust/aggbug/1229028.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41966/" target="_blank">[新闻]Google推出Android Market挑战App Store</a>]]></description></item><item><title>LogParser就是我要找的。。。</title><link>http://www.cnblogs.com/reddust/archive/2008/05/26/1207367.html</link><dc:creator>红尘中迷茫</dc:creator><author>红尘中迷茫</author><pubDate>Mon, 26 May 2008 03:02:00 GMT</pubDate><guid>http://www.cnblogs.com/reddust/archive/2008/05/26/1207367.html</guid><wfw:comment>http://www.cnblogs.com/reddust/comments/1207367.html</wfw:comment><comments>http://www.cnblogs.com/reddust/archive/2008/05/26/1207367.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/reddust/comments/commentRss/1207367.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/reddust/services/trackbacks/1207367.html</trackback:ping><description><![CDATA[众里寻她千百度呀。。<img src="http://www.cnblogs.com/Emoticons/msn/wink_smile.gif"  alt="" /><br />
中文资料几乎没有，英文的一堆，看来使用者很少。不爽的地方就是没有GUI，纯命令行，不过采用SQL语句进行分析，还是很爽的，似乎不能使用所有的SQL，要看看它的文档说明。<br />
有个开源的的GUI项目<font face="Verdana"><a title="LogParser GUI" href="http://www.codeplex.com/visuallogparser" target="_blank"><font face="Verdana">VisualLogParser</font></a>&nbsp;可以去看看。</font>
<img src ="http://www.cnblogs.com/reddust/aggbug/1207367.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41965/" target="_blank">[新闻]美国年轻人最喜欢的15大网站</a>]]></description></item><item><title>知道问答程序终于搞上线了。。。。</title><link>http://www.cnblogs.com/reddust/archive/2008/04/07/1140836.html</link><dc:creator>红尘中迷茫</dc:creator><author>红尘中迷茫</author><pubDate>Mon, 07 Apr 2008 10:30:00 GMT</pubDate><guid>http://www.cnblogs.com/reddust/archive/2008/04/07/1140836.html</guid><wfw:comment>http://www.cnblogs.com/reddust/comments/1140836.html</wfw:comment><comments>http://www.cnblogs.com/reddust/archive/2008/04/07/1140836.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.cnblogs.com/reddust/comments/commentRss/1140836.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/reddust/services/trackbacks/1140836.html</trackback:ping><description><![CDATA[<font face="Verdana">最近又忙又懒。。一直没时间鼓捣。。。很多东西还不完善。。。先放上去晒晒太阳。。<img src="http://www.cnblogs.com/Emoticons/baimantou/223332943.gif"  alt="" /><br />
<br />
测试地址是<a href="http://ask.openpython.cn">http://ask.openpython.cn</a><br />
<br />
去了就留下你名字<img src="http://www.cnblogs.com/Emoticons/baimantou/202015934.gif"  alt="" />，不然别想走。。<img src="http://www.cnblogs.com/Emoticons/face/010.gif"  alt="" /></font>
<img src ="http://www.cnblogs.com/reddust/aggbug/1140836.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41964/" target="_blank">[新闻]2008年8月30日IT博客精选</a>]]></description></item><item><title>这两天仿照百度的知道开发一个类似的小问答程序。。</title><link>http://www.cnblogs.com/reddust/archive/2008/03/21/1116795.html</link><dc:creator>红尘中迷茫</dc:creator><author>红尘中迷茫</author><pubDate>Fri, 21 Mar 2008 09:25:00 GMT</pubDate><guid>http://www.cnblogs.com/reddust/archive/2008/03/21/1116795.html</guid><wfw:comment>http://www.cnblogs.com/reddust/comments/1116795.html</wfw:comment><comments>http://www.cnblogs.com/reddust/archive/2008/03/21/1116795.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/reddust/comments/commentRss/1116795.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/reddust/services/trackbacks/1116795.html</trackback:ping><description><![CDATA[<p>想先用在openpython.cn上。。。。<br />
那里荒废太久了</p>
<img src ="http://www.cnblogs.com/reddust/aggbug/1116795.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41963/" target="_blank">[新闻]《极品飞车12》最新真人照片、游戏截图</a>]]></description></item><item><title>凌晨两点，新作了一个文章发布程序。。问题多多</title><link>http://www.cnblogs.com/reddust/archive/2004/02/17/1294.html</link><dc:creator>红尘中迷茫</dc:creator><author>红尘中迷茫</author><pubDate>Mon, 16 Feb 2004 18:21:00 GMT</pubDate><guid>http://www.cnblogs.com/reddust/archive/2004/02/17/1294.html</guid><wfw:comment>http://www.cnblogs.com/reddust/comments/1294.html</wfw:comment><comments>http://www.cnblogs.com/reddust/archive/2004/02/17/1294.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.cnblogs.com/reddust/comments/commentRss/1294.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/reddust/services/trackbacks/1294.html</trackback:ping><description><![CDATA[<P><IMG src="http://www.cnblogs.com/Emoticons/77_77.gif">&nbsp;里面使用一个通用的数据库访问类UnDbAccess，主要实现了以下一些方法： <BR><BR>1．ExecuteNonQuery：执行INSERT、DELETE、UPDATE等SQL语句并返回受影响的行的数目。 <BR><BR>2．ExecuteReader：执行SELECT操作并返回一个数据读取器对象。 <BR><BR>3．ExecuteScalar：执行SQL操作并返回单值对象，即结果集中第一行的第一条数据。 <BR><BR>4．PopulateDataSet：执行SQL操作，通过数据适配器对象将从数据源获取的数据填充到数据集对象中<BR><BR>并返回之。 <BR>------------------------------------------------<BR>当然，别人写的<IMG src="http://www.cnblogs.com/Emoticons/red_smile.gif"><IMG src="http://www.cnblogs.com/Emoticons/tongue_smile.gif"><BR><BR>问题多多呀，我将常用的操作放在了一个newspublic类里面，例如访问常用的信息（站点名、地址、email）等：<BR>public class NewsPublic<BR>&nbsp;{<BR>&nbsp;&nbsp;private string siteName,siteUrl,siteMail,siteLogo,siteAd,newsAd,affiche;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;public NewsPublic()<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;UnDbAccess uda=new UnDbAccess();<BR>&nbsp;&nbsp;&nbsp;&nbsp;OleDbDataReader dr=(OleDbDataReader)uda.ExecuteReader(SELECT * FROM SiteConfig WHERE id=1);<BR>&nbsp;&nbsp;&nbsp;if(dr.Read())<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;siteName=dr["db_SiteName"].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;siteUrl=dr["db_SiteUrl"].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;siteMail=dr["db_SiteMail"].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;siteLogo=dr["db_SiteLogo"].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;siteAd=dr["db_SiteAd"].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;newsAd=dr["db_NewsAd"].ToString();<BR>&nbsp;&nbsp;&nbsp;&nbsp;Affiche=dr["db_Affiche"].ToString();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;}<BR><BR>---------------------------------<BR>然后在首页default.aspx调用：<BR><BR>public class _default1 : System.Web.UI.Page<BR>&nbsp;{<BR>&nbsp;&nbsp;private NewsPublic np;<BR>&nbsp;&nbsp;protected System.Web.UI.HtmlControls.HtmlForm Form1;<BR>&nbsp;&nbsp;protected System.Web.UI.WebControls.DataGrid DataGrid_ShowAll;<BR>&nbsp;&nbsp;protected System.Web.UI.WebControls.Literal L_Affiche;<BR>&nbsp;&nbsp;protected System.Web.UI.WebControls.DataGrid DG_HotNews;<BR>&nbsp;&nbsp;protected System.Web.UI.WebControls.Literal SiteTitle;<BR>&nbsp;&nbsp;<BR>&nbsp;<BR>&nbsp;&nbsp;private void Page_Load(object sender, System.EventArgs e)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if(!Page.IsPostBack)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;np=new NewsPublic();<BR>&nbsp;&nbsp;&nbsp;&nbsp;SiteTitle.Text=np.SiteName;<BR>&nbsp;&nbsp;&nbsp;&nbsp;L_Affiche.Text=np.Affiche;<BR>&nbsp;&nbsp;&nbsp;&nbsp;ShowNewsAll();<BR>&nbsp;&nbsp;&nbsp;&nbsp;ShowHotNews();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}</P><BR><BR>显示正常，可刷新几次后，问题就出来了：<FONT face=Arial><BR>System.NullReferenceException: 未将对象引用设置到对象的实例<BR>说是newspublic类里面的<BR>&nbsp;&nbsp;OleDbDataReader dr=(OleDbDataReader)uda.ExecuteReader(SELECT * FROM SiteConfig WHERE id=1);<BR>&nbsp;&nbsp;&nbsp;if(dr.Read())<BR>这个有问题，uda.ExecuteReader返回的是null<BR>这是怎么回事呢，过一会在刷新又好用了，连着刷几次，又提示System.NullReferenceException<IMG src="http://www.cnblogs.com/Emoticons/cry_smile.gif"><IMG src="http://www.cnblogs.com/Emoticons/cry_smile.gif"><IMG src="http://www.cnblogs.com/Emoticons/cry_smile.gif"><BR>搞得我头痛死了。。。。。。。。。那个过来人指点一下</FONT><img src ="http://www.cnblogs.com/reddust/aggbug/1294.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41962/" target="_blank">[新闻]IBM正在开发超强性能4TB固态硬盘阵列</a>]]></description></item></channel></rss>