Books, movies, politics, and whatever I want

Monday Book Pick: Thomas Jefferson and the Tripoli Pirates

January 4, 2016 – 10:20 | by admin

Thomas Jefferson and the Tripoli Pirates: The Forgotten War That Changed American History by Brian Kilmeade and Don Yaeger

This book covers an important piece of American history, the first foreign war fought by the United States. The Barbary nations associated with the Ottoman Empire practiced piracy and enslaved captured crews of any Nation that could not defend its merchant fleet or could not afford the “tributes” the leaders of the Barbary Coast nations demanded as the price to not have ships, cargos, and crews captured and sold. It was President Jefferson (the third President) who decided that continuing to pay foreign nations who held US citizens for ransom (while forcing them to perform hard labor as slaves), and continuing to raid US flagged merchant vessels, was bad policy. President Jefferson persuaded Congress to fund new Naval construction and personnel to take the fight to the Barbary pirate nations. This well researched book details the diplomatic front, as well as the battles fought by the US Navy and Marines.

Monday Book Pick Archive

Tags: , , , ,

Friday B-Movie Pick: Terminator Genisys

January 1, 2016 – 12:15 | by admin

Terminator Genisys

Starting the new year with the latest in the Terminator francise. Once again, they are moving forward with the premise of changing the timeline doesn’t always work the way you want it to. Ya, I’m going to do spoilers, so quit now if you care. This entry has some delightful (to the fan base at least) almost scence for scence sequences from the orginal. Plus it has Arnold Schwarzenegger playing a T-800 series who has been guarding Sarah Connor since a T-1000 tried to kill her as a little girl. The flesh around the machine ages, which is how they explain using a current Schwarzenegger for the aging robot.  The special effects are great and the fights are epic.  Well worth the popcorn and rental.

Friday B-Movie Archive

Tags: , , , ,

Sorting pictures

December 21, 2015 – 13:00 | by admin

I’ve been backing up my iPhone photos to my Windows 10 desktop using Microsoft’s OneDrive.  The photos are on my local drive as well as the cloud.  The downside is that all the photos, movies, and screen shots are dumped into a single directory, and there are a lot of them.

I prefer to have them sorted by date into directories.  A directory for each year, with sub-directories for each month.  I could do this by hand, but that’s a pain, and I have to remember to do it on a regular basis.  Plus I’ll probably want to do the same for my wife’s iPhone photos.  So I decided to write a python script to scan the camera roll directory, and copy the files to a directory in my photo archive section.  The scrip will create directories if needed and skip files that are already in place.

That part was pretty straight forward. I used os.chdir() to get to source directory and os.listdir() to get the directory contents.  Don’t want to create month directories for directories, just files, so I used os.path.isfile() to filter out non-files, and then check the file extension.  I only want jpg, mov, png, and tiff files.  I use Camera+ most of the time, which produces tiff files instead of jpg files. The png files are screenshots.

I used os.stat() to get the create time, and found files I exported to the camera roll from Camera plus had a create time of when they were exported, not the time the photo was taken. (Once I started having Camera+ dump straight to the camera roll, I didn’t have this problem).

So, I dug a little deeper and found I could get an image created time stamp with a getImageDate() call.  Downside was this didn’t work for png, tiff, or mov files.   So I had to do some extra sorting, and wrote another function to use on just the jpg files. I called the open() function from the Image library, and extracted the exif data using the _getexif() function. This works most of the time, so when it fails I had it return a ‘?’ rather than the time stamp string.  Seeing that caused a fall back to the getImageDate() function.

This extra call to the Image library made the placement of the files more accurate.  I had the base time function return the month as a three character string and the year as a 4 characters string.  This required some basic string manipulation. Those two parameters were added to predetermined destination and passed to a function I had written for another project that checks if directory exits, and creates it if it does not.

Next was to have the program check to see if the file already existed in the correct destination directory.  If it did, don’t bother copying it again. This will make the incremental runs faster and save on unneeded file transfers.

Now I have a functional script that I can set up to automatically run once a week.  Once the files are archived off OneDrive, I can removed them there and on the iPhone is order to free up space.

Originally posted to Urbin Technology.  I put the source code for the time stamp functions there.

Tags: , ,

Friday B-Movie Pick: The Man From U.N.C.L.E.

December 19, 2015 – 19:57 | by admin

The Man from U.N.C.L.E.
Guy Richie shows his love for the 60’s TV series with this Cold War era movie. It’s the early 1960’s and the Cold War is running hot. The movie starts with CIA agent Napoleon Solo up against KBG agent Illya Kuryakin. Kuryakin doesn’t stop Solo from getting the daughter of a German scientist out of East Berlin, but he comes a damn closer than Solo is used to. So when they are told they have to team a few days later, there is hostility and mistrust. This is an origin story, about how the U.N.C.L.E team was formed and the enemy agents learned to work together. I enjoyed, but then as a child of the 60’s I remember seeing this show when I was very young. I saw a lot more of The Avengers and The Wild, Wild West, which are of a similar theme. Check it out, it’s a good spy story with a touch of humor.

