<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[My 部落格]]></title><description><![CDATA[C#、页游]]></description><link>https://blog.csdn.net/chenlongit</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; chenlongit]]></copyright><item><title><![CDATA[c#去掉字符串最后一个字符方法总结]]></title><link>https://blog.csdn.net/chenlongit/article/details/7608348</link><guid>https://blog.csdn.net/chenlongit/article/details/7608348</guid><author>chenlongit</author><pubDate>Mon, 28 May 2012 10:26:49 +0800</pubDate><description><![CDATA[有一数组；转换为字符串后为 aaa|bbb|ccc|ddd|

现要去掉最后一个|

第一种方法：

语句为：str1=aaa|bbb|ccc|ddd|

str=str1.substring(0,lastindecof("|"));

respone.write(str);

outprint:

========================

aaa|bbb]]></description><category></category></item><item><title><![CDATA[排名SQL]]></title><link>https://blog.csdn.net/chenlongit/article/details/7278587</link><guid>https://blog.csdn.net/chenlongit/article/details/7278587</guid><author>chenlongit</author><pubDate>Tue, 21 Feb 2012 11:00:36 +0800</pubDate><description><![CDATA[--排名SQL
select row_number() over(order by usergold desc) as seq,* from (select top 10 * from tb_user_inst order by usergold desc) 
as temp]]></description><category></category></item><item><title><![CDATA[分页存储过程]]></title><link>https://blog.csdn.net/chenlongit/article/details/7257752</link><guid>https://blog.csdn.net/chenlongit/article/details/7257752</guid><author>chenlongit</author><pubDate>Tue, 14 Feb 2012 13:20:45 +0800</pubDate><description><![CDATA[--分页存储过程
  ALTER PROCEDURE [dbo].[pagination]
@tablename varchar(255),
@collist varchar(500),
@primarykey varchar(100),
@PageSize INT, 
@PageIndex INT, 
@strWhere varchar(500) -- 查询条件(注意: 不要加wh]]></description><category></category></item><item><title><![CDATA[关于调用新浪支付接口]]></title><link>https://blog.csdn.net/chenlongit/article/details/7164747</link><guid>https://blog.csdn.net/chenlongit/article/details/7164747</guid><author>chenlongit</author><pubDate>Fri, 30 Dec 2011 13:37:23 +0800</pubDate><description><![CDATA[最近公司要做一个新浪支付接口的应用。
首先你得确认已成功申请到应用appkey 及appSecret。
要想调用新浪的支付接口还得申请一个支付key。这些都准备完毕了。接下来调用新浪官方的接口


接口一：get_token接口




用户发起支付时，应用开发者调用get_token接口，获取支付token，开放平台验证应用相关信息，验证成后，返回token值。]]></description><category></category></item><item><title><![CDATA[网页游戏中随机概率设计探讨]]></title><link>https://blog.csdn.net/chenlongit/article/details/7028257</link><guid>https://blog.csdn.net/chenlongit/article/details/7028257</guid><author>chenlongit</author><pubDate>Wed, 30 Nov 2011 18:29:20 +0800</pubDate><description><![CDATA[公司最近的游戏发展在细节上遇到了问题，集中在概率上。

 

例如，我们设定游戏关卡掉落装备的概率是1%，则理论上攻打100次就会有1次掉落装备。

但是，实际上，不可能每个玩家都能在100次内都会获取到装备。

如果用了真实的概率，会严重打击玩家积极性。因此网页游戏中不可能设置真实的概率。必须使用“假概率”。

 

同样用上面关卡的例子，一个关卡的暴率是1%，则这个关卡]]></description><category></category></item><item><title><![CDATA[关于源代码存放于SourceAnywhere For Vss  操作步骤]]></title><link>https://blog.csdn.net/chenlongit/article/details/6942905</link><guid>https://blog.csdn.net/chenlongit/article/details/6942905</guid><author>chenlongit</author><pubDate>Mon, 07 Nov 2011 11:57:07 +0800</pubDate><description><![CDATA[1，打开vs工具 

接下来

