Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User talk:Shane: Difference between revisions

Discussion page of User:Shane
Latest comment: 16 years ago by Catrope in topic Vote bot
Catrope (talk | contribs)
→‎Vote bot: it works!
Catrope (talk | contribs)
→‎Vote bot: got it working
Line 70: Line 70:
This is because we are using one LocalSettings.php file for all the hosts. :( [[User:Shane|Shane]] ([[User_Talk:Shane|talk]]) 14:21, 15 May 2008 (UTC)
This is because we are using one LocalSettings.php file for all the hosts. :( [[User:Shane|Shane]] ([[User_Talk:Shane|talk]]) 14:21, 15 May 2008 (UTC)
:No, that wasn't it, it was a small modification I made to Snoopy once. I then redownloaded Snoopy and forgot about it. It works now. --[[User:Catrope|Catrope]]<sup>([[User talk:Catrope|Talk to me]] or [[Special:Emailuser/Catrope|e-mail me]])</sup> 18:44, 15 May 2008 (UTC)
:No, that wasn't it, it was a small modification I made to Snoopy once. I then redownloaded Snoopy and forgot about it. It works now. --[[User:Catrope|Catrope]]<sup>([[User talk:Catrope|Talk to me]] or [[Special:Emailuser/Catrope|e-mail me]])</sup> 18:44, 15 May 2008 (UTC)
:It's really working now, see [[Battlestar Wiki talk:Bots#VoteBot demo|this]]. --[[User:Catrope|Catrope]]<sup>([[User talk:Catrope|Talk to me]] or [[Special:Emailuser/Catrope|e-mail me]])</sup> 19:11, 15 May 2008 (UTC)


== Reminder for Shane... ==
== Reminder for Shane... ==


http://en.wikipedia.org/wiki/Wikipedia:Upload [[User:Shane|Shane]] ([[User_Talk:Shane|talk]]) 14:46, 13 May 2008 (UTC)
http://en.wikipedia.org/wiki/Wikipedia:Upload [[User:Shane|Shane]] ([[User_Talk:Shane|talk]]) 14:46, 13 May 2008 (UTC)

Revision as of 19:11, 15 May 2008

Message to all
Please note: This user has a photographic memory. Anything this user sees is quickly memorized.


Vote bot

Are you actively developing the vote bot? If not, I'd like to write it ;) --Catrope(Talk to me or e-mail me) 14:08, 9 May 2008 (UTC)Reply

neg. Go for it. I have wikipedia version, but havn't really looked at it in a while. Shane (talk) 20:52, 9 May 2008 (UTC)Reply
OK, I've finished it and it's running fine on my wiki. It does require MW 1.13, though. --Catrope(Talk to me or e-mail me) 12:12, 13 May 2008 (UTC)Reply
That could be a problem. :D Gotta link? Shane (talk) 12:42, 13 May 2008 (UTC)Reply
To what, the bot or 1.13? Currently, 1.13 hasn't been released yet, there's only 1.13alpha that you can download from SVN. I'll upload the bot code later, after I've documented it. --Catrope(Talk to me or e-mail me) 13:32, 13 May 2008 (UTC)Reply
No no. :p To your wiki to where you tested it. :D Shane (talk) 14:25, 13 May 2008 (UTC)Reply
I have it running on localhost, so I can't really show you. Maybe you could set up the Hangar Bay again (it's still out) and have it run 1.13alpha? I'll be happy to do the SVN checkout if you feel awkward about that. --Catrope(Talk to me or e-mail me) 15:37, 13 May 2008 (UTC)Reply
domain back up an working. You should be able to access the hb folder with your access. I think the LocalSettings.php file that is on there now has the current username/password you will need for updating to 1.13. Shane (talk) 15:40, 13 May 2008 (UTC)Reply
Thanks. However, I don't have write access to /home/bsgwiki/bots/ either, so I can't add VoteBot there. --Catrope(Talk to me or e-mail me) 18:33, 14 May 2008 (UTC)Reply
Do'h! :P Will add. Shane (talk) 20:11, 14 May 2008 (UTC)Reply

OK, more trouble. The bot is up there and I can run it from my machine, but since I guess we'll wanna run it on apollo as a cron job, I'll need you to work around some stupid PHP bug and add the following lines to /etc/hosts:

74.53.78.34 hb.battlestarwiki.org
74.53.78.34 en.battlestarwiki.org

etc. for every subdomain we want VoteBot to run on. --Catrope(Talk to me or e-mail me) 20:57, 14 May 2008 (UTC)Reply

Werid. Let me check it out before I do anything with the hosts files. Shane (talk) 21:11, 14 May 2008 (UTC)Reply
Gota ya. Adding to our hosts file. HB and EN for now. Shane (talk) 21:16, 14 May 2008 (UTC)Reply
Double werid. I added to our hosts file those lines, and still no go on the command execution. Try to remove the port. Shane (talk) 21:22, 14 May 2008 (UTC)Reply
I added the 775 flags to the file so we cna work on it. Not the /etc/hosts file. Gtalk ? Shane (talk) 21:32, 14 May 2008 (UTC)Reply
Got it working. :) Shane (talk) 21:48, 14 May 2008 (UTC)Reply
[root@apollo VoteBot]# php VoteBot.php --run --config VoteBot.config.hb.php 
VoteBot 0.1
Logging in as VoteBot... http://hb.battlestarwiki.org/w/api.php
Error: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /w/api.php was not found on this server.</p>
<hr>
<address>Apache/2.2.4 (Unix) Server at hb.battlestarwiki.org Port 80</address>
</body></html>

[root@apollo VoteBot]# 

Shane (talk) 21:59, 14 May 2008 (UTC)Reply

Sorry, a typo must've happened somewhere. The last octet should be 35, not 34. --Catrope(Talk to me or e-mail me) 12:31, 15 May 2008 (UTC)Reply
?? What? Shane (talk) 13:08, 15 May 2008 (UTC)Reply
I mean the IP address in the /etc/hosts file for hb.battlestarwiki.org (and en for that matter) should end in .35, not .34. No idea why, but try to run ping en.battlestarwiki.org from your machine at home and see what IP it gives you. --Catrope(Talk to me or e-mail me) 13:34, 15 May 2008 (UTC)Reply
Doh! That's right. I gave the wiki URL it's own IP. :) Changed... Why task bot didn't run last night too. Shane (talk) 14:18, 15 May 2008 (UTC)Reply
[bsgwiki@apollo VoteBot]$ php VoteBot.php --run --config VoteBot.config.hb.php 
VoteBot 0.1
Logging in as VoteBot... 
Error: internal_api_error_DBConnectionError: Exception Caught: DB connection error: Access denied for user 'bsgwiki_admin'@'apollo.frakmedia.net' to database 'wikidb' (athena.frakmedia.net)

This is because we are using one LocalSettings.php file for all the hosts. :( Shane (talk) 14:21, 15 May 2008 (UTC)Reply

No, that wasn't it, it was a small modification I made to Snoopy once. I then redownloaded Snoopy and forgot about it. It works now. --Catrope(Talk to me or e-mail me) 18:44, 15 May 2008 (UTC)Reply
It's really working now, see this. --Catrope(Talk to me or e-mail me) 19:11, 15 May 2008 (UTC)Reply

Reminder for Shane...

http://en.wikipedia.org/wiki/Wikipedia:Upload Shane (talk) 14:46, 13 May 2008 (UTC)Reply