Mac OS X Mac OS X Server Mac Security

A Comprehensive List of OS X 10.x Error Codes

I just put a new page up based on a  parsing thing I was working on the other night. Basically, it lists the error codes in OS X 10.x by type. Enjoy: http://krypted.com/guides/comprehensive-list-of-mac-os-x-error-codes/

Mac OS X Ubuntu Unix WordPress

Resolve InnoDB Errors In MySQL

Database won’t start? InnoDB errors are a pain. Where was krypted for a month? Did everything finally get to me and I gave up blogging? No, the site ended up having some problems with corruption in some rows of the InnoDB tables. But, I was able to get the site back up by putting the database into recovery mode. How did I do this? It’s pretty straight forward. Open my.cnf and paste these lines in there:

innodb_force_recovery=3
innodb_purge_threads=0

Once the corruption is resolved, bring up empty databases and import your mysqldump into the new databases and link your site back up. But, the InnoDB force recovery puts the database into recovery mode, which is read only. So I wasn’t actually able to use the site, just look at it. At least the content was available, right? When MySQL isn’t writeable, you can’t log in as an admin, etc. The rest is one of the bigger pains I’ve encountered that didn’t result in an all nighter at a customer. I’ll write that up when I have time some day. In the meantime, next time someone changes my root password and breaks my backup scripts so I can’t just bring in a mysqldump, I’m breaking their arms. You’ve been warned.

Apple Watch

Manage Apps On The Apple Watch

The Apple Watch is just another wearable with a limited feature set. In much the same way that the iPhone is just another phone. But they’re not. They have apps. And the apps are what make these devices so powerful. Installing apps on an Apple Watch is pretty straight forward. But before we do, it’s worth mentioning that there are two types. the first is a glance. This is just another view for an app that is on your iPhone that the Apple Watch talks to. The second is an actual app. These have more functionality and more options. There are also built-in apps that can be shown or hidden.

Apps are managed from the phone. To install either type of app, simply open the Apple Watch app on your phone. From there, you will see any apps that have either an app or a glance available on a device.

IMG_3508

Tap on an entry and you’ll see whatever is available for that app. New apps aren’t displayed on your Apple Watch. Use the slider to control whether it is displayed or not.

IMG_3509

Some apps have more options. If so, tap on the app and enable those options if needed. When you enable these apps, you’ll see the icon start loading on the watch, in much the same way that an icon starts to load on a phone when you purchase the app from the App Store.

IMG_3510

Also, some apps, when you download an update to the app, will even prompt you to install a glance for the app on your phone.

IMG_3511

 

The apps show up on right side of the default apps on the watch.

IMG_3647

Here’s the Nike app. This app only works properly when you open the app on the phone. It sits at a loading screen and only opens when the app on the phone opens. When it shows up, you can then do whatever the app is built to do. In this case, start and stop runs.

IMG_3648

That’s it. Straight forward. Just be patient. Takes awhile for Apple Watches to communicate with phones and to move data back and forth between them.

Product Management Programming

When you accidentally paste a block of code in the wrong place…

When you accidentally paste a code block in the wrong place…

Apple Watch

Factory Reset Your Apple Watch

You loved your Apple Watch. It was awesome. But then something happened. Maybe it got glitchy. Maybe it got weird. Maybe you want to sell it and so just want to get it back to factory defaults first. Well, either way it’s easy. To reset your watch, open the Settings app.

IMG_3643

Open the General app.

IMG_3644

Tap Reset at the bottom of the list.

IMG_3645

When prompted, tap Erase All Content and Settings on the Apple Watch.

IMG_3538

Once done, unless you’re getting rid of the watch, you’ll want to pair it again. To do so, follow the instructions in this article: http://krypted.com/apple-watch/set-up-your-new-apple-watch. Or, you can restore your device by selecting a device to restore the backup from.

IMG_3487

Apple Watch

Apple Watch Vs. Pebble DeathMatch (Comparison)

