随笔分类 -  skill

nuget.exe push won't use API Key
摘要:I had the same issue today on v3.4.3.855.I set the api key using the required command, then when I ran the push I got this warning: WARNING: No API Ke 阅读全文

posted @ 2017-05-24 22:49 木龙哥 阅读(607) 评论(0) 推荐(0)

查询表中所有字段的最大长度
摘要:DECLARE @tableName NVARCHAR(50)= 'home'; DECLARE @tmpTable TABLE ( ColumnName NVARCHAR(50) NOT NULL PRIMARY KEY , ColumnMaxLen INT NOT NULL ); INSERT @tmpTable SELECT C... 阅读全文

posted @ 2017-04-09 22:54 木龙哥 阅读(1368) 评论(0) 推荐(0)

sql server cvs 导入
摘要:一、使用导入数据工具: 选择数据源: Flat File Source , 选择一个csv文件, 格式中文本限定符(导入导出要保持一致,常用“包含字段中含有分隔符) Advance: 选择所有的列(可以多选,使用Shift), 改OutputColumnWidth:500, 改DataType:Un 阅读全文

posted @ 2017-04-08 15:09 木龙哥 阅读(1534) 评论(0) 推荐(0)

清除“远程桌面连接”的历史记录
摘要:1 @echo off 2 echo ---------------------------------------------------------------------------------- 3 echo ------------------------- 清除“远程桌面连接”的历史记录----------------------------- 4 echo --------... 阅读全文

posted @ 2017-03-17 11:58 木龙哥 阅读(3007) 评论(0) 推荐(0)

删除Sql Server连接过的数据库
摘要:1 @echo off 2 echo ---------------------------------------------------------------------------------- 3 echo -------------------------删除Sql Server连接过的数据库----------------------------- 4 echo -----... 阅读全文

posted @ 2017-03-17 11:15 木龙哥 阅读(345) 评论(0) 推荐(0)

修改IIS虚拟目录名称
摘要:执行效果: 阅读全文

posted @ 2016-12-27 10:25 木龙哥 阅读(1915) 评论(0) 推荐(0)

算法
摘要:1. 蔡勒公式:是一个计算星期的公式,随便给一个日期,就能用这个公式推算出是星期几。 阅读全文

posted @ 2016-11-05 17:44 木龙哥 阅读(179) 评论(0) 推荐(0)

powerShell
摘要:get-help *-* get-host power主机信息 $C=Get-Credential –Credential powershell;Enter-PSSession –ComputerName 192.168.1.200 –Credential $C "{0}.{1}" -f $env: 阅读全文

posted @ 2016-09-03 11:07 木龙哥 阅读(215) 评论(0) 推荐(0)

ftp一些东东
摘要:ftp如果绑定域名 登录时登录名应该写成 域名|用户名 阅读全文

posted @ 2015-10-12 16:10 木龙哥 阅读(109) 评论(0) 推荐(0)

VS配置
摘要:if $(ConfigurationName)==Release copy /y $(TargetPath) E:\Develop\CommonDllif $(ConfigurationName)==Release copy /y $(TargetDir)LZL.XML E:\Develop\Com 阅读全文

posted @ 2015-05-23 11:02 木龙哥 阅读(150) 评论(0) 推荐(0)

Microsoft Jet 数据库引擎找不到对象'Sheet1$_'。请确定对象是否存在,并正确地写出它的名称和路径
摘要:We have a CRM add-on for Importing Price Lists into CRM. For this tool, we expect the details to be provided in an Excel sheet. The tool reads the exc... 阅读全文

posted @ 2014-12-29 15:44 木龙哥 阅读(1651) 评论(0) 推荐(0)

linq 总结
摘要:linq 常用方法:top var query=(from u in User ...).Take(10)dblinq的坑:时间必须当参数传入,否则会报错多个left join时,如果join on进行类型转换时,放在最后面会报错,放到中间就没有问题 阅读全文

posted @ 2014-10-30 23:57 木龙哥 阅读(137) 评论(0) 推荐(0)

设计模式总结
摘要:一、创建型模式单例模式(Singleton)(非23种设计模式)简单工厂模式(Simple Factory)工厂方法模式(Factory Method)抽象工厂模式(Abstract Factory)原型模式(Prototype)创建者模式(Builder)二、结构型模式适配器模式(Adapter)... 阅读全文

posted @ 2014-09-27 17:53 木龙哥 阅读(125) 评论(0) 推荐(0)

一些安全相关的HTTP响应头
摘要:转:http://www.2cto.com/Article/201307/230740.html现代浏览器提供了一些安全相关的响应头,使用这些响应头一般只需要修改服务器配置即可,不需要修改程序代码,成本很低。本文介绍一些这样的响应头:1. Strict-Transport-SecurityHTTP ... 阅读全文

posted @ 2014-09-27 17:38 木龙哥 阅读(1165) 评论(0) 推荐(0)

CMD获取当前目录的绝对路径
摘要:@echo offecho 当前盘符:%~d0echo 当前盘符和路径:%~dp0echo 当前批处理全路径:%~f0echo 当前盘符和路径的短文件名格式:%~sdp0echo 当前CMD默认目录:%cd%echo 目录中有空格也可以加入""避免找不到路径echo 当前盘符:"%~d0"echo ... 阅读全文

posted @ 2014-07-08 16:04 木龙哥 阅读(5212) 评论(0) 推荐(0)

git 删除右键菜单
摘要:cmd进入"C:\Program Files (x86)\Git\git-cheetah"目录,运行regsvr32 /u git_shell_ext(64).dll 阅读全文

posted @ 2014-06-25 22:05 木龙哥 阅读(499) 评论(0) 推荐(0)

TortoiseGit 自动登录
摘要:在环境变量里添加Home=%USERPROFILE%在运行中打开%Home%在打开目录中新建文件_netrc,并保存以下内容machine git.oschina.netlogin usernamepassword password 阅读全文

posted @ 2014-06-16 09:19 木龙哥 阅读(395) 评论(0) 推荐(0)

git 代理设置
摘要:git 代理设置:git config --global http.proxy http://proxy.com:8080git config --global https.proxy http://proxy.com:8080git config --global http.sslverify false 阅读全文

posted @ 2014-04-03 09:00 木龙哥 阅读(201) 评论(0) 推荐(0)

快捷查看dll的PublicKeyToken
摘要:1 @echo off 2 3 d: 4 5 cd D:\Win2003\Microsoft Visual Studio 10.0\VC\ 6 7 call vcvarsall.bat x86 8 9 echo. 10 11 12 13 if not '%1'=='... 阅读全文

posted @ 2014-03-12 21:17 木龙哥 阅读(1239) 评论(0) 推荐(0)

导航