html pdf to
html积累
html5中的积累: details与summary标签: // 解释:定义一个可见标题,点击“标题”会显示“详细信息”// 兼容:目前仅Chrome, Safari 8+ 和Opera 26+支持此标签<details> <summary> 标题 </summary> 详细信息 </details ......
sshpass报错 Permission denied, please try again.和 connect to host localhost port 10022: Connection refused
最近在做自动化时,自动化脚本用sshpass给远程机器发送命令(sshpass -p "123456" ssh -p 10022 root@localhost -o StrictHostKeyChecking=no "poweroff") 报错:Permission denied, please t ......
[React Typescript] useRef with HTML Elements
React set the ref to null in runtime. It is a limitation now for react. import { useRef } from 'react'; export const Component = () => { const ref = u ......
HTML5中实现文件上传下载的三种解决方案(推荐)
对于大文件的处理,无论是用户端还是服务端,如果一次性进行读取发送、接收都是不可取,很容易导致内存问题。所以对于大文件上传,采用切块分段上传,从上传的效率来看,利用多线程并发上传能够达到最大效率。 本文是基于 springboot + vue 实现的文件上传,本文主要介绍服务端实现文件上传的步骤及 ......
How to enable Vsync with Software Rendering in SDL [SOLVED]. 如何在SDL2下实现垂直同步
How to enable Vsync with Software Rendering in SDL [SOLVED]. Hi, I just figured out the dirty way to enable vsync with software rendering on SDL. This ......
git 报错:fatal: unable to access 'https://XXXX.../': Failed to connect to github.com port 443 after 21023 ms: Timed out
问题: 下载github开源项目时报错 原因: 以前用过代理,这里取消代理就可以了 git config --global --unset http.proxy 结果: ......
Qt+QtWebApp开发笔记(三):http服务器动态html连接跳转基础交互
前言 网页很多时候是动态的,于是本篇文章目标实现一个简答的动态页面—页静态页面互相跳转,点击可以跳转到子页面。 Demo 下载地址 链接:https://pan.baidu.com/s/1bbhcu1XTiaJRYGRQRG5a0g?pwd=1234 HTML基本页面交换 上一篇的“Hello Wo ......
How to find the TLS used for the SQL Server connection
本文是How to find the TLS used for the SQL Server connection这篇英语文章的翻译,此文出处请见于文章底部链接:原文出处[1] 对于客户,我做了一些研究,如何找出SQL Server数据库会话连接使用了哪一种TLS协议。唯一的方式就是创建一个扩展事件 ......
Git-fatal: unable to access ‘https://gitlab.XX.git/‘: Could not resolve host: gitlab.XX.com.cn
git提交时报错: `fatal: unable to access 'https://gitlab.XX.git/': Could not resolve host: gitlab.XX.com.cn` 此时需要配置代理: `git config --global http.proxy XX.XX ......
Linux-find: missing argument to `-exec'
报错提示:find: missing argument to `-exec' 今天写一个清理脚本,用到了find命令。本来是这么写的: find . -type f -mtime +7 -name "*.log" -exec rm -rf {} \ 结果报错,find: missing argume ......
HTML5
1. HTML5的新特性 HTML5的新增特性主要是针对以前的不足,添加了一些新标签、新的表单和新的表单属性等。 1.1 HTML5新增的语义化标签 <header>:头部标签。 <nav>:导航标签。 <article>:内容标签。 <section>:定义文档某个区域。 <aside>:侧边栏标 ......
HTML中的attribute 和 property
在 HTML 中,属性(Attribute)和属性(Property)是用于描述 HTML 元素的相关特性的术语。 属性(Attribute)是指在 HTML 标签中声明的附加信息。它们以键值对的形式出现,用于提供元素的初始状态或配置选项。属性的名称是不区分大小写的,并且值可以是字符串或布尔值。 例 ......
HTML中常用字符实体
字符实体:在 HTML 中显示小于号 (<) 一些字符在 HTML 中拥有特殊的含义,比如小于号 (<) 用于定义 HTML 标签的开始。如果我们希望浏览器正确地显示这些字符,我们必须在 HTML 源码中插入字符实体。 字符实体有三部分:一个和号 (&),一个实体名称,或者 # 和一个实体编号,以及 ......
use SSH to connect to Raspberry Pi methods All In One
# use SSH to connect to Raspberry Pi methods All In One > `Raspberry Pi` ## user@hostname ```sh # 无需知道 Raspberry Pi 的 IP Address, 即可使用 SSH 连接 👍 $ ssh ......
HTML(二)
表格 表格的主要作用 1.表格主要用于显示、展示数据,因为它可以让数据显示的非常的规整,可读性非常好。特别是后台展示数据的时候,能够熟练运用表格就显得很重要。一个清爽简约的表格能够把繁杂的数据表现得很有条理 2.表格不是用来布局页面的,而是用来展示数据的。 3.表格的具体用法: <table> ......
flask_SQLAlchemy 出现了 Lost connection to MySQL server during query Mysql主机连接超时 错误。如何解决
使用python flask框架 flask_sqlalchemy 时出现了 Lost connection to MySQL server during query Mysql主机连接超时的问题 由于Mysql会定时处理长时间未连接使用的连接池 具体时长可通过 查看 show variables ......
支持复制粘贴word公式的百度HTML编辑器
当前功能基于PHP,其它语言流程大致相同 1.新增上传word json配置 在ueditor\php\config.json中新增如下配置: /* 上传word配置 */ "wordActionName": "wordupload", /* 执行上传视频的action名称 */ "wordFi ......
LeeeSe/MessAuto: 自动提取Mac平台的短信验证码,2FHey的免费替代品;Automatic extraction of SMS verification code for Mac platform, free alternatives to 2FHey (github.com)
DreamSaddle/MacCopier: MacCopier 是一个提供在 Macos 中收到短信验证码后自动复制到剪贴板功能的软件。 (github.com) LeeeSe/MessAuto: 自动提取Mac平台的短信验证码,2FHey的免费替代品;Automatic extraction o ......
How to Delete a Git Branch Both Locally and Remotely
# TL;DR version ``` https://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely/ // delete branch locally git branch -d loc ......
html转义代码,v-html 显示原始html字符串
methods: htmlEscape(str) { let s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(/</g, "<"); s = s.replace(/>/g ......
python基础学习-XPath解析html
参考地址:Python-Core-50-Courses/第33课:用Python解析HTML页面.md at master · jackfrued/Python-Core-50-Courses (github.com) XPath 是在 XML(eXtensible Markup Language) ......
python基础学习-CSS选择器解析HTML
参考地址:Python-Core-50-Courses/第33课:用Python解析HTML页面.md at master · jackfrued/Python-Core-50-Courses (github.com) 对于熟悉 CSS 选择器和 JavaScript 的开发者来说,通过 CSS 选 ......
【macOS】brew update报错:fatal: unable to access xxx & LibreSSL SSL_connect 解决方案
# ✨报错提示 ![](https://img2023.cnblogs.com/blog/2124073/202305/2124073-20230523153320805-1465056507.png) ```bash fatal: unable to access 'https://mirrors ......
itextpdf5.5.13给pdf添加图片水印、添加文字水印(平铺)、添加文字水印(单个)、添加页眉、页脚、页眉事件、添加图片
转载自简书用户:alex很累,感谢分享。原地址:https://www.jianshu.com/p/2b9c7a0300e4 一、相关工具类 1. Excel2Pdf.java (如代码不可用请查看原地址:https://www.jianshu.com/p/be82e26622a1) import ......
rails 前后端数据传递hash to json
controller.rb @data = {a: 1, b: 2}@data_new = {"a": 1, "b": 2} index.html var arr = <%= @data %> #=> {:a =>1, :b =>2} var arr = <%= raw @data %> #=> a ......
k8s Error: failed to prepare subPath for volumeMount "custom-logo" of container "grafana"
# 前言 使用 `k8s` 挂载卷文件时,使用了 `hostPath`,`type: File` ``` volumeMounts: - mountPath: /usr/share/grafana/public/img/grafana_icon.svg name: custom-logo subPa ......
java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/local/elasticsearch/data/]] with lock id [0]
## 原因 如果你是更改了elasticsearch的配置,有可能是新旧缓存数据冲突 ## 解决办法 删除es根路径下data文件夹 PS:经测试不影响生成的索引数据,如果数据重要,请谨慎操作,暂未知道原理。 ......
Git拉取代码报错:Can't Update No tracked branch configured for branch dev or the branch doesn't exist.To make your branch track a remote branch call
错误: 解决方法: 第一步: git pull origin(远程仓库名称) develop(远程分支名称) --allow-unrelated-histories 第二步: git branch --set-upstream-to origin(远程仓库名称)/develop(远程分支名称) de ......
webpack-安装html-webpack-plugin
# 安装html-webpack-plugin 运行如下的命令,即可在项目中安装此插件: npm install html-webpack-plugin -D # 配置html-webpack-plugin ```js // 导入html插件,得到一个构造函数 const HtmlPlugin = ......