The Problem: Every year the footer of your personal or company website will need to be updated. It would be a waste of your time and you would risk breaking your code if you needed to update every single webpage to type “2020” in the footer of the page. This should be automated.
The Solution: Use JavaScript to get the date, set it as a variable, and display the result in the footer of the page.
<script type="text/javascript"> //Declares the JavaScript
let d = new Date(); // Creates a variable and calls Date Object
document.write(d.getFullYear()); // Calls getFullYear method on variable d(new Date() Object) and displays year
</script> // Closing bracket
The code above can be copied and pasted into the footer of your website pages. If you have a couple of static pages, it isn’t a big deal to edit each page. In my case, I added the code to the footer.php file for my custom WordPress theme. WordPress automatically appends the footer.php to every new post or page that I create. Now a user will always see a dynamically generated date at the bottom of the page.
The Problem: Opening and digging through a smaller chest freezer. Also, need a way to keep track of food inventory for quarantine.
The Solution: A database accessible from my phone to add, remove, update, or delete items. At the grocery I can see what I have or don’t have at home.
Count | Item | Brand | Ounces | Category | Location | Updated |
---|---|---|---|---|---|---|
1 | French Fries Straight Cut | Giant | 32 | Vegetable | Downstairs Freezer | September 15, 2020 |
1 | Riced Veggies Cauliflower Brocolli | Green Giant | 7 | Vegetable | Downstairs Freezer | September 15, 2020 |
1 | Spinach Creamed | Green Giant | 10 | Vegetable | Downstairs Freezer | September 15, 2020 |
1 | Ice Cream Vanilla | Breyers | 48 | Snack | Downstairs Freezer | September 10, 2020 |
5 | Cornbread | House | 4 | Bread | Downstairs Freezer | September 4, 2020 |
1 | Pork Shoulder Cooked | House | 16 | Meat | Downstairs Freezer | September 4, 2020 |
1 | Ravioli Meat | Tallutos | 15 | Meat | Downstairs Freezer | August 26, 2020 |
2 | Cheesecake | Edwards | 5 | Snack | Downstairs Freezer | August 26, 2020 |
1 | Pineapple Juice | Generic | 24 | Fruit | Downstairs Freezer | August 24, 2020 |
1 | Spinach Bites | Dr. Praegers | 10 | Vegetable | Upstairs Freezer | August 16, 2020 |
2 | Steak Chuck Strip | Giant | 12 | Meat | Downstairs Freezer | August 9, 2020 |
1 | Chicken Breast Tenderloin | Generic | 19 | Meat | Downstairs Freezer | August 9, 2020 |
4 | Brussel Sprouts | Generic | 16 | Vegetable | Downstairs Freezer | August 9, 2020 |
18 | Ice Cream Mini Drums | Drumstick | 17 | Snack | Downstairs Freezer | July 14, 2020 |
1 | Waffle Fries | Generic | 26 | Vegetable | Downstairs Freezer | July 9, 2020 |
4 | Tuna | Chicken of the Sea | 5 | Fish | Pantry | July 9, 2020 |
1 | Pork Chops Thick | Generic | 24 | Meat | Downstairs Freezer | June 26, 2020 |
1 | Shrimp Volcano Cheese Jalapeno | Margaritaville | 10 | Fish | Downstairs Freezer | June 26, 2020 |
1 | Broccoli Florets | Generic | 16 | Vegetable | Downstairs Freezer | June 26, 2020 |
1 | Spaghetti Cooked | Ray | 16 | Other | Downstairs Freezer | June 26, 2020 |
OUT OF STOCK:
I customized the WordPress plugin “Participants Database” to Create, Read, Update, and Delete food items. Anyone can add items but a WordPress login is required to update or delete food items.