分类为 “软件开发” 的博客
2019年6月28日

介绍 Splash是一个Javascript渲染服务。它是一个实现了HTTP API的轻量级浏览器,Splash是用Python实现的,同时使用Twisted和QT。Twisted(QT)用来让服务具有异步处理能力,以发挥webkit的并发能力。 服务器部署 docker run -p 5023:5023 -p 8050:8050 -p 8051:8051 scrapinghub/splash 代码示例 # splash server 地址 splash_url = 'http://splas

2019年12月13日

介绍 django-adminlte-ui 基于 adminlte 的 django 后台模板,页面基本全部兼容,欢迎测试 项目地址 https://github.com/wuyue92tree/django-adminlte-ui 欢迎测试,喜欢 star 下🍉 install pip install django-adminlte-ui setup INSTALLED_APPS = [ 'adminlteui', 'django.contrib.admin', 'd

2019年6月20日

介绍 在wordpress文章中,如何高亮插入的代码块 步骤 以WordStar主题为例 修改主题页面 打开theme Editor 编辑header.php 在head标签中插入一下代码 js <link href="https://cdn.bootcss.com/highlight.js/8.0/styles/monokai_sublime.min.css" rel="stylesheet"> <script src="https://cdn.bootcss.c

2019年5月8日

介绍 Puppeteer 是一个 Node 库,它提供了一个高级 API 来通过 DevTools 协议控制 Chromium 或 Chrome。Puppeteer 默认以 headless 模式运行,但是可以通过修改配置文件运行“有头”模式。 http://www.puppeteerjs.com/ https://try-puppeteer.appspot.com/ 安装 npm install puppeteer 示例 const puppeteer = require('puppetee

2019年4月30日

介绍 A configurable and versatile update server for all your Electron apps https://github.com/atlassian/nucleus 部署 生成gpg https://help.github.com/en/articles/generating-a-new-gpg-key http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/ https://github.com/atlass

2019年4月25日

问题描述 在electron的异步方法中通过page.evaluate()执行代码时出现异常 https://github.com/GoogleChrome/puppeteer/issues/1665 解决方案 将evaluate中包含的代码用`包裹起来,并执行。 # before await page.evaluate(async() => { console.log('1') })) # after await page.evaluate(`(async() => { con

2019年4月24日

介绍 Electron是GitHub开发的一个开源框架。它允许使用Node.js和Chromium完成桌面GUI应用程序的开发。Electron现已被多个开源Web应用程序用于前端与后端的开发,著名项目包括GitHub的Atom和微软的Visual Studio Code。 https://electronjs.org 示例 https://github.com/focusLogin/focuslogin_frontend 使用说明 设置cookie const cookie = { url:

2019年2月10日

将console.log日志输出到页面 # vue.js 代码 # 1\. 在mounted中初始化loggerMan # 2\. 在data中定义 {log_list: []} # 使用console.log时会将日志unshift到log_list,在页面展示log_list即可 loggerMan () { var old = console.log // var logger = document.getElementById('log') let self = this

2018年11月17日

介绍 deepin中部署微信开发工具 wcc.exe问题 sudo apt-get install wine-binfmt sudo update-binfmts --import /usr/share/binfmts/wine 更新 # 添加源 sudo vi /etc/apt/source.list deb https://yenole.gitee.io stable main # 添加公钥 curl https://yenole.gitee.io/sign.pub | sudo a

2018年10月10日

介绍 系统: ubuntu14.04 python版本:2.7.15 requests版本:2.21.0 问题描述 requests ssl 请求异常 SSLError: [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure 解决方案 https://stackoverflow.com/questions/31649390/python-req

1 2 »