W Y A T T F L E M I N G

Truth through experimentation

Blog

Get Bookcovers From Google Books Api Ajax Call


//Initialize and populate list of book objects
var books = document.getElementsByClassName("book");

//Initialize array of strings to query the API
//strings comprised of google books api URL + title and author defined in hugo front matter
var searchList = [];

//this function iterates through the book objects on the page
//and populates the searchList array with the base url + title and author defined in hugo front matter
for (i = 0; i < books.length; i++) {
  //returns the book …
Read More…

Get Book Covers from Google Books API with Ajax


//Initialize and populate list of book objects
var books = document.getElementsByClassName("book");

//Initialize array of strings to query the API
//strings comprised of google books api URL + title and author defined in hugo front matter
var searchList = [];

//this function iterates through the book objects on the page
//and populates the searchList array with the base url + title and author defined in hugo front matter
for (i = 0; i < books.length; i++) {
  //returns the book …
Read More…

Hacker News Dialogue on Nietzsche

This is a series of comments made on Hacker News discussing an article titled Friedrich Nietzsche: The Truth is Terrible.


dnomad on July 1, 2018 [-]

Leiter tends to take Nietzsche very literally. Yes, Nietzsche grasped quite clearly that exceedingly few people have the courage to endure the world “in itself.” Most people persist their whole lives trapped in elaborate fantasies. This is something that, Nietszche suspects, has been true since the dawn of time and recognizes it as …

Read More…

SICP 1.2.1 Notes: Linear Recursion and Iteration

Procedures define functionality on a local level, however, it is smart for the programmer to want to know what is happening on the global level of their program. This is a hard thing to do.

There are common “shapes” of processes generated by procedures that correspond to the very valuable computational resources of time and space. This is known in a more modern sense as Big O notation, which deals with the time-complexity of a given algorithm - how long it will take to compute it. …

Read More…

Using EF Core to Connect your Project to a Database

Installing necessary packages for EF Core

You need to install four NuGet Packages to work with Microsoft SQL Server:

Working with EF Core

EF Core can change the schema of a database so that it will store whatever information you would like it to. This is a feature of EF known as a migration and is what we are trying to execute.

To get help about …

Read More…

How To: Upgrade the RAM and SSD in a Lenovo Legion Y520 Laptop

I recently upgraded the RAM and SSD in my Lenovo Legion Y520 laptop and made a video detailing the process.

There are a few parts you will need to be able to complete this upgrade:

Read More…

Hugo Server Error: found no layout file for 'HTML' for 'home'

When trying to setup this new iteration of my personal website, using Hugo, I kept running into this error when trying to run the hugo server command:


WARN 2019/10/24 10:21:40 found no layout file for "HTML" for "home":
    You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

There were a few different discussions of the error, but after trying all of those potential fixes out, none of them solved the issue for me. After …

Read More…

ASP.NET Core/MVC: Adding a Button to a Razor View Page that Returns a Method On-Click

I needed to add a button in my ASP.NET Core MVC web application that on-click would start a method that would return a list of items scraped from another website.

Something like this:

The code I got to work for doing so is:


<button type="button" id="startButton" 
    onclick="location.href='@Url.Action('List', 'ArbitrageScraper')'">
    Start  Scrape
</button>

This code resides inside of the View for your controller. My button …

Read More…

My name is Wyatt Fleming. I am a Project Manager at WebJaguar and a life-long learner interested in history, economics, gardening, and computers.