[server-admins] makeDownloadsStats.pl
Troy A. Griffitts
scribe at crosswire.org
Thu Mar 18 01:19:53 MST 2010
Maybe I don't understand. Why do you think that http downloads via the
API are any different than browser web downloads? I really can't read
Perl and am told most people who write Perl can't read Perl either, but
I'm not sure the API accessing the website is any different than an end
user accessing the website via a browser.
I don't know who owns:
~sword/bin/makeDownloadsStats.pl these days. Can someone comment who
has a history with the script?
Nic Carter wrote:
> That is correct, and the reason for them not appearing there is because those stats don't take into account downloads using the HTTP version of the SWORD install manager.
>
> Remember how that has only recently come into being?
>
> So, the ONLY reason the stats don't appear there is because we haven't updated our script to include all 3 of (we currently only do 2 of these, I believe???):
> + FTP install manager (already there)
> + direct web http downloads (I believe is already there, but I admit that I haven't looked too closely to see if these stats are there)
> - HTTP install manager (what my new script does, but I'm fairly certain isn't currently in any of the old scripts).
>
> I'm really sorry I didn't point this out earlier, I was meaning to post to sword-devel about this, but I didn't realise that it was important enough to have emailed straight away? :(
>
> Please let me know what I can do.
>
> On 18/03/2010, at 7:06 PM, Troy A. Griffitts wrote:
>
>> Nic,
>>
>> This is potentially bad news. I just finished a long email to Dan about
>> how your downloads are exactly the same as any other CrossWire download
>> and gets logged in the stats we send Crossway. Are you saying that the
>> numbers on our front page generated by makeDownloadsStats.pl
>>
>> http://crosswire.org/sword
>>
>> on the left side, for the ESV, do NOT include the stats for PocketSword
>> installs?
>>
>>
>>
>> Nic Carter wrote:
>>> Hi there Troy & Chris,
>>>
>>> In regards to the email I cc'd to you earlier today (to Daniel at Crossway) (this email to sword-support jogged my memory!), when users download modules through PocketSword, that download gets logged differently to a normal FTP or web download. Not long after PocketSword went live, I looked into this on the webserver & discovered that the downloads are being logged in /var/log/httpd/community-access_log which is great for me, cause it means I can see easily & quickly which module downloads are by my users. In fact, if you look at that access log, you can grep for "installmgr at pocketsword.iphone.com" and find all the GET requests from PocketSword. I simply picked a nice and obvious name so that we'd know at a glance which are from PocketSword. To do this, I edited curlhttpt.cpp (added a line for "curl_easy_setopt(session, CURLOPT_USERAGENT, p.c_str());" & I have set the password I use to be that string) and I'm gonna have to keep my copy of SWORD up-to-date in order to
al
>> low for this. I only added the "installmgr at pocketsword.iphone.com" string in v1.1 of PocketSword, so it won't show all the PocketSword module installs. However, there didn't seem to be any other requests for modules that are logged in this log file, so I was able to easily and quickly edit our makeDownloadsStats.pl and generate stats for the downloads.
>>> If you look in ~niccarter/local/bin you will find my hacked script & stats that I generated about 10 mins ago, showing that the ESV has been downloaded 1990 times by PocketSword users since it was released in December last year.
>>>
>>> Anyway, I'm praying that the email that I sent to Daniel is able to clear things up. If required, and as a last resort, I can manually put in a filter for the ESV from our repository so that it doesn't appear in the downloads tab in PocketSword. That would be preferable to Crossway saying we can't distribute the ESV anymore! It would mean that if someone wanted to install the ESV into PocketSword in the future, they'd have to download the ZIP of the ESV from our website and then manually install it using the manual install method I've built into PocketSword.
>>>
>>> I'd love to hear back from either of you about all this! I really hate treading on toes, and really hope I haven't with all this.
>>>
>>> Thanks, ybic
>>> nic... :)
>>>
>>> ps: I'm not sure who sent the email from feedback at crosswire.org, but I'm assuming it was Troy. Given that I think of Chris as the "modules guy", I've cc'd this to Chris as well :)
>>>
>>> ----
>>> Nic Carter
>>> PocketSword Developer - an iPhone Bible Study app
>>> www: http://crosswire.org/pocketsword
>>> iTunes: http://itunes.apple.com/app/Pocketsword/id341046078
>>> Twitter: @PocketSword
>>>
>>> Begin forwarded message:
>>>
>>>> From: CrossWire Bible Society <feedback at crosswire.org>
>>>> Date: 18 March 2010 6:36:26 PM AEDT
>>>> To: dkok at crossway.org
>>>> Cc: sword-support at crosswire.org
>>>> Subject: [sword-support] ESV 2009-2 download stats from CrossWire
>>>> Reply-To: SWORD Support Volunteers <sword-support at crosswire.org>, feedback at crosswire.org
>>>>
>>>> ESV: 5093
>>>>
>>>> _______________________________________________
>>>> sword-support mailing list
>>>> sword-support at crosswire.org
>
More information about the server-admins
mailing list