自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(69)
  • 收藏
  • 关注

原创 centos7 安装supervisor遇到的几个坑

安装 pip install supervisor (需要安装python)1.初始化配置文件 echo_supervisord_conf 报错原因 需要手动创建目录mkdir /etc/supervisorecho_supervisord_conf > /etc/supervisor/supervisord.conf解决方案 手动创建目录以及配置2.supervisor...

2019-07-08 17:24:44 8741 1

翻译 Web Api 调用时出现405错误解决方案

Web Api 调用时出现405错误之前可以调用成功,说明配置没问题说明: .net core WebApi 在配置终结点时adress不需要指定svc,但是wcf服务需要错误提示:System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (405) Method ...

2019-07-08 16:37:43 7051

原创 [已解决]NPOI Wrong Local header signature: 0x0;Your InputStream was neither an OLE2 stream, nor an OOXM

问题描述:1.xlsx文件 用new XSSFWorkbook(stream);报错Wrong Local header signature: 0x0;2.xlsx文件WorkbookFactory.Create(stream)报错Your InputStream was neither an OLE2 stream, nor an OOXM问题原因:多次读文件至stream 而stream.Po...

2018-03-13 16:57:37 17935 2

原创 Elastcisearch记录

ES教程介绍:Elastcisearch 是分布式的 文档 存储。实时 JSON文档在 Elasticsearch 中, 每个字段的所有数据 都是 默认被索引的 。 即每个字段都有为了快速检索设置的专用倒排索引文档 ==根对象  ID唯一文档本身数据 1.index索引--文档在哪存放 2.type文档表示的对象类别 3.id文档唯一标识ps:索引:名字必须小写,不能以下划线开头,不能包含逗号ty...

2018-02-13 13:50:29 723

原创 ERR_EMPTY_RESPONSE解决方案

解决方案依次尝试如下:试过清理注册表。ping 网站  DNS污染 修改host。查看是否开启了代理,关闭所有代理。

2017-05-15 22:58:10 32832

原创 多个图片宽度加起来100%但是不能在一行显示解决方案

解决方案:上层容器的font-size设为0

2017-05-08 18:26:48 754

原创 git checkout -b时fatal: Cannot update paths and switch to branch '' at the same time.解决方案

git checkout -b 本地分支 远程分支时出现fatal: Cannot update paths and switch to branch '' at the same time.Did you intend to checkout ' ' which can not be resolved as commit?解决:1.建立本地分支2.重置分支的定位点

2017-04-27 15:12:24 2509 1

原创 表格内文字不换行

推荐写法: 我是一个长字符串不推荐写法: 我是一个长字符串

2017-04-27 10:05:53 640

原创 Jquery show方法不起作用解决方案

原因:show() 适用于通过 jQuery 方法和 CSS 中 display:none 隐藏的元素(不适用于通过 visibility:hidden 隐藏的元素)。1.visibility:hidden 方法//visibility:hidden表示默认隐藏var currentBtn = document.getElementById("currPage");   

2017-04-27 09:48:03 19064

原创 c#面试题 查找整型数组中重复出现次数最多的数字,次数相同数字按从小到大排序

题目要求:查找整型数组中重复出现次数最多的数字,次数相同数字按从小到大排序eg: 输入[1, 1,7,7,2, 3, 4, 5, 4 ]           输出[1,4,7]First Idea:1.对数组进行排序                      2.if(Nums[i]!=Num[i+1]) 来找出重复的数字 并且用变量 计数           

2017-03-12 20:59:50 3730 1

原创 c# Json序列化

序列化:对象-Json public class PositionStorageSearchModel    {        [DataMember]        public int Floor { get; set; }        [DataMember]        public int Column { get; set; }        [Da

2017-02-24 12:26:41 459

转载 WCF初级教程整合

初级教程: 1.建立一个wcf服务应用程序web中简单wcf的创建和应用http://www.cnblogs.com/LipeiNet/p/4555116.htmlWCF入门教程(二)从零做起-创建WCF服务http://www.cnblogs.com/yank/p/3666271.html2.通过Host承载WCF服务WCF入门教程(一)简单实例http://www.

2017-02-10 17:08:23 427

转载 c# 多线程 Thread传递参数

推荐使用lambda表达式 Thread thread = new Thread(() => Method(parameter1,parameter2...) ); thread.Start();更多方法以及其编译原理参见http://www.cnblogs.com/moss_tan_jun/archive/2011/12/02/2272717.html

2017-02-03 14:46:30 654

转载 天猫淘宝登陆页面无限循环 解决办法

原文链接1、选项-隐私-历史记录,移除单个cookie,搜索taobao,点全部移除;2、把taobao全部清除后再搜索tmall,点全部移除;3、重启火狐。

2017-02-01 12:56:41 16510

原创 git本地和github创建分支

创建本地分支git branch BranchName转到该分支 git checkout BranchName提交该分支至github git push origin BranchName

2017-01-05 22:39:16 371

转载 C# Windows Service服务的创建和调试

C# Windows Service服务的创建和调试

2016-12-25 17:43:59 316

转载 Windows Service调试

本地计算机上的XXX服务启动后又停止了——Windows Service服务调试(二)

2016-12-25 17:13:14 284

原创 VS附加到进程 灰色 解决办法

1.查看该进程是否是.vshot.exe  这是不能附加的2.勾选所有用户进程灰色上面那个进程才是我们想要的

2016-12-25 15:47:11 2994 4

原创 c# 获取本机IP地址(ipv4)

Dns.GetHostName() 可以获取本机 计算机名Dns.GetHostAddresses(Dns.GetHostName())获取Ip地址但此处返回的是IpAddresses[] 其中包含ipv4 和 ipv6的地址以下两种形式获取ipv4地址: IPAddress iip = Dns.GetHostAddresses(Dns.GetHostName()).First

2016-12-25 12:14:11 1993

原创 【已解决】Windows Service 问题System.IO.FileNotFoundException: 未能加载文件或程序集“file:///”或它 的某一个依赖项。系统找不到指定的文件。。

bat文件 内容为cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe  InstallUtil F:\Windows Services\WindowsServiceTest\WindowsServiceTest_1_0_0_0\WindowsServiceTest.exeNet Start Service

2016-12-24 23:58:20 26705 2

原创 【已解决】Windows Service服务 出现System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不可访问的日志: Security。

bat文件 内容为%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe WindowsServiceTest.exeNet Start Service1pause其中%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe为instal

2016-12-24 23:37:12 22700 1

原创 c# ENUM 通过Description得到Value

结合通过枚举类型的value或者name获取description看。 public static string GetValueByDescription(string Ip)        {            string value = string.Empty;            var AllNames = typeof(TimeOfDay)

2016-12-20 16:34:29 2541 1

原创 通过枚举类型的value或者name获取description

首先 设置一个枚举类型    public enum TimeOfDay        {            [Description("上午")]            Morning = 1,            [Description("中午")]            Afternoon = 2,            [Description("晚

2016-12-16 14:40:54 4471

原创 【已解决】循环插入InsertOnSubmit Submitchanges时出现过一次异常信息:违反了 PRIMARY KEY 约束 。不能在对象 中插入重复键。后一直报重复错误

//伪代码 autoworkDataContext rtx = new autoworkDataContext(Properties.Settings.Default.autoworkConnectionString); Assembly assam = Assembly.Load("Autowork"); Typ

2016-12-07 14:54:19 6176

原创 c#多线程以及Dispatcher.Invoke

主线程 private void Stabilitybutton_Click(object sender, RoutedEventArgs e) { for (int Nr = 0; Nr <= 10; Nr++) { byte[] msg = ne

2016-12-07 11:37:21 16729 2

原创 【已解决】c# log4net无法正常写日志 无log文件夹

问题: 调用log4net写日志             程序正常运行无报错,但是发现没有log日志尝试方案:[assembly: log4net.Config.XmlConfigurator(Watch = true)]   (无效)解决方案:1.确保正确引用log4net文件夹2.bin/debug目录下存在log4net.dll以及log4.config文

2016-12-02 14:52:13 11924

原创 【已解决】OPC server 枚举本地OPC服务器出错:检索COM类工厂中CLSID为{ DFB8323C-A952-11D2-A46B-00C04F796375} 80040154

win7 64位系统运行OPC Server时出现检索COM 类工厂中 CLSID 为  的组件时失败,原因是出现以下错误: 80040154解决方案:链接:http://pan.baidu.com/s/1boDbicZ 密码:865u下载解压  放到 C:\Windows\SysWOW64复制和替换,提示遇到需要提供管理员权限则提供,提示无权限则忽略。

2016-11-23 23:42:58 19090 8

原创 【已解决】VS错误 CS0120 对象引用对于非静态的字段、方法或属性“AgvWareHouseLib.Offline(string, string)”是必需的

引用类库是发现错误:严重性    代码    说明    项目    文件    行    禁止显示状态错误    CS0120    对象引用对于非静态的字段、方法或属性“AgvWareHouseLib.Offline(string, string)”是必需的    AgvWareHouse    F:\test\AgvWareHouse\AgvWareHouse\OffProduc

2016-11-23 09:26:40 34153 2

原创 win7 64位sql server 2008 r2安装

激活码:https://zhidao.baidu.com/question/510768455.html安装教程:http://jingyan.baidu.com/album/b0b63dbfe324fd4a4930705a.html?picindex=17出现“此计算机上安装了 Microsoft Visual Studio2008 的早期版本。请在安装 SQL

2016-11-22 19:01:19 2810

原创 【git】Permission denied (publickey). fatal: Could not read from remote repository.解决方案

Cloning into 'AGV'...Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.这里是本地的s

2016-11-18 14:25:54 2729

原创 删除本地SSH并新建一个ssh

1.  cat ~/.ssh/id_rsa.pub 查看现有是否存在ssh,且ssh是否是自己的2. 如果是ssh问题则在git仓库同目录 删除.ssh文件夹 (隐藏文件夹)判断删除成功: cat ~/.ssh/id_rsa.pub出现/.ssh/id_rsa.pub: No such file or directory3.重新创建ssh  ssh-keygen -t

2016-11-18 14:25:19 18782 1

原创 SECURECRT远程连接docker

通过上一篇windows下安装docker教程http://blog.csdn.net/yemoweiliang/article/details/53006978打开Docker Quickstart Terminal可以得到docker主机的ip地址(绿色字体)SecureCRT下载链接:http://jiangxi.jz5u.com:

2016-11-02 15:01:16 7391

原创 百度云网盘下载无反应javascript:void(0)救急办法

点击百度云网盘普通下载的时候经常出现没反应 提示javascript:void(0)以下是应急办法:1.保存到自己的百度网盘2.尝试下载,不行继续3.选择一个能下载的,跟目标文件合并下载

2016-11-02 13:44:59 11557

原创 windows下安装docker教程

官方教程:https://docs.docker.com/engine/getstarted/step_one/前提64位系统BIOS允许虚拟化 教程:1.下载docker toolbox  注意是要Windows版的  https://www.docker.com/products/docker-toolbox官网要是下载速

2016-11-02 13:15:09 1659

原创 git commit时出现fatal: Unable to create ‘××××.git/index.lock': File exists.

eg:fatal: Unable to create 'C:/Users/ZhangLin/git/.git/index.lock': File exists.git bash中定位到该目录(我的是git目录)执行rm -f .git/index.lock删除掉然后重新commit

2016-11-02 10:43:34 1755

原创 git push -u origin master 出现The authenticity of host 'github.com ' can't be established解决方案

git push -u origin master提交代码到github时报错:The authenticity of host 'github.com (192.30.253.112)' can't be established.RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.Are

2016-11-02 10:26:25 28662 3

转载 git clone 下载速度0bytes 出现error: RPC failed; curl 18 transfer closed with outstanding read data 解决办法

感谢这位博主的http://blog.csdn.net/ijibu/article/details/10830853的解决方案git config http.postBuffer 24288000

2016-10-31 11:22:25 7862

原创 git push 失败出现error: src refspec master does not match any.解决方案

git push到github失败错误提示error: src refspec master does not match any.error: failed to push some refs to 常见原因:1.本地git仓库目录下为空2.本地仓库add后未commit3.git init错误解决:1.控制面板打开文件夹选项  打开隐藏文件和

2016-10-31 11:03:19 31408

转载 windows下使用git出现 warning: LF will be replaced by CRLF in git/.gitignore. 解决方案

感谢http://blog.csdn.net/unityoxb/article/details/20768687博主的解决方案问题warning: LF will be replaced by CRLF in git/.gitignore.The file will have its original line endings in your working directory

2016-10-31 10:32:09 3175

转载 c# 委托与事件

http://www.tracefact.net/CSharp-Programming/Delegates-and-Events-in-CSharp.aspxhttp://www.tracefact.net/CSharp-Programming/Delegates-and-Events-Advanced.aspx

2016-10-28 13:13:28 228

空空如也

空空如也

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

TA关注的人

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