BCS Latest Grails Ubuntu 14.04

The utility SDKMAN is the easiest way to maintain the latest version of Grails on Ubuntu 14.04.

SDKMan! (The Software Development Kit Manager). This tool makes installing Grails on any Bash platform (Mac OSX, Linux, Cygwin, Solaris or FreeBSD) very easy.

First get the tool by issuing the following command.

curl -s get.sdkman.io | bash

Follow the instructions on-screen to complete installation.
Open a new terminal or type the command:

source "$HOME/.sdkman/bin/sdkman-init.sh"

Then install the latest stable Grails:

sdk install grails

After installation is complete and you’ve made it your default version, test it with:

grails -version

That’s all there is to it!

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Sunshine Two


$toi = “Roy Blunt” .”
” . “22 Hen’s Tooth Way
Jefferson City, Missouri”;
$bla1 = "Discrimination in the workplace from May, 2011 through June, 2016.";
Mcode>
$tom = “Arch Brooks
202 Turkey Turd Lane
Columbia, Missouri 65201″;
$pub = “Flock wid da po po
Flock wid da prosecutors”;
$mamt = “10.00”;
$ema = “arch@archbrooks.com”;
$recr = “Compliance with Title VII reporting requirements for the years 1970 through 2016.”;

echo ““;
echo $toi . “

“;
echo “This is a request for records under the Missouri Sunshine Law, Chapter 610, Revised Statutes of Missouri.”;
echo “

I request that you make available to me the following records: $recr”;
echo “

I request that you make available to me all records that relate to $bla1″;
echo “

I request that the records responsive to my request be copied and sent to me at the following address: “;
echo “

$tom”;
echo “

I request that all fees for locating and copying the records be waived. The information I obtain through this request will be used to $pub”;
echo “

Please let me know in advance of any search or copying if the fees will exceed $” . $mamt . “.”;
echo “

If portions of the requested records are closed, please segregate the closed portions and provide me with the rest of the records.”;
echo “

$tom”;
echo “

$ema”;
echo “

“;
?>
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Make Anaconda Up To Date

There are those times when the Anaconda (Spyder) installation needs to be updated. Click on the start button and invoke the Anaconda command prompt. Next type in “conda update anaconda” (minus doubld quotes) and press the enter key.

spy001

If your site is not up to date you will observe updating activities in the command window.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Establish Display Label

This application establishes a repository for database display labels.

ded01

The first option establishes a table of all the unique data elements of  the active MySQL installation for every database within the installation.  Only non existent data element names are inserted into the table.

The second option allows you to populate label information on a table basis prompting the user for the label information of all not blank labels for that particular table.

ded02

The “cust” data element now has a display label of Customer.

The third option allows you to position the database to a specified location.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Single Table Data Entry

This application allows the user to perform data entry on any available single table.

sden01

The structure for dynamically creating data grid entries is listed below.

/// Data Grid COlums
  dgCols = record
    /// Data Name
    dna: string;
    /// Heading Title
    hdg: string;
    /// Display Width
    width: Integer;
    /// Make Element Read Only
    readOnly: Boolean;
  end;

To populate the grid data element tool the following code should e invoked.

frm019C.ZapDge;
  frm019C.AddCol('name', 'Name', 250, false);

The ZapDge procedure initializes the data grid staging structure.
The AddCol Procedure adds a column to the data grid.  Repeat this procedure up to ten times to add additional grid data elements.

The structure for he remainder of the application is listed below.

/// Dialog Record Area
  frm019_area = record
    /// Caption
    Caption: string;
    /// Notebook Tabs
    nbt: Array [0 .. 4] of string;
    /// Name Of Database
    Database: string;
    /// User Id
    UsrId: string;
    /// Password
    Password: string;
    /// Master Table
    MasTab: string;
    /// Master key
    MasKey: string;
    /// Master Index Field
    MasIdx: string;
  end;

You supply values to the remaining parameters by uding the following code.

rp019.Caption := 'BCS Static Form No Data';
  rp019.Database := 'databasename';
  rp019.UsrId := 'bcs';
  rp019.Password := 'Password';
  rp019.MasTab := 'TableName';
  rp019.MasIdx := 'name';

Based on this information the application looks at each data definition and populates the appropriate data control in the data entry tab.  No coding is involved.  You set seven parameters and your database applications is able to create, read, update and delete data records for the associated table.

This approach will work for every table in the database repository.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Select A Folder frm018

There are those occasions when a programmer need to select a folder.  This application provides all the necessary communications to select a folder.

sf01

The record description for this application is as follows.

/// Dialog Record Area
  frm018_area = record
    /// Caption
    caption: string;
    /// File Name
    dirName: String;
  end;

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Select A File frm016

There are those occasions when the programmer needs to select a single file. This application provides all necessary communications to select a single file.

saf01

The record description for this application is as follows.

/// Dialog Record Area
  frm016_area = record
    /// Caption
    caption: string;
    /// File Name
    fileName: String;
  end;

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Simple Combo Box

There are those time when a simple combo box control is required.

scb01

The record area for this application is listed below.

/// Dialog Record Area
  frm015_area = record
    /// Caption
    Caption: string;
    /// Listbox Item Index
    idxItem: Integer;
    /// Selected Text
    selText: String;
    /// Background Color
    bakColor: TColor;
  end;

Upon successful execution the results are stored in “idxItem” and “selText” respectively.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Web Browser Page Capture

This application allows the end user to capture the HTML from a web page for later use.

wb01

The first navigation button is the Home Button.  Click it when you want to reset the browser to it’s home location.
The second navigation control is the Back Button.  This control allows the end user to navigate to the previous page.
The third control is the Forward button.  This control allows the end user to move in a forward direction in the web surfing session.
The fourth control is the Save File button.  This control allows the user to save HTML files of visited web pages.

Below is the control record for this application.

/// Dialog Record Area
  frm017_area = record
    /// Caption
    Caption: string;
    /// Target Location for Saved Files
    targetLoc: string;
    /// Save File Name Prefix
    filePref: string;
    /// File Name Incrementor
    fileInc: Integer;
  end;

The application detects whether the “targetLoc” contains a valid value.  If not a dialog is displayed to select the target folder.

wb02

The application then checks for the “filePref” contains a valid value.  If it does not a dialog collects the prefix and the “fileInc”  value is initialized.

wb03

The application appends the incremented number to the file name prefix and adds the “.txt” extension.

After each page is saved to a file the “fileInc” field is incremented by one.  This feature allows for an ongoing collection session without file name collisions.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.