Archive for the ‘Apple’ Category

Copying Safari Bookmarks to Safari Technology Preview

Monday, August 17th, 2020

Safari.jpg

This morning I wanted to be able to copy my bookmarks from Safari to Safari Technology Preview and thought "This should be easy" - and Hoo Boy! I'm glad I was right. 🙂 I will confess that I was a little surprised that the Bookmarks are implemented as a plist, but I guess that's as simple a storage scheme as macOS has, and there are system calls to make sure that updates are atomic... so I guess it's as good as any.

The key is that this Bookmarks.plist is in ~/Library/Safari and can be copied to the target directory:

  $ cp ~/Library/Safari/Bookmarks.plist ~/Library/SafariTechnologyPreview/

after that, there wasn't even the need to restart Safari Technology Preview - just the next time I looked at the Bookmarks, they were updated. Nice! 🙂

Odd Repl.it Editor Bug in Safari

Tuesday, July 14th, 2020

Clojure.jpg

I've been a big fan of Repl.it as it allows me to be able to fire up a nice Clojure REPL without a lot of grief or overhead, and it's fast enough for small projects, and while it's not perfect - like you can't include a real project.clj so you can't load other packages, it's still pretty nice.

A few weeks ago, I noticed an odd little bug in the editor on Repl.it - the cursur wasn't where the actual insertion point was on the editor:

Real it Editor Bug

The more you had on a line, the more of a gap there would be on the editor. And it didn't matter if I was using the Desktop browser on my iPad, or the Mobile browser... on my iPad, it was off. And I tried a lot of things... reported it to the Bugs List for Repl.it, and while others had seen it - there were no answers.

Finally, I thought about the zoom feature.

On my iPadPro, for Repl.it, I like to zoom out a few steps to get more on the screen. I don't mind the smaller fonts - I can read them just fine, and it reduces the "dead space" on the screen quite nicely, so that I have a good editor window, and a nice REPL window.

So I went back to Repl.it, pulled up a saved REPL, and rest the zoom to "Original". Boom! The cursor and the insertion point lined up, and looked just fine. I then updated my Bug Report on Repl.it, and hoped that it was going to be a lot easier to reproduce for the developers - because I had a way to make it "Good", and then "Bad", and back to "Good". Repeatable 100% of the time!

It's been a few weeks, and nothing, so today I offered to help work on this, as I'd really like to have this fixed, and I'm sure others would too... but I may have to wait for iPadOS 14, and hope that Safari on iPadOS 14 is going to fix this behavior.

I'd be happy to help... because I'd really like it fixed before the Fall.

New Laser Printer Arrived!

Friday, March 27th, 2020

NetworkedWorld.jpg

Well... my HP Color LaserJet Pro M255dw arrived today and while I was in a meeting, my daughter was kind enough to sign for it, and then I had the task of moving out the old HP LaserJet 1200, and putting the new color printer in. I could not have been more happy.

I knew the toner cartridges that ship with a printer are on the smallish side, so I went ahead and got the "high capacity" ones as well - and I can keep them in the closet until I need them. I also picked up a new pack of paper on my weekly Target run, so I have paper and toner for a long, long, time. 🙂

Other than color, the thing I wanted in this printer was really Network connectivity. I've always had USB-connected printers, that is, after the Centronix parallel cable was phased out. And while that was a significant step-up, and PCL and Postscript are great, the idea that I had to be physically connected to the printer was something I really wanted to get rid of.

So I followed the admittedly sparse instructions and juse added paper, hooked up the Ethernet to the hub in my office, and then plugged in the power. It took a while to get ging, but then I had a nice little display to configure the printer. Nice touch - no need to really download any software... though, they recommend it - I think I'll pass.

Once I made sure it was using DHCP, the default, I was then able to go to my MacBook and just Add a Printer. It was right there in the list of available printers, and while I'm not quite sure exactly what I was expecting, that simple fact filled me with wonder and awe.

I guess I haven't lost that sense of wonder about these machines, and I'm grateful for that.

I then knew I'd be in good shape on the computer, but I also wanted to make sure AirPrint was working from my iPhone and iPad. I went back to the printer's Network Config screen, and accessed the WiFi settings, but it told me that because I was using wired Ethernet, there was no WiFi accessibility. For a second I was worried, so I pulled up my iPhone, and figured out how to print a note. It worked like a charm!

That made me even happier! Because it meant that I didn't have to leave my printer "open" on WiFi, and worry about attack vectors from drive-by attacks. I could stick with nice, reliable, wired Ethernet, get great speed and reliability, and protection from the bad guys. Sweet.

In the end, it was a breeze to set up, and looks to be working every bit as good as you'd expect an HP printer to behave. What a joy! 🙂

