Saturday, April 21, 2012

Google Script - What is It?

v 0.2

Said one way ..... Google Script is server-side javascript with Google API extensions that can be used to manipulate Google services and create User Interfaces.  Scripts are typically stored within Google Docs Spreadsheets or Websites and executed within the Google Cloud.

Some examples:
  • Create user functions within a spreadsheet and use them for additional formula functionality
  • Read and write data to spreadsheets
  • Create new spreadsheet menus
  • Create a user dialog or form or other application interface.
  • Create a simple database using an interface and a spreadsheet or Fusion table to store data.
Yes, there is so much more you can do, however if you already know that, then you don't need my description ..

In order to USE Google Script within your Google Account, you really do need to understand how to program Javascript.  In particular, you need to understand Javascript objects, since they are central to the use of Google Script.  Youtube has an extensive list of tutorials and lectures for Javascript, and there is now one book available for Google Script.  Google has full documentation for its API set, though this can be a little hard going for the inexperienced.

Whilst ultimately I want to end up with a complete application, I have found that I've had to go through the Google documentation - work out what I need to do, and then find example routines to do what I want - read and write to spreadsheets, create and re-order sheets, build a dialog etc.  It starts out slowly, but does speed up as you get into it.

One thing I'll say about the GUI techniques - I've found them very similar to those used in the TK interface of TCL/TK, notably the Pack and Grid modes.


Later ....

Friday, April 20, 2012

Stores Filing System - Considerations

v 0.21

When I'm not away on my "real" job, I spend time with a group called "HARS" - the "Historical Aircraft Restoration Society".  One of the projects there is to repair the damage on the replica "Southern Cross" Fokker Tri-Motor (the original is safely housed in a display at Brisbane Airport).  I was asked "Can you come up with a program to allow us to keep track of the parts here - BUT - it has to be SIMPLE!!

No problems I thought - I can just use LibreOffice or a simple database program .. but as I found, it is not quite as simple as that.  Simple programs are not simple.

The first obstacle is that if you use a database program of whatever kind on a single computer, the stores system is useless if you don't have THAT computer available.  Sharing the database file is a kludge that rapidly becomes really scary.

Next, I talked to the guys that looked after the servers there.  They immediately told me that they already had a stores database system there - would I like to look at it and get it going?  Absolutely!  Unfortunately, after a LOT of reading and thinking about it, I realised that this stores system, whilst available over a network was designed for companies that had dedicated and trained people who used it all the time.  A 70 year old Aircraft Engineer who had spent his career with paper and files would not have a hope of walking up to this system and doing what he wanted - especially since he was here to play with aircraft for fun, not learn how to use a complex computer program.  So after a lot of time trying to find out what I'd missed about the program, I realised I hadn't missed anything and that it was quite unsuitable for what we needed.

Perhaps I could get them to install PostgreSQL as a relational database manager and I could then write something to connect to it in LibreOffice, or a scripting language or whatever ...... I was met with looks of suspicion (which I can understand, given some of the "offers" of assistance these people have had in the past).  More street Cred needed before I proceed down that path.

After some thinking, I finally settled on trying a system using Google Docs and Google Script.  The more I looked at it, the better it seemed for what I want.  It was in "The Cloud", it could be accessed from anywhere and on any Internet enabled device.  Now to work out how to implement it.



Later ............

Wednesday, February 15, 2012

Comparing Debian Netinstall with MSDOS

v 0.2
15Feb12

Why would I bother comparing Debian Netinstall with MSDOS?  Sounds silly - HOWEVER - when you look at it in a historical perspective, it is quite interesting.  This has no secret how-to at the end, I was simply thinking this morning when I was doing my 3k walk ... "isn't that cool" ....

In the '80s, MSDOS was king.  You got to pay good money to get a box and some diskettes that had a single user operating system that you could add to to get anything useful done.  Of course, if you were keen, you had the batch language and GWBASIC, but that was pretty much it.
  • If you wanted, you could pay more good money and get Turbo-Pascal, or MS-Basic or some other compiled language.
  • Perhaps you'd like to spend some more money and buy QNX - a multi-user system (that I think still exists).
  • How about a DOS Markup Text processing language?
Now, Debian Netinstall (doesn't matter whether it is Squeeze or Wheezy, the principle is the same) - you get to download it for free.  Looking at what you get in what is considered today to be "a bootstrap loader" for the real system - well we are smothered in riches and don't even know it.
  • You get the same sort of screen those MS-DOS users got, except you have Bash - a powerful programming language in its own right - but that is the SHELL!   
  • zip/unzip .. bzip .. grep ... awk ... wow!
  • Multi-User / Multi-tasking out of the box.
  •  Not happy with Bash?  How about Perl?  Pretty hard to beat that!
  • Typesetting?  Groff.  At least as powerful as those systems you paid good money for, but .. yes .. it's free.
  • No edline here - Vim.  You may laugh, however Vim is a pretty damn powerful editor.  But if you don't like that, how about Nano - still better than anything MS included at that time.
 There's more, but you get my drift ..



Later ...

Monday, February 6, 2012

Debian - Memory Footprints

v 0.2

Over the last few days, I've been having some fun working out exactly what you can do with the Debian netinstall ISO image.  It doesn't really matter whether you use the Squeeze or Wheezy image, the memory footprints will be about the same.

For the record, I've been using Virtualbox to look at these results.
  • In a text-only system as described earlier you could do useful work in under 32 meg.
  • With Xorg and a simple window manger like Openbox, Fluxbox, Fvwm or the like, 64 meg.
  • Xfce 128 meg
Remember, these memory footprints are minimums ... I had an Openbox session using 28 meg - then I opened Iceweasel and it went to 60 meg.  Even a terminal session will add 5 meg to your memory requirements.

Now we come to more complex stuff.  A Linux system has many processes operating in the background and the memory observations above probably simplify that a little too much.

So, a broad observation:
  • 1 gig ... use KDE or Gnome if you like (they are not for me)
  • 512 meg .. Xfce
  • 256 meg ... Xfce will do, but you will have more fun with Lxde / Openbox / Window Maker
  • 128 meg .. Openbox / Window Maker / Fluxbox / Fvwm will make you happy.
  • 64 meg ... Same as above but you will just have to be frugal.
  • 32 meg .. restricted use of window mangers or use the command line (ie no Xorg)
Enjoy




Later ...........