Skip to main content

Posts

Update 8/18/2022: Revisiting this thread is an opportunity to update what I have been using.  Since Microsoft left the media center sphere, I was on a search for something to fill the void.  Several iterations of looking at the early android google TV and Nvidia setups left me still searching.  With Chromecast and updated variants of google TV working great with cloud services and casting, I still needed my local DVR options and playing media library.   WELL, my answer is probably no surprise to many.  PLEX.  I have used plex for probably 4 years and bought the Lifetime Plex pass.   PROBLEM SOLVED!! >>>>>>>>>>>>>>>>>>. With Windows Media Center taking the last death blow from Microsoft, the Roku 4 might make switching less painless.   Roku 4 pre-order.  Expected Ship Date 10/21/2015. https://www.roku.com/products/roku-4
Python Tip Calculator I was reviewing some fundamental tutorials covering Python programming and used this code below to create a simple Tip Calculator.  ( https://www.codecademy.com/learn ) Nothing Fancy!! This was just for learning, but was kind of fun.  You can easily elaborate on what is provided by adding some additional conditionals with elif and/or else. **Code provided below for easy copy/paste. ######################################################## import sys import datetime meal = float(input('Please Enter the Meal Cost:  ')) tax = float(input('Please Enter the Tax %:  ')) tip = float(input('Please Enter the Tip Percentage %:  ')) date = datetime.datetime.now() if tax >= 0:     tax = tax * .01 if tip >= 0:     tip = tip * .01 meal = meal + meal * tax total = meal + meal * tip output = round(total,2) print("\nTOTAL\n") print(date.strftime("%I:%M:%S %m/%d/%Y"),'\n$',output,'\