A little hack for python coders out there who wanted to have a functionality similar to the unix's tee command for redirecting output to multiple places.
import sys from subprocess import Popen,PIPE p = Popen(['put','command','and','arguments','here'],stdout=PIPE)
while True: o = p.stdout.readline() if o == '' and p.poll() != None: break # the 'o' variable stores a line from the command's stdout # do anything u wish with the 'o' variable here # this loop will break once theres a blank output # from stdout and the subprocess have ended
In Inigo, we believe in helping out local FOSS communities and help them grow. We help out in community events where we can, present FOSS talks, and provide some platforms for local communities to grow. One of such platform is our consolidated community site infrastructure on Plone.
The system/infra and its components was originally developed for the Fedora Malaysia website, while keeping in mind to keep it generic enough so that other communities could use the same components for their own community sites. The infra is already at a usable state, and we can add new sites easily with just a few clicks.
Features in this consolidated infra are: Document/Content management (Plone built-in)Calendar system (powered by solgema.fullcalendar addon)Conference/BarCamp system (powered by collective.conference addon, which was developed for FUDCon Kuala Lumpur 2012)Blog (powered by Products.Scrawl)Simple yet powerful theming engine (powered by plone.app.theming/ Diazo) - Check out Diazo, you'l…