The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘Apple’ Category

Cool: Apple mini-assembler found inside Woz’ monitor inside Apple II Integer Basic

Posted by jpluimers on 2021/01/18

From a while back: [WayBack] This week, a mini-demo of the mini-assembler found inside Woz’ monitor inside Apple II Integer Basic. CALL –151 F666G … – mos6502 – Google+

This week, a mini-demo of the mini-assembler found inside Woz’ monitor inside Apple II Integer Basic.
CALL –151
F666G
You can find reconstructed sources in Jeff Tranter’s repo here:
https://github.com/jefftranter/6502/tree/master/asm/Apple%5D%5BMonitor
where we see credits to Steve Wozniak and Allen Baum. But in this oral history it seems the assembler was Baum’s work:
“Baum: So it was brute force, very simple and fit into 256 bytes if you already had the 256-byte disassembler.”
https://youtu.be/wN02z1KbFmY?t=3941
Anyhow, one page of code – or two – is very impressive!

For more info, try searching for F666G! (We wonder at this memorable address – the Apple I price was $666.)

Related:

–jeroen

Read the rest of this entry »

Posted in 6502, Apple, Apple I, Apple ][, History | Leave a Comment »

Interesting pieces of RetroMacCast : RMC Episode 433: Clamshell G4 iBook – first virus and Apple ][ forever

Posted by jpluimers on 2021/01/04

From the [WayBackRetroMacCast : RMC Episode 433: Clamshell G4 iBook the most interesting pieces to me were these:

–jeroen

Posted in 6502, Apple, Apple ][, History, Power User | Leave a Comment »

mkcert: valid HTTPS certificates for localhost (Windows/Mac/Linux) — a short blog post about it, by FiloSottile

Posted by jpluimers on 2020/12/21

Cool: [WayBack] Filippo Valsorda on Twitter: “mkcert: valid HTTPS certificates for localhost — a short blog post mkcert now that it’s almost done 🔒 “

Blog post: [WayBackmkcert: valid HTTPS certificates for localhost:

The web is moving to HTTPS, preventing network attackers from observing or injecting page contents. But HTTPS needs TLS certificates, and while deployment is increasingly a solved issue thanks to the ACME protocol and Let’s Encrypt, development still mostly ends up happening over HTTP because no one can get an…

Code: [WayBack] GitHub – FiloSottile/mkcert: A simple zero-config tool to make locally trusted development certificates with any names you’d like.

It is cross platform and works way better than good old Windows makecert (which is from the 2000’s era: [Archive.is] Public Key Infrastructure: Second European PKI Workshop: Research and … – David Chadwick, Greece) European PKI Workshop: Research and Applications (1st : 2004 : Samos Island – Google Books).

Related:

–jeroen

Read the rest of this entry »

Posted in *nix, Apple, Encryption, HTTPS/TLS security, Linux, Mac OS X / OS X / MacOS, Power User, Security, Windows | Leave a Comment »

high sierra – Remote Desktop 10.2.3 Database Creation Error; 10.2.1 runs fine; 10.2.2 crashes: how to find actual cause(s)? – Ask Different

Posted by jpluimers on 2020/12/21

From a while back:

What would be good steps to find the cause of the below errors?

I get this error when running Microsoft Remote Desktop 10.2.3 or higher on MacOS High Sierra:

Database Creation Error

"An error occurred during persistent store migration.

[Domain: NSCocoaErrorDomain, Code: 134110]"

[WayBack] high sierra – Remote Desktop 10.2.3 Database Creation Error; 10.2.1 runs fine; 10.2.2 crashes: how to find actual cause(s)? – Ask Different

Related Twitter thread: [WayBackJeroen Pluimers on Twitter: “Help! Stuck at @msremotedesktop 10.2.1 (that cannot add new users) on High Sierra because 10.2.2 keeps crashing, and both 10.2.3 and 10.2.4 cannot migrate: “An error occurred during persistent store migration. [Domain: NSCocoaErrorDomain, Code: 134110]””

Tried beta: 10.2.6 (1529) at [WayBackMicrosoft_Remote_Desktop_Beta.app.zip from [WayBack] Microsoft Remote Desktop for Mac – HockeyApp

--jeroen

Read the rest of this entry »

Posted in Apple, Mac OS X / OS X / MacOS, macOS 10.13 High Sierra, Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Windows | Leave a Comment »

Copy files on Mac OS X using drag-and-drop | alvinalexander.com: secret is to hold the Option key

Posted by jpluimers on 2020/12/14

The Finder pure keyboard way of file copy+paste is using CommandC at the source position followed by CtrlCommandV in the destination position (in the destination position,  CommandV will do only a cut+paste) as the paste/copy decision is determined in the final stage.

This is unlike Windows, where CtrlC means copy, CtrlX means cut, and CtrlV finishes the initial action to copy+paste or cut+paste

If you combine mouse dragging, on the Mac it becomes Optiondrag, whereas on Windows it still is Ctrldrag.

I think the Windows ones are more consistent, especially when looking at them in table form:

Action Windows Mac
Keyboard-Only Mouse-drag Keyboard-Only Mouse-drag
copy+paste CtrlC; CtrlV Ctrldrag CommandC; Ctrl+CommandV Optiondrag
cut+paste (or move) CtrlX; CtrlV drag CommandC; CommandV drag

(table with help of HTML Table generator – TablesGenerator.com)

Mac shortcuts via:

–jeroen

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Power User, Windows | Leave a Comment »

Keep alive SSH connection with server in MacOs Mojave – Ask Different

Posted by jpluimers on 2020/11/30

Reminder to self: check if this has been worked-around yet: [WayBack] Keep alive SSH connection with server in MacOs Mojave – Ask Different

In El Captain, to maintain active a SSH connection you should edit ~/.ssh/config file to add your additional rules.

nano ~/.ssh/config

To maintain active for 1 hour you should add:

Host *
   ServerAliveInterval 3600

I cannot recreate the same situation is MacOS Mojave, it continue to close connections after some minutes. Any suggestions about this?

Via: [WayBackAsk Different on Twitter: “Can you answer this? Keep alive SSH connection with server in MacOs Mojave #ssh”

–jeroen

 

Posted in Apple, Mac OS X / OS X / MacOS, Power User | Leave a Comment »

macos – Bring OS X Error Message window to the front – Super User

Posted by jpluimers on 2020/10/19

Short answer based on WayBack macos – Bring OS X Error Message window to the front – Super User

The GUI way

  1. Press Command+Space to start Spotlight Search
  2. Search for /System/Library/CoreServices/Problem Reporter.app and wait for the result to show up
    (a search for just Problem Reporter.app will not reveal it!)
  3. Press Enter
  4. Now the System Reporter windows is in the front and has focus

The Terminal way

  1. Open a Terminal window or tab
  2. Run open -a /System/Library/CoreServices/Problem\ Reporter.app
  3. Now the “Problem Reporter” windows is in the front and has focus

–jeroen

 

Posted in Apple, Mac, Mac OS X / OS X / MacOS, macOS 10.13 High Sierra, Power User | Leave a Comment »

How to remove all old and outdated brew packages on MacOS – nixCraft

Posted by jpluimers on 2020/10/19

I was not aware that brew install,  brew cask install, brew update and brew upgrade would keep all the older versions on disk, so I was a bit amazed that OmniDiskSweeper and GrandPerspective found over 20 gigabytes of cruft in /usr/local/Cellar and a bit in /Library/Caches/Homebrew.

Based on [WayBack] How to remove all old and outdated brew packages on MacOS – nixCraft and [WayBack] homebrew – brew: how to delete outdated version of package – Ask Different (which have more info) I changed the order a bit:

alias brew-cleanup-update-ugprade='brew cleanup && brew update && brew upgrade'

You can use brew pin to keep specific versions (and brew unpin to release them so you get the most recent one).

The main reason people do not bump into brew cleanup is that it is not advertised as a command:

# brew --help
Example usage:
  brew search [TEXT|/REGEX/]
  brew info [FORMULA...]
  brew install FORMULA...
  brew update
  brew upgrade [FORMULA...]
  brew uninstall FORMULA...
  brew list [FORMULA...]

Troubleshooting:
  brew config
  brew doctor
  brew install --verbose --debug FORMULA

Contributing:
  brew create [URL [--no-fetch]]
  brew edit [FORMULA...]

Further help:
  brew commands
  brew help [COMMAND]
  man brew
  https://docs.brew.sh

But it is there and has help as well:

# brew cleanup --help
brew cleanup [--prune=days] [--dry-run] [-s] [formulae|casks]:
    Remove stale lock files and outdated downloads for formulae and casks,
    and remove old versions of installed formulae. If arguments are specified,
    only do this for the specified formulae and casks.

    If --prune=days is specified, remove all cache files older than days.

    If --dry-run or -n is passed, show what would be removed, but do not
    actually remove anything.

    If -s is passed, scrub the cache, including downloads for even the latest
    versions. Note downloads for any installed formula or cask will still not
    be deleted. If you want to delete those too: rm -rf "$(brew --cache)"

On pin and unpin:

# brew pin --help
Usage: brew pin formulae

Pin the specified formulae, preventing them from being upgraded when
issuing the brew upgrade formulae command. See also unpin.

    -d, --debug                      Display any debugging information.
    -h, --help                       Show this message.
# brew unpin --help
Usage: brew unpin formulae

Unpin formulae, allowing them to be upgraded by brew upgrade formulae.
See also pin.

    -v, --verbose                    Make some output more verbose.
    -d, --debug                      Display any debugging information.
    -h, --help                       Show this message.

–jeroen

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Power User | Leave a Comment »

Viewing a USB WebCam on Windows 10 without any fuzz

Posted by jpluimers on 2020/09/28

Windows 10 comes with a broken Camera viewer and before that, Windows 7 killed the one in Windows XP.

On a Mac you have the open source Quick Camera (which named QCamera before, seeViewing an USB camera on Mac OS X without mirroring and Capturing from a Magewell XI100USB on a Mac using OS X) at [WayBack] GitHub – simonguest/quick-camera.

For Windows 7, a long search initially revealed a lot of bloat-ware, but finally ended to these two both from the same author:

It is not open source (yet?), but since it is .NET, it is reasonable easy to see the innards.

Like QCamera, it does not require installation: just unzip and run. Enjoy!

Yes, I know there are Windows 10 workaround steps via Microsoft.CameraApp.App.ctor, but if you look at [WayBack] Win10 Home N – Camera App fails: System.IO.FileNotFoundException – Microsoft Community you will understand I did not apply them.

Similarly, when you install Skype from the app store, then sign-in, it will tell you that Skype is out of date.

–jeroen

via:

Posted in .NET, Apple, Development, Mac OS X / OS X / MacOS, Power User, Software Development, Windows | Leave a Comment »

Need to figure out how to remount 2015 Retina MacBook Pro SD card that got ejected during sleep

Posted by jpluimers on 2020/09/04

Somehow, every now and then, a 2015 Retina MacBook Pro will eject the SD Card during sleep.

I’m not sure about the cause, just about the message that a drive got unmounted in an unexpected way.

This fails to rescan for the drive on Mac OS Sierra:

sudo kextunload -b com.apple.driver.AppleSDXC
sudo kextload -b com.apple.driver.AppleSDXC

As per [WayBack] external disk – Problem with kextunload SD card remount – Ask Different, I tried the kextstat below, however, before the unload/load statements, kextstat | grep -e SDXC returns nothing.

After them, it returns something like

156 0 0xffffff7f841f3000 0x12000 0x12000 com.apple.driver.AppleSDXC (1.7.6) 0F6F5025-A1C4-3E77-9ECD-4D4410E684C5 <16 15 12 5 4 3 1>

When it happens again, I will likely need to read these:

It might be that somewhere along the line, SDSX is not started by default any more or not applicable to MicroSD to SDXC card converters. These screenshots at least show that this disk is connected via a USB path:

The screenshots are from the stock “System Information.app” tool, and I really wish it showed the kext drivers used for each device. That would make debugging these issues a lot easier!

A solution then could be as easy as this:

Unmount all USB connected devices (for instance with a command like diskutil eject disk1);

sudo kextunload -b com.apple.driver.AppleUSBCardReader
sudo kextload -b com.apple.driver.AppleUSBCardReader

However my first try got me an error similar to the one result [WayBack] External USB disk sometimes requires a reboot to be recognized after eject – Ars Technica OpenForum I found after searching for “class com_apple_driver_AppleUSBCardReaderDriverNub has” “instances.”:

7/28/16 10:05:54.000 AM kernel[0]: Can't unload kext com.apple.driver.AppleUSBCardReader; classes have instances:
7/28/16 10:05:54.000 AM kernel[0]: Kext com.apple.driver.AppleUSBCardReader class com_apple_driver_AppleUSBCardReaderDriverNub has 2 instances.

–jeroen

Posted in Apple, Mac, MacBook, MacBook Retina, Power User | Leave a Comment »