千里之跬步.....


                                  路虽远, 行将必至; 事虽难, 做则必成...
随笔 - 164, 文章 - 3, 评论 - 11, 引用 - 1
数据加载中……

2008年8月13日

WebService学习篇

开个头先

posted @ 2008-08-13 14:27 dunnice 阅读(9) | 评论 (0)编辑

2008年4月6日

同比,环比

与历史同时期比较,例如2005年7月份与2004年7月份相比称其为同比
与上一统计段比较,例如2005年7月份与2005年6月份相比较称其为环比

posted @ 2008-04-06 11:44 dunnice 阅读(195) | 评论 (0)编辑

2008年4月2日

基础知识补习:如何使用server2003构建高可靠性群集<转>

基础知识补习:如何使用server2003构建高可靠性群集

 

简介
  在任何情况下,仅仅交付一个具有丰富功能集的高质量应用程序是不够的,在越来越多的时候,它还必须满足高可用性标准。您是否因为群集技术看起来过于高深、难于理解和使用而没有使应用程序再提高一个层次? 随着 Microsoft 的群集服务在 Windows NT? 4 中引入以及在 Windows Server 2003 系列中正式提供,开发人员可使用一些简单工具在群集环境中部署应用程序。这些工具能够将群集中的应用程序登记为一般应用程序,并且能够通过编写 Windows 脚本的方式来控制应用程序的配置。
  
  群集将两个或多个服务器连接在一起,使其对客户端呈现为单个计算机。在一个群集中连接服务器可以分担工作负载、实现单点操作/管理,并为满足增长的需求进行相应的调整提供了一种途径。因此,通过群集可以产生具有高可用性的应用程序。
  
  本文着重介绍三种支持群集的 Microsoft 服务器技术之一:群集服务。我们将说明如何在群集环境中对应用程序轻松执行性能检查,而无需更改应用程序代码。
  
  三种群集技术
  Microsoft 服务器提供了三种支持群集的技术: 网络负载平衡 (NLB)、组件负载平衡 (CLB) Microsoft 群集服务 (MSCS)
  
  网络负载平衡
  
  网络负载平衡充当前端群集,用于在整个服务器群集中分配传入的 IP 流量,是为电子商务 Web 站点实现增量可伸缩性和出色可用性的理想选择。 最多可以将 32 个运行 Windows Server 2003 系列产品的计算机连接在一起共享一个虚拟 IP 地址。NLB 通过在群集内的多个服务器之间分配其客户端请求来增强可伸缩性。随着流量的增加,可以向群集添加更多的服务器,任何一个群集最多可容纳 32 个服务器。NLB 在为用户提供连续服务的同时还提供了高可用性,即自动检测服务器故障,并在 10 秒内在其余服务器中重新分配客户端流量。
  
  组件负载平衡
  
  组件负载平衡可以在多个运行站点业务逻辑的服务器之间分配负载。它在最多包含八个等同服务器的服务器群集中实现了 COM+ 组件的动态平衡。在 CLB 中,COM+ 组件位于单独的 COM+ 群集中的服务器上。激活 COM+ 组件的调用是平衡到 COM+ 群集中的不同服务器的负载。CLB 通过作用于多层群集网络的中间层与 NLB 和群集服务配合工作。 CLB 是作为 Application Center 2000 的特性提供的,可与 Microsoft 群集服务在同一组计算机上运行。
  
  群集服务
  群集服务充当后端群集,可为数据库、消息传递以及文件和打印服务等应用程序提供高可用性。当任一节点(群集中的服务器)发生故障或脱机时,MSCS 将尝试最大程度地减少故障对系统的影响。
  

 


  

