What I see on Facebook all day now...

This is what I see every time I log into Facebook now:

Facebook Person 1: "Your candidate is terrible!"
Facebook Person 2: "No, your candidate is terrible!"
Facebook Person 1: "My terrible candidate is nowhere near as terrible as your terrible candidate!"
Facebook Person 2: "No way! Your terrible candidate is more terribler!"
Facebook Person 1: "Not a chance! Your terrible candidate is the terriblest!"
Facebook Person 2: "Whaddabunchacrap! Your terrible candidate is the most-terriblest terrible candidate EVER!"

Blah, blah, blah... Can we get back to people posting hideously-insecure "If you're my friend you'll repost this" drivel and ridiculous urban legends which are easily refutable on Snopes? Isn't that really what FB is all about?

[Deep Sigh.] Sad smile


UPDATE: I recently found the following image which sums up my sentiments exactly:

FacebookArgument1
FacebookArgument2
FacebookArgument3

Fixing Underwater Videos with FFMPEG

I ran into an interesting predicament: I couldn't get the right color adjustment settings to work in my video editor to correct some underwater videos from a scuba diving trip. After much trial and error, I came up with an alternative method: I have been able to successfully edit underwater photos to restore their color, so I used FFMPEG to export all of the frames from the source video as individual images, then I used a script to automate my photo editor to batch process all of the images, then I used FFMPEG to reassemble the finished results into a new MP4 file.

The following video of a Goliath Triggerfish in Bora Bora shows a before and after of what that looks like. Overall, I think the results are promising, albeit via a weird and somewhat time-consuming hack.

Exporting Videos as Images with FFMPEG

Here is the basic syntax for automating FFMPEG to export the individual frames:

ffmpeg.exe -i "input.mp4" -r 60 -s hd1080 "C:\path\%6d.png"

Where the following items are defined:

-i "input.mp4" specifies the source MP4 file
-r 60 specifies the frame rate for the video at 60fps
-s hd1080 specifies 1920x1080 resolution (there are others)
"C:\path\%6d.png" specifies the directory for storing the images, and specifies PNG images with file names which are numerically sequenced with a width of 6 digits (e.g. 000000.png to 999999.png)

Combining Images as a Video with FFMPEG

Here is the basic syntax for automating FFMPEG to combine the individual frames back into an MP4 file:

ffmpeg.exe -framerate 60 -i "C:\path\%6d.png" -c:v libx264 -f mp4 -pix_fmt yuv420p "output.mp4"

Where the following items are defined:

-framerate 60 specifies the frame rate for the output video at 60fps (note that specifying a different framerate than you used for exporting could be used to alter the playback speed of the final video)
-i "C:\path\%6d.png" specifies the directory where the images are stored, and specifies PNG images with file names which are numerically sequenced with a width of 6 digits (e.g. 000000.png to 999999.png)
-c:v libx264 specifies the H.264 codec
-f mp4 specifies an MP4 file
-pix_fmt yuv420p specifies the pixel format, which could also specify "rgb24" instead of "yuv420p"
"output.mp4" specifies the final MP4 file

The Midnight Ride of Rob McMurray

So, I went out for a late-night ride on my mountain bike last night... I left the house around midnight, and my route took me through some of the desert on the northeast side of Tucson.

FYI - It's a little unnerving when a whole pack of coyotes starts sounding off near you when you're by yourself with nothing but a single headlight to keep your bike on the narrow path. Just sayin'...

coyotes

Perhaps a midnight ride wasn't my best idea.

 


PS - The coyote image is from Michael Frye, who has even more amazing artwork on his website.

When A Song Gets Stuck In My Mind...

I had a song stuck in the back of my mind all evening and it was starting to bug me, so I decided to sit down and transcribe it in Guitar Pro 6.

Once I had finished transcribing the song, I remembered that it was named "Silver Tightrope," and it was from an album which was released in 1975. I seem to recall that I thought the song had been recorded by "Yes" when I had first heard it, but the song was actually written by a short-lived band from the UK named "Armageddon."

The four bars which I transcribed are probably around 99% of the song, so it was a pretty quick diversion for the evening. Now I'll get back to the business of writing some code.

Open-mouthed smile

