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…
Unlike the other alternatives, which requires specially patched kernels to run it, LXC got fully functional in the upstream kernel since 2.6.29, which is a plus as it made it easier to deploy it in many prexisting distros which ship 2.6.29, including Fedora - without messing around with the distro packages.
In this HOWTO, I'll guide through the process of deploying your own LXC in Fedora 12, with NAT to libvirt's virbr0
yum install libvirt lxc
(ping me if i forgot to add any packages)
start libvirt so that virbr0 is configured /sbin/service libvirtd start
mount control group in /cgroup echo "none /cgroup cgroup defaults 0 0" >> /etc/fstab mkdir /cgroup mount /cgroup