// archives

Archive for April, 2016

Xcode capitalization problem

Xcode – Simulator vs. Device: CAPITALIZATION matters

There are, obviously and intuitively, differences between testing an iOS app on the Xcode simulator, and testing on a real device. The obvious ones run the gamut from no camera on the simulator to the way the keyboard works differently on both. The intuitive ones, in my mind, come from the fact that the Simulator is running on a different operating system (OSX) than the devices (iOS) that the app is intended for.

The difference that repeatedly bites me is: CAPITALIZATION matters.

The majority of the apps I do at JoSara MeDia are HTML5 apps in a framework called Baker. If you are interested, the rationale behind this is that most of the apps are either coming from books or eBooks (and hence are already in a format close to HTML, like ePub) or are heading in that direction (so we want to make conversion easy).

I was putting in a very nice jPlayer-based audio player (called jquery.mb.miniAudioPlayer, checkout the link, it is quite well done), and it looked great on the simulator, as you can see on the screenshots below. I tested it on several different simulator devices – all looked as expected, all performed the autoplay function, when expected.

Quebradillas Audio 2

In case you are interested, this is from a forthcoming “coffee table poetry book as an app” project called Quebradillas.

Quebradillas Audio 1

But, once I transferred the app to a device (either through cable or TestFlight) the audio player graphics did not make the transition (see screenshot below). And neither did the autoplay functionality.

Quebradillas on Device

 

Xcode capitalization problemThe culprit, of course, was two instance of capitalization. One was in the name of the included css file – in the head of the two pages, the “q” in “jquery” was lower case, and, as you can see from the Xcode screenshot, the file name itself was “jQuery.” This was acceptable in the simulator, which runs on OSX, but would not work (and, interestingly, did not pop up an error anywhere) on the devices tested (iOS). After looking at the javascript code in the jquery plugin, I could see that the “Vm” and “P” were icon placeholders…which lead me to the css file misspelling.

The autoplay issue was, again, capitalization: the parameter in one of the examples had autoplay in camelCase (i.e., autoPlay), but in the mb.miniAudioPlayer.js, the parameter was simply “autoplay.”

 

By noting this, I aim to remind my future self to use capitalization as one of the first items to check when apps look different in the simulator vs. on the device, especially when using HTML5 app frameworks.

Screen Shot 2016-04-21 at 4.53.06 PM

That time my wife and I saw Prince live at the Super Bowl

We didn’t think he’d come out. I sure wouldn’t have. The “It never rains at the Super Bowl” adage had come crashing down like so many gallons of sticky, cool moisture. We were enjoying the game, but we were freezing in the rain and the wind…freezing in southern Florida

My wife had won tickets to the Super Bowl (if you like, you can read about that trip here). Audrey was pulling for Peyton. As a lifetime Packers fan, I was pulling against the Bears. But we were mainly there for the experience.

And the halftime show, the only one I’ve seen line and one of the best I’ve ever seen, was a great part of that experience.

There was grumblings around us that Prince was going to play superstar and play his set from the tunnel. Folks were claiming to be “in the know”… and of course, they weren’t. Prince not only came out, he nailed it. And, like they say in this video, when he started singing Purple Rain, we got even more drenched. He must have used some of that Prince Purple Rain magic for special effects.

And he looked great, soaking wet in his whatever-the-heck color of suit that was (it wasn’t Packers Green or San Jose Sharks teal!). He certainly looked better than me in my rain trash bag ensemble (but not better than Audrey, who rocked hers).

57 is too young.

Welcome Sign

Brazos Bend State Park

Brazos Bend State Park is an hour drive south of us, and since we are northwest of Houston, it is a lot closer to most Houstonians. We had not been since the kids were little and the weather was perfect this early April weekend for a little hiking. It is $7 per person entrance fee and, if you rarely carry cash like me, be prepared to park and go inside to pay your fees, as the outdoor drive up kiosks do not take credit cards.

The state park is known mostly for its alligator population, and they aren’t shy about showing themselves. My gorgeous wife saw on one of the signs that there are 300 adult alligators in the park. We saw more than 20 close to the trail, and quite a few more further away.

Alligators in Brazos Bend State Park

But the park itself has some gorgeous scenery and very well maintained trails, with water available at trail junctions. We hiked around the 40 acre lake, took the “Spillway Trail” past the observation tower over to Elm Lake, then hiked around it and back. This is a very small portion of the trails available in the park (park trail map here and a picture of the map section we walked is at the end of this post). There are 50 mile and 100 mile trail runs held in the park (in April and September respectively) and the 50 mile run goes for three loops of around 17 miles each. So there is a lot more to cover than the 5 miles we did this weekend.

There are quite a few wooden decks and bridges built so that you can peer into and over the water.

Decks Over Water

There were quite a few folks fishing, though we never saw any of them catch anything. I assume it is catch and release. If you look at the picture below, you’ll see an alligator floating just past these fishermen…maybe hoping for a lazy catch.

Desk with Gator in the Background

There’s also the George Observatory in the park, which holds lots of stargazing events throughout the year.

Most of the gators we saw were stationary, and hard to tell apart from statues (still doesn’t mean you should take a selfie with them…though Darwinism didn’t intervene when a couple did so). But occasionally you’ll get one in the water who starts moving around a bit. And they always draw a crowd…so pardon the screaming kids (not mine) in my video.

Here’s a picture of the same alligator, just floating along, minding his (or her) own business.

Alligator in Water

I assume that the park is also a bird-watchers paradise. There are multiple postings in the picnic areas that denote what type of birds are seen recently in which areas of the park.

Ducks

A few of the birds even act like you are not around.

And, there is a very good chance to see multiple birds in flight. With the backdrop of the lake, it is a sight to behold.

Bird in flight

And of course, there are turtles. Even some that apparently babysit the smaller gators as a service.

Turtle with Baby Gators

While crossing the spillway trail, we did see a couple of turtles coming out from under the bridge so quickly (at least for turtle speed!) we thought that they might have been chased by…something. But fortunately, they were just passing through.

Though we saw quite a few rangers/volunteers in the park, we also saw two places where there might have been a missing ranger.

OLYMPUS DIGITAL CAMERA

Maybe that is why these guys look so happy?

Alligator Looking at Me

Gator In Green

 

Picture of the trail map, zoomed in to the section we walked. We parked near 40 acre lake, walked to the left and immediately saw alligators.

Brazos Bend State Park

 

And remember, don’t feed OR annoy the gators!

Don't Feed or Annoy

Re-reading MSandT

Re-reading Tad William's Memory, Sorrow and Thorn

click on the image for more info and to support this blog

Dusk Before the Dawn

Dusk Before the Dawn

Software By the Kilo

Software by the Kilo

Archives

%d bloggers like this: