Showing posts with label GUI. Show all posts
Showing posts with label GUI. Show all posts

Tuesday, September 29, 2015

UI Design for Viewing Data - Relate Table to Chart

User Interface Design is always an innovation art. It connects human behavior with icy cold machine code.

In the world of data analysis, charts and tables are gateways to human. Charts communicate size and quantities to human via human's natural perception of the world. However, when multiple facets of data are presented, relating size and quantities to facets becoming a burden to human. Tables, on the other hand, relate multiple faceted data in concise form to human sacrificing the advantage of human's natural perceptions for size and quantities.

The proposed user interface design is based on the above observations about tables and charts. The interface begin by presenting a data table to user with the associate charts: (Two flavor of charts are presented - vertical and horizontal bar)

Inst.MenWomenTotal
Univ14,05915,40729,466
NCTA97102199
UNK1,8762,4064,282
UNL8,0597,58815,647
UNMC7581,3872,145
UNO3,2693,9247,193
Stat Col.2,0202,7274,747
CSC6609411,601
PSC350446796
WSC1,0101,3402,350
Comm. Col.6,6197,09513,714
CCC8221,1711,993
MCC1,5941,9453,539



It is obvious that these charts are difficult to comprehend with the mixed facets of institutional and sectional totals. The idea behind the design, however, is to provide user with channel tools that can channel desired data to the the chart. Various ways can be used to select the desired data. For example, using drop-down list, checkboxes in context menu, or text/regular-expression based filtering to channel the desired data. Visual feedback can be provided to user by hiding or highlighting the data table. Possible filtering results are presented below:




Monday, May 14, 2012

GUI for Constructing Command Line - Concepture Design

The purpose for this article is to propose a conceptual design for a generalized GUI tool that can help user constructing a valid command for command line interface. The design is to be general and capable to handle as many command line specification as possible. In the process we also like to be able to enforce syntax rules as much as possible.

As I work through the idea and prototype, I will continue to update this article.

The design begins with the data structure.

(20120604)
After re-examining the problem, I am settling to a data structure that would not be able to represent faithful implementation of all possible command line construct. What this mean is that we may not be able to parse a command line correctly based on our data structure for certain command. This, however, does not preclude us from produce legitimate command line. A category of command line construct that could not be faithfully represented by this data structure design is those commands that allows the required options to be presented in random orders. Our data structure will put those options in an order and, therefore, won't be able be used to parse command line that presents those option in different order, which were allowed by the real command line interpreter.

Child Node Type:
(o) - Child nodes are in (o)rder and are defaulted to be required.
(-) - Child nodes are all optional. Actions are needed to include them in the command line.
(1) - Exactly 1 child node is need to presented in the command line.
(0) - No child node. Optional text value and default flag or required keyword
(r) - The child node can be repeated as many times as possible.

Common attributes for nodes:
  Slctd - selected
  Dscrptn -
  Syntx -
    SyntxLtrl
    SyntxPrs
    SyntxVldtn
  Vl - value
  VlRE - for checking Vl
  Optns - No value, default ...

Possible construct:
copy -Src SrcFl -Dest DestFl -Ascii -LF
  copy (o)
    -Src FlNm (0)
    -Dest FlNm (0)
    ways of copy (1)
      -Ascii (1)
        -LF (0)
        -CRLF(0)
      -Binary (0)

*The above structure may not faithfully represent the copy command if the copy command allowed this construct:
  copy -Dest DestFl -Src SrcFl -Ascii -LF

<?xml version='1.0' encoding='UTF-8'?>
<!-- This document was created with Syntext Serna Free. -->
<Nd SyntxKy="Copy" >
  <SyntxLtrl>copy</SyntxLtrl>
  <Dscrptn>copy a file</Dscrptn>
  <Chld Typ="o">
    <Nd SyntxKy="-Src" >
      <Dscrptn>file to be copied</Dscrptn>
      <SyntxLtrl>-Src </SyntxLtrl>
      <Vl></Vl>
      <VlRE></VlRE>
    </Nd>
    <Nd SyntxKy="-Dest" >
      <Dscrptn>file to be copy to</Dscrptn>
      <SyntxLtrl>-Dest </SyntxLtrl>
      <Vl></Vl>
      <VlRE></VlRE>
    </Nd>
    <Nd SyntxKy="ways of copy" >
      <Dscrptn>file type</Dscrptn>
      <SyntxLtrl></SyntxLtrl>
      <Chld Typ="1">
        <Nd SyntxKy="Ascii" >
          <Dscrptn>ASCII</Dscrptn>
          <SyntxLtrl>-Ascii </SyntxLtrl>
          <Chld Typ="1">
            <Nd SyntxKy="LF" >
              <Dscrptn>Convert line break to LF</Dscrptn>
              <SyntxLtrl>-LF </SyntxLtrl>
            </Nd>
            <Nd SyntxKy="CRLF" >
              <Dscrptn>Convert line break to CRLF</Dscrptn>
              <SyntxLtrl>-CRLF </SyntxLtrl>
            </Nd>
          </Chld>
        </Nd>
        <Nd SyntxKy="Binary" >
          <Dscrptn>byte by byte/literal copy</Dscrptn>
          <SyntxLtrl>-Binary</SyntxLtrl>
        </Nd>
      </Chld>
    </Nd>
  </Chld>
</Nd>

GUI design:
(-) - checkbox
(1) - radio button
(o) - linked control group:
    An ordered node syntax:
      (o) (-) (t) Optn1
              (t) Optn2
              (t) Optn3
              (t) Optn4
          (1) (t) OptnA
              (t) OptnB
    Can be expressed in a graph like:
      +---------------------+
      |         +--+        |
      |   Optn1 |  |o OptnA |
      | x Optn2 |  |o OptnB |
      |   Optn3 |  +--------+
      |   Optn4 |
      +---------+

A possible description in XML can be:

Wednesday, October 14, 2009

A note of MySQL GUI and web hosting

For a long time, I used the phpMyAdmin to backup MySql databases used by my web site. Recently, the database grew bigger and the hosting company set time limits on how long a script can run. As a result of this, I can no longer backup my databases with phpMyAdmin.

The hosting company do provide the ability to do Remote MySql. By using the MySQL GUI program downloaded from here, I can do the backup from my desktop.

In my case, in order for me to connect to my database, I need to log into my hosting company and configure the database using Remote MySql to accept connections from the IP of my home machine. As with most of the ISP, my home machine do not have a static IP and I will need to find out that IP address first. Fortunately, if you just started the MySQLAdministrator.exe and attempt to connect, it will display an error with your current IP. But I still have to cross my finger and hope that during the connection, my IP address does not get changed.

Once you set the correct IP on the MySql server, you can connect to MySql server with your MySql/cpanel account. Once connected successfully to MySql, you can select backup, click new project, select the database to backup, set options and click Execute Backup Now. After a while, the program will prompt you for places to save your backup files.

Once you are done, you can do -File -Exit. Just to be on the safe side, you might like to disable that IP you enabled at the server.

On 20150607, MySQLAdministrator returns: user@h55.71.88.75.dynamic.ip.windstream.net  IP:75.88.71.55