Commit graph

248 commits

Author SHA1 Message Date
Bradley M. Kuhn
d94bd5176e Only count feed URLs. 2014-12-31 13:31:13 -05:00
Bradley M. Kuhn
3c7779dbf1 Support UNIQUE_TOTAL count, counting each IP once. 2014-12-31 13:30:44 -05:00
Bradley M. Kuhn
e574258868 feed-count.plx is based on oggcast-count.plx 2014-12-31 13:25:22 -05:00
Bradley M. Kuhn
7265718f0a Don't die automatically on lines that don't match.
Instead, move on and don't count anything that isn't a GET.
2014-12-31 13:24:41 -05:00
Bradley M. Kuhn
8ab83b84e9 Final adjustments to video download script. 2014-09-05 16:36:12 -04:00
Tom Marble
634924e002 Correct licensing info per author's instructions.
I discussed the licensing of this file with Tom Marble, and he agreed in
IRC that LGPLv2.1-or-later is the proper license.

  <bkuhn> tmarble: in 2013-01 you sent me some scripts for ods2xls
  <bkuhn> you mention they're based on ssconv
  <bkuhn> but they don't have license info
  <bkuhn> I was putting it into a public repository and then figured I should
          ask you first.  [11:45]
  <tmarble> oh my.. I will look  [11:46]
  <bkuhn> tmarble: if you figure it out, I can commit the files and you can add
          a license.  [11:47]
  <bkuhn> the lib is lgpl'd, that's marked
  <bkuhn> (although you didn't mark your copyright notice if you canged it)
  <tmarble>
            http://www.linuxjournal.com/content/convert-spreadsheets-csv-files-python-and-pyuno
                                                                        [11:57]
  <tmarble> bkuhn: sorry this was sort of a small, hacky script and didn't get
            the "full treatment"  [11:58]
  <tmarble> clearly it should be LGPLv2+
  <bkuhn> tmarble: do you recall if you modified the library as well as the
          script?  [12:07]
  <bkuhn> I see you put this in the lib:
  <bkuhn> #   PyODConverter (Python OpenDocument Converter) v1.0.0 - 2008-05-05
  <bkuhn> #   Copyright (C) 2008 Mirko Nasato <mirko@artofsolving.com>
  <bkuhn> #   Licensed under the GNU LGPL v2.1 - or any later version.
  <bkuhn> #   http://www.gnu.org/licenses/lgpl-2.1.html
  <bkuhn> and no copyright notices in the main program file
  <bkuhn> can you tell me what it should be?
  <tmarble> bkuhn: IIRC I did not modify ooutils  [12:09]
  <tmarble> bkuhn: yeah, sorry about that.. it's not even in VCS  [12:10]
  <bkuhn> It's ok.
  <bkuhn> I'm putting it public in my small hacks directory.
  <tmarble> bkuhn: as I mentioned before let's stick with LGPLv2.1+
  <bkuhn> As I use it all the time.
  <bkuhn> and someone else might find it useful
  <bkuhn> I believe one has a moral duty to share all software. :)
  <tmarble> please feel free to adjust the headers!
  <bkuhn> tmarble: may I quote this conversation  in the Git log?
  <tmarble> bkuhn: I loved karen's citing your quote "You may say I'm a dreamer,
            but I'm not the only one."  [12:11]
 <tmarble> bkuhn: yes
2014-09-05 16:34:50 -04:00
Free Software Foundation
918f5776da GNU Lesser General Public License Version 2.1
This is as was downloaded from:
    http://www.gnu.org/licenses/lgpl-2.1.txt
2014-09-05 16:32:28 -04:00
Tom Marble
b3da77a17d Updated version to generate xls instead of xls.
This was emailed to bkuhn by tmarble in the email identified below:

  Date: Fri, 04 Jan 2013 14:38:49 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: w/debug ods2xls.py
  Message-ID: <50E73DD9.4010602@info9.net>
2014-09-05 16:28:58 -04:00
Tom Marble
e35ab803e9 Update as emailed to bkuhn by tmarble in this email:
Date: Thu, 03 Jan 2013 21:55:08 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: Re: ods2xlsx.py
  Message-ID: <50E6529C.7040009@info9.net>
