Re: Posting to blogger.com?

2010-06-04 Thread Matt Lawrence
Matt Lawrence wrote: The real test is whether chr $u > 255. Of course the data is passed through correctly whether or not perl understands that it's unicode data. I said chr here, but I just noticed that I really meant ord *sigh* Matt

Re: Posting to blogger.com?

2010-06-04 Thread Mark Fowler
On Thu, Jun 3, 2010 at 1:17 PM, Dave Hodgkinson wrote: > On 3 Jun 2010, at 00:52, Mark Fowler wrote: >> On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson wrote: >>> On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: use File::Slurp; >>> This is the start of most scripts I've been writing recently

Re: Posting to blogger.com?

2010-06-03 Thread Dave Hodgkinson
On 3 Jun 2010, at 20:56, Matt Lawrence wrote: > The real test is whether chr $u > 255. Of course the data is passed through > correctly whether or not perl understands that it's unicode data. And thank you to Ilmari and Zefram for the clue bat on all things UTF8 and indeed utf-8.

Re: Posting to blogger.com?

2010-06-03 Thread Matt Lawrence
Kieren Diment wrote: On 03/06/2010, at 8:06 PM, Steve Mynott wrote: On Wed, Jun 02, 2010 at 05:52:40PM +0100, Mark Fowler typed: On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson wrote: On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: use File::Slurp; This

Re: Posting to blogger.com?

2010-06-03 Thread Kieren Diment
On 03/06/2010, at 8:06 PM, Steve Mynott wrote: > On Wed, Jun 02, 2010 at 05:52:40PM +0100, Mark Fowler typed: > >> On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson wrote: >> >>> On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: use File::Slurp; >>> >>> This is the start of most scripts I've

Re: Posting to blogger.com?

2010-06-03 Thread Graham Barr
On Jun 3, 2010, at 5:06 AM, Steve Mynott wrote: > On Wed, Jun 02, 2010 at 05:52:40PM +0100, Mark Fowler typed: > >> On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson wrote: >> >>> On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: use File::Slurp; >>> >>> This is the start of most scripts I've

Re: Posting to blogger.com?

2010-06-03 Thread Dave Hodgkinson
On 3 Jun 2010, at 00:52, Mark Fowler wrote: > On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson wrote: > >> On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: >>> use File::Slurp; >> >> This is the start of most scripts I've been writing recently. > > I dumped this since I started using Path::Clas

Re: Posting to blogger.com?

2010-06-03 Thread Dave Hodgkinson
On 3 Jun 2010, at 18:41, Dagfinn Ilmari Mannsåker wrote: > ilm...@ilmari.org (Dagfinn Ilmari Mannsåker) writes: > >> it can't possibly know the encoding of an arbitrary. > > Of an arbitrary file, of course. No, I like the word you just nouned. Retribution for all the verbing that's been going

Re: Posting to blogger.com?

2010-06-03 Thread Dagfinn Ilmari Mannsåker
ilm...@ilmari.org (Dagfinn Ilmari Mannsåker) writes: > it can't possibly know the encoding of an arbitrary. Of an arbitrary file, of course. -- ilmari "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck Mathisen

Re: Posting to blogger.com?

2010-06-03 Thread Dagfinn Ilmari Mannsåker
Steve Mynott writes: > On Wed, Jun 02, 2010 at 05:52:40PM +0100, Mark Fowler typed: > >> On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson wrote: >> >> > On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: >> >> use File::Slurp; >> > >> > This is the start of most scripts I've been writing recently.

Re: Posting to blogger.com?

2010-06-03 Thread Steve Mynott
On Wed, Jun 02, 2010 at 05:52:40PM +0100, Mark Fowler typed: > On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson wrote: > > > On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: > >> use File::Slurp; > > > > This is the start of most scripts I've been writing recently. > > I dumped this since I start

Re: Posting to blogger.com?

