Application Loader missing from Xcode 11

Two weeks ago, I happily upgraded my Macbook Pro to macOS 10.15 (Catalina), which worked out well. As expected, it feels like a solid, stable operating system, and the update was painless.

Some of Apple’s tooling was also upgraded, including Xcode 11.1. Today I needed to update one of our iOS applications, and as usual, I fired up Xcode > Open Developer Tool > Application Loader. Where is Application Loader? Am I tired? Nope… it’s gone.

From xCode 11 Release Notes:

Xcode supports uploading apps from the Organizer window or from the command line with xcodebuild or xcrun altool. Application Loader is no longer included with Xcode. (29008875)

Well, to hopefully save someone else some painful internet gold mining, you now have two options:

1. If you want to use a GUI you can use the Apple Transporter application, which does the same thing only prettier.

2. If you want to use the command line, Cœur posted this on StackOverflow:

xcrun altool --validate-app --file "$IPA_PATH" --username "$APP_STORE_USERNAME" --password @keychain:"Application Loader: $APP_STORE_USERNAME"

xcrun altool --upload-app --file "$IPA_PATH" --username "$APP_STORE_USERNAME" --password @keychain:"Application Loader: $APP_STORE_USERNAME"

Happy app uploading.

New .dev gTLD

In 2017 web developers worldwide were caught by surprise when Google announced that Chrome 63+ would force HTTPS (via a preloaded HSTS header) on all .dev domains. This move was frustrating to many developers because .dev names were routinely used during the local development process, and now, unless you want to install an SSL certificate, that practice would no longer work. For example, if I was creating a new website for https://mattsimpson.ca, I previously would have used an unregistered, locally routed, mattsimpson.dev name on my computer during development, but now I would have to use something else. But what?

Well, it turns out that Mike West at Google kindly suggested a better standard, an official standard, where *.localhost is actually routed to localhost, and aptly named “Let ‘localhost’ be localhost.” This brilliantly simple standard would also negate the need for developers to, in many cases, manually modify their local /etc/hosts file in order to use a new local virtual host.

Besides the fact that this take-over-on-squatted-territory was an inconvenience to so many developers, I genuinely applaud Google’s efforts to enforce HTTPS where it can, and I appreciate the leadership demonstrated by providing a better technical solution for web developers.

All this to say, the .dev gold-rush is on now. Get yours. I’ve picked up https://mattsimpson.dev and also a few other nice ones, including a brilliant one for my daughter Myer (https://myer.dev), who will have the coolest domain if she ever chooses to become a developer in the future.

Trouble with Data Roaming on DTEK60?

If you happen to be a roaming Telus customer that has a BlackBerry DTEK60 (or potentially other models), and you’re getting a bit frustrated because your mobile data is not working with an error something like this:

Unable to Establish a Wireless Data Connection.
Touch to Open APN Settings
Cause: UNKNOWN

The solution (in my case) was to create and use a new APN other than the default. To do this:

1. Go into Settings
2. Touch, More
3. Touch, Cellular networks
4. Touch, Access Point Names
5. You will likely see two existing APN’s in this list. Create a new APN for isp.telus.com. Yes, even if you already have one.

To creating a new APN click the + sign at the top, and the only two required field values you need are:

Name: It'll Work Meow (or whatever you want).
APN: isp.telus.com

Once that new APN is created, select it. You should be good to go.

Vote with my feet, Tesla Model 3

Tesla LogoPre-orders of the Tesla Model 3 opened today at 10:30PM EDT, one full hour before the car was even unveiled by Elon Musk. The Tesla website was under heavy load before starting to automatically redirect all traffic to the launch event site, but I got an order placed by about 10:45PM!

It may seem a little odd to pre-order a car without having actually seen it, but I wanted to make a few points about why I would do this.

First and foremost, Tesla without a doubt understands technology, software, and user experience better than any other car manufacturer on the planet, and a sight-unseen pre-order is my ever-so-small way of demonstrating my appreciation of their commitment to design and engineering.

