From e3ababf35a565e3ee60079a9d347387d3a59d652 Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 6 Feb 2021 13:22:21 -0500 Subject: Clean-up no longer needed assets and files --- deploy.sh | 54 ------ www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG | Bin 153153 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG | Bin 69937 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG | Bin 46871 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG | Bin 96614 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG | Bin 65055 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG | Bin 155053 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG | Bin 106191 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG | Bin 32649 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG | Bin 91010 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG | Bin 25640 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG | Bin 33367 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG | Bin 18749 -> 0 bytes www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG | Bin 41544 -> 0 bytes www/java-setup.html | 190 ---------------------- www/version.txt | 1 - 16 files changed, 245 deletions(-) delete mode 100755 deploy.sh delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG delete mode 100644 www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG delete mode 100644 www/java-setup.html delete mode 100644 www/version.txt diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index cbfb505..0000000 --- a/deploy.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash -set -e - -# Stolen from: https://stackoverflow.com/questions/3878624/how-do-i-programmatically-determine-if-there-are-uncommitted-changes -require_clean_work_tree () { - # Update the index - git update-index -q --ignore-submodules --refresh - err=0 - - # Disallow unstaged changes in the working tree - if ! git diff-files --quiet --ignore-submodules -- - then - echo >&2 "cannot $1: you have unstaged changes." - git diff-files --name-status -r --ignore-submodules -- >&2 - err=1 - fi - - # Disallow uncommitted changes in the index - if ! git diff-index --cached --quiet HEAD --ignore-submodules -- - then - echo >&2 "cannot $1: your index contains uncommitted changes." - git diff-index --cached --name-status -r --ignore-submodules HEAD -- >&2 - err=1 - fi - - if [ $err = 1 ] - then - echo >&2 "Please commit or stash them." - exit 1 - fi -} - -## ## -# MAIN METHOD # -## ## -DATE=$(date -u -Iseconds) -DATE_TAG=$(date -u +%Y.%m.%dT%H.%M.%SZ) - -echo "Checking git for clean work tree" -require_clean_work_tree - -echo "Updating version file" -echo "Deployed on: $DATE" > www/version.txt -docker run --rm -it -v ${PWD}/www:/www:ro amazon/aws-cli s3 cp /www s3://senders.io/ --recursive -echo "Deployed!" - -echo "Committing deploy" -git commit -am "Deployed: $DATE" -git tag -a $DATE_TAG -m "Deployed to s3 on $DATE" - -echo "Pushing to git" -git push origin master --tags -echo "Done!" - diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG deleted file mode 100644 index 8f3b96e..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-1.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG deleted file mode 100644 index 0b8d9fe..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-10.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG deleted file mode 100644 index 468c8bc..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-11.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG deleted file mode 100644 index 4753468..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-12.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG deleted file mode 100644 index 568f6d5..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-13.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG deleted file mode 100644 index f0415b2..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-2.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG deleted file mode 100644 index 9892d22..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-3.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG deleted file mode 100644 index f16d3c5..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-4.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG deleted file mode 100644 index e481b6a..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-5.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG deleted file mode 100644 index e3cac92..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-6.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG deleted file mode 100644 index 5cc4d6e..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-7.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG deleted file mode 100644 index d18e75a..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-8.PNG and /dev/null differ diff --git a/www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG b/www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG deleted file mode 100644 index 05ae922..0000000 Binary files a/www/imgs/java-setup/ScreenShot-JavaInstall-9.PNG and /dev/null differ diff --git a/www/java-setup.html b/www/java-setup.html deleted file mode 100644 index b98f516..0000000 --- a/www/java-setup.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - - Java Setup for Windows - - -

Java Setup - Windows

-
-

Table of contents

-
    -
  1. - Installing Java -
      -
    1. - Downloading the JDK -
    2. -
    3. - Setting up your environment -
    4. -
    -
  2. -
  3. - Setting up IntelliJ Community Edition -
      -
    1. - Why IntelliJ -
    2. -
    3. - Downloading -
    4. -
    -
  4. -
  5. - Using IntelliJ -
      -
    1. - Creating a project -
    2. -
    3. - Creating a class -
    4. -
    5. - Running your program -
    6. -
    7. - Debugging your program -
    8. -
    -
  6. -
  7. - Help -
  8. -