Upgrade to macOS 10.15.4 Fixed LG 5K Monitor Issue

Thursday, March 26th, 2020

Software Update

Yesterday morning I updated my 16" MacBook Pro laptop to macOS 10.15.4, and this morning I noticed that one of the nagging problems with my LG 5K monitor was gone! In the past, this new laptop and the LG 5K weren't really happy with one another. When I'd wake up the laptop in the morning, the attached display would not wake up, but it also wasn't unattached.

The windows were still "on" the LG 5K, but I couldn't see them, and I couldn't move them because I couldn't see them, and that meant that I have to unplug the LG 5K... let the laptop rearrange things... then plug it back in. It wasn't the worst thing in the world, but it was annoying.

Well... after the update this morning, it's now working exactly as expected. 🙂 That's a wonderful development! Now things are just working exactly as they should... very pleased.

Interesting Issues with iTunes Match

Monday, November 11th, 2019

Apple Computers

Last Thursday I realized that iTunes Match was something I had completely forgotten about - and with my newest iPhone, I was having issues with the syncing of playlists, and music... so I was talking to a friend and he reminded me of iTunes Match. I had thought that was just a part of Apple Music, and it is, but it's also a stand-alone service for $25/yr that will be to my Music what iCloud Sync is to my photos.

So I signed up, and it started syncing to iCloud... and I'd checked with my friends, and they said it'd take a while, so I let it run.

Four days later, we're at this morning, and it's still uploading - or so it says. I had my doubts, and the problem was that there wasn't a really simple way to restart the syncing, but I did find out that you could add the column iCloud Status to the table of songs, and almost all of mine were "Waiting"... that's not good... Quitting Music (no more iTunes) didn't help... so finally I rebooted my machine.

When everything was back up, and I looked at Music this time, all of a sudden things looked a lot better. Like nearly flawless. There were a few of my ripped CDs that didn't have the album artwork, but that was something I knew how to fix, and I started with the first album missing artwork.

Interestingly, when I updated the Artwork tab in the Info... settings, it didn't change in the Music app, so I tried another... same thing. Then I went back to the first and it had changed - so had the second. Ah... OK... Music is actively syncing the changes to iCloud and then representing that in the view I see. OK... I can deal with this... and I fixed the other albums.

One thing I couldn't figure out was why my iPhone didn't get all the album artwork for a single Christmas album. It tagged half of the songs with the artwork, but left the second half off. So I verified that the artwork was right on my laptop - and it was... then looked back to my iPhone - nope. Very odd.

But on the upside - making changes to a playlist on my iPhone does get updated on my laptop - so that's working... Now I just need to figure out how to get that artwork right on my iPhone...

But hey... at least it's not still saying it's syncing to the Cloud...

UPDATE: Fixed it! Here's what I had to do...

  • Remove the downloaded tracks on my laptop - this is a quick right-click on the title, and removing the downloads.
  • Select all tracks with bad album art - shift-click on all of them will do it, and they all should have the iCloud download icon next to them.
  • Add the Album Artwork in the Info panel - this is important to do while the tracks are only on iCloud.
  • Download the tracks - and all the places these tracks exist will be given the correct album artwork.

What a treat! This is just fantastic to get this working! 🙂

AirPods Pro Announced

Monday, October 28th, 2019

Apple Computers

Today Apple announced the new AirPods Pro, and they look really nice. Noise cancelling, and a Transparency feature to allow some level of noise in if you're in traffic or needing to listen to a little of what's going on around you. Nice feature, and clever - because that's something you might like to tune depending on your environment.

I've become a nut about wireless headphones, and so, of course, I ordered a set, and they should be at the house in a few days. Very nice. The stems of the AirPods Pro are shorter than the AirPods, and have a button on them. Nice. The specs indicate that they should last 4.5 hrs on a charge, and the case is good for 12 hrs. Very nice indeed.

Can't wait to try them out. Life can be fun. 🙂

UPDATE: they are small, light, snug fit, great sound, everything I was expecting from Apple. Just amazing!

Auto-Scrolling not Working on Adium on macOS 10.15

Thursday, October 10th, 2019

Adium.jpg

With the upgrade to macOS 10.15 Catalina, I noticed that Adium is not functioning as it should. Specifically, that the chat windows are not auto-scrolling to the bottom on new input to the window. I'm guessing this is something related to the way the internals of Adium, and macOS are updating the contents of the window, but it's also well known that Adium hasn't had the best support in the last few years, so it might not get fixed.

Thankfully, the Forums are still alive, and this was posted recently:

Running version 1.5.10.4 Adium on MacOs Catalina version 10.15.

