Sunday, July 31, 2016

$5 Music Box Server



After posting about the uniqueness of the Raspberry Pi 2 last year, I have purchased a 3 and a Zero.  This has all been tinkering, figuring out how low cost internet of things computers like the Raspberry Pi family can be put to good use.

This Blog post is about using the Zero 1.3 version to host a music library and shuffle songs to a stereo for listening. I am using a standard Raspbian Jessie operating system that was originally built on the Raspberry Pi 3, but works in the Zero with no issues. It is loaded on a 16 GB microSD card which boots the Zero. My only issue with the Zero is limited USB ports. If I had one more USB available, I could remote control the Zero music using WiFi.

I like Banshee music player because it has a graphic equalizer and has an Android phone app for remote control. I can't say that I understand all the Banshee functionality, but it seems to work for this particular application. Here is the music box server story.

Busy photo showing Raspberry Pi Zero (lower right) and other peripherals.
A few years ago I ripped all my music CD's to FLAC files, a lossless format that I thought would be good for future use. I now have many music folders, and 7,000 music files to choose from that were originally my CD music collection. I put them all onto a $35 hard drive for archiving, the Western Digital PiDrive with 314 gigs of storage, of which about 200 gigs is used by the FLAC file storage.  You can get any storage device you choose, not endorsing the WD hardware. I don't consider this hard drive cost associated with the music server because it is a backup archive. That hard drive is shown in the photo above. It has a bright white light. That is connected to the USB power cord, which then sends the power to the Raspberry Pi Zero. The hard drive USB data cable is connected to the USB data hub (red light in above photo) which also has a wireless keyboard, wireless trackball mouse and USB audio card. The red wire is the analog music which delivers the music to my stereo amplifier. Lots of wires.

The Raspberry Pi Zero has a HDMI mini to standard plug which the monitor is plugged into.

The monitor, wireless keyboard and mouse can be removed from the setup once the music is playing and in shuffle mode.  I have checked the power usage, it is 37 watts with the monitor, and 4 watts without. The hard drive, Zero and USB hub with peripherals use only 4 watts of power.

4 watts of power used for music box server without monitor.
The power is managed by a plug-strip with monitor, high amp output USB power and the USB hub power. Turning the plug-strip on boots up the Zero and goes into desktop mode. I click on the Banshee program and wait until it is fully loaded by watching processor utilization. Then select all artists and hit play. It shuffles the songs, and I get to listen to a random selection of my own music. I assume I could automate the process of running Banshee and automatically playing if necessary.
Raspberry Pi Zero ver 1.3 Running Music Box Server
As far as the music quality is concerned, it is OK. The very inexpensive USB music card has both audio output and microphone input. I assume I can get a DAC solution with much higher quality, I just haven't seen the right solution for my purposes yet. Waiting on some Kickstarter Pi DAC that can provide a SPDIF input (Please don't tell me about the Cirris Logic DAC, way too complicated).

This $5 Zero version 1.3 isn't easy to purchase. I had to wait on vendors mailing lists until they were back in stock. It seems amazing the functionality/price ratio for these systems on a chip (SOC) devices. There are peripheral costs. The Raspberry Pi Foundation keeps the costs low by not having additional functionality which each use case may not require.

Hope this is an interesting Blog. Feel free to comment. Thanks.

This post has been included in an audio evaluation has been broken out into the following audio sections:

And a related post, Uniqueness of the Rpi.

Good audio document https://www.raspberrypi.org/blog/how-to-play-sound-and-make-noise-with-your-raspberry-pi/.






Sunday, July 17, 2016

Garbage at Ski Area Slopes

In a few day's time I was able to visit four different ski areas and perform a standardized exploration of how much garbage could be found. Here is that experience.

First steps in this journey were taken at Mary Jane ski area in Winter Park Colorado on July 4th. I walked up the Panorama lift up to Parson's Bowl and then came back down a different route. Along this and all the journey's I used existing foot paths as much as possible. I left as little footprint as possible at all times. For this first trip, I was targeted at getting some of my own garbage that had been left, a telemark ski binding cable. I had lost it in 20" of snow powered on-top of 12" more powder. But found it exactly where I had remembered loosing the piece.


At the bottom of the ski slope I collected all the garbage and took a picture to document the amount of garbage. Below is the Mary Jane litter.


Then, I was taking a trip from Colorado to San Francisco and decided to stop at ski areas along the way. First stop was Park City Utah. I standardized the trip up the mountain, going 1,000 feet up, under a random ski lift, then came back down a different route.


