Giter Club home page Giter Club logo

student's Introduction

Blog site using GitHub Pages and Jekyll

This site is intended for Students. This is to record plans, complete hacks, and do work for your learnings.

  • This can be customized to support computer science as you work through pathway (JavaScript, Python/Flask, Java/Spring)
  • All tangible artifact work is in a _posts or in a _notebooks.
  • Front matter (aka meta data) in ipynb and md files is used to organize information according to week and column in running web site.

GitHub Pages

All GitHub Pages websites are managed on GitHub infrastructure. GitHub uses Jekyll to tranform your content into static websites and blogs. Each time we change files in GitHub it initiates a GitHub Action that rebuilds and publishes the site with Jekyll.

Preparing a Preview Site

In all development, it is recommended to test your code before deployment. The GitHub Pages development process is optimized by testing your development on your local machine, prior to files on GitHub

Development Cycle. For GitHub pages, the tooling described below will create a development cycle make-code-save-preview. In the development cycle, it is a requirement to preview work locally, prior to doing a VSCode commit to git.

Deployment Cycle. In the deplopyment cycle, sync-github-action-review, it is a requirement to complete the development cycle prior to doing a VSCode sync. The sync triggers github repository update. The action starts the jekyll build to publish the website. Any step can have errors and will require you to do a review.

WSL and/or Ubuntu installation requirements

  • The result of these step is Ubuntu tools to run preview server. These procedures were created using jekyllrb.com
  • Run scripts in scripts directory of student repo: setup_ubuntu.sh and activate.sh. Expected name of the repository to run these scripts is 'student'.

MacOs installation requirements

  • Ihe result of these step are MacOS tools to run preview server. These procedures were created using jekyllrb.com. Run scripts in scripts directory of student repo: setup_macos.sh and activate_macos.sh. Expected name of the repository to run these scripts is 'student'.

Preview

  • The result of these step is server running on: http://0.0.0.0:4100/teacher/. Regeneration messages will run in terminal on any save. Press the Enter or Return key in the terminal at any time to enter commands.

  • Complete installation

bundle install
  • Run Server. This requires running terminal commands make, make stop, make clean, or make convert to manage the running server. Logging of details will appear in terminal. A Makefile has been created in project to support commands and start processes.

    • Start preview server in terminal
    cd ~/vscode/teacher  # my project location, adapt as necessary
    make
    • Terminal output of shows server address. Cmd or Ctl click http location to open preview server in browser. Example Server address message...
    Server address: http://0.0.0.0:4100/teacher/
    
    • Save on ipynb or md activiates "regeneration". Refresh browser to see updates. Example terminal message...
    Regenerating: 1 file(s) changed at 2023-07-31 06:54:32
        _notebooks/2024-01-04-cockpit-setup.ipynb
    
    • Terminal message are generated from background processes. Click return or enter to obtain prompt and use terminal as needed for other tasks. Alway return to root of project cd ~/vscode/teacher for all "make" actions.

    • Stop preview server, but leave constructed files in project for your review.

    make stop
    • Stop server and "clean" constructed files, best choice when renaming files to eliminate potential duplicates in constructed files.
    make clean
    • Test notebook conversions, best choice to see if IPYNB conversion is acting up.
    make convert

Meta Data (Front Matter)

  • Meta data also known as front matter is a set of key value pairs that can provide additional information to github pages about .md and .ipynb files. This can and probably will be used in other file types (ie doc, pdf), if we added them to the system.

  • In the front matter you can also define things like a title and description for the page. Additional front matter is defined to place content on "Computer Science Lab Notebook" page. The courses: key will place data on a specific page with the nested week: placing data on a specific row on the page. The type: key in front matter will place blog under the plans, hacks(ToDo), and tangibles column.

  • In our files the front matter is defined at the top of the page or the first markdown cell.

    • First open one of the .md or .ipynb files already included in either your _posts folder or your _notebooks folder.

    • In the .md file you should notice something similar to this at the top of the page. To see this in your .ipynb files you will need to double click the markdown cell at the top of the file.

    ---
    toc: true
    comments: false
    layout: default
    title: Daily Plan Sample
    description: Example Blog!!!  This shows planning and notes from hacks.
    type: plans
    courses: { compsci: {week: 0} }
    ---
  • Front matter will always have '---' at the top and bottom to distinguish it and each key value pair will be separated by a ':'.

  • Here we can modify things like the title and description.

  • The type value will tells us which column this is going to appear under, supported values: plans, hacks, tangibles.

  • The courses tells us which menu item it will be under, in this case the compsci menu, and the week tells it what row (week) it will appear under that menu.

  • In our examples, hacks(ToDo) contains references to our IPYNB files; these are stored in GitHub under the _notebooks folder. The plans and tangibles contains references to our MD files; these are stored in GitHub under the _posts folder.

  • Key files in Computer Science Lab Notebook

    • compsci.md - this is the "Computer Science Lab Notebook" page and is the link https://nighthawkcoders.github.io/student/compsci. It contains the Title and Number of units on the page.
    • _data/compsci.yml - this contains the supporting data that helps organize the units on the page.
    • _layouts\schedule.html - this contains code, in the Liquid language, that generates the HTML for all the rows and columns.
    • fyi, the schedule.html could work for another type of page. For instance, you could make a csa.md, _data/csa.yml, and tag files with csa: {week: 0} under courses.

