Trying Something Different
Thinking that instead of posting to Twitter/Micro.blog, etc., I will try writing everything on my blog and then use Micro.blog to send it about intelligently. Also, I think I finally get Micro.blog.
Thinking that instead of posting to Twitter/Micro.blog, etc., I will try writing everything on my blog and then use Micro.blog to send it about intelligently. Also, I think I finally get Micro.blog.
How to implement equality with different kinds of Swift objects was pretty obvious once I read the documentation, but the errors I got at first were not entirely clear. If you want to show equality between two objects in Swift, you have to do something different depending on if they subclass NSObject
or not.
In the case of an NSObject
subclass, you would override -isEqual:
:
override func isEqual(to object: Any?) -> Bool {
guard let myObject = object as? MyClass else {
return false
}
return uniqueID == myObject.uniqueID
}
If it’s a pure Swift object, however, you would implement the Equatable
protocol and override ==
:
extension MyClass: Equatable {
static func ==(lhs: MyClass, rhs: MyClass) -> Bool {
return lhs.uniqueID == rhs.uniqueID
}
}
If you try to implement Equatable
on an NSObject
subclass, you will either get compiler errors about redundant conformance, or your implementation of ==
will never be called and you will be confused.
Don’t know what’s up today, but this definitely the worst line I’ve ever seen at an airport.
Today at SEATAC is the longest airport line I’ve ever seen.
Until now I’ve been hosting my blog myself using WebFaction, and it’s worked great. That was until a couple of months ago when I received a notification from my host that they’d detected malware in my Wordpress install and my site would remain deactivated until I fixed it. As far as I could tell I was running the latest version of Wordpress with a secure password. I have no idea what happened, although I’m reasonably sure it was my fault somehow. I decided to look for another host.
The things that I wanted were to be able to keep using MarsEdit, to have it be secure, not to have to worry if I got a lot of traffic all of a sudden, and for migration (in, and out) to be painless. The obvious choice was to export my blog to Wordpress.com and pay for one of their premium plans.
If I decide to move back to self-hosting in the future, it won’t be any harder than it was before, and I shouldn’t have to worry about security or any of that going forward. I will try to post in the future about how it’s working out and what the tradeoffs have been.
Migrating my blog over to Wordpress.com. It’s not expensive and then I don’t have to manage any of this stuff.
Ugh. I really need to figure out how I’m going to fix my Wordpress install or move to something else.
The Sunday sit at the Shambhala Center yesterday ended up being about 90 minutes (3x25 with a couple walking periods), so that was a bit intense to make it through.
Before AirPlay 2 I always had the option to send whatever audio my phone was playing wherever I wanted from Control Center, but that’s no longer true.
Is there a way to tell Siri to play to all of my speakers that aren’t my Apple TV in one command?
Celebrity deaths usually don’t bother me so much, but Anthony Bourdain is someone who I’ve read his book, seen all of his shows, went to places on his recommendation, and felt like I knew him a little (in one sided way). He taught me things.
Depression is a horrible disease.
🎶 I’ve been standing at the edge of the window, barking at the cat across the alley, never really knowing why. I wish I could be the perfect puppy, but I keep going to the window, no matter how I don’t try. 🎶
🎶 I’ve been standing at the edge of the window, barking at the cat across the alley, never really knowing why. I wish I could be the perfect puppy, but I keep going to the window, no matter how I don’t try. 🎶
Tempted to install the WatchOS beta just so I can get the yoga workout type.
Oh wow. I guess the cross-platform thing is happening.
My number one Micro.blog feature request is to add the Safari pinned icon image :-D Also, I can’t believe it’s already been over a year.
Ooh this new meditation cushion set (zafu and zabuton) is much nicer (Link had an accident on my old one when I left it on the floor). I wasn’t sure about the crescent shaped cushion, but I can already tell it’s much more comfortable.
I really want to be able to go into the Home app and say (for example) “Play ‘The Final Countdown’ when I come home.” giphy.com/gifs/thin…
It only does about 1/100th as much as the Echo can, but I like HomePod way more than I thought I would. I’d like to see it get more (any) automation abilities and some third-party support, even if it’s just a couple of partners and audio apps only (Audible and Overcast).
Are Apple Podcasts play locations supposed to sync on HomePod and it just doesn’t work or is that not a feature? If it’s not I can’t see why anyone would use it instead of AirPlay.
Still sticking with the Peloton and loving it. #peloton #fitness
Signed up for a seven week meditation course at the local Shambala center. I think getting the Buddhism out of my house and with other people will be good for me.
Wearing my favorite shirt today.
Happy Scale is such a great app for getting a picture of the way your weight trends are going instead of having to just focus on the day to day numbers. Happy Scale by Front Pocket Software LLChttps://itunes.apple.com/us/app/happy-scale/id532430574?mt=8