- 博客(275)
- 资源 (15)
- 收藏
- 关注
原创 csv 导入iphone通讯录
csv 导入iphone通讯录 使用代码生成谷歌标准csv 在谷歌通讯录中 https://contacts.google.com/ 导入csv 导出iphone 支持的vcf 用iphone的通讯录打开vcf 部分生成csv代码 import csv def w_csv(forms): with open('contants.csv', 'w', newline='') as csvfile: fieldnames = """Name,Given Name,Additiona
2021-02-03 18:36:48
2633
原创 URI和URL的区别 个人理解
URI:统一资源标识符(Uniform Resource Identifier,URI) URL:统一资源定位符(Uniform Resource Locator,URL) URL 是 URI 的一种实现方式,标识资源可以通过定位实现。 个人理解,不喜勿喷 参考文章:百度百科-URI ...
2020-05-02 09:55:38
366
原创 Python爬虫 乐居字体反爬分析 (含源码)
严重声明:本文仅用于学习交流,不得用于商业用途,同时希望大家遵循网络协议,维护网络和谐。 上一篇文章我们分析了一下人人车的字体反爬,但是好像python进行逆向分析没有很全,那么今天我们来看一下乐居的字体反爬是怎么做的,然后讲一下这个代码是怎么走的,还是先看网站(乐居 ): 因为我们需要的重要信息都在详情页里面,所以,点开一个新房的详情页。按F12观察网页源码里面和正文的异同。如下图所示,我...
2020-04-28 23:21:28
703
2
原创 爬虫 人人车字体反爬分析(含源码)
严重声明:本文仅用于学习交流,不得用于商业用途,同时希望大家遵循robots协议,维护网络和谐。 本猿最近在逛一些网站的时间。在打开浏览器的f12查看人家前端代码咋写的时候,经常会发现就是页面上显示的内容和源码里面的不一样,然后自己请求一遍也还是不一样,奇怪,猿,妙不可言?本着猿精神,上网查了下,这种属于字体反爬策略。应用的还是不少的,所以,在这里将在下对字体反爬的见解写一下。 先观察人人车网站...
2020-04-27 19:32:52
1245
原创 Broken references in Virtualenvs
Broken references in Virtualenvs problem I recently installed a bunch of dotfiles on my Mac along with some other applications dyld: Library not loaded: @executable_path/../.Python Referenced from: ...
2020-02-20 15:20:17
209
原创 '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
632
原创 cors
from flask import Flask from flask_cors import CORS app = Flask(__name__) CORS(app)
2019-12-03 17:50:59
183
原创 pil
pillow 处理大文件,防止截断 import PIL.ImageFile import PIL.Image import PIL.ExifTags PIL.ImageFile.LOAD_TRUNCATED_IMAGES = True
2019-11-30 21:52:15
295
原创 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
3426
原创 uuid
虚拟机的话MAC地址是不一样的, 规范定义了包括网卡MAC地址、时间戳、名字空间(Namespace)、随机或伪随机数、时序等元素。 UUID具有以下涵义: 经由一定的算法机器生成 为了保证UUID的唯一性,规范定义了包括网卡MAC地址、时间戳、名字空间(Namespace)、随机或伪随机数、时序等元素,以及从这些元素生成UUID的算法。UUID的复杂特性在保证了其唯一性的同时,意味着只能由计算机...
2019-11-22 14:34:40
363
原创 ubuntu user
useradd somename passwd somename userdel -r www who usermod -aG sudo somename
2019-11-20 14:19:02
252
原创 navicat
Install Navicat for MySQL on Mac OSX App name: Navicat for MySQL App description: navicat-for-mysql (App: Navicat for MySQL.app) App website: http://www.navicat.com/products/navicat-for-mysql Install ...
2019-10-11 19:25:22
3740
原创 centos install fonts
download .ttf into /usr/share/fonts/chinese fc-cache /usr/share/fonts/chinese/
2019-09-20 14:37:45
540
原创 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
541
原创 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
714
原创 zsh
chsh -s /bin/bash sh -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
412
原创 create docker images
构建Docker镜像 通过 Dockerfile 自动构建镜像; docker build -t myimage ./ docker images 尽量精简,不安装多余的软件包。 尽量选择 Docker 官方提供镜像作为基础版本,减少镜像体积。 Dockerfile 开头几行的指令应当固定下来,不建议频繁更改,有效利用缓存。 多条 RUN 命令使用’'连接,有利于理解且方便维护。 通过 -...
2019-09-07 22:00:01
434
原创 chrome open axure 自动跳转到axure插件
找到index 删除 $(Window).bind(‘load’, function(){ 中的内容 });
2019-09-06 21:07:22
577
原创 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
777
原创 mysql_python
from pymysql import connect from pypinyin import pinyin, lazy_pinyin, Style conn = connect(host='localhost', port=3306, database='draw', user='dba', password='password', charset='utf8') cur = conn.c...
2019-09-06 20:50:50
365
原创 ssh 不断开
ssh Configure your system, system-wide, for all connections By editing: /etc/ssh/ssh_config And add the line: ServerAliveInterval 10 Or, per-server ~/.ssh/config Host keepsdroppingme.com ServerAli...
2019-09-06 17:56:11
342
原创 docker command
docker docker login --username=username ccr.ccs.tencentyun.com docker tag [ImageId] ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[镜像版本号] docker push ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[...
2019-09-06 17:54:04
416
原创 konga
konga access konga konga service access real service kong-kong-proxy service access process notify_service plugins -> Routes -> notity_service_route /sms, /email -> SERVICES -> UPSTR...
2019-08-31 16:16:08
630
原创 yield
from collections import Iterable def 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
170
原创 python 定时任务
pip install schedule import schedule import time def 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
310
原创 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
259
原创 SSLANT
Knowledge is Power Program SSLANT Simle Sit up Listen Ask questions Nod when being spoken to Track with your eyes
2019-08-16 18:14:37
320
原创 python proxy socks
pip install PyYAML==5.1 pip install requests==2.21.0 bash -c "pip install -U requests[socks]" set local 1080 port as socks proxy port import requests proxies = { "http": "socks5h://127.0.0.1:108...
2019-08-13 21:30:56
765
原创 PIL Image to bytes
import io from 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
4849
1
原创 Can't format Ubuntu installation stick
I got this fixed by doing the following On your unity dash, type gnome-disks and launch the Disks application Select the disk or drive you want to format Press CTRL+F Click format. After formatting,...
2019-05-21 19:34:48
226
原创 Can't format Ubuntu installation stick
I got this fixed by doing the following On your unity dash, type gnome-disks and launch the Disks application Select the disk or drive you want to format Press CTRL+F Click format. After formatting,...
2019-05-21 19:34:47
256
原创 system start error
dmesg cd /var/log cat boot.log cat dpkg.log cat kern.log cat syslog
2019-05-19 14:01:21
636
原创 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
758
原创 sougo input shortcuts
ctrl + space --> open sougou config win + space --> switch with english and chinese
2019-05-16 10:18:13
288
原创 nouveau to nvidia dirver
sudo -i 如何有效的禁用Ubuntu的nouveau驱动? 1.添加conf 文件:cat /etc/modprobe.d/blacklist-nouveau.confblacklist nouveauoptions nouveau modeset=0 2. 重新生成 kernel initramfs:sudo update-initramfs -u 3. 重启:sudo reboot ...
2019-05-14 09:52:59
288
基于单片机的智能家居系统(毕业论文_终稿)
2018-02-02
matlab代码转换为python代码
2018-05-25
场景漫游源代码(c++)可以直接运行
2018-02-02
数据结构动画演示完整版
2018-05-08
人脸识别代码(包含奇异值分析,说明书)
2018-02-02
Shell Programming in Unix Linux and OS X(4th) 英文pdf 第4版
2018-09-14
A Course in Game Theory.pdf
2018-05-08
串口调试显示在七段数码管整个项目包含详细文档,程序
2018-02-02
Hadoop集群搭建指南.pdf
2018-02-02
数据结构代码与课件C++
2018-05-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