List

Try: ca/tecreations/ViewFile.php


<?php
   include_once $_SERVER['DOCUMENT_ROOT'] . "/tec_SiteRoot.php";
   include_once $TEC_PREFIX_DIR . "start_html.php";
   include_once $TEC_PREFIX_DIR . "header_start.php";
   include_once $TEC_PREFIX_DIR . "header_stop.php";
 
?>
<p>Hello Citizens of Ontario.</p>
<p>I don't have money to pay for solar power transition, however I do have roof space for rent should someone want to install solar.</p>
<p>1108 sq ft footprint, 5/12 pitch, dutch hip roof. 27' Ridge + 18" Overhangs East/West, Rafters: 12" O.C. 100 Amp Panel, but could probably go to 200, only the community hall shares the transformer.</p>
<p>&nbsp;</p>
<p>Thanks,</p>
<p>&nbsp;</p>
<p>Tim</p>

<div class="jumbotron padded">
    <img src="/ca/tecreations/PREVIOUS/likeThisQ_QuestionMark_Better_Tim.png" alt="Typical commands to run CaptureTool" alt-text="Typical commands to run CaptureTool"/><br />
    <br />

    Typical commands to run CaptureTool.<br />
    <pre><code class="blueGrey">
    cd downloads
    java -cp tec8.jar ca.tecreations.apps.capturetool.CaptureTool</code></pre>
</div>
<br />
<div class="jumbotron padded">
    <p><span class="tec_orange_underlined">HOWTO</span> -- A <a href="https://tecreations.ca/ca/tecreations/sample/">sample</a> setup to get JavaCompiler (Compile On Save) started and eventually, FileTool</p>
</div>
<div class="jumbotron padded">
    <br />
    <p>Changes in this Deployment</p>
    <ul>
        <li>Added functionality for Launcher to start with -jar command.</li>
        <li>Tested functionality for Draw, Toy and Console.</li>
        <li>Backup starts, but requires TLS configuration.</li>
    </ul>
</div>
<p>&nbsp;</p>
<div class="padded jumbotron">

    <p><strong>Running the Library Software:</strong></p>
    <ol>
        <li>Get Java</li>
        <ul>
            <li>Install Java Development Kit (Requires Version 11 or Higher, Older than 17 will require Building.) : <a href="https://www.oracle.com/ca-en/java/technologies/downloads/">Oracle JDK</a>, <a href="https://openjdk.org/">OpenJDK</a>, <a href="https://jdk.java.net/22/">OpenJDK Direct Download</a>.</li>
            <li>Compile To: Java Version: <code class="blueGrey">java --version >= 17</code>.</li>
        </ul>
	<br />
    	<li>Download tec8.jar. This is the code and auto-unpacks, if necessary to enable Relaunch, with the jars (included).</li>
<br />
        <ul>
            <li><a href="" id='tec8_download' onclick="incTec8()">tec8.jar</a> -- Last Modified: <span class="redGrey"><?php echo date("Y-m-d H:i:s",$tec8_Modified); ?></span> -- <span class="darkGreenGrey">Days Old: <?php GLOBAL $tec8_DaysOld; echo $tec8_DaysOld; ?></span> -- <span class="lightGreenGrey">Downloads: 
<?php
require_once $DOCROOT . $TEC_PREFIX_DIR . "demo_db.php"; 
global $demo_db;

$result = $demo_db->select("SELECT * FROM downloads WHERE abspath='" . $DOCROOT . $TEC_PREFIX_DIR . "tec8.jar" . "'");
if ($result['count'] == 0) {
    $demo_db->issue("INSERT INTO downloads('abspath') VALUES ('" . $DOCROOT . $TEC_PREFIX_DIR . "tec8.jar" . "')");
    print("0");
} else {
    $data = $result['rows'];
    print($data['count']);
}

?></span>
            </li>
	</ul>
        <br />
<!--
        <li>Download tec8_jars.jar. These are all the dependencies.</li>
<br />
        <ul>
            <li><a href="" id='tec8_jars_download' onclick="incJars()">tec8_jars.jar</a> -- Last Modified: <span class="redGrey"><?php echo date("Y-m-d H:i:s",$tec8_jars_Modified); ?></span> -- <span class="darkGreenGrey">Days Old: <?php GLOBAL $tec8_jars_DaysOld; echo $tec8_jars_DaysOld; ?></span> -- <span class="lightGreenGrey">Downloads: 
<?php
#require_once $DOCROOT . $TEC_PREFIX_DIR . "demo_db.php"; 
#global $demo_db;

#$result = $demo_db->select("SELECT * FROM downloads WHERE abspath='" . $DOCROOT . $TEC_PREFIX_DIR . "tec8_jars.jar" . "'");
#if ($result['count'] == 0) {
#    $demo_db->issue("REPLACE INTO downloads (abspath,count) VALUES ('" . $DOCROOT . $TEC_PREFIX_DIR . "tec8_jars.jar" . "','0')");
#    print("0");
#} else {
#    $data = $result['rows'];
#    print($data['count']);
#}

?></span>
            </li>
	</ul>
        <br />
//-->
        <li>UnpackToProject will be forthcoming.</li>
        <br />
        <li>Use WinRar to view the code, if desired, before building/running/deployment.</li>
        <br />
        <b>Runtime:</b> ( <code>cd Downloads</code> ) 
        <br />
        <ul>
            <li><i>Without Any Compilation : <b>As Is</b></i>
                <ul>
                    <li><code class="blueGrey">java -cp tec8.jar ca.tecreations.apps.capturetool.CaptureTool</code></li>
                    <li>draw</li>
                    <li>toy</li>
                </ul>
            </li>
            <br />
            <li><i>Without Any Dependencies, but must Unpack to Project and Configure PROJECTS_HOME</i><br />
            <br />
            Set PROJECTS_HOME in ca/tecreations/TecData.java and compile manually. Once that is done...<br />
            <br />
                <ul><code>cd PROJECTS_HOME\tec8</code>
                    <li><code class="blueGrey">java -cp . ca.tecreations.apps.javacompiler.JavaCompiler</code></li>
                    <li>MakeSnapshotFor</li>
                </ul>
            </li>
            <br />
            <li><i>With Dependencies -- Unpack first and specify .jars location?.</i>
                <ul><code>cd PROJECTS_HOME\tec8</code>
                    <li><code class="blueGrey">java -cp .;.\jars\* ca.tecreations.apps.deploy.Deploy</code></li>
                    <li><code class="blueGrey">java -cp .;.\jars\* ca.tecreations.apps.filetool.Filetool</code></li>
                    <li><code class="blueGrey">java -cp .;.\jars\* ca.tecreations.net...</code> : <strong><i>TLSServer and TLSClient</i> --&gt; LocalTLS..., --&gt; NetworkTLS...</strong></li>
                    <br />
                    <li><code class="blueGrey">java -cp .:./jars/* ca.tecreations.apps.deploy.Deploy</code> -- Mac/Linux example, for Deploy. Untested.</li>
                </ul>
            </li> 
        </ul>
        <br />
        <li>License
            <ul>
                <li>My code is my work. The World is my customer.</li>
                <li>Per entity License.</li>
                <li>Lifetime: $1 CAD</li>
<br />
                <li>Until further notice, 49% proceeds to: SOS Childrens Village.</li>
<br />
                <li>Thank you.</li>
<br />
               </ul>
          </li>
        <li>Have fun coding!!!</li>
        <br /> 
    </ol>
</div>