会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
idlewith
个人博客:https://idlewith.com/,欢迎访问
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
21
下一页
2018年9月6日
remove white space from read
摘要: ``` num=${num//[[:blank:]]/} ```
阅读全文
posted @ 2018-09-06 15:03 idlewith
阅读(88)
评论(0)
推荐(0)
2018年9月4日
optimize the access speed of django website
摘要: ``` 1- ajax 2- move operation of logic move to javascript 3- rename django.fcgi to dispatch.fcgi 4- optimize sql 5- reduce the size of html * inline css * * remove '\n' 6- compress html ...
阅读全文
posted @ 2018-09-04 15:27 idlewith
阅读(87)
评论(0)
推荐(0)
2018年8月30日
dowload image from requests
摘要: ``` import requests import shutil url_png = "http://...png" path_image = "/usr/local/001" resp = requests.get(url, stream=True) with open(path_image, 'wb') as f: shutil.copyfileobj(resp.r...
阅读全文
posted @ 2018-08-30 18:26 idlewith
阅读(132)
评论(0)
推荐(0)
2018年8月29日
run jupyter from command
摘要: ``` jupyter nbconvert --to script --execute --stdout test_nbconvert.ipynb | python ```
阅读全文
posted @ 2018-08-29 18:38 idlewith
阅读(125)
评论(0)
推荐(0)
2018年8月28日
crawl wechat page
摘要: ``` #!/usr/bin/python # coding: utf-8 import re from collections import Counter import requests import time from bs4 import BeautifulSoup def count_zero(text): zero = dict(Counter(text)).get('0...
阅读全文
posted @ 2018-08-28 15:24 idlewith
阅读(155)
评论(0)
推荐(0)
2018年8月27日
use shadowsocks client on centos
摘要: 1 yum y install epel release 2 yum y install python pip 3 pip install shadowsocks 4 mkdir /etc/shadowsocks 5 vim /etc/shadowsocks/shadowsocks.json 6 v
阅读全文
posted @ 2018-08-27 17:39 idlewith
阅读(4)
评论(0)
推荐(0)
2018年8月22日
python version 2.7 required which was not found in the registry windows 7
摘要: ``` HKEY_CURRENT_USER\Software\Python\PythonCore\2.7\InstallPath default: D:\Python\ ExecutablePath: D:\Python\python.exe WindowedExecutablePath: D:\Python\pythonw.exe HKEY_CURRENT_USER\S...
阅读全文
posted @ 2018-08-22 17:15 idlewith
阅读(147)
评论(0)
推荐(0)
2018年8月20日
health
摘要: ``` import tkinter import time class Reminder: def __init__(self, text): self.root = tkinter.Tk() self.root.overrideredirect(True) self.root.geometry('{0}x{1}+0+0'.format...
阅读全文
posted @ 2018-08-20 11:07 idlewith
阅读(173)
评论(0)
推荐(0)
2018年8月15日
alternate rows shading using conditional formatting
摘要: ``` =MOD(row(), 2) = 0 ```
阅读全文
posted @ 2018-08-15 16:52 idlewith
阅读(83)
评论(0)
推荐(0)
word
摘要: inspection careful examination or scrutiny. examination a detailed inspection or study. scrutiny critical observation or examination.
阅读全文
posted @ 2018-08-15 16:30 idlewith
阅读(102)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
21
下一页
公告