Category Archives: Programming

HOW TO detect STDIN with Python

In Python, as with most languages, STDIN is treated like a file. You can read from it any time, but knowing what kind of file it is lets us know if someone passed us something via STDIN or if we … Continue reading

Posted in How Tos, Programming, python | 2 Comments

HowTo Use an HTTP Proxy With Git

git should use the environment variable $http_proxy so set that and you should be ok. If you don’t want to use the environment, set it statically like this: $ git config –global http.proxy http://proxy.example.com:8080 $ git config –get http.proxy http://proxy.example.com:8080

Posted in git, How Tos, Programming | Leave a comment

Build A Custom PERL Installation

If you want to build a PERL installation that is separate from your standard PERL, you can compile one, complete with CPAN support. Just follow these steps: mkdir /custom/perl/ cd /custom/perl/ curl -O http://www.cpan.org/src/perl-5.12.3.tar.gz mkdir perl-5_12_3 gunzip perl-5.12.3.tar.gz tar -xf … Continue reading

Posted in How Tos, perl, Programming | 2 Comments