Lotus Day

As well as being Australia Day, January 26th is also the anniversary of the first release of Lotus 123 (for my younger readers, “Lotus” is what we used to call spreadsheets, before they became “Excel”). Lotus 123 is now 26, and still going.

This news was brought to you via John Walkenbach’s Blog which includes a screenshot, which appears to be Release 3, but other than the 3 on the end of the file extension, and the worksheet letter on the front of the cell address, looks identical to the original release.  It may not be pretty, but the functionality made the bigest change to the way engineering calculations are made and presented since the introduction of the scientific calculator (The Hewlett Packard HP-45 was released 10 years earlier, if I remember correctly).

Evidence that 123 is still not totally defunct:  The IBM Lotus Forum

Another blogger with fond memories of the spreadsheet before Excel

Posted in Computing - general | Leave a comment

Repeating a set of data

The Microsoft Excel Blog has a discussion on ways of repeating a set of data, for instance making three copies of every row of a range of data.  I have written a simple UDF to do this job, and also extract specified rows or columns, or rows or columns at a specified spacing. 

Download IndexA.zip

Note that this is an array function, and must be entered with the usual array function procedure:

  • Enter the function in the top left cell.
  • Select the range to be covered by the function.
  • Press F2
  • Press Ctrl-Shift-Enter

For example:

 

indexa1

 

indexa2

 

 

indexa3

 

indexa4

 

Posted in Arrays, Excel, UDFs, VBA | 1 Comment

More from Davey Graham

I finaly found an uninterupted recording of the “She Moves Through the Fair” variations, rejoicing in the title of:

She Moved Thru’ the Bizarre/ Blue Raga

Wikipedia has this to say about a Jimmy Page piece called White Summer:

“Alleged Davey Graham influence
In 1963, Davey Graham recorded “She Moved Thru the Bazaar,” a DADGAD guitar arrangement of the traditional Irish song “She Moved Through the Fair.” Graham’s cover version was an acoustic instrumental piece derivative of the original, that incorporated Indian raga influences. Page’s version, titled “White Summer,” has some similarities to Graham’s.”

Alleged? Graham’s cover version? Some similarities? Listen for yourself:

The track from Coda got deleted from YouTube for copyright reasons; we’ll see how long this one lasts

Posted in Bach | Tagged , , | 1 Comment

Drawing in Excel 9 – Perspective Projection

Previous post

 Download PlotXYZ-xlsb.zip (XL 2007)

Download PlotXYZ-xls.zip (XL 2003 and earlier)

The drawing program presented in the previous post in this series has been modified to plot perspective projections of line drawings defined by 3D coordinates of line end points, and a list of connected points.  The coordinates of the viewpoint and the centre point of the plot are entered together with a scale factor.  The program then allows the spreadsheet ranges defining the drawing to be selected, or previously selected ranges may be re-used.

The procedure used in perspective projection is most easily visualised by imagining a sheet of glass placed between the veiwer and the scene to be drawn.  The glass is placed at unit distance from the eye (say 1 metre), and is perpendicular to the line of sight between the eye and the point that will be the centre of the drawing.  If the eye was maintained in a fixed position, and the outline of the scene was drawn on the glass, the resulting 2D image would be the same as will be calculated and plotted in the spreadsheet.

In more detail, the procedure carried out in the spreadsheet is as follows:

  1. Find the mid-point of the X, Y and Z coordinates of the scene to be plotted.
  2. The viewpoint is specified relative to the mid-point of the scene.  Use the calculated mid-point values to find the true coordinates of the viewpoint.
  3. Move the Origin to the viewpoint by subtracting the X, Y and Z coordinates of the viewpoint from every point in the coordinate list.
  4. Assuming that the X and Z axes are horizontal and the Y axis is vertical it is necessary to rotate the axes so that the Z axis extends from the viewpoint through the midpoint of the model:
  5. Rotate the X and Z axes about the Y (vertical) axis, so that the X coordinate of the mid-point is zero.
  6. Rotate the Y and Z axes about the X (horizontal transverse) axis, so that the Y coordinate of the mid-Point is zero.
  7. The projected coordinates of the 2D perspective image (X’ and Y’)are then given by: X’ = X/Z, Y’ = Y/Z
  8. The projected X’ and Y’ coordinates are then scaled and trimmed using the techniques described in the previous post.

More detail of the process is given here:  Imperial College 3D Graphics

Screen shots of images produeced by this program are shown below, and the data used is included in the download files.

A couple of words of warning about this spreadsheet:

  • The suspension bridge drawing includes over 3000 data points, and when plotting in Excel 2000 seems to cause a lockup half-way through the process.  For this reason I have included a greatly simplified model with the xls file for Excel 2003 and earlier.
  • The complex bridge drawing is successfully plotted in Excel 2007, but it is painfully slow.  It takes over 30 seconds to draw on my machine, although details (which contain fewer lines) plot much more quickly.

The slow drawing is related to the drawing process, not the projection calculations, which are reasonably fast.  Excel 2000 and 2007 (surprisingly) seemed to be equally slow, and as far as I know the solution lies in the hands of Microsoft, but if anyone does know a way to speed up the plotting of complex images I would be glad to hear it.

Cube - Top Left view

Cube - Top Left view

 

Cube - same angle, reduced viewing distance

Cube - same angle, reduced viewing distance

 

Cube - zoom in

Cube - zoom in

 

Suspension Bridge - overall view

Suspension Bridge - overall view

 

Bridge detail x 4

Bridge detail x 4

 

Bridge detail x 10

Bridge detail x 10

Bridge Detail x 50

Bridge Detail x 50

Posted in Drawing, Excel, VBA | 3 Comments

A Tribute to Davy Graham

The English musician Davy Graham died from Lung Cancer on 15th December 2008, an event that received no attention from the mainstream media, at least here in Australia, but he was probably the single greatest influence on the British musicians who followed him.  Quoting Wikipedia: “Although he never achieved great commercial success (and indeed perhaps did not seek it),  Graham’s music received positive critical feedback, and has proved to be influential. Credited for sparking the 1960s folk revival in England, he has inspired artists and fellow players such as Bert Jansch, John Renbourn and Paul Simon. Jimmy Page and Robert Plant of Led Zeppelin have cited Graham as an influence to their music. Folk Rock bands such as Fairport Convention and Pentangle also show large Graham influence.”

The You Tube clip provides a glimpse of his life and music.

The Official Davy Graham Web Site.

Posted in Bach, Uncategorized | Tagged , | 1 Comment