2010-06-03 Thread Paul Makepeace
On Mon, May 31, 2010 at 06:29, Ovid wrote: > Does anyone have any *working* code (I've seen plenty of failing examples) > they can share which demonstrates making a successful post to blogger?  I've > failed with both Net::Blogger and Atompub > (http://stackoverflow.com/questions/2942998/cant-p

Re: Posting to blogger.com?

2010-06-03 Thread Jérôme Etévé
Maybe i m going to burn in hell for this heresy, but if you're interested, I ve got a python script that does what you'd like. Jerome. On 3 Jun 2010 08:26, "Ovid" wrote: - Original Message > From: Egor Shipovalov > Sorry, forgot to men... Actually, WWW::Blogger::XML doesn't say any

Re: Posting to blogger.com?

2010-06-03 Thread Ovid
- Original Message > From: Egor Shipovalov > Sorry, forgot to mention: you must have a file called something > like .www_blogger in you home directory, containing login credentials. > See perldoc for WWW::Blogger::XML for details. Actually, WWW::Blogger::XML doesn't say anything ab

Re: Posting to blogger.com?

2010-06-02 Thread Mark Fowler
On Wed, Jun 2, 2010 at 4:29 PM, Dave Hodgkinson wrote: > On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: >> use File::Slurp; > > This is the start of most scripts I've been writing recently. I dumped this since I started using Path::Class all the time. my $content = file("something")->slurp Ma

Re: Posting to blogger.com?

2010-06-02 Thread Dave Hodgkinson
On 2 Jun 2010, at 21:38, Egor Shipovalov wrote: > > #!/usr/bin/perl > > use strict; > use warnings; > > use Getopt::Long; > use LWP::Simple; > use HTML::Entities; > use URI::Escape; > use XML::Simple; > use File::Slurp; > use Data::Dumper; This is the start of most scripts I've been writing r

Re: Posting to blogger.com?

2010-06-02 Thread Egor Shipovalov
Sorry, forgot to mention: you must have a file called something like .www_blogger in you home directory, containing login credentials. See perldoc for WWW::Blogger::XML for details. On Wed, Jun 2, 2010 at 2:38 PM, Egor Shipovalov wrote: > Here it goes. It's not exactly generic because it's desig

Re: Posting to blogger.com?

2010-06-02 Thread Egor Shipovalov
Here it goes. It's not exactly generic because it's designed to be called from Emacs org-mode, but I hope it will be useful for you. # BEGIN CODE #!/usr/bin/perl use strict; use warnings; use Getopt::Long; use LWP::Simple; use HTML::Entities; use URI::Escape; use XML::Simple; use WWW::Blogger::

Re: Posting to blogger.com?

2010-06-01 Thread Nik Clayton
> That would be fantastic! It appears that blogger no longer has an XMLRPC > interface, so Net::Blogger > is pretty much guaranteed to not work.  Working with WWW::Google::API right > now, but still getting nowhere. If you produce something suitably generic I'll do my best to get it linked to (a

Re: Posting to blogger.com?

2010-06-01 Thread Ovid
--- On Tue, 1/6/10, Egor Shipovalov wrote: > From: Egor Shipovalov > I do, but the code is on my laptop at > home. As far as I recall it > doesn't use either of these modules, but some different > one. I'll try > post it here tomorrow about the same time. That would be fantastic! It appears th

Re: Posting to blogger.com?

2010-06-01 Thread Egor Shipovalov
I do, but the code is on my laptop at home. As far as I recall it doesn't use either of these modules, but some different one. I'll try post it here tomorrow about the same time. Best regards, Egor Shipovalov. On Mon, May 31, 2010 at 2:29 PM, Ovid wrote: > Does anyone have any *working* code (I'

Posting to blogger.com?

2010-05-31 Thread Ovid
Does anyone have any *working* code (I've seen plenty of failing examples) they can share which demonstrates making a successful post to blogger? I've failed with both Net::Blogger and Atompub (http://stackoverflow.com/questions/2942998/cant-post-with-perls-netblogger). Cheers, Ovid -- Buy th