When I started to write this, I had this idea that I’d write an article that looked at the features and the usability of the Pebble and those of the Apple Watch. Both have the ability to load custom apps, both have app stores, both do many of the same other tasks, etc.

watch-dmPebble_Technology_Pebble_669108_i0

The problem with that premise for this article is that they simply aren’t even remotely comparable. Let’s look at why:

  • Apps: The Apple Watch can support apps and glances from apps. You can load as many as the thing can take, you can get different types of apps and there are already hundreds (if not thousands – I don’t have the patience to count) of apps that have support for the Apple Watch. The Pebble on the other hand is limited to 8 concurrent apps and I have never actually found more than 5 that I wanted to use that didn’t involve a watch face.
  • Watch faces: I don’t change watch faces really. Most of the apps on a Pebble are all about custom watch faces. Pick your favorite school, your favorite Disney character, etc. The watch faces available for the Apple Watch are great and all, but the default face, with instant access to the calendar, your exercise stats, the weather, and of course the time, are is really what the device is about and the best usability option, something Apple has always excelled at. It would be great if the other time zone option on the Apple Watch had some really cool stuff you could swap it out with. If you force tap on the screen, you can certainly select other things, but all the cool stuff is placed in other areas of the default watch face.
  • The screen: The screen on the Apple Watch is just a beautiful screen, with full color, lots of pixels, etc. The screen on the Pebble more closely resembles options from an Atari 2600. So, think Wii vs 2600 (aka e-paper)…
  • The app that manages the wearable: The Apple Watch app has in app controls for what’s available on phones, can configure which apps/glances are shown, unpair/re-pair, configure notifications, manage Do Not Disturb, put the device into Do Not Disturb mode, configure passcodes, manage sounds and vibrations, configure brightness and size. It’s pretty robust. The app for the Pebble does much less, but is on par given the features available on the device in general.
  • Light: The type of light emitted by the Pebble actually makes it a little easier to see in sunlight to me. But if you have sunglasses on then forget about it. Which I usually do when there’s a lot of sunlight. But this is a showstopper for some. Like those who (legitimately) still look for raised keyboards on phones…
  • Battery life: The Pebble kicks the crap out the Apple Watch when it comes to battery life. I’ve not charged my Pebble once in a week and it was happily camping straight into the next week. My Apple Watch must be charged daily.
  • Older iPhones: The Pebble can work on any iOS 6 compatible device (and up). The Apple Watch needs an iOS 8 device. So if you have an older phone, you’ll likely want a Pebble. Or take this as the opportunity to stop listening to 90s era Brittany Spears and upgrade your phone when you buy a watch.
  • App security: There are apps that can muck up a Pebble. This ranges from screen distortion to apps crashing. I tend to think that if an app can cause a device to crash then it could be intentionally designed to do more worser (yes, that was on purpose) things to the device as well. I could be wrong and haven’t spent any real time doing security research on the device, but it seems like a bad thing. Meanwhile, apps that go to an Apple Watch go through the App Store and so have at least some semblance of review.
  • Music Control: I like the Pebble more in this respect. It instantly sends commands to music on your phone. The Apple Watch always seems to be just a little bit delayed (not bad, but I can notice the delay). Having said that, the Apple Watch also has a Remote app, so you can also control music streaming out of computers onto Apple TVs.
  • Instant Messaging: The Pebble can show you messages. The Apple Watch can as well, but goes a step or 10 further and actually allows you to send voice messages, text messages, animated Emoji and even your heartbeat (which people keep creepily sending me – except that one guy who has none – but we all knew he was a lich so whatever on that).
  • Fitness: The fitness options on the Pebble are mostly from apps. The apps are a bit limited, but you can do a few pretty cool things. There are more built-in options on the Apple Watch; however, the 3rd party apps for Fitness tracking are pretty considerable and growing daily.
  • Pay for all the stuffs: Apple Pay isn’t the most widely accepted form of payment around, but it is gaining in popularity and pretty cool. Not sure if NFC is really going to be changing the world, but it might, and a wearable that isn’t specifically a fitness tracker is likely going to need it over the coming year.
  • Price: The Pebble can be $89. The Apple Watch starts at $350 and goes up to thousands (10 of ’em actually).