Secondly, beyond the marketability of creating a car that is better for the environment I believe Elon Musk and Tesla genuinely want to change the world with this. In other words, I don’t sense that this is only for the money, there is heart in this. It has also been an excellent strategy to create high-end luxury electric vehicles (Roadster, Model S, and Model X) that are bought-and-paid-for by the top income earners, and then use that revenue stream to build something else amazing that can be mass produced a lower cost.

Thirdly, I gained a huge amount of respect for Tesla when they open sourced their entire electric car patent library, which also demonstrated to me that they’ve got heart in this.

Lastly, it was a pretty safe bet that the Model 3 would be amazing, and I am now happy to report that I certainly wasn’t disappointed. It’s absolutely beautiful.

Tesla Model 3

Red Tesla Model 3

Tesla Model 3 Interior

Tesla Model 3 Interior

Tesla Model 3 x 3

Tesla Model 3 x 3

In addition to being beautiful, Elon Musk presented limited, but impressive specs for a $45,000CAD vehicle:

  • It has a 5-star safety rating in every category.
  • It’s FAST, even the base model will do 0-100Kmph in less than 6 seconds (finally something to complete with my Mini Cooper S JCW).
  • It will do a minimum of 350 kilometres on a single charge, but I expect it will be even higher by 2018.
  • It comes standard with the auto pilot hardware.
  • It seats 5 adults comfortably.
  • The roof is 1 continuous pain of glass.
  • It has front and rear trunks, and more cargo capacity than any gasoline car.
  • It comes standard with super charging equipment (fast charging).

Other interesting fun facts Elon discussed include:

  • They will have 7,200 super charging stations, and 15,000 destination chargers world-wide in 2017.
  • There will be 441 Tesla locations by end of 2017.
  • Their vehicle factory can make 500,000 cars per year.
  • The Gigafactory is fully operational, and is the worlds largest producer of lithium ion cell batteries. This building also has the largest footprint of any kind in the world.
  • Deliveries for the Model 3 are expected to begin at the end of 2017.
  • There were 115,000 other people like me who pre-ordered the Model 3 in the last 24 hours before it was revealed.

Good for Tesla, better for the planet, and fun for my family. I’m looking forward to getting my Model 3 in 2018.

Christmas Projects 2014: Raspberry Pi PBX

Preamble

I was lucky enough to take two full weeks of holidays over Christmas and New Years this year. It was magnificent and completely rejuvenating, despite the fact that everyone in my house was sick with one or more ailments throughout. In fact being sick and stuck at home may have in fact been just the excuse I needed to indulge in a few geeky back-burner projects.

Project 2: Raspberry Pi PBX

I have been running Elastix for years. Elastix is a top-notch open source project that glues together many other open source telephony projects (i.e. Asterisk, FreePBX, HylaFAX, and many more) into a single distribution built on top of CentOS. This setup has worked flawlessly for years, but I had an idea I wanted to try out… build a basic PBX phone server on a $35 Raspberry Pi computer.

My project: use this amazing little Raspberry Pi to run my home phone system.

Raspberry Pi

Well as it turns out, this project was a resounding: SUCCESS

I had most of the equipment around the house already, here is my setup:

Raspberry Pi – 1st Generation.
Lexar Professional 16GB Class 10 SD Card – For Raspberry Pi storage.
RasPBX – A Raspbian based Linux distro with Asterisk, FreePBX, HylaFax, etc.
Aastra 480i CT – A decent IP phone with a cordless handset.
Polycom SoundPoint IP 335 (x2) – Really great sounding IP phones.
Cisco SPA122 ATA – Connected to a fax machine.
NetGear ProSafe PoE Switch – 24 port Power over Ethernet to power the phones.

Also useful may be the layout of the network:

phone-network-diagram
So the Raspberry Pi, the three IP phones, and the Analogue Telephone Adapter are connected through the NetGear switch. Additionally the three IP phones are powered by the switch (PoE), which is extremely nice because you don’t need a big ugly power adapter plugged into each of your telephones.

To configure Asterisk, RasPBX comes with a very slick web application called FreePBX that allows you to setup and maintain your trunks (linkages to your VoIP provider), telephone extensions, inbound call routes, outbound call routes, and much more. You can get really fancy with this stuff, and it’s pretty fun to think of potential uses. In terms of VoIP providers I have been using Unlimitel (owned by Primus Canada Inc.) for 7+ years now, and have nothing but great things to say about their service. They’re not fancy, but they certainly know what they’re doing.

