EPS files on Mac

It used to be possible to view .eps files in Mac Preview. This was very convenient for viewing a quick image. In Sonoma, that ability was removed to avoid previewing malware.

Ok. But now I need a tool to open .eps files. Preferably a free or cheap one. I know Adobe Illustrator can do it, but that’s not cheap.

What didn’t work

Here’s what I tried that didn’t work

  • GIMP – showed the image with poor resolution for a few seconds than crashed. The. second time, it crashed right away. I tried redownloading and now Gimp says it can’t interpret file.
  • Skim – Didn’t open EPS files
  • Open office – shows just a box, not the image
  • Inkscape – ignores the request to open the file

What did work

I then abandoned trying to actually open the EPS file since I don’ edit them. There was some about converting to PDF. But images preview better. So I went with converting to png.

I found a Stack Overflow post suggesting using ghostscript. I was able to run a one liner and get all of them as .png. Now I can preview again!

find . -type f -name '*.eps' -exec gs -dSAFER -dBATCH -dNOPAUSE -dEPSCrop -sDEVICE=png16m -r600 "-sOutputFile={}.png" {} \;  

setting up a mac in 2023 from my old mac

My previous Mac only lasted four years. It’s successor made it much longer. At the 8 year mark, the battery was failing. I could have had it replaced for $250, but didn’t thought it was better to get a new machine rather than buy a battery and have the machine need replacement shortly after.

My choice

I had a 15 inch laptop last time, but went with the 13.6 inch. The retina display makes it feel similar, I was pleasantly surprised that the Air was so powerful, especially when adding to it. The specs:

  • Apple M2 chip with 8‑core CPU, 10‑core GPU, 16‑core Neural Engine
  • 24GB unified memory (I had 16 last time)
  • 1TB SSD storage (I had half that before and used a good amount)

Buying the laptop

I went to the store to see the size and feel. I also needed to ask about the difference in colors and compare to my old machine. I went with Space Gray which is a color darker than what I had before.

In the store, they suggested I buy it online so I would know when it comes. (It wound up coming earlier.) I was still able to have it delivered to the store so that was fine.

Other hardware needed

I needed a USB-C to USB-A hub so I could plug in my existing devices. My wired keyboard and wired trackpad still work. I got a hub that also had HDMI so I could plug in my external monitor.

I also got a single USB-C to USB-A adapter so I can continue to use my clicker for presentations.

I still have to set up a security lock. I ordered the Kensington one. There weren’t a lot of choices and it doesn’t let me reuse my existing lock. The new one doesn’t allow closing the lid while the laptop is docked which will take some getting used to.

Setting up the laptop

Time Machine took care of most of the transfer and chip architecture differences. It ran most of the night to transfer all the data. It asks whether you want to start a separate backup or claim the history. I chose the later.

What I had to do:

  1. Cover camera with sticker.
  2. Agree to assorted licenses
  3. Dropbox had me reconfirm
  4. Reinstall key for SnagIt
  5. A lot of setting changes (see next section)
  6. I’ve had the laptop long enough to label it with my phone number and add stickers.
  7. That’s it. Everything else was remembered.

Settings need to reapply

Eight years ago I didn’t need to redo so many settings.

  1. Bring up brightness level to max. Hard to read at default resolution when not bright
  2. Chrome – changed startup settings to remember tabs
  3. Postgres – had to set a new password
  4. A lot of privacy/security settings. Many apps reprompted to get their permissions back

Updating apps

  1. IntelliJ offered to update for the new chip.
  2. Eclipse needed a reinstall with AArch 64 (my Eclipse was from 2021 though – I use a mix of IntelliJ and Eclipse). The installer noted I have a lot of Java versions installed and complained about the signatures for some. I chose cancel and it proceeded. I also had to delete the .m2 cache because Eclipse prompted me it wasn’t compatible.
  3. Zoom offered to update for the new chip
  4. I had to re-install BeFocusedPro to get it to be in the menu bar. It remembered I paid already at least.
  5. I installed 1Password 8. I don’t think this was necessary, but I couldn’t figure out the settings to have it open web pages in 1Password 7. And I would have upgraded soon anyway. I also needed to set up Universal Autofill on Mac so I could use command + \. (It used to automatically prompt me to use 1Password. I like the keyboard shortcut though)

Postgres

This was a lot so gets its own post.

Specialist appointment

Apple encourages a free online appointment with a “specialist” to go over new features. I did that and learned a few things.

Touch Id

The built in keyboard has physical keys. (not the touchbar of the past; glad I missed that model.) On the top right (next to F12) is a touch key for touch id. (My old machine had a power button there) So far, I’ve used it for 1Password, unlocking after initial bootup for the day and Apple settings. I also set up a second finger to work with touch id.

Twitter

I can’t logon to Twitter using the official app. It still remembers me as @jeanneboyarsky and asks for a password to verify my identity. Then gives an error. I tried uninstalling and reinstalling. My browser session still works so I’m afraid to change my password to see if that fixes. It’s not a big deal to use the web app. I mainly browse on my phone/tablet, so it is only for posting on the computer anyway.

Setting java aliases with zshell on Mac

When I’m working on different versions of Java, I set up a bunch of aliases so I can run commands quickly and compare differences. I recently upgraded my Mac and accepted the default shell as zshell instead of bash. (This change was made a long time ago but I didn’t upgrade for a long time because I didn’t want to incur the risk of being without my computer when everything was closed for the pandemic.)

Since I needed to move this from .bash_profile to .zshenv, I took the opportunity to shed a lot of them. I now have just Java 11 and Java 17 that I am using for comparisons. (LTS to LTS).

My .zshenv now contains this. (Yes, I know I should have patched Java 11, but alas.) I ran “source .zshenv” and am good to go.

Now I can run java11 JeanneTest.java and java17 JeanneTest.java to easily compare differences.

alias javac17=/Library/Java/JavaVirtualMachines/jdk-17-ea.jdk/Contents/Home/bin/javac
alias java17=/Library/Java/JavaVirtualMachines/jdk-17-ea.jdk/Contents/Home/bin/java
alias jar17=/Library/Java/JavaVirtualMachines/jdk-17-ea.jdk/Contents/Home/bin/jar
alias javac11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/javac
alias java11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/java
alias jar11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/jar
alias jshell11=/Library/Java/JavaVirtualMachines/jdk-11.0..jdk/Contents/Home/bin/jshell
alias jdeps11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/jdeps
alias jmod11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/jmod

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-17-ea.jdk/Contents/Home"