2008年10月21日

TTVNC 2.2 的设计目标是10秒钟搞定全过程:

其中: 

下载(1M ADSL):690K , 5秒

安装:0秒

连接 2秒

一共:7秒 

  

下载地址: TTVNC 2.2

网站:www.ttvnc.com 

一共7秒就能够搞定运行了,不信测试下。 

 

posted @ 2008-10-21 11:37 trywebservice 阅读(1920) 评论(2) 编辑

2008年8月20日

缺省HTTP是一个来回的,Request过去,Response回来,就算结束了。这样能够大大提高Web服务器的利用效率。办完事就滚蛋,不要堵在门口。

 

但是有些场合,可能有人想挂在页面上面不下来。例如股票行情、在线聊天,毕竟让人家每几秒去看一下还不够爽。最好数据变化了就立刻通知浏览器。

 

这个技术就用到了Server Push。 详细名词解释 http://en.wikipedia.org/wiki/Push_technology

 

找了半天没有找到合适的例子,找了一个却不能比较好运行,就改造了一把,运行得很不错。原理还是蛮简单的,记下来以备参考。Yahoo的股票行情动态刷新就是这个原理。

 

 

Code

 

 

 

 

posted @ 2008-08-20 17:41 trywebservice 阅读(2615) 评论(5) 编辑

2008年5月27日


应某个项目要求,开发了一个远程共享ActiveX插件。能够在Web和CS应用程序上调用,增加远程协助的功能。

当然了,控件用到了一个互联网服务器做为数据中转。

提供VS6的很简单的MFC和Web例子。欢迎测试提出意见。

1. 首先运行Install.bat安装ActiveX。
2. 可以运行ttvnc.html 或者应用程序tz。
3.IE运行会提示运行ActiveX的警告,接受就行了。

该版本为1.3.9 , 了解最新的TTVNC 的使用情况请访问 TTVNC ,
目前仅为测试阶段,接口随时可能变化请勿拿来做商业用途。

下载地址:TestActiveX1.3.9.rar

posted @ 2008-05-27 11:30 trywebservice 阅读(211) 评论(1) 编辑

2008年5月23日

基于VNC开发的。

   1. 跨越NAT和路由器,帮助不同内网的用户连接。
   2. 非常小( < 900K),
   3. 免安装,可以在网吧运行。
   4. 服务器端和客户端集成



下载:http://www.ttvnc.com/download/ttvnc2.1/ttvnc.exe
或者:www.ttvnc.com 下载更新版本。

posted @ 2008-05-23 11:37 trywebservice 阅读(2655) 评论(12) 编辑

来自: http://forums.asp.net/t/1182575.aspx

I feel I should share my recent experiences on this rather common challenge, for the sake of others who inevitably will face the same problems. I am actually rather surprised that some of more experienced gurus of this forum did not react - probably they have not seen the posts ( Huh? ?).

Well, my initial problem originated, as usual, from my own ignorance.

Searching for the most effective way to display a complex Web page, something that may go into tens of seconds over a slow dial-up connection, in increments so that the users gets first parts relatively fast and they get something to do while the rest of the page is loaded, I implemented the incremental Page Display from the AJAX samples (#28, by Joe S.). As my test revealed, that simple textual part, the beginning of my page, which I sent in through the Web service (as the exampole goes) came in actually slower than the rest of the page. It came distinctly at a different time (I have a fast cable connection and a very fast development PC, but the difference in time was still obvious), but after the rest of the page was loaded. It was an eye-opening experience.

1) If I was to use that Incremental Page Display example, I should use the Web Service approach to send in the slowest parts, the complex graphics and similar.

2) The second conclusion is for me far more interesting. It has nothing to do with the Web Service approach. I actually noticed that parts of the complex page have come up on the client (IE7 browser) screen at distinct times, and not in the physical sequence as the page is written, but as they obviously became ready. That was exactly what I needed!

My initial page design (just laugh, it is OK! I am learning...) used tables, actually one large table, to position the elements on the page as required. I have seen that from many examples, and even now on the Web there are many, many cases like that, probably the majority. Obviously, the page did not display until the table was formated by the browser. So, it was sloooow...

Then I discovered that some authors are recommending DIVs. Initially it seemed more complex, and I did not have the logic that would explain why... Until my test.

Also, the documentation describes the server side page preparation by IIS as buffered by default, meaning it prepares the complete page before it sends it out. I contemplated experimenting with declaring selected pages as un-buffered, but did not get that far to actually try that interesting idea (maybe someone wishes to comment?)...

But what I had done in re-writing my page was to restructure it into DIVs. And now I saw it at the client screen that these DIVs are displayed as they get formated by the browser, popping all over the screen in the inverse order of their complexity.