2014-09-05 16:26:44 -04:00
Bradley M. Kuhn
94f194d622 Add a README.md file. 2014-09-05 16:24:25 -04:00
Tom Marble
5906f15f4b ods2xls.py, sent to bkuhn by tmarble in this email:
Date: Thu, 03 Jan 2013 18:57:19 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: ods2xlsx.py

Tom did not indicate the license of this file or ssconv.py, so I'm
waiting for him to clarify.

Tom mentioned this usage information in the email:

You will need:

These examples are adapted from:
http://www.linuxjournal.com/node/1007788
http://www.linuxjournal.com/node/1007797
  ^ I saved as ssconv.py and can share with you if you like

NOTE: you MUST save and exit LibreOffice first!
NOTE: you must save both *.py in the same directory.

I could not figure out the filter for XLSX as for XLS:
http://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options

Usage:

$ ./ods2xlsx.py ~/Documents/sample.ods ~/Documents/sample2.ods
/home/tmarble/Documents/sample.ods => /home/tmarble/Documents/sample.xls
Warning: -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager is deprecated.  Use --accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager instead.
Warning: -norestore is deprecated.  Use --norestore instead.
Warning: -nofirststartwizard is deprecated.  Use --nofirststartwizard instead.
Warning: -nologo is deprecated.  Use --nologo instead.
Warning: -headless is deprecated.  Use --headless instead.
/home/tmarble/Documents/sample2.ods => /home/tmarble/Documents/sample2.xls
$
2014-09-04 11:41:06 -04:00
Tom Marble
93dc7d542a ooutils.py sent to bkuhn by tmarble in this email:
Date: Thu, 03 Jan 2013 18:57:19 -0600
  From: Tom Marble <tmarble@info9.net>
  To: "Bradley M. Kuhn" <bkuhn@sfconservancy.org>
  Subject: ods2xlsx.py
  Message-ID: <50E628EF.7080207@info9.net>