More 511th Stories: Live Rounds on Guard Duty

During my tenure in Germany, the Army had decided that soldiers on guard duty would no longer be issued live rounds. Apparently this decision was based on a large number of suicides which seemed to occur when soldiers were left alone all night pulling a miserable duty shift in a miserable part of the world. However, what this meant for me personally was that every night that I pulled guard duty at Sickles Army Airfield, I was supposed to guard an entire flightline of very expensive Army aircraft with no way to defend either them or myself. (Remember that "Military Intelligence" is an oxymoron.)

M16A2

Actually, I didn't even have an unloaded M16 as some guards had in other areas of the world; apparently some of the locals had discovered that the guards were carrying unloaded M16s and attempted to steal one by overpowering some poor guy on guard duty. After that incident had occurred, no one carried an M16 on guard duty anymore. This meant that the only two things with me which resembled weapons were a cheap, wooden Billy Club and my three-battery Maglite.

Night_Patrol_Billy_Club maglite-3-d -cell

However, that was not the case when the 511th deployed to the border; whenever we were within the 1K zone, we always had our M16s, with three live rounds in one of the guard weapons and a sealed case of rounds hidden in reserve. Depending on the deployment site, the guy on radio watch would have the three live rounds in a magazine of his M16, and the roving perimeter guard would carry an unloaded M16. (Once again, this was to serve the dual purpose of cutting down on suicides and preventing a loaded weapon from being stolen.) The three live rounds were supposed to be enough to fire warning shots if a potentially-threatening situation ever presented itself, and the sealed box of rounds was kept in reserve for the unlikely event that full hostilities erupted.

m16-5.56-rounds

That being said, in all my time at the border, even though one of the guards had three live rounds in a magazine, there was only one occasion when someone ever felt the need to load them.

During one of our deployments near OP Alpha, SPC Terry was on radio watch and I was the roving guard when a group of three nosy civilians bypassed our "You Will Be Shot" signs and started poking around the perimeter of our site. Everything was surrounded by a triple-ring of concertina wire so they could not get close to any of the equipment, but still - we didn't want anyone nosing around our location.

I think it was SGT Bullard who tried to warn them away in German, but they weren't leaving. After a few, tense minutes of arguing back and forth with the civilians, SPC Terry had had enough and started to walk over to our position. And as he did, he pulled back on the charging handle of his M16, and when he released it we all heard the audibly familiar and oddly reassuring sound of a 5.56 round as it slid into the chamber. There was no mistaking what that sound meant; that M16 was now ready for business - all SPC Terry needed to do was to rotate his M16's safety knob to "Fire" and point the weapon.

And yet these civilians still would not leave, so CW2 Klebo ordered one of us to "Hit one of the civilians hard enough to knock him on his ___." I don't recall if it was SGT Bullard or someone else from our group who complied with the order, but someone other than me used his M16 to execute a textbook "Butt-Stroke to the Chest" maneuver and the guy went flying backwards, after which the injured imbecile unleashed a tirade of German expletives as the three civilians quickly hobbled back to their car and angrily drove away.

image1072

To this day, I still think that these clueless civilians had it coming; they had walked past several signs which made it clear that entry into the area was forbidden and the use of deadly force was authorized, plus we had someone who was fluent in German explain several times to them that they needed to leave. Despite all of our efforts, we eventually needed to make our point in a more forceful manner; and if the situation had continued to escalate, it was good to know that someone with live rounds was standing only a few feet away.

I Guess I'm Not So Special After All...

I've been going through my emails, and I'm beginning to get the feeling that all of those "Hot Deals Just For You" messages that I've been receiving for the past 20 years aren't just for me...

So sad.

Crying face

Correlation versus Causation

I just saw this t-shirt and I absolutely love it...

Correlation-versus-Causation

I cannot count the number of times that I have had to explain this simple concept to people who think that something coincidental was the driving force behind a problem which has developed with the technology that they use in their daily lives. For example, imagine the following statement: "I just closed the door and my television no longer works." Those two events obviously sound like completely unrelated events, and yet I have had to answer questions from dozens of people who honestly believe that one inapplicable event like this caused the other unconnected failure.