1. 三种支持群集的 Microsoft 服务器技术


  
  通过 Microsoft 群集服务实现故障转移
  MSCS 故障转移功能是通过群集中连接的多个计算机中的冗余实现的,每台计算机都具有独立的故障状态。为了实现冗余,需要在群集中的多个服务器上安装应用程序。但在任一时刻,应用程序只在一个节点上处于联机状态。当该应用程序出现故障或该服务器停机时,此应用程序将在另一个节点上重新启动。 Windows Server 2003 数据中心版支持在一个群集中最多包含 8 个节点。
  
  每个节点都具有自己的内存、系统磁盘、操作系统和群集资源的子集。如果某一节点出现故障,另一个节点将接管故障节点的资源(此过程称为故障转移)。然后,Microsoft 群集服务将在新节点上注册资源的网络地址,以便将客户端流量路由至当前拥有该资源的可用系统。当故障资源恢复联机状态时,MSCS 可配置为适当地重新分配资源和客户端请求(此过程称为故障恢复)。要使应用程序恢复到发生故障转移时的那一点,节点必须能够访问保持应用程序状态的共享存储区。
  
  请注意,Microsoft 群集服务旨在提供高可用性,而不是真正的容错功能。容错一词通常用于描述提供更高级别恢复功能的技术。容错服务器通常使用结合了特定软件的高级硬件或数据冗余,提供从单个硬件或软件故障近乎瞬时的恢复。这类解决方案的成本远远高于群集解决方案,因为您必须购买冗余硬件,而冗余硬件只不过闲置在那里用于故障恢复。Microsoft 群集服务使用价格适宜的标准硬件提供出色的高可用性解决方案,同时最大程度地利用计算资源。
  
  Microsoft 群集服务基于无共享的群集模型。无共享模型规定,虽然群集中有多个节点可以访问设备或资源,但该资源在一个时刻只能由一个系统占有和管理。(在 MSCS 群集中,资源是指任何可以联机或脱机、可在群集中进行管理、一个时刻只能以一个节点作为宿主并可以在节点之间移动的物理组件或逻辑组件。)
  

 


  

2. Microsoft 群集服务


  
  群集服务结构
  Microsoft 群集服务由三个主要组件构成:群集服务、资源监视器和资源 DLL。此外,还可以利用群集管理器创建提供管理功能的扩展 DLL
  
  群集服务
  
  群集服务是核心组件,并作为高优先级的系统服务运行。群集服务控制群集活动并执行如下任务:协调事件通知、加速群集组件之间的通信、处理故障转移操作和管理配置。 每个群集节点都运行自己的群集服务。
  
  资源监视器
  
  资源监视器是群集服务和群集资源之间的接口,并作为独立进程运行。群集服务使用资源监视器与资源 DLL 进行通信。DLL 处理所有与资源的通信,因此 DLL 以资源监视器为宿主可以保护群集服务免受运行不正常或停止工作的资源造成的影响。资源监视器的多个副本可以在单个节点上运行,从而可以将无法预测的资源与其他资源隔离开。
  
  群集服务在需要对资源执行操作时,向分配给该资源的资源监视器发送请求。如果资源监视器的进程中没有可以处理该类型资源的 DLL,则使用注册信息加载与该资源类型相关联的 DLL。然后,将群集服务的请求传递至其中一个 DLL 的入口点函数。资源 DLL 将处理操作的细节,以满足资源的特定需要。
  
  资源 DLL
  
  第三个关键的 Microsoft 群集服务组件是资源 DLL。资源监视器和资源 DLL 使用资源 API 进行通信。资源 API 是用于管理资源的入口点、回调函数和相关结构及宏的集合。
  
  对于群集服务而言,资源是任何可进行管理的物理组件或逻辑组件,例如磁盘、网络名、IP 地址、数据库、Web 站点、应用程序以及任何其他可以联机和脱机的实体。资源可按类型进行组织。资源类型包括物理硬件(例如磁盘驱动器)和逻辑项(例如 IP 地址、文件共享和一般应用程序)。
  
  每个资源都使用资源 DLL,它主要是资源监视器和资源之间的被动转换层。资源监视器调用资源 DLL 的入口点函数来查看资源的状态,使资源联机和脱机。资源 DLL 负责通过任何方便的 IPC 机制与其资源进行通信,以实现这些方法。
  
  实现其自身资源 DLL 与群集服务通信的应用程序以及使用群集 API 请求和更新群集信息的应用程序都被定义为识别群集的应用程序。不使用群集或资源 API 以及群集控制代码函数的应用程序和服务都不识别群集,也不知道群集服务在运行。这些不识别群集的应用程序通常作为一般应用程序或服务进行管理。
  
  识别群集的应用程序和不识别群集的应用程序都可以在群集节点上运行,并且都可以作为群集资源进行管理。但是,只有识别群集的应用程序可以利用群集服务通过群集 API 提供的功能。开发识别群集的应用程序需要建立自定义资源类型。通过自定义资源类型,开发人员可以使其应用程序在群集内发生各种事件(例如,节点即将脱机,因此会关闭数据库连接)时,作出响应并采取必要的措施。
  
  对于大多数需要在群集中运行的应用程序,最好投入一些时间和资源开发自定义资源类型。不过,可以先在群集环境中对应用程序进行测试,而不必修改应用程序的代码或创建新的资源类型。在 Windows Server 2003 系列中,未经修改的应用程序可以作为不识别群集的应用程序以基本级别运行。群集服务专为此用途提供了一般应用程序资源类型。
  
  群集管理器扩展 DLL
  群集管理器扩展 DLL 在群集管理器内提供特定于应用程序的管理功能,允许用户以同样的方式管理他们的应用程序,无论该应用程序是在群集内部运行还是在群集外部运行。开发人员可以在群集管理器的框架内提供应用程序管理功能,或只是将这些功能链接到现有的管理工具。
  
  开发人员可以通过编写扩展 DLL 来扩展群集管理器的功能。群集管理器应用程序通过一组已定义的 COM 接口与扩展 DLL 进行通信。扩展 DLL 必须实现一组特定的接口并且在群集的每个节点上都进行注册。
  

 


  

