16 items tagged “ned-batchelder”
2024
Find a level of abstraction that works for what you need to do. When you have trouble there, look beneath that abstraction. You won’t be seeing how things really work, you’ll be seeing a lower-level abstraction that could be helpful. Sometimes what you need will be an abstraction one level up. Is your Python loop too slow? Perhaps you need a C loop. Or perhaps you need numpy array operations.
You (probably) don’t need to learn C.
2020
Here’s a common piece of advice from people who create things: to make better things, make more things. Not only does it give you constant practice at making things, but it gives you more chances at lucking into making a good thing.
2008
Internet explorer mystery #1376. IE executes function definitions inside an “if (0)” block. That frightens me.
280slides and Objective-J. 280 slides uses an Objective-C clone written in 13KB of JavaScript. I have to admit I’m completely baffled as to why you would want to use Objective C instead of JavaScript, but evidently it worked fantastically well for them.
Apache proxy auto-re-loader. Neat trick: set your 502 (Bad Gateway) error document to include a meta refresh tag, automating the refresh needed should a server you are proxying to be temporarily unavailable.
2007
Http-https transitions and relative URLs. Finally, a reason to use those weird protocol-relative URLs (//example.com/path and the like).
Stopping spambots with hashes and honeypots. Ned’s analysis of how spambots work, along with some relatively simple tricks that should fool most of them.
2006
Subversion branching quick start. Ned Batchelder’s branching tutorial.
2005
Ned Batchelder: Css-discuss wiki. Ned says nice things about the Wiki.
2004
Python Parsing Tools (via) Ned’s compilation of Python parsing libraries.
Ned Batchelder: A quest for pythonic interfaces. More Ned on interfaces.
Ned Batchelder: Interfaces. Ned on interfaces.
Ned Batchelder: Showing C header structure. Using Python to maked other languages less painful
Ned Batchelder: handyxml. Yet another XML object wrapper for Python, this time with full DOM method support included
2003
A better definition of Metadata
Ned Batchelder: Metadata is nothing new. Ned includes a far better definition of metadata than the standard “data about data” phrase:
[... 77 words]Verbose Regular Expressions
Ned Batchelder describes Verbose Python regular expressions. This is one of the things I’ve known about (as in known that they exist) for ages but have never got around to using. I’ve been working with some pretty heavy regular expressions recently that could really do with the clarity of being defined in verbose format with comments.
[... 96 words]