摘要: /// <summary> /// 无损压缩图片 /// </summary> /// <param name="sFile">原图片地址(物理地址)</param> /// <param name="dFile">压缩后保存图片地址(物理地址)</param> /// <param name="f 阅读全文
posted @ 2023-11-28 10:40 zeroooooo~ 阅读(99) 评论(0) 推荐(0)
摘要: docker部署步骤看起来虽然不多,但如果你的程序出了点小bug,需要频繁部署的话,那也挺麻烦的,所以为了节约时间我们可以通过编写shell脚本自动去部署就方便很多了。 首先我们需要生成一个shell脚本 vim [name].sh 写入以下代码 #!/bin/sh#定义镜像名称image="web 阅读全文
posted @ 2023-03-23 13:51 zeroooooo~ 阅读(210) 评论(0) 推荐(0)
摘要: sql的like查询区分 阅读全文
posted @ 2023-03-01 16:14 zeroooooo~ 阅读(23) 评论(0) 推荐(0)
摘要: sql快速查询表结构方法 阅读全文
posted @ 2023-03-01 14:17 zeroooooo~ 阅读(379) 评论(0) 推荐(0)
摘要: DataTable的某一列需要转换成字符串 阅读全文
posted @ 2023-03-01 14:08 zeroooooo~ 阅读(415) 评论(0) 推荐(0)
摘要: JS 复制内容到剪贴板(无插件,兼容所有浏览器) 阅读全文
posted @ 2020-07-23 13:42 zeroooooo~ 阅读(109) 评论(0) 推荐(0)
摘要: SQL中时间与秒互转 阅读全文
posted @ 2020-07-17 13:48 zeroooooo~ 阅读(2234) 评论(1) 推荐(0)
摘要: 开机自启动 RegistryKey R_local = Registry.LocalMachine;//RegistryKey R_local = Registry.CurrentUser; RegistryKey R_run = R_local.CreateSubKey(@"SOFTWARE\Mi 阅读全文
posted @ 2020-07-17 09:15 zeroooooo~ 阅读(140) 评论(0) 推荐(0)
摘要: 启动redis服务:redis-server.exe redis.windows.conf启动redis客户端:redis-cli.exe -h 127.0.0.1 -p 6379 设置键值对:set myKey abc获取键值对:get myKey 设置哈希:HMSET runoob field1 阅读全文
posted @ 2020-07-16 09:36 zeroooooo~ 阅读(81) 评论(0) 推荐(0)
摘要: //type不传默认保留两位 function formatMoney(s, type) { if (/[^0-9\.]/.test(s)) return "0"; if (s == null || s == "") return "0"; s = s.toString().replace(/^(\ 阅读全文
posted @ 2020-07-16 09:22 zeroooooo~ 阅读(364) 评论(0) 推荐(0)
摘要: html: <div class="imgbox" style="display: none"> <img id="upImg" alt="上传成功啦" src="" style="width: 690px; height: 220px;" runat="server"/> </div> <inpu 阅读全文
posted @ 2020-07-16 09:20 zeroooooo~ 阅读(136) 评论(0) 推荐(0)
摘要: webconfig配置(必须在第一行) <configuration> <configSections> <section name="RedisSetting" type="System.Configuration.NameValueSectionHandler" /> </configSecti 阅读全文
posted @ 2020-07-16 09:15 zeroooooo~ 阅读(159) 评论(0) 推荐(0)
摘要: MD5(Sourcein, 32); public static string MD5(string Sourcein, int len) { string text = FormsAuthentication.HashPasswordForStoringInConfigFile(Sourcein, 阅读全文
posted @ 2020-07-16 09:11 zeroooooo~ 阅读(65) 评论(0) 推荐(0)
摘要: Get请求 1 /// <summary> 2 /// Get请求 3 /// </summary> 4 /// <param name="url"></param> 5 /// <param name="reslut"></param> 6 /// <returns></returns> 7 pu 阅读全文
posted @ 2020-07-16 09:09 zeroooooo~ 阅读(82) 评论(0) 推荐(0)
摘要: //并集, 包含1、2全部list = list1.Union(list2); //交集,1、2相同部分list = list1.Intersect(list2); //差集,1中存在但2中不存在list = list1.Except(list2) 阅读全文
posted @ 2020-07-16 09:01 zeroooooo~ 阅读(261) 评论(0) 推荐(0)
摘要: 前项目一直运行正常,突然弹出这个警告,页面所有razor语法智能提示都不能正常提示,找了好久原因,都没能解决,根据经验估计是哪里配置的有问题。果断看下配置文件 web.config 发现里面有这么几个配置。 <add key="webpages:Version" value="2.0.0.1"/> 阅读全文
posted @ 2020-07-16 08:58 zeroooooo~ 阅读(777) 评论(0) 推荐(0)
摘要: 回滚git reset --hard 版本号提交git push -f 阅读全文
posted @ 2020-07-16 08:55 zeroooooo~ 阅读(46) 评论(0) 推荐(0)
摘要: 1.ini文件: [Update] Version=2.2.0228.001 Recommend=1 VersionMemo=1.aasdfadfsafdfafd|2.YYYYYYY|3.ZZZZZZZZ2.读取ini的cs类(单独建一个 封装读取)using System;using System.Collections.Generic;using System.Web;using System.Text;using System.Runtime.InteropServices;/*System.Runtime.InteropServices提供了相应的类或者方法来支持托管/非托管模... 阅读全文
posted @ 2012-02-28 11:49 zeroooooo~ 阅读(176) 评论(0) 推荐(0)
摘要: 第一打开 vs2008 ,新建一个 wcf服务库 项目 ,vs 会自动生成一个类,用于测试。wcf服务库建立完成第二在解决方案中添加 新建 windows服务 项目,在“设计”窗口中点右键 单击添加安装程序这时项目中就添加了一个新类 ProjectInstaller 和两个安装组件 ServiceProcessInstaller 和 ServiceInstaller,并且服务的属性值被复制到组件。单击 ServiceInstaller 组件并将 StartType 属性设置为Automatic将serviceProcessInstaller类的Account属性改为 LocalSystem然后 阅读全文
posted @ 2012-02-28 11:40 zeroooooo~ 阅读(790) 评论(0) 推荐(1)