880 karma · joined February 18, 2011
Bridging the Gap between business and tech.
def daterange(start,end):
while start<=end:
yield start
start +=timedelta(days=1)
Though simplistic and straightforward, I admire the solution. I am sure there may be “better” ways to achieve the same result, and posting this here may result in cowboys trashing it or pointing out a fallacy - oh well... at the time, I was pretty satisfied with it and am still to this day.Follow up: Also appears there are some misgiving regarding crude language within the Hindu religion as well. [0]
[0]: https://www.hinduismtoday.com/modules/smartsection/item.php?...
Unfortunately, we've done a disservice to ourselves: Instead of teaching others how to think, we've taught them what to think. Most graduates coming out of the ivory tower of education lack the ability to bootstrap their own intellectual development. Historically, universities served a purpose: the higher-level of information and application could only be consumed through them (gatekeepers). We are in a new era of information. Information is abundant. We'd be better off as a society if we focused on the "how to think" than the "what to think".
[0]: https://www.ed.gov/news/press-releases/national-federal-stud...
I've come up with a fix though! I simply have an addon in firefox that refreshes the web-page in 20 seconds! It is just enough annoyance to give up (especially after I am over halfway though an article..)