Friday, June 24, 2022

Recent Questions - Ask Different

Recent Questions - Ask Different


How can I check the key length of a zip file on macOS?

Posted: 24 Jun 2022 04:51 AM PDT

My guess is the key length of zip -er created ZIP files is 128-bit or 256-bit. Running file command on created ZIP file does not give any more information about encryption.

Is there any way to check it?

Applications stay in Dock after closing

Posted: 24 Jun 2022 03:12 AM PDT

Applications will occasionally remain in the Dock after closing, I can't exactly reproduce it, but every so often I'll close the apps and they'll have Keep in Dock enabled.

The setting Show recent applications in Dock is disabled and does not have any effect on this behaviour.

I'm on macOS 12.2.1

From ~/Library/Preferences/com.apple.dock.plist:

{    "autohide" => 0    "largesize" => 128    "last-analytics-stamp" => [      0 => 677408381.441316    ]    "lastShowIndicatorTime" => 659639859.7354929    "loc" => "en_GB:GB"    "mod-count" => 335    "mru-spaces" => 0    "orientation" => "left"    "persistent-apps" => [    ]    "persistent-others" => [    ]    "recent-apps" => [    ]    "region" => "GB"    "show-recents" => 0    "showLaunchpadGestureEnabled" => 0    "showMissionControlGestureEnabled" => 1    "tilesize" => 49    "trash-full" => 1    "version" => 1    "wvous-br-corner" => 1    "wvous-br-modifier" => 1048576  }  

Unable to connect to windows PC from MacBook (but vice versa possible)

Posted: 24 Jun 2022 02:53 AM PDT

I am on my office Wifi Network mainly consisting of Windows PC's. From my Macbook I can see one windows Laptop(Device A) but I am unable to connect to the second Windows PC(Device B - which has the shared printer). Though the device B is shown in Macbook network window, when connecting it says "Connection Failed". However I can access my MacBook over the network from both PC's. How to solve this, Please help.

Launchd job still running while my mac is asleep

Posted: 24 Jun 2022 02:18 AM PDT

I have a test job to output date each 60 seconds

<?xml version="1.0" encoding="UTF-8"?>  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">  <plist version="1.0">    <dict>      <key>Label</key>      <string>com.wq.test.plist</string>      <key>ProgramArguments</key>      <array>         <string>date</string>      </array>      <key>StartInterval</key>      <integer>60</integer>      <key>StandardErrorPath</key>      <string>/tmp/test_stderr.log</string>      <key>StandardOutPath</key>      <string>/tmp/test_stdout.log</string>    </dict>  </plist>  

According to launchd.plist manpage:

StartInterval This optional key causes the job to be started every N seconds. If the system is asleep during the time of the next scheduled interval firing, that interval will be missed due to shortcomings in kqueue(3). If the job is running during an interval firing, that interval firing will likewise be missed.

If I sleep my mac, my test job should not be run.

But I find that even if I sleep my mac, date is output to log file each minute, like this:

$ tail -f /tmp/test_stdout.log  Fri Jun 24 17:08:53 CST 2022  Fri Jun 24 17:09:53 CST 2022  Fri Jun 24 17:10:53 CST 2022  Fri Jun 24 17:11:53 CST 2022  Fri Jun 24 17:12:53 CST 2022  

Here is My OS information:

System Version: macOS 12.3.1 (21E258) Kernel Version: Darwin 21.4.0

How to delete backup timemachine from usb flash?

Posted: 24 Jun 2022 04:50 AM PDT

Today I wand delete from my usb flash all mac backup, but by guids from Net I can't see button delete, or it doesn't active. What I can do?

In flash storage In flash storage

In folder of backup In folder of backup

Try to erase of USB flash Try to erase of USB flash

Try to delete disk volume Try to delete disk volume

Try to recover Try to recover

Time machine settings window enter image description here

