自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

cnblogs.com/iMath

https://www.cnblogs.com/iMath

  • 博客(57)
  • 资源 (6)
  • 问答 (3)
  • 收藏
  • 关注

原创 [os.remove(f‘/home/ubuntu/LYYDownloaderServer/{name}‘) for name in glob.iglob(‘.log.*‘)]

[os.remove(f'/home/ubuntu/LYYDownloaderServer/{name}') for name in glob.iglob('LYYDownloaderServer_uwsgi.log.*')]

2023-01-30 21:41:45 126

原创 url文字定位 https://docs.djangoproject.com/en/4.1/intro/tutorial07/#:~:text=the%20“Add%20Another%20Choi

url文字定位

2022-12-28 23:14:54 127

原创 ubuntu nginx改时区

timedatectl set-timezone Asia/Shanghai

2022-06-29 17:57:07 975

原创 re.sub escape repl

https://www.google.com/search?q=re.sub+escape+repl&oq=re.sub+escape+repl&aqs=chrome..69i57.7218j0j4&sourceid=chrome&ie=UTF-8is it necessary to add a 'r' before the second argument in re.sub('#\*(.+?)\*#', '<b>\g<1></b>'.

2022-04-07 16:31:40 171

原创 Hypothesis标注不显示的解决方案

其中一个主要原因是因为url变化造成的,比如创建标注的时候网址url是:Writing your first Django app, part 2 | Django documentation | Django或Your first Wagtail site — Wagtail Documentation 2.16.1 documentation过了一段时间后网址变成了https://docs.djangoproject.com/en/4.0/intro/tutorial02/或

2022-03-29 14:19:38 762

原创 英酷词典 使用方法 必知必会

