Ben Lovett

Ben Lovett
http://www.benlovett.com

Advertisements

A Sound Of Thunder

For The New Year, Ray Bradbury’s Buoyant Vision Of The Future
January 2, 2015
http://www.npr.org/2015/01/02/373248603/for-the-new-year-ray-bradburys-buoyant-vision-of-the-future

A Sound Of Thunder and Other Stories (once known, in a different format, as The Golden Apples of the Sun) is the one that I want to carry with me on into this new year. In it are both sides of Ray — from Bradbury the Destructor, smashing worlds and mucking up timelines, to that barefoot kid lying on his back in the summer grass and staring, entranced, up into the stars.

Python @ Codecademy

badge_Python_statisticsInternet Protocols and Support
https://docs.python.org/3.4/library/internet.html

https://docs.python.org/3.4/library/urllib.request.html

====================================

None keyword
example: i = A
i = None

Building lists
evens_to_50 = [i for i in range(51) if i % 2 == 0]

print(filter(lambda x: x % 3 == 0, my_list))

>>>for i in filter(lambda x: x[0] == “P”, languages):
print(i)
Python
>>> languages[2]
‘Python’

badge_Python_advanced_topics
Just a Little BIT

Welcome to an intro level explanation of bitwise operations in Python!

Bitwise operations might seem a little esoteric and tricky at first, but you’ll get the hang of them pretty quickly.

codecademy_bitwiseclass Fruit(object):
“””A class that makes various tasty fruits.”””
def __init__(self, name, color, flavor, poisonous):
self.name = name
self.color = color
self.flavor = flavor
self.poisonous = poisonous

def description(self):
print “I’m a %s %s and I taste %s.” % (self.color, self.name, self.flavor)

def is_edible(self):
if not self.poisonous:
print “Yep! I’m edible.”
else:
print “Don’t eat me! I am super poisonous.”

lemon = Fruit(“lemon”, “yellow”, “sour”, False)

lemon.description()
lemon.is_edible()

class PartTimeEmployee(Employee):
def calculate_wage(self, hours):
self.hours = hours
return hours * 12.00
def full_time_wage(self, hours):
return super(PartTimeEmployee, self).calculate_wage(hours)

codecademy_classes

class Car(object):
condition = “new”
def __init__(self, model, color, mpg):
self.model = model
self.color = color
self.mpg   = mpg
def display_car(self):
print “This is a %s %s with %s MPG.” % (self.color, self.model, self.mpg)
def drive_car(self):
self.condition = “used”

my_car = Car(“DeLorean”, “silver”, 88)

print(my_car.condition)

my_car.drive_car()

print(my_car.condition)

class ElectricCar(Car):
def __init__(self, model, color, mpg, battery_type):
self.model = model
self.color = color
self.mpg = mpg
self.battery_type = battery_type

my_car = ElectricCar(“Dodge Stratus”, “white”, 18,”molten salt”)
{Is there need to re-define everything??}

Codecademy_Classes2my_list = [i**2 for i in range(1,11)]
# Generates a list of squares of the numbers 1 – 10

f = open(“output.txt”, “w”)

for item in my_list:
f.write(str(item) + “\n”)

f.close()

=============

with open(“text.txt”, “w”) as textfile:
textfile.write(“Success!”)

with open(“text.txt”, “w”) as my_file:
my_file.write(“I am Sam”)

Codecademy_FileIO

Friction Can Save Your Sandwich

Friction Can Save Your Sandwich, And Other Tips For Better Bites  
October 13, 2014
http://www.npr.org/blogs/thesalt/2014/10/13/355115593/friction-can-save-your-sandwich-and-other-tips-for-better-bites

“Give a lot of thought to the interior layering of your components,” he says. In particular, “watch out for slippery components like sliced cucumbers, tomatoes and avocados.”

He calls this “the sliced cucumber conundrum.” But it can be solved with “the silver lining of greens.” Instead of keeping all the slippery ingredients together, Pashman recommends separating them with thin layers of greens in between to create friction.

http://www.sporkful.com

Kaleidoscope (by Tiesto)

Songs To Shake The Dance Floor
Tiesto (feat. Jonsi)
Album: Kaleidoscope
Song: Kaleidoscope
http://www.npr.org/templates/story/story.php?storyId=125166444

Headlining this year’s festival is Dutch DJ and producer Tiesto.
As arguably the most famous DJ in the world, Tiesto’s influence in dance music cannot be overstated.
His star power has helped to change the way DJs are perceived: They’ve gone from anonymous faces behind turntables to iconic musicians.
On the title track from his latest album, Kaleidoscope, he teams up with Sigur Ros frontman Jonsi. The Icelandic singer’s haunting falsetto builds the first five minutes of this song, and releases it to a trance-y explosion of synthesizers. The latter half of the piece is more typical of Tiesto’s sound.

Osprey Orielle Lake: Nature As Guide

Nature As Guide In Perilous Times with Osprey Orielle Lake
New Dimensions. December 4, 2013
http://www.newdimensions.org/nature-as-guide-in-perilous-times-with-osprey-orielle-lake-2

her adventures in nature, one of which was to take some inner city young people to the desert where, for the first time in their lives, they experienced the full measure of the night sky filled with stars.

there is no substitute for the visceral experience of “looking up at night sky and taking a moment to realize, wow, we’re on this spaceship earth, as Bucky Fuller was famous to say . . . how does that affect our actions and our choices when we remember that we are part and particle of this great, mysterious, numinous journey called life; I think the stars give us that.
When we don’t have that, our experience as a human being is actually diminished.
I think we need the measure of seeing the stars, remember where we are, why we’re here, what we’re doing here in this truly amazing miracle called life.”

starlings

Book: The last child in the woods

neophilia?

patient recovery is faster when they have a window

author: Bucky Fuller:
“the best thing you can do is start building the reality you want, and other people will come”

Moldives Islands: to another country

book:
Uprisings for the Earth: Reconnecting Culture with Nature (White Cloud Press 2010)

http://www.ospreyoriellelake.com

Topics explored in this dialogue include:
◦ Why nature programs on TV should not be a substitute for being in nature
◦ Why is it necessary for children to have time to play in nature
◦ Why it is important to see the full night sky beyond the city lights
◦ Why we need to listen to indigenous peoples, who have been holding many keys to ancestral knowledge