自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (3)
  • 收藏
  • 关注

原创 轻轻松松穿透防火墙 (anen)

   轻轻松松穿透防火墙  (anen)     如今采用局域网方式接入Internet已经是各个公司、高校和政府机关的主要上网方式,这种方式既节省IP地址,又方便管理和控制。通常网管会在局域网的出口处设置各种防火墙,这样一方面保证了局域网内部的安全性,另一方面又可以控制局域网内部人员的访问权限。可这样也限制了使用者的使用权限,与外界的联系也很不方便。比方说对于在公司里上班的上班一族和局域网里的穷

2005-03-06 12:36:00 1858

原创 海量数据库的查询优化及分页算法方案

随着“金盾工程”建设的逐步深入和公安信息化的高速发展,公安计算机应用系统被广泛应用在各警种、各部门。与此同时,应用系统体系的核心、系统数据的存放地――数据库也随着实际应用而急剧膨胀,一些大规模的系统,如人口系统的数据甚至超过了1000万条,可谓海量。那么,如何实现快速地从这些超大容量的数据库中提取数据(查询)、分析、统计以及提取数据后进行数据分页已成为各地系统管理员和数据库管理员亟待解决的难题。

2005-01-14 14:36:00 931 2

原创 那个系的女生不能追!!!

历史系的女生追不得:她们是一天到晚研究古往今来的阴谋诡计的那些人,你能算过她么? 数学系的女生追不得:天天算题,早晚有一天变傻子。 计算机系的女生追不得:看看电脑的更新速度就知道了。 化学系的女生追不得:小心分手的时候硫酸让你毁容。 经济系的女生追不得:她会榨干你身上的每一分钱。 体育系的女生追不得:小心跟你来肉搏! 表演系的女生追不得:你不知道是在生活还是在演戏。 美术系的女生追不得:她们看到你

2004-12-14 16:39:00 1507 3

原创 多区段刻录过程中,“丢失”以前文件的解决办法……

 同事的一个光盘续刻后,以前的文件找不到了。上网搜索到唯一一个能解决的办法。多区段刻录过程中,“丢失”以前文件的解决办法…… 经常碰到网友询问多重区段刻录中,丢失文件的解决方法,其实这种“丢失”并非真的丢失,文件还在光盘里,只是最后一次的 FAT 中,不包含该文件,通过一定的方式,偶们可以很轻松的把它找出来……下面通过一个例子来说明操作过程。 目的:这是一个有 3 个区段的光盘,找出第一次

2004-11-10 22:04:00 5706

原创 网页设计中的自动换行问题

今天同事要在table中放若干个Button但是不换行,快疯了。我知道网上肯定有解决办法找了一下。在Table中加入如下样式:style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word"

2004-11-03 10:49:00 1331

