Internet 域名由一个或多个称为域名标签的部分组成,各部分由标签分隔符分隔。例如,域名“www.microsoft.com”由标签“www”、“microsoft”和“com”组成,它们由句点分隔。
应用程序中的域名国际化 (IDNA) 机制将国际化域名(包含 US-ASCII 字符范围外的 Unicode 字符)映射到 IDNA 域名(包含仅在 US-ASCII 字符范围内可显示的 Unicode 字符)。IDNA 机制仅用于转换域名,而不在 Internet 上传送数据。
IdnMapping 类包含在 IDNA 机制中并扩展 IDNA 机制。GetAscii 方法使域名规范化,将规范化的域名转换为包含 US-ASCII 码位范围中(U+0020 至 U+007E)的可显示 Unicode 字符的表示形式,并在每个标签前面预置 ASCII 兼容编码前缀 ("xn--")。
标签分隔符 IDEOGRAPHIC FULL STOP (U+3002)、FULLWIDTH FULL STOP (U+FF0E) 和 HALFWIDTH IDEOGRAPHIC FULL STOP (U+FF61) 会转换为标签分隔符 FULL STOP(句点 U+002E)。
有关更多信息,请参见位于 Request for Comments (RFC)(请求注释 (RFC))上的 RFC 3490 标准“Internationalizing Domain Names in Applications(应用程序中的域名国际化方案)”。标准团体正在从事 IDNA 标准的更新;请参阅 Internet 工程任务组工作组 (http://tools.ietf.org/wg/idnabis/)。可能最终会遵循当前的 IDN 标准。
In most cases you'll want to create your database and it's schema as part of your applications first deployment. Depending on the scenario, you may create it on the client, or create it on the server, do the initial sync, then stream the file down to the client pre-populated.
Why would you create the database on the fly, rather than ship the initial database with your app?
While you could create the empty shell, and deploy it, you'll almost never want to start with a database that has data? Why? While in development, you'll have some set of data. Months later, when another user first installs your app that data may no longer be valid. Since most sync systems don't track deletes forever, you could wind up with data that is very stale, and now way to effectively update it.
本日志由 flyinweb 于 2012-01-04 11:01:27 发表到 DotNet专栏 中,目前已经被浏览 381 次,评论 0 次;
作者添加了以下标签: SQL Server Compact Edition;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
介绍
现在 ASP.NET 2.0 提供了对成员资格(用户名/密码凭据存储)和角色管理服务的内置支持。由于所有这些服务都是提供程序驱动的(Provider),因此可以方便地用您自己的自定义实现替换。
本日志由 flyinweb 于 2011-07-17 11:40:48 发表到 DotNet专栏 中,目前已经被浏览 991 次,评论 0 次;
作者添加了以下标签: Membership,RoleManager;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
This tutorial we will demonstrate how to access ASP.NET controls located in the LoggedInTemplate of a LoginView Control from the C# code behind class.
本日志由 flyinweb 于 2011-07-15 09:07:37 发表到 DotNet专栏 中,目前已经被浏览 3058 次,评论 2 次;
作者添加了以下标签: LoginView,Templated Controls;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
C# code to convert a network in CIDR notation (72.20.10.0/24) to an IP address range
本日志由 flyinweb 于 2011-01-28 11:15:24 发表到 DotNet专栏 中,目前已经被浏览 1844 次,评论 0 次;
作者添加了以下标签: CIDR2IPrange,CIDRtoIPrange;
首页只显示了部分日志内容,要查看日志的全部内容请阅读全文;
最近单位开发一个项目,其中需要用到自动升级功能。因为自动升级是一个比较常用的功能,可能会在很多程序中用到,于是,我就想写一个自动升级的组件,在应用程序中,只需要引用这个自动升级组件,并添加少量代码,即可实现自动升级功能。因为我们的程序中可能包含多个exe或者dll文件,所以要支持多文件的更新。
we have checked the posted file of the FileUpload and pass it to the IsImageFile() method that returns a Boolean type for checking the actual type of the posted file. If the file contains image extension such as “jpg”, “gif”, “bmp” and “png” then it will return TRUE else it will return false.
- private void StartUpLoad()
- {
- if (FileUpload1.HasFile)
- {
- HttpPostedFile postedFile = FileUpload1.PostedFile;
- if (IsImageFile(postedFile))
- {
- //Save image here
- }
- else
- {
- Response.Write("Invalid File, Cannot Upload!");
- }
- }
- else
- {
- Response.Write("Please select a File");
- }
- }
- protected bool IsImageFile(HttpPostedFile file)
- {
- bool isImage = false;
- System.IO.FileStream fs = new System.IO.FileStream(file.FileName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
- System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
- string fileclass = "";
- byte buffer;
- try
- {
- buffer = br.ReadByte();
- fileclass = buffer.ToString();
- buffer = br.ReadByte();
- fileclass += buffer.ToString();
- }
- catch
- {
- return false;
- }
- finally
- {
- br.Close();
- fs.Close();
- }
- /*extension lists with codes
- *7173 gif
- *255216 jpg
- *13780 png
- *6677 bmp
- *239187 txt,aspx,asp,sql
- *208207 xls.doc.ppt
- *6063 xml
- *6033 htm,html
- *4742 js
- *8075 xlsx,zip,pptx,mmap,zip
- *8297 rar
- *01 accdb,mdb
- *7790 exe,dll
- *64101 bat
- */
- //only allow images jpg gif bmp png
- String[] fileType = { "255216", "7173", "6677", "13780" };
- for (int i = 0; i < fileType.Length; i++)
- {
- if (fileclass == fileType[i])
- {
- isImage = true;
- break;
- }
- }
- return isImage;
- }
.NET 3.5 发布功能强大的新控件(Winform&WebForm) —— Chart
11月25号,Scott在博客上发布了基于.NET Framework 3.5 SP1的图表控件——Chart,可在WinForm和WebForm下使用!并同时提供了大量的示例...
而且直接配置文件是效率最高的,通过其它驱动效率都相对较低,BDB
这个测试不太准确,看官方的测试结果:http://bind-dlz.sourceforg
为什么使用BDB时QPS这么低? 我在bind版本基本相似的环境中测试的
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