Oh sure, there are concepts like the Butterfly Effect to consider, but by and large those do not apply in your average, day-to-day situation. More often than not, the cause for most of the technology problems which I help people troubleshoot have nothing to do with what they believe to be the cause. (And believe me - I have heard some amazing theories from various people about the sources of their technological maladies.) My favorite story along these lines is the apocryphal My Car Does Not Like Vanilla Ice Cream story, which I honestly wish was true.

Nevertheless, as a piece of unsolicited advice - when something has gone wrong, it is often best to analyze the failure for what it is instead of trying to analyze what you believe is the origin of your problems.


POSTSCRIPT:

For more on this subject, see Post hoc ergo propter hoc.

How One Jerk Ruined MapMyFitness For Me

As you may have seen from several of my earlier posts, I'm a big fan of recreational road cycling. Over the past few years I have ridden thousands of miles, and I have blogged about several of the "Century Rides" in which I have participated. During the average month I love climbing on my bicycle and riding through the surrounding desert three or four times per week.

Earlier this year I had shoulder surgery, and cycling became an important part of my recovery program. When my doctor and physical therapist both said that it was okay for me to start riding again, I spent several painful weeks working through the shoulder pain and slowly increasing my mileage, but it was ultimately worth the effort.

That being said, I also like to track my rides on the MapMyFitness website, and over time a playful competition developed between myself and a few of the other riders on some of my favorite desert courses. I am too old to be a serious competitor, so I was always a few minutes behind the fastest riders. But I usually rode more often than a few of the other riders, and therefore I was able to earn enough points to maintain my standing.

mmfit_logo

However, earlier this year someone moved to town who - for some inexplicable reason - decided that he needed to cheat.

On the one hand, this makes no sense to me: the MapMyFitness website is supposed to be about tracking your health, so why anyone would want to cheat seems beyond my comprehension.

On the other hand, some people like to compete with each other, as I mentioned earlier about myself and a few others on the MapMyFitness website. And where there's competition, some people like to win - regardless of what it takes to do so.

All of this leads me back to the cheater. What this guy likes to do is ride several of the courses with several cycling GPS devices and upload the results from all of his devices to the MapMyFitness website. I wasn't aware of this before, but the MapMyFitness website is poorly-designed in such a way that it allows people to do this, so it doesn't bother to check if a person is uploading multiple rides for the same course at the same time. This seems like a pretty trivial thing to check, so it was amazing to me just how easy the MapMyFitness website made cheating possible.

Needless to say, once this guy started uploading his fraudulent ride data, it became impossible to compete with him. I usually rode one of my favorite courses twice each time that I rode, and this guy would ride the same course two or three times. But since he was uploading the data from three GPS devices, the MapMyFitness website was giving him credit for six or nine rides. At that point it didn't matter how many times that I rode each course - there was no way that my honesty would be able to keep up with his dishonesty.

Now you would think that the folks at MapMyFitness would care about this, so a few months ago I decided to bring this to their attention. Here's what I sent them:

I have been a member of MapMyFitness for several years now, and an MVP member for some time. To be honest, from a workout tracking perspective, MapMyFitness has a lot of stiff competition from Strava, Ride With GPS, Garmin, etc. There is one reason why I chose MapMyFitness over its competitors - and that is for the friendly competition with other members. Over the past couple years, a few members have competed with me for Guru and Sprint King on a few of the MapMyFitness courses, and the opportunity to challenge or be challenged by someone else has created fun and attainable goals for me to strive for. This has been especially beneficial for me recently because I spent the latter part of last year and the early part of this year recuperating from surgery due to a series of cycling accidents last year, and the challenge of competition got me back on my bicycle again. As I mentioned earlier, this spirit of competition is specifically the reason why I chose MapMyFitness over its competition, and why I became an MVP member.

However, over the past few weeks I have realized just how easy it is for someone else to cheat, and as a result it has become apparent that honest behavior on my part will never achieve the numbers that someone who is being deliberately deceitful can attain. While I realize that MapMyFitness cannot actively police all of the activities that its users post, I think some things are easy enough to detect. Consider the following workouts from one person in question:

GARMIN_EDGE_500 GARMIN_EDGE_800 GARMIN_FR920XT

