花纯春
净心编程 http://www.123de6.cn
posts - 173,  comments - 74,  trackbacks - 0
     摘要: 参与网络与现实结合的科幻游戏 诺基亚N78“连城决”(大型城市接力探索挑战赛) 获胜者将得到7万8现金和1部N78手机


诺基亚N78“连城决”活动,以热爱科技,喜欢时尚的人们参与,围绕N78手机的“科幻”功能展开,我个人觉得,能参与这样的活动本身就很cool,很有成就感笔满足感。而且, 还有机会赢取大奖,呵呵。不参与,睡不着觉啊。
  阅读全文
posted @ 2008-07-04 16:10 花纯春 阅读(6) | 评论 (0)编辑
关于DNN的性能增强,转自http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/486/Default.aspx
作者:Charles Nurse (DNN核心团队成员)
Many people have commented that the dotnetnuke.com site is a little slower with the recent upgrade to 4.3.1 (especially for Login).

If your site has a lot of users, you are probably getting the same "poor" performance.  (Note - the problem is not confined to 4.3.1 - it will also be a problem with 3.3.1, as it is due to one of the new User features).

However, there is a simple solution, and here it is.

1. Log in as admin or host
2. Go to the "User Accounts" module (on the Admin menu).
3. Select the "User Settings" module action
4. Click Update to save the Settings.

Savvy users will have by now figured out the problem - The User Settings, which are implemented as Module Settings in the Database do not exist (are null).  Loading the User Settings page loads the default values and clicking "Update" persists them to the database.

Normally, when custom Module Settings are not "set" this does not affect performance but in this case there is a very expensive query that is run when retrieving the default settings.  This query will run every time a setting is needed, because, the GetSetting uses a fallback approach:

a) - try fetching the settings from the Cache
b) - try fetching the settings from the Database
c) - load the default settings (which calls the expensive query GetUserCountByPortal)
d) - get the setting from the collection of settings

On this site, when logging in, 3 different settings are needed, so the query is made 3 times - at a cost of about 800ms each (due to 300,000 users), hence the performance issues.

Now that I have carried out the procedure above (1-4) on this site, the default settings have been persisted to the Database, and the caching mechanism can work -  Login is much faster.

A fix will be added to the next version, so that default values are automaticaly saved to the database on upgrade (or first access).
posted @ 2008-07-04 10:19 花纯春 阅读(7) | 评论 (2)编辑

DNN Fans, Join Now!


为了中国软件能更好的发展, 我们一群DNN fans需要这样一个环境来交流和学习。每位加入http://dnn.cnblogs.com的朋友,不论您的技术水平高低,都请您能将自己在DNN相关技术方面的任何自己认为有益的知识写下来,并在发布博文时,能选择发布到DNN团队站点。


加入方法:

请在下面的评论中填写您在博客园的用户名,以及加入理由。

 


我们希望能够有更多志同道合的朋友加入我们的团队。


 

posted @ 2008-07-03 17:55 花纯春 阅读(32) | 评论 (1)编辑

参考资料http://www.ventrian.com/Support/ProductForums/tabid/118/view/topic/postid/27303/forumid/12/tpage/1/Default.aspx
看似简单的user profile添加照片,实际涉及到的DNN内部的一些实现。如参考资料上所述,在lists中增加数据类型,在admin的user account中增加user profile 的property。这些很灵活,同时也更复杂。不是像最初想像的,像作普通module一样,直接加一两个控件就行了。
需要再深入的研究一下,profile的数据是存放在什么地方。而在admin\users目录下,也不能清楚的看到profile的布局,只有看起来很分散的ascx文件。

 

posted @ 2008-06-27 13:07 花纯春 阅读(75) | 评论 (0)编辑
     摘要: SharePoint Server 2007是一个健全、灵活的解决方案,它可以满足不同组织的需要。很多Windows SharePoint Services 2003和SharePoint Portal Server 2003的限制已经被解决。使用新的版本,管理员可以使用更多的新特性,但伴随新特性和灵活性而来的是更复杂了。在这一章,我们将构建一个架构,来成功的实现Office SharePoint Server 2007,并映射到日常业务需要。  阅读全文
