在linux编程时,有时需要通过系统中已有的邮件客户端进行附件添加。 1. Thunderbird /usr/lib/thunderbird/thunderbird -compose attachment='/tmp/simple-scan-75G3Z0/scan.jpeg' 2. Evolutio ...
分类:
系统相关 时间:
2021-06-29 16:01:55
阅读次数:
0
二分 求一个序列的最长上升子序列个数。 本程序采用边读边处理 + 二分法。 ll f[maxn], ans = 1; //注意答案个数初始化为1 int main() { ll n = read(); for (int i = 1; i <= n; ++i) { int x = read(); if ...
分类:
其他好文 时间:
2021-06-29 15:59:12
阅读次数:
0
Linux系统调用 原文:https://www.cnblogs.com/ycw0923/p/12913925.html 一.为何要有系统调用 unix内核分为用户态和内核态,在用户态下程序不内直接访问内核数据结构或者内核程序,只有在内核态下才可访问。请求内核服务的进程使用系统调用的特殊机制,每个系 ...
分类:
系统相关 时间:
2021-06-29 15:58:17
阅读次数:
0
微信小程序报错:Cannot read property ‘forceUpdate‘ of undefined ...
分类:
微信 时间:
2021-06-29 15:38:13
阅读次数:
0
一、添加数据库用户禅道数据库管理用的是adminer,但是为了安全,访问adminer的时候需要身份验证,需要在服务器运行/opt/zbox/auth/adduser.sh来添加用户首先确保服务是启动的(mysql和apache启动状态),先 cd /opt/zbox/auth/,然后执行 ./ad ...
分类:
数据库 时间:
2021-06-28 21:12:17
阅读次数:
0
Js得到选中的文字 (function getSelectionText() { if (window.getSelection) { return window.getSelection().toString(); } else if (document.selection && document ...
分类:
其他好文 时间:
2021-06-28 21:07:38
阅读次数:
0
步骤 1:检查已安装的内核版本 linux内核版本可以参考https://www.kernel.org/ 步骤 2:在 CentOS 7 中升级内核 大多数现代发行版提供了一种使用 yum 等包管理系统和官方支持的仓库升级内核的方法。 但是,这只会升级内核到仓库中可用的最新版本 - 而不是在 htt ...
分类:
其他好文 时间:
2021-06-28 21:06:08
阅读次数:
0
小程序登录后端实现 技术概述 学习该技术的原因:本次软工实践,我们小组的项目是微信小程序,因此特地学习了小程序登录相关的技术 难点:没什么难点 技术详述 登录流程描述 调用 wx.login()获取 临时登录凭证code ,并回传到后端。 后端调用 auth.code2Session 接口,换取 用 ...
分类:
微信 时间:
2021-06-28 21:00:47
阅读次数:
0
单片机十天征服你-第二讲-流水灯设计、蜂鸣器发声、继电器设计 ## 各大品牌官网申请免费样片 流水灯设计 //二极管闪烁 #include<reg52.h> sbit p1_1=P1^0; unsigned int a; void main() { while(1) { a=50000; p1_1= ...
分类:
其他好文 时间:
2021-06-28 21:00:26
阅读次数:
0
前序遍历: result = [] st = [root] while st: node = st.pop(-1) if node.right: st.append(node.right) if node.left: st.append(node.left) result.append(node.v ...
分类:
其他好文 时间:
2021-06-28 20:43:55
阅读次数:
0