Next stop was Heavenly Valley just south of Lake Tahoe in California. Same routine, 1,000 feet up, then a different route down.


Last stop on this journey I stopped at Alta just east of Salt Lake City. 

plus there was this extra garbage that I had collected, but didn't have space to carry up and down so left on the well traveled maintenance road.


Looking back on the photos it appears to me that Park City was the cleanest. But I had thought Alta was best. At least the wild flowers were the best I have ever seen. 




There are many more examples of garbage on the ski slopes in the form of abandoned infrastructure. Concrete foundations, piping, wires left exposed. 

When traveling back I was possibly going to hike up Steamboat Springs, but while traveling through I didn't have the energy. Some Forest Service people told me that those slopes have lots of garbage. What I would like is to have a Forest Service or Bureau of Land Management (BLM) relationship that first develop the standard audit process, then can grant access to ski areas to compare and contrast the land stewardship cultures. Hope this journey helps keep our ski areas as clean as possible. The irony that I had my own trash that needed to be picked up isn't lost on my experience. 

Of course, the air travel miles that skiers use is far greater an environmental impact than any of this litter.  




Whale Story

Wrote this a few days ago, July 9th, 2016. It was a four part message.

Part 1

Stayed over in Stinson Beach last night, then this morning moved to the public parking area and backed the car into a space right at the beach. Had some excellent Prius brew coffee and a crock pot stew of chipotle sauce with tuna on previously home toasted corn tortillas. Then I headed out walking north on the beach. Hadn't really explored that previously. Took some photos along the way, one of a ocean surge wall to protect the beach property next to a home with PV panels. Two different strategies for climate change. It was overcast but burning off, cool ocean breezes.

As I was contemplating the waves, each new wave sweeping out the old and bringing in a new event, new opportunities, new reality, I noticed a paddle boarder up ahead.  Not much happening that time of the morning. Earlier I had seen some boats close to shore, couldn't tell if they were tour boats or fishing boats. There was some bird commotions too. And then I saw a whale's back. The paddle boarder was right near it, and paddling in the direct the whale was heading. Then I saw a clearer sighting, took my phone out and started shooting photos. Some really good views of the whale(s) feeding very close to shore, possibly 100 to 200 yards off shore. The feeding died down, whales gone, and the paddle boarder was moving along in the same direction as I was and then came to shore in front of where she was staying. Her camera battery had died, but I sent her some photos I had taken to her e-mail account. One very excited paddle boarder.



Continued to walk as far as I could north, 2.5 miles, then turned around. I began wondering why I didn't  go into the ocean when I saw the whales? They were so close, I could have swam with them. People travel the world and pay enormous fees for such an opportunity. How would that work? Is it too cold? Would it be safe? How far out would the whale need to be for me to go swimming? Could I strip down to my underwear, they are black and look like swim trunks?

Let me know if you want to know the rest of the story.

******************

Whale Story, Part II

Where was I, oh yeah, walking back. Planning, thinking if I see another whale what would be the conditions that would get me into the water. If I was to take off my clothing I would need to weigh them down because it was getting a little windy. I picked up a rock and continued walking carrying the rock.

Well guess what?

Up ahead there were more people on the beach in one place. This was noticeable because the beach was quite empty.  They were looking out into the ocean. And again, the tell tale signs of birds. Then, again, spotting of a whale back's. It was feeding time again, but the whale(s) were a bit out, possibly too far out to safely go swimming closer. As I walked towards the people, a humpback came up out of the water filling it's mouth with fish. It smiled, it's head two yards out of the ocean surface. And it was closer, possibly a football field away. The people watched, and I did too. It seemed like things were dying down as I passed the people. They were dispersing. I sat down on the high side of the beach, took my shoes & socks off and removed my hat, sat down. Waited..waited, like coyote waits. Then it happened, a whale, closer, came out of the ocean heading my way. I made my move. 

Took off my long sleeve highway-orange shirt, dropped my pants, packed them into my hat along with the rock and went into the ocean. I swam out as far as I could still stand in the water. Waited. Yes, it was cold. Colder than I would have thought, but not the coldest ocean I've experienced. A whale, again looked like a humpback, was slowly going down the shore line feeding. It came about 100 yards away. Nice to see up closer. Of course I was sending it telepathic messages to come see me. It seemed like I was in water that was too shallow for a face to face meeting. The whale(s) came up a few times.

It calmed down again, and to keep from getting too cold I rode a wave to the shore and got out drying myself next to my tiny beach camp site.

