随笔分类 -  The New Knowledge

摘要:使用 StackExchange.Redis 实现.net对Redis集群的调用,方法如下: 1、打开 项目-管理NuGet程序包 2、在打开界面搜索StackExchange.Redis,找到StackExchange.Redis包,点击安装 3、在安装过程中提示以下错误 4、找到StackExc 阅读全文
posted @ 2018-04-02 14:28 byfcumt 阅读(2769) 评论(1) 推荐(1)
摘要:一 、所需软件:Redis、Ruby语言运行环境、Redis的Ruby驱动redis-xxxx.gem、创建Redis集群的工具redis-trib.rb 二 、安装配置redis redis下载地址详见上一节Redis安装部分 集群规划有三个节点的集群,每个节点有一主一备。 把 redis 解压后 阅读全文
posted @ 2018-03-30 14:14 byfcumt 阅读(353) 评论(0) 推荐(0)
摘要:一、下载Windows版Redis 打开https://github.com/MicrosoftArchive/redis/tags地址,找到最新版Redis安装包(Redis-x64-3.2.100.zip),下载解压 二、安装Redis 1、找到解压的Redis目录,按Shift+鼠标右键,在右 阅读全文
posted @ 2018-03-30 09:41 byfcumt 阅读(2962) 评论(0) 推荐(0)
摘要:1. 操作符优化 (a) IN 操作符 从Oracle执行的步骤来分析用IN的SQL与不用IN的SQL有以下区别: ORACLE试图将其转换成多个表的连接,如果转换不成功则先执行IN里面的子查询,再查询外层的表记录,如果转换成功则直接采用多个表的连接方式查询。由此可见用IN的SQL至少多了一个转换的 阅读全文
posted @ 2018-03-29 17:32 byfcumt 阅读(240) 评论(0) 推荐(0)
摘要:1.下载WinDbg安装包(Debuggers And Tools-x64_en-us v6.12.0002.633 AMD64.msi),双击安装 2.从网站http://msdn.microsoft.com/en-us/windows/hardware/gg463028.aspx#Downloa 阅读全文
posted @ 2017-12-20 13:58 byfcumt 阅读(2995) 评论(0) 推荐(0)
摘要:1.运行时出现UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xb4 in position 0: invalid start byte 或 UnicodeDecodeError: ‘utf8’ codec can’t decode byte 阅读全文
posted @ 2017-12-19 14:37 byfcumt 阅读(871) 评论(0) 推荐(0)
摘要:问题如下:1.FileBeat日志报 "dial tcp 127.0.0.1:5544: connectex: No connection could be made because the target machine actively refused it"解决过程:A:修改FileBeat文件 阅读全文
posted @ 2017-12-12 17:43 byfcumt 阅读(1585) 评论(0) 推荐(0)
摘要:参考博客:http://udn.yyuap.com/thread-54591-1-1.html ; https://www.cnblogs.com/yanbinliu/p/6208626.html ; http://blog.csdn.net/wyqlxy/article/details/52622 阅读全文
posted @ 2017-12-11 15:15 byfcumt 阅读(2004) 评论(0) 推荐(0)
摘要:基本语法: Linq:var result=from t in table order by sort ascending/descending select t; Lambda:var result=table.OrderBy/OrderByDescending(a => a.sort). 1.获 阅读全文
posted @ 2017-10-12 15:27 byfcumt 阅读(248) 评论(0) 推荐(0)
摘要:select number from master..spt_values where type='P' and number<24 阅读全文
posted @ 2017-08-04 20:31 byfcumt 阅读(160) 评论(0) 推荐(0)
摘要:2.176544保留两位小数 1.select Convert(decimal(18,2),2.176544) 结果:2.18 2.select Round(2.176544,2) 结果:2.180000 由此可见Convert转换效果更加完美! 阅读全文
posted @ 2017-06-21 17:10 byfcumt 阅读(56902) 评论(0) 推荐(0)
摘要:<html> <head> <title>页面停留时间</title> </head> <body onload="init(); window.setTimeout('show_secs()',1);" > <script language="javascript"> var ap_name = 阅读全文
posted @ 2017-06-21 10:11 byfcumt 阅读(2073) 评论(0) 推荐(0)
摘要:业务场景:Winform操作系统盘文件夹时进行文件的读写时,会需要管理员权限打开文件。 解决方案: 在项目文件中找到app.manifest文件打开。 替换requestedExecutionLevel节点level为requireAdministrator,重新编译即可。 如何找到app.mani 阅读全文
posted @ 2017-06-14 16:16 byfcumt 阅读(538) 评论(0) 推荐(0)
摘要:场景:查询人员指定年月工作量信息 呈现效果: 分析: 1.行转列 2.查询当前日期所在月份所有日期 3.游标处理数据 4.对动态列临时表进行汇总查询 注意:对于临时表,查询需加前缀 tempdb 阅读全文
posted @ 2017-06-01 16:04 byfcumt 阅读(1873) 评论(0) 推荐(0)
摘要:注册地址:http://learn.flexerasoftware.com/content/IS-EVAL-InstallShield-Limited-Edition-Visual-Studio 火狐打开网址后,按F12打开调试工具:输入以下内容,回车 var div=document.getEle 阅读全文
posted @ 2017-05-27 14:41 byfcumt 阅读(544) 评论(0) 推荐(0)
摘要:针对Winform程序,介绍两种常用打包方式:ClickOnce和Windows Installer 应用程序如下: 二、Windows Installer发布 1.新建项目 创建后视图 第一步: 应用信息 Application Information要设置程序在安装时显示的有关程序的信息,如程序 阅读全文
posted @ 2017-05-23 16:39 byfcumt 阅读(1412) 评论(0) 推荐(0)
摘要:针对Winform程序,介绍两种常用打包方式:ClickOnce和Windows Installer 应用程序如下: 一、ClickOnce发布 1.找到需要发布的项目文件,右击,从弹出的快捷菜单中找到【属性】,点击打开属性窗口;找到图中图标栏目,更换图标。 2.在左边栏找到【签名】栏目,勾选【为C 阅读全文
posted @ 2017-05-23 16:22 byfcumt 阅读(1388) 评论(0) 推荐(0)
摘要:Global.asax界面添加如下方法: 阅读全文
posted @ 2017-05-12 17:44 byfcumt 阅读(2228) 评论(0) 推荐(0)
摘要:1.配置Ibaties首先在DLL引用中添加Ibaties相关引用:IBatisNet.Common.dll;IBatisNet.Common.Logging.Log4Net.dll;IBatisNet.DataMapper.dll 2.添加providers.config、sqlmap.confi 阅读全文
posted @ 2017-05-02 16:48 byfcumt 阅读(230) 评论(0) 推荐(0)