Overall, the Pebble is inexpensive. At 4 times the cost is the Apple Watch, which has less battery power but way more features. So it’s not Apples to Apples (no pun intended) to compare these. If you’re interested in a really inexpensive wearable and not worried about all the crazy features that come on them, check out the Pebble. But, the Apple Watch, as with many an Apple product, is very much worth the price tag. Unless you’re getting a gold one…

Apple Watch Wearable Technology

Apple Watch and Achievements

As with many a wearable that tracks movement, running and the such, the Apple Watch comes with… Badges. Wait, no, they’re called Trophies. No, crap, sorry, they’re called Achievements. You could just call them gamification incentives. Either way, they’re nice, they’re modern, and to me they’re a little bit more meaningful than some of the others that I’ve seen out there. As with the Fitbit, there aren’t a ton of Achievements to be had (for example, as compared to the Fuelband, which has dozens and dozens of them).

There is a unique twist with the Apple Watch Achievements in that many are deferred until you’ve used the device for a few days, a few workouts or a few weeks. This way, you get a little bit of a baseline before you start breaking your own records. One of the smarter innovations, albeit a minor one – shows how much thought was put into minor details on these devices. Another interesting twist is that it primarily uses active calories, rather than just looking at all calories expended. Another twist I like a lot.

So here’s how they work. Use the Activity app on the watch to track your progress.

IMG_3576

When you hit an achievement, the watch tells you.

IMG_3604

Use the Activity app on your iPhone to see the status of your achievements. Pretty simple.

IMG_3630

Here’s a list of all of them, straight out of the Activity app:

  • First Running Workout: Awarded on your first run using the Workout app on your Apple Watch.
  • Workout Record: Awarded after the 5th calorie-based sessions with the Workout app when you hit a new record.
  • 7-Workout Week: Earned after doing at least 7 fifteen minute workouts in a single week.
  • New Record: Set a new personal record for most calories burned in a day after your first 10 days using the Apple Watch.
  • New Award: Set a new personal record for most exercise in a day after your first 10 days using the Apple Watch.
  • Move Goal 200%: If you double your daily move goal, you get this cool achievement. (awarded once)
  • Move Goal 300%: If you triple your daily move goal, you get this swanky badge, er, I mean achievement. (awarded once)
  • Move Goal 400%: If you quadruple your daily move goal, you get this award and simultaneously prove that your move goal is way too low!
  • New Move Goal: Earn your Move Goal for the first time. The easiest achievement to hit. Just hit your goal once!
  • Perfect Week (Exercise): Hit your exercise goal concurrently, every day from Monday to Sunday.
  • Perfect Week (Stand): By default, your stand goal is to stand for 10 minutes an hour for 12 hours in a day.
  • Perfect Week (Move): Hit that move goal every day from Monday to Sunday.
  • Perfect Week (All Activity): Hit all three goals from Monday to Sunday. And keep in mind. These four goals are not 7 days concurrently, but those 7.
  •  Perfect Month: Hit your goal every day from the 1st through the end of a month. Not 30 concurrent, but every day in a month.
  • Longest Move Streak: Make a new streak for concurrently hitting your move goal.
  • 100 Move Goals: Pretty cool to hit your move goal 100 times!
  • 365 Move Goals: This is similar to the Every Damn Day Trophy with a FuelBand. Except that you don’t have to hit your goal concurrently, just a total of 365 times. But you should totally go for concurrency.
  • 500 Move Goals: You get this bad boy when you hit your move goal total 500 times.
  • 1000 Move Goals: We probably won’t see anyone with this achievement for a long time. But this one means that you have hit your move goal 1000 times. Not concurrently, just total.

