| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Browse archives
|
Untitled
Submitted by reeses on Thu, 2002-10-31 07:53.
I wanted the ability to compose log entries offline, and then have a tool post them when my computer is back online. I thought about doing something clever with my email, and writing a mail->blog filter (which I will probably end up doing anyway) that sits in procmail and looks for a formatted message. As it was, I stumbled upon this post when searching for "ruby blogger". So, I wrote the following script to take all unposted files The script is below. You'll need to change the blogId, username, and password, unless you happen to have those equal to the bogus values. #!/usr/local/bin/ruby require "xmlrpc/client" server = XMLRPC::Client.new( "plant.blogger.com", "/api/RPC2" ) Dir["C:/posts/*.np"].sort! { | a, b | File.new(a).mtime <=> File.new(b).mtime }.each { Post new comment |
SearchUser login |