That means that I can display any page in parts by just organising it into DIVs.

And that is all I need. Perfect.

To me, it is an important experience.

I would love to read somewhere in the documentation anything explicit on this DIV and page rendering process. If anyone reading these lines would have a link, or a suggestion where to start with this type of research, I'd be grateful.

So, I just thought someone else might benefit from reading about this experience...

Cheers...

posted @ 2008-05-23 11:31 trywebservice 阅读(93) 评论(0) 编辑

2008年5月22日

Visual Studio International Pack 包含一组类库,该类库扩展了.NET Framework对全球化软件开发的支持。使用该类库提供的类,.NET 开发人员可以更方便的创建支持多文化多语言的软件应用。 该软件包1.0版提供下面七个组件以增强.NET Framework对全球化软件应用开发的支持。

  • East Asia Numeric Formatting Library - 支持将小写的数字字符串格式化成简体中文,繁体中文,日文和韩文的大写数字字符串。
  • Japanese Kana Conversion Library - 支持将日文假名(Kana)转化为另一种日文字符。
  • Japanese Text Alignment Library - 支持日文特有的一种对齐格式。
  • Japanese Yomi Auto-Completion Library - 类库支持感知日文输入法的输入自动完成和一个文本框控制的示例。
  • Korean Auto Complete TextBox Control - 在文本框中支持韩文输入法的智能感知和输入自动完成。
  • Simplified Chinese Pin-Yin Conversion Library - 支持获取简体中文字符的常用属性比如拼音,多音字,同音字,笔画数。
  • Traditional Chinese to Simplified Chinese Conversion Library and Add-In Tool - 支持简繁体中文之间的转换. 该组件还包含一个Visual Studio集成开发环境中的插件(Add-in)支持简繁体中文资源文件之间的转换。

下载:http://www.microsoft.com/downloads/details.aspx?FamilyID=f9cfc884-1f00-45fa-b2fb-303d9e110bc7&displaylang=zh-cn

posted @ 2008-05-22 18:03 trywebservice 阅读(476) 评论(0) 编辑

2008年4月8日

摘要: 真实的故事是这样的: 当你测试你的程序的时候,Oracle表现非常好,CPU只有20%。但是当你正式运行程序的时候,发现它的CPU突然飙升到了100%。这时候老板们和很多用户正在看着,系统开始很慢很慢,你重新启动Oracle,重新启动程序,甚至踢它几脚,它还是100%。然后一切结束了...你开始痛恨Oracle ,痛恨自己不是Oracle DBA,痛恨自己为什么测试的时候不够努力,开始抓狂。抓狂结...阅读全文

posted @ 2008-04-08 14:54 trywebservice 阅读(123) 评论(0) 编辑

摘要: 这段时间在研究发短信的问题,有很多种选择,各自看了一遍,颇有收获, 做下分析记下来。1.短信猫 SMS Modem 就是把SIM卡放到Modem里面,把Modem接到计算机的RS232或者USB上就能发了。其实它的设计类似一个只能发送短信的手机。很多骗子都是用这个来发中奖信息的,当然了,有些企业不能上网,也可以用这个猫。它最大的好处是简单。最大的坏处是收到的短信的来源号码是一个手机号,蛮像骗子的。...阅读全文

posted @ 2008-04-08 13:30 trywebservice 阅读(5258) 评论(23) 编辑

2008年3月31日

摘要: 为了要做UDP的性能测试,需要客户端向服务器狂发UDP数据包,才能看到防火墙,操作系统的处理情况,因此做了一把研究。由于RAW Socket能够模拟任意的IP数据包,因此比较不安全。1.XP SP2以上禁止模拟不同的IP地址发数据包的。如果你使用了一个没有绑定本机网卡的IP来发包,Sendto会报错。 微软官方说明是这样的: Restricted traffic over raw socketsD...阅读全文

posted @ 2008-03-31 15:10 trywebservice 阅读(994) 评论(0) 编辑

2008年2月19日

摘要: 上篇讲了,单台服务器处理的请求,也就是7千次差不多了【微软的数据是最高2.5万/秒】。 每秒7千次请求下的IIS 和ASP.NET的性能测试这次介绍另外一个选择:UDP,虽然不可靠,但是速度绝对不错。1、标准的UDP性能用C/C#/Java在Dell 1950/Windows 2003上,100M带宽 。性能都差不多: 60个字节的数据,1万/秒用多个程序来跑加起来结果也是一样。 难道Window...阅读全文

posted @ 2008-02-19 15:21 trywebservice 阅读(2637) 评论(9) 编辑