I’ll make this into a page accessible in a nav bar, available at here. I also have lists of FitBit and Nike badges, if you’d like to see how the three platforms stack up.

Apple Watch

Set Up Your New Apple Watch

You waited. And you tapped your fingers on the desk. And you sat and waited some more, for the UPS person. You stared at your mailbox. And then, after all of that, UPS showed up. And you signed. And then you had that box in your hands. The cardboard box, when opened, gave way to a sweet white box. You opened it by pulling the little tag off, and then you pulled the watch out of the box. You tried on the two bands. And you picked the one that fit you the best.

So now what? Turn on the watch by hitting the button on the side and watch that beautiful Apple logo light up the screen. But now you need to pair the watch with your phone for it to be useable. So what to do? Well, first of all, make sure your phone is updated to the latest and greatest version of iOS. From there, open the Apple Watch app on the iPhone.

IMG_3471

The app will prompt you to start pairing a watch with the phone. You can only pair one watch with an iPhone. Tap the Start Pairing button. When prompted, line up the screen on the watch with the image and the outline.

IMG_3472

Wait for the watch to complete pairing and then tap the Set Up Apple Watch button.

IMG_3473

You’ll then be prompted for which wrist to put the watch on. I used my dominant wrist, so right.

IMG_3474

You’ll then be prompted to accept the Terms and Conditions (aka license agreement) from Apple. Tap Agree.

IMG_3475

Tap Agree again.

IMG_3476

Next, when prompted for the Apple ID to use, if you’d like to use an Apple ID with the watch, provide the password for that Apple ID using the Enter Password button, or use the Skip This Step option to skip the Apple ID.

IMG_3477

At the Location Services screen, tap OK. This is really just informational to let you know that Location Services will be used. It’s kinda’ necessary to use the watch properly.

IMG_3478

At the Siri screen, again, you’re informed that Siri will be used. Tap OK.

IMG_3479

At the Diagnostics screen, same thing. You’re informed that diagnostics will be supplied to Apple. Tap OK.

IMG_3480

At the Apple Watch Passcode screen, choose whether you’d like to use a passcode on the watch. I’m not a fan of using a passcode on the watch; however, you will have to use one if you want to use Apple Pay on the watch. Tap Create a Passcode to set one up now and then provide the passcode you’d like to use.

IMG_3481

The Apple Watch will sync apps and show glances from apps that are on the phone. Tap Install All to go ahead and install any Apple Watch apps on the device. You can always turn them off later. Or you can tap Choose Later to go ahead and complete setup and wait until later to set up the watch and finish apps setup later. I’d recommend using Install All and then turn off the ones you don’t want later.

IMG_3482

Then the watch will start syncing with your devices. At the Apple Watch Is Syncing screen, wait. Don’t do anything else or get the watch too far from the phone or you’ll have to start over from scratch.

IMG_3483

The watch looks like this while it’s syncing.

IMG_3484

Once the watch is finished syncing, use the My Watch app to sync apps, show glances, setup Apple Pay and configure which built-in apps are shown on the device.

IMG_3508

The next and most important aspect of your new Apple Watch is to use it and love it. Go for a run, sync some apps, enjoy the hell out of your new watch. It’s great. Now, get to it!

Articles and Books public speaking

Part 2 of the AFP548 Podcast Interview with Pepijn

Love interviewing this guy! Who wants to be next?

iPhone Mac OS X Mac OS X Server Mac Security Mass Deployment

Use Verbose Logging With Profile Manager

Verbose logging can help you isolate a number of problems with Profile Manager. Turn on verbose logging by writing a debugOutput key with a value of 3 into /Library/Preferences/com.apple.ProfileManager.plist using the defaults command:

defaults write /Library/Preferences/com.apple.ProfileManager debugOutput 3

Once set, restart the daemon using killall:

killall -u _devicemgr

To disable, just write the key with a blank value:

defaults delete /Library/Preferences/com.apple.ProfileManager debugOutput

Then restart the daemon again:

killall -u _devicemgr