摘要:
问题原因由于多个线程同时读写session文件导致有线程的行为被拒绝报错,为了避免这种同时性问题,可以加一些延迟,或者每个线程有自己的副本,最后覆盖唯一的session解决方案https://github.com/webpy/webpy/issues/191https://github.com/we... 阅读全文
摘要:
网上8.XM版的简直眼睛杀手。从读秀上拖下来的高清http://pan.baidu.com/s/1gdKdxlT 阅读全文
摘要:
http://www.stanford.edu/class/archive/cs/cs143/cs143.1128 阅读全文
摘要:
xiami_downloader 本体见 https://github.com/latyas/xiami-downloader获取某歌手的所有专辑# -*- coding: utf-8 -*-"""Created on Tue Nov 12 04:25:17 2013@author: latyas"""import requestsfrom bs4 import BeautifulSoupimport mathimport reimport sysurl = 'http://www.xiami.com/artist/album 阅读全文
摘要:
标题已经很复杂了6v上下东西直接挂代理行不通,隧道弄了一下午没弄好,miredo也没弄好 囧………情况就略了,说起来太复杂了。今天弄了弄总算可以在实验室上下6v的东西了可恶的吉大……环境是寝室:路由+服务器服务器:ubuntu 12.04 + squid + lighttpd +transmission路由器开放 3128 给服务器的squid,9090开给transmission的RPC客户端:python + transmissionrpc库代码:#!/usr/bin/env python# -*- coding: utf-8 -*-import transmissionrpcimport 阅读全文
摘要:
工具chrome+pythonchrome打开虾米的播放列表,f12看network情况请求了(此处sid不一定能打开)http://www.xiami.com/song/gethqsong/sid/177005963内容{"status":1,"location":"","msg":"8h2fmFjWI5TrY55eHg2tFiihuFsEGUwCEEGzOt%l.%dl%eEtJRC7eK1p2ec2Gg54xtfXCq1m4%F.oFIaEu4zIQWcaCe3mxm%pScz9sv9r3RHGA3 阅读全文
摘要:
Addison Wesley - 2001 - Knuth - The Art of Computer Programming Vol I II III IV.pdfmagnet:?xt=urn:btih:d224444c588a0380172875286a1e6c87d8ab14d0&dn=Addison+Wesley+-+2001+-+Knuth+-+The+Art+of+Computer+Programming+&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.public 阅读全文
摘要:
之前写的,同样没什么技术含量,只是方便的小工具,需要的话节省再写一遍的时间。https://github.com/latyas/pdf-operator/blob/beta/booklet.py主要是人比较屌丝,买不起书,印也印不起A4规格的书,楼下文印店没有直接打印小册子选项,书印成条状是一种多么蛋疼的事情。分奇数/4N/4N+2的情况考虑,用了pyPdf库我是先拿这玩意调序以后拿briss切割,然后输出成A4 2pages/side 调好页间距拿去楼下打的,不然怕切的时候切太多装订过头了…… 阅读全文
摘要:
由于太懒了,查单词的时候不想打开浏览器,顺手写了这个小东西,没啥技术含量,只图方便Github:https://github.com/latyas/latyas-codes除了webster外其他都带记录。 阅读全文
摘要:
机器是Thinkpad W520 ,在ubuntu 12.04下Ethernet无法正常运转,插上网上后总是自动关闭网卡然后又开启,重连。Google了一下似乎 Intel 82579LM 很多都有这个问题,于是找了一下终于找到了答案echo on | sudo tee /sys/class/net/eth0/device/power/controlfrom :http://askubuntu.com/questions/284421/ethernet-problem-in-ubuntu-13-04it works! 阅读全文