本文会介绍关于英酷词典的如下三方面内容:怎么获得极致体验?制作单词表并导入Anki词典管理怎么获得极致体验?虽然[英酷词典](https://www.cnblogs.com/iMath/p/EngkuDict.html)释义小窗口出现的速度目前还不够快,但是已经做到了在浏览器(包括360浏览器、谷歌浏览器等)和SumatraPDF阅读器里的极致体验——在这些软件里小窗口可以**秒现**,和你在视频演示里看到的一样快!为了获得这样的体验,你需要下载并安装这两款软件:英酷词典浏览器插件。下载方

2022-03-07 15:39:46 120

原创 python lockfile read write

https://docs.python.org/3/library/fcntl.html#fcntl.lockfhttps://stackoverflow.com/questions/32592698/how-to-lock-a-directory-between-python-processes-in-linuxhttps://www.google.com/search?q=Python+with+lock+file&newwindow=1&sxsrf=AOaemvJCtZ_ke5IN

2022-01-05 16:47:04 268

原创 Linux版超链接

<span style="text-align: right;"><a href="https://www.cnblogs.com/iMath/p/8461599.html" target="_blank" rel="noopener">Linux版</a></span>

2021-12-24 21:32:42 987

原创 getElementByXpath setInterval常用法

function getElementByXpath(path) { return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;}// getElementByXpath('//*[text()="标准分类"]')var intervalID = setInterval(() => { var element = getElemen..

2021-12-16 18:49:20 664

转载 selenium Enabled

3. NavigatingThe first thing you’ll want to do with WebDriver is navigate to a link. The normal way to do this is by callinggetmethod:driver.get("http://www.google.com")WebDriver will wait until the page has fully loaded (that is, theonloadeven...

2021-11-03 20:47:20 2728

原创 js QQ音乐歌词显示在浏览器标题

// ==UserScript==// @name New script - qq.com// @namespace Violentmonkey Scripts// @match https://y.qq.com/n/ryqq/player// @grant none// @version 1.0// @author -// @description 2021/10/21 下午3:19:39// ==/UserScript==(...

2021-10-22 14:34:04 245

原创 备份 我文章里的分配律证明

(a+b)⋅c=lim⁡n→∞((an+bn)⋅cn)=lim⁡n→∞(ancn+bncn)(a+b) \cdot c=\lim _{n \rightarrow \infty}\left(\left(a_{n}+b_{n}\right) \cdot c_{n}\right)=\lim _{n \rightarrow \infty}\left(a_{n} c_{n}+b_{n} c_{n}\right)(a+b)⋅c=limn→∞​((an​+bn​)⋅cn​)=limn→∞​(an​cn​+bn​cn​)

2021-08-21 21:43:17 111

原创 nginx uwsgi部署Django必备命令

后期更改只要这些操作sudo su -cd /home/ubuntu/LYYDownloaderServer/&&source LYYDownloaderServerEnv/bin/activate&&pkill -f uwsgi -9&&uwsgi --ini uwsgi.inisudo chmod 777 .sudo chmod 777 /home/ubuntu/LYYDownloaderServer/files/LYYDownloaderS

2021-08-18 23:02:50 178

原创 macrotrends金融数据抓取

def createLIBOR_Rate_CSV(): for LIBOR_Rate_Date_Period, DataId in LIBOR_Rate_Date_Period2DataId.items(): webpageSourceCode = getWebResponseText(f'https://www.macrotrends.net/assets/php/chart_iframe_comp.php?id={DataId}&url=1-month-libor-r..

2021-07-17 21:55:09 521 2

原创 等待图片全部加载然后打印PDF,未成功

已知lim⁡n→∞f(x1)+⋯+f(xn)n=L\lim _{n \rightarrow ∞} \frac{f\left(x_{1}\right)+\cdots+f\left(x_{n}\right)}{n}=Ln→∞lim​nf(x1​)+⋯+f(xn​)​=L其中f(xi)>0(i=0,1,2,...,n)f\left(x_{i}\right)>0 (i=0,1,2,...,n)f(xi​)>0(i=0,1,2,...,n),求lim⁡n→∞f(x0)+f(x1)+⋯+f(x

2021-05-16 19:32:00 240

原创 Enabled

改为其他的值就代表不可用

2021-04-30 18:18:14 952 1

原创 Python ctypes获取按键名字

改自https://stackoverflow.com/a/53734696/1485853那里的好像不能正常工作import atexit,ctypesimport threading,win32confrom ctypes import *from ctypes import wintypesfrom ctypes import c_short, c_char, c_uint8, c_int32, c_int, c_uint, c_uint32, c_long, Structure, WI

2021-04-13 09:56:41 354

转载 无法启动此程序,因为计算机中丢失 api-ms-win-crt-runtime-l1-1-0.dll

摘要我这边碰到的错误是在安装 MySQL Workbench 时出现的,这个文件是 Visual C++ Redistributable 下的一个文件。我按照其官网上标注的安装前提,安装了 Visual C++ 2015 Redistributable for Visual Studio 2015,重新安装 Workbench 仍然报该错误。问题描述解析其主要原因是在安装 Visual C++ 2015 Redistributable for Visual Studio 2015 时,系统中

2021-04-05 00:35:23 4713

原创 Lector阅读器折腾笔记

先安装http://djvu.sourceforge.net/然后pip install --upgrade lxml beautifulsoup4 xmltodict pymupdf python-djvulibre把第一步的软件文件C:\Program Files\DjVuLibre 全部copy到这里面C:\Users\Oscar\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\djvu启动C:\Users\Osca

2021-03-21 00:58:18 212

原创 js简单鼠标手势

var mousePressedEventList = [];function myFunction(e) { if (e.buttons == 1 || e.buttons == 2) { //按住左键 mousePressedEventList.push(e); } else if (e.buttons == 0) { //释放的时候 if (mousePressedEventList.length > 3) { firstPointY = .

2021-03-19 17:19:34 849

原创 实数的基本算术规则

对于任意给定的实数x,y,zx, y, zx,y,z,x≤xx \leq xx≤x.若 x≤yx \leq yx≤y 且 y≤x,y \leq x,y≤x, 则 x=yx=yx=y.若 x≤yx \leq yx≤y 且 y≤z,y \leq z,y≤z, 则 x≤zx \leq zx≤z不是x≤yx \leq yx≤y 就是 y≤xy \leq xy≤x.若 x≤y,x \leq y,x≤y, 则 x+z≤y+zx+z \leq y+zx+z≤y+z.若 x≤yx \leq yx≤y 且 0≤

2021-03-05 21:35:19 116

原创 数的连续体 Markdown备份

你也许会想这么证明:假设有一个数能产生这个分割,那么这个数本身可以归为A1A_1A1​这部分的最大数或A2A_2A2​这部分的最小数。假设aaa是A1A_1A1​内最大的有理数,那么aaa必然是正有理数,只要选定足够大的正整数nnn就可以让a+1na+\dfrac {1} {n}a+n1​变得比aaa稍大一点点,那么我们很自然就会想:是不是存在正整数nnn使得(a+1n)2<2\left(a +\dfrac {1} {n}\right) ^{2} < 2(a+n1​)2<2呢?若存在,那么

2021-01-27 17:21:17 83

原创 京东抢购代码

if (window.location.href.indexOf("https://item.jd.com/100012043978.html") != -1) { //去结算 页面 var intervalID3 = window.setInterval(function() { //点击退款理由取消订单 var btn=document.querySelector("#btn-reservation"); if ((btn.innerTe...

2021-01-27 10:19:33 1882

原创 KeyLogger hook

# https://stackoverflow.com/questions/53732628/python-using-winapi-setwindowshookexa-on-windows-10import win32conimport ctypesfrom ctypes import *from ctypes.wintypes import DWORDuser32 = windll.user32kernel32 = windll.kernel32class KBDLLHOOKSTRU

2020-12-21 14:02:40 103

原创 英语技能长处介绍

Expertise in programming and desktop software since 2004.Web application development with Python/Django/ | PHP/Laravel | GolangFrameworks : Django, Flask, Fsecond prize of a national singingWorking for the UX design of our website and its develop.

2020-12-03 20:14:18 178

原创 FinancialChartsWebsite常用命令

pip install django-apschedulercd /home/ubuntu/FinancialChartsWebsitesource /home/ubuntu/FinancialChartsWebsite/FinancialChartsWebsiteEnv/bin/activatesupervisorctl update all

2020-09-24 23:01:22 116

原创 反三角函数的积分公式

∫11−u2dudxdx=sin⁡−1u+C\int \frac{1}{\sqrt{1-u^{2}}} \frac{d u}{d x} d x=\sin ^{-1} u+C∫1−u2​1​dxdu​dx=sin−1u+C∫−11−u2dudxdx=cos⁡−1u+C\int-\frac{1}{\sqrt{1-u^{2}}} \frac{d u}{d x} d x=\cos ^{-1} u+C∫−1−u2​1​dxdu​dx=cos−1u+C∫11+u2dudxdx=tan⁡−1u+C\int \frac

2020-08-30 16:35:48 6004 1

原创 the trapezoidal rule for approximating Definite Integrals

Approximate ∫012dx1+x2\int_{0}^\frac{1}{2} \frac{d x}{1+x^{2}}∫021​​1+x2dx​ by using five subintervals. \quad Ans. 0.463表达式产出:leftPoint = 0rightPoint = 1 / 2subIntervalNum = 5subIntervalLen = '{}/{}'.format(rightPoint - leftPoint, subIntervalNum)exp

2020-08-20 12:36:33 146

原创 MathJax 2配置代码

2020-06-30 21:24:12 284

原创 Python下载网页

颜色下载 财政部会计准则委员会 的网页import requestsfrom bs4 import BeautifulSouprequestsSession = requests.Session() # if you’re making several requests to the same host, the underlying TCP connection will be reused, which can result in a significant performance .

2020-06-04 10:11:21 167

转载 黎曼积分动图、示意图备份

来自:https://giphy.com/gifs/math-MY1RMBRjfwvxS来自:https://jmahaffy.sdsu.edu/courses/f00/math122/lectures/riemann_sums/riemanns.html

2020-05-25 20:25:33 513

原创 乐影音下载器 建议回复

1.强烈希望能支持断点续传,网络错误或用户主动的暂停,再开始需要从头下载(哪怕只隔了几秒),对较大的你视频十分不利。一开始我的软件是支持断点续传的,但是有些网站的视频不支持断点续传,2.软件功能过于简单,虽然照顾了电脑新手,但确实功能单一,不利于使用。如只支持通过剪贴板中的链接下载视频,能选择和操作的空间很有限。3.希望能定向下载指定视频,而不是只能通过剪贴板链接选择视频。如非视频网站的...

2020-02-29 21:36:49 387

原创 Python 获取文件后缀名

import urllib.parse,osurl="http://220.165.10.15/videos/v0/20140815/3d/62/77772ee94ed4c3b6d265bca9f5d576cd.f4v?key=0dcb341c18a4b6f8f246841ad03aced98&src=iqiyi.com&su=a9c60180dc324addb9501c8f4...

2019-12-15 20:38:12 328

原创 HTML右对齐

<style>#DownloadOptions {display: flex;}#DownloadOptions a {padding-right:3em;/*The spec recommends avoiding percentage values for margin and padding on flex items because of unpredictable re...

2019-07-27 17:27:15 5686

原创 bilibili pc浏览器高画质视频分享嵌入

还没找到手机版高画质视频分享嵌入的代码<iframe src="https://player.bilibili.com/player.html?aid=33503034&cid=100689109&page=1&as_wide=1&&high_quality=1" scrolling="no" border="0" frameborder="no" ...

2019-07-19 19:50:29 3956 1

原创 *params、**params: Collecting Parameters and Distribute Parameters

################################*###############################The star in front of the parameter puts all the values into the same tuple.def print_params_2(title,*params): print tit...

2019-07-11 16:41:41 218

原创 早期的牛津lemmatize

# lemmaDict = IndexBuilder(r'E:\mdx-test\牛津高阶英语学习词典第八版.mdx') # 108749, 貌似不错,返回 ['@@@LINK=fence\r\n'))))))# def lemmatize(word):# lowercasedWord = word.lower()# dictResult = mdict.mdx_looku...

2019-05-30 22:02:33 206

原创 anki addon 插件编写示例

# import sys# # import the main window object (mw) from aqt# from aqt import mw# # import the "show info" tool from utils.py# from aqt.utils import showInfo# # import all of the Qt GUI library# ...

2019-05-30 01:22:20 1348

原创 cellclock.py

import sys from PySide2.QtGui import * from PySide2.QtCore import *from PySide2.QtWidgets import * ...

2019-04-30 10:12:43 81

原创 chrome net_error_map

https://chromium.googlesource.com/chromium/src.git/+/refs/tags/74.0.3729.78/components/domain_reliability/util.ccnet_error_map[] = { { net::OK, "ok" }, { net::ERR_ABORTED, "aborted" }, { net:...

2019-04-10 18:06:04 1158

英酷词典EngkuDict-installer.exe

英酷词典 主要功能: 碰到不会的单词?鼠标点击一下就可以看到释义——哪里不会点哪里,so easy! 集牛津、剑桥、柯林斯、韦氏、朗文等权威英语词典于一体,一键查询!也整合了百度、谷歌、DeepL翻译 允许添加mdx格式的词典 辅助你将查过的单词制成Anki卡片来记忆! 用法: 鼠标光标放在释义小窗口上就可以看到音标和发音小喇叭,在上面鼠标右键就可以跳转到单词的详细释义页面; 除了鼠标点击单词释义外,还可以把鼠标箭头放到单词上面,然后按一下键盘左下方的Alt键来释义,不想点的位置的单词就可以这么查,比如链接上面的单词; 有时候释义小窗口出不来或释义的单词不对,那么你可以把鼠标箭头在该单词上稍微移一下后点击或按Alt一次试试看,这是个小瑕疵,我会努力改进的。此外也可以通过双击或复制该单词的方式调出释义小窗口; 要结合Anki制作单词本或添加mdx格式的词典?点击查看详情 粘贴复制自PDF里的多行文字后,为了拼接各行的文字,通常需要自己手动去除行与行间的空格,然而在开着英酷词典的情况下你只用复制内容后在跳出来的小窗口上右键就可以在各个大窗口里复制到处理好的文本内容。

2024-02-10

Sams.MySQL Crash Course.2005.chm

Sams.MySQL Crash Course.2005.chm

2013-04-21

pyqt-model-view-framework-overview.pdf

pyqt-model-view-framework-overview 作者:陳俊嘉 a.k.a CCC

2013-04-21

Mathematica 7、8、9注册机

Mathematica 7、8、9注册机 超好用,激动人心!

2013-03-29

PyQt 4.9.4 Class Reference.chm

PyQt 4.9.4 Class Reference.chm

2012-10-19

Introduction to Python Programming and Developing GUI Applications with PyQT

Introduction to Python Programming and Developing GUI Applications with PyQT

2012-10-17

PySide 1.1.0 documentation

PySide 1.1.0 documentation 制作教程 http://redstone-cold.diandian.com/post/2012-09-21/40039455065

2012-09-21

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除