3/28/18
3/26/18
3/21/18
3/15/18
One Link to find FREE images though Google Search
HOW TO FIND FREE PICTURES AND IMAGES
Click on this image to search:
(you can bookmark it of course)Just use this image to link to google search that already has the advanced settings for finding free images.
Once there:
- type in a search phrase for image
- click on image that you what
- you can then select to download one you see
- or click on visit to go to the original page which may have other sizes
The images you see in searh are under the following copyright license or equivalent:
CC0 License
✓ Free for personal and commercial use
✓ No attribution required
So you are free to use it for anything including commercial use, without attribution to the original author, including modifying it.
3/13/18
Strava Global Heatmap lands Strava in Hot Water:
Strava Global Heatmap lands Strava in Hot Water:
Strava developed a online map of the world showing activity tracker of people's paths that wear the Strava devices.
It was released in November 2017.
(Strava Heatmap Site)
The map shows activity of billions of activities around the world. Unfortunately it also showed activity at sensitive locations like areas 51, the pentagon, and arms services bases overseas. This was pointed out by Nathan Ruser on Twitter (Twitter Reference)
File this one under 'Unintended Consequences of New Tech'
Strava developed a online map of the world showing activity tracker of people's paths that wear the Strava devices.
It was released in November 2017.
(Strava Heatmap Site)
The map shows activity of billions of activities around the world. Unfortunately it also showed activity at sensitive locations like areas 51, the pentagon, and arms services bases overseas. This was pointed out by Nathan Ruser on Twitter (Twitter Reference)
File this one under 'Unintended Consequences of New Tech'
3/5/18
Python Class: ElapsedTime (works like a stopwatch)
If you are learning python, short examples are always helpful. Here is one.
Class in Python: ElapsedTime:
Use:
The Code:
OH, and please subscribe to my YouTube Channel at: youtube.com/gjenkinslbcc
And check out my Python, Data Structures and Algorithms video class
Class in Python: ElapsedTime:
Use:
e1 = ElapsedTime() # starts time e1
x = e1() # get elapsed time as float in seconds from timer
... do something more
x = e1() # get elapsed time since start
The code shows a couple neat things in python:x = e1() # get elapsed time as float in seconds from timer
... do something more
x = e1() # get elapsed time since start
- using a object reference as a methods by defining the __call__ standard method
- using a Unicode char in output (this is easier in python 3)
The Code:
"""Small elapsed time class""" # YouTube subscribe link: https://goo.gl/ZgZrZ5 # Gerry Jenkins import time class ElapsedTime(): """elapsed since creation objects""" def __init__(self): self.start = time.time() # store only start time def __call__(self): # used to use object name as call """return elapsed time in float seconds""" return time.time() - self.start if __name__ == "__main__": # check it out, follow two elapsed timers e1 = ElapsedTime() for _ in range(5): # use e1 print(f'e1: {e1()*1000000:0.1f} µsecs') # unicode micro e2 = ElapsedTime() for _ in range(5): # use both e1 and e2 print(f'e1: {e1()*1000000:0.1f} | e2: {e2()*1000000:0.1f}')
OH, and please subscribe to my YouTube Channel at: youtube.com/gjenkinslbcc
And check out my Python, Data Structures and Algorithms video class
Subscribe to:
Posts (Atom)