<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[Fovly  府吏网 Field Of View,Lean Yourself]]></title>
<link>http://www.fovly.com/</link>
<description><![CDATA[初从文,三年不中,改习武,校场发一矢,中鼓吏，逐之出,遂学医,有所成,自撰一良方，服之,卒.]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[yamunchien@qq.com(府吏)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>Fovly  府吏网 Field Of View,Lean Yourself</title>
	<url>http://www.fovly.com/images/logos.gif</url>
	<link>http://www.fovly.com/</link>
	<description>Fovly  府吏网 Field Of View,Lean Yourself</description>
</image>

			<item>
			<link>http://www.fovly.com/article.asp?id=488</link>
			<title><![CDATA[android通过webservice验证用户]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[技术]]></category>
			<pubDate>Fri,28 Jan 2011 13:27:00 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=488</guid>
		<description><![CDATA[在企业应用中，手机与企业数据的交互必不可少，在这里我们通过实例来描述android怎样调用.net webservice<br/>第一步：vs2005建webservice ,贴出代码:<br/><br/>详见 <a href="http://www.cnblogs.com/lw163net/archive/2010/07/14/android_werservice.html" target="_blank" rel="external">http://www.cnblogs.com/lw163net/archive/2010/07/14/android_werservice.html</a>]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=487</link>
			<title><![CDATA[Poor mans GPS - Cell(Tower)ID / Location Area Code]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[技术]]></category>
			<pubDate>Tue,11 Jan 2011 10:58:54 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=487</guid>
		<description><![CDATA[Poor mans GPS - Cell(Tower)ID / Location Area Code -Lookup<br/><br/><br/>What is this: This tutorial shows how to approximate your current location in the world using the CellID ( CellTowerID ) and LAC ( Location Area Code ), by requesting data, from a &#39;secret&#39; Google-API.<br/><br/>What you will learn:<br/>Reading out the CellID ( CellTowerID ) and LAC ( Location Area Code ) of your current Phone-Cell.<br/>Setting up a HTTP-Connection<br/>Posting Requests to that HTTP-Connection<br/>Retrieve Latitude/Longitude from a &#39;secret&#39; Google-API usign CellID and LAC.<br/>Displaying a ProgressBar<br/>Many more...<br/>&nbsp;&nbsp;Problems/Questions: post right below...<br/><br/><a href="http://www.anddev.org/poor_mans_gps_-_celltowerid_-_location_area_code_-lookup-t257.html" target="_blank" rel="external">http://www.anddev.org/poor_mans_gps_-_celltowerid_-_location_area_code_-lookup-t257.html</a>]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=486</link>
			<title><![CDATA[创建Feature图层标注 ]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[GIS]]></category>
			<pubDate>Tue,07 Dec 2010 13:12:15 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=486</guid>
		<description><![CDATA[public virtual IElement AddTextByArcEngine(ESRI.ArcGIS.Controls.IMapControl2 axMap, IPoint pPoint, string elementName, string text, int xoffset, int yoffset, IRgbColor pColor)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IGeoFeatureLayer pGeoFeatLayer;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IAnnotateLayerPropertiesCollection pAnnotateLayerPropCollection;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IAnnotateLayerProperties pAnnotateLayerProp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IAnnotateLayerTransformationProperties pAnnoLayerTransProp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ILineLabelPosition pPosition;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ILineLabelPlacementPriorities pPlacementPrior;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IBasicOverposterLayerProperties pBasicOverProp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ILabelEngineLayerProperties pLabelEngine;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IRgbColor pRgbColor;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ITextSymbol pTxtSymbol;//字体风格<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pGeoFeatLayer = axMap.get_Layer(0) as IGeoFeatureLayer;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pAnnotateLayerPropCollection = pGeoFeatLayer.AnnotationProperties;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//pAnnotateLayerPropCollection.Clear();<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pRgbColor = new RgbColorClass();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pRgbColor.Red = 255;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pRgbColor.Green = 0;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pRgbColor.Blue = 0;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pTxtSymbol = new TextSymbolClass();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pTxtSymbol.Color = (IColor)pRgbColor;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pTxtSymbol.Size = 12;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPosition = new LineLabelPositionClass();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPosition.Parallel = false;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPosition.Perpendicular = true;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPosition.InLine = true;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPlacementPrior = new LineLabelPlacementPrioritiesClass();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPlacementPrior.AboveStart = 5;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pPlacementPrior.BelowAfter = 4;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBasicOverProp = new BasicOverposterLayerPropertiesClass();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBasicOverProp.FeatureType = esriBasicOverposterFeatureType.esriOverposterPolygon;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBasicOverProp.LineLabelPosition = pPosition;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pBasicOverProp.LineLabelPlacementPriorities = pPlacementPrior;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pLabelEngine = new LabelEngineLayerPropertiesClass();<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pLabelEngine.Symbol = pTxtSymbol;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pLabelEngine.BasicOverposterLayerProperties = pBasicOverProp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pLabelEngine.IsExpressionSimple = true;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pLabelEngine.Expression = &#34;[name]&#34;;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//pAnnoLayerTransProp = (IAnnotateLayerProperties)pLabelEngine;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pAnnotateLayerProp = (IAnnotateLayerProperties)pLabelEngine;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pAnnotateLayerPropCollection.Add(pAnnotateLayerProp);<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pGeoFeatLayer.DisplayAnnotation = true;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;axMap.Refresh(esriViewDrawPhase.esriViewGraphics, null,null);<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return null;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=485</link>
			<title><![CDATA[如何开启IIS里的FTP的PASV模式]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[技术]]></category>
			<pubDate>Thu,02 Dec 2010 23:17:48 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=485</guid>
		<description><![CDATA[基于 IIS 的 FTP 服务支持两种主动和被动模式连接, 根据由客户端指定方法。 IIS 不支持禁用或者活动或被动连接模式。<br/><br/>与 Internet, 上使用 HTTP 和其他协议 FTP 协议使用最小的两个连接会话期间： 用于控制, 半双工连接和进行数据传输全双工连接用于控制, 半双工连接和全双工连接进行数据传输：。 默认情况下, <a href="http://www.fovly.com" target="_blank">服务器</a>上 TCP 端口 21 用于控制连接, 但数据连接由方法， 客户端用来连接到<a href="http://www.fovly.com" target="_blank">服务器</a>, 作为下面详细。<br/><br/>因为通过控制连接客户端发送到<a href="http://www.fovly.com" target="_blank">服务器</a>, 端口 命令 - 主动模式 FTP 连接 有时称为以 &#34; 客户端管理 &#34;。 命令请求<a href="http://www.fovly.com" target="_blank">服务器</a>以建立到客户, 使用 TCP 端口由 端口 命令指定数据连接从 TCP 端口 20 上。 <br/><br/>被动模式 FTP 连接 是有时称为到 &#34; <a href="http://www.fovly.com" target="_blank">服务器</a>管理 &#34;, 因为与之一瞬态端口用作数据连接的<a href="http://www.fovly.com" target="_blank">服务器</a>端端口<a href="http://www.fovly.com" target="_blank">服务器</a>响应客户端发出 pasv 命令后,。 由客户端, 数据连接命令发出后<a href="http://www.fovly.com" target="_blank">服务器</a>连接到客户立即使用端口上面控制连接的客户端端口。<br/><br/>与端口范围 1024 - 65535 内默认模式 Passive - IIS FTP 中随机选择到响应。 要进一步限制这些巨大端口范围, 系统管理员可配置命名 PassivePortRange 元数据库属性关键字， 此属性关键字仅存在于 IIS 6.0, for IIS 5.0 在 Windows 2000， 系统管理员需要安装 Service Pack 4， 在系统注册表中 PassivePortRange 项中添加。<br/><br/>更改 PassivePortRange for IIS, 执行过程之一下面部分中所述。<br/><br/><br/>用于 Windows Server 2003 <br/><br/>要启用直接编辑元数据库）<br/>1 . 打开 IIS Microsoft 管理控制台 (MMC)。<br/>2 . 右击本地计算机节点。<br/>3 . 选择 属性 。<br/>4 请确保 启用直接编辑元数据库 复选框。<br/><br/><br/>通过 ADSUTIL 脚本配置 PassivePortRange b)<br/>1 . 单击 开始 、 运行 ， 键入 cmd, 和然后 确定 。 <br/>2 . 键入 cd Inetpub\AdminScripts， 然后按 Enter。<br/>3 . 键入以下命令从命令提示符。<br/><br/>&nbsp;&nbsp; CSCRIPT.exe adsutil.vbs set /MSFTPSVC/PassivePortRange &#34;5500-5515&#34;<br/><br/>4 重新启动 FTP 服务。<br/><br/>通过 ADSUTIL 脚本配置时您会看到以下输出：<br/><br/>Microsoft (R) Windows Script Host 版本 5.6<br/><br/>版权所有 (C) Microsoft Corporation 1996 - 2001。 保留所有权利。.<br/><br/>PassivePortRange (STRING) &#34; 5500-5515 &#34;：<br/><br/>注意：如果开了系统自带的防火墙，必须在例外里添加以上端口<br/><br/><br/><br/>对于 Windows2000Server <br/>要点 ： 本文包含有关修改注册表信息。 修改注册表之前, 一定要备份并确保您了解如何在发生问题时还原注册表。 <br/><br/>为了此 PassivePortRange 将要使用 Windows 2000, 系统管理员必须安装 Service Pack 4 (SP 4) 或有关其他信息, 以后访问下列文章编号， 以查看 Microsoft 知识库文章： <br/><br/>260910 如何获取最新 Windows 2000 Service Pack <br/><br/>配置 PassivePortRange 通过注册表编辑器<br/>1 . 启动注册表编辑器 (Regedt 32 .exe)。 <br/>2 . 找到以下注册表项： <br/>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msftpsvc\Parameters\ <br/>3 . 添加名为 &#34; PassivePortRange &#34; （不带引号） 的 REG _ SZ 类型值。<br/>4 . 关闭注册表编辑器。<br/>5 . 重新启动 FTP 服务。<br/><br/>注意 ：FTP 将验证该范围是从 5001 到 65535。]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=484</link>
			<title><![CDATA[IIS FTP的设置 主动模式还是被动模式，如何设置 ]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[技术]]></category>
			<pubDate>Wed,01 Dec 2010 17:40:44 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=484</guid>
		<description><![CDATA[首选被动模式，因为主动模式server要连接client的端口，一般会被client的防火墙阻塞。<br/><br/> <br/><br/>-------------------------在win 2003 中配置被动模式-----------------------<br/><br/>被动模式 FTP 连接 是有时称为到 &#34; <a href="http://www.fovly.com" target="_blank">服务器</a>管理 &#34;, 因为与之一瞬态端口用作数据连接的<a href="http://www.fovly.com" target="_blank">服务器</a>端端口<a href="http://www.fovly.com" target="_blank">服务器</a>响应客户端发出 pasv 命令后,。 由客户端, 数据连接命令发出后<a href="http://www.fovly.com" target="_blank">服务器</a>连接到客户立即使用端口上面控制连接的客户端端口。 <br/>与端口范围 1024 - 65535 内默认模式 Passive - IIS FTP 中随机选择到响应。 要进一步限制这些巨大端口范围, 系统管理员可配置命名 PassivePortRange 元数据库属性关键字， 此属性关键字仅存在于 IIS 6.0, for IIS 5.0 在 Windows 2000， 系统管理员需要安装 Service Pack 4， 在系统注册表中 PassivePortRange 项中添加。 <br/>更改 PassivePortRange for IIS, 执行过程之一下面部分中所述。 <br/>用于 Windows Server 2003 <br/>要启用直接编辑元数据库） <br/>1 . 打开 IIS Microsoft 管理控制台 (MMC)。 <br/>2 . 右击本地计算机节点。 <br/>3 . 选择 属性 。 <br/>4 请确保 启用直接编辑元数据库 复选框。 <br/>通过 ADSUTIL 脚本配置 PassivePortRange b) <br/>1 . 单击 开始 、 运行 ， 键入 cmd, 和然后 确定 。 <br/>2 . 键入 cd Inetpub\AdminScripts， 然后按 Enter。 <br/>3 . 键入以下命令从命令提示符。 <br/>&nbsp;&nbsp;&nbsp;&nbsp;CSCRIPT.exe C:\Inetpub\AdminScripts\adsutil.vbs set /MSFTPSVC/PassivePortRange &#34;5500-5515&#34; <br/>4 重新启动 FTP 服务。 <br/>通过 ADSUTIL 脚本配置时您会看到以下输出： <br/>Microsoft (R) Windows Script Host 版本 5.6 <br/>版权所有 (C) Microsoft Corporation 1996 - 2001。 保留所有权利。. <br/>PassivePortRange (STRING) &#34; 5500-5515 &#34;： <br/>注意：如果开了系统自带的防火墙，必须在例外里添加以上端口<br/><br/> <br/><br/>--------------------------什么是主动，什么是被动，为什么首选被动-------------------------------------------------------------<br/><br/> <br/><br/>FTP 分为两类: <br/>&nbsp;&nbsp;主动FTP(Port FTP)，也就是一般的FTP﹔被动FTP(Port FTP) <br/><br/>主动FTP <br/><br/>主动方式的FTP是这样的：客户端从一个任意的非特权端口N（N&gt;1024）连接到FTP<a href="http://www.fovly.com" target="_blank">服务器</a>的命令端口，也就是21端口。然后客户端开始端口N+1，并发送FTP命令“port N+1”到FTP<a href="http://www.fovly.com" target="_blank">服务器</a>。接着<a href="http://www.fovly.com" target="_blank">服务器</a>会从它自己的数据端口（20）连接到客户端指定的数据端口（N+1）。 <br/><br/>针对FTP<a href="http://www.fovly.com" target="_blank">服务器</a>前面的防火墙来说，必须允许以下通讯才能支持主动方式FTP： <br/><br/>1. 任何端口到FTP<a href="http://www.fovly.com" target="_blank">服务器</a>的21端口 （客户端初始化的连接 S&lt;-C） <br/>2. FTP<a href="http://www.fovly.com" target="_blank">服务器</a>的21端口到大于1024的端口（<a href="http://www.fovly.com" target="_blank">服务器</a>响应客户端的控制端口 S-&gt;C） <br/>3. FTP<a href="http://www.fovly.com" target="_blank">服务器</a>的20端口到大于1024的端口（<a href="http://www.fovly.com" target="_blank">服务器</a>端初始化数据连接到客户端的数据端口 S-&gt;C） <br/>4. 大于1024端口到FTP<a href="http://www.fovly.com" target="_blank">服务器</a>的20端口（客户端发送ACK响应到<a href="http://www.fovly.com" target="_blank">服务器</a>的数据端口 S&lt;-C） <br/>主动方式FTP的主要问题实际上在于客户端。FTP的客户端并没有实际建立一个到<a href="http://www.fovly.com" target="_blank">服务器</a>数据端口的连接，它只是简单的告诉<a href="http://www.fovly.com" target="_blank">服务器</a>自己****的端口号，<a href="http://www.fovly.com" target="_blank">服务器</a>再回来连接客户端这个指定的端口。对于客户端的防火墙来说，这是从外部系统建立到内部客户端的连接，这是通常会被阻塞的。 <br/><br/>防火墙设置的例子 <br/>建置一个防火墙下的FTP server，使用主动FTP(Port FTP) mode：预设的FTP port:21 以及FTP data port:20 <br/>执行以下两行指令，只允许port 21 以及port 20 开放，其它关闭。 <br/>iptables -A INPUT -p tcp -m multiport –dport 21,20 -j ACCEPT <br/>iptables -A INPUT -p tcp -j REJECT –reject-with tcp-reset <br/><br/>FTP软件本身的设置 <br/><br/>以vsFTP为例子. 修改/etc/vsFTPd/vsFTPd.conf <br/>新增底下两行 <br/>listen_port=21 <br/>ftp_data_port=20 <br/><br/>设置错会出现的情况 <br/>FTP client（如cuteFTP）的联机方式不能够选择passive mode，否则无法建立数据的联机。也就是读者可以连上FTP server，但是执行ls、get 等等的指令时，便无法运作。 <br/><br/>被动FTP <br/><br/>为了解决<a href="http://www.fovly.com" target="_blank">服务器</a>发起到客户的连接的问题，人们开发了一种不同的FTP连接方式。这就是所谓的被动方式，或者叫做PASV，当客户端通知<a href="http://www.fovly.com" target="_blank">服务器</a>它处于被动模式时才启用。 <br/><br/>在被动方式FTP中，命令连接和数据连接都由客户端，这样就可以解决从<a href="http://www.fovly.com" target="_blank">服务器</a>到客户端的数据端口的入方向连接被防火墙过滤掉的问题。当开启一个 FTP连接时，客户端打开两个任意的非特权本地端口（N &gt; 1024和N+1）。第一个端口连接<a href="http://www.fovly.com" target="_blank">服务器</a>的21端口，但与主动方式的FTP不同，客户端不会提交PORT命令并允许<a href="http://www.fovly.com" target="_blank">服务器</a>来回连它的数据端口，而是提交 PASV命令。这样做的结果是<a href="http://www.fovly.com" target="_blank">服务器</a>会开启一个任意的非特权端口（P &gt; 1024），并发送PORT P命令给客户端。然后客户端发起从本地端口N+1到<a href="http://www.fovly.com" target="_blank">服务器</a>的端口P的连接用来传送数据。 <br/><br/>对于<a href="http://www.fovly.com" target="_blank">服务器</a>端的防火墙来说，必须允许下面的通讯才能支持被动方式的FTP: <br/><br/>1. 从任何端口到<a href="http://www.fovly.com" target="_blank">服务器</a>的21端口 （客户端初始化的连接 S&lt;-C） <br/>2. <a href="http://www.fovly.com" target="_blank">服务器</a>的21端口到任何大于1024的端口 （<a href="http://www.fovly.com" target="_blank">服务器</a>响应到客户端的控制端口的连接 S-&gt;C） <br/>3. 从任何端口到<a href="http://www.fovly.com" target="_blank">服务器</a>的大于1024端口 （入；客户端初始化数据连接到<a href="http://www.fovly.com" target="_blank">服务器</a>指定的任意端口 S&lt;-C） <br/>4. <a href="http://www.fovly.com" target="_blank">服务器</a>的大于1024端口到远程的大于1024的端口（出；<a href="http://www.fovly.com" target="_blank">服务器</a>发送ACK响应和数据到客户端的数据端口 S-&gt;C） <br/><br/>防火墙设置的例子 <br/>建置一个防火墙下的FTP server，使用被动FTP(Port FTP) mode：FTP port:21 以及FTP data port 从9981 到9986。 <br/>执行以下两行指令，只允许port 21 以及port 9981-9990 开放，其它关闭。 <br/>iptables -A INPUT -p tcp -m multiport –dport 21,9981,9982,9983,9984,9985,9986,9987,9988,9989,9990 -j ACCEPT <br/>iptables -A INPUT -p tcp -j REJECT –reject-with tcp-reset <br/><br/>FTP软件本身的设置 <br/>以vsFTP为例子. 修改/etc/vsFTPd/vsFTPd.conf <br/>新增底下四行 <br/>listen_port=21 <br/>pasv_enable=YES <br/>pasv_min_port=9981 <br/>pasv_max_port=9986 <br/><br/>设置错会出现的情况 <br/>这个例子中，FTP client（如cuteFTP）的联机方式必须选择passive mode，否则无法建立数据的联机。也就是读者可以连上FTP server，但是执行ls,get 等等的指令时，便无法运作。<br/><br/>转自：<a href="http://www.cnblogs.com/gf7788/archive/2009/08/01/1536721.html" target="_blank" rel="external">http://www.cnblogs.com/gf7788/archive/2009/08/01/1536721.html</a>]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=483</link>
			<title><![CDATA[软件开发交付税种]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[经济]]></category>
			<pubDate>Wed,29 Sep 2010 09:09:29 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=483</guid>
		<description><![CDATA[纳税人销售软件产品并随同销售一并收取的软件安装费、维护费、培训费等收入，应按照增值税混合销售的有关<br/><br/>规定征收增值税，并可享受软件产品增值税即征即退政策。 <br/>对软件产品交付使用后，按期或按次收取的维护、技术服务费、培训费等不征收增值税 <br/>纳税人受托开发软件产品，著作权属于受托方的征收增值税，著作权属于委托方或属于双方共同拥有的不征收增<br/><br/>值税。<br/><br/>如果只是经营软件的开发，属于服务业，应在地税缴纳营业税，税率为5%； <br/>2、如果经营的软件的销售，属于商业，应征增值税，税率4%； (如果销售软件的年收入达到180万成为一般纳税<br/><br/>人,税率为17%) <br/>3教育费附加税率是3%；城建税根据企业所在地区不同分为7%（市区）、5%（县城、镇）和1%（其他地区）]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=482</link>
			<title><![CDATA[按税收管辖分类]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[经济]]></category>
			<pubDate>Wed,29 Sep 2010 09:06:13 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=482</guid>
		<description><![CDATA[<span style="font-size:14pt">1.由国家税务局负责征收的税种和项目有14个： </span><br/>(1)增值税；<br/>(2)消费税；<br/>(3)中央企业所得税；<br/>(4)中央与地方联营组成的股份制企业所得税；<br/>(5)银行和非银行金融企业所得税；<br/>(6)海洋石油企业缴纳的所得税、资源税；<br/>(7)铁道、金融保险等行业集中缴纳的营业税、所得税和城建税；<br/>(8)证券交易征收的印花税；<br/>(9)外商投资企业和外国企业所得税；<br/>(10)利息所得税；<br/>(11)车辆购置税；<br/>(12)中央税和共享税附征的教育费附加；<br/>(13)出口退税；<br/>(14)集贸、个体税收。 <br/><span style="font-size:14pt">2.由地方税务局负责征收的税种和项目有22个： </span><br/>(1)营业税；<br/>(2)个人所得税；<br/>(3)地方企业所得税；<br/>(4)资源税；<br/>(5)房产税；<br/>(6)城市房地产税；<br/>(7)城镇土地使用税；<br/>(8)耕地占用税；<br/>(9)车船使用税；<br/>(10)车船使用牌照税；<br/>(11)城市维护建设税；<br/>(12)印花税；<br/>(13)固定资产投资方向调节税；<br/>(14)契税；<br/>(15)屠宰税；<br/>(16)筵席税；<br/>(17)土地增值税；<br/>(18)农业税；<br/>(19)农业特产税；(20)牧业税；<br/>(21)按地方税征收的教育费附加；<br/>(22)集贸、个体税收。 <br/><span style="font-size:14pt">3.由财政部门负责征收的税种和项目有6个： </span><br/>(1)农业税；<br/>(2)农业特产税；<br/>(3)牧业税；<br/>(4)农（牧）业税附加；<br/>(5)耕地占用税；<br/>(6)契税。 <br/><span style="font-size:14pt">4.由海关征收的税种和项目有4个： </span>(1)关税；<br/>(2)船舶吨税；<br/>(3)进口增值税、消费税；<br/>(4)行李和邮递物品进口税。]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=481</link>
			<title><![CDATA[合肥到广州的动车]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[文摘]]></category>
			<pubDate>Fri,10 Sep 2010 16:39:38 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=481</guid>
		<description><![CDATA[合肥到广州的出行推荐：<br/><br/>合肥-广州为：D3003合肥上午10：08发车，12：21到武汉；连接12：50发车的G1043武汉-广州南，期间等待的时间最短。<br/><br/>如果从广州返回合肥，可以选择G1022，广州07：32发车，11：20到武汉；G1024广州07：55发车，11：49到武汉；G1026广州08：15发车，12：03到武汉。而从武汉站返回合肥的动车则为D3024/D3021，12：41在武汉站发车。这3趟车等待的时间较短。具体时刻最好以车站为准。<br/>]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=480</link>
			<title><![CDATA[ArcGIS Server 9.2(.Net)安装与部署(细)]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[GIS]]></category>
			<pubDate>Thu,19 Aug 2010 13:13:51 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=480</guid>
		<description><![CDATA[一、ArcGIS Server安装概述 <br/><br/>ArcGIS Server安装过程包括两个部分：安装（installation）和安装后（post installation）设置。为了完成ArcGIS Server的安装，需要使用Windows操作系统工具手动设置一些步骤： <br/><br/>²&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setup过程需要你决定安装哪些功能部件？setup程序将安装这些部件需要的文件。 <br/><br/>²&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 后安装是用来完成ArcGIS Server安装过程的。在后安装过程中，将依赖于你选择安装的部件，你将能够配置ArcGIS Server和授权ArcGIS Server。配置ArcGIS Server选项将设置需要的ArcGIS Server帐号。授权ArcGIS Server选项将授权ArcGIS Server的使用。<br/><br/>注：安装ArcGIS Server之前必须卸载版本是9.0之前的以下产品：ArcGIS Desktop、ArcInfo Workstation、ArcReader standalone、ArcIMS，否则将出现冲突，不能安装。如果是9.0版本，则不需要卸载。 <br/><br/>二、典型安装 <br/><br/>在这个安装方案中，<a href="http://www.fovly.com" target="_blank">服务器</a>对象管理器（SOM）和<a href="http://www.fovly.com" target="_blank">服务器</a>对象容器（SOC）被安装在一个机器上。这些安装部件是被预先选择在安装程序中。 <br/><br/>安装ArcGIS Server之前，必须准备： <br/><br/>1、 获取ArcGIS Server的授权文件； <br/><br/>2、 确认机器（和操作系统等）满足软件安装要求； <br/><br/>3、 以具有管理员权限的帐号登陆操作系统； <br/><br/>4、 确保TEMP变量被设置为一个有效的目录，并具有写的权限和可用空间； <br/><br/>5、 关闭所有的应用程序。 <br/><br/>6、 插入安装CD，点击setup.exe，安装程序将自动开始安装。 <br/><br/>注： 1、使用.NET开发，必须先安装Visual Studio 2005（将升级IE为6.0）； <br/><br/><br/>详细信息见原文 ：<a href="http://blog.csdn.net/love_rain/archive/2008/05/05/2391799.aspx" target="_blank" rel="external">http://blog.csdn.net/love_rain/archive/2008/05/05/2391799.aspx</a>]]></description>
		</item>
		
			<item>
			<link>http://www.fovly.com/article.asp?id=479</link>
			<title><![CDATA[sql 2005 修改sa密码]]></title>
			<author>yamunchien@qq.com(fovly)</author>
			<category><![CDATA[技术]]></category>
			<pubDate>Fri,06 Aug 2010 09:42:02 +0800</pubDate>
			<guid>http://www.fovly.com/default.asp?id=479</guid>
		<description><![CDATA[执行语句<br/>sp_password @old = null, @new = &#39;sa&#39;,&nbsp;&nbsp;@loginame =&#39;sa&#39; <br/>&nbsp;&nbsp; go<br/><br/>如同执行后提示密码不够强，那么将sa密码设置足够长度如 complex]]></description>
		</item>
		
</channel>
</rss>