It is readily apparent that this user is uploading the same workout from three different Garmin devices, so each time that he completes a course his numbers are multiplied by three. With that in mind, on days when he has completed some of the courses in our area more than once, his numbers are simply unattainable by anyone who doesn't resort to his methods of dishonesty. Following my surgery I can barely make it 20-25 miles before I have to quit for the day, so there is no way that I could ride the 90-100 miles that I would need to ride in order to overcome this person's deceit.

As I mentioned earlier, I realize that MapMyFitness is more or less on an 'Honor System' and it cannot actively police all of the activities which are uploaded, but it would be easy to detect this specific user's behavior by simply checking if any user is in a course more than once at the same time; when that happens, do not count one of the courses.

Unfortunately, I also realize that my complaint will likely fall on deaf ears, and as a result I will probably cease using MapMyFitness in the near future. Since the one feature for which I chose your service is apparently suffering from unchecked fraudulent behavior, I feel that am left with little alternative. Thankfully, as I mentioned earlier, there are other choices available to me.

To be honest, I did not expect a response, so I was surprised to hear back from them. However, the banal substance of their response was ultimately worse than hearing nothing:

Kyle (Help & Support)

Hi Robert,

Thank you for writing in about this.

We have a system in place for identifying users that circumvent the rules on both challenges and courses. Sometimes, these are missed and certain users are able to manipulate the system, but we actively monitor and check leaderboards and challenges for cheating. We appreciate you reporting this to us and I have passed this along to the appropriate team.

Cheating participants will not be awarded prizes.

Let me know if you have any additional questions or concerns

Thanks,
Kyle

It may sound like I'm being overly harsh to what seems like a polite response, but the truth is - the scammer rocketed to the top of the leaderboard on several courses, and MapMyFitness didn't do anything about it. The year is barely half over, and this fraudster has already amassed scores which cannot possibly be attained by anyone who refuses to stoop to his level of deception.

So I used to look forward to the friendly competition on the MapMyFitness website, but now that's something of an impossibility. No matter what any honest person does, they simply cannot compete with this schmuck. It's amazing how all it takes as one jerk to ruin something.

Politics, Plagiarism and the Press

To be honest, I could care less about the Trumps, or the Clintons for that matter. From my perspective, this is going to be a lousy election year. But that being said, the amount of attention that a single, stupid, and seemingly-insignificant speechwriter gaffe is generating in the press and social media these days is enough to make me want to hurl. (Although I will admit to finding #FamousMelianaTrumpQuotes pretty amusing; almost as much fun as #BrianWilliamsMisremembers.)

In case you've been living under a rock for the past 24 hours, the following article should catch you up on what happened at the Republican National Convention (RNC) yesterday; Melania Trump's speechwriter lifted a handful of phrases from a speech by Michelle Obama at the Democratic National Convention (DNC) eight years ago:

The Melania Trump Plagiarism Scandal
https://www.plagiarismtoday.com/2016/07/19/melania-trump-plagiarism-scandal/

The above article does a good job of pointing out just how much was copied, which amounts to around two paragraphs in which Melania Trump's speech was either substantially copied or paraphrased from Michelle Obama's speech. In my college days, if I had used the same level of copying or paraphrasing in a term paper without proper citation, the best-case scenario is that the entire paper would have been rejected, and the worst-case scenario is that I would have justifiably received an "F" in the class. However, as the above article points out, Melania Trump is not alone in the recent history of presidential campaign plagiarism.

To begin with, and what is most amusing to me, is that the same speech by Michelle Obama at the 2008 DNC leveraged a few phrases from Saul Alinsky's "Rules for Radicals" book without proper attribution, although to be honest I think those few phrases were probably added by Michelle's husband since he was a big fan of Alinsky's work. (However, if someone wanted to be as obnoxious as everyone in the press is being today, one could make the argument that Melania Trump's plagiarism is simply carrying on a tradition of campaign speech misappropriation by potential First Ladies which was first established by Michelle Obama.)

Nevertheless, if the gaffe in Michelle Obama's speech was indeed the fault of her husband's, that would not be too surprising, as Barack Obama has often quoted other authors' works in the past without proper attribution. Here are just a few examples:

