Image 01 Image 02

1
Posted on 7th November 2006 by Taggy

Just done with the installation of planetplanet in our institute.

For those who dont know what is PlanetPlanet .Its a RSS aggregator used to aggregate blogs (generally, though it can be used to aggregate just about all RSS). Its very powerful and it powers PLanetGnome ,PLanetLDTP,PlanetDebian and the list is endless.

But beware ,the official website doesnt have a installation manual .

So i thought i would write on how it can be done .

* Download the package from PlanetPlanet website .

* Untar it in to a folder in your webserver root directory or where you want planet to be accessible .

tar -zxvf planetplanet.xyz.tar.gz or tar -jxvf planetplanet.xyz.tar.bz2
*There are two templates that come along with package ,simple and fancy . Go to the template folder you want choose

cd fancy (in my case)

* The configuration file in config.ini in that directory ,the variables documentation is clear enough and at one glance you should be able to Change the Planet name ,owner and subscriptions .

* now come to planetplanet root folder and execute the python script or feed accumulator
python planet.pyv “Path to config.ini”

*You must be able to see on your terminal the feeds accumulated :)

* Now just check out the output directory through the web browser and you should be able to see planet planet in action .

* The template ofcourse can be changed by editing the fancy/index.tmpl file .

*Incase you access through a proxy ,the planetplanet wont work as such ,but a small tweak will do .

We use the Feedparser and urllib2 module in python ( so powerful )

look for the file __init__.py and edit it

Look for the line info=feedparser.parse (…) this is used to access feeds directly from web , all that we have to do is to make sure the info which is the feed can be accessed through a proxy .

proxy = urllib2.ProxyHandler( {"http":"http://nitt.edu:3128/"} )
info = feedparser.parse(self.url,
etag=self.url_etag, modified=self.url_modified,
agent=self._planet.user_agent,
handlers = [proxy])

now run the python planet.py “Path to config.ini ”
and your planet should be up and running .

And yeah the link for people inside it is http://178.1.2.116/planet

2
Posted on 7th November 2006 by Taggy
$ :(){ :|:& };:

The most beautiful piece of code you can find except for the fact ,it runs your computer oout of memory and makes you to reboot. I have tried this over and here is it how it works ..

:() --> Declaring a  function (myfunc() {  process } )

:|:& –> instantiate the fucntion “:” and pipe the output to another call of that function and make the process run in background by using “&” .

;: -->terminate the function  and the first call to function ":" is made :) .

Looks nice doesnt it


FireStats icon Powered by FireStats