Friday, April 30, 2010

mxm - IT's Mad Science: Python eggs - a Simple Introduction

mxm - IT's Mad Science: Python eggs - a Simple Introduction:
"Python eggs used to be the wave of the future. But for Zope and Plone developers this has evolved into a true tsunami. They are everywhere now.

Yet there is a lot of confusion of what they are and how to use them.

To understand them, you need to understand Pythons way of organizing code files."

Thursday, April 29, 2010

The Non-Paradox of Choice - Jim Manzi - The Corner on National Review Online

The Non-Paradox of Choice - Jim Manzi - The Corner on National Review Online:

"Ultimately, the debate about choice is not about markets but about character. Liberty and responsibility really do go together; it's not just a platitude. The more freedom we have to control our lives, the more responsibility we have for how they turn out. In a world of constraints, learning to be happy with what you're given is a virtue. In a world of choices, virtue comes from learning to make commitments without regrets. And commitment, in turn, requires self-confidence and self-knowledge.



'We are free to be the authors of our lives,' says Schwartz, 'but we don't know exactly what kind of lives we want to 'write.'' Maturity lies in deciding just that."

Tuesday, April 27, 2010

Monday, April 26, 2010

Dyson Swarms and Dyson Spheres

Dyson Swarms and Dyson Spheres: "this power collection swarm consists of thousands of elements in inclined orbits, each with a slightly different ascending node and pericenter. This arrangement ensures the elements never come close to each other. The various orbits form a toroid shape, surrounding the star."

Sunday, April 25, 2010

SoundSource Provides Fast Audio Input and Output Switching - Audio - Lifehacker

SoundSource Provides Fast Audio Input and Output Switching - Audio - Lifehacker:

"SoundSource is a free download, Mac OS X 10.5 and above only.

Update: As many of you have pointed out in the comments, some of this functionally (specifically, the ability to switch input and output sources) is already available in the menu bar if you option click the volume icon (Snow Leopard only). If that's all you need, then do that instead—no need for extra software. However, the added ability to adjust volume levels and access, say, MIDI setup is a nice addition if you're doing something a bit more involved (or if you're still on Leopard)."

Top 10 Hard Drive Upgrades and Fixes - Hard Drives - Lifehacker

Top 10 Mac Hard Drive Upgrades and Fixes - Hard Drives - Lifehacker: "Top 10 Mac Hard Drive Upgrades and Fixes"

Dropbox Startup Lessons Learned

Dropbox Startup Lessons Learned:
"Dropbox Startup Lessons Learned"

Shedding Bikes: Programming Culture And Philosophy

Shedding Bikes: Programming Culture And Philosophy:

"By Zed A. Shaw
An Attempt At A Book Teaching Beginner Python"

Friday, April 23, 2010

Computing Now | January 2009 | Theme: Software's 25th Anniversary

Computing Now | January 2009 | Theme: Software's 25th Anniversary:

"Sometimes the Old Ways Are Best
by Brian Kernighan

As I write this column, I'm in the middle of two summer projects; with luck, they'll both be finished by the time you read it. One involves a forensic analysis of over 100,000 lines of old C and assembly code from about 1990, and I have to work on Windows XP. The other is a hack to translate code written in weird language L1 into weird language L2 with a program written in scripting language L3, where none of the L's even existed in 1990; this one uses Linux. Thus it's perhaps a bit surprising that I find myself relying on much the same toolset for these very different tasks."

Thursday, April 22, 2010

How to think like a Pythonista

How to think like a Pythonista: "NEVER does Python embark on the HUGE task of _deep_ copying unless you very specifically ask it to -- specifically with function deepcopy of module copy. DEEP copying is a serious matter -- function deepcopy has to watch out for cycles, reproduce any identity of references, potentially follow references to any depth, recursively -- it has to reproduce faithfully a graph of objects referencing each other with unbounded complexity. It works, but of course it can never be as fast as the mundane business of shallow copying (which in turn is never as fast as just handing out one more reference to an existing object, whenever the latter course of action is feasible)."

Saturday, April 17, 2010

Thursday, April 15, 2010

AskPython: What's your favorite event handling library? : Python

AskPython: What's your favorite event handling library? : Python: "I just did a quick search, and there are a lot of libraries out there for general event-driven programming in Python, including:

*

Trellis
*

pyevent
*

Decovent
*

circuits
*

Twisted
*

Traits
*

PyQt, wxPython, PyGTK, etc.

Does anyone have a favorite? And does anyone else think it would be a good idea to include one in the Python standard library?"

Comparing gevent to eventlet � Concurrency in Python

Comparing gevent to eventlet � Concurrency in Python: "In this post I try to explain why gevent was started and how it is compares to eventlet."

Nicholas Pi�l � Benchmark of Python Web Servers

Nicholas Pi�l � Benchmark of Python Web Servers: "In this benchmark I will be looking at how different WSGI servers perform at exactly that task; the handling of a full HTTP request."

Wednesday, April 14, 2010

Sunday, April 11, 2010

Concurrence — Concurrence Framework v0.3.1 documentation

Concurrence — Concurrence Framework v0.3.1 documentation: "Concurrence is a framework for creating massively concurrent network applications in Python."

Thursday, April 08, 2010

Zero Copy I: User-Mode Perspective | Linux Journal

Zero Copy I: User-Mode Perspective | Linux Journal:
"In kernel version 2.1, the sendfile system call was introduced to simplify the transmission of data over the network and between two local files. Introduction of sendfile not only reduces data copying, it also reduces context switches. Use it like this:

sendfile(socket, file, len);"

Friday, April 02, 2010

xkcd Makes 4D Miegakure the Most-Sought Indie Game: What You Need to Know | Geekosystem

xkcd Makes 4D Miegakure the Most-Sought Indie Game: What You Need to Know | Geekosystem: "The good news is, Miegakure is real, award-winning, and looks awesome, and there’s a demo video (after the jump). The bad news: it’s not available for download, there are no public demos, and there’s no set release date or platform yet."