3. 关键组件: 群集服务、资源监视器和资源 DLL


  
  不识别群集的应用程序
  不提供其自身资源 DLL 的应用程序或服务仍可以在群集环境中进行配置。Windows Server 2003 系列中的群集服务包括仅用于此目的的一般资源 DLL:一般应用程序资源 DLL 和一般服务资源 DLL。群集服务将这些应用程序或服务看作是不识别群集的一般应用程序或服务。
  
  一般资源 DLL 只提供最基本的控制。例如,一般应用程序资源 DLL 通过确定应用程序的进程是否仍然存在来检查应用程序是否发生故障,并通过终止进程使应用程序脱机。但它并不依赖于其他资源,而是提供一个在群集环境中测试应用程序的简单方法。

posted @ 2008-04-02 13:54 dunnice 阅读(40) | 评论 (0)编辑

2008年3月25日

SEO工具,站长必备 (转)

SEO工具,站长必备

2007年6月23日,9:24:57 | i2net@126.com(Clark)转到全文

搜索引擎抓取内容模拟器

可以模拟蜘蛛抓取指定网页Text,Link,Keywords及Description信息
http://www.webconfs.com/search-engine-spider-simulator.php

相似页面检测工具

检验两个页面的相似度.如果相似度达80%以上,将可能受到惩罚
http://www.webconfs.com/similar-page-checker.php

Google Sitemaps 在线创建

在线创建 Google Sitemaps 网站地图文件

中文:http://www.xinqj.com/sitemap/sitemap.asp

英文:http://www.xml-sitemaps.com/

Google Sitemaps Builder .Net

Google Sitemaps 创建软件, 可以很方便的创建网站的Sitemaps
http://www.seobbs.net/read.php?tid=10620

综合查询工具

网站收录查询

同时查询Google,百度,Yahoo等8个搜索引擎的收录状况
http://tool.cndw.com/Shoulu/Index.asp

关键词排名查询
可以同时在3个搜索引擎中查询指定网页指定关键词的排名情况.
http://www.seores.com/search/keywordrank.asp

搜索引擎优化监视器(SEO Monitor)

一个仅321K的小软件,可以同时查询多个搜索引擎,多个关键词的排名情况.并自动记录历史排名情况.
http://www.seobbs.net/read.php?tid=2490

Google各服务器关键词排名查询

查询在Google各个服务器中,指定网页指定关键词的排名情况,可以作为一个升降的参考
http://tool.cndw.com/Rank/Index.asp

关键词工具

Google Adwords关键词工具

查询指定关键词的扩展匹配,搜索量,趋势和受欢迎度.
https://adwords.google.com/select/KeywordToolExternal

百度相关搜索

按热门程序排序,列出指定关键词相关的扩展匹配及热门程度
http://d.baidu.com/rs.php

关键词密度分析工具

分析指定关键词在指定页面中出现的次数,及相应的百分比密度

中文:http://tool.cndw.com/Seo/Key_Density.asp

英文:http://www.keyworddensity.com/

关键词热门排行及指数

百度排行榜:http://top.baidu.com

百度指数:http://index.baidu.com/

Yahoo排行榜:http://misc.yahoo.com.cn/top_index.html

搜狗指数:http://www.sogou.com/top/?IPLOC=CN1102

搜搜龙虎榜:http://www.soso.com/lhb/s_i_sosolhb.shtml

Google工具

Google Sitemaps

Google推出的一项免费服务,一个杰出的SEO工具
http://www.google.com/webmasters/sitemaps/docs/zh_CN/about.html

Google Analytics

Google推出的免费分析服务.在市场营销和内容优化上提供很多专业报表.对搜索引擎营销有很大帮助.
http://www.google.com/analytics/zh-CN/

Google Dance 查询工具

不仅可以查询Dance情况,还可以通过E-mail及时获得每月google dance通知
http://www.seochat.com/googledance/

查看在GOOGLE各服务器上的PR值

利用这个工具,可以判断PR是否更新,预测更新后的PR值
http://www.seochat.com/seo-tools/future-pagerank

Google PR历史更新时间表

看看Google 2000看至今更新PR的具体时间和周期时长
http://www.seocompany.ca/pagerank/page-rank-update-list.html

链接工具

链接广泛度检测工具

反向链接查询工具.同时支持Google,百度,Yahoo等8个搜索引擎
http://tool.cndw.com/LinkIn/Index.asp

查询Google中链接的工具.可以抓取文本标题和链接.中文标题显示的是乱码
http://www.webconfs.com/google-backlink-checker.php

Yahoo新推出的链接检查工具,可以查询网站中所有被检索的页面以及反向链接情况
http://siteexplorer.search.yahoo.com/

同时查询Google,Yahoo,MSN中的链接数量
http://www.trafficzap.com/linkpopularity.php

无效链接检查工具

检查指定页面内的链接.包括链接有效性检查,链接文字,链接类型
http://www.seores.com/search/checkurl.asp

W3C GLink Checker
http://validator.w3.org/checklink

其他工具

国外主要搜索引擎和人工目录的关系表

一个Flash,解析国外主流搜索引擎与人工目录的关系,对海外推广很有帮助
http://www.seobbs.net/read.php?tid=911

网站历史查询工具

美国互联网档案馆(The Internet Archive)保存了自1996年开始,借助Alexa搜索引擎获取的网站资料
http://web.archive.org/collections/web/advanced.html

分类目录收录查询

检查网站是否登录多个重要分类目录
http://www.123promotion.co.uk/directory/index.php

Alexa世界排名查询
http://alexa.chinaz.com/Index.asp

posted @ 2008-03-25 09:30 dunnice 阅读(44) | 评论 (0)编辑

国外在线生成器大全 Online Generators(转)

国外在线生成器大全 Online Generators

2007年6月26日,11:49:07 | i2net@126.com(Clark)转到全文

ASCII 生成 - ascii generators

  • ASCII Artist
    This little program converts your picture to ASCII text art
  • ASCII Generator
    Generate a ASCII graphic from a word or text. Over 130 fonts.
  • ASCII-O-Matic
    is a web application that can convert an image into ASCII Art dynamically

在线色码生成 - color generators

CSS代码生成 - css generators

在线毒命生成 - domain name generators

  • Nameboy
    free domain name generator, search and creation
  • DNGenerator.com
    Domain Name Generator with Domain Name Finder to register domain names if expired domain names
  • Domain name generator
    Intelligent random name generator that finds available domains and unique business names. The fastest online domain name generator available
  • Domain Name Generator
    Domain Name Generator will produce a list of possible domain name ideas based on the word or phrase you input.
  • Namedroppers
    We provide a more efficient method for finding and generating domain names. Search for domain names using multiple keywords
  • Whoix?
    Domain Name Wizard

在线email链接和图标生成 - email generators

  • Advanced Email Link Generator
    Advanced Email Link Generator with Anti-Spam Encoder
  • E-Mail Icon Generator
    For GMail, Hotmail, MSN, Yahoo!, AOL and many more!
  • Email Riddler (online tool)
    Email Riddler is an online tool that encrypts and transform your email address into a series of numbers when displaying it, making it virtually impossible for spam harvesters to crawl and add your email to their list.
  • NeedASig
    Email and Forum Signature Icon Generator

Favicon 图标生成 - favicon generators

  • Favicon Generator
    Make Free Favicons - Create a Favicon.ico Design
  • FavIcon Generator (beta)
    Use this online tool to easily create a favorites icon (favicon) for your site
  • FavIcon from Pics
    How to create a favicon.ico for your website
  • Favicon.ico Maker
    Upload a 16 x 16 pixel PNG and click 'Faviconify!' to create a favicon for your website. This favicon maker supports alpha transparency.

在线Flash生成 - flash generators

在线表单制作 - form generators

  • Accessible Form Builder
    Generate XHTML-compliant accessible forms quicky and easily
  • Accessible Form Creator
    allows you to create forms for web sites containing all the additional markup required to make the forms accessible under Section 508 standards and the W3C WCAG 1.0 Priority 1-3 Guidelines.
  • Contact Form Generator
    The free Website Contact Form Generator utility enables you to create form-to-email scripts for your ASP, PHP or Perl web site with no programming skills needed.
  • CSS Form Code Maker
    Generates 'Colorful Box Layout' For Forms
  • Form Element Generator
    allows you to create forms for web sites containing all the additional markup required to make the forms accessible under Section 508 standards and the W3C WCAG 1.0 Priority 1-3 Guidelines.
  • FormLogix
    FormLogix is an online web database and form generator solution.Free
  • JotForm
    Web Based WYSIWYG Form Builder
  • PHP FormMail Generator
    A tool to create ready-to-use web forms in a flash. Once the form has been generated, you have a full functional web form. Including error checking of required fields, email address validation, credit card number & expiry date checking, multiple attachments sending, and email auto responding.
  • Wufoo
    Making forms easy + fast + fun.
  • Web Form Factory
    Open Source Web Form Generator

有趣小玩意生成 - fun & humor

图像和按钮在线生成 - graphics & image generators

在线Htaccess文件生成 - htaccess generators

  • Htaccess Disable Hotlinking Code Generator
    If people are 'hotlinking' to your image files, they are using your bandwidth which you will ultimately pay for. You can stop this from happening by placing a '.htaccess' file in the folder where your images are stored…
  • .htaccess File Generator
    Apache htaccess file generator
  • .htaccess Generator
    .htaccess generator - will generate the files you need (.htaccess and .htpasswd) to password protect a directory of your website.
  • .htaccess Generator
    Create Encrypted Passwords in seconds
  • mod_rewrite RewriteRule Generator
    Our mod_rewrite RewriteRule generator will take a dynamic url given to it, and generate the correct syntax to place in a .htaccess file to allow the url to be rewritten in a spiderable format
  • URL Rewrite (mod_rewrite)
    With this tool you can generate dynamic urls to search engine friendly urls..

在线Metatag生成 - metatag generators

  • META builder
    This form will generate HTML META tags suitable for inclusion in your HTML document.
  • Meta Tag Generator
    Use this tool to generate a search engine friendly Head Tag for your web site
  • Title & Meta Tags Generator
    his code generator will build the title and meta tags for your site to help improve your website's search engine ranking using our Meta Tag Generator
  • META Tag Generator
    Fast track creating your META tags with our advanced META tag generator. Just select the META tags you would like and let our META tag generator spit out the code for you
  • META Tag Generator
    Here's an easy to way to generate your META tags. Fill in the form and hit 'submit'

各色有趣功能生成 - misc generators

在线密码生成 - password generators

在线PDF文档生成 - pdf generators

  • html2pdf
    Type the URL of a Webpage of your Choice to generate a PDF file
  • Notepad Generator - 1.0.0a
    This tool allows you to customize a PDF notepad.
  • PDFCreator
    PDFCreator is a free tool to create PDF files from nearly any Windows application.
  • PDF Online
    Quickly and easily convert your documents into PDF from anywhere in the world
  • RSS 2 PDF (Beta)
    Free Online RSS, Atom or OPML to PDF Generator

