gozh2002
博客园 | 首页 | 发新随笔 | 发新文章 | 联系 | 订阅 订阅 | 管理

2007年5月3日

who am I inside of me
You are Binary.  You are not human and go to great lengths to prove it.  You always know where you are and how you got there, but no one else does, ever.
Which Programming Language are You?
posted @ 2007-05-03 09:30 Gordon Golden Shining 阅读(40) | 评论 (0) | 编辑
 

2006年9月27日

STGenerator Released

我的完全开源的代码生成和Stored Procedure的自动Data Access Layer.放在Sourceforge 上了.
有几个优点是支持Generic, nullable, DAAB, 实体是Abstract class, 可以做Object-Object的一对一映射,支持BuildProvider,
支持模糊的数据返回,
还要继续优化,而且缺例子,虽然我自已在用它来做别的项目.

posted @ 2006-09-27 10:20 Gordon Golden Shining 阅读(510) | 评论 (0) | 编辑
 

2006年8月29日

ObjectDataSource的Add-In
     摘要: Asp.net 2.0 的 ObjectDataSource 有一个很讨厌的地方,就是它的TypeName都是一个String
所以不能用Go To Definition去方便的自动跳到它引用的类. 所以就自已写了一个AddIn
可以自动跳到它引用的Project 的文件,比较方便.  阅读全文
posted @ 2006-08-29 22:49 Gordon Golden Shining 阅读(1588) | 评论 (1) | 编辑
 

2006年5月31日

Asp.net page lifecycle explain in msdn
http://msdn2.microsoft.com/en-us/library/ms178472.aspx

here is the link about asp.net page life-cycle and the following words need to pay attention

Catch-up Events for Added Controls

For example, suppose you have a GridView that displays a company record in each row along with a list of the company officers in a ListBox control. To fill the list of officers, you would bind the ListBox control to a data source control (such as SqlDataSource) that retrieves the company officer data using the CompanyID in a query.

If the ListBox control's data-binding properties, such as DataSourceID and DataMember, are set declaratively, the ListBox control will try to bind to its data source during the containing row's DataBinding event. However, the CompanyID field of the row does not contain a value until the GridView control's RowDataBound event occurs. In this case, the child control (the ListBox control) is bound before the containing control (the GridView control) is bound, so their data-binding stages are out of sync.

To avoid this condition, put the data source control for the ListBox control in the same template item as the ListBox control itself, and do not set the data binding properties of the ListBox declaratively. Instead, set them programmatically at run time during the RowDataBound event, so that the ListBox control does not bind to its data until the CompanyID information is available.

posted @ 2006-05-31 11:17 Gordon Golden Shining 阅读(152) | 评论 (0) | 编辑
 

2006年4月22日

我做的代码生成的工具的思路 (支持.NET2.0)
内容篇幅较长,请点击这里阅读全文。
posted @ 2006-04-23 01:23 Gordon Golden Shining 阅读(764) | 评论 (0) | 编辑
 

2006年2月24日

Programming Haskell in Visual Studio.net 2003
     摘要: Simon Marlow, a developer in microsoft research Cambridge, has agreat tool to download Visual Haskell
Just download and install it, then you can develop haskell program in vs.net editor, also they have good features like tootip etc..
we need that because haskell is really hardly understand with their syntax...  阅读全文
posted @ 2006-02-24 16:03 Gordon Golden Shining 阅读(353) | 评论 (0) | 编辑
 
C#/VB.Net converter
There is no need to find any commerical language converter between C# and Vb.net..
SharpDevelop can convert the languages in C#,VB.Net and Boo, even a whole project
Should give it a go to see how nice it is..

posted @ 2006-02-24 09:40 Gordon Golden Shining 阅读(358) | 评论 (0) | 编辑
 

2006年2月23日

A good book to read
Essential Business Process... I have been reading this book, one thing very interested is that they mentioned the process management is based on PI-calculous and petrinet.. but aren't these stuff from academic parallel computing world?

So here is the point, with more and more popular buzzword for BPM, enterprise integration, they all need people who are in more advaced computing field knowledge.. how you understand the parallel computing/message passing/asynchronous will be more critical skills in future...
posted @ 2006-02-23 21:44 Gordon Golden Shining 阅读(314) | 评论 (0) | 编辑
 
A possible way for testing threading/server application
We have our current quite large application which is  a server and so many parts as their own semaphore threading.
The thing is it then become so hard to test it now...the whole server needs to be started to have a full scheduling/queueing/running function,
mock object maybe works for really very small unit test...but for a much more complete end to end test, it is quite impossible now...

So I have this idea, because we are currently writing the server information to log to track the activities in log4net...
log4net is very fast and easy to use, but I am still struggling to find any good log viewer and filtering it...

Then logparser comes to rescue...it can easily to parse the current log text file and filtering it...

So what if I wirte my own script/C# codes, in each test case, i am refreshing the data snapshot for server to load, then I start the server for running some time, then use logparser(dll version) to filter the log4net logs text and check it....

Is this sounds a good way to do ? or any people have some other ideas about the testing for an server application?



 
posted @ 2006-02-23 21:40 Gordon Golden Shining 阅读(112) | 评论 (0) | 编辑
 
