neDb Issues on Glitch.com

Share this:  

It’s really not Glitch’s fault. I’m the guy who decided that I wanted to use neDb to save my data in. But, every so often when I do a query, it doesn’t return anything. Do the query again and it correctly returns the data. During that time no inserts, updates, or deletes are going on.

I’m not sure exactly how I want to deal with this… I’ve gone down the neDb rabbit hole rather far at this point!

Using the Android Emulator

Share this:  

Apparently, the Android Emulator is part of the the Android Studio application. So I downloaded it from the Android Developer web site and installed it. I’ve been meaning to do this for a long time!

I don’t want to write Android apps (at least for the moment), but for now I’m interested in bringing up different web pages in the emulator’s browser that I might be working on and see how they lay out. I want to try out progressive web apps on them too!

I just finished installing the Pixel 2 API 29 and appears in a dropdown to build basically a do-nothing app I set up from a template.

I just ran the application and it takes a good while to bring up the emulator, let alone the do-nothing app!

Closed my do-nothing app and got back to Android’s “Home” screen. And, I was able to launch the Chrome browser on it.

I opened up a page I’ve been working on. Not bad! It looks like I will be able to test this way. 🙂

How Much Water Should You Drink?

Share this:  

My dear wife Yvonne has been trying (and rightly so) to get all of us in our household to drink more water. She found a page on the Goodhousekeeping web site that shows you how to calculate the amount and printed a copy out for herself to use.

I thought that this would be a perfect little coding application and preceded to create a Pen on CodePen that you can use to easily figure out how much water that you need to drink daily. You can add the members of your family and it remembers the values on that computer/device for that particular web browser (it saves the input values locally).

Note that when you exercise, you need to drink even more water than the base calculated value. This makes sense when you think about it because your body will be sweating during this time as a way to cool your body. This means more loss of water! But it’s worth it right? We need regular exercise! Just make sure you’re drink enough fluids like water so you can rehydrate!

BTW: You probably already know this, drinking caffeinated beverages is dehydrating since caffeine is a diuretic. For every amount of caffeinated fluid you drink, you should drink an equal amount of fluid without caffeine to balance it out (I learned about this during a running clinic at the Chicago Area Runners’ Association (CARA). When exercising, it probably makes sense to avoid caffeinated beverages altogether.

See the Pen How Much Water Should You Drink? by Orville Chomer (@orvilleChomer) on CodePen.0

Here’s to a happy, healthy life of good choices!

Embedding a YouTube Video in a 3D Scene

Share this:  

I wanted to see if I could get a YouTube video to play on a plane inside of a Three.js rendering.

I have ideas for having pop-up short videos as part of interactive displays. We will see when and if I do something with this!

 

And it is possible, I found a  demo on the three.js web site, and built this Pen on CodePen which works nicely!

See the Pen YouTube Video Player in Three.js by Orville Chomer (@orvilleChomer) on CodePen.0

Cloudkit Fussiness in Xcode

Share this:  

Well, I’ve started to mess around with Cloudkit. And, before I could get out of the gate, before I could write a line of useful code, I ran into some troubles. These are probably due to my unique quirky circumstances. But then again, there are probably a small handful of developers who may have run into some of these problems and perhaps my blunders and lessons learned may be of help to you.

First of all, the Cloudkit Dashboard only “kind of” worked.

  • First problem here: I created my developer Apple Id a long long time ago when it could be anything (as long as someone else didn’t have it already).
    • Now, various Apple tools want your Apple Id to be a valid email address. Mine was not an email address! Never had been!
    • First of all, I created a new Gmail account just for my Apple Development work.
    • Then I had to figure out the process for changing my Apple Id. I dreaded that I would have to re-log into everything, and have things blowing up left and right. It turns out the process was not that scary and I did not have to re-log into everything! Phew!
    • The nasty messages about needing to have my Apple Id be an email address went away.
  • Second Problem: my iCloud log on.
    • When trying to access the private database in my project’s container, it said that I wasn’t logged into iCloud. But I was logged in! I checked!
    • It turned out that I couldn’t just be logged in with any old log in. The iCloud log in in my System Preferences had to be the same as my developer log in. What a pain! But, once I changed that, all of a sudden things started working…
      • On the Cloudkit Dashboard, I created a new record type in my private db, added a couple fields to it, and added a couple indexes to it to boot!

For now, on my Mac, I’ve set up a separate developer log on. If that’s what I need to do to get things to work that is what I will do. There is still a bunch of other things I need to set up on this new user account to make it usable for more than opening Xcode and building apps.

I’d rather have a spot in Xcode where I could log into iCloud just for the apps I’m building. Perhaps it’s there? Am I missing something? If you know something that I don’t leave a comment below.

XCode Context Sensitive Help is Broke Worse (is that good English?)

Share this:  

I’ve been living with this problem a little awhile now. This problem was introduced with the last upgrade of Xcode:    Version 10.0 (10A255).

Help comes up for sure. Always has for me. I move my mouse over something like a class name that is part of Apple’s eco-system, like (for example): SKAction… I hold down the Option key of my keyboard… the mouse icon turns into a nifty bold question mark… I left mouse-click… a popup comes up… I click the Open in Developer Documentation link at the bottom of the popup… and Behold!   A window pops up about SKAction!

But there is this tree control on the left side of the window… you know the one that I mean… and SKAction is not highlighted in it! This is annoying because by expanding the SKAction node in this tree control (for example), I can see all the methods that belong to this class. And, if I click on one of those method names, then I see the help for it. And that obviously is really handy!

This used to work. Except, when you had help up from a previous search, then whatever you had selected from a previous search would be highlighted (even though the content on the right hand side of the window would be correct).  Annoying, but no problem: I would just close the documentation window and re-do the [Option]-click, and the item I had picked would be properly highlighted in the tree! And I could explore all the related items to my heart’s content.

The past problem was slightly annoying. This problem is Really annoying!

Another annoying problem:  If you pick an option in Objective C, it brings up the help for Swift.  If the context is Swift, it should display the help for Swift, if the context is Objective C, the help for Objective C!  I know, all I need to do is click the [Objective C] link on the page… but this is supposed to be contextual help!

Hopefully devs have been complaining and this will be fixed the next release. It just slows me down. So I am blowing off a little bit of steam by writing this post. 🙂

1 2 3 13