Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Table of Contents
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
http://www.instructables.com/id/Wikipedia-in-your-pocket/
intro: Wikipedia in your pocket
aka. The Hitchhiker's Guide to the Galaxy, v1.0 :)
This Instructable will set out how to construct what I believe to be a unique implementation of Wikipedia in an offline, portable device. It involves installing a stripped-
down distribution of Linux on a Psion 5mx handheld, and installing a static HTML version of Wikipedia for use with one of two browsers. Most importantly, you do not
have to be a Linux wizard to achieve this. I will assume a basic familiarity with computers, but you do not need experience with the intricacies of filing systems, compiling
source code and the stuff that traditionally puts people off using Linux. Following the steps in this Instructable should let you create your own HHGTTG- I will explain what
I am doing but also try to give as explicit instructions as possible.
(For this reason, seasoned linux hackers can take the "skip this step" instructions provided at the top of the steps involving partitioning the CF card and unpacking
archives to it)
Also, I apologise deeply for how dry this Instructable is. I have tried hard to make the bulk of it readable without skimping on detail or being overly prolix, but explaining
how to partition a removable volume and unpack .tgz archives to it is difficult to make amusing. Sorry.
Lastly, but by no means least, I could not have done this without the efforts of:
My hack pales into insignificance compared to any of these achievements. (This lengthy grovel is mostly lest anyone accuse me of taking credit for the work of others. I
emailed Adrian on the 22-04-2008 to ask if he objected to me reproducing his works here, but had no response)
Image Notes
1. Wise advice.
- A working Psion 5mx PDA. Around £70 (ebay), or possibly free if you search enough attics.
- A Compactflash card of at least 1GB- I recommend a 4GB card. £11 (ebay)
- A Compactflash card adapter for your PC, either USB or PCMCIA. £4 (ebay)
- A PC running Linux. If you don't have it installed, I would suggest burning a live CD or making a bootable USB drive for a distribution such as Puppy.
- The archives with which to install Kludged Linux on your Psion. These may be found at Adrian's site here, at the bottom of the page under "download". If his site should
disappear, let me know and I will provide my copies for download
- Static HTML dump of Wikipedia.
Text-only dump from 2003 (large file download)
CD distribution of 4,500 good articles with thumbnail images (warning, 750MB file download)
There is a static dump of the entire English language Wikipedia as of June 2008 here: http://static.wikipedia.org/downloads/2008-06/en/
- A flask of weak lemon drink
Image Notes
1. If you don't have access to a computer with Linux installed, a live CD such as Puppy will do fine. It does need fdisk, however.
http://www.instructables.com/id/Wikipedia-in-your-pocket/
2. USB or PCMCIA CF card reader. 5GBP on ebay.
3. Towel for added frood points.
4. Not pictured- flask of weak lemon drink.
5. Working Psion 5mx- find one where you can. This does not work on the 3 series.
6. CF card- must be at least 1GB to be useful, I recommend 4GB or more. About 11GBP on ebay
7. Also not shown, the Kludged Linux archives and offline Wikipedia dump, because they exist in some false pixelated metaphysical computer plane and cannot be
touched and tasted and felt and smelt and seen.
For Linux wizards- to skip this step, determine the device ID (eg /dev/hde or /dev/sdb) of your CF card, ready to partition in the next step
Open a console, and determine what device the CF card is mounted as. You can do this by typing:
cd /dev
ls -l > ~/devices1
Then plug the CF card adapter into your PC, and type:
ls -l > ~/devices2
cd ~
diff devices1 devices2
You will see a line or two beginning with > with no matching line beginning with <. The cryptic few letters are what we are looking for. See image 1
Type
cd /dev
ls xxx
where xxx are the letters you found earlier- these are likely to be hde, sda, sdb or similar. Now plug the CF card into the reader and type
ls xxx*
You should see, in addition to the one you saw earlier (eg "sdb") another entry with a number after it, eg "sdb1". This represents the partition on the CF card, whereas the
entry with no numbers (sdb) represents the card itself. See image 2
Image Notes
1. The device name will likely be three letters with a d (for drive) in the middle. Image Notes
Ignore the numbers for now, we'll cover those later. 1. Unplug flash card before this step
2. Plug in flash card between these steps. 2. This is the device representing the flash card (actually the card and the card
reader count as one device)
3. Plug in the card before doing this step
4. These represent the partitions on the CF card. You will likely only have one, I
took these screenshots out of order.
5. I can't be a true Linux geek- my computer doesn't have a japanese girl's
name :)
For this step you will require admin privileges on the Linux machine. The easiest way to do this is type su and the root password, but if you're overly concerned or don't
have root access you can type sudo for the important commands and give your user password.
Type fdisk /dev/XXX where XXX is the device identifier we found earlier. From now on I will refer to it as XXX.
Type p to print the partition table- if an entry such as this appears, type d to delete it. Type p to check there are no remaining partitions- if there are, type d again to
remove any remaining ones. See image 1
Now type n for a new partition, p for primary, 1 for partition 1, 1 to start it at the beginning of the disk, 8M to make it 8MB in size
a then 1 to make it bootable
t then 4 to make it a type 4 (DOS) partition. Type p again to check your current partition table. See image 2
Now type n for a new partition, p for primary, 2 for partition 2, 9 (or the lowest number available) to start it after the end of the DOS partition, 1023 (or the highest number
available) to make it fill the remaining space
http://www.instructables.com/id/Wikipedia-in-your-pocket/
t then 83 to make it type 83 (Linux)
p again to make sure your partition table looks like picture ####.
Now if you type ls /dev/XXX* again you should see XXX for the CF card, XXX1 for the DOS partition and XXX2 for the Linux partition. If this happens- congratulations,
you've done the most difficult part of this Instructable. Drink deeply from your flask of weak lemon drink to congratulate yourself on your victory of the machine.
Image Notes
1. Incomprehensible rubbage we don't need to be overly concerned about
2. The important part- we need to delete this partition and replace it with a
small DOS one and a larger Linux one
Image Notes
1. Delete the partition on the card
2. Create a new, 8MB primary partition 1
3. The filesystem type is wrong- fix this in the next step
Image Notes
1. New primary partition 2...
2. ... starting where the last one left off...
3. ... filling up the remaining space.
4. Make it type 83 Linux, it doesn't want to be bootable.
5. These space numbers may be different for your card, especially if it isn't 4GB,
but the rest should look pretty much the same (except device letters if yours are
different from mine)
Image Notes
1. Who'd have thunk there were this many types of file system? We are only
interested in 4 and 83.
2. Make partition 1 bootable, then set the file system type...
http://www.instructables.com/id/Wikipedia-in-your-pocket/
step 4: Set up the filesystem
To skip this step, create a DOS filesystem on partition 1, and an EXT2 on partition 2. Put a file on the DOS partition, then plug the card into your Psion and
start it up to make sure it is happy with the partitioned CF card
Type mkfs.msdos /dev/XXX1 and then mkfs.ext2 /dev/XXX2 . Now you are ready to make sure your Psion is happy with the CF card.
Type cd /mnt
mkdir psiondos
mount -t vfat /dev/XXX1
/mnt/psiondos
cd /mnt/psiondos
touch hello.txt
to mount the card on your PC, and create a file on the DOS partition, then
cd /
umount /dev/XXX1
to unmount the card.
Now plug the card into your Psion and turn it on. Use the button in the bottom left of the screen to navigate to the D drive- you should see your file hello.txt in the file
manager. If you do, then the Psion is happy with your card and you can proceed to install Linux on it. If not, either there was a problem with creating the filesystem in the
previous steps or your Psion does not recognise the card- try repeating the previous steps, getting a friendly Linux wizard to set up the file system for you, or (as a last
resort) try with a different CF card to see if you can find one that works.
Image Notes
1. The D drive represents the CF card
2. You won't have this at this stage, I took the photos out of order so this is part of the Linux installation
3. More Linux installation stuff
4. I give my test files silly names to avoid mistaking them for system files. Dave is a popular choice- I've never found an operating system component called Dave.
Plug the CF card back into your PC, and repeat the
mount -t vfat /dev/XXX1 /mount/psiondos step.
Now type
cd /mnt
mkdir psionlinux
mount -t ext2 /dev/XXX2 /mnt/psionlinux
to mount the second partition.
Now you need to unzip the contents of the files.zip archive, and copy the contents of the files directory into /mnt/psiondos. One way to do this is
cd ~
unzip /path/files.zip (where /path/files.zip is the path to where the zip archive is saved)
cd files
cp -r * /mnt/psiondos
Now you need to unpack the Kludged Linux distribution to the Linux partition. Type
cd /mnt/psionlinux
tar -xzvf /path/ksf_.tgz (where /path/ksf_.tgz is the path to the Kludged Linux archive, eg , eg ~/downloads/ksf100807.tgz)
This will take a few minutes, so drink your flask of weak lemon drink while pondering life's imponderables.
http://www.instructables.com/id/Wikipedia-in-your-pocket/
Image Notes
1. Not much to show in pictures here, so have some weak lemon drink to tide you over until step 6
How you do this step will depend on which Wikipedia dump you are using. I will show the process for the CD distribution.
You can just unpack the archive straight to the CF card, but in my experience there may be some teething troubles with the installation of Linux which require clearing
and rewriting to the CF card, so in the long run it is more sensible to unpack to your hard disk and copy the completed dump to the CF card.
Create a directory for your dump to be unpacked into, for instance by typing
cd ~
mkdir wikidump
This will take a while, depending on the size of your dump and speed of your computer. I suggest you take this opportunity to refill your flask of weak lemon drink, adding
flavour enhancers such as ginger, lime juice or vodka to suit your taste. Once the archive has finished unpacking, find the directories you require- for the CD distribution
these are wp andimages. Copy these to the Linux partition in the /usr directory:
cp images wp /mnt/psionlinux/usr/
This will take a long time- upwards of 10 minutes for the CD dump which is around a gigabyte in size. Take your flask of weak lemon drink to the brow of the nearest hill
and gaze towards the horizon, imagining the untold numbers of things you will do with your new Wikipedia-in-your-pocket, such as travelling the country hustling pub
quizzes. Return from your dreamlike reverie and return to the computer to see your dump finish copying to the CF card. From the CD version you will also need to copy
the index.htm file from the root of the archive:
cp index.htm /mnt/psionlinux/usr/
You are now ready to put the card in the Psion and get going!
(Note: I used both the Terodump and the CD version, because the Terodump has a broad coverage of short text articles, whereas the CD version has more up-to-date,
detailed articles with images about important topics, so the two together have both breadth and depth. Space constraints on your CF card may limit your choice of
Wikipedia dump, in which case you will need to choose the version that best reflects your desired usage.
If you are installing two different versions, I suggest putting each in its own directory, for instance /usr/terowiki and /usr/cdwiki). What you copy across will depend on the
wikipedia dump you are using- from a Terodump you basically want the "wikipedia" directory and everything in it, and maybe the "index.html".
http://www.instructables.com/id/Wikipedia-in-your-pocket/
Image Notes
1. Bonus points for drinking your weak lemon drink at an altitude greater than 2,000m above sea level
2. A nice spot to ponder while your CF card is filling.
Unplug the CF card and plug it into the slot on your Psion. Turn on the Psion, navigate to the D drive, and double click on arlo.exe to run it.
The Psion should present you with a boot menu- you can press 0 to boot up or wait 5 seconds for it to continue. You will then see a penguin logo and a lot of text scrolling
past as Linux starts up. The boot sequence may complain of error in the filesystem- unless these are serious enough for the boot sequence to stop, they can usually be
ignored. You will eventually see a boot prompt saying
Debian GNU/Linux 3.1 tty1
(Root password is "root")
Psion login:
Type root as username and password, and you will reach a command prompt (root@Psion: ~#). See image 1.
Congratulations- you now have a very small and quite underpowered Linux palmtop. Drink a toast to your success with the remainder of your weak lemon drink. However,
the command prompt is not a very useful place to be if you want to browse Wikipedia. Type xinit to start the X window system. You should see the screen turn blank for a
moment, then a stippled pattern with a black X in the middle of it. If the screen remains blank for more than about 10 seconds, go to the bottom of this step to find the "No
X startup" fix.
After the stipple background shows for a few seconds you should see a taskbar at the bottom of the screen- this consists of a CPU usage meter (useful for telling whether
the Psion is thinking hard or not), a Menu button that holds the applications, and a clock (that will probably be wrong- ignore this).
See image 2
The parts below are for information purposes- if you are happy at this point in the install you can continue to the next step.
To turn it off:
To quit X, press Ctrl-Menu-Backspace to return to the command prompt. To turn off the Psion (for instance to change batteries or add additional content to the CF card),
type shutdown -r now at the console, and press Menu-Esc after the Psion beeps, while the screen is blank or displaying the boot menu but before the penguin appears.
You can now safely remove the CF card and batteries- when you want to use the Psion again, replace these and turn it on, and it will boot up Linux. Note that you do not
have to shutdown the Psion to turn it off- just press Menu-Esc to make it sleep, and press Esc or tap the screen to wake it back up. It is only necessary to shut it down to
replace batteries or the CF card.
No X startup?
I have found that occasionally, especially if the Psion complains of errors in the file system, it will refuse to start the X window system. If the xinitmmand just shows a
blank screen, press Menu-1 to get back to the console. If it says "Touchscreen not found" or something similar, shut down the Psion as described above and restart it-
this fixed the probem every time it occurred for me. Also, since running e2fsk on the linux file system while teh CF card was mounted on my PC has stopped the Psion
complaining of file system errors, and the "Touchscreen not found" bug has not reoccured. YMM, as always, V
http://www.instructables.com/id/Wikipedia-in-your-pocket/
Image Notes Image Notes
1. Inability to type on the tiiiny keyboard coupled with impatience and a slow 1. Yes, it's the reflection of my fingers on the shutter button. Yes, I'm hanging my
processor. head in shame at this very moment.
2. We have a Linux prompt! 2. Applications. Dillo is the most important, although there is also a mean game of
Hangman
3. Menu button
4. Left to right: hide taskbar button, CPU activity graph (very useful) and clock
(less so).
Dillo is just a lightweight web browser, so can be used like any otther (type an address in the address bar, click on links to activate etc.). To be useful on the Psion
screen, however, it requires a few tweaks.the V menu and select "Options...". This will take around 30 seconds to load, with little indication that it is happening other than
the CPU graph, but you will eventually reach an options screen. Tap the "Font" tab and set the font factor to around 1.4 depending on how large you want text to be (2
gives very large, clear text, 1.2 gives smaller text but allows more to fit on screen).
If you can handle another lengthy-ish wait, tap the Color tab and the Link color block. After another pause you will see a color selection screen- I suggest setting the value
slider to a low value to make links more visible on the LCD.
Finally, under the Network tab you will find the start page and home page addresses- I suggest setting both of these to the path of the index page of your Wikipedia
dump, as it will appear on the psion's file system, prefixed with file:// because it is not a web address (For example file://usr/index.htm)
Once you are happy with the settings, click the Save button, quit Dillo and restart it from the menu. It should start up to your Wikipedia dump index page.
Image Notes
1. Magnification factor of text on screen. Set to somewhere between 1.2 and 1.8 to trade legibiltiy against amount of text on screen.
2. I didn't have the patience to wait for screenshots of these two, but the setup is fairly straightforward.
3. More finger reflections- taking photos of LCDs is too difficult without shiny studio lighting.
/ or Ctrl-F can be used to search for text within a page, although if Dillo is running in full-screen mode the search term text box will not be shown. More on how to use Dillo
can be found at their homepage here at www.dillo.org.
Now you can go to the index page, search for, for instance, lemons, to find out all about your favourite hobbyist's beverage.
http://www.instructables.com/id/Wikipedia-in-your-pocket/
Image Notes
1. Pictures are displayed- photos look fairly poor, but diagrams and maps can come out OK
2. Tap links to follow, nothing surprisng there
3. The scrollbar is about 3 or 4mm across- you will want something reasonably pointy to use on the touch screen. I use a plastic mechanical pencil tip gently.
4. Full screen button removes the toolbar, search bar etc. for more viewing area- very handy when you only have 240 vertical pixels! This shot is in full screen mode.
Download the ARM architecture links package to your PC from one of the mirror links on this page
Shutdown the Psion (shutdown -r now at the console, then press Menu-Esc after the beep before it boots up again) and remove the CF card to plug into your PC
Mount the CF card (mount -t ext2 /dev/XXX2 /mnt/psionlinux)
Copy the file to the CF card (cp /path/links_blah.deb /mnt/psionlinux/usr/)
Unmount the CF card (umount /dev/XXX1), plug it back into the Psion, turn it on and wait for it to reboot.
Now, after logging in, type
'cd /usr
dpkg -i links_blah.deb (tab completion helps out here, you can just type "dpkg -i links" and press tab to let the prompt complete the command for you
links index.html (or whatever the path to your index page is) will start links at the chosen page. Again, sorry there are no screenshots but IIRC this process doesn't give
you much feedback if everything works OK, so there's not much to show.
Links takes a little getting used to, especially as it scrolls page by page rather than line by line. The important commands in Links are:
space- down a page
b- up a page
down arrow- next link
up arrow- previous link
right arrow- follow highlighted link
left arrow- back
esc- open menu (while in menu, arrow keys navigate as expected)
Image Notes
1. Mmmm, delicious knowledge.
http://www.instructables.com/id/Wikipedia-in-your-pocket/
step 11: You're done!
Congratulations- you now have an object of beauty, utility and massive geek bragging rights. Show it off to appreciative audiences of hackers and Douglas Adams fans.
Take it to a pub quiz and be ejected. Be the guy who has the answer to obscure and irrelevant questions.
Don't panic!
Secondly, it has come to my attention that a fair few people have different hardware they would like to try this on, but can't get their hands on a 5mx.
The original Psion operating system was no good because it didn't have the ability to display HTML files, which ultimately are what Wikipedia is made of, so installing
Linux was necessary to get this feature. There are plenty of modern PDAs and smartphones that already have a browser, some even running Linux out of the box, that
would make great bases for a similar project.
If your PDA or smartphone has a browser, all you have to do is get a large memory card that your device can read from, and unpack a static wikipedia dump
to it.
If you have a Nokia 9300, you don't need to install Linux- it already has a browser with the Symbian OS it's running, so all you should have to do is plug in a memory card
with the wiki dump on it.
If you have your own device and are thinking of doing something similar, I would love to see photos or screenshots of it running- if you're happy for me to do
so I will add them to this Instructable and credit you
http://www.instructables.com/id/Wikipedia-in-your-pocket/
Image Notes
1. Now that's what I call a 'tache.
Related Instructables
Advertisements
Make Magazine Special Offer
Comments
50 comments Add Comment view all 148 comments
I have resisted the temptation to get a Blackberry so I'm not sure how it would work on one of those, but I don't think they have web browsers so it
probably wouldn't. If you have a Blackberry and it does, feel free to correct me.
http://www.instructables.com/id/Wikipedia-in-your-pocket/
Ward_Nox says: May 12, 2008. 8:53 PM REPLY
wikipedia really is like the guide if think about it its a e-book writen by millions of people
http://www.pscience5.net/PGG.htm
http://fz.hobby-site.org/hp660lx/jlime-stable/
http://fz.hobby-site.org/hp660lx/jlime-winter/
Regards
You are right, this is reinventing the wheel somewhat as people have already put wikipedia dumps in ebook format for a number of popular readers.
Googling around for "wikipedia ebook (your ebook reader name here)" should find it if someone has for your particular format. Bear in mind that the
http://www.instructables.com/id/Wikipedia-in-your-pocket/
machine you use needs several gigabytes of storage, though, so you will need a large memory card that fits your m505.
link: http://www.dcemu.co.uk/vbulletin/showthread.php?t=144827
Anyway, if you download this and get it working, I'd love to see screencaps and I'll add them to the Instructable if you like.
If none of these apply to you, I can only suggest you try to find the file through Wikimedia in case they have moved it somewhere recently and I'm finding
the UK mirror service copy or something weird like that.
http://www.instructables.com/id/Wikipedia-in-your-pocket/
lifelong-newbie says: Sep 5, 2008. 12:46 PM REPLY
There's no organisation for us though. Wrong in the head anonymous?
"The original Psion operating system was no good because it didn't have the ability to display HTML files, which ultimately are what Wikipedia is made of, so
installing Linux was necessary to get this feature."
I'm afraid the author never used a Psion 5mx. The true is that there are two web browsers for Psion (I use them a lot):
1) All Psion 5mx are bundled with a web browser called... Web. It's in the PsiWin CD. You have to install it. It's not the fastest browser on Earth and has
many limitations, but works fine. The last version is 2.00 (1999).
2) There's an Opera browser for EPOC! It's version 5.14. It's much faster and powerful than Web and more advanced than the current versions of Dillo. You
can get it at Opera's public FTP.
Cheers,
--
http://alinome.net
I have used a "vanilla" Psion, but I had no idea the Psion came bundled with a browser! I was given mine by a friend without any of the cables, CD and
other accessories so I only saw what was on the machine "out of the box". I don't count the Opera for EPOC as it's an external add-on piece of software,
but it seems I'm guilty of not doing my homework sufficiently. I will amend the Instructable when I get a chance (I'm on holiday at the moment)
I'm quite annoyed because I managed to break the screen on my Psion, so I'm wondering whether to get a replacement one and plug the CF card
straight into it, or try the v2.0 with something like a Nokia internet tablet.
I'm a Debian user since the 90's, but I couldn't do without my Psion, its many good apps and some programs I wrote for it. I use a German Psion 5mx
Pro with a Spanish EPOC. I love to write, to program and to travel by bike. That's why this machine is still unbeatable for my needs. I hope I will use
both EPOC and Debian in my Psion soon.
I don't understand what you mean with "I don't count the Opera for EPOC as it's an external add-on piece of software"... Do you mean you would use
only the apps bundled with the Psion? There are many good third party apps for Psion; now almost all of them are free (as in free beer)
abandonware, and many are --free (as in free speech) :-) Why not to use them? Also Dillo and the whole Debian are "external add-on pieces of
software"...
I suggest you to update the article to include and compare all the alternatives:
EPOC + Web
EPOC + Opera
Debian + Dillo
Debian + Lynx
Anyhow I think Opera is the best option for your goal, in all aspects.
Sorry for your broken screen. I suffered it too some time ago. That's why the last years I bought spare Psions on eBay. They are very cheap and I still
do prefer a Psion than any modern tablet or PDA. Only 350 g, a good keyboard and 20-30 working hours with two AA standard rechargable cells are
unbeatable features. Happily I don't need color or videos or music... :-) But I miss Ethernet, USB... :-(
Cheers,
--
http://alinome.net
(I've read the first four about 15 times each and the last only five. I've read "Salmon of Doubt" too.)
We count in what Mathematicians call "Base 10". We have ten digits in our number system, 0 through 9. When we write a number, the
right-most value is the number of "ones" (or 100 ), the next (moving to the left) is the number of "tens" (or 101 ) , then "hundreds" (or 102 ),
and so-on.
When we deal with other number systems, the theory works the same way. In octal (a commonly used number system on old mainframe
computers), also known as "Base 8", the right-most digit is the number of "ones" (8 0 ), the next digit (again, moving left) the number of
"eights" (8 1 ), then "sixty-fours" (8 2 ), etc.
We look at it and assume a "regular" way of counting, which for us is Base 10. There are 2 ones and 4 tens.
With Base 13, the rightmost value is the number of ones (that's the "2") and the next to the left is the "thirteens", the "4".
We can convert this to "regular" numbers easily enough, once we get what's going on: 4 thirteens plus 2 ones (4x13 + 2x1) is 52+2, or 54.
If it helps, I'm just strange enough that I do algebra when I'm bored. :)
http://www.instructables.com/id/Wikipedia-in-your-pocket/
PKM says: Jul 13, 2008. 6:02 AM REPLY
Tom Lehrer (in the song New Math, I highly recommend it although it's a little outdated now) describes base 8 as
"Don't worry, base 8 is just like base 10, if you're missing two fingers."
wrs715: my old maths teacher used to give the people who finished their work early strange, obscure bits of maths that were off
the syllabus but still interesting. One of the ones I remember was strange bases- first the usual (10, 16, 8, 2), then some abstruse
ones (base 5, 9 and 11 IIRC), then the very weird base 0.5 (only good for fractions between 0 and 2 :P) and the possibly more
weird base minus 2.
http://www.instructables.com/id/Wikipedia-in-your-pocket/