Thegreenplace - eli.thegreenplace.net - Eli Bendersky's website

Latest News:

Fixing tests by writing more tests 14 Aug 2013 | 06:01 pm

When a test fails, the first instinct is usually to dive right in – go through the code, sprinkle printouts and logging statements all around, fire up the debugger, and so on. But often, the correct a...

pycparser v2.10 released 3 Aug 2013 | 06:53 pm

A few minutes ago I’ve tagged pycparser v2.10 and pushed the release to PyPI. The biggest feature in this release is the ability to handle even darker context-sensitive corners of C. For example, con...

pycparser – call for testing before release 31 Jul 2013 | 09:38 am

The previous release of pycparser was 7 months ago, and it’s time for another one. In addition to the usual collection of small fixes, this time there’s actually a major feature to try out. I finally...

Displaying all argv in x64 assembly 24 Jul 2013 | 05:53 pm

Recently I’ve been doing some x64 assembly hacking, and something I had to Google a bit and collect from a few places is how to go over all command-line arguments (colloquially known as argv from C) a...

Hand-written lexer in Javascript compared to the regex-based ones 16 Jul 2013 | 06:25 pm

A few weeks ago I wrote about the comparison between regex-based lexers in Python and Javascript. Javascript running on Node.js (V8) ended up being much faster than Python, and in both languages a spe...

Library order in static linking 9 Jul 2013 | 05:56 pm

I’ll start with a slightly sneaky but educational example. Suppose we have this code: It runs just fine and the return value is 5. Now, suppose this is part of a larger project that consists of many ...

Summary of reading: April – June 2013 2 Jul 2013 | 05:47 pm

Roughing It" by Mark Twain – a kind of a "travel log" of the author’s years spent in Nevada, California and Hawaii in the 1860s. While reading the book I actually had to look up "high tale" in a dicti...

Regex-based lexical analysis in Python and Javascript 25 Jun 2013 | 05:36 pm

When I need a lexical analyzer, usually the first tool I turn to is a simple regex-based lexer I’ve been using for a few years now. Here is the most straightforward version, in Python. First, a couple...

Keeping persistent history in bash 12 Jun 2013 | 07:27 am

For someone spending most of his time in front of a Linux terminal, history is very important. But traditional bash history has a number of limitations, especially when multiple terminals are involved...

Switching my open-source projects from Bitbucket to Github 10 Jun 2013 | 04:49 am

I’m switching my public open-source projects from Bitbucket to Github, and in the process also from Mercurial to git. But the switch has little to do with git vs. Mercurial; it’s mostly about Github w...

Related Keywords:

python random, pygame tutorial, eli bendersky, random python, eli pointers, handling codes eli, wxpython vs pyside, longest increasing subsequence, canvas xy mouse offsetleft, python serial port

Recently parsed news:

Recent searches: