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 | Stuffed Shells | Tallutos | 16 | Other | Downstairs Freezer | June 26, 2020 |
1 | Marinara Sauce | Ray | 16 | Other | Downstairs Freezer | June 26, 2020 |
1 | Blueberries | Generic | 16 | Fruit | Downstairs Freezer | June 26, 2020 |
1 | Pineapple | Generic | 16 | Fruit | Downstairs Freezer | June 26, 2020 |
1 | Strawberries | Generic | 16 | Fruit | Downstairs Freezer | June 26, 2020 |
4 | Butter Unsalted | Generic | 4 | Dairy | Downstairs Freezer | June 26, 2020 |
1 | Crab Cakes Mini | Omaha Steaks | 15 | Fish | Downstairs Freezer | June 26, 2020 |
2 | Butternut Squash | Generic | 16 | Vegetable | Downstairs Freezer | June 26, 2020 |
1 | Pork Shoulder Picnic | Generic | 144 | Meat | Downstairs Freezer | June 26, 2020 |
1 | Chicken Cacciatore | Ray | 16 | Meat | Downstairs Freezer | June 26, 2020 |
2 | Chicken Thighs Boneless | Generic | 25 | Meat | Downstairs Freezer | June 26, 2020 |
1 | Corn Dogs Mini | Generic | 16 | Meat | Downstairs Freezer | June 26, 2020 |
1 | Bacon Applewood | Hatfield | 16 | Meat | Downstairs Freezer | June 26, 2020 |
1 | Ham Diced | Generic | 12 | Meat | Downstairs Freezer | June 26, 2020 |
1 | Beef Bone Broth | Kettle and Fire | 16 | Other | Pantry | June 22, 2020 |
1 | Cream of Celery | Campbells | 11 | Other | Pantry | June 22, 2020 |
2 | Cream of Chicken | Campbells | 11 | Other | Pantry | June 22, 2020 |
1 | Vegetable Broth | Swanson | 32 | Other | Pantry | June 22, 2020 |
1 | Chicken Broth Less Sodium | Signature Kitchens | 32 | Other | Pantry | June 22, 2020 |
2 | Chicken Broth | Swanson | 15 | Other | Pantry | June 22, 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.