上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 开发工具: MyEclipse 10.0项目目录:[http://www.cnblogs.com/rhythmK/]1.新建项目:File->New->Web Project 项目名: SpringMVC32.添加 Spring 3.0 Core Libraries 以及 Spring 3.0 Web Libraries 包/webroot/Index.jsp:<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%><!DOC 阅读全文
posted @ 2013-01-31 21:57 Rhythmk 阅读(754) 评论(0) 推荐(0)
摘要: 配置消息队列:1 控制面板\所有控制面板项\程序和功能->打开或关闭Windows功能。安装MSMQ http://www.cnblogs.com/rhythmK/2. 传统消息队列开发<单机模式>。 using System.Messaging; 2.1 接收端: static void ReadMessage() { string queueName = @".\Private$\SampleQueue"; MessageQueue mq = new MessageQueue(queueName); mq.Formatter = new XmlMess 阅读全文
posted @ 2013-01-28 14:21 Rhythmk 阅读(305) 评论(0) 推荐(0)
摘要: package App1.Rhythmk.com;import java.awt.List;import java.awt.font.GlyphJustificationInfo;import com.google.gson.Gson;/* 准备条件: 下载:https://code.google.com/p/google-gson/ */public class JSON序列化 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated ... 阅读全文
posted @ 2013-01-26 22:48 Rhythmk 阅读(271) 评论(0) 推荐(0)
摘要: 1. 下载 如:mysql-connector-java-5.1.22.zip 解压获取 jar 连接包。2. 引入项目: 右键项目名--->Build Path—>Configure Build Path... 选择 Libraries 然后再选择 右边 第二个选项Add External Jars 导入 mysql -.jar3. 新建数据表: CREATE TABLE `user` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(32) NOT NULL, `Age` int(11) NOT... 阅读全文
posted @ 2013-01-26 17:26 Rhythmk 阅读(260) 评论(0) 推荐(0)
摘要: 1. 下载JDK 如:jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe 下一步。。下一步安装即可。2. 配置系统变量:右击“我的电脑”--选择“属性”--选择“高级”--点击“环境变量”在“系统变量(S)”中新建:JAVA_HOME:C:\Program Files\Java\jdk1.6新建:CLASS_PATH:.;%JAVA_HOME%\lib编辑:PATH:在最前面加上%JAVA_HOME%\bin;3. 运行 CMD 命令 java -version 检查是否安装成功。4. 下载MyEclipse 目前我安装的是mye... 阅读全文
posted @ 2013-01-26 17:22 Rhythmk 阅读(377) 评论(3) 推荐(0)
摘要: function flashChecker() { var hasFlash = 0; //是否安装了flash var flashVersion = 0; //flash版本 if (document.all) { var swf = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); if (swf) { hasFlash = 1; ... 阅读全文
posted @ 2013-01-19 16:43 Rhythmk 阅读(337) 评论(0) 推荐(0)
摘要: 1.Linux 下 MYSQL 编译源码安装操作来源:http://blog.chinaunix.net/uid-28543558-id-3467864.html1、服务器系统: CentOS 系统, 我的系统是最小化安装有的软件包没有需要在安装2、安装需要软件包:yum install compat-libstdc++ cpp gcc libstdc++-devel gcc-c++ -y3、下载 MYSQL 源包地址: http://www.mysql.com/downloads/mysql/#downloads4、解压下载文件:tar zxvf mysql-5.1.44.tar.gz5、进 阅读全文
posted @ 2013-01-15 23:23 Rhythmk 阅读(329) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Web.Mvc;namespace Rhythmk.... 阅读全文
posted @ 2013-01-10 21:45 Rhythmk 阅读(3488) 评论(0) 推荐(0)
摘要: 如大家要转载,请保留本人的版权: /* *Description:在asp.NET代码中同时post普通表单字段和文件表单字段数据到指定的服务器URL。 *Auther:chongchong2008-天真的好蓝啊 *MSN:chongchong2008@msn.com *QQ:154674958 *Blog:chongchong2008.cnblogs.com *Dates:2012-02-28 *Copyright:ChongChong2008 YiChang HuBei China */using System;using System.Collections;using System.C 阅读全文
posted @ 2013-01-09 21:12 Rhythmk 阅读(288) 评论(0) 推荐(0)
摘要: <a href="#" onClick="parent.contentFrame.print();">打印Iframe</a><iframe name="contentFrame" style="width:640px;height:624px;margin:20px auto;" src="2.html" id="contentFrame" ></iframe> 兼容: IE FireFox 谷歌浏览器 阅读全文
posted @ 2012-12-09 11:30 Rhythmk 阅读(436) 评论(0) 推荐(0)
摘要: //response.setHeader("Content-disposition","inline; filename=test1.doc"); //线上浏览方式,用IE打开 response.setHeader("Content-disposition", "attachment; filename=test1.doc");//下载方式,下载,不用浏览器打开 Response.ContentType = "application/octet-stream"; Response.AddHead 阅读全文
posted @ 2012-12-06 13:57 Rhythmk 阅读(230) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Text;using System.Data;using System.Reflection;using System.Collections;namespace Rhythmk.Cnblogs{ // http://t.qq.com/wangkyx rhythmk cnblogs pu... 阅读全文
posted @ 2012-11-22 22:39 Rhythmk 阅读(245) 评论(0) 推荐(0)
摘要: # yum -y install mysql # yum install mysql-server# yum install mysql-devel# chgrp -R mysql /var/lib/mysql# chmod -R 770 /var/lib/mysql# service mysqld start# mysql -u root -ppassword //进入mysql控制台# mysql>use mysql;# mysql>update user set host = '%' where user = 'root'; //这个命令执行错 阅读全文
posted @ 2012-11-02 18:20 Rhythmk 阅读(330) 评论(1) 推荐(0)
摘要: # yum -y install mysql # yum install mysql-server# yum install mysql-devel# chgrp -R mysql /var/lib/mysql# chmod -R 770 /var/lib/mysql# service mysqld start# mysql -u root -ppassword //进入mysql控制台# mysql>use mysql;# mysql>update user set host = '%' where user = 'root'; //这个命令执行错 阅读全文
posted @ 2012-11-02 18:20 Rhythmk 阅读(140) 评论(1) 推荐(0)
摘要: 系统版本:[root@localhost~]#lsb_release-aLSBVersion: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributorID: CentOSDescription: CentOSrelease5.5(Final)Release: 5.5Codename: Final1.下载sphinx[root@localhost~]#cd/usr/local/srcwgethttp://www.sphinxsearch.com/downloads/sphinx-0.9.9.t 阅读全文
posted @ 2012-10-24 11:58 Rhythmk 阅读(2562) 评论(1) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.Linq;using System.ServiceProcess;using System.Text;using System.Threading.Tasks;using System.IO;using System.Timers;namespace Rhyhtmk.WindowsService{ /* @ blogs: ... 阅读全文
posted @ 2012-10-15 16:36 Rhythmk 阅读(258) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>jQuery中终止Ajax请求</title><meta http-equiv="Content-Type&q 阅读全文
posted @ 2012-10-09 10:13 Rhythmk 阅读(7168) 评论(0) 推荐(0)
摘要: BookmarksBookmarksWCFWCF理论到实践系列C#ASP.NETSQLmysql ndb集群备份数据库和还原数据库的方法VS测试VS2010自动化测试ORMSmark分布式分布式文件系统及其部署测试如何在LoadRunner测试场景中添加资源监控器MSDN 压力测试MVCASP.NET MVCPro ASP.NET MVC3.0银光Silverlight学习清晰SilverlightMSDN SilverlightWindowPhonewp7有约一起学WP7[MSDN]WP7 开发Silverlight for Windows Phone开发在看起来不错Nokia 文档Wind 阅读全文
posted @ 2012-09-27 10:04 Rhythmk 阅读(175) 评论(0) 推荐(0)
摘要: 一个cron表达式有至少6个(也可能7个)有空格分隔的时间元素。按顺序依次为秒(0~59)分钟(0~59)小时(0~23)天(月)(0~31,但是你需要考虑你月的天数)月(0~11)天(星期)(1~7 1=SUN 或 SUN,MON,TUE,WED,THU,FRI,SAT)7.年份(1970-2099)其中每个元素可以是一个值(如6),一个连续区间(9-12),一个间隔时间(8-18/4)(/表示每隔4小时),一个列表(1,3,5),通配符。由于"月份中的日期"和"星期中的日期"这两个元素互斥的,必须要对其中一个设置?.0 0 10,14,16 * * 阅读全文
posted @ 2012-09-25 14:56 Rhythmk 阅读(367) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace MoreThread{ internal class Program { private static void Main(string[] args) { TestParallelFor t1 = new TestParallelFor(); t1.DoSomeThing(); ... 阅读全文
posted @ 2012-09-24 17:43 Rhythmk 阅读(187) 评论(0) 推荐(0)
摘要: public object Clone() { BinaryFormatter Formatter = new BinaryFormatter(null, new StreamingContext(StreamingContextStates.Clone)); MemoryStream stream = new MemoryStream(); Formatter.Serialize(stream, this); stream.Position = 0; object ... 阅读全文
posted @ 2012-09-22 14:02 Rhythmk 阅读(179) 评论(0) 推荐(0)
摘要: public static class ControllerExtensions { private static readonly Regex m_regex = new Regex(@"(?<=[^])\t{2,}|(?<=[>])\s{2,}(?=[<])|(?<=[>])\s{2,11}(?=[<])|(?=[\n])\s{2,}"); public static string RenderView(this Controller controller, string viewName, object model, stri 阅读全文
posted @ 2012-07-02 14:23 Rhythmk 阅读(1382) 评论(0) 推荐(0)
摘要: C:\Users\Administrator>net use 会记录新的网络连接。列表是空的。C:\Users\Administrator>net use \\192.168.1.61\ipc$ wangkun /user:wangkun 命令成功完成。 阅读全文
posted @ 2012-06-04 09:18 Rhythmk 阅读(245) 评论(0) 推荐(0)
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;namespaceParallelComputing{publicclassMoreThread{privateclassManualResetEventObj{publicManualResetEventresetEvent{get;set;}publicObjectobj{get;set;}}privateList<int>list;ManualResetEventauto;lon 阅读全文
posted @ 2012-06-01 11:28 Rhythmk 阅读(167) 评论(2) 推荐(0)
摘要: ///<summary>///通过单利模式实现数据程序缓存///DataInstanct.GetInstan().Add(0)[写入数据]///DataInstanct.GetInstan().Clear()[清空数据存储]///</summary>publicclassDataInstance{///<summary>///数据仓库///</summary>publicstaticList<int>dataWarehouse=newList<int>();privatereadonlystaticDataInstanct 阅读全文
posted @ 2012-05-31 17:05 Rhythmk 阅读(220) 评论(0) 推荐(0)
摘要: 1.Get请求cs:privatevoidDownload(){stringurl="http://localhost:13936/GetData.aspx?id=getwangk";WebClientclient=newWebClient();client.DownloadStringCompleted+=newDownloadStringCompletedEventHandler(DownloadBind);client.DownloadStringAsync(newUri(url));}privatevoidDownloadBind(objectsender,Down 阅读全文
posted @ 2012-05-31 11:17 Rhythmk 阅读(2117) 评论(2) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2012-05-27 17:54 Rhythmk 阅读(7) 评论(0) 推荐(0)
摘要: 代码格式化工具 CodeMaid 阅读全文
posted @ 2012-05-19 17:11 Rhythmk 阅读(515) 评论(0) 推荐(0)
摘要: //性能SETSTATISTICSIOon;SETSTATISTICSTIMEon;//Mysql 切分字符串CREATEPROCEDUREproc_split(inputstringVARCHAR(1000),delimCHAR(1))BEGINDECLAREstrlenINT;DECLARElast_indexINT;DECLAREcur_indexINT;DECLAREcur_charVARCHAR(200);DECLARElenINT;SETcur_index=1;SETlast_index=0;SETstrlen=LENGTH(inputstring);DROPTABLEIFEXIS 阅读全文
posted @ 2012-05-14 10:21 Rhythmk 阅读(550) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/zhangking/article/details/5670070 MySQL 群集是 MySQL 适合于分布式计算环境的高可用、高冗余版本。它采用了 NDB Cluster 存储引擎,允许在 1 个群集中运行多个 MySQL 服务器。在 MySQL 5.0 及以上的二进制版本中,以及与最新的 Linux 版本兼容的 RPM 包中提供了该存储引擎。 MySQL 群集是一种技术,该技术允许在无共享的系统中部署“内存中”和“磁盘中”数据库的 Cluster 。通过无共享体系结构,系统能够使用廉价的硬件,而且对软硬件无特殊要求。此外,由于每个组件有自... 阅读全文
posted @ 2012-05-10 11:18 Rhythmk 阅读(12556) 评论(3) 推荐(4)
摘要: EventLoglog=newEventLog("Wodongni.Com");//首先应判断日志来源是否存在,一个日志来源只能同时与一个事件绑定sif(!EventLog.SourceExists("NewApplication1"))EventLog.CreateEventSource("New... 阅读全文
posted @ 2012-05-09 13:06 Rhythmk 阅读(248) 评论(0) 推荐(0)
摘要: publicstaticDataTableToDataTable<T>(thisIList<T>data){PropertyDescriptorCollectionprops=TypeDescriptor.GetProperties(typeof(T));DataTabletable=newDataTable();for(inti=0;i<props.Count;i++){PropertyDescriptorprop=props[i];table.Columns.Add(prop.Name,prop.PropertyType);}object[]values=ne 阅读全文
posted @ 2012-05-08 17:23 Rhythmk 阅读(348) 评论(0) 推荐(0)
摘要: 搜索 VersionControl.configwindows 7 路径如下:C:\Users\Administrator\AppData\Local\Microsoft\Team Foundation\3.0\Cache\VersionControl.config删除其中无用节点 .大致如下: <MappedPaths> <MappedPath path="项目路径" /> </MappedPaths> 阅读全文
posted @ 2012-05-08 09:29 Rhythmk 阅读(1073) 评论(0) 推荐(0)
摘要: 第一步 : 实现 IHttpHandler 接口 namespaceWebHotlinkProtection{publicclassHotlinkProtectionHandler:IHttpHandler{publicboolIsReusable{get{thrownewNotImplementedException();}}publicvoidProcessRequest(HttpContextcontext){//监听是否本站发起的请求if(!context.Request.UrlReferrer.Host.StartsWith("localhost")){conte 阅读全文
posted @ 2012-04-29 15:05 Rhythmk 阅读(451) 评论(0) 推荐(0)
摘要: Visual Studio 2010 单元测试共分七个部分:普通单元测试、顺序单元测试、压力测试,Generic测试、数据库测试、UI界面测试和Web性能测试。Visual Studio 2010 单元测试之一---普通单元测试:http://blog.csdn.net/tjvictor/archive/2011/02/09/6175362.aspxVisual Studio 2010 单元测试之二---顺序单元测试:http://blog.csdn.net/tjvictor/archive/2011/02/09/6175472.aspxVisual Studio 2010 单元测试之三--- 阅读全文
posted @ 2012-04-20 09:52 Rhythmk 阅读(20080) 评论(1) 推荐(8)
摘要: 服务-> SQL SERVER (MSSQLSERVER) 启动 如果无法启动 则选择该服务属性。 登录选项卡 ->设置成本地系统账户然后启动即可. 阅读全文
posted @ 2012-04-13 17:29 Rhythmk 阅读(952) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/kaixun001/archive/2011/10/27/2226589.html环境: 2台电脑,操作系统均为windows server 2003,单网卡。2台电脑经路由器连接,路由器连猫拨号上网。路由地址:192.168.0.1,在路由器设置80端口映射到192.168.0.10 电脑A手动设置ip 192.168.0.100,电脑B手动设置ip 192.168.0.101 每台电脑上建一测试网站。网站的ip地址绑定为192.168.0.10(与后面设置的集群ip相同) A电脑上网站放上一个内容为192.168.0.100 的... 阅读全文
posted @ 2012-03-31 15:25 Rhythmk 阅读(259) 评论(0) 推荐(0)
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Tmpl</title><meta name="keywords" content="Tmpl" /><scr 阅读全文
posted @ 2012-03-25 22:28 Rhythmk 阅读(3688) 评论(1) 推荐(0)
摘要: 环境: 2台电脑,操作系统均为windows server 2003,单网卡。2台电脑经路由器连接,路由器连猫拨号上网。路由地址:192.168.0.1,在路由器设置80端口映射到192.168.0.10 电脑A手动设置ip 192.168.0.100,电脑B手动设置ip 192.168.0.101 每台电脑上建一测试网站。网站的ip地址绑定为192.168.0.10(与后面设置的集群ip相同) A电脑上网站放上一个内容为192.168.0.100 的index.html B电脑上网站放上一个内容为192.168.0.101 的index.html第一步,先设置电脑A确认后... 阅读全文
posted @ 2012-03-25 20:49 Rhythmk 阅读(215) 评论(0) 推荐(0)
摘要: MySQL 集群http://database.51cto.com/art/201008/218326.htmhttp://2878502.blog.51cto.com/2868502/523669使用Sqlserver事务发布实现数据同步http://www.cnblogs.com/xumingxiang/archive/2012/02/25/2367870.html 阅读全文
posted @ 2012-03-22 12:12 Rhythmk 阅读(137) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页
Rhythmk 个人笔记