原创 在blog中显示天气预报、日历、时钟、MSN、QQ在线状态

 以csdn为例,在静态新闻/声明添加如下内容,效果如同本页面所示 var diarydays="";.calendarBigBorder { font-family: "Arial", "Helvetica", "sans-serif", "宋体"; text-decoration: none; width: 170; background-color: #FFFFFF; font-size:

2004-11-03 09:55:00 1411 3

原创 C#写的UBB代码累

  参考了一些文章,整理了一下,大家可以直接拿去用吧,其实自从有了FreeTextBox这样的东东出现,UBB已经渐渐淡出江湖了。using System;using System.Text;using System.Text.RegularExpressions;namespace Test.Com{///  /// 功能:UBB代码 /// 作者:Rexsp /// 日期:2004

2004-11-03 00:22:00 1114 1

原创 Using the WebService Behavior

Using the WebService Behavior Internet Development IndexThis article explains how to use the WebService behavior to call remote methods from Web Services. The WebService behavior is im

2004-11-02 15:10:00 1204

原创 “当页面跳转或者关闭窗口时弹出提示窗口!”JAVASCRIPT实例

如何让IE6.0右上角的“关闭”按钮失效?实例1即可实现。-----------------------------------window.onbeforeunload = function(){  if(event.clientX>document.body.clientWidth&&event.clientY  {    window.event.returnValue = "";  }}

2004-11-02 01:41:00 2217

原创 用C#制作一个最简单的Web Service

下面,我们看看如何建立和部署一个最简单的Web服务 建立Web服务1.在wwwroot目录下建立一个叫做Webservice的目录。2.建立下面这样一个文件:using System;using System.Web.Services;public class AddNumbers : WebService{[WebMethod]public int Add(int a, int b){int s

2004-11-02 01:05:00 1175 1

原创 根据汉字声母,在表中找相关记录。比如输入"zgyh",就能找到所有“中国银行”的记录。

根据汉字声母,要在表中找相关记录,怎么实现?比如输入"zgyh",就能找到所有“中国银行”的记录。if exists (select * from dbo.sysobjects where id = object_id(N[dbo].[f_GetPy]) and xtype in (NFN, NIF, NTF)) drop function [dbo].[f_GetPy]GO-

2004-11-01 22:10:00 1316 2

原创 经典绕口令

经典绕口令 <SPAN id=HTML_quotebody1811213 value="[蚕和蝉]    这是蚕,  那是蝉,  蚕常在叶里藏,  蝉常在林里唱。       [捉兔]    一位爷爷他姓顾,  上街打醋又买布。  买了布,打了醋,  回头看见鹰抓兔。  放下布,搁下醋,  上前去追鹰和兔,  

2004-11-01 19:04:00 2228 13

原创 在WEB页面中调用NetMeeting 方法

1。调用NetMeeting 模块,同时显示在页面中。              classid=clsid:3E9BAF2D-7A79-11D2-9334-0000F875AE17             VIEWASTEXT> 2。调用NetMeeting 中的呼叫对方方法。 

2004-11-01 17:58:00 1356

原创 JavaScript实现类似Title Alt功能并且可以显示图片。

JavaScript实现类似Title Alt功能并且可以显示图片。  var tipTimer;function locateObject(n, d) { //v3.0var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)]

2004-11-01 17:54:00 1401

原创 JAVASCRIPT二维数组(实例)

通过声明二维数组绑定SELECT下拉菜单动态改变下拉菜单内容示例//定义一个二维数组aArray,用于存放城市名称。var aCity=new Array();aCity[0]=new Array();aCity[1]=new Array();aCity[2]=new Array();aCity[3]=new Array();//赋值,每个省份的城市存放于数组的一行。aCity[0][

2004-11-01 15:21:00 2261

原创 使用 Microsoft SQL Server 2000 的全文搜索功能构建 Web 搜索应用程序

使用 Microsoft SQL Server 2000 的全文搜索功能构建 Web 搜索应用程序Andrew B. CenciniMicrosoft Corporation 2002年12月 适用于:    Microsoft® SQL™ Server 2000摘要:学习如何充分利用 SQL Server 2000 的全文搜索功能。本文包含有关实现最大吞吐率和最佳性能的几点提示和技巧

2004-11-01 15:00:00 996

原创 如何在SQL中启用全文检索功能?(实例)

如何在SQL中启用全文检索功能?-------------------------------------------------------------------------------- 全文索引的一个例子,在查询分析器中使用:use pubsgo--打开数据库全文索引的支持execute sp_fulltext_database enablego--建立全文目录ft_titlese

2004-11-01 10:49:00 915 1

原创 Literal控件与TextBox控件结合的自定义复合控件。

本控件主要解决了自定义复合控件中,客户端验证脚本。using System;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.ComponentModel;namespace Only.CompositionControls{ ///  /// Create By liyi。 //

2004-10-11 00:06:00 939

3DEarth源码GTOPO30 OPENGL

LINUX下面,C++,读取GTOPO30高程数据,第一人称视角,OPENGL构建3D地形,需要下载DEM高程数据,下载地址: https://dds.cr.usgs.gov/srtm/version2_1/SRTM30/

2017-10-26

GpuCapsViewer 1.34.3.1

可以查看OpenGL和显卡配置等信息。 PU Caps Viewer 能检测当前市面上所有显卡的规格参数,如果你喜欢玩大型3D游戏的话,那么OpenGL也是衡量你显卡性能的重要指标,GPU Caps Viewer 支持检测显卡OpenGL计算能力,让你对自己显卡性能有一定了解。 快速的图形视图配置(显卡/GPU类型、数量的视频内存,驱动程序版本) ; 显示主要OpenGL功能(OpenGL版本、纹理尺寸、结构单元的数量,等等); 显示OpenCL API支持和扩展; 显示显卡OpenGL扩展支持或显示所有现有的OpenGL扩展不管你有什么显卡。 对于每个扩展,可以开放网页的描述OpenG扩展或在NVIDIA的OpenGL图形开发人员扩展规范。非常方便的! NVIDIA显示CUDA水平的支持 ; 显示系统配置:CPU类型和速度,内存,操作系统,物理运算引擎版本; 显示GPU核心温度 ; GPU燃烧器或稳定性试验:允许过热GPU为了测试显卡的稳定性。 你可以开始一些压力测试演示同时为了使你的显卡工作的最大; 相关的链接列表你的显卡:图形驱动程序和图形卡的评论。 这些链接都是定期更新; 完整的报告在文本和XML格式。 这种报告是有用的开发人员需要一个客户的轮廓图形系统(例如用于支持); 图形卡验证:你的显卡数据发送给oZone3D。 网络服务器和回报你收到验证web页面上的链接。 您可以使用验证基准或帮助图形应用程序开发人员解决具体问题。

2017-10-26

convmv-1.15.tar.gz

NAME SYNOPSIS OPTIONS DESCRIPTION Filesystem issues HFS+ on OS X / Darwin JFS NFS4 FAT/VFAT and NTFS How to undo double UTF-8 (or other) encoded filenames How to repair Samba files Netatalk interoperability issues SEE ALSO BUGS AUTHOR NAME convmv - converts filenames from one encoding to another SYNOPSIS convmv [options] FILE&#40;S&#41; ... DIRECTORY(S) OPTIONS -f ENCODING specify the current encoding of the filename(s) from which should be converted -t ENCODING specify the encoding to which the filename(s) should be converted -i interactive mode (ask y/n for each action) -r recursively go through directories --nfc target files will be normalization form C for UTF-8 (Linux etc.) --nfd target files will be normalization form D for UTF-8 (OS X etc.). --qfrom , --qto be more quiet about the "from" or "to" of a rename (if it screws up your terminal e.g.). This will in fact do nothing else than replace any non-ASCII character (bytewise) with ? and any control character with * on printout, this does not affect rename operation itself. --exec command execute the given command. You have to quote the command and #1 will be substituted by the old, #2 by the new filename. Using this option link targets will stay untouched. Example: convmv -f latin1 -t utf-8 -r --exec "echo #1 should be renamed to #2" path/to/files --list list all available encodings. To get support for more Chinese or Japanese encodings install the Perl HanExtra or JIS2K Encode packages. --lowmem keep memory footprint low by not creating a hash of all files. This disables checking if symlink targets are in subtree. Symlink target pointers will be converted regardlessly. If you convert multiple hundredthousands or millions of files the memory usage of convmv might grow quite high. This option would help you out in that case. --nosmart by default convmv will detect if a filename is already UTF8 encoded and will skip this file if conversion from some charset to UTF8 should be performed. --nosmart will also force conversion to UTF-8 for such files, which might result in "double encoded UTF-8" (see section below). --fixdouble using the --fixdouble option convmv does only convert files which will still be UTF-8 encoded after conversion. That's useful for fixing double-encoded UTF-8 files. All files which are not UTF-8 or will not result in UTF-8 after conversion will not be touched. Also see chapter "How to undo double UTF-8 ..." below. --notest Needed to actually rename the files. By default convmv will just print what it wants to do. --parsable This is an advanced option that people who want to write a GUI front end will find useful (some others maybe, too). It will convmv make print out what it would do in an easy parsable way. The first column contains the action or some kind of information, the second column mostly contains the file that is to be modified and if appropriate the third column contains the modified value. Each column is separated by \0\n (nullbyte newline). Each row (one action) is separated by \0\0\n (nullbyte nullbyte newline). --preserve-mtimes modifying filenames usually causes the parent directory's mtime being updated. This option allows to reset the mtime to the old value. If your filesystem supports sub-second resolution the sub-second part of the atime and mtime will be lost as Perl does not yet support that. --replace if the file to which shall be renamed already exists, it will be overwritten if the other file content is equal. --unescape this option will remove this ugly % hex sequences from filenames and turn them into (hopefully) nicer 8-bit characters. After --unescape you might want to do a charset conversion. This sequences like etc. are sometimes produced when downloading via http or ftp. --upper , --lower turn filenames into all upper or all lower case. When the file is not ASCII-encoded, convmv expects a charset to be entered via the -f switch. --dotlessi care about the dotless i/I issue. A lowercase version of "I" will also be dotless while an uppercase version of "i" will also be dotted. This is an issue for Turkish and Azeri. By the way: The superscript dot of the letter i was added in the Middle Ages to distinguish the letter (in manuscripts) from adjacent vertical strokes in such letters as u, m, and n. J is a variant form of i which emerged at this time and subsequently became a separate letter. --help print a short summary of available options --dump-options print a list of all available options DESCRIPTION convmv is meant to help convert a single filename, a directory tree and the contained files or a whole filesystem into a different encoding. It just converts the filenames, not the content of the files. A special feature of convmv is that it also takes care of symlinks, also converts the symlink target pointer in case the symlink target is being converted, too. All this comes in very handy when one wants to switch over from old 8-bit locales to UTF-8 locales. It is also possible to convert directories to UTF-8 which are already partly UTF-8 encoded. convmv is able to detect if certain files are UTF-8 encoded and will skip them by default. To turn this smartness off use the --nosmart switch. Filesystem issues Almost all POSIX filesystems do not care about how filenames are encoded, here are some exceptions: HFS+ on OS X / Darwin Linux and (most?) other Unix-like operating systems use the so called normalization form C (NFC) for its UTF-8 encoding by default but do not enforce this. Darwin, the base of the Macintosh OS enforces normalization form D (NFD), where a few characters are encoded in a different way. On OS X it's not possible to create NFC UTF-8 filenames because this is prevented at filesystem layer. On HFS+ filenames are internally stored in UTF-16 and when converted back to UTF-8, for the underlying BSD system to be handable, NFD is created. See http://developer.apple.com/qa/qa2001/qa1173.html for defails. I think it was a very bad idea and breaks many things under OS X which expect a normal POSIX conforming system. Anywhere else convmv is able to convert files from NFC to NFD or vice versa which makes interoperability with such systems a lot easier. JFS If people mount JFS partitions with iocharset=utf8, there is a similar problem, because JFS is designed to store filenames internally in UTF-16, too; that is because Linux' JFS is really JFS2, which was a rewrite of JFS for OS/2. JFS partitions should always be mounted with iocharset=iso8859-1, which is also the default with recent 2.6.6 kernels. If this is not done, JFS does not behave like a POSIX filesystem and it might happen that certain files cannot be created at all, for example filenames in ISO-8859-1 encoding. Only when interoperation with OS/2 is needed iocharset should be set according to your used locale charmap. NFS4 Despite other POSIX filesystems RFC3530 (NFS 4) mandates UTF-8 but also says: "The nfs4_cs_prep profile does not specify a normalization form. A later revision of this specification may specify a particular normalization form." In other words, if you want to use NFS4 you might find the conversion and normalization features of convmv quite useful. FAT/VFAT and NTFS NTFS and VFAT (for long filenames) use UTF-16 internally to store filenames. You should not need to convert filenames if you mount one of those filesystems. Use appropriate mount options instead! How to undo double UTF-8 (or other) encoded filenames Sometimes it might happen that you "double-encoded" certain filenames, for example the file names already were UTF-8 encoded and you accidently did another conversion from some charset to UTF-8. You can simply undo that by converting that the other way round. The from-charset has to be UTF-8 and the to-charset has to be the from-charset you previously accidently used. If you use the --fixdouble option convmv will make sure that only files will be processed that will still be UTF-8 encoded after conversion and it will leave non-UTF-8 files untouched. You should check to get the correct results by doing the conversion without --notest before, also the --qfrom option might be helpful, because the double utf-8 file names might screw up your terminal if they are being printed - they often contain control sequences which do funny things with your terminal window. If you are not sure about the charset which was accidently converted from, using --qfrom is a good way to fiddle out the required encoding without destroying the file names finally. How to repair Samba files When in the smb.conf (of Samba 2.x) there hasn't been set a correct "character set" variable, files which are created from Win* clients are being created in the client's codepage, e.g. cp850 for western european languages. As a result of that the files which contain non-ASCII characters are screwed up if you "ls" them on the Unix server. If you change the "character set" variable afterwards to iso8859-1, newly created files are okay, but the old files are still screwed up in the Windows encoding. In this case convmv can also be used to convert the old Samba-shared files from cp850 to iso8859-1. By the way: Samba 3.x finally maps to UTF-8 filenames by default, so also when you migrate from Samba 2 to Samba 3 you might have to convert your file names. Netatalk interoperability issues When Netatalk is being switched to UTF-8 which is supported in version 2 then it is NOT sufficient to rename the file names. There needs to be done more. See http://netatalk.sourceforge.net/2.0/htmldocs/upgrade.html#volumes-and-filenames and the uniconv utility of Netatalk for details. SEE ALSO locale(1) utf-8(7) charsets(7) BUGS no bugs or fleas known AUTHOR Bjoern JACKE Send mail to bjoern [at] j3e.de for bug reports and suggestions.

2013-01-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除