a break in .net 2.0 remoting
Currently, we are converting our  application to  .net 2.0.  Then I am getting an error with remoting... simply because Soap Serializer does not support serializing Generic Types...
and here is ms answer: "
That is correct. We have decided not to invest in any significant new feature work for the SoapFormatter in Whidbey."

So what I have to do is changing our soap serializer formatter to binary serializer formatter using a config like this,
                BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();
                BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider();

                serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;

                IDictionary props = new Hashtable();
                props["port"] = 0;
                props["TypeFilterLevel"] = "Full";

                HttpChannel chan = new HttpChannel(props, clientProv, serverProv);  
                ChannelServices.RegisterChannel( chan );

But it is only part of the solution.. Unfortunately, I am using event call back, so it is working for client to submit the generic list data to serve. And when the server try to publish the data change to other subscribed event. "I am still getting a soapformatter not support error"

The original post in msdn forum with more codes are here

It seems no answer yet.. :(



 
posted @ 2006-02-23 21:29 Gordon Golden Shining 阅读(1005) | 评论 (2) | 编辑
 
仅列出标题  下一页
随笔:26 文章:2 评论:20 引用:0
<2009年7月>
日一二三四五六
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

公告


     

与我联系

  • 发短消息

搜索

 

常用链接

  • 我的随笔
  • 我的空间
  • 我的短信
  • 我的评论
  • 更多链接
  • 我的参与
  • 我的新闻
  • 最新评论
  • 我的标签

留言簿

  • 给我留言
  • 查看留言

随笔分类(25)

  • .Net(11) (rss)
  • .Net 2.0(6) (rss)
  • After hours(2) (rss)
  • BizTalk(1) (rss)
  • Design Patterns (rss)
  • Java(1) (rss)
  • My Books(1) (rss)
  • Open Source(2) (rss)
  • ORM/Data Access(1) (rss)
  • Project Management (rss)
  • Sharepoint (rss)

随笔档案(26)

  • 2007年5月 (1)
  • 2006年9月 (1)
  • 2006年8月 (1)
  • 2006年5月 (1)
  • 2006年4月 (1)
  • 2006年2月 (6)
  • 2005年10月 (1)
  • 2005年9月 (1)
  • 2005年8月 (5)
  • 2005年7月 (2)
  • 2005年6月 (1)
  • 2005年5月 (1)
  • 2005年4月 (2)
  • 2005年3月 (2)

文章档案(2)

  • 2006年4月 (1)
  • 2005年8月 (1)

收藏夹(14)

  • Articles(4) (rss)
  • Reflection, Emit & DyProxy(5) (rss)
  • Scheme(1) (rss)
  • Thinking(2) (rss)
  • Threading Concurrency(2) (rss)

.net bloggers

Bloggers I read

  • 3yee nhibernate
  • ApplyingUMLPatterns & DDD books blog
  • eXtensible Mind
  • idior
  • Rickard
  • Robert McLaws: FunWithCoding.NET
  • SharePoint 2003 Skin Site For Customizing CSS Styles
  • Simple Patrick
  • 好好学习,天天向上 - ssp (rss)
  • 花钱的年华

Projects

  • alchemi
  • nant pad
  • spec#
  • zedgraph

Sites

积分与排名

  • 积分 - 18264
  • 排名 - 3011

最新评论

  • 1. re: ObjectDataSource的Add-In
  • 鼓励
    but,VA的Alt+G很完美的实现了
    从VC6到ASPX,Alt+G个人认为是不可缺少的
    到现在我也是只装一个VA,真的很爽
    搂住不妨try一下
  • --nonocast
  • 2. re: 我做的代码生成的工具的思路 (支持.NET2.0)
  • :) 我一般用ExtendProperties来存储。 我觉得本来就是基于Table的了,所以就干脆利用Table里面有的东西。 也用PropertyInfo.Set(obj,Value)来设置Ent...
  • --深渊野鱼
  • 3. re: a break in .net 2.0 remoting
  • 到2.0以后俺还没碰过 remoting呢:(


    看起来很严重 全面更新工程看似比等M$解决问题更可行
  • --韦恩卑鄙
  • 4. re: a break in .net 2.0 remoting
  • 是啊,怎么现在流行发英文文章了,俺英文不好啊
  • --tansm
  • 5. re: You have to read this
  • 直接用电驴搜索可以找到
  • --晓风残月

阅读排行榜

  • 1. No refresh dropdownlist using xmlhttp callback(2099)
  • 2. ObjectDataSource的Add-In(1588)
  • 3. How to implement AOP in .net(1065)
  • 4. a break in .net 2.0 remoting(1005)
  • 5. Castle got new project alpha version released(998)

评论排行榜

  • 1. No refresh dropdownlist using xmlhttp callback(4)
  • 2. You have to read this (3)
  • 3. How to implement AOP in .net(2)
  • 4. My Wishlist for .net development(2)
  • 5. All about codes generation(2)

Powered by: 博客园
模板提供:沪江博客
Copyright ©2009 Gordon Golden Shining