Programming in Jungles

From BR Wiki
Jump to navigation Jump to search

Sometimes we're blazing a trail through unexplored territories we may write some Business Rules! programs along the way. Well out there in the jungle there is no internet. So if we want something from the web, we'd better pack it to go first. The easiest way to take this wiki with you is to make your own wiki on a stick (a.k.a. Thumb drive or USB drive) and export data from this wiki to it. It's much simpler it sounds, thanks to some innovative work from CHSoftware.


Want to create a personal web host on a stick? Here's how to do it:

  1. Install a Wiki on a Stick to your thumb drive.
  • The required packages (for our ends) are:
  1. MediaWiki
  2. PHP5
  3. Apache Server
  4. MySQL
  • Test and verify that you can access your wiki on a stick
  1. Export the desired Top level categories or any category or any single pages that you want from this wiki. Templates are critical.
  • (Improvement in this step is planned, special categories will be made for the convenience of exporting)
  • Export sizes are limited, so you can't export EVERYTHING at once, but you can get quite a lot.
  1. Login to your new wiki with the user name Admin and the password password.
  2. Go to special pages and then Import (generally towards the end of the page).
  3. Choose the file that you previously exported (in step 2)

That's it. Now when you are ready to launch your portable wiki on a stick, all you have to do is double click on mowes.exe in the root of your USB drive.

Run from a Batch File

If you'd like create an appropriately-named batch file to launch mowes.exe instead:

BRWiki.cmd (for example) might contain:



You may like your wiki to automatically pop up when you insert your thumb drive into a computer. To do that you'll need to make an AutoRun.inf file and place it in the root directory of your thumb drive. The AutoRun.inf file is just a regular text file and should contain the following:


It may contain more, but that's the bare minimum.


Perhaps you don't want your wiki on a stick to be stored in the root of your flash drive. Or maybe you don't want it on a flash drive at all. Have it your way! You can put your wiki anywhere you want- even at the end of a ridiculously long path in My Documents on your hard drive. Or perhaps you want it on your flash drive, but in a folder of it's own, separate from all of your other files and folders. It will be fine there too. Just make sure to alter any Autorun or Batch files that call the wiki. That's all you have to do!


Q. What should I export from the BR Wiki?

A. Always get:


Note: You can't take everything in one export because it will exceed the maximum import size on your local wiki.

Q. Can I edit my wiki on a stick?

A. Yes, you can, but be aware that all changes you make to your wiki on a stick will be lost forever just as soon as you import additional data from the BR Wiki. When programming in a jungle, you should log the desired changes, and when you are back to civilization (internet accessible) make those changes to the BR Wiki.

Q. Page not found

A. If you get a Page not found error in your browser than it's probably because the IP address hasn't populated and cached everywhere yet... Simply, wait a few seconds and press F5/Refresh.