-
-
-

Installing Java

-

To install Java you need to install the Java Development Kit (JDK). It - can be downloaded from here: https://jdk.java.net/13

-

You will want to select the zip download for Windows.
-
- Hover to zoom

-

After downloading the zip you will want to unzip it (into a folder, - should by default) and then copy that folder into C:\Program Files\Java\


-
- Hover to zoom -

When I did this myself, it unzipped into a folder jdk-13.0.1. By the end you should have the following folder - structure: C:\Program Files\Java\jdk-13.0.1

-

Setting up your environment

-

In order to make the JDK discoverable by your programs you need to add - the JDK folder to your PATH environment varible. This is best done by first - setting up a varible for the java directory JAVA_HOME that points directly to the directory you copied - the unzipped files into.


-
- Hover to zoom -

Once you've setup the JAVA_HOME variable - you can add that varible to your PATH point to the subdirectory - /bin. This can be confusing if you haven't - done this before. - Here is a StackOverflow article how to add environments variables in - Java 10.


-
- Hover to zoom -

Optionally, if you want to test that this worked, you can open up the - command prompt (or powershell) by opening the start menu and typing/looking - for cmd.exe. Then you can type java -version - which will output the version and some additional information. You should - see java version 13.0.1.

-

IntelliJ Community Edition

-

I recommend using IntelliJ Community Edition instead of Eclipse. - They're both open source but I use IntelliJ at my job daily and its a - fantastic, out of the box editor. Where Eclipse requires a lot more setup - steps and plugins to get it to be "complete". Feature wise they - do the same things, so everything they do in Udemy via Eclipse should work - in IntelliJ.

-

Downloading

-

To Download go to www.jetbrians.com/idea/download - and click the Exe download for community edition.


-
- Hover to zoom -

Once the download is complete you can run the installer. You should - select your theme, then just use the "Install defaults" option at - the bottom, or just Next through the rest of setup, as you shouldn't - need any additional plugins. And if you do they all can be installed - later

-

You're Done! You can start Udemy now just ignoring their - install/setup instructions. I have some additional steps below to help - verify everything works and do some basic operatoins in IntelliJ (Create a - Project, Create a class, Run/Debug) but you can refer back to here once you - get there in Udemy

-

Using IntelliJ

-

Jetbrains actually has a whole - FAQ/Tutorial section that can help you with any questions too. But here - is a brief overview of the core functions of IntelliJ

-

Creating a project

-

When you first open IntelliJ it shows a splash screen where you can open - an existing project or create a new one. You will at first want to create a - new project.


-
- Hover to zoom -

You want to choose a java (the default) and select the version of the - JDK (should default to 13.0.1, if not click browse and navigate to the - folder you copied it to from the first step: C:\Program Files\Java\jdk-13.0.1.


-
- Hover to zoom -

Then you can name the project and choose the directory you want to files - in.


-
- Hover to zoom -

Now you should have a project setup that you can create your program - in!


-
- Hover to zoom -

Creating a class

-

To create a class in IntelliJ you should expand the projects menu on th - left side and right click the src folder. You - then select "create class". This will add it directly into your - src folder.


-
- Hover to zoom -

From here you can start writing code!


-
- Hover to zoom -

Running a Program

-

Java code is executed from the main method public - static void main(String[] args). You can run your main method by - either right clicking within it and selecting run. Or when the file - containing your main method is open using the Run button at the top right - of the editor.


-
- Hover to zoom -

Debugging a Program

-

To debug you can set breakpoints in your code by selecting the left hand - side by the line numbers. This will add a red dot which tells the program - to pause executing when it reaches the code at that line. To do this you - need to run in debug mode (rather than plain run mode) by right clicking - your main method and choosing Debug, or by using the debug icon at the top - right of the editor window.


-
- Hover to zoom -

Additional Help

-

If you need any help at all feel free to text or email. If its a code - issue, either a screenshot of the code or the code itself will help!

-
- - diff --git a/www/version.txt b/www/version.txt deleted file mode 100644 index e1dd790..0000000 --- a/www/version.txt +++ /dev/null @@ -1 +0,0 @@ -Deployed on: 2020-02-17T05:42:37+00:00 -- cgit v1.2.3-54-g00ecf