- 博客(275)
- 资源 (15)
- 收藏
- 关注
原创 csv 导入iphone通讯录
csv 导入iphone通讯录使用代码生成谷歌标准csv在谷歌通讯录中 https://contacts.google.com/ 导入csv导出iphone 支持的vcf用iphone的通讯录打开vcf部分生成csv代码import csvdef w_csv(forms): with open('contants.csv', 'w', newline='') as csvfile: fieldnames = """Name,Given Name,Additiona
2021-02-03 18:36:48
2271
原创 URI和URL的区别 个人理解
URI:统一资源标识符(Uniform Resource Identifier,URI)URL:统一资源定位符(Uniform Resource Locator,URL)URL 是 URI 的一种实现方式,标识资源可以通过定位实现。个人理解,不喜勿喷参考文章:百度百科-URI...
2020-05-02 09:55:38
323
原创 Python爬虫 乐居字体反爬分析 (含源码)
严重声明:本文仅用于学习交流,不得用于商业用途,同时希望大家遵循网络协议,维护网络和谐。上一篇文章我们分析了一下人人车的字体反爬,但是好像python进行逆向分析没有很全,那么今天我们来看一下乐居的字体反爬是怎么做的,然后讲一下这个代码是怎么走的,还是先看网站(乐居):因为我们需要的重要信息都在详情页里面,所以,点开一个新房的详情页。按F12观察网页源码里面和正文的异同。如下图所示,我...
2020-04-28 23:21:28
610
2
原创 爬虫 人人车字体反爬分析(含源码)
严重声明:本文仅用于学习交流,不得用于商业用途,同时希望大家遵循robots协议,维护网络和谐。本猿最近在逛一些网站的时间。在打开浏览器的f12查看人家前端代码咋写的时候,经常会发现就是页面上显示的内容和源码里面的不一样,然后自己请求一遍也还是不一样,奇怪,猿,妙不可言?本着猿精神,上网查了下,这种属于字体反爬策略。应用的还是不少的,所以,在这里将在下对字体反爬的见解写一下。先观察人人车网站...
2020-04-27 19:32:52
1158
原创 Broken references in Virtualenvs
Broken references in VirtualenvsproblemI recently installed a bunch of dotfiles on my Mac along with some other applicationsdyld: Library not loaded: @executable_path/../.Python Referenced from: ...
2020-02-20 15:20:17
174
原创 'NoneType' object has no attribute 'foreign_key_ddl'
File "./watermark/models.py", line 103, in <module> class WaterMark(db.Model): File "./watermark/models.py", line 107, in WaterMark INTEGER(unsigned=True), File "/usr/local/lib/pyt...
2019-12-09 17:40:15
596
原创 cors
from flask import Flaskfrom flask_cors import CORSapp = Flask(__name__)CORS(app)
2019-12-03 17:50:59
149
原创 pil
pillow 处理大文件,防止截断import PIL.ImageFileimport PIL.Imageimport PIL.ExifTagsPIL.ImageFile.LOAD_TRUNCATED_IMAGES = True
2019-11-30 21:52:15
246
原创 sqlalchemy.exc.NoForeignKeysError: Could not determine join condition between parent/child tables on
Flask SQLAlchemy AmbiguousForeignKeysError Could not determine join condition between parent_id = Column( INTEGER(unsigned=True), ForeignKey('File.id'), default=1, ) ...
2019-11-25 15:51:32
3301
原创 uuid
虚拟机的话MAC地址是不一样的,规范定义了包括网卡MAC地址、时间戳、名字空间(Namespace)、随机或伪随机数、时序等元素。UUID具有以下涵义:经由一定的算法机器生成为了保证UUID的唯一性,规范定义了包括网卡MAC地址、时间戳、名字空间(Namespace)、随机或伪随机数、时序等元素,以及从这些元素生成UUID的算法。UUID的复杂特性在保证了其唯一性的同时,意味着只能由计算机...
2019-11-22 14:34:40
320
原创 ubuntu user
useradd somenamepasswd somenameuserdel -r wwwwhousermod -aG sudo somename
2019-11-20 14:19:02
219
原创 navicat
Install Navicat for MySQL on Mac OSXApp name: Navicat for MySQLApp description: navicat-for-mysql (App: Navicat for MySQL.app)App website: http://www.navicat.com/products/navicat-for-mysqlInstall ...
2019-10-11 19:25:22
3609
原创 centos install fonts
download .ttf into /usr/share/fonts/chinesefc-cache /usr/share/fonts/chinese/
2019-09-20 14:37:45
361
原创 IPv4 forwarding is disabled. Networking will not work
How to Resolve Docker WARNING: IPv4 forwarding is disabled. Networking will not work.If you have freshly deployed Docker for testing and learning purpose, you might get this error while trying to lau...
2019-09-12 15:51:46
480
原创 centos安装使用puppeteer和headless chrome
...node_modules/puppeteer/.local-chromium/linux-496140/chrome-linux/chrome: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory./c...
2019-09-10 19:57:22
643
原创 zsh
chsh -s /bin/bashsh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"# set item2/perferance/profile/general/command/ /user/local/bin/zsh# 或者chsh -s /bin/zs...
2019-09-09 14:33:54
371
原创 create docker images
构建Docker镜像通过 Dockerfile 自动构建镜像;docker build -t myimage ./docker images尽量精简,不安装多余的软件包。尽量选择 Docker 官方提供镜像作为基础版本,减少镜像体积。Dockerfile 开头几行的指令应当固定下来,不建议频繁更改,有效利用缓存。多条 RUN 命令使用’'连接,有利于理解且方便维护。通过 -...
2019-09-07 22:00:01
394
原创 chrome open axure 自动跳转到axure插件
找到index删除$(Window).bind(‘load’, function(){中的内容});
2019-09-06 21:07:22
538
原创 sqlacodegen
1、使用 sqlacodegen 自动生成已有数据表的 SQLAlchemy的Model(1)安装 sqlacodegen:在控制台命令行下执行如下命令pip install sqlacodegen安装完毕后通过在dos下执行: sqlacodegen --help,可以获取帮助信息(2)在命令行执行如下命令,生成model.py文件sqlacodegen mysql+pymysql...
2019-09-06 21:06:01
711
原创 mysql_python
from pymysql import connectfrom pypinyin import pinyin, lazy_pinyin, Styleconn = connect(host='localhost', port=3306, database='draw', user='dba', password='password', charset='utf8')cur = conn.c...
2019-09-06 20:50:50
320
原创 ssh 不断开
sshConfigure your system, system-wide, for all connections By editing: /etc/ssh/ssh_config And add the line:ServerAliveInterval 10Or, per-server ~/.ssh/configHost keepsdroppingme.com ServerAli...
2019-09-06 17:56:11
256
原创 docker command
dockerdocker login --username=username ccr.ccs.tencentyun.comdocker tag [ImageId] ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[镜像版本号]docker push ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[...
2019-09-06 17:54:04
342
原创 konga
kongaaccess kongakonga serviceaccess real servicekong-kong-proxy serviceaccess processnotify_service plugins -> Routes -> notity_service_route /sms, /email -> SERVICES -> UPSTR...
2019-08-31 16:16:08
577
原创 yield
from collections import Iterabledef flatten(items, ignore_types=(str, bytes)): for x in items: if isinstance(x, Iterable) and not isinstance(x, ignore_types): yield from flat...
2019-08-22 16:51:45
135
原创 python 定时任务
pip install scheduleimport scheduleimport timedef job(): print("I'm working...")schedule.every(10).minutes.do(job)schedule.every().hour.do(job)schedule.every().day.at("10:30").do(job)sch...
2019-08-21 19:48:03
264
原创 ubuntu系统下matplotlib中文乱码问题
在ubuntu 下利用matplotlib 绘图的时候,图像上中文显示乱码下载中文字体simhei.ttf, 网址为http://fontzone.net/download/simhei搜索 matplotlib 字体的安装位置locate -b '\mpl-data'会得到 这个路径/usr/share/matplotlib/mpl-data下面有fonts/ttf这个目录,进入这...
2019-08-20 19:19:22
215
原创 SSLANT
Knowledge is Power ProgramSSLANTSimleSit upListenAsk questionsNod when being spoken toTrack with your eyes
2019-08-16 18:14:37
277
原创 python proxy socks
pip install PyYAML==5.1pip install requests==2.21.0 bash -c "pip install -U requests[socks]"set local 1080 port as socks proxy portimport requestsproxies = { "http": "socks5h://127.0.0.1:108...
2019-08-13 21:30:56
655
原创 PIL Image to bytes
import iofrom PIL import Image# resp = requests.get(url)# if resp.status_code == 200:# _im = BytesIO(resp.content)# im = PIL.Image.open(_im)im = Image.open('./lihao.png')# file_...
2019-08-05 20:34:46
4711
1
原创 Can't format Ubuntu installation stick
I got this fixed by doing the followingOn your unity dash, type gnome-disks and launch the Disks applicationSelect the disk or drive you want to formatPress CTRL+FClick format.After formatting,...
2019-05-21 19:34:48
191
原创 Can't format Ubuntu installation stick
I got this fixed by doing the followingOn your unity dash, type gnome-disks and launch the Disks applicationSelect the disk or drive you want to formatPress CTRL+FClick format.After formatting,...
2019-05-21 19:34:47
218
原创 system start error
dmesg cd /var/logcat boot.logcat dpkg.logcat kern.logcat syslog
2019-05-19 14:01:21
586
原创 mysql procedure
show procedure status like '%data';show create procedure idata;SELECT * FROM information_schema,Routines WHERE ROUTINE_NAME=’CountProc1’ AND ROUTINE_TYPE=’PROCEDURE’ \G
2019-05-17 10:35:34
693
原创 sougo input shortcuts
ctrl + space --> open sougou configwin + space --> switch with english and chinese
2019-05-16 10:18:13
241
原创 nouveau to nvidia dirver
sudo -i如何有效的禁用Ubuntu的nouveau驱动?1.添加conf 文件:cat /etc/modprobe.d/blacklist-nouveau.confblacklist nouveauoptions nouveau modeset=02. 重新生成 kernel initramfs:sudo update-initramfs -u3. 重启:sudo reboot...
2019-05-14 09:52:59
249
Shell Programming in Unix Linux and OS X(4th) 英文pdf 第4版
2018-09-14
matlab代码转换为python代码
2018-05-25
A Course in Game Theory.pdf
2018-05-08
数据结构动画演示完整版
2018-05-08
数据结构代码与课件C++
2018-05-08
场景漫游源代码(c++)可以直接运行
2018-02-02
人脸识别代码(包含奇异值分析,说明书)
2018-02-02
串口调试显示在七段数码管整个项目包含详细文档,程序
2018-02-02
基于单片机的智能家居系统(毕业论文_终稿)
2018-02-02
Hadoop集群搭建指南.pdf
2018-02-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人