Tom indicates it was adapted from Mirko Nasato's code.  I don't know if
Tom adapted it himself.  The license therefore is clearly
LGPLv2.1-or-later, but Tom may also have copyrights here.  I've asked
him to add his copyright notice if he does.
2014-09-04 11:37:37 -04:00
Bradley M. Kuhn
316adb33df Mod should be based on the current count. 2014-08-15 10:19:26 -04:00
Bradley M. Kuhn
df5dc5c3cc Index by title instead of URL; mod to 10. 2014-08-15 10:19:10 -04:00
Bradley M. Kuhn
50c548b577 Make use of login redo. 2014-08-15 10:18:44 -04:00
Bradley M. Kuhn
9eeaac8cac Redo login and recover from past stops. 2014-08-15 10:18:10 -04:00
Bradley M. Kuhn
22a5359ecf Download videos code. 2014-08-15 09:27:28 -04:00
Bradley M. Kuhn
b691e872c9 First pass on creating a loop that will output data. 2014-08-14 17:10:53 -04:00
Bradley M. Kuhn
8d1b92ce21 Add arguments, use unicode, and make output dirs. 2014-08-14 17:10:40 -04:00
Bradley M. Kuhn
5c3b6e2f82 This much gets me logged into dc. 2014-08-14 16:40:12 -04:00
Bradley M. Kuhn
c7339f230d Getting started on video download script. 2014-08-14 16:26:45 -04:00
Bradley M. Kuhn
d47dbd0247 Use cwdiff. 2014-07-16 08:27:37 -04:00
Bradley M. Kuhn
a90ad4b134 Call my version of cwdiff. 2014-07-16 08:27:27 -04:00
Bradley M. Kuhn
091408e1c7 Use variable to call emacs rather than hard-coded. 2014-07-16 08:27:05 -04:00
Bradley M. Kuhn
73eeef81be Change where emacs is called from. 2014-07-16 08:26:56 -04:00
Bradley M. Kuhn
41126968f5 Correct percentage calculation. 2014-07-16 08:26:33 -04:00
Bradley M. Kuhn
73e8444e11 Downloaded this from: http://www-verimag.imag.fr/~moy/opendocument/oodiff 2014-05-06 15:44:51 -04:00
Bradley M. Kuhn
aee97c855d Make this error string a bit shorter. 2014-04-17 07:40:41 -04:00
Bradley M. Kuhn
598937cc06 Remove trap and exit at the end of the script. 2014-04-17 07:40:19 -04:00
Bradley M. Kuhn
ac1db134a3 Improve percentage output. 2014-04-03 18:56:49 -04:00
Bradley M. Kuhn
6012f6e78e Downloaded cwdiff from :
http://code.google.com/p/cj-overlay/source/browse/cwdiff?repo=evergreens
2014-04-03 18:56:39 -04:00
Bradley M. Kuhn
dad0a1776c Keep also a total in the date range, and do extra reporting based on that. 2014-03-25 11:22:44 -04:00
Bradley M. Kuhn
cb385f1cca Total should actually be against the folder entirely, not just the date. 2014-03-25 11:20:59 -04:00
Bradley M. Kuhn
3a291f7ac7 Fix output to properly display. 2014-03-25 11:20:46 -04:00
Bradley M. Kuhn
ea2d5b61ab Add license notice to this file. 2014-03-06 10:14:15 -05:00
Creative Commons, Inc
bcec00d299 Creative Commons 0 1.0 Universal (CC0 1.0), Public Domain Dedication,
as downloaded from: http://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
2014-03-06 09:07:07 -05:00
Bradley M. Kuhn
a1e7bba51f This file as it stood at my last edit of it back in 2010. 2014-03-06 08:56:40 -05:00
Bradley M. Kuhn
7743682496 Import of a version of this file from an old emacs backup I had. 2014-03-06 08:56:01 -05:00
Bradley M. Kuhn
1137a2e779 Initial version of this file as I wrote it back in 2009. 2014-03-06 08:55:30 -05:00
Bradley M. Kuhn
5ae8c190a3 Failure to acquire lock should definitely be an exit 1. 2014-02-26 07:54:43 -05:00
Bradley M. Kuhn
7d91707c99 Differentiate between a remove_lock and the failure mode.
Ensure that if there isn't really a failure, we don't generate errors, but if
there is a failure, that goes into the conky output.
2014-02-26 06:08:20 -05:00
Bradley M. Kuhn
5f1d54bf4b This really should have had the loop first, then the test.
I am left wondering if there was actually I reason I wrote it the other way,
and no time to run git blame to see why.
2014-02-19 18:22:48 -05:00
Bradley M. Kuhn
9594aa730d Fix #! line 2014-02-19 18:21:14 -05:00
Bradley M. Kuhn
f2f481bdb0 exit 1 on errors in all possible cases. 2014-02-19 18:21:06 -05:00
Bradley M. Kuhn
2067946044 If the export fails, abort this script,
to avoid checking in an empty directory that may have been left behind by the
failed export.
2014-02-10 08:53:35 -05:00
Bradley M. Kuhn
cff22b28ae Move die from cleanup to be below test of directory writable.
It's possible this cleanup code is causing serious problems during failures,
because it's leaving us no ics files when the export fails.  Probably it
would be better if we move aside the ics files and restore them later.
2014-02-10 08:53:02 -05:00
Bradley M. Kuhn
05deb600f8 Yet another hack on the formatting change. 2014-01-24 14:54:01 -05:00
Bradley M. Kuhn
e8fbe2dea2 Don't die when calendars aren't readable, rather,
just tell conky to display why no calendar is there.
2014-01-24 14:53:40 -05:00
Bradley M. Kuhn
c6f6b948f5 Use $LOCK_CLEANUP_CODE in more places; don't DieLog when no lock possible. 2014-01-24 09:34:38 -05:00
Bradley M. Kuhn
4079554096 Don't die badly when config file just isn't there.
Instead, give a message in the conky output, which is the better thing to do,
since the config file (at least for me) may be on a partition that hasn't
been mounted.
2014-01-24 07:02:22 -05:00