When I started this project I went into it with the expectation I could make it “work”, but that it probably would not be something I could rely on as a phone server. Needless to say that after 3+ weeks of this being fully operational without any issues, this setup has exceeded all expectations and cost less than $50.

Also interested in Project 1: PowerMac G5 Linux Desktop? Read on…

Christmas Projects 2014: PowerMac G5 Linux Desktop

Preamble

I was lucky enough to take two full weeks of holidays over Christmas and New Years this year. It was magnificent and completely rejuvenating, despite the fact that everyone in my house was sick with one or more ailments throughout. In fact being sick and stuck at home may have in fact been just the excuse I needed to indulge in a few geeky back-burner projects.

Project 1: PowerMac G5 Linux Desktop

Apple PowerMac G5When I started working at Queen’s University 11 years ago I was graced with a new Apple PowerMac G5 desktop to work with. While it is long passed its’ prime in the Apple world, this machine with a dual 1.8Ghz G5 processor and 6GB’s of RAM will run Linux without breaking a sweat. It’s still decent hardware.

My project: turn this beautifully designed 11 year old relic into a completely usable Linux desktop computer for light usage.

As you can probably guess, projects like this can go South. 16 hours, several *buntu installations, and a Debian 7.7 installation later, project status: FAIL

This particular PowerMac G5 has an NVidia GeForce FX 5200 graphics card, which absolutely will not work reliably with PowerPC architecture. The reason I think I sunk so much time into trying different things is that it doesn’t fail outright, it just fails in different ways between different versions of different Linux distributions (i.e. screen flickers, text disappearing, white boxes covering certain dialogs, etc.).

All is not lost for 2 reasons:
1. I am apparently stubborn and have ordered an old ATI Radeon 9600 XT for this machine, which appears to have a functioning driver available. I will update later to confirm.

Update: No, the ATI Radeon 9600 XT does not work. Waste of money. Boo. I’m open to suggestions if someone reads this. Hum… Should I install Mac OS X 10.5, or use the thing as a coffee table? That’s pretty much where I’m at.

2. I have a new love and respect for Debian. What a great operating system.

Next – Coming Soon – Project 2: Raspberry Pi PBX

Displaying Dates Using User Selected Timezones in Laravel 4

Let me start by saying, you can safely stop worrying about user selected timezones if you are using Laravel 4+. I just spent a few hours trying to determine what was generally the most accepted method to store and display dates using a users own timezone. As it turns out, it is way too easy. So much so that I was finding it difficult to locate up to date Laravel 4 discussions on the topic.

So in case you are as thick as I am, here it is, all spelled out for you.

Important First Step: Set the timezone in app/config/app.php to your preferred timezone (or leave it at UTC if you want) keeping in mind that you will never change this, and you will never do something terrible like Config::set(‘app.timezone’, Auth::user()->timezone); anywhere in your application.

Using the following users table as an example, assume that we want to show foobazed_at to the user using their selected timezone:

CREATE TABLE `users` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(255) NOT NULL,
  `locale` varchar(255) NOT NULL DEFAULT 'en',
  `timezone` varchar(255) NOT NULL DEFAULT 'America/Toronto',
  `foobazed_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
) ENGINE=InnoDB;

Laravel by default converts created_at, updated_at, and deleted_at columns to instances of Carbon, which, not knowing what Carbon was at the time didn’t mean a whole lot to me. Well, let me tell you… Carbon is awesome.

Instead of doing the following to display the created_at date (which will show the date in the default application timezone):

echo User::find(1)->created_at;

You can simply do this to get created_at in the users own preferred timezone:

echo User::find(1)->created_at->timezone(Auth::user()->timezone);

This is all well and good for the default columns, but what about our foobazed_at date? Easy. In your model (in this case the User model at app/models/User.php) add the following method:

public function getDates()
{
    return array('foobazed_at', static::CREATED_AT, static::UPDATED_AT, static::DELETED_AT);
}

That’s it! Any time you want to display foobazed_at you can simply do this:

echo User::find(1)->foobazed_at->timezone(Auth::user()->timezone);

I hope this is useful to someone else.

Getting A Trip Into BlackBerry Travel from TripCase

bb10travel BlackBerry Travel is one of my favourite BlackBerry applications of all time. Even when I had my BlackBerry Bold 9900 (which I had a rather strong disliking for), BlackBerry Travel kept me smiling. Needless to say I was delighted when they brought it to BlackBerry 10. I get lost without this application when I travel, literally.

For iOS and Android users that don’t know the awesomeness of BlackBerry Travel, they have TripCase. TripCase seems just fine, I’m sure they have an equally enthusiastic fan base. Unfortunately there isn’t a BlackBerry 10 version, which is fine because I use BlackBerry Travel.

Okay… so the problem is that I recently received an American Airlines flight itinerary directly into TripCase, and there wasn’t an obvious way for me to e-mail myself the itinerary. This means the trip wouldn’t get added to BlackBerry Travel, thus I would end up lost.

To solve this:

  1. Log into the TripCase web interface, and select your trip.
  2. Click the big “Share Itinerary” button at the top.
  3. Add one of your own alternative e-mail addresses (in my case I used GMail’s awesome +whatever trick), and be sure to check off the “Share Itinerary” checkbox.
    share-itinerary
  4. Once you receive the shared TripCase itinerary e-mail, forward it to trips@blackberry.com from your real BlackBerry Travel e-mail address.

Within a few minutes if all goes well, your TripCase itinerary will now be in BlackBerry Travel. Now you won’t get lost! Happy travels.

My Top 5 Most Impactful Tweeters

My Twitter Top 5Twitter has certainly evolved into my most loved social media platform. I love it because it’s ubiquitous, relevant, and it doesn’t have to be time consuming. I can easily sample all 5 courses of the content marketing meal (including binging, my personal favourite) regardless of whether I have 2 minutes to spare before a meeting, or an hour to enjoy before heading to the office.

This flexibility is great, but what makes it the most valuable to me is the content tweeted and retweeted by the people I follow. So today I thought I would share my top 5 most impactful tweeters. So without further ado, and in alphabetical order:

Meet Sidneyeve Matrix @sidneyeve

Associate Professor, Media @ Queen’s University. Tracking social/mobile eMarketing & edTech trends

Sidneyeve has social media figured out, and routinely tweets engaging articles on a wide range of topics including two of my passions, technology and education.

Meet Tim O’Reilly @timoreilly

Founder and CEO, O’Reilly Media. Watching the alpha geeks, sharing their stories, helping the future unfold.

Tim is probably the most well connected person I follow. He posts polarizing opinions, retweets great articles, and does so in a way that is helpful and not overwhelming.

Meet Wes Robertson @roberwes

A #writer, #photographer, and #traveler with a #tech #management job in #MedEd @uoftmedicine.

A colleague in the field of technology in medical education, Wes uses Twitter to promote positive, inspiring, and constructive stories.

Meet Joel Spolsky @spolsky

Co-founder of Fog Creek Software and Stack Overflow

I can compare Joel to Obi-Wan Kenobi (in a wise not old sense). Joel has been in the technology and software industry a long time, and his pieces are regularly eye-opening.

Meet Julie Zhuo @joulee

Product design director @ Facebook. Lover of food, games, and words.

I am a relatively new Julie follower, but her piece on A Manager’s Manifesto turned me into an immediate fan.

Awe Snap, A Bonus Track

Meet Lifehacker @lifehacker

Don’t live to geek; geek to live.

I have to mention Lifehacker because I get so much value out of the topics these guys post, everything from how to save space in your cupboard drawers, to how to hack your own brain. A+ folks.

BlackBerry Z10 Review – A Week In

A Bit Of Background

I have never been a fan of the BlackBerry smartphone. In fact back in 2009 I used to laugh at BlackBerry OS while proudly sporting my slick new Android Dev Phone 1; however, when it came time to replace that Dev 1 in 2011 my laughter had morphed into concern. RIM appeared to be caught in quicksand, slowly sinking into a pit of irrelevancy, and being a patriotic Canadian I was honestly sad to see this happening to another important Canadian tech giant. So I did the only thing I could do, I bought one, the Bold 9900 the day it was released. It had their shiny new BlackBerry 7 OS on it, which had to be better than the clunkers I’d played with in the past right? Erm, not much. While the hardware itself was a thing of beauty, that clunky old OS was still underwhelming especially coming from Android.

I certainly saw a shining glimmer of hope for RIM though. Back in 2010 RIM had bought an impressive tech company from Ottawa called QNX, who created a rock solid OS for embedded systems. If RIM was going to reinvent their OS then this acquisition would certainly give them the foundation they would need to do it. Oddly enough this is almost exactly what Apple did 10 years earlier with Mac OS 10.0. They expired their rotten OS 9, and started over by using a rock solid foundation (FreeBSD) and put a slick and very functional UI on top of it. Apple is now the darling of the tech sector, so I am hoping that RIM can follow suit with QNX at its core.

The Future Is [Finally] Ready

Blackberry-Z10There have certainly been some bumps along the way (ahem PlayBook OS 1.0, and two crushing BlackBerry 10 delays to name a few), but last week BlackBerry showed the world that they certainly can deliver the goods. I bought two Z10’s on February 5th and here is my opinion.

Starting with the hardware specs, solid grades for sure. It is simply beautiful to look at, and a perfect weight to hold. The 4.2″ 1280 x 768 resolution screen @ 356 PPI is bright, deep, and crisp. If Apple uses the word “retina” to describe the iPhone’s 326 PPI screen, what should BlackBerry use to describe the Z10’s 356 PPI screen… “vitreous humor”? The dual core 1.5Ghz processor and 2GB of RAM make the Z10 seriously responsive to the touch, super fast to load applications, and perfect to run multiple apps at a time.

Another hardware “feature” I really like is that I can take the back cover off and replace the battery, even have a second battery, and even add my own external microSD storage to extend the 16GB of internal storage provided (yes, that is a well deserved dig at the iPhone).

I have read other Z10 reviews that indicate a slight “styling problem”, I simply disagree. It’s properly done. Everything looks intentional, and well positioned. I am a graphic designer, I know these things.

On to the new BlackBerry 10 OS, the piece I have really been waiting for with cool beans QNX under the hood. BlackBerry 10 OS is simply top notch. It feels solid, stable, and responsive just like it should be. Almost everything has impressed me… from waking the phone up (and pulling down the shades at night), to the well thought out gestures, to BlackBerry Hub, and their default application catalog that I somehow immediately depended on (i.e. Remember app with Evernote integration). It also has some really well done social integration (Twitter, Facebook, and LinkedIn), of course e-mail, and some impressive voice controls.

I remember how confused I used to get when BlackBerry users would go on about how awesome BBM is… it’s text messaging right? Well it is awesome! So much more than text messaging. You can communicate with any other BlackBerry user (or groups of users) for “free” via text, voice, or even video chat now.

Finally, BlackBerry World has thousands of apps to play with (lots of really good and really bad ones) so you won’t be bored, I am not at all put off by the selection of apps. Sure it will be nice when Whatsapp and Skype are available, but the trade off is that there are some good games like Run In Crowd and Angry Birds Star Wars that are available for free.

One thing I do need to rant about is the lack of BlackBerry Travel for BlackBerry 10. Where is it? I’m freaking out. I am travelling in the next month or so, and I don’t think I remember how to do that without BlackBerry Travel. I sadly depend on it to tell me where I’m going, how I’m getting there, and where I’m staying. I have read that it’s coming soon, so I’ll just hold tight.

Another issue worth mentioning in this review is battery life. Real world I get 2 days (from 6AM day one, until about 10PM day two) of battery life under light usage, and 1 day (from 6AM to 10PM) under moderate usage. While this certainly compares to other “superphones” out there, this is still inadequate and needs to be generally addressed at the industry level. Put some Rossi LENR in these things or something.

Spell It Out For Me – Conclusion

I think it’s pretty obvious, but if not… go buy one. You won’t be disappointed. BlackBerry has done an amazing job on this device (my wife even agrees), and I feel like they deserve a nod for finally kicking this thing out the door ready for the world.

Content Disclaimer: I have absolutely no vested interest in BlackBerry (other than maybe as a small part of some mutual funds somewhere), and was not paid or contracted to write this piece.