ELotH:TES

 

Mindless Otto

Page history last edited by Tim 3 mos ago

Mindless Otto

Otto is a C# application which can be downloaded here:

 

If that doesn't work... get this file:

 

When you run Otto, it will parse the elemenstor wiki by default but can manipulate any wiki by specifying -w

 

In order to get him to contribute, add a tag like this (remove spaces between the < and the !):

< !-- Begin-Generated-Text: command --> < !-- End-Generated-Text: -->

 

Valid Commands:

  • BROKEN_LINKS
  • LEAST_COMPLETE
  • LEAST_WANTED
  • MOST_BROKEN
  • MOST_NEGLECTED
  • MOST_WANTED
  • STUBS

 

You can also get Otto to execute arbitrary javascript using a custom C# wiki api, which can be documented if there is interest.

 

Pages Generated By Otto:

 

Debugging

 

Here is the error message I received when I tried running Mindless Otto on my system (WinXP SP3):

 

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

 

C:\Documents and Settings\Paul>cd Desktop\MindlessOtto

 

C:\Documents and Settings\Paul\Desktop\MindlessOtto>MindlessOtto.exe

 

Unhandled Exception: System.TypeInitializationException: The type initializer for 'MindlessOtto.MindlessOttoProgram' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MindlessOtto.WikiProcessor' threw an exception. ---> ~System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

File name: 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

at MindlessOtto.WikiProcessor..cctor()

 

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value HKLM\Software\Microsoft\Fusion!EnableLog (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value HKLM\Software\Microsoft\Fusion!EnableLog.

 

--- End of inner exception stack trace ---

at MindlessOtto.WikiProcessor..ctor()

at MindlessOtto.MindlessOttoProgram..cctor()

--- End of inner exception stack trace ---

at MindlessOtto.MindlessOttoProgram.Main(String[] args)

 

I managed to fix the problem by downloading this:

 

Office 2003 Update: Redistributable Primary Interop Assemblies

 

This contains Microsoft.mshtml.dll, after installing I was able to run the code. -bfg00

Comments (25)

profile picture

Tim said

at 6:42 pm on May 9, 2008

New Version: This one can post pages containing the "\" character without filtering it out (thanks to a pbwiki API bug fix)

profile picture

Tim said

at 6:49 am on May 12, 2008

uploaded a zip file with a required support DLL (if just the exe crashes when trying to run it)

profile picture

Tim said

at 11:01 pm on May 13, 2008

uploaded a new version of the .exe: it now treats pbwiki tags like embedded Perl-Tags (so you can mark a "stub" using the pbwiki tags) -- also this new version will turn pages tagged as redirects into html redirects

profile picture

Tim said

at 8:24 pm on May 14, 2008

new version -- simplified javascripting API for easier future extendability

bfg00 said

at 10:53 pm on May 21, 2008

So do you need anything special to run Mindless Otto from your desktop? I tried running it from mine and it didn't work, I'm assuming I'm missing some libraries or something.

profile picture

Tim said

at 11:32 pm on May 21, 2008

if it crashes.. then you'll have to download the mindlessotto zip instead of just the .exe because there are some DLLs required.

bfg00 said

at 7:02 pm on May 22, 2008

Okay, sounds good.

bfg00 said

at 10:48 pm on May 23, 2008

Do I need to put the .dll anywhere in particular? It's still crashing.

profile picture

Tim said

at 7:42 am on May 24, 2008

should be that if you unzip the exe and dll into the same folder you can run it.. but you can't run it directly from the zip

bfg00 said

at 6:49 pm on May 24, 2008

Yeah, I did that and it still errored out. I must not have my machine set up correctly (currently running WinXP SP3). Do you want me to post the error message?

profile picture

Tim said

at 7:46 am on May 25, 2008

yeah.. let me know

bfg00 said

at 8:15 pm on May 25, 2008

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Paul>cd Desktop\MindlessOtto

C:\Documents and Settings\Paul\Desktop\MindlessOtto>MindlessOtto.exe

Unhandled Exception: System.TypeInitializationException: The type initializer fo
r 'MindlessOtto.MindlessOttoProgram' threw an exception. ---> System.TypeInitial
izationException: The type initializer for 'MindlessOtto.WikiProcessor' threw an
exception. ---> System.IO.FileNotFoundException: Could not load file or assembl
y 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7
f11d50a3a' or one of its dependencies. The system cannot find the file specified
.
File name: 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToke
n=b03f5f7f11d50a3a'
at MindlessOtto.WikiProcessor..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
ion!EnableLog].

--- End of inner exception stack trace ---
at MindlessOtto.WikiProcessor..ctor()
at MindlessOtto.MindlessOttoProgram..cctor()
--- End of inner exception stack trace ---
at MindlessOtto.MindlessOttoProgram.Main(String[] args)

bfg00 said

at 8:16 pm on May 25, 2008

Actually let me post this on the Mindless Otto page.

bfg00 said

at 8:50 pm on May 25, 2008

I managed to fix it (as you can see from my post).

profile picture

Tim said

at 5:12 am on May 26, 2008

awesome... good to know.. hadn't tried this on any machines that didn't have microsoft office installed.

bfg00 said

at 8:14 pm on May 26, 2008

Well I did have office installed but apparently not with the correct additional packages. Just a note (I'm sure you're aware of it), MindlessOtto currently can't edit the Broken Links and least complete pages, it says "access denied".

profile picture

Tim said

at 9:54 pm on May 26, 2008

it could be that if you log in with internet explorer and say "remember me" then it will work when you run the program..

profile picture

Tim said

at 9:54 pm on May 26, 2008

I'll put in another support request to up the upload limit on the api

profile picture

Tim said

at 11:42 pm on May 27, 2008

on a positive note.. looks like pbwiki is removing the 100k restriction on page upload size that was requiring this workaround

profile picture

Tim said

at 7:34 pm on May 28, 2008

uploaded version 2.1.0.1, which no longer requires that you be logged in through internet explorer in order to change large pages (like broken links).. also fixed a bug where the tool was essentially downloading the wiki twice.

profile picture

Tim said

at 11:02 pm on Aug 19, 2008

uploaded version 2.1.0.2 (doesn't have the bug with page names that are numbers)

profile picture

Tim said

at 2:39 am on Nov 26, 2008

2.1.1.2 uploaded.. deals with our non-premium status by masquerading as the wiki user when posting changes.
make sure you're logged into the wiki with internet explorer when running mindlessotto.exe

profile picture

Tim said

at 2:50 am on Nov 26, 2008

standby.. this exe appears to be bad

profile picture

Tim said

at 3:01 am on Nov 26, 2008

ok.. should be good

profile picture

bfg00 said

at 7:56 pm on Nov 26, 2008

okay, thanks for the update.

You don't have permission to comment on this page.