连上source anywhere 
点ok 搞定。]]></description><category></category></item><item><title><![CDATA[传智播客WP7模拟器发布|支持XP系统]]></title><link>https://blog.csdn.net/chenlongit/article/details/6387903</link><guid>https://blog.csdn.net/chenlongit/article/details/6387903</guid><author>chenlongit</author><pubDate>Tue, 03 May 2011 18:44:00 +0800</pubDate><description><![CDATA[微软MIX11大会上微软发布的Mango的最新特性让关注移动的开发人激动不已：增加中文支持、多任务、直接操作设备（比如摄像头）API、Socket、支持SQLCE数据库、指南针API、陀螺仪API、访问日程安排的API、内置IE支持HTML5、XNA和Silverlight混合使用……这些特性大大扩大了扩展应用的能力。有了中文支持华人终于可以舒服的用上WP7了，有了多任务闹钟程序不用再必须显示在前端了，开发人员可以直接读取摄像头这样实景增强类应用在Windows Phone上就能轻松实现了，有了Socket]]></description><category></category></item><item><title><![CDATA[虚拟主机中，不修改IIS设置，在IIS6下运行MVC架构的网站 ]]></title><link>https://blog.csdn.net/chenlongit/article/details/6326287</link><guid>https://blog.csdn.net/chenlongit/article/details/6326287</guid><author>chenlongit</author><pubDate>Fri, 15 Apr 2011 17:40:00 +0800</pubDate><description><![CDATA[<br />看本文的人必须要有MVC基础，所以很多名词我就不解释了<br />在老版本的IIS中架设MVC有1个条件：必须安装 Framwork 3.5，SP1不是必须的。所以如果你的虚拟主机是2.0的，那就免谈了。现在市面上一般都升级到3.5了<br /><br /><br />如果你不具备这个最简单的条件，那你的服务器也就根本不能使用MVC架构的网站了<br />好了，接下来介绍下我们要做的几个步骤<br /><br /><br />1、复制几个缺失的运行库到bin文件夹<br />老版本不能运行主要原]]></description><category></category></item><item><title><![CDATA[关于程序输出音标及个别音节显示乱码的问题]]></title><link>https://blog.csdn.net/chenlongit/article/details/5988135</link><guid>https://blog.csdn.net/chenlongit/article/details/5988135</guid><author>chenlongit</author><pubDate>Thu, 04 Nov 2010 20:19:00 +0800</pubDate><description><![CDATA[关于程序输出音标及个别音节显示乱码的问题。只要在输出时的标签上将其style = "font-family:Arial Unicode MS"即可]]></description><category></category></item><item><title><![CDATA[MyEclipse安装配置Flex 3 插件及新建Flex项目演示]]></title><link>https://blog.csdn.net/chenlongit/article/details/5910125</link><guid>https://blog.csdn.net/chenlongit/article/details/5910125</guid><author>chenlongit</author><pubDate>Mon, 27 Sep 2010 17:15:00 +0800</pubDate><description><![CDATA[一、准备工作：所需要的软件：Tomcat 5： http://tomcat.apache.org/FlexBuilder3 beta2 插件版: FB3_WWEJ_Plugin Eclipse 3.3 : www.eclipse.org   或者 MyEclipse 6.0：http://www.myeclipseide.com/Blazeds.war：http://flexorg.wip3.adobe.com/blazeds/3.0.x/milestone/3978/blazeds-bin-3.2.0.3]]></description><category></category></item><item><title><![CDATA[SQL随机查询数据库]]></title><link>https://blog.csdn.net/chenlongit/article/details/5886961</link><guid>https://blog.csdn.net/chenlongit/article/details/5886961</guid><author>chenlongit</author><pubDate>Wed, 15 Sep 2010 21:32:00 +0800</pubDate><description><![CDATA[关键字: sql random() rand() newid() 在不同的数据库中完全可以用SQL语句来实现随机选定不同记录. 把不同数据库实现的语句粘在这里,以供参考. Select a random row with MySQL:SELECT column FROM table ORDER BY RAND() LIMIT 1SELECT column FROM table ORDER BY RANDOM() LIMIT 1Select a random row with PostgreSQL:SELEC]]></description><category></category></item><item><title><![CDATA[网页音乐播放器代码]]></title><link>https://blog.csdn.net/chenlongit/article/details/5798083</link><guid>https://blog.csdn.net/chenlongit/article/details/5798083</guid><author>chenlongit</author><pubDate>Mon, 09 Aug 2010 10:12:00 +0800</pubDate><description><![CDATA[<br /><object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" width="286" height="225">  <br /><param name="AudioStream" value="-1">  <br /><param name="AutoSize" value="-1">  <br /><!--是否自动调整播放大小-->  <br /><param name="AutoStart" va]]></description><category></category></item><item><title><![CDATA[JSP彩色验证码]]></title><link>https://blog.csdn.net/chenlongit/article/details/5797386</link><guid>https://blog.csdn.net/chenlongit/article/details/5797386</guid><author>chenlongit</author><pubDate>Sun, 08 Aug 2010 21:23:00 +0800</pubDate><description><![CDATA[JSP彩色验证码2007-08-01 15:02<br />image.jsp<br /><%@ page contentType="image/jpeg" pageEncoding="gb2312"<br />import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*"%><br /><%!Color getRandColor(int fc, int bc) {//给定范围获得随机颜色<br />    Random random = n]]></description><category></category></item><item><title><![CDATA[JSP彩色验证码]]></title><link>https://blog.csdn.net/chenlongit/article/details/5797385</link><guid>https://blog.csdn.net/chenlongit/article/details/5797385</guid><author>chenlongit</author><pubDate>Sun, 08 Aug 2010 21:23:00 +0800</pubDate><description><![CDATA[JSP彩色验证码2007-08-01 15:02image.jspimport="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*"%>    Random random = new Random();    if (fc > 255)     fc = 255;    if (bc > 255)     bc = 255;    int r = fc + random.nextInt(bc - fc);    int g = fc + rand]]></description><category></category></item><item><title><![CDATA[搭建Eclipse+MyEclipse开发环境]]></title><link>https://blog.csdn.net/chenlongit/article/details/5751621</link><guid>https://blog.csdn.net/chenlongit/article/details/5751621</guid><author>chenlongit</author><pubDate>Wed, 21 Jul 2010 10:18:00 +0800</pubDate><description><![CDATA[一、安装JDK　　首先下载JDK 5.0（JDK 5.0的下载页面为：http://java.sun.com/j2se/1.5.0/download.jsp）； 然后运行JDK 5.0安装程序jdk-1_5_0_06-windows-i586-p.exe，安装过程中所有选项保持默认；最后配置JDK的环境变量：在“我的电脑”上点右键—>“属性”—>“高级”—> “环境变量(N)”。　　新建系统变量JAVA_HOME：C:/Program Files/Java/jdk1.5.0_06；　　新建系统变量CLASS]]></description><category></category></item><item><title><![CDATA[MyEclipse6.5 完美汉化及下载地址]]></title><link>https://blog.csdn.net/chenlongit/article/details/5751122</link><guid>https://blog.csdn.net/chenlongit/article/details/5751122</guid><author>chenlongit</author><pubDate>Tue, 20 Jul 2010 23:42:00 +0800</pubDate><description><![CDATA[1.先去下载MyEclipse6.5 GA     MyEclipse6.5 GA 版下载地址：http://downloads.myeclipseide.com/downloads/products/eworkbench/6.5.0GA/MyEclipse_6.5.0GA_E3.3.2_Installer_A.exe       2.汉化：（假设我的安装路径是：D:/Program Files/MyEclipse 6.5）   最麻烦的地方到了，慢慢来……   首先，运行目录<D:/Program Fil]]></description><category></category></item><item><title><![CDATA[鼠标样式设置]]></title><link>https://blog.csdn.net/chenlongit/article/details/5736416</link><guid>https://blog.csdn.net/chenlongit/article/details/5736416</guid><author>chenlongit</author><pubDate>Thu, 15 Jul 2010 10:08:00 +0800</pubDate><description><![CDATA[ 查看文章  设置鼠标样式及背景图片2009-10-24 23:15<br />http://hi.baidu.com/yjqwyc60/blog/item/afe1ca5114dfa22742a75bbc.html设置鼠标样式及背景图片2007-11-16 22:22<br />对于空间的CSS设置，我只算个新手，有朋友要求我写一下鼠标样式和<br />背景图片的设置，在此把自己的小小经验分享给和我一样的新手！多多提意见<br />啊！<br />一   修改鼠标样式<br />1 设置页面内鼠标的样式<]]></description><category></category></item><item><title><![CDATA[JavaScript下拉菜单]]></title><link>https://blog.csdn.net/chenlongit/article/details/4448993</link><guid>https://blog.csdn.net/chenlongit/article/details/4448993</guid><author>chenlongit</author><pubDate>Sat, 15 Aug 2009 11:13:00 +0800</pubDate><description><![CDATA[http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/1999/xhtml">        JavaScript下拉菜单            * {            padding:0;            margin:0;        }        body {            font]]></description><category></category></item><item><title><![CDATA[js跳转页面方法大全]]></title><link>https://blog.csdn.net/chenlongit/article/details/4417594</link><guid>https://blog.csdn.net/chenlongit/article/details/4417594</guid><author>chenlongit</author><pubDate>Thu, 06 Aug 2009 11:02:00 +0800</pubDate><description><![CDATA[js跳转页面方法大全3布丁足迹;秒后自动跳转……   function countDown(secs){   tiao.innerText=secs;   if(--secs>0)    setTimeout("countDown("+secs+")",1000);   }   countDown(3);   按钮式：　　　　链接式：　　返回上一步　　">返回上一步　　]]></description><category></category></item><item><title><![CDATA[JS应用之禁止抓屏、复制、打印]]></title><link>https://blog.csdn.net/chenlongit/article/details/4411645</link><guid>https://blog.csdn.net/chenlongit/article/details/4411645</guid><author>chenlongit</author><pubDate>Wed, 05 Aug 2009 13:39:00 +0800</pubDate><description><![CDATA[项目需要禁止抓屏、复制、打印的要求，复制、打印做起来可能顺手一点网上各种各样的脚本俯首皆是。但抓屏怎么禁止？PrintScreen是一个特殊的键，它是没有keyCode的键，所以onkeydown变得毫无用处。不过换一种思路的话可会更好，我们从粘贴板着手采取曲线救国策略。代码如下：  window.setInterval("clipboardData.setData(text,)",100]]></description><category></category></item></channel></rss>