I try to use terminal time until, but I use two commands yesterday and do nothing, I forget commands which I use(

"Quick Action" service only works once by shortcut

Posted: 23 Jun 2022 11:37 PM PDT

I created a quick action with a shell script:

open -n /Applications/Alacritty.app  

And it could open alacritty multiple times when debugging in automator.

Then I assigned this service by a shortcut "⌃⌘L".

I could launch first 'alacritty' smoothly in am empty workspace/desktop by keyboard shortcut. But then I can't launch any 'alacritty' anymore by pressing the shortcut.

I would like to know if there is any way to debug and solve this, thanks!

Permission denied when changing hosts file on M1 mac

Posted: 24 Jun 2022 03:29 AM PDT

The error is

PermissionError: [Errno 13] Permission denied: '/etc/hosts'  

Got the program to work on my own mac, but it doesn't work on my girlfriend's machine.

The problem lies with this part when executing a bash script blocker.sh containing this:

sudo mv /tmp/etc_hosts.tmp /etc/hosts  

I have edited both our sudoers file to contain

$username  ALL=(ALL) NOPASSWD: /Users/$username/blocker.sh  

Editing the sudoers file should make it permissionless to execute blocker.sh right?

Both machines are running Big Sur, but her machine is a 2020 M1 mac.

How do I add/permit "staff" to this folder? "chgrp -R staff dir_name"

Posted: 23 Jun 2022 09:56 PM PDT

For some reason, there isn't "staff" user group on a folder that I just created.

I would like the to add/permit "staff" user group to read and write in this folder.

How do I add/permit "staff" to this folder?

I'm new to all this unix command so not really sure. But this post, seems to suggest to type this in terminal:

sudo chgrp -R staff ./folderName  
  1. Is the "./folderName" a relative path? Meaning for example if the folder is right under desktop and my current directory is desktop, that command should do it right? or does the path need to be absolute?"
  2. What does the "-R" do? Because I seen other post that doesnt use the "-R"? Is it necessary?

I'm asking this to make sure that I'm doing the correct thing before I stuffed up. I'm totally new to all this, kindly please be patient and guide me.

How to burn nrg file on Mac os Monterey?

Posted: 23 Jun 2022 10:35 PM PDT

I want to burn some of my nrg file to cd on my Mac Monterey. I already search and see this thread

This can help me to duplicate my cd using cdrdao, but In my case my old physical cd is bad and It cannot be read by my drive. I have only the Nrg file. I tried to use daemon tool to mount it but cdrdao cannot see it, so I cannot make a dat and toc file and cannot burn a CD. I want to burn a cd from my Nrg file. Please help

How to make sure "brew" only installs what I want without breaking other things?

Posted: 24 Jun 2022 04:45 AM PDT

On a Mac 12.4 I just wanted to install a package named gdb to try to see if that fixes a problem, so I choose to use the command

brew install gdb  

but instead it seem to have updated all other packages (and it did not solve the problem). It also updated mplayer which then was broken.

Is there a way to isolate or pin versions using brew tools if I detect an issue with everything being fully updated?

How to fix "undefined symbols" for compiling mplayer

Posted: 23 Jun 2022 10:45 PM PDT

When I try to compile mplayer on MacOS (12.4) I get an error

Undefined symbols for architecture x86_64:    "_x264_encoder_open_163", referenced from:        _X264_init in libavcodec.a(libx264.o)  Undefined symbols for architecture x86_64:    "_x264_encoder_open_163", referenced from:        _X264_init in libavcodec.a(libx264.o)  ld: symbol(s) not found for architecture x86_64  clang: error: linker command failed with exit code 1 (use -v to see invocation)  make: *** [mencoder] Error 1  make: *** Waiting for unfinished jobs....  ld: symbol(s) not found for architecture x86_64  clang: error: linker command failed with exit code 1 (use -v to see invocation)  make: *** [mplayer] Error 1  

Any ideas how to fix this?

I did run just

./configure  

before that.

What causes Apple Mail to repeatedly quit?

Posted: 23 Jun 2022 06:17 PM PDT

One of the senior I help reports that on her 2011 MB Pro running El Capitan 10.11.6, Mail keeps crashing.

She will open Mail, read two or three incoming emails, click on the next email to read and Mail will crash. This happens repeatedly.

Each time Mail quits, in the report to be sent to Apple this is prominent:

Exception Type: EXC_BAD _ACCESS (SIGSEGV) Exception Type: KERN_INVALID_ADDRESS at 0X000000000018 Exception Type: EXC_CORPSE_NOTIFY

I Googled this and the only thing useful I found was the suggestion that perhaps this might be connected with SIP; we checked and her is turned on.

I told her, tomorrow morning, when her mails comes in, to restart in Safe Mode, read her email, and see if the same thing happens or not. Will report back with her results.

In the meantime, can anyone suggest anything to try that might fix this???

mail app changing the automatic text in replies and forwarded emails

Posted: 23 Jun 2022 06:45 PM PDT

When you reply to an email (in the Apple Mail app on osx), the original email text is prepended by a line: "On Jun 20, 2022, at 9:36 AM, ... wrote:"

How can I change this text? More specifically can it be changed based on the account I am replying from? I work in a multi-language environment and I use different accounts to communicate with people with different languages. I prefer americans have their weird way of date formatting, others have the text in their own language with different date/time formatting.

How to uninstall something from /usr/local/bin if it is installed in /opt/homebrew/bin

Posted: 23 Jun 2022 11:18 PM PDT

what the title says
for example,

> where dockutil  /opt/homebrew/bin/dockutil  /opt/homebrew/bin/dockutil  /usr/local/bin/dockutil  

how would you remove the redundant installation(s)

Is there a way to script "Mark as read"

Posted: 23 Jun 2022 06:24 PM PDT

I get a lot of emails in a day, most of them I don't even need to read. I will the info I need just from the notification.

Is there a way to script the clicking of "mark as read" from the notification pop up? That way I can then assign that script to a keyboard shortcut.

MacBook charging only with 5W instead of 80W

Posted: 24 Jun 2022 04:29 AM PDT

So I have a pretty strange problem I don't really understand. I always charge my MacBook Air 2020 (M1) with my phone's Supercharger. First, I had the OnePlus 9 Pro with a 65 Watt charger and my MacBook always took like 40 - 60 Watts from it, depending on the usage. Lately, I upgraded to the OnePlus 10 Pro which comes with an 80 Watt charger and now my MacBook constantly only takes 5 Watt from it to charge and I don't really get it.

enter image description here

I know that it has to work and I know that it actually should too but I don't know the real problem here.

Set Disable "Delete After Import" in Image Capture As Default

Posted: 24 Jun 2022 03:04 AM PDT

Is there a way to disable "Delete After Import" (and perhaps enable "Keep Originals by default) in Image Capture by default, at least for a specific phone? I always wish to copy (but not remove) my photos using the program from my iPhone to my Mac, but always forget to disable the option. I am using macOS 10.13.6 with iOS 15.3.1 (iPhone 13).

Large Apple Music MacOS library on external SSD - taking hours to save library on quit - how to troubleshoot?

Posted: 24 Jun 2022 04:48 AM PDT

I have a large music library (200GB/14.000 tracks), with files spanning well over a decade. I'm on a temporary Mac for the next month or two, so I'm keeping the files and library on an extremely fast external SSD (Sandisk Extreme Pro - Thunderbolt 3).

When I quit the Music app on macOS, a popup alert window that reads "Saving Music Library..." appears, and then just... doesn't go away. The program is not unresponsive according to the Finder/the Force Quit dialogue. It's just trying to save, and it's taking forever.

I don't know if this is an SSD issue or not.

The library contains thousands of hours of work, so I'm apprehensive about cutting down the library.

Setup:

  • MacBook Pro M1 Max
  • 64GB memory
  • Music Version 1.2.4.

As a layman, I would hope I could look at logs or something, to see what may be causing these delays. Is there a way to isolate or troubleshoot this sort of problem?

Is there a way to stop the HomePod timer alarm remotely?

Posted: 24 Jun 2022 12:07 AM PDT

I have many HomePod mini (at least one in every room/corridor). And after I went upstair to my bedroom I noticed the downstair HomePod mini (assuming in the living room) got triggered by it's timer or countdown.

There seem to be no option anywhere in Home App.

Even for cases where you might be a long distance from the device, it's worse of a second HomePod in my bedroom or corridor just responds with There's nothing to stop or with there's nothing to mute or there's nothing playing due to it being closer to me than the one currently alerting.

On occasion this can be highly inconvenient (say music or a movie was loud but now quiet) causing the downstairs unit to blast a timer alarm at full volume past midnight. Other scenarios could be, that I'm away from home and receive a call from my neighbour saying my Siri alarm is triggering him/her.

I did fount this Same Question on Discord, but no working answers there… :(

Is there a way to stop the HomePod timer alarm remotely?

Extracting calendar .ics file from iPad backup

Posted: 23 Jun 2022 09:03 PM PDT

I used Finder on my Mac to back up an iPad (iPadOS 15) using USB-cable. Now I would like to get from that backup all the calendar events that are stored in a *.ics file. Is there a way to extract this soort of data from the local backup and without using iCloud services, Apple data request or third-party apps?

How to delete a copy of a system font

Posted: 24 Jun 2022 02:02 AM PDT

At some point I made copies of all the fonts in the System>Library folder. I would now like to delete those duplicates, which are not in use and are not in a System folder. But macOS (Mojave) won't let me because the copies inherited the protections of the originals. I'm not trying to change anything that's in the System folder itself. Any suggestions? Thank you.

iPhone 8 proximity sensor not working after display switch

Posted: 24 Jun 2022 05:07 AM PDT

so I've changed a splintered display including a new flex-cable with front camera, brightness and proximity sensor of an iPhone 8 for my first time and it is working nearly as wanted... nearly!

The proximity sensor does not work anymore but everything else: The front camera, the display, the home button, the automatic setting of brightness and also the earpice is working without a problem. The sensor is plugged in its place and can "see" through the cut-out.

My question is: Is there any step missing? Do I (which I doubt) have to activate again because it is a new hardware component?

Thanks in advance!

Company Mac OS laptop must connect to Cisco AnyConnect VPN in order to access to the Internet

Posted: 23 Jun 2022 08:07 PM PDT

My company Mac OS X laptops (Mojave) are managed devices and in order for the user to connect to Internet, the user must first launch and connect the Cisco AnyConnect VPN otherwise the user is not able to connect to the Internet.

Just for my knowledge, I am looking for the specific file or configuration profile or settings that show me this specific rule. It must be something on the system that I can see that the Mac system must be connected to Cisco AnyConnect VPN first in order to get Internet access.

I just want to see where this rule is located.

Capture month end values in Apple Numbers

Posted: 23 Jun 2022 11:03 PM PDT

Is there a way to capture a cell value at a specified time in Numbers. For example if you have a stock portfolio and wish to capture month end values can this be done?

Finder stopped showing the content of a text file

Posted: 24 Jun 2022 01:06 AM PDT

I have been using MacBook pro-2017 for about a year, in the mean time I have added a couple of quiclook generators (e.g. QLStephen.qlgenerator) for various services for the Finder.

For quite a few days it was working good, but now, I encountered a strange problem. Nowadays I can not see the contents of any file in the finder, e.g. when I click on a a.txt file it shows no contents, but when pressed Shift key it shows the QuickView of the item.

How to restore the original settings of the Finder?

I tried deleting all the quicklook plugins, but still, the problem is sustained.

Attempt:

cd  ~/Library/QuickLook  sudo mkdir backup  sudo mv *.qlg* backup/  qlmanage -r  killall Finder  

PS: I tried also deleting all the contents of QuickLook and restarted the computer. Still it does not work. Maybe I have to reset the Finder settings, but I don't know how?

Note that here the a.txt is not empty but Finder shows nothing.

How can we make the Finder show the contents of this file?

Update Backed up and deleted the QuickLook folders from the computer.

sudo mv /Library/QuickLook ~/library_quicklook  sudo mv ~/Library/QuickLook ~/home_library_quicklook    sudo rm -rf com.apple.quicklook.ui.helper.plist  sudo rm -rf com.apple.quicklookconfig.plist  sudo rm -rf com.apple.QuickLookDaemon.plist    qlmanage -r  qlmanage -r cache  killall Finder  

Still does not work.

enter image description here

Related links: https://www.cnet.com/news/fixing-quick-look-issues-in-os-x/

How to identify extensions blocked by Gatekeeper

Posted: 24 Jun 2022 02:48 AM PDT

In macOS High Sierra, System Prefs > Security, it says "Some system software was blocked from loading. I see a list there of three developers, and I don't recognize all of them. I'm guessing these are kext files in /L/E or /S/L/E, but how can I identify exactly which kext corresponds to each developer name? I tried grep -rn "Intel Corporation Apps" /System/Library/Extensions but that doesn't find it.enter image description here

EDIT: Adding to this question because it was never fully answered and I have now encountered another stubborn kext I can't remove in Mojave. It appears in Disabled Software but not in System Preferences security pane. enter image description here

I have grepped /L/E and /S/L/E and /Library/StagedExtensions and the only result I find is in /System/Library/Extensions/AppleKextExcludeList.kext/Contents/Info.plist

kextutil can't find it so where else can I look?:

# kextutil -b cn.com.bwstor.filesystems.enfs  Can't find extension with identifier cn.com.bwstor.filesystems.enfs  

Shortcut for toggling between different windows of same app?

Posted: 23 Jun 2022 11:33 PM PDT

I opened two Google Chrome windows (because I am using multiple Gmails) and when I do the Cmd ⌘ Tab ⇥ shortcut it just shows me other applications that I opened but does not show me the other Chrome windows that are already opened.

How to switch to the other Google Chrome window that I opened using keyboard shortcut?

How can I change my shell language localization on the macOS command line?

Posted: 24 Jun 2022 05:03 AM PDT

I have a Mountain Lion macbook and it's default locale is english, it's keyboard is english (US) as well. I need to change the language that the terminal replies to Swedish.

For example, Instead of replying "Connection Refused" for a failed telnet, it should say "Forbindelse Vagras" (which is the Swedish translation)

EDIT: I have tried setting LANG=sv_SE.UTF-8 and same with LC_ALL, to no effect

Have also tried changing system-wide settings, which changes the language in the entire system but not the zsh shell.

Is this split localization possible on macOS?

Ruby 2.0.0 fails to install because of openssl

Posted: 24 Jun 2022 03:02 AM PDT

I can't install ruby from source, on configuration (./configure) it states

Ignore OpenSSL broken by Apple.  Please use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')  Failed to configure openssl. It will not be installed.  

Even if I use the told parameter. --with-opt-dir=/usr/local doesn't help either. Notice, I installed the latest openssl (1.0.1e) from source too (it's located at /usr/local/ssh).

So later I can't use gem install, it just states:

ERROR:  Loading command: install (LoadError)      cannot load such file -- openssl  ERROR:  While executing gem ... (NoMethodError)      undefined method `invoke_with_build_args' for nil:NilClass  

How can I tell the ruby installation to take my installed openssl?

What tool is best for removing pages from a password protected PDF?

Posted: 24 Jun 2022 03:26 AM PDT

I have a set of PDF documents that each have a few extra pages. I'd like to remove the first two and last pages from each of them. Preview only lets me look at and annotate a PDF, not edit one. Can anyone recommend a (free/freeware) tool to do this? I'm using 10.5 PPC so that does limit some of my options. Command line or GUI is fine.


Ok, in Preview it seems I can delete pages by hitting ⌘⌫ on the thumbnails, but it will then not give me the option to save. I can then try printing the altered document to PDF, but I am leery of this because I don't want to loose any metadata (I have to double-check all the files to see how much metadata there is if I decide on this course).


Just tried Acrobat at work, that doesn't work. The files are mod-protected by a password.

No comments:

Post a Comment