User:Leucosticte/Doing the Newgon stuff


 * Check out http://www.newgon.com/w/api.php?action=query&list=allpages&apnamespace=6&aplimit=500 and compare it to what's in the down folder. Anything new? If so, make a note of it for later.
 * Do LoggedOutAllPages.php to get the page titles Ain't nobody got time for that
 * Do LoggedOutExportAll.php to export the page titles That file doesn't exist either
 * Do this: http://en.boywiki.org/w/api.php?action=query&list=allpages&aplimit=500&apnamespace=0
 * And this: http://en.boywiki.org/w/api.php?action=query&list=allpages&aplimit=500&apnamespace=0&apfrom=
 * And this: http://www.newgon.com/w/api.php?action=query&list=allpages&aplimit=500&apnamespace=0
 * And this: http://www.newgon.com/w/api.php?action=query&list=allpages&aplimit=500&apnamespace=0&apfrom=
 * Copy and paste as you go into two tabs of Calc, boywiki and newgon.
 * B1: =SEARCH("title",A1,1)
 * C1: =SEARCH("/>",A1,B1)
 * D1: =MID(A1,B1+7,C1-B1-9)
 * Copy all the way down. Paste into: (but be sure to keep the XML files with the template pages separate from the other XML files, otherwise you'll be putting a bunch of crap in your templates)
 * http://en.boywiki.org/wiki/Special:Export (don't check "Include only the current revision, not the full history"; don't check "Include templates".)
 * http://www.newgon.com/wiki/Special:Export
 * In Komodo Edit, Ctrl-Shift-H. Do check Multiline. Find what: Replace with: (skip a couple lines before  ) Select appropriate directory
 * In Komodo Edit, Ctrl-Shift-H. Do check Multiline. Find what: Replace with: (skip a couple lines before  ) Select appropriate directory
 * PS1="[\u@\h:\w ] $ "
 * mkdir ~/childwiki.net/boywiki
 * mkdir ~/childwiki.net/newgon
 * nathan@nathan-Inspiron-518:~/Downloads/boywikiXML$ scp * stauffenbergssh@nathania.org:~/childwiki.net/boywiki
 * nathan@nathan-Inspiron-518:~/Downloads/newgonXML$ scp * stauffenbergssh@nathania.org:~/childwiki.net/newgon
 * Narrow the window so there's only one column of files
 * [stauffenbergssh@ipe:~/childwiki.net/boywiki ] $ ls
 * Copy and paste result into your favorite editor
 * [stauffenbergssh@ipe:~/childwiki.net/w/maintenance ] $ pico childLoop.php
 * Or better yet:
 * [stauffenbergssh@ipe:~/childwiki.net/w/maintenance ] $ php childLoop.php
 * Get a cup of coffee
 * Repeat for newgon
 * Find out the file extensions of the images. If you want to have fun, use getAllFileExtensions.php:
 * However, I'll you right now that the extensions are png, jpg, mp3, mp4, gif, JPG, PNG, pdf, jpeg, txt.
 * importImages.php --extensions=png,jpg,mp3,mp4,gif,JPG,PNG,pdf,jpeg,txt ~/down/down (maybe you don't even need the extensions, as long as you get the right directory. On second thought, better use those extensions; who knows if you have them as allowable ones)
 * (Do Manual:importImages.php after importing the file description pages)