posted @ 2008-06-19 17:38 花纯春 阅读(89) | 评论 (0)编辑
     摘要: 在过去20年里,公司和组织已花费了数十亿美元购买,安装,部署和维护line-of-business(LOB)系统来管理客户资料,库存,帐单,产品的生命周期,和许多其他类型的业务信息和流程。现代企业没有这些应用软件,将缺乏竞争力,从而无法生存。对于业务系统,通常只有少数实力强大的企业能花费昂贵的培训去学习这些应用软件的特别的甚至有些秘密的用户界面和属性。从业务系统生成信息,还需要从其他系统内获取信息,这就需要确保它的完整和可控性。  阅读全文
posted @ 2008-06-19 16:57 花纯春 阅读(84) | 评论 (0)编辑
     摘要: 最近关于DNN,又有一些值得记录的小技巧(tips),为了照顾外国用DNN的朋友们,我还是贴一些英文关键字,希望不要引起某些人的反感。  阅读全文
posted @ 2008-06-11 16:28 花纯春 阅读(156) | 评论 (0)编辑


说起来惭愧,从winform转向asp.net以来,还没有用过单步,F10/F11基本没用。偶尔想用一下,发现没有反应,也就作罢。今天有一个问题,眼都看花了,也没有发现错误所在,不得不多次搜索关于在vs2005中用F11,断点,无效等关键字。也按网上文章中的指导试过,都不行。

毛了,直接搜DNN Q群,加了第一页上的所有Q群。在群里,发同样的问题,良久,有一仁兄给回了。

在vs2005中“website”菜单下,改start options中的Server, 将其改为“Use custom server”,base URL填上你自己的值。我的电脑标识为
bestwork-T41,DNN的虚拟目录名为“DNN”,这儿我就填"http://bestwork-T41/dnn"。

一切像花儿一样幸福,顺利的找到BUG,ALL DONE!

感觉这是最简单的解决方法的。喜欢拍砖的朋友,请手下留情。不要打击我的积极性。一些小经验发到网上对像我这样,有一点问题就常在网上搜的人来说是很棒的事。希望后来的朋友,可以不用像我一样浪费N多时间来找单步执行了。

posted @ 2008-04-29 17:32 花纯春 阅读(134) | 评论 (1)编辑

最早用js实现变换图片模块时,遇到的问题,现在偶然间发现了原因。当时,出现的问题是找不到document上的元素。而原因就是“

我们已为您介绍了两种不同的可用来将 JavaScript 函数嵌入 ASP.NET 页面的方法,那么,二者之间有何不同呢?主要区别在于,RegisterStartupScript 方法是将 JavaScript 嵌入到 ASP.NET 页面的底部,恰好位于关闭元素 </form> 的前面。RegisterClientScriptBlock 方法是将 JavaScript 嵌入到页面中开启元素 <form> 的紧后面。那么,这有何不同呢?正如我们将要看到的,这有很大的不同。

就此列举一例,以下是在页面加载到浏览器时,将焦点置于该页面上的一个文本框中的方法 - 使用利用了 RegisterStartupScript 方法的 Visual Basic:

Page.ClientScript.RegisterStartupScript(Me.GetType(), "Testing", _   "document.forms[0]['TextBox1'].focus();", True)
由于在浏览器运行到页面底部并执行此小段 JavaScript 时,就已生成了页面上的文本框,并已将其放到了页面中,因此,此方法运行正常。但是,如果不按照上述方法,而编写如下代码(使用 RegisterClientScriptBlock 方法):

Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "Testing", _  "document.forms[0]['TextBox1'].focus();", True)
文本框控件将不会获得焦点,且会在页面上生成一个 JavaScript 错误。

出错的原因在于,浏览器将先遇到 JavaScript,而后文本框才会出现在页面中。因此,JavaScript 将无法找到 TextBox1。”

如果您在asp.net中使用脚本,请记得注意这个差别。

posted @ 2008-04-29 15:29 花纯春 阅读(99) | 评论 (0)编辑
     摘要: 实践出真知  阅读全文
posted @ 2008-04-24 13:18 花纯春 阅读(154) | 评论 (0)编辑


《C#编程集》电子报
镇站之页
天气预报-五天
四角号码查询器
文件同步工具
剪切板记录器
天天上站
她的BLOG
挑战恐惧
API资源
C#开源资源大全
英文原版电子书
标准智商测试


<2008年7月>
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

与我联系

常用链接

留言簿(2)

我管理的小组

我参与的团队

我的标签

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜

60天内阅读排行