C#获取机器的mac地址的时候,会用到Win32_NetworkAdapterConfiguration类,像如下代码: Read the rest of this entry »
Archive for 六月, 2010
c#获取网卡mac地址的方法
六 29
在网站中整合Discuz!NT
六 28
通常情况下,用户在网站注册用户以后,应该直接可以使用该用户登录论坛,但由于以往论坛都是从网上找来的程序直接部署的,用户这部分信息也一直没有很好的整合。而在Discuz!NT中,虽然开放了API,但也很难用,应该是不成熟,好在其代码开源了,也有人遇到了和我一样的需求,故在网上找到了一个贴子,在这里引用一下。http://nt.discuz.net/archiver/showtopic-73699.html
公司的WebGIS平台采用Silverlight技术实现,根据Silverlight技术目前的发展情况,要做到团队成员之间组件化配置开发,是有一定复杂度的。既然决定了使用Silverlight技术开发WebGIS平台,那么就只能在Silverlight技术领域寻找解决方案。
第一个映入眼帘的就是MEF,地址为http://mef.codeplex.com/,在下载了示例程序并运行之后,发现其思路极其符合我们要求的:团队中只有一个Silverlight地图框架,其它的功能都是xap包,能够加载并运行于Silverlight地图框架之上,并获得地图句柄,进行地图的相关操作。示例程序中,通过Import和Export机制,解决了不同xap包之间传递不同对象的技术难题,一下子将我们预期完成时间缩短了非常多。一切都在顺利的进行着,直到组件xap需要通过地图控件句柄操作地图控件的时候,问题来了:组件获取不到地图控件句柄。在解决了几天仍然没方法的时候,另一个解决方案出现了:Prism,地址为http://compositewpf.codeplex.com/。 Read the rest of this entry »
关于分布式系统和Web服务扩展相关链接
六 27
引自feelwheel王迪的《互联网应用服务扩展的一点经验》的ppt
Blogs
•Nati Shalom’s Blog: Discussions about middleware and distributed technologies
http://natishalom.typepad.com/nati_shaloms_blog/
•All Things Distributed: Werner Vogels’ weblog on building scalable and robust distributed systems.
http://www.allthingsdistributed.com/
•High Scalability: Building bigger, faster, more reliable websites
http://highscalability.com/
•ProductionScale: Information Technology, Scalability, Technology Operations, and Cloud Computing
http://www.productionscale.com/
•iamcal.com
http://www.iamcal.com/ (the “talks” section is particularly interesting)
•Kitchen Soap: Thoughts on capacity planning and web operations
http://www.kitchensoap.com/
•MySQL Performance Blog: Everything about MySQL Performance
http://www.mysqlperformanceblog.com/
Presentations
•Scalable Internet Architectures
http://www.slideshare.net/shiflett/scalable-internet-architectures
•How to build the Web
http://www.slideshare.net/simon/how-to-build-the-web
•Netlog: What we learned about scalability & high availability
http://www.slideshare.net/folke/netlog-what-we-learned-about-scalability-high-availability-430211
•Database Sharding at Netlog
http://www.slideshare.net/oemebamo/database-sharding-at-netlog-presentation
•MySQL 2007 Techn At Digg V3
http://www.slideshare.net/epee/mysql-2007-tech-at-digg-v3
•Flickr and PHP
http://www.slideshare.net/coolpics/flickr-44054
•Scalable Web Architectures: Common Patterns and Approaches
http://www.slideshare.net/techdude/scalable-web-architectures-common-patterns-and-approaches
•How to scale your web app
http://www.slideshare.net/Georgio_1999/how-to-scale-your-web-app
•Google Cluster Innards
http://www.slideshare.net/ultradvorka/google-cluster-innards
•Sharding Architectures
http://www.slideshare.net/guest0e6d5e/sharding-architectures
[转自InfoQ,原文地址:用Java实现Google的“您是不是要找”功能]
引言
很多人在使用搜索引擎的时候,会出于各种原因,拼错想要搜索的关键字,比如键盘有问题(某个按键坏了)、不熟悉国际名称(弗洛伊德的全名Sigmund Freud)、不小心写错字母(Sinpsons)或多写了一个字母(Frusciaante)。许多用户都很熟悉Google搜索引擎携带的“您是不是要找”功能。这个功能在检测到搜索关键字有可能拼写错了的时候会提供一些备选建议。
将页面中的内容导出到word
六 24
有的时候,调用网页的打印,客户端显示器的分辨率不同,打印出来的效果也不一样,所以,将要打印的内容导出到word中,然后再进行打印,就成为一个比较不错的选择。 Read the rest of this entry »
图像识别地址的搜集
六 15
Images for plate recognition
车牌识别专用图像库
http://javaanpr.sourceforge.net/
JIRRM
开源项目JIRRM-虹膜识别软件
http://jirrm.sourceforge.net/
http://sourceforge.net/projects/efinger/
Handwritten Number Recognition
http://sourceforge.net/projects/numrecognition/
OpenCV的全称是Open Source Computer Vision Library,是一个跨平台的计算机视觉库。OpenCV是由英特尔公司发起并参与开发,以BSD许可证授权发行,可以在商业和研究领域中免费使用。OpenCV可用于开发实时的图像处理、计算机视觉以及模式识别程序。
原作者 最初为英特尔公司
開發 现已经为 open source project
最新版本 1.0.0 / 2006年11月6日
最新預覽版本 1.1.0 / 2008年10月15日
作業系統 Linux, Mac OS X and Microsoft Windows
類型 开发函式庫
許可協議 BSD许可证
網站 http://opencvlibrary.sourceforge.net/
nginx在linux为何效率高?
六 10
答案:采用epoll的事件模型。
首先nginx支持一下这些事件模型(参考nginx的wiki) Read the rest of this entry »
原文地址:用Java实现断点续传(HTTP)
断点续传的原理
其实断点续传的原理很简单,就是在Http的请求上和一般的下载有所不同而已。
打个比方,浏览器请求服务器上的一个文时,所发出的请求如下:
假设服务器域名为wwww.sjtu.edu.cn,文件名为down.zip。
GET /down.zip HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-
excel, application/msword, application/vnd.ms-powerpoint, */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Connection: Keep-Alive
服务器收到请求后,按要求寻找请求的文件,提取文件的信息,然后返回给浏览器,返回信息如下:
200
Content-Length=106786028
Accept-Ranges=bytes
Date=Mon, 30 Apr 2001 12:56:11 GMT
ETag=W/”02ca57e173c11:95b”
Content-Type=application/octet-stream
Server=Microsoft-IIS/5.0
Last-Modified=Mon, 30 Apr 2001 12:56:11 GMT
所谓断点续传,也就是要从文件已经下载的地方开始继续下载。所以在客户端浏览器传给 Web服务器的时候要多加一条信息–从哪里开始。 Read the rest of this entry »
Ajax状态值
六 9
0**:未被始化
1**:请求收到,继续处理
2**:操作成功收到,分析、接受
3**:完成此请求必须进一步处理
4**:请求包含一个错误语法或不能完成
5**:服务器执行一个完全有效请求失败
100——客户必须继续发出请求
101——客户要求服务器根据请求转换HTTP协议版本
200——交易成功
201——提示知道新文件的URL
202——接受和处理、但处理未完成
203——返回信息不确定或不完整
204——请求收到,但返回信息为空
205——服务器完成了请求,用户代理必须复位当前已经浏览过的文件
206——服务器已经完成了部分用户的GET请求[断点续传]
Read the rest of this entry »