Monday, October 16, 2017

iCloud Photo Library Optimize Storage Issues

I was trying to use the Apple Clips app the other day to make a quick movie from some short ~10 second videos I had shot on my iPhone 6s an hour earlier.  I went to the Library tab, tapped on one of the videos and it popped up the "Downloading from iCloud..." progress bar.  It seemed odd that it had to go to the cloud to for such a recent video.  I was really curious so I went to the Photos app, went to a different video and tapped on the edit button to see if the video was stored locally, but it wasn't as I saw the little progress circle showing it downloading.

My iPhone has the "Optimize Storage" setting turned on for iCloud Photo Library and I have over 22GB of space available.  Is this a bug in iOS 11 or has something changed in how the "Optimize Storage" behavior?

Tuesday, October 10, 2017

World Mental Health Day: My Anxiety Story

Today is World Mental Health Day so I wanted to share my story about anxiety:

Four years ago, I went out to lunch like normal, but I started to feel nauseous and was unable to finish my meal.  Later in the day when I was in the office I felt dizzy and short of breath.  It was very strange since I had never felt this way before.  After this happening for a few more days I decided to go and see my doctor.  I was sent for a few blood tests and then wore a heart monitor for a day, but nothing turned up.  In my follow up appointment my doctor diagnosed me with anxiety and referred me to a therapist that specialized in the treatment of anxiety.

Prior to this I never thought of myself as somebody that would need to see a therapist, because I thought just being smart and strong would get me through any problem.  It was also surprising that somebody like me that is so outgoing and friendly would have anxiety.  However, at that moment in time I just wanted to get better and didn't think twice about it.  I contacted the therapist and after a brief phone screening had my first appointment.  The first few weekly appointments went as expected with lots of talk about my history, family and my current life.  It wasn't long though before the homework began and we started to tackle some of my anxiety issues.

My therapist follows the Cognitive and Behavioral Therapy (wikipedia.org) approach for treating anxiety and doesn't prescribe medication.  So my first job was to figure out situations that made me anxious, like going out to lunch or visiting a crowded place.  We would then list out those things and then I would have to go experience them and afterwards document how I felt while doing them.  I think my analytical mind really enjoyed this type of feedback loop and trying to correlate map activities to their outcome.  All of the documenting was done using Google docs so I can go back today and see all of the different tasks I had to complete and all of the improvements and sometimes setbacks I faced.

After about a month I started to make progress with eating out at lunch and started to feel much better in general.  However, it turns out this was just the tip of the iceberg for my anxiety, because once we started to talk it became clear that anxiety had affected me in many other ways throughout my life.  I started to recall panic attacks I had at different large public events, small fears I had about checking into hotels, migraines from the anxiety associated with air travel (thanks TSA), meeting new people and many others I won't bore you with today.

Slowly over the last four years I tackled one problem after another and started to recognize my anxieties and then how to best deal with the situations causing it.  It hasn't been easy and I have definitely gone into more than one exposure that pushed me to my limit, but today I am so much stronger and happier because of my treatment.  I feel there is such a stigma associated with going to therapy, but it has actually made me open about the fact that I do go and how much it has helped me.  It has really changed my life and if you have ever considered seeking help, but were worried about what people might think, just do it!

Special thanks to my therapist, my family and of course my amazing wife for supporting me through all of this.

Tuesday, September 19, 2017

iOS 11 for iPhone

Today is the annual update all your iOS devices day, thanks to the release of iOS 11, watchOS 4 and tvOS 11.  I have been running the public beta of iOS 11 on my iPad for over a month and on my iPhone for about 2 weeks.  Here is a quick review of the biggest changes in iOS 11 for iPhone, because the scale of the changes on the iPad is too big for anything quick.

Control Center

The most dramatic change for the iPhone is the new Control Center.  You may not know its name, but  if you have an iPhone it is likely that you swiped up from the bottom of the screen to reveal a set of controls for turning on airplane mode, or most likely to use the flashlight.  It is the same area where you may have seen music controls when you were trying to find the flashlight and only after trial and error realized you could swipe right to find the page with the flashlight.

In iOS 11 the multi page Control Center is being replaced with a single page that is now much larger and contains lots of buttons of different shapes and sizes.  
It takes a while getting used to all the new controls and what they do, but after a week or so it becomes second nature.  Simply tapping on the controls will perform the expected action, but if you long press or 3D Touch on some of they will reveal a more detailed control.  For example, long pressing on the flashlight will give you three options for brightness.  

Messages

Not a lot has changed in the Messages app, but since it is used by a lot of people I wanted to point them out.  In iOS 10, the introduction of apps in Messages was a tent pole feature and they invaded the Messages app.  One downside to this was you had to do an extra tap to attach or take a pictures.  I know it doesn't seem like much, but it really annoyed me.  In iOS 11 apps in Messages are featured differently and as a result the camera is now only a single tap away.
Now instead of using an arrow button to reveal the camera, the text input field is a little smaller and the icons for the camera and app store are always displayed.  A new row of apps is always displayed to help encourage their use, but in a nice and subtle way.  My only gripe about this new interface is once you type a certain number of characters the input field grows and it always "startles" me as the display changes.

