tryunix.org - Try Unix (in a browser)
This is a tribute to the over-eagerness, confidence, eerie clarity of mind provided by the early onset of ADHD Meds. I wish I was joking. Combine this with hyperfocus and you get a night well spent writing code you can't even wrap your head around the next day.
It is meant to be every so slightly tongue in cheek, as Unix, while all about the dirty little tools glued together with duct tape, does not exactly fit itself in the lovely, simple, pure, minimalistic philosophy of agile development and Web 2.0, at least not that directly.
I thought something completely stupid like:
And then, the next day the Adderall wore off and I found myself biting my lower lip, looking at the receipt for the purchase of the tryunix.org domain, and the very scarce documentation for WebCore (however the code is very, very readable, so that's not insurmountable). Still, I sat there with a single sentence resonating through my thoughts, as read by some aggravated deity's booming voice:
"OH GOD WHAT HAVE YOU DONE?"
Hopefully one day, this code will be functional and I can say I'm the creative mastermind behind the piece of crud that is tryunix.org.
So far not only is project not even close to functional, but I am pedant enough to list the requirements as they come.
virtualenv is strongly recommended
distribute/setuptools (should be pretty standard)
A decent web server supporting WSGI
-- OR --
Apart from WebCore (to be safe) there is absolutely
no need to install these separately if you are going
setup.py (most likely), as it will pull
the required deps for you. I'm merely listing them
for clarity's sake.
- WebCore - Web Framework. Awesome.
- Genshi - Templating Engine
- Beaker - Session and Caching library (WSGI Middleware)
Very Hastily Written™ Hacker's Guide to Poking at the Source
$ mkdir ~/.python-envs/
$ virtualenv --distribute --no-site-packages ~/.python-envs/tryunix
$ source ~/.python-envs/tryunix/bin/activate
(tryunix)$ pip install WebCore
(tryunix)$ git clone https://github.com/mrdaemon/tryunix.org.git
(tryunix)$ cd tryunix.org && python setup.py develop
setup.py will fetch and install dependencies for you.
Run paster serve --reload dev.ini to launch the app,
the point your browser at http://127.0.0.1:8888/
It should work. At some point. Eventually. But you'll probably staring at broken code and the nastiest tracebacks known to man.
Feel free to fork and contribute once there's some meat there.