NOTE: I fat-fingered the installation of supporting CA certs on my web server. I hope this didn’t throw anyone off. It is fixed now.
I have made a calculator for my PocketCHIP. As a roving computer geek I never know what I’m going to get into. As a software developer and tinkerer of digital hardware I frequently need to do boolean algebra. When I’m working on networks or servers I usually need to do network related math… which is boolean algebra on numbers formatted differently. So I’ve put together a calculator with an initial subset of my wish list and formatted the screen to fit the PocketCHIP. This app can also be used on a regular CHIP with the GUI OS installed.
This app has become like an additional appendage to me so I thought I’d share. Its free for use on any CHIP / PocketCHIP. Here’s a screen grab:
I’ve setup a repository that apt-get can pull from and created a script to install the repository’s public key and “sources.list” entry. Then it runs “apt-get update” followed by “apt-get install xc”. The actual executable and package name is “xc”, meaning: “X windows Calculator”. Not very imaginative but quick to type.
So if your game to try it out put this script on your CHIP/PocketCHIP and run it as root:
install-xc-chip.sh (2.0 KB)
sudo sh install-xc-chip.sh
Should suffice to do all of the setup and load it onto your device. The “xc” package also recognizes @marshmallow’s pocket-home and will add a launcher icon to your home screen. You’ll have to restart pocket-home to see the icon (ie. reboot). The start menu of the CHIP’s GUI will have the calculator in the “accessories” submenu. Its titled “Computer Geek’s Calculator”. Lastly it can be launched with the command “xc” in the terminal, or on the CHIP GUI in the “run program” dialog.
There are some unusual features so I encourage you to read the help file, especially the stuff about keyboard use. The help viewer is “docview” from the fpGUI project. Its actually in a separate package, since I’ve started to use it for all of my tech info collecting. I probably will use it in additional CHIP related projects and didn’t want to have multiple copies laying around. “apt-get” takes care of auto-installing it.
If you prefer not to use the repository and manually install the packages or just want to know more about the gory details of my delivery mechanism you can head over to my website.
If you want to uninstall it you can do the following:
sudo dpkg -P xc docview sudo rm /etc/apt/sources.list.d/jfp_pc_free.list
The last line will remove the “apt” source if you used the installer script provided here. If you manually setup the apt source then you’ll need to manually clean it up, unless you may want to re-install it again.
In case anyone is interested: I wrote this with FreePascal v3.0.0 and fpGUI v1.4, with some of my own enhancements. The enhancements I’ve made have been merged into the “develop” branch of fpGUI… which really isn’t ready for use yet.
A portion of the development was done on the PocketCHIP and on a CHIP, connected to a projector for an approximate 8 foot by 6 foot monitor.
I used “Yada”, which is a discontinued Perl script, for the Debian packaging. Unfortunately the Debian guys discontinued this tool. Its the only thing, that I’ve found, that brings some sanity to the Debian packaging process, which resemble a pot load scripts and tools bound together with random bits of bailing wire and bubblegum. The version I used shipped with Debian Lenny (v5). Since its a Perl script it will continue to run on any Debian based system until the package building system or Perl changes enough to break it.
Please use this topic to report problems and suggestions. I’ll get a proper bug tracking system on my website as soon as I have time to evaluate and pick one.