.net rdp

.net 远程桌面 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 public class RdpConnect : UserControl { AxMSTSCLib....

2024-03-25 · 3 分钟 · SAM

Abp

初期的ABP版本分析 graph LR abp--> A(castle windsor) A--> IWindsorInstaller A--> IInterceptor拦截器 abp--> B(AbpBootstrapper) B--> C(WindsorControllerFactory) B--> 实例化WindsorContainer B--> 接管Controller B--> D(注册组件) D--> IController D--> ApiController D--> NhQuestionRepository D--> QuestionService D--> NullLocalizationManager C--> 接管Controller,从Windsor中获取Controller abp--> ILocalizationManager WindsorContainer.Install(FromAssembly.This())会注册所有实现IWindsorInstaller接口的组件 作者当时考虑到各模块的引用关系,特意列出来一个文档进行说明: Dll dependencies Framework ======================================= - "Abp.Core" (no dependencies) - "Abp.Data" (Dependencies: "Abp.Core") - "Abp.Web" (Dependencies: "Abp.Core") Core module ======================================= - "Abp.Modules.Core" (Dependencies: "Abp.Core") - "Abp.Modules.Core.Data" (Dependencies: "Abp.Core", "Abp.Data", "Abp.Modules.Core") - "Abp.Modules.Core.Web" (Dependencies: "Abp.Core", "Abp.Data", "Abp....

2024-03-25 · 1 分钟 · SAM

电子书

编程书籍 编码隐匿在计算机软硬件背后的语言 汇编语言-第四版 C++ Primer(第5版中文版).pdf 原理书籍 通信的数学原理 -克洛德 艾尔伍德 香农 A Symbolic Analysis of Relay and Switching Circuits - 继电器和开关电路的符号分析 -克洛德 艾尔伍德 香农 Linux学习路径 公众号linux内核系列讲解-无聊的闪客 如何正确的学习linux Introduction to Computer Organization with x86-64 Assembly Language & GNU/Linux CSstudy-git 电路仿真器小程序 graph TD linux内核学习--> 公众号linux内核系列讲解-无聊的闪客 linux内核学习--> A(汇编语言-第四版) A-->A1(编码隐匿在计算机软硬件背后的语言) A1-->电路仿真器小程序

2024-03-11 · 1 分钟 · SAM

获取头条无水印视频

目标视频 https://m.toutiao.com/is/iLu4dkQM/?= 相扑选手做的猪排饭,每份炸猪排1公斤,不争气的眼泪从嘴角流下 - 今日头条 请求后会经过重定向,来到: https://www.toutiao.com/video/7326060999109411340/?app=news_article_lite&group_id=7326060999109411340&share_token=4c3b258c-45d3-48e0-ac71-7fefed05da9b&share_uid=MS4wLjABAAAAid2r4o25riTouNJSepzybge6OSG9e4GSJW7I9qauja8&timestamp=1705832087&tt_from=copy_link&utm_campaign=client_share&utm_medium=toutiao_android&utm_source=copy_link&source=m_redirect 服务器会生成一个msToken cookie存起来 构建url将上次请求的地址后面再加上wid参数 参数wid是13位时间戳 https://www.toutiao.com/video/7326060999109411340/?app=news_article_lite&group_id=7326060999109411340&share_token=4c3b258c-45d3-48e0-ac71-7fefed05da9b&share_uid=MS4wLjABAAAAid2r4o25riTouNJSepzybge6OSG9e4GSJW7I9qauja8&timestamp=1705832087&tt_from=copy_link&utm_campaign=client_share&utm_medium=toutiao_android&utm_source=copy_link&source=m_redirect&`wid`=1706323479791 请求这个地址的时候要带上之前拿到的cookie再加一个ttwid cookie ,所以这个地下需要2个cookie参数: msToken ttwid header再加上 Referer ttwid需要另外获取请求地址 POST方式 https://ttwid.bytedance.com/ttwid/union/register/ 1 {"aid":24,"service":"www.toutiao.com","region":"cn","union":true,"needFid":false} 响应的cookie就是ttwid 需要的参数全部拿到,GET https://www.toutiao.com/video/7326060999109411340/?app=news_article_lite&group_id=7326060999109411340&share_token=4c3b258c-45d3-48e0-ac71-7fefed05da9b&share_uid=MS4wLjABAAAAid2r4o25riTouNJSepzybge6OSG9e4GSJW7I9qauja8&timestamp=1705832087&tt_from=copy_link&utm_campaign=client_share&utm_medium=toutiao_android&utm_source=copy_link&source=m_redirect&wid=1706321226993 在响应的html中,RENDER_DATA会包含这个视频的所有信息。 用正则匹配拿到json数据,匹配后发现json数据是经过 encodeURIComponent,需要 decodeURIComponent,然后JSON.parse得到解码后的json数据 (?<=<script id="RENDER_DATA" type="application/json">).*(?=</script></head>) 最终视频地址 https://v3-web.toutiaovod.com/c6cd325c09aba330ccaff6e8179c9aad/65b47415/video/tos/cn/tos-cn-ve-4/ooqwEnNRDAq2CineAdgetqmIIbZ2lKDBgQLXrA/?a=24&ch=0&cr=0&dr=0&er=0&lr=unwatermarked&net=5&cd=0%7C0%7C0%7C0&cv=1&br=1276&bt=1276&cs=0&ds=3&eid=21760&ft=Tt496MHbxxoupo._4ND12lop0BanGbI5IIkwF_ZiZ2F12Nz7T&mime_type=video_mp4&qs=0&rc=ODU7Ojc8NzU7ZGRoOThoOkBpamdnbmU6ZmxwcDMzNDczM0AwYWNhYmNeNi4xMzJiNV5jYSNncTBkcjRnMmlgLS1kLWFzcw%3D%3D&btag=e00028000&dy_q=1706321227&feature_id=1229c61d4e863560fb994c11be849377&l=2024012710070795E8276CE162BD1F3F93 收工

2024-01-27 · 1 分钟 · SAM

Aspnet Core Middleware

中间件组件的主要目的是以某种方式改变和筛选数据流(在某些特定情况下,只是使请求短路,停止任何进一步的处理)。 中间件管道执行示意图 ASP.NET Core 请求管道包含一系列请求委托,依次调用 中间件顺序 下图显示了 ASP.NET Core MVC 和 Razor Pages 应用的完整请求处理管道。 你可以在典型应用中了解现有中间件的顺序,以及在哪里添加自定义中间件。 你可以完全控制如何重新排列现有中间件,或根据场景需要注入新的自定义中间件。 IActionFilter筛选器在自定义的Middleware后执行。 下图展示了筛选器类型在筛选器管道中的交互方式: 中间件参考链接 筛选器参考链接

2024-01-16 · 1 分钟 · SAM

AspNetCore WebAPI使用.http文件测试接口的新方式

在Visual Studio 2022 中的 创建.http 文件,是一种便捷的方式来测试 ASP.NET Core项目,尤其是 API 应用。 创建和更新 .http 文件。 发送 .http 文件中指定的 HTTP 请求。 显示响应。 特性 有独立的 .http 文件语法 有独立的 .http 文件编辑器。

2024-01-15 · 1 分钟 · SAM

Aspnet Core Visualstudio Iis Webdeploy

在visual studio 2022中使用Web Deploy的方式部署到iis,可远程更新程序 部署过程中遇到的问题, 500.38 HTTP Error 500.38 - Failed to locate ASP.NET Core app Common solutions to this issue: The app couldn’t be found. Confirm the app’s main DLL is present. Single-file deployments are not supported in IIS. Troubleshooting steps: Check the system event log for error messages Enable logging the application process’ stdout messages Attach a debugger to the application process and inspect For more guidance on diagnosing and handling these errors, visit Troubleshoot ASP....

2024-01-15 · 1 分钟 · SAM

Efcore Dbfirst Scaffold-DbContext

安装必要Nuget包 Install-Package Microsoft.EntityFrameworkCore.Design Install-Package Microsoft.EntityFrameworkCore.SqlServer 从数据库生成 (PMC) 可以使用Name指定数据库连接 Scaffold-DbContext ‘Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=BookDb’ Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -ContextDir Data Scaffold-DbContext ‘Name=ConnectionStrings:DefaultConnection’ Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -ContextDir Data -Force -Context BookDbContext -OutputDir:生成的Model放入Models文件夹 -ContextDir:DbContext对象放入Data文件夹 -Force:强制覆盖 -Context:指定DbContext名称 scaffold-dbcontext命令详细说明 https://learn.microsoft.com/zh-cn/ef/core/cli/powershell#scaffold-dbcontext

2023-07-12 · 1 分钟 · SAM

Memory

Hugo 新建page: hugo new “posts/demo.md” 运行hugo站点,-D包含草稿: hugo server -D 开发字体 Ubuntu_Mono_Nerd_Font_Complete .net 6 Aspnet Core作为后台服务运行 安装Microsoft.Extensions.Hosting.WindowsServices,dotnet add package Microsoft.Extensions.Hosting.WindowsServices 添加builder.Host.UseWindowsService();作为后台服务 使用sc创建后台服务 sc create Test_WebSiteService binPath="D:\publish\WebApplication1.exe" start=auto displayname="ASPNET CORE测试服务" sc start Test_WebSiteService启动服务,以后会自动随系统自动启动 参考:https://www.cnblogs.com/ittranslator/p/worker-service-as-windows-services.html .net自定义控件 如何在属性面板中设置折叠属性,属性前面有显示加号,代码如下: 需要添加一个继承自TypeConverter的KeyInputTypeConverter属性转换类,才能显示折叠号哦 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 public class KeyInputTypeConverter : TypeConverter { public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { //获取KeyInputInfo对象中的所有属性 PropertyDescriptorCollection properties = TypeDescriptor....

2023-04-23 · 3 分钟 · SAM

AI人工智能

AI应用的相关网址导航 debuild 设计和部署web应用 tabnine 帮助开发者编写代码 grammarly 结合上下文写作助手 omneky 定制广告和方案 kore.ai 虚拟客服 jasper.ai 营销材料 insilico 药物设计 absci 预测治疗抗体

2023-03-23 · 1 分钟 · SAM