Live Photos

One of my favorite features on my iPhone 6S is Live Photos.  I almost always forget to record video of different events and it is so nice to be able to see a brief snippet of video that I "accidentally" captures.  I generally leave Live Photos turned on, because why not.  In iOS 11, Live Photos is getting a couple upgrades.  My favorite is the new Live Photo Effects: Loop, Bounce or Long Exposure.  I know these already exist in apps like Instagram and Snapchat, but it is nice to be able to apply these effects after they are taken.  
To access the Effects just slide the Live Photo up to reveal a live running example of what it will look like.  There is a slight delay as the effects are applied so be patient, but once they have loaded you can tap on the effect you like and the photo will be updated.  The first option is Loop, which tries to create a looping video that repeats over and over again.  The second option is Bounce, which will play the video forward for a certain amount of time and then reverse it for the same amount of time.  The last one is Long Exposure, which will basically overlay all the different frames together as if you left the shutter on your camera open for a long exposure photo, this works best for things like waterfalls or night shots.

Other Random Changes

Above are the changes I found to be most notable on the iPhone, but here are some more quick things you may notice.
  • Taking a screenshot will now show a thumbnail in the bottom right corner of your screen for a few seconds.  You can tap on it to mark up the thumbnail and choose to share it, save to Photos or delete it.
  • Screen recording is a control that is available in the new Control Center.  It is not in Control Center by default, but you can add it in Settings.  Once it is on you can record what you are doing on the screen and it will be saved to Photos.
  • Swiping down from the top will show the lock screen.
  • iCloud Family Sharing of data!!!  Now you can share your iCloud storage data with your entire family, so just spend $2 a month for 200GB and everybody will have plenty of space.
  • The App Store is completely redesigned.
UPDATE: Forgot to include Do Not Disturb While Driving, which will automatically turn on whenever your iPhone detects you are driving.  Any messages you receive will auto reply with a message that you are driving and the ability for the sender to resend with the word URGENT to bypass it.

Friday, September 15, 2017

Installing Apache HTTP Server on Windows and Proxying to Tomcat

I have been working on Tomcat web applications and have always just accessed the pages directly on the port that Tomcat is serving.  Now I want to put an Apache HTTP server in front of Tomcat so I can access this page next to other pages that aren't served by Tomcat.  Here are the instructions.

Since the Apache site doesn't provide Windows binaries of the Apache HTTP server they must be downloaded from a third party site, I used Apache Haus HTTP Server Windows Binary Download page. After downloading the zip file I unzipped it and put it into a directory on my system.  The first thing you need to do is open up the conf/httpd.conf file to modify the configuration of the server.  The only required change is to update the SRVROOT definition, which basically is the pointer to where the unzipped folder is defined.  Make sure to use forward slashes instead of backslashes in the path.  Save the conf file and then run bin/httpd.exe.  If it started up correctly you can go to localhost:80 in your browser and an example page should load.

By default the server will look in the htdocs folder of the Apache Server installation for the pages in the site, but if you want to store them in a separate location for easy upgrade of the server then you can update the DocumentRoot and also the Directory elements of the httpd.conf file to point to any other folder on your system.

As for pointing to Tomcat you will need to do the following:
1. In the httpd.conf file make sure to include the load the proxy_module and the proxy_http_module.  They should be included in the file, but may be commented out.  Just uncomment them and they will load.
2. Next in the httpd.conf file add you need to add a ProxyPass and ProxyPassReverse, which will map specific web applications to the URL of the Tomcat applications. These will look like: ProxyPass /theApp http://localhost:8080/theApp
ProxyPassReverse /theApp http://localhost:8080/theApp
3. Update the Tomcat server.xml file so the connector element includes a proxyPort attribute specifying that requests from port 80 are proxied.

Start both servers up and you should be able to access your Tomcat web applications on port 80 now.

Wednesday, August 23, 2017

Getting Video into iMovie on the iPad without iCloud

A few months ago I wrote a post, My Kingdom for a Local iPad Data Store, talking about how I wanted to be able to use iMovie on the iPad to edit my drone videos. The problem was that in order to get the videos into iMovie they had to be in iCloud Photo Library or in iCloud Drive, but I didn’t want them to be uploaded and then maybe downloaded from the cloud because they are large files. Over the weekend I had an epiphany and figured out how to work around this by doing some offline file shuffling.
  1. Turn on Airplane mode to prevent any internet connection from occurring.
  2. Connect a Lightning to USB adapter with an attached SD card reader to the iPad. 
  3. Insert and SD card into the card reader or in my case a Micro SD card. 
  4. The Photos app will launch and prompt you to do an import. 
  5. Import any of the videos you want and then choose to keep or delete them on the card. 
  6. Unplug the Lightning to USB adapter. 
  7. In the Photos app go to the “Last Import” album. 
  8. Tap the Select button to enable selection mode and select all of the videos. 
  9. Tap on the “Share” button (the box with the arrow coming out of it). 
  10. In iOS 11 tap on the “Save to Files” action and in iOS 10 select the “Upload to iCloud Drive” action. This will copy the file to iCloud Drive. 
  11. In the Photos app tap the Select button again and select all the videos and this time delete them. 
  12. Go to the “Recently Deleted” album and delete all the videos from Photos (just in case these would get uploaded to iCloud Photo Library).
  13. Now open up iMovie. 
  14. Create a new movie and import all of your videos from iCloud Drive. 
  15. Click Done to go to the Summary screen just to make sure everything is “Saved”.
  16. If you are using iOS 11 open up the Files app and if you are using iOS 10 open up iCloud Drive. 
  17. Delete all of the videos from iCloud Drive. 
  18. Go to the Recently Deleted view and also delete them from there. 
  19. Finally open the Settings app. 
  20. Go into the settings for the current user, which should be the top option. 
  21. In the user menu select iCloud. 
  22. In the iCloud menu you can choose which apps will save their data to iCloud. 
  23. Turn this off for the iMovie app. 
  24. Now turn off Airplane mode and you are ready to work on your movie. 
The iCloud Drive/Files storage part seems a bit excessive, but was necessary because any videos imported to iMovie from the iCloud Photo Library stop working if you delete them.  Importing from iCloud Drive/Files on the other hand puts a copy in the iMovie app's local storage.

Wednesday, August 16, 2017

Remembering My Dad

Last week we had a private funeral service for my father and here is the eulogy I read:

Bill, my dad, was many things to many people.  He was a storyteller, lots of fun to be around, hard working, resilient, happy, kind and the list goes on and on.

One thing we all were familiar with was his ability to tell a story.  Some of the stories were adventurous like the time he was riding a bicycle built for two through the center of town and got pulled over by the police or the time he fired a cannon off in front of the police station and freaked all the officers out inside.  

Another type of story he loved to tell was the accomplishment type story like driving up and down Mt. Washington multiple times, or driving to Keegan, ME just to see what was there or racing a car with his drone and winning or how he had the fastest stock motorcycle in the world and he got it up to some ridiculously unsafe speed or having driven to every state in the continental US.  

The other type of story we seemed to hear more than any other involved the injustices he suffered, like being nailed to the roof by his brothers or how my mom had a new car every year they were married.  He had a lot less of those type of stories in recent years, because he was happy.  On the rare occasion he did have a new one it always made me laugh when Anne would call him out and set the story straight.  

Every once in a while you could get a life lesson from a story, well besides don’t drive 165 MPH on a motorcycle, one that changed me for the better was from a trip we took to Washington DC when I was a kid.  We were in line at this fancy hotel and the woman in front of us was complaining about something to the receptionist and my dad patiently waited his turn in line.  We finally got to the front of the line and my dad made a funny comment about the complainer to the receptionist.  She thanked him for his patience and upgraded us to an amazing room overlooking the city.  Sometimes being patient and funny pays off.  


The stories were almost always exaggerated in some way, but that is what made him a great story teller.  I am thankful to have picked up this skill from him and look forward to passing on these stories and many more.

Thursday, August 10, 2017

My Dad Passed Away

My dad passed away a couple weeks ago and the site with the obituary is crawling with ads so I wanted to also post it here.
William D. Sands, 67, of Kingston, NH and Viera, FL, and longtime resident of Amesbury, passed away in his home on Thursday as a result of cardiac issues.

Born in Amesbury on May 31, 1950, he was the son of Francis Sands and Simone Sands. He remained in Amesbury most of his life, and had various jobs that made use of his mechanical and technical skills and abilities, until his retirement from his career as a medical device technician. After retirement he moved his primary residence to Viera, Fl, where he enjoyed the sunny days, flying his drone, and the resident alligators.

Bill was known for his sense of humor, and could always be counted on for a story and a laugh. His love of travel brought him all over the United States. He loved to drive, and was always exploring, whether on a motorcycle, in an RV, or in his much-beloved Smart Car. Bill was an enthusiastic grandpa, and was known for his “Pepe hugs”.  He will be deeply missed by his family and friends.

He is survived by his loving wife, Anne Sands, his brothers David Sands and wife Sally, and Leonard Sands, and his children, Keegan Sands and wife Jennifer, Brendan Sands and wife Ilona, Mike Gonthier  and wife Ally, and Kelley Fitzpatrick and husband Kevin. He is also survived by his grandchildren, Kaleb, Camden, Connor and Jacob Sands, as well as nieces and nephews.