关闭

Python Patterns - An Optimization Anecdote

Python Patterns - An Optimization Anecdote Python Patterns - An Optimization Anecdote The other day, a friend asked me a seemingly simple question: what's the best way to convert a list of integ...
阅读(606) 评论(0)

Install Oracle 11g R2 in Centos 6 X64

If the prereuisite  CV_ASSUME_DISTID=OEL4 to CV_ASSUME_DISTID=OEL6...
阅读(900) 评论(0)

Rich Comparison Methods

One of the nicest features of the Data Model is the ability to override the behavior of rich comparison operators: import functools @functools.total_ordering class Generic(object): def __ini...
阅读(418) 评论(0)

Optimizing Linux Memory Management for Low-latency / High-throughput Databases

Table of Contents IntroductionSetting up the contextReproducing and understanding Linux's zone reclaim behaviorNUMA memory rebalancing also triggers direct page scansLessons learned Intr...
阅读(839) 评论(0)

The ultimate SO_LINGER page, or: why is my tcp not reliable

This post is about an obscure corner of TCP network programming, a corner where almost everybody doesn’t quite get what is going on. I used to think I understood it, but found out last week that I did...
阅读(4046) 评论(0)

Iterables, Iterators and Generators: Part 2

This is the second part of the talk I gave January 24, 2013 at the Ottawa Python Authors Group. Part One introduces Python iterables and iterators and generators. This part covers the advanced use ...
阅读(588) 评论(0)

Top 10 Mistakes that Python Programmers Make

About Python Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic b...
阅读(637) 评论(0)

The Light and Dark sides of Python name binding

The Light and Dark sides of Python name binding Posted on 2014-04-04, last modified 2014-04-09. What does bar.foo do? - An exploration of Python assignment, objects, attributes and descripto...
阅读(614) 评论(0)

Benchmark of Python WSGI Servers

Benchmark of Python WSGI Servers Nicholas Piël | March 15, 2010 It has been a while since the Socket Benchmark of Asynchronous server. That benchmark looked specifically at the raw socket perfor...
阅读(1260) 评论(0)

Asynchronous Servers in Python

Asynchronous Servers in Python Nicholas Piël | December 22, 2009 There has already been written a lot on the C10K problem and it is known that the only viable option to handle LOTS of concurre...
阅读(808) 评论(0)

A collection of not-so-obvious Python stuff you should know

A collection of not-so-obvious Python stuff you should know! I am really looking forward to your comments and suggestions to improve and extend this little collection! Just send ...
阅读(1011) 评论(0)

openssl CLI

1) Create a self-signed certificate 2) Check if a certificate is self-signed openssl x509 -in cert.pem -inform PEM -nou...
阅读(547) 评论(0)

OOP Concepts in Python 2.x - Part 2

OOP Concepts in Python 2.x - Part 2 Published on: Mar 10th, 2014 Tags: python Posted by Leonardo Giordani Abstract This post continues the analysis of the Python OOP implementatio...
阅读(642) 评论(0)

OOP Concepts in Python 2.x - Part 1

OOP Concepts in Python 2.x - Part 1 Published on: Mar 5th, 2014 Tags: python Posted by Leonardo Giordani Abstract Object-oriented programming (OOP) has been the leading programmin...
阅读(735) 评论(0)

Linux I/O Performance Tests using dd

Under Linux, the dd command can be used for simple I/O performance measurements. This article will provide valuable information about which parameters should be used. Contents  [hide]  ...
阅读(851) 评论(0)

Default Parameter Values in Python

Default Parameter Values in Python Fredrik Lundh | July 17, 2008 | based on a comp.lang.python post (It happened to me in one of the first Python programs I ever wrote, and it took several yea...
阅读(799) 评论(0)

Playing with ptrace, Part I

Using ptrace allows you to set up system call interception and modification at the user level. Have you ever wondered how system calls can be intercepted? Have you ever tried fooling the kern...
阅读(641) 评论(0)

CherryPy architecture

High Level Framework Application Level Framework...
阅读(565) 评论(0)

Python debuggers

1) pdb 2) Winpdb 3) pydev 4) gdb python extention References: https://code.google.com/p/winpdb/wiki/DebuggingTutorial http://stackoverflow.com/questions/132058/showing-the-stack-trace-from-a-r...
阅读(483) 评论(0)

volatile in C++

1) "volatile" has nothing to do with multiprocessing. So it is not atomic. 2) In a single threaded env, "volatile int vi = 0", vi = 1; int read_back = vi; assert (read_back == 1); the assertion may f...
阅读(568) 评论(0)
202条 共11页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:206792次
    • 积分:3807
    • 等级:
    • 排名:第9250名
    • 原创:132篇
    • 转载:70篇
    • 译文:0篇
    • 评论:6条
    文章分类
    最新评论