![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web
文章平均质量分 59
Henry_Wu001
这个作者很懒,什么都没留下…
展开
-
windows下nginx 配置 开机自启动
以上内容配置好了之后,在nginx安装目录下以管理员运行命令:.\nginx-service.exe install 就成功将其注册为Windows服务了。1、到nginx官网下载相应版本(http://nginx.org/en/download.html),我这里放到了D:\work\nginx\路径下进行解压。打开cmd命令窗口,切换到nginx目录下,输入命令 nginx.exe 或者 start nginx ,回车即可。启动对应的系统服务命令 nginx-service.exe start。转载 2023-10-18 13:29:20 · 6642 阅读 · 0 评论 -
将 PNG 转换为 WebP - 5 种有效的方法来获得具有透明背景的 WebP
当您想提高网站的性能时,您始终可以相信将 PNG 转换为较小尺寸的 WebP 的责任。有多个 PNG 到 WebP 转换器,在线或离线。要将 PNG 转换为具有透明背景的 WebP,WidsMob WebP 始终是您应该尝试的初始选择。转载 2023-03-16 17:11:38 · 4973 阅读 · 0 评论 -
Vue 结合 Razor Page
之前一直用的webform和angularjs,现在2者都过时了。正好有新的solution;转载 2022-12-16 18:22:28 · 559 阅读 · 0 评论 -
await SignInManager.PasswordSignInAsync() always results in a failure
ApplicationUser添加了。如果没有设置这2个信息,就无法登录;原创 2022-11-26 09:10:51 · 459 阅读 · 0 评论 -
Clean Architecture with .NET Core: Getting Started
【代码】Clean Architecture with .NET Core: Getting Started。翻译 2022-10-28 09:29:07 · 153 阅读 · 0 评论 -
dapr初试
确认组件文件夹被初始化了init时命令行会创建默认组件文件夹,其中包含YAML文件,定义了状态存储,pub/sub和zipkin等。dapr sidecar将读取这些部件并使用 redis 状态管理和消息,zipkin收集信息。安装最新的 Dapr 运行binaries文件。重启终端后命令行可以查看dapr信息。3)测试使用 Dapr API。2)本地环境初始化dapr。至少3个实例在运行;原创 2022-10-25 21:37:26 · 657 阅读 · 0 评论 -
TypeScript中`import from`和`import require`之间的区别
1)ES6语法2)typescript引用js3)js是否按模块来实现的Difference between node.js require and ES6 import and export - GeeksforGeeksNode.js follows the commonJS module system, and it require to include modules that exist in separate files and for that purpose it has..转载 2022-05-04 21:56:43 · 699 阅读 · 0 评论 -
vue3 可修改配置及引用相对目录
1)可修改配置在index.html里添加一个config.js,并在config.js中定义window.GlobalConfig = { API_SERVER_URL: "http://xxx", other: { dev: false, sceneId: 226, baseUrl: "", },};需要注意的事,引用的config.js要放在打包生成的*.js前面,放在title前面是成功的,titl.原创 2022-04-12 11:09:35 · 1241 阅读 · 0 评论 -
vue3 env
必须以 VUE_APP_开始才能有效;不支持json,对象,读出都是string信息原创 2022-04-11 19:36:43 · 265 阅读 · 0 评论 -
zeal doc
Zeal是一个为软件开发者提供的离线文档浏览器。一、下载安装 下载地址:https://zealdocs.org/ 二、安装后下载自己需要的文档 1、通过Zeal原生源直接下载文档 Tools -> docsets... 弹出文档集管理窗口,选择Available 在已有文档集中选择需要的文档,单击Download进行下载,下载完成即可使用 2、通过Installed页面的Add feed按钮添加第三方源的方式新增文档...转载 2022-04-10 16:05:01 · 267 阅读 · 0 评论 -
web.config 重复登录问题
不添加这个模块,cookie无法读取到 UserIdentity<modules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/></modules>...原创 2021-12-30 17:18:31 · 184 阅读 · 0 评论 -
Flasgger – API playground with Flask and Swagger UI
What is Swagger?Swagger is a simple yet powerful representation of your RESTful API. With the largest ecosystem of API tooling on the planet, thousands of developers are supporting Swagger in almost every modern programming language and deployment enviro转载 2021-12-29 08:46:50 · 265 阅读 · 0 评论 -
iis:一个域名2个服务应用问题
情况描述:1)测试时是2个web服务,2个服务端口不一样,其中一个web用iframe包含另外一个web服务,通过请求传参数,调用另外一个服务。2个服务都是http,没有问题。2)正式服务器是https加密的,只有一个域名,另外一个http服务通过iframe包含存在认证问题。solution:用iis的一个网址下添加多个应用方式,把2个应用整合到了一起。在调用另一个服务时出现"NOT FOUND The requested URL was not found on this serve原创 2021-11-25 12:02:43 · 1163 阅读 · 0 评论 -
Blazor 子父控件通信
IntroductionBlazor is a new framework built by Microsoft for creating interactive client-side web UI with .NET codebase. We can write both client-side and server-side code in C#.NET itself. I have already written five articles about Blazor server on C#转载 2022-05-12 13:19:11 · 246 阅读 · 0 评论 -
尚未创建默认SSL站点 若要支持不带SNI功能的浏览器 建议创建一个默认SSL站点
IIS环境,去除提示信息:尚未创建默认SSL站点。若要支持不带SNI功能的浏览器,建议创建一个默认SSL站点。说明:不限制IIS版本,包括:IIS7、IIS8,所有IIS版本都可以使用。选择默认IIS站点:Default Web Site ,右击选择编辑绑定。选择:添加,类型:HTTPS,选择SSL证书(随意选择1个证书)点击确定。...转载 2021-02-01 17:38:07 · 1910 阅读 · 0 评论 -
萤石摄像头音视频
1)使用视频播放时可以直接用iframe切入萤石的地址,比较方便;2)使用双向语音时,由于要使用本地录音设备,所以方法1不再适用;只能使用uikit(https://open.ys7.com/mobile/download.html)下的demo,用python的http.server跑一遍,没有问题;vs里面跑demo,可以双向语音,不能看到视频;萤石网页上都可以;发布到iis,无法视频和双向语音。2.1)需要添加相应的mime类型,允许wasm类型文件,解决网页js的错误;2.2原创 2020-12-01 11:02:48 · 772 阅读 · 0 评论 -
Windows Server 2016禁止系统自动更新的方法
1. window+R,输入gpedit.msc, 进入本地组策略编辑器2. 依次选择"计算机配置"-“管理模板”-“Windows组件”-“Windows更新”-“配置自动更新”3. 在此可以disable自动更新注意:如果不能运行gpedit.msc,可以通过管理员方式进入命令行后再运行gpedit.msc关闭自动更新https://jingyan.baidu.com/article/9c69d48fd23ed213c9024e2a.html...原创 2020-11-12 11:30:21 · 3290 阅读 · 0 评论 -
Flask 环境变量 FLASK_ENV 说明
FLASK_ENVFLASK_ENV 变量用来告诉Flask当前应用所运行的环境,有两个值,分别是 “production” 和 “development”,默认缺省值是“production”。Flask自身和第三方扩展插件可能会基于此变量值改变自己的行为。如果设置为:“development”,那么可实现:1、激活调试器。 2、激活自动重载。 3、打开 Flask 应用的调试模式。只要项目中代码有发生变化,程序就会自动重启。 在开发调试过程中很有用,如果是production,每次还转载 2020-09-03 11:27:08 · 7532 阅读 · 0 评论 -
Angular & Bokeh combined with a Python Backend
If you want to be able to send update events from the python back-end and have all the nice interactions like button press- and text input- events coming with Angular, you might like this first example on the usage:This angular-project is located at:htt.转载 2020-08-18 17:17:17 · 232 阅读 · 0 评论 -
flask 生成图片嵌入网站
1)利用figure生成png图片@app.route('/abc/fft.png', methods=["GET"])def vibrawfft(): productStatusList = None productId = request.args.get('productId', '0000001') index = request.args.get('index', 0) fromDate = request.args.get('fr...原创 2020-08-03 15:55:18 · 427 阅读 · 0 评论 -
ASP.NET Core /User Secrets 在开发环境保存机密
前言在应用程序开发的过程中,有的时候需要在代码中保存一些机密的信息,比如加密密钥,字符串,或者是用户名密码等。通常的做法是保存到一个配置文件中,在以前我们会把他保存到web.config中,但是在ASP.NET Core中,这一方式或许发生了改变,或者说你有更多多元化的方法, 以及更加优雅的的配置来设置或者保存这些机密资料。起初我以为这个UserSecrets它并没有什么用,因为我有需要配...转载 2020-04-04 10:40:14 · 421 阅读 · 0 评论 -
ztree异步逐级加载数据
refs:https://blog.csdn.net/weixin_41615439/article/details/89923107原创 2020-03-26 16:48:00 · 426 阅读 · 0 评论 -
解决window.navigator.geolocation.getCurrentPosition在IOS10系统中无法进行地理定位问题
https://developer.mozilla.org/zh-CN/docs/Web/API/Geolocation/getCurrentPositionhttps://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only发现手机上原来可以获取到的物理地址现在不能获取了,找了w3...转载 2019-11-07 10:09:43 · 1083 阅读 · 0 评论 -
mongodb client throws a FileNotFoundException
refs:https://blog.csdn.net/wangzl1163/article/details/73162826https://docs.microsoft.com/zh-cn/dotnet/framework/configure-apps/file-schema/runtime/assemblybinding-element-for-runtimehttps://www....原创 2019-05-22 18:11:27 · 131 阅读 · 0 评论 -
四种常见的 POST 提交数据方式
refs:https://imququ.com/post/four-ways-to-post-data-in-http.html文章目录application/x-www-form-urlencodedmultipart/form-dataapplication/jsontext/xmlHTTP/1.1 协议规定的 HTTP 请求方法有 OPTI转载 2017-10-27 09:01:24 · 1186 阅读 · 0 评论 -
Adding Session support to ASP.NET Web API
First the disclaimer. Yes, there are a lot of problems with using session in your ASP.NET applications. Moreover, by default, HTTP (and by extension, REST) is stateless – and as a result each HTTP req...转载 2019-09-25 17:09:08 · 193 阅读 · 0 评论 -
Sending Additional Parameters to Token in Web API with oauth2 and AngularJS
refs:https://stackoverflow.com/questions/34517916/sending-additional-parameters-to-token-in-web-api-with-oauth2-and-angularjsWhen using GrantResourceOwnerCredentials, you can retrieve the OWIN request...转载 2018-05-03 16:06:46 · 211 阅读 · 0 评论 -
Angular CLI 终极指南
refs:https://segmentfault.com/a/1190000009771946Angular CLI 是什么?Angular CLI 是一个命令行接口(Command Line Interface),用于实现自动化开发工作流程。它允许你做以下这些事情:创建一个新的 Angular 应用程序运行带有 LiveReload 支持的开发服务器,以便在开发过程中预览应用程序添加功能到现有...转载 2018-04-06 20:15:33 · 400 阅读 · 0 评论 -
asp.net 前后台页面交互数据的四种方案,非ajax
refs:https://blog.csdn.net/qq_18551329/article/details/50675117asp.net 前后台页面交互数据的四种方案 ,第五种方案通过aspx.cs中的静态方法+WebMethod进行处理已经介绍http://blog.csdn.net/qq_18551329/article/details/506731641. 前台直接输出后台传递的数据后台...转载 2018-04-02 13:15:12 · 1330 阅读 · 0 评论 -
谷歌字体被墙,有什么好的解决方法
refs:https://www.zhihu.com/question/20587762安装 Google WebFont Downloader我们通过安装 Google WebFont Downloader 来完成这项工作,在终端键入以下命令进行全局安装:npm install -g goog-webfont-dl下载字体比如我目前用的:<link href="http://fonts.g...转载 2018-03-06 13:46:25 · 1828 阅读 · 0 评论 -
asp.net中machineKey的作用
refs:http://blog.csdn.net/liuqiao0327/article/details/54018922http://bitoftech.net/2014/09/24/decouple-owin-authorization-server-resource-server-oauth-2-0-web-api/(Step 5: Hosting the Authorization Se...转载 2018-02-23 14:38:25 · 3059 阅读 · 0 评论 -
abp Step1
refs:1)下载模板后用vs2017打开2)Web项目设置为起始项目3)在包管理终端下选择EntityFramework为默认项目,运行"Update-Database",创建数据库4)运行项目,默认用户admin密码123qwe原创 2018-01-19 11:16:17 · 289 阅读 · 0 评论 -
sth about abp,zero module,asp.net zero
refs:https://forum.aspnetboilerplate.com/viewtopic.php?p=444大致1. ABP open free2. Module Zero open free3. ASP.NET Zero. 前2者+ui因为使用了部分非free的东西,所以不free,商业化了翻译 2018-01-19 10:10:39 · 355 阅读 · 0 评论 -
linux下的开源移动图像监测程序--motion编译与配置
refs:http://www.cnblogs.com/qinyg/archive/2013/11/25/3355707.html所谓移动图像监测,简单来说就是利用摄像头定点监测某个区域,当有移动物体经过时,摄像头便自动抓拍(要监测多大物体、按拍照速率都是可调的),并把拍到的图像存储在指定目录,实现无人监控功能。motion 是一套免费开源的移动图像监测程序(详转载 2017-09-05 12:02:02 · 1875 阅读 · 0 评论 -
How to stream a webcam to a web browser in Ubuntu
refs:https://gist.github.com/endolith/2052778First install motion:~> sudo apt-get install motionThen create a config file:~> mkdir ~/.motion~> nano ~/.motion/motion.confIn转载 2017-09-05 11:59:02 · 432 阅读 · 0 评论 -
minihttpd cgi 路径是相对于 webdir的
mark:top/mini_httpdtop/web/xx.htmltop/web/aa.cgimini_httpd.cfg# Specifies a directory to chdir() to at startup.dir=webi/# Specifies an alternate port number to listen on#原创 2017-01-24 14:34:29 · 1009 阅读 · 0 评论 -
可用jar运行的war包
原理上讲就是jar包+war包,war包是原生的war包,jar包是调用jetty的包,在合成包中通过(jar包)代码中确定当前war的位置,然后调用jetty的方法运行war包。当前存在问题,包jetty相关包解压到war中,运行war包会报错,通过manifest连接到外部文件夹中,保持jar格式的库,运行是可以的。原创 2016-04-28 17:07:41 · 2655 阅读 · 0 评论 -
redis做聊天的应用
refs:1)rubyhttps://gist.github.com/pietern/348262https://gist.github.com/ahaedike/a7f35c0bb9cc40fdc48e2)python3)node jshttp://blog.csdn.net/icetime17/article/details/45768065转载 2015-10-29 17:00:15 · 1916 阅读 · 0 评论 -
protobuf简介
refs: https://github.com/google/protobufhttps://developers.google.com/protocol-buffers/docs/tutorials转载 2015-07-02 10:40:51 · 611 阅读 · 0 评论 -
android load xhtml page
refs:http://stackoverflow.com/questions/7604436/xmlparseentityref-no-name-warnings-while-loading-xml-into-a-php-filehttp://boyadn.blog.163.com/blog/static/74230736201012292739317/1)case原创 2015-01-14 15:21:43 · 573 阅读 · 0 评论