Python vs. PHP duck typing
Having previous experience in writing PHP code could potentially lead you to hours of debugging in Python.
Consider the following simple example in PHP:
PHP
$s = "0";
$my = (bool) $s;
var_dump($s);
var_dump($my)
Flights to outer code
Posts tagged ‘python’
Having previous experience in writing PHP code could potentially lead you to hours of debugging in Python.
Consider the following simple example in PHP:
$s = "0";
$my = (bool) $s;
var_dump($s);
var_dump($my)
Okay, so you’ve heard something about buildout system, and started to use it. Once upon a time, your project is required to be deployed on Windows host. Let the show begin…
Buildout is extremely powerful, yet very simple to use tool to do automatic deployments. Imagine, that you need to deploy your app on some random unknown generic Linux host, where there is nothing but gcc and a few system tools (python included) — what a pain in the ass this could possibly be? Having to deal with manual installation of different packages (versions nightmare included) is such a pain. I don’t even want to consider what to do if you don’t have a root access rights on target machine.
Buildout is built by the Zope/Plone team to tackle all above mentioned problems. The only problem, though, is that it works smoothly only on *nix environments, which is not our case.
So, if there is absolutely no way around for you but deployment on Windows, read more.
Continue reading ‘Using Buildout system on Windows’ »