Obama by the Numbers: Twice-Told Tales, and Nine in a Row
http://www.washingtonpost.com/wp-dyn/content/article/2008/02/19/AR2008021902342.html

Obama's State of the Union Was Tantamount to Plagiarism
http://www.usnews.com/opinion/blogs/alvin-felzenberg/2011/01/26/obamas-state-of-the-union-was-tantamount-to-plagiarism

The Obama Plagiarism Scandal
https://www.plagiarismtoday.com/2008/02/20/the-obama-plagiarism-scandal/

Bush speechwriter accuses Obama of plagiarism in State of the Union
https://www.yahoo.com/news/blogs/sideshow/bush-speechwriter-accuses-obama-of-plagiarism-in-state-of-the-union-143818874.html

You might be tempted to take the following video with a grain of salt based on its origin, but it does do a good job of showing the levels to which Barack Obama (or his speechwriters) will go when leveraging other people's speeches:

When Obama Plagiarized Speeches from Deval Patrick and John Edwards
http://youtu.be/H6pDCvXNVTE

And of course, I could go on about John McCain, Rand Paul, Ben Carson, and a host of others, but let us not forget Joe Biden, who seems to have made a career out of plagiarism. I love how Joe Biden not only stole material from other people - he actually stole other people's life stories and substituted them for his own. He also fabricated his academic records, and eventually his web of intentional deceit forced him to drop out of the 1988 presidential race. Of course, Biden went on to become the Vice President later, proving to future generations of politicians that outright plagiarism will not necessarily be the end of your career. Nevertheless, here are just a few articles about Biden's many transgressions:

The Write Stuff? Why Biden's plagiarism shouldn't be forgotten.
http://www.slate.com/articles/news_and_politics/history_lesson/2008/08/the_write_stuff.html

Biden Admits Errors and Criticizes Latest Report
http://www.nytimes.com/1987/09/22/us/biden-admits-errors-and-criticizes-latest-report.html

Biden Admits Plagiarism in School But Says It Was Not 'Malevolent'
http://www.nytimes.com/1987/09/18/us/biden-admits-plagiarism-in-school-but-says-it-was-not-malevolent.html

The Biden Plagiarism Scandal
https://www.plagiarismtoday.com/2008/08/26/the-biden-plagiarism-scandal/

All of this is just to say, a lot of people in politics have plagiarized other people, and the frequency with which it occurs does not make it right. However, from where I am standing it seems as though the way in which today's press has latched onto this single incident with such venom while essentially giving a multitude of other offenders a free pass is more than a little lop-sided. I guess we can see which candidate the mainstream media has chosen, as they have done in the past.

To be honest, nothing in this mini-scandal is going to do anything to sway me any more against either candidate; at the moment, the following image seems like my best option. And just to make sure that I give credit where it is due, I am pointing out - for the record - that I plagiarized it from someone else.

Giant Meteor 2016

 

 

 


POSTSCRIPT:

The following information was interesting, albeit somewhat outside the original scope of the blog, so I intentionally omitted it from my main narrative. However, I thought that it was worth adding to the end of this post. In an odd turn of events, Barack Obama has also been accused in the past of plagiarizing from Dr. Martin Luther King, Jr., who in turn was guilty of plagiarizing other people:

Boston U. Panel Finds Plagiarism by Dr. King
http://www.nytimes.com/1991/10/11/us/boston-u-panel-finds-plagiarism-by-dr-king.html

So the saga of Melania Trump quoting Michelle Obama who quoted Saul Alinsky has a rich tradition in politics. Perhaps nothing is original anymore?

Open-mouthed smile

Blast from the Past

So I'm driving through Tucson today and channel-surfing on the radio trying to find a station which actually plays music instead of back-to-back advertisements, when I stumbled across 96 Rock playing "The Spirit of Radio" by Rush, and I think to myself, "Wow, how many times has this exact scenario played out over the past thirty-some-odd-years?"

Rush-The-Spirit-Of-Radio-Single

Seriously -  hearing the same band, playing the same song, on the same radio station, and even driving down the same street in the same town. This has happened way too many times to count... but trust me, it's a good thing every time it happens.

Winking smile