各位C照没考过的真的可以去死了
新西兰的狗狗都会开车了。还手动档的哦亲!!!
Posted
archive
This blog is rated R⃣ , viewer discretion is advised
新西兰的狗狗都会开车了。还手动档的哦亲!!!
Posted
archive
信息一
信息二:
现查明,你公司擅自扩大国内因特网虚拟专用网业务覆盖范围,违反《电信业务经营许可管理办法》(工信部令 …
Posted
archive
马克一下。。。exec这个没想到shell里也可以用啊
exec 3<>/dev/tcp/www.google.com/80
echo -e "GET / HTTP/1.1\n\n">&3
cat <&3
简单的端口扫描:
$ for p in {1..1023}; do(echo …
Posted
archive
场景:有多个github账号,比如公司一个,私人一个。现在想在同一台主机上同时维护公司的和私人的repo
大家可能会尝试把一个 …
Posted
archive
看到这个报道 封锁OpenVPN与加密流分类的学术论文
突然觉得几年前的事情现在应该又走到了一个拐点。
6年前我们会用squid …
Posted
archive
先看这个视频
http://news.cntv.cn/program/xinwenzhoukan/20120630/109536.shtml
觉得这种骑车的够危险了吧。
再看这个视频
http://www.56.com/u21/v_Nzc0NDQyMzQ.html
觉得这人是不是很傻 …
Posted
archive
最后那个 (╯°□°)╯︵ ┻━┻ 真是破坏这么好一片文章了。
Posted
archive
用了好几个chrome的time tracking扩展,用来跟踪我上网都把时间浪费在哪些网站上了。
这几天的发现:
Posted
archive
看到一条微博
@互联网的一些事 : 马化腾说过:“在腾讯不允许说什么事情在技术上做不到。”
让我想起来了这个经典的XY problem,今 …
Posted
archive
This is what you do when you have a shitting Internet connection:
$ vim ~/.bash_aliases
function retry(){
false;
while [ $? -gt 0 ];
do $@;
done;
}
To rape your server, just retry ssh -o ConnectTimeout=1 blah@foobar
Shit just got working for now.
Posted
archive
dump一个db的时候发现有个 INT 类型居然保存的数据是 20121126
问了下,对方说,就是这个样子设计的,方便用来比较日期
我这种老 …
Posted
archive
从HN上看到这篇帖子 What Has Changed,觉得对未来很糟糕的样子。
特别是这一段:
the consumer web has matured. we are almost 20 years into the consumer web and we have large platforms that are …
Posted
archive
Video exported from Lumix GF2 using Handbrake, GIF created using Cliplets.
Posted
archive
按照这个帖子,挖个坑
现代网站架构一般不能缺这几个东西:
Posted
archive
以前感谢一位名叫lol的网友得到了两个RTL2832U dongle开始玩rtlsdr
这玩意的参数是:
Posted
archive
So if you want to write a Queryset in Django like this:
models.MyModel.objects.filter( Q(a=1) | Q(b=2).extra(where=[""]) )
It desn't work, because extra()
can not be used on a django.db.models.Q
object
Instead, you can write like this:
qs = models.MyModel.objects …
Posted
archive
Instasll new shit on legacy OS is always pain in the ass.
Uwsgi 1.4 includes some awesome new features using zeromq, but it's impossible to install directly using pip
. So here's the patch
dpkg -i …
Posted
archive
几天前看到这个新闻:
知名FreeBSD开发者、 Varnish web-server缓存作者Poul-Henning Kamp认为,开源软件的市集开发模式(见ESR的《大教堂和市集》)创造了一代 …
Posted
archive
微博上看到这个段子,赶快收集下来了。
Posted
archive
前几天从CSK的微博看了这个视频
今天看到一个讨论:
发信人: i3721pp (noosa), 信区: Aero
标 题: 王华明的报告“航空高性能大型复杂整体构 …
Posted
archive
突然觉得这个joke好经典
@法门寺释者慧:#禅宗公案#武士手握一条鱼到一休禅师房间说道:“咱打赌,我手中这鱼是死是活?”一休 …
Posted
archive
在帖子里包含以下特殊字符,你有80%的可能性日掉各种写得不好的xml解析器:
官方文档在这里 http://www.w3.org …
Posted
archive
大图:http://att.newsmth.net/att.php?p.107.51216.290.jpg
tg是不可能被大棒轻易敲掉了。
Posted
archive
就是在街上和任意陌生人对话,装作认识
Posted
archive
我去看了下,的确太强了
发信人: temporary (昙花一现), 信区: NetNovel
标 题: 网文自动化到这种程度了咩
发信站: 水木社区 (Thu Nov 8 15:32:29 2012), 站 …
Posted
archive
I have a overal negative review on To-Do & GTD apps on android . Today I tried Astrid Tasks (com.timsu.astrid
). It was a mess
Posted
archive
首先看到 这里 http://www.hi-pda.com/forum/viewthread.php?tid=1071697
Hi!PDA论坛坛友francisngl发布了一篇有关预测Surface前景的文章
然后被tech2ipo转,然后被cnbeta转:Surface必将 …
Posted
archive
看到一则消息 http://weibo.com/1895520105/z3MDU9728
据说是小米TV。
不管内容实质如何了,但是我希望有几个功能:
Posted
archive
这他妈不科学。
Posted
archive
家里有个老机器 海美迪HD 300B,用的是Realtek 1073DD+方案,发现一个很猛的固件:
http://www.hdpfans.com/thread-120536-1-1.html
吐槽一下,DLNA被国内翻译成 多屏互动 。搞 …
Posted
archive
玩了一下Intel UPnP Device Spy很好玩
让设备播放媒体很简单:
python -m SimpleHTTPServer
然后随便指定了一个avi。就OK了 …
Posted
archive
终于搞清楚了几个概念。
DLNA是一套基于UPnP的4层协议,基于HTTP+SOAP的,是Sony在2004年提出的。
有如下几个角色:
Posted
archive
据说这样就行了
$ LD_PRELOAD="/usr/lib/libtcmalloc.so"
Posted
archive
《You aren’t imagining it: The web is a mess》这篇文章提出了一些比较犀利的观点:
Web已经乱死了。
Posted
archive
The most depression thing today, is I found a solution to a problem from my OWN BLOG FOUR years ago!
Bottle.py's dev server auto-reloading sucks hell.
The child process will have os.environ['BOTTLE_CHILD'] set to True and start as a normal non-reloading app server. As soon as …
Posted
archive
Running bottlepy with default server (wsgiref.simple_server
) is always dog slow for me, after some digging I found that the fucking server is trying to resolve the IP address of 10.x.x.x, both the server and client, into hostnames so the fucking logger can 'properly' display them …
Posted
archive
It is a bit different than your standard FEC. Traditionally, FEC works on a block (of bits/bytes) by block basis. You need to the entire block to decode the message. So the transmitter needs a good guess on the channel capacity to choose the correct coding strength for the …
Posted
archive
在django.utils.functional
里发现的。
class cached_property(object):
"""
Decorator that creates converts a method with a single
self argument into a property cached on the instance.
"""
def __init__(self, func):
self.func = func
def __get__(self, instance, type):
res = instance.__dict__[self.func.__name__] = self.func …
Posted
archive
安装pv:
sudo apt-get install pv
下行:
$ ssh est@my_host 'cat /dev/zero' | pv > /dev/null
144kB 0:00:05 [ 121kB/s] [ <=> ]
上行:
$ yes | pv | ssh est@my_host "cat > /dev/null"
2.06MB 0:00:05 [1.96MB/s] [ <=> ]
测试本机IO能 …
Posted
archive
最近在android上玩RMaps Ext和Mobile Atlas Creator (MOBAC)
一直觉得tg的天地图其实道路信息和POI做的比其他厂商都好,所以网上找到了这个天地 …
Posted
archive
今天才知道的。windows下,干净hosts,可以nslookup 和 ping 的 ip 不一样。
主要是 Primary DNS suffix of this computer 这个功能。
解决方法也很简单,nslookup my.domain.tld. dns.server.ip
注 …
Posted
archive
一种说不出来的味道。
Posted
archive
When Alex Honnold and I discussed the Nikon D4 project several months prior, we locked in on Joshua Tree National Park. Given the area's dry weather in late November, J-Tree seemed to be the obvious climbing location. During our first phone call, we simultaneously suggested Equinox as the climb. At …
Posted
archive
KDE那帮人觉得Dropbox不错于是搞了个山寨品 ownCloud.org 。我很是喜欢。
其中双向同步的关键核心组件是 csync,看了下,是OpenSUSE一帮人搞的类 …
Posted
archive
>>> import pprint, datetime, json, urllib2
>>> p=lambda:json.loads(urllib2.urlopen('http://radioplayer.omroep.nl/helper/now-on-air.json?ac=%s&channel_id=3' % datetime.datetime.now().strftime('%Y%m%d%H%M')).read())
>>> pprint.pprint(p()['current_song'])
or parsing this HTML
http://radioplayer.omroep.nl/helper/playlist.html?ac …
Posted
archive
Here's a handy python script do the job of uwsgi --ping <address>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
import socket
import struct
#---------------------------------------------------------------
#---------------------------------------------------------------
def ping_uwsgi(sock_file):
'''
Ping UWSGI process trought socket. Return [True,...] if OK,
return [False,error] if UWSGO not pinging …
Posted
archive
难得夜深人静反思一下。我个人每天12个小时在网上闲逛,自个觉得我现在有几个值得警惕的危险趋势:
输入越来越多,输 …
Posted
archive
上次看到 Google后Hadoop时代的新“三驾马车”——Caffeine、Pregel、Dremel
感觉碉堡了。
Pregel是一个graph db。这是逆NoSQL运动行之的潮流——NoSQL倡导没有join
,而graph db则 …
Posted
archive