Again, whale(s), so I went back into the ocean. Why not, I was still a little wet, and this time the whale looked even closer. So I ran in, yelling to a couple standing there "It's headed this way!"

I went a little further out, still able to stand, on my tippy toes and still breath air. I noticed the whale was breathing too, heading right towards me. I was 50 yards out, and it was another 50 yards. Birds were flying above, feeding on scraps a whale might have missed. It was now perpendicular to me and the beach, rising up out of the ocean, more than usual, crusty mouth of what looked to me like a humpback's head. We said hello, and it was on its way past. A few more feedings, then gone. I rode an excellent wave back to the shore, standing up after the ride in one foot of water. Walked back and dried off. As I left my beach site I remembers to look back and my hat was still in the sand. Further down the beach I couldn't find my sunglasses. So went back to my camp but they were not there. A pair of sunglasses I had found were now lost. Funny, I had just picked up some broken sunglasses off the ground at Heavenly Valley ski resort the day before. Waves of ownership. No worries, I have one more pair of sunglasses that I had found still in the car.

It feels like I have good whale karma. I remember seeing a whale every day while in Hawaii at each of the different islands. It just seems to happen. Like it did today. Maybe someday I will be able to ask a whale if we have met before?

But the story doesn't end there, something else just happened....

************

Whale Story Part 3

So the other thing that happened later on in that day was after I had taken a nap in the car.

But first I have to explain a little bit more why I got out of the water the last time. You remember, I had been swimming within 50 yards of the whale? Well, at the same time I saw a dorsal fin. Now, I am no Marine Biologist, but I thought to myself that is either another whale or possibly a shark. Well, seeing as there was  feeding going on, and again I am not a marine biologist, I thought it would be a good idea to get out of the water.

Now, back to the afternoon event after I had taken a nap in the car. I walk out to the ocean, and right there and then there is a whale with its nose sticking up out of the ocean having just grabbed a mouth full of fish. Ocean water running out of its mouth. More wales were feeding up and down the coast. I tried to get a selfy photo of myself and a whale. You have any idea how difficult that is? Getting a picture of a whale back or a whale coming up out of the ocean is tough enough. I don't know if I was successful, many photos but I can't see off my phone if there are any successful whale selfies. Will let you know...


The next morning I got up early and drove away from Stinson beach, but not before going out to the beach. Deserted except for a person sleeping on the life guard stand. No whales, no boats, no other people.

However, as I drove up, up and up out of the low lying town I noticed something else. Let me know if you are still interested in one more installment of this story.

*************

Whale Story Part 4
As I was saying, I was driving up up and up out of the town of Stinson Beach after having spent a day with whales.

As I drove up, I notice boats heading towards the beach, and more boats, and in the distance even more. Then I noticed the tell tale signs of blow holes spewing water out into the air above the ocean surface. From the high vantage point I was able to see many different areas where whales were coming above the water. And then I saw it, for the first time, a tail. The ocean was so calm that morning not like the day before when it was choppy. I hadn't seen any tails. I didn't see any mouth above the ocean, but lots of black backs. At one point I counted five blow hole events at the same time. Hard to say how many of the majestic mammals where under the surface that day.

There seemed to be a mad rush for the boats of all different sizes to get to see the whales. I don't know how long the whales had been there, and don't know if they have left, but I did. And feel blessed to have been so close, so lucky to have seen this event. That is my whale story.

And then this happened a few day's later in the San Francisco Bay:

Monday, February 1, 2016

Tele Anyone?

Telemark skiing that is...

Been telemark skiing since the late 1980's  but didn't commit and throw away my downhill skis till somewhere around 1992. I am getting worse, and the gear is getting better so I tend to maintain a constant level of competency. 

Mary Jane ski area used to have an excellent class for keeping up on technique, it was called TeleDaze. They seem to have stopped that program unfortunately. 


Gear
Skis were all made about the same time, cable bindings. Leather boots are 30 years old but surprisingly I still have them and they work for mild activities. Hard plastic boots are for area skiing and back-country. Also shown are things that go in the backpack like shovel and first aid kit. Two different sets of skins there, full and half skins allow you to ski up hill to get to your favorite places. I am overdue for a new set of skis, ones with rocker technology. Just so I can keep up with my deteriorating body ~smiley~.

My favorite back country place, because I had a part in the construction, is Broome Hut where I happen to be a Hut Master


Tele to work video