Friday B-Movie Pick Archive

Tags: ,

Monday Book Pick: The Martian

December 14, 2015 – 11:43 | by admin

The Martian by Andy Weir

A fun SciFi adventure read. By adventure, I mean someone else in a huge amount of trouble, very far away from me. Quick summary, astronaut Mark Watney gets left on Mars when his team has to leave Mars in a large hurry because a really big sandstorm is about to tip over their ascent vehicle. He’s injured on the way to the ascent vehicle, knocked out with his bio monitor destroyed. So it looks like he’s dead to the rest of the team. Watney’s challenge is to survive long enough to be noticed, and then rescued. This reminded me of a Heinlein juvenile, which is a good thing. A fun and engaging read.

Monday Book Pick Archive

 

Tags: , , , , , ,

Monday Book Pick: The Desert and the Blade

November 30, 2015 – 10:35 | by admin

The Desert and the Blade by SM Stirling
The latest in his Change series. This trilogy is the coming of age story of the Crown Princess of Montveil and her companions, which includes the young Empress of Japan. The forces of evil were defeated in North America by the late High King, but won in what used to be North Korea. Evil doesn’t want Reiko to obtain her own magic sword (Orlaith already has her father’s magic sword), which is the conflict of the novel. Of course there are battles, including one bloody huge one against hordes of eaters under the sway of an evil sorcerer. A good read, in which characters introduced in the last novel are grown, and new allies are introduced. It also sets the stage for the next giant novel in the series.

Monday Book Pick Archive

Tags: , , , , ,

Friday B-Movie Pick: Jupiter Ascending

November 13, 2015 – 23:21 | by admin

Jupiter Ascending

It’s Friday the 13th, but I’m not going with the horror genre. First I’m not a big fan, and I just listed some classics in the Halloween movie list. Going with some finest kind Space Opera instead. Jupiter Ascending from the Wachowski clan, and it has what you expect. Reality isn’t what is seems, excellent special effects, and lots and lots of action. My quick take on the film, a Dune/Soylent Green cross over. I can see why it didn’t do well in the theaters. Too complex, competing members of the same Royal household, overseen by a large and uncaring bureaucracy. It would be helpful to have a score card in order to keep track of who was working for which faction, with the changes of loyalties listed. I kept track of it all, but then I’ve read Dune about a half dozen times. Plot aside, it was also a visually stunning movie, with dog fighting space fighters flying amid Chicago’s sky scrapers, massive space vessels, and lots of aliens and human hybrids. There were giant flying lizard men, elephant and mouse human cross overs, and some clockwork androids. There was even a goth Asian chick riding a hover bike. One of the main characters was a human/canine mix that literally lost his wings. If you are a huge SciFi nerd like I am, you’ll like this movie.

Friday B-Movie pick archive

Tags: , , , ,

Friday B-Movie Pick: John Wick

November 6, 2015 – 14:48 | by admin

John Wick

A cautionary tale set in the action genre. The teachable moment here is if you steal a man’s car, kill his dog, and don’t kill him, make sure he isn’t the retired top hit man for your father’s Russian crime family. Keanu Reeves plays the protagonist, John Wick. Lots of serious gun fu is this movie with a surprisingly good cast. It includes Willem Dafoe and Adrianne Palicki as other professional assassins. Wick seeks revenge and gets bloody satisfaction. Worth the popcorn and rental. Joe Bob would say to check it out.

Friday B-Movie Archive

Tags: , ,

Star Trek returns to the small screen

November 3, 2015 – 10:13 | by admin

Yet another Star Trek series is coming in 2017 on CBS All Access.  Those last two words are the interesting part of that sentence.  The premier will be on broadcast TV, the rest of the series will be on their streaming video service.  My guess is that they figure that SciFi nerds are more likely to be cable cutters anyway.

The article really doesn’t say much about the show itself.  That’s pretty much limited to “… introduce new characters seeking imaginative new worlds and new civilizations, while exploring the dramatic contemporary themes that have been a signature of the franchise since its inception in 1966.”

This will bring the number of Star Trek TV series to an even half dozen.

  1. Star Trek
  2. ST: The Next Generation
  3. ST: DS9
  4. ST: Voyager
  5. ST: Enterprise
  6. ST: To Be Announce

The original series was  the best of the shows.  TNG was good when it wasn’t being preachy.  DS9 did it’s best work when it did what Babylon 5 did previous season.  I called ST:V ST:Lost in Space, which it should have been.  I liked Enterprise.  Especially in the third season, when they told some excellent multi-show story arcs.

If I had to guess, I’d say this new series will have more influence from the last two movies (third in the works).

Tags: , , ,

Friday B-Movie Pick: The Halloween Set

October 30, 2015 – 16:58 | by admin

Tomorrow is Halloween, so let’s keep with tradition here.

Young Frankenstein
The Mummy
An American Werewolf in London
Innocent Blood

Let’s not forget Near Dark and Dog Soldiers, picks from October 2011, for a double header of vampires and werewolves.

Friday B-Movie Pick Archive

Tags: , , , ,