Ruslanspivak - ruslanspivak.com - Ruslan's Blog

Latest News:

Need for Speed – SENDFILE System Call 29 Jun 2012 | 12:41 pm

A very common operation of Web servers these days is transferring files to clients. They do that by reading the files’ contents from a disk and writing it back to the clients’ sockets. The copying of...

Self-Pipe Trick 25 Jun 2012 | 05:44 am

Imagine that your server process needs to simultaneously wait for I/O on multiple descriptors and also needs to wait for the delivery of a signal. The problem is that you can’t safely mix select() wi...

SIGPIPE 101 8 Jun 2012 | 01:40 pm

Have you ever seen a socket.error: [Errno 32] Broken pipe message when running a Python Web server and wondered what that means? The rule is that when a process tries to write to a socket that has al...

Simple Examples of Concurrent Server Design in Python 6 Jun 2012 | 02:45 pm

I’ve created a repo on GitHub called csdesign – https://github.com/rspivak/csdesign  – where I put several simple examples of concurrent TCP servers in Python. Currently it contains two of those: TC...

Cynic – Test Harness to Make Your System Under Test Cynical 4 Jun 2012 | 12:43 pm

These days almost any application has several integration points like database, payment gateway, or some Web service that it consumes over HTTP. All communication with the remote systems happens over...

Logsna – a sane log output format 21 May 2012 | 04:03 pm

Good old log files are still the most reliable, versatile, and useful sources of information. When they are also human-readable and easy to use with standard Unix tools like tail and grep they are ev...

BASH Nonstandard Redirection 17 Apr 2012 | 02:35 pm

I’ve recently discovered a neat BASH specific syntax for stream redirection so I thought I’d share it on the off chance you find it useful too. Let’s see how standard error (STDERR) can be redirected...

SlimIt – multiline string support 10 Apr 2012 | 02:58 pm

I made some changes to the lexer and now SlimiIt can handle JavaScript string literals that span multiple lines. In JavaScript, as in Python, continuation lines can be used with a backslash as the la...

What’s New in SlimIt 0.6.1 16 Mar 2012 | 03:59 pm

While the new version of SlimIt is mostly a bugfix release: - Problem with “+”, “++” and whitespace - Problem with for loop with ? operator in initializer position there is also one new feature: -t...

What’s New in Crammit 0.3 12 Mar 2012 | 05:06 pm

Crammit 0.3 is out. Two main features in this release: - Python 2.6 support (thanks to Didip Kerabat for contributing code) - files option in assetsinfo.yaml that lists all processed files for a bu...

Related Keywords:

javascript minifier, json pretty print, bash search history, erlang comments, erlang vs python, python urldecode, erlang comment multiple lines, pretty command line, auto insert @author when reply comment wordpress, auto insert @author when reply comment

Recently parsed news:

Recent searches: