From manolopm at gmail.com Wed Aug 5 20:01:00 2009 From: manolopm at gmail.com (Manolo Padron Martinez) Date: Wed, 5 Aug 2009 11:01:00 +0100 Subject: Problem with codification on Venus Message-ID: <55fad2460908050301n6828bfceh59c3781118219cf@mail.gmail.com> Hi: I'm using venus for a planet but I'm having some problems with codification. I've planetized some blogs that use Spanish and English with UTF-8 and some symbols seems to be wrong. Any Idea? Any solution? Regards from Canary Islands Manuel Padr?n Mart?nez From rubys at intertwingly.net Wed Aug 5 20:36:56 2009 From: rubys at intertwingly.net (Sam Ruby) Date: Wed, 05 Aug 2009 06:36:56 -0400 Subject: Problem with codification on Venus In-Reply-To: <55fad2460908050301n6828bfceh59c3781118219cf@mail.gmail.com> References: <55fad2460908050301n6828bfceh59c3781118219cf@mail.gmail.com> Message-ID: <4A7960C8.7020503@intertwingly.net> Manolo Padron Martinez wrote: > Hi: > > I'm using venus for a planet but I'm having some problems with > codification. I've planetized some blogs that use Spanish and English > with UTF-8 and some symbols seems to be wrong. Any Idea? Any solution? You haven't given enough information to provide a complete answer (a link to one of these blogs would be helpful), but one common problem is that you aren't serving the pages produced as utf-8 (the web default is iso-8859-1). See the following for instructions: http://www.w3.org/International/O-HTTP-charset An alternate approach is to add the following near to the top of the
section in your template: > Regards from Canary Islands > > Manuel Padr?n Mart?nez - Sam Ruby From manolopm at gmail.com Wed Aug 5 20:44:13 2009 From: manolopm at gmail.com (Manolo Padron Martinez) Date: Wed, 5 Aug 2009 11:44:13 +0100 Subject: Problem with codification on Venus In-Reply-To: <4A7960C8.7020503@intertwingly.net> References: <55fad2460908050301n6828bfceh59c3781118219cf@mail.gmail.com> <4A7960C8.7020503@intertwingly.net> Message-ID: <55fad2460908050344i242bdc76s904a46fdfdde198d@mail.gmail.com> Hi: > You haven't given enough information to provide a complete answer (a link to > one of these blogs would be helpful), but one common problem is that you > aren't serving the pages produced as utf-8 (the web default is iso-8859-1). > ?See the following for instructions: Thanks Sam. This are two blogs that making me crazy : http://hombrealto.com/web/?q=taxonomy/term/20/0 http://www.rpenalva.com/blog/ As I know they have their head well formed (so If you go directly to their blogs all appears as it should) In the planet (http://planet.codepixel.com/) we have this meta too ( ) So I still have no clues Regards from Canary Islands Manuel Padr?n Mart?nez From rubys at intertwingly.net Wed Aug 5 22:09:13 2009 From: rubys at intertwingly.net (Sam Ruby) Date: Wed, 05 Aug 2009 08:09:13 -0400 Subject: Problem with codification on Venus In-Reply-To: <55fad2460908050344i242bdc76s904a46fdfdde198d@mail.gmail.com> References: <55fad2460908050301n6828bfceh59c3781118219cf@mail.gmail.com> <4A7960C8.7020503@intertwingly.net> <55fad2460908050344i242bdc76s904a46fdfdde198d@mail.gmail.com> Message-ID: <4A797669.6080109@intertwingly.net> Manolo Padron Martinez wrote: > Hi: > >> You haven't given enough information to provide a complete answer (a link to >> one of these blogs would be helpful), but one common problem is that you >> aren't serving the pages produced as utf-8 (the web default is iso-8859-1). >> See the following for instructions: > > Thanks Sam. > This are two blogs that making me crazy : > http://hombrealto.com/web/?q=taxonomy/term/20/0 > http://www.rpenalva.com/blog/ > > As I know they have their head well formed (so If you go directly to > their blogs all appears as it should) > > In the planet (http://planet.codepixel.com/) we have this meta too ( > ) > > So I still have no clues I took a look at what your server is returning using a tool named curl. $ curl --head http://planet.codepixel.com/ HTTP/1.1 200 OK Date: Wed, 05 Aug 2009 12:40:09 GMT Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch4 mod_ssl/2.2.3 OpenSSL/0.9.8c Last-Modified: Wed, 05 Aug 2009 12:30:24 GMT ETag: "781a61f-1b38d-2acd9800" Accept-Ranges: bytes Content-Length: 111501 Vary: Accept-Encoding,User-Agent Connection: close Content-Type: text/html; charset=ISO-8859-1 What this is saying is that you are running Apache, and Apache is configured to tell the browser that this page is coded in ISO-8859-1 (look at the last line), and the browser is following that advice. There is nothing wrong with the blogs, there is something wrong with how Apache is configured on your site. To fix this, you will need to follow the advice specified here: http://www.w3.org/International/O-HTTP-charset#server I hope this helps. > Regards from Canary Islands > > Manuel Padr?n Mart?nez - Sam Ruby From manolopm at gmail.com Wed Aug 5 23:37:05 2009 From: manolopm at gmail.com (Manolo Padron Martinez) Date: Wed, 5 Aug 2009 14:37:05 +0100 Subject: Problem with codification on Venus In-Reply-To: <4A797669.6080109@intertwingly.net> References: <55fad2460908050301n6828bfceh59c3781118219cf@mail.gmail.com> <4A7960C8.7020503@intertwingly.net> <55fad2460908050344i242bdc76s904a46fdfdde198d@mail.gmail.com> <4A797669.6080109@intertwingly.net> Message-ID: <55fad2460908050637j7897c625od175726a0de10fdf@mail.gmail.com> Thanks again Sam. Solved, just a .htaccess and everything goes at it should :) Regards from Canary Islands Manuel Padr?n Mart?nez From ali at ebrahim.org Sun Aug 16 20:13:09 2009 From: ali at ebrahim.org (Ali Ebrahim) Date: Sun, 16 Aug 2009 18:13:09 +0800 Subject: & converted into & which breaks links Message-ID: <4A87DBB5.5020509@ebrahim.org> Hi, I have two questions, will ask in sequence. Question 1: Ampersand Parsing ----------------------------- When I use a source feed like this: http://feeds.feedburner.com/AkhbarBiladImaniyah All the post title links have ampersands in them, but after Venus is done parsing, it changes the & into & and this breaks the links. For example, this: http://www.zeninfosys.net/zeninfosys/archive_akhbar_details.php?AkhbarType=3&AkhbarID=1608&AkhbarMonth=8&AkhbarYear=1430 becomes this: http://www.zeninfosys.net/zeninfosys/archive_akhbar_details.php?AkhbarType=3&AkhbarID=1607&AkhbarMonth=8&AkhbarYear=1430 And this problem exists in the generated HTML page and the generated Atom file as well. You can see the output on: http://planetbohra.org/ -and- http://planetbohra.org/atom.xml How can I avoid this problem? Question 2: Planet Venus versions --------------------------------- As Venus does not have any official versions, it's a bit difficult for non-programmers like me to discern what has changed since the version of Venus I am using (or even if anything relevant as changed at all). It would be nice if there were six-monthly versioned releases with a changelog of what happened between the releases so that we know if an upgrade is required. At the moment I'm running code from April 2008 and I have no idea if I should upgrade or not, and what files need to be replaced. Some more information on this aspect of Venus would be very much welcome. Thanks in advance for your help. Regards, Ali -- Ali Ebrahim ali at ebrahim.org From rubys at intertwingly.net Tue Aug 18 00:17:58 2009 From: rubys at intertwingly.net (Sam Ruby) Date: Mon, 17 Aug 2009 10:17:58 -0400 Subject: & converted into & which breaks links In-Reply-To: <4A87DBB5.5020509@ebrahim.org> References: <4A87DBB5.5020509@ebrahim.org> Message-ID: <4A896696.6060802@intertwingly.net> Ali Ebrahim wrote: > Hi, > > I have two questions, will ask in sequence. > > Question 1: Ampersand Parsing > ----------------------------- > > When I use a source feed like this: > > http://feeds.feedburner.com/AkhbarBiladImaniyah > > All the post title links have ampersands in them, but after Venus is > done parsing, it changes the & into & and this breaks the links. For > example, this: > > http://www.zeninfosys.net/zeninfosys/archive_akhbar_details.php?AkhbarType=3&AkhbarID=1608&AkhbarMonth=8&AkhbarYear=1430 > > becomes this: > > http://www.zeninfosys.net/zeninfosys/archive_akhbar_details.php?AkhbarType=3&AkhbarID=1607&AkhbarMonth=8&AkhbarYear=1430 > > And this problem exists in the generated HTML page and the generated > Atom file as well. You can see the output on: > > http://planetbohra.org/ > -and- > http://planetbohra.org/atom.xml > > How can I avoid this problem? What is actually going on here is that the feed itself is not well formed: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FAkhbarBiladImaniyah Apparently the heuristics in the recovery logic for dealing with such feeds could be improved upon. > Question 2: Planet Venus versions > --------------------------------- > > As Venus does not have any official versions, it's a bit difficult for > non-programmers like me to discern what has changed since the version of > Venus I am using (or even if anything relevant as changed at all). > > It would be nice if there were six-monthly versioned releases with a > changelog of what happened between the releases so that we know if an > upgrade is required. > > At the moment I'm running code from April 2008 and I have no idea if I > should upgrade or not, and what files need to be replaced. Some more > information on this aspect of Venus would be very much welcome. > > Thanks in advance for your help. The original plan was for Venus to become Planet version 3.0, but to date I have been unable to coordinate properly with Jeff to make this happen. > Regards, > Ali - Sam Ruby From rubys at intertwingly.net Tue Aug 18 00:16:22 2009 From: rubys at intertwingly.net (Sam Ruby) Date: Mon, 17 Aug 2009 10:16:22 -0400 Subject: & converted into & which breaks links In-Reply-To: <4A87DBB5.5020509@ebrahim.org> References: <4A87DBB5.5020509@ebrahim.org> Message-ID: <4A896636.9000005@intertwingly.net> Ali Ebrahim wrote: > Hi, > > I have two questions, will ask in sequence. > > Question 1: Ampersand Parsing > ----------------------------- > > When I use a source feed like this: > > http://feeds.feedburner.com/AkhbarBiladImaniyah > > All the post title links have ampersands in them, but after Venus is > done parsing, it changes the & into & and this breaks the links. For > example, this: > > http://www.zeninfosys.net/zeninfosys/archive_akhbar_details.php?AkhbarType=3&AkhbarID=1608&AkhbarMonth=8&AkhbarYear=1430 > > becomes this: > > http://www.zeninfosys.net/zeninfosys/archive_akhbar_details.php?AkhbarType=3&AkhbarID=1607&AkhbarMonth=8&AkhbarYear=1430 > > And this problem exists in the generated HTML page and the generated > Atom file as well. You can see the output on: > > http://planetbohra.org/ > -and- > http://planetbohra.org/atom.xml > > How can I avoid this problem? What is actually going on here is that the feed itself is not well formed: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FAkhbarBiladImaniyah Apparently the heuristics in the recovery logic for dealing with such feeds could be improved upon. > Question 2: Planet Venus versions > --------------------------------- > > As Venus does not have any official versions, it's a bit difficult for > non-programmers like me to discern what has changed since the version of > Venus I am using (or even if anything relevant as changed at all). > > It would be nice if there were six-monthly versioned releases with a > changelog of what happened between the releases so that we know if an > upgrade is required. > > At the moment I'm running code from April 2008 and I have no idea if I > should upgrade or not, and what files need to be replaced. Some more > information on this aspect of Venus would be very much welcome. > > Thanks in advance for your help. The original plan was for Venus to become Planet version 3.0, but to date I have been unable to coordinate properly with Jeff to make this happen. > Regards, > Ali - Sam Ruby From rubys at intertwingly.net Tue Aug 18 00:15:06 2009 From: rubys at intertwingly.net (Sam Ruby) Date: Mon, 17 Aug 2009 10:15:06 -0400 Subject: & converted into & which breaks links In-Reply-To: <4A87DBB5.5020509@ebrahim.org> References: <4A87DBB5.5020509@ebrahim.org> Message-ID: <4A8965EA.4050801@intertwingly.net> Ali Ebrahim wrote: > Hi, > > I have two questions, will ask in sequence. > > Question 1: Ampersand Parsing > ----------------------------- > > When I use a source feed like this: > > http://feeds.feedburner.com/AkhbarBiladImaniyah > > All the post title links have ampersands in them, but after Venus is > done parsing, it changes the & into & and this breaks the links. For > example, this: > > http://www.zeninfosys.net/zeninfosys/archive_akhbar_details.php?AkhbarType=3&AkhbarID=1608&AkhbarMonth=8&AkhbarYear=1430 > > becomes this: > > http://www.zeninfosys.net/zeninfosys/archive_akhbar_details.php?AkhbarType=3&AkhbarID=1607&AkhbarMonth=8&AkhbarYear=1430 > > And this problem exists in the generated HTML page and the generated > Atom file as well. You can see the output on: > > http://planetbohra.org/ > -and- > http://planetbohra.org/atom.xml > > How can I avoid this problem? What is actually going on here is that the feed itself is not well formed: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FAkhbarBiladImaniyah Apparently the heuristics in the recovery logic for dealing with such feeds could be improved upon. > Question 2: Planet Venus versions > --------------------------------- > > As Venus does not have any official versions, it's a bit difficult for > non-programmers like me to discern what has changed since the version of > Venus I am using (or even if anything relevant as changed at all). > > It would be nice if there were six-monthly versioned releases with a > changelog of what happened between the releases so that we know if an > upgrade is required. > > At the moment I'm running code from April 2008 and I have no idea if I > should upgrade or not, and what files need to be replaced. Some more > information on this aspect of Venus would be very much welcome. > > Thanks in advance for your help. The original plan was for Venus to become Planet version 3.0, but to date I have been unable to coordinate properly with Jeff to make this happen. > Regards, > Ali - Sam Ruby From james at hackervisions.org Fri Aug 21 06:25:18 2009 From: james at hackervisions.org (James Vasile) Date: Thu, 20 Aug 2009 16:25:18 -0400 Subject: Patch Message-ID: <87praq44i9.wl%james@hackervisions.org> One of the neat things about Planet is that it passes channel settings in the config.ini through to the template. This makes the face settings possible without any reference to faces in the code. It's cool. For some reason, we don't do that with planet-level settings. I have some custom fields in config.ini that I want the template to see, so I adjusted tmpl.py to pass config.planet_options() to the template. Patch is below. Released uner GPL and Python license. Regards, James Vasile === modified file 'planet/shell/tmpl.py' --- planet/shell/tmpl.py 2009-01-09 08:11:16 +0000 +++ planet/shell/tmpl.py 2009-08-20 20:15:44 +0000 @@ -182,6 +182,16 @@ context.sources.append(context.source) del context['source'] +def merge_dict(a, b): + """Return a hash containing all the keys and vals of a and all + those of b that don't clash with a. Modifies a in place and also + returns a.""" + + for key in b.keys(): + if not a.has_key(key): + a[key] = b[key] + return a + def template_info(source): """ get template information from a feedparser output """ @@ -214,11 +224,8 @@ item['guid_isPermaLink']='false' # feed level information + merge_dict(output, config.planet_options()) output['generator'] = config.generator_uri() - output['name'] = config.name() - output['link'] = config.link() - output['owner_name'] = config.owner_name() - output['owner_email'] = config.owner_email() if config.feed(): output['feed'] = config.feed() output['feedtype'] = config.feed().find('rss')>=0 and 'rss' or 'atom' From feeds at greenfeed.org.uk Sat Aug 22 01:14:37 2009 From: feeds at greenfeed.org.uk (Gordon Hodgson) Date: Fri, 21 Aug 2009 16:14:37 +0100 Subject: gzip compression In-Reply-To: <87praq44i9.wl%james@hackervisions.org> References: <87praq44i9.wl%james@hackervisions.org> Message-ID: <26007E87-6A12-420A-AAB6-EB2EE75B1E0F@greenfeed.org.uk> Is there any easy way to use gzip compression with the html? I've seen ways to turn it on using .htaccess and php.ini but I don't have access to the php.ini, although php forum software I use on the same account does allow me to switch gzip compression on. Any ideas? Gordon