在线PHP和MYSQL代码生成 - php & MySQL generators

在线弹窗生成 - popup generators

  • Accessible Pop-up Window Generator
    Create pop-ups that are accessible and search engine-friendly
  • Popup Window Generator
    This code generator will make a script that you can add to your page using the Insert HTML Element which will pop up a window for you.
  • Popup Window Generator
    Use Eric's Popup window Generator to easily add popup windows to your site!
  • Popup Window Maker
    Fill out the specifications of the popup window you would like to use, including the URL and the various options such as menubars, toolbars, scrollbars, etc, and click the generate button

在线搜索引擎robot检索file生成 - robots.txt generators

在线RSS 订阅生成 - rss generators

站点地图生成器 - sitemap generators

文本在线制作与生成 - text generators

  • Lorem Ipsum Generator
    Generator for randomized typographic filler text
  • Lorem Ipsum
    All the facts - Lipsum generator
  • Malevole - Text Generator
    This text generator has been developed based on years of careful research and is guaranteed to improve even the most lacklustre of designs.
  • Typetester
    The Typetester is an online application for comparison of the fonts for the screen.

提示代码生成器 - tooltip generators

  • DHTML Tooltip Generator
    Sometimes the HTML "alt=" isn't enough to relay the detail you'd like it to. Here is a tool that will allow you to give your users more interactive tooltips.
  • Flash Tooltip Generator
    Free online flash generator create a flash tooltip

在线日志及代码生成 - weblog generators

XML代码及表格生成 - xml generators

  • XMLBuddy
    Supports XML and DTDs. Generates DTD from XML instance. Validates and provides code assist based on DTDs or document contents (no DTD)…
  • XML Forms Generator
    A standards-based, data-driven Eclipse plug-in that generates functional forms with XForms mark-up embedded within an XHTML document from a XML data instance or a WSDL document
  • XML Generator
    To Generate XML from any data source

posted @ 2008-03-25 09:29 dunnice 阅读(111) | 评论 (0)编辑

Microsoft JScript 运行时错误: Automation 服务器不能创建对象

Microsoft JScript 运行时错误: Automation 服务器不能创建对象
<待解决>

posted @ 2008-03-25 09:11 dunnice 阅读(418) | 评论 (1)编辑

2008年2月28日

一点基本电信知识

电信知识:
交换机的种类:
端局: 普通交换机, 直接连接bscbts.
关口局: 连接端局的交换机, 不直接连接bsc.
汇接局: 连接外地交换机的交换机, 用于长途业务.
综合关口局: 兼备关口局和端局的功能的交换机.

posted @ 2008-02-28 23:54 dunnice 阅读(176) | 评论 (0)编辑

如何控制Div的滚动条?

如何控制Div的滚动条?
在Style里面, overflow-x:hidden;overflow-y:scroll; 控制滚动条显示,
document.getElementById("div1").scrollTop+=20,控制滚动条滚动

posted @ 2008-02-28 23:50 dunnice 阅读(243) | 评论 (0)编辑

动态生成页面时, 如何动态插入换行符?

在需要换行的控件中插入一个LiteralContral(“<br/>”):

this.divSearchCondition.Controls.Add(new LiteralControl("<br/>"));  

posted @ 2008-02-28 23:49 dunnice 阅读(94) | 评论 (0)编辑

如何在Web页面中绑定服务器端变量

1。 <%=   %> 的用法
2。 <%=   %> 与 <%#   %> 的区别和联系。

A:
网上收集的一些资料,

=   是直接输出服务器端的变量 #是在绑定的上下文中输出,并可获取绑定对象.

=   是在客户端获取服务器端的变量
#   是客户端获取服务器端的绑定值 如Grid里的获取

<%#   %> 的结果要等到执行控件的DataBind方法后才会出现

Text是服务器的属性,如果要在界面赋值只能用绑定 <%#.....%> 但是当前上下文没有数据绑定所以不行. <%=> 是直接输入变量到页面上.

posted @ 2008-02-28 23:46 dunnice 阅读(109) | 评论 (0)编辑