student's People

Contributors

srijdude3416 avatar

Stargazers

 avatar

Watchers

 avatar

student's Issues

Student Teaching Part 2 + Key Indicators

ย  Score Grader Verification Extras Key Indicators: Blog, GitHub File(s) and Key Commits
The Internet NA NA NA We created the lesson
Routing and Computing 1 Jonathan None Blog
Beneficial and Harmful Effects 0.95 Jason Provided detailed paragraph answers regarding each question. Thoroughly considered numerous perspectives to compose points of view regarding the questions posed and their repercussions. Blog
Digital Divide 1 Sai Completed extra credit in a few sentences after doing extra research regarding the current issues that we face regarding the digital divide. Blog
Computing Bias 0.95 Tanvi I once again completed all homework questions with thorough paragraph length answers that took into account numerous perspectives, ensuring that the answers were accurate and made sense. Blog
Crowdsourcing 0.98 Samhita I wrote extremely, extremely thorough responses regarding the given examples using prior knowledge as well as research to write quality responses. I also completed the bonus task of finding a database on Kaggle that would be helpful for the CPT project idea we had. Blog
Legal Ethical Concerns 0.98 Cindy None Blog
Safe Computing 0.98 Advik Completed the bonus programming challenge of creating a program that checks passwords against an online wordlist and basic security recommendations to respond with a boolean answer of whether or not the password is safe. Blog
CB Quiz 62/67 NA Not Graded Yet Blog Post Went through each question and corrected the question, answered why it was wrong, and understood the correct answer despite not having to since I scored a 62. Blog
Totals Median Score: 0.98 Number complete: 8/8 Extra effort count: 6 Key tangible assets count: 8/8

Review Ticket Tri 2 Binary Project

Key Commits:

  • commit - Fixed the sizing of the canvas element containing the decoded image for the steg decoder project.
    • Issues faced:
      • Originally, the canvas element dimension was too small, causing the image display to "squeeze" the output.
    • Fix:
      • Divided output canvas by 2 to rescale to "original" image size and output properly
  • commit2 - Added the steg decoder project to blogs and created the decoder itself.
    • Issue faced:
      • Decoder had originally attempted to use a parsing method to decode rather than using masks -> caused it to take a long time and didn't work

Overview:
In this project, I worked collaboratively alongside Ian to create the steganography and encryption related projects. Throughout the project, Ian and I used a system in which we spent 15-20 minutes at the start of every class brainstorming ideas and possible solutions to problems we faced. One example of this was when we were creating our steganography project. We were facing an issue in which the image being written to the HTML canvas was not being displayed properly. Through these early minutes of every class, we were able to determine that the size of the canvas in which the image was being written to was too small since we were upscaling the image by a factor of 2 to hide data within. Over these past few weeks, I mainly managed the image steganography project. In the future, we aim to add support to different sized images. As of right now, images must be of the same dimensions and if they aren't, the encoded image output will be severely malformed.

My Feedback

I really like your work Srijan! I was quite surprised when I tried using the email sender for it to actually open my mail app, and also the news site was quite incredible, I'm curious what API you used. Although I don't completely understand it, I find your Topological Convolutional Neural Networks quite interesting. Great work Srijan, you're the best.

I know that you're capable of some great things so some cool ideas I have for you could be:

Possibly a hardware project?
Terrain generation via Perlin noise or any noise?
Game development?
Maybe some discord bots?

If there's one thing I'm really fascinated by it is machine learning and robotics, so consider looking into that kind of field

Overall amazing work on your website, can't wait to see more.

Plan for Week 3:

Important:

Srijan:

  • Start making: "Would you survive the titanic project" project (python interactive)
    - Make input fields for each necessary data input to model (cli input in .ipynb)
    - Configure and train a simple Random Forest binary classifier using the Kaggle Titanic dataset
  • Add jQuery tables to go through different pieces of music (javascript interactive)
    - Begin working on a web-scraper to fetch data for us
    - Implement a search box that filters by rating
    - Read through all posts/Google how jQuery works

Akhil:

  • Begin making custom .ipynb highlighting various bash scripts we made (Linux shell interactive)
    - Blog post should show understanding of how linux shell works
    - Blog post should include some cool commands that we learned
    - Should include usage of git etc.
  • Implement Javascript forms that are sent to your email (javascript interactive)
    - Ask ChatGPT how something like this would work/learn Javascript

Personal:

  • Keep making tweaks to the styling
  • Add a post detailing the web app I'm making currently

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.