Best book hands down is Allen & Mike's Really Cool Telemark Tips. The book has an animation if you flip the pages, which wouldn't work with a e-book version.  Great short concepts to work on for each outing. 

And no respectable blog would be complete without a mention to avalanche preparedness. Don't go into unsafe places. Don't bundle together, use appropriate gear. I've always thought that there should be an avalanche app, where if the phone tumbles the GPS sends out an alarm for locating the skier. Free idea that can help all. 

Outside Magazine Lesson's Learned and Colorado Avalanche Preparedness report on 2013 disaster.  2016 news isn't good. 

Hope this helps answer any questions..... Joe Mc.


Tuesday, November 3, 2015

New KCR Trail, Lower Cougar

New KCR Trail, Lower Cougar
By Joseph McCabe 11/3/2015


For those who haven't been blessed to actually experience the new trails, here is a quick report.
The start of the Lower Cougar Trail shows its curvy, sinuous track cut into the slope on the south part of Ken Caryl Ranch. It gently slopes upward in the foothills of the ranch.


I”ve been on many trails in my days, and this one is an excellent trail. There are secret spots where nature provides a shaded, wetter feeling. This trail reminds me of Chautauqua up in Boulder without the flatirons.


Just off Valley Parkway before you get to Amaranth Dr, up into the foothills a 1.9 mile hike gets you to an intersection that can take you back along a relatively flat 1.9 mile trail to the Massey Draw trail. The new October map has all the deets, including the under construction Upper Cougar Trail currently accessible to the 6600 foot mark. There you will see Egyptian like wall building efforts on the tricky switchbacks. All being built by volunteers who carefully pick huge rocks and slide them into the right locations. You can join the community by sending an e-mail to the trail club, be sure to give your KCR street address.


To me, KCR stands for Kind Cyclists Rule. Whenever I mountain bike ride, I always leave space for hikers, never skid and am not in a race. Some of the switchbacks require a slow careful negotiation going up hill. And some of the down hill on this trail can be deceivingly gentle, until you come to a sharp right turn before a deep 8 foot deep ravine dive. Lately, I have been running this trail, taking an hour round trip to the site of the volunteers building the new section at 6600 feet. A 600 foot elevation from my doorstep. Can’t wait till it gets up to 7,300 feet. Now that will be a serious work out for these old bones.
Here is a detail from the on line trail map as of October 2015:

Thanks to all the volunteering and the funding for the professional building of these trails. An excellent partnership. Couple of 3D spherical photos uploaded on my Google+ account, click on the photo withing Google+ to see the cool 3D view. You can scroll around, look up and down and see the full views. Juncture of Lower Cougar trail in KCR and in this one you can see the wall built by the volunteers

Hope this helps understand the new trails. They are excellent. 

Sunday, October 25, 2015

Considering a Refurbished Phone?

Things to consider before buying a refurbished phone.
By Joseph McCabe, PE 10/25/2015



For me, getting a new phone is very frustrating because all the trends in mobile computing need to be evaluated. Should I get a watch and use that as a phone? Can I get a wifi puck and just use a tablet as a phone with a Bluetooth headphone? And there are dozens more questions that need to all fit within a budget for a phone plan's data usage. When my 2013 Moto X phone screen broke, I had to start this process of choosing a replacement phone with the additional investigate of a screen replacement. Screen replacement would have cost as much as a new phone, so I added Gorilla Glass to my requirements of a new phone. 

My motivations for buying a refurbished phone are that I didn't need the new features of today's Nexus phones. 

Things I don't need: 
  • Don't need greater than 8 M Byte photos
  • Don't need 4k video
  • Don't need a finger print security device
  • Don't need a USB-C port or charger
What I wanted is to use is all my existing periphery equipment:
Photo, from left to right: Qi charger, slim port and smattering of usb mini chargers and adapters. 
The capabilities I wanted, because I had the peripherals, are missing from the new Nexus phones. So the older original Nexus 5 is one phone that floated to the top of the list when investigating all the replacement options. Nexus 5 has these additional features: Multi-touch capacitive touch screen, Proximity sensor, Gyroscope, Compass, Barometer, Accelerometer, Hall effect sensor, Ambient Light sensor, GPS (GLONASS &Beidou), step counter and detector. 

The 2015 Moto G was a close second choice in my investigation. That was until T-Mobile dropped the price on their refurbished Nexus 5 to $149. And they spread that out over 24 month payments without any interest charge (I didn't need this financing, but it gave a relationship to my provider that the phone continue working). A 20 day return policy and a 90 day warranty gave me the confidence that the phone would be working as much as I needed. I did have to pay tax and shipping which was unfortunate. 

Of course, like you I was concerned about the condition of the phone. I was pleasantly surprised at how good the condition was when it arrived four days after ordering. There were strips of protective plastic all around the edges, plastic protecting the rear camera and the face of the phone itself. The only indication that it may have been used previously was a small amount of scratches on the back side (see youtube video at the end of this blog). 

I tested everything when the Nexus 5 arrived using the app "Phone Tester" from the Play Store. Android system upgraded multiple times, from 4.4, to 5.0 to 5.1 to 5.1.1 and to my surprise then it loaded marshmallow 6.0. I hadn't put the T-mobile sim into the phone yet so this was all done over the air (OTA) using wifi. Apps were constantly automatically updating at each new OS, but I stopped the automatic update in the Play Store. After setting the phone up the way I wanted I called t-mobile and gave them the 9 digit number the sim card they had provided at no charge. My old phone no longer used the phone number but the new Nexus 5 did. I wanted to make sure nothing was wrong with this new phone, especially the USB charging socket. Turned out that this socket was in excellent condition. My old phone is now working as a WiFi only device still able to receive and make phone calls over WiFi calling. 

I often like to use the java script on Octane to see how strong my web-based computing is compared across devices. I've done this on Raspberry Pi 2, the Moto X phone, desktop and mini computers and now the Nexus 5. The score for the Nexus 5 was 50% higher than the Moto X phone I replaced. This is good.

Only issue I have found with the phone is the music amplifier through the headphone jack sometimes gets garbled. I know the headphone plug is the right size, but I think it isn't making a great connection. Not a big enough problem to send the phone back at this time. 

One added benefit of purchasing a slightly older phone is that purchasing a case for the phone is very inexpensive. I was able to get a top of the line case for the Nexus 5 delivered for $2.80. 

Using the T-Mobile refurbished program has been quite a respectable experience (see update below for clarifiation). I will update this blog if any issues arise. Hope this helps!
I've put this boring 2 minute long, no dialog YouTube un-boxing video so you see what is sent when getting the Nexus 5 refurbished phone from T-Mobile. Lots of useless packaging (New2U), the phone, a USB micro charger and a sim tool to remove and insert the tray for the sim card. 

Hope this has helped in considering a refurbished phone for your next purchase. 

2 week UPDATE: Update here, T-Mobile put an extra $10/month charge on a program of their's called Jump!. Be very careful that you don't get this added. It took a trip to a store and a call to 611 to fix this, if it isn't fix I will update this blog post. Hope this continues to help!

Tuesday, October 13, 2015

Gluten Free, Yeast Free Bread

Gluten Free and Yeast Free Bread
by Joseph McCabe


I have found it difficult and expensive to use yeast making gluten free bread. This recipe actually came out of my making bread with old dead yeast by mistake, and having used too much baking powder. The bread actually turned out great. I've modified the original approach after some more experiments. Hope you like it.

Preheat oven to 375 degrees F, put two bread pans into oven to heat. When you take pans out to fill you coat pans with oil or butter. I use Pam.

Ingredients:
  • 3 cups gluten-free flour 
  • 1 tbsp xanthan gum 
  • 2 tbsp baking powder (this is for 6,000 ft elevation, increase as needed for lower elevation, optional to put powder in last because it reacts immediately to create air, too much mixing and air is lost)
  • 1 tsp salt
  • 4 tablespoons granulated sugar
  • 1 1/2 cups milk (or milk substitute, or water)
  • 1/4 olive oil
  • 2 or 3 eggs depending upon size (1/2 cup pumpkin can be a substitute) 
Optional:
  • 2 teaspoons vinegar
In a medium bowl, stir together the flour, xanthan gum, baking powder, salt, and the 4 tablespoons sugar.

In the bowl of a stand mixer fitted with a paddle attachment and splash guard mix the eggs, milk, olive oil, and optional vinegar.  Beat for a few seconds to combine.  Slowly add the flour mixture.  Beat on medium speed for 3 minutes. Separate the mixture into two parts for two loaves; place into preheated and oiled loaves pans. Cook for 22 to 30 minutes. Turn if the top is looking unevenly cooked.  Makes two-1 pound loafs. 
Two one pound loaves, slightly burnt on top.


Feel free to comment, share experiences at different elevations. Thanks. Hope this helps.

One two pound loaf.

Two one pound loaves made with pumpkin instead of eggs.