Previously, in Chats when the list of text boxes was scrolled to the bottom, any additional messages, either typed by user or received from other users, was added to the bottom and the list was scrolled up to reveal it. After upgrading to Catalina yesterday, this autoscrolling behavior has stopped working. When user types a message and hits return, the new message is hidden. Likewise, messages from other users are not revealed by scrolling up. So one has to constantly manually scroll up to see the message thread.

No respondants with ideas - yet, but I have hope that the few that have access to the code can at least make the code available - if not fix the bug, and then we can get back to our lives. But if not, I found InstantBird which seems to have been somewhat abandoned several years ago, but it might offer some utility if Adium is never getting fixed.

I did look for Adium on GitHub and just googling it... but it seems to be a bit difficult to find... Hmmm...

UPDATE: At least I have a few more links... the page for Getting Adium Source is live, and describes how to get the code, and there's a page about Getting the Newest Adium Source as well. In the discussion about this, there's even a note that there exists a BitBucket repo for Adium, where PRs are welcomed.

On the bad news front, the code isn't even close to Xcode 11 ready:

I was going to take a crack at it. I'm fairly good at Objective-C. However, I can't even get Adium to compile with the newest Xcode. What a mess. File encoding issues galore.

So it seems like this may not be an easy fix, but I'll keep looking, and if I get some time, Maybe I'll dive in.

UPDATE: We have a solution... it's in the Javascript for the rendering of the window, and it's in two places:

  • /Applications/Adium.app/Contents/Resources/Template.html
  • ~/Library/Application Support/Adium 2.0/Message Styles/
    Colloquy.AdiumMessageStyle/template.html

where both might have to change these functions:

  // Auto-scroll to bottom.  Use nearBottom to determine if a scrollToBottom
  // is desired.
  function nearBottom() {
    //return ( document.body.scrollTop >= ( document.body.offsetHeight - 
    //                                      ( window.innerHeight * 1.2 ) ) );
    return 1;
  }
  function scrollToBottom() {
    window.scrollTo(0, document.body.scrollHeight);
    //document.body.scrollTop = document.body.offsetHeight;
  }

If you just fix the one in the app bundle, that's not enough, but you have to fix him. And then you need to fix the one in the Message Style as that's the one that's actually used. Once both are updated to working code, a restart of the app gets the scrolling back into action! 🙂

Getting Apache 2.4.41 + PHP 7.3.8 Going on macOS 10.15 Catalina

Tuesday, October 8th, 2019

Yosemite

This morning I thought I'd perform the ritual of getting the old web development tools that I've used in the past going again - this time on macOS 10.15 Catalina. Now I haven't used PHP in ages, but I've still got code and databases for Postgres to use that - so it makes sense to get this all working again, and it's always fun to see how things work out.

Getting Postgres 11.1

Loads of coverage here about Postgres, and it's just so simple to get the latest version from Homebrew:

  $ brew install postgresql

I've even posted how to upgrade from major version differences, so it's easy to get the latest Postgres running on your box, and the tools are just superb.

Activating UserDir in Apache 2.4.41

As in the previous updates, the UserDir extension is not enabled by default, so we need to get that going right away. This enables the code to be run from the development directories, and that's a big time-saver. First, we need to enable the UserDir module in Apache, and then make a specific config file for the user in question. Start by editing /etc/apache2/httpd.conf and line 183 needs to be uncommented to read:

  LoadModule userdir_module libexec/apache2/mod_userdir.so

and then similarly on line 520 uncomment the line to read:

  Include /private/etc/apache2/extra/httpd-userdir.conf

Next, make sure that the file we just included is set up right for including the user directories. Edit /etc/apache2/extra/httpd-userdir.conf and line 16 needs to be
uncommented to read:

  Include /private/etc/apache2/users/*.conf

At this point, you need to make sure you have at least one file in the /etc/apache2/users/ directory for each user, like: drbob.conf:

  <Directory "/Users/drbob/Sites/">
      Options FollowSymLinks Indexes MultiViews ExecCGI
      Require all granted
  </Directory>

where the last line - Require all granted is new as of Apache 2.4, and without it you will get errors like:

  [Thu Dec 18 10:41:32.385093 2014] [authz_core:error] [pid 55994]
    [client fe80::7a31:c1ff:fed2:ca2c:58108] AH01630: client denied by server
    configuration: /Users/drbob/Sites/info.php

Activating PHP in Apache

The mext thing to do is to activate PHP in the supplied Apache 2 with macOS 10.15. This is line 186 in the file - /etc/apache2/httpd.conf and you need to uncomment it to read:

  LoadModule php7_module libexec/apache2/libphp7.so

and then verify a file called /etc/apache2/other/php7.conf exists and contains:

  <IfModule php7_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
 
    <IfModule dir_module>
        DirectoryIndex index.html index.php
    </IfModule>
  </IfModule>

which does all the other PHP configuration in a separate file to make upgrades easy.

Finishing Up

At this point, a simple restart of apache:

  $ sudo apachectl restart

and everything should be in order. Hit a URL that's a static file with the contents:

  <?php
    phpinfo();
  ?>

and you should see all the details about the PHP install - including the PostgreSQL section with the version of Postgres indicated:

MacOS 10 15 PHP Config

What's really great is that Apple has included lots of support in the default PHP install:

  • PHP 7.3.8
  • Postgres 9.3.7
  • MySQL 5.0.12
  • SQLite3 3.28.0

so there's no reason to do anything more to get the kind of support that I used to get. And I get the other databases for free. This is great news! I then run my little test page to make sure the database connection is working:

MacOS Catalina Database Page

and everything is working exactly as expected!

Upgraded to macOS 10.15 on my MacBook Pro

Tuesday, October 8th, 2019

Software Update

This morning I decided it was time to install macOS 10.15 Catalina on my personal MacBook Pro. There are plenty of folks warning about the loss of 32-bit apps, and I've done an inventory of what I'll loose, and I'm OK with all of those. Sure, I purchased some, but I've gotten a lot of good use out of them, and nothing I'm losing is not already replaced by something that's better.

So off I go to install the upgrade...

I will say, they underreported my 32-bit apps, but that's OK, I know I'll just go through my Applications folder after the update and trash what I no longer need - or can use. But that's OK... it's nice to remind people.

There are quite a few differences in macOS 10.15 - and System Preferences is one of the biggest. I don't mind that they need to make these changes, but the need for me to log out of iCloud, and then log back in seems to be a bit annoying - as it looses all my Apple Pay cards, etc., but I can easily put them back.

One of the two real issues is that Mail.app is different on the "Old School" split view, and now you can't control the headers - at all. No selection of which ones to show, or where to put them, or hoe big to make them... it's just "Here you are" - and we live with it. Maybe they'll put some of that configurability back - I sure hope so.

The second issue is with Adium, my IM Client that I use every single day to chat with folks. In this update, the text view of the chats doesn't auto-scroll to the bottom to show new lines on the view when new lines are added. I don't know if this is meant to be this way, or if it's something that you can change with Xcode - but it's kinda annoying, and I was hoping to find a more supported alternative. I may have to get the Adium code and rebuild it myself with a fix. There just aren't any really good alternatives.

I'm sure there will be a lot more... I had plenty of issues with the Apple subscriptions, but that's just a one-time annoyance... shouldn't be ongoing... but we will see.

Quick Update on the Apple Card

Wednesday, August 21st, 2019

AppleCard

Just a little update on the Apple Card, and how it's been to use, now that I've had the physical card in-hand for a week now. In short - the card is physically very nice - I like the heft and the fact that it's got no identifying marks on it but my name, and that it doesn't get deformed in my wallet. But what's really setting it apart is the Wallet app on my iPhone.

Apple Card

I had been using the Capital One Quicksilver card, and still carry it now - but all my recurring expenses, and online services, have moved over to the Apple Card. The Capital One app had notifications, and that's become pretty much table stakes for credit cards these days - my Bank has it, Capital One, and Apple. But it's the frictionless nature of the Apple experience that is really what this card means to me: Service.

A card is a card - I'm one of the very lucky ones that doesn't have to worry about interest rates - I pay it off every month - without fail. So the limit matters, but only a little, and so it's really the services, the help in tracking purchases, verifying that they are correct, and in a timely manner - that I really care about. And in that regard, the Apple Wallet app is just going to be so much better at it than the Capital One developers - because they only have to build for one platform (theirs), and they have the advantage of handling security in any way they want.

It's made it much easier to see what's happening, keeping track of the charges/purchases, and the easy way to see what gets the different cash-back percentages has been baked-into the UI on the list of charges. It's really quite good. But that's the point - Apple is going to be focused on the Service and experience of the user, and not on the financials that another issuer will be.

I have to say, I'm really enjoying it. 🙂

UPDATE: I followed the advice on Daring Fireball to opt-out of the arbitration clause on the Apple Card, and it could not have been easier. Everything was done in the Messages app... just go into the Wallet, hit the three-dots, and select Message, and text that you want to exercise your right to reject the arbitration clause.

They will transfer the chat conversation to a Goldman employee, and then they will see it, and mark you down as having opted-out of the arbitration clause, and that's it. No mess. No fuss. This is the way technology should empower us.