Tuesday, April 26, 2022

Recent Questions - Ask Different

Recent Questions - Ask Different


What is the purpose of directory /var/dirs_cleaner?

Posted: 26 Apr 2022 01:05 AM PDT

I'm using a 2020 MacBook Pro on Monterey 12.3.1, and noticed a new directory, var/dirs_cleaner which is empty, has permissions of read and write by the system.

dirscleaner image

I've tried to find out on Google, but no information on this is available.

Is this a part of the system, or malware?

Is there anything I should know about this folder, as I've not seen it before.

Black space between top display and menu bar Macbook Air M1

Posted: 26 Apr 2022 01:05 AM PDT

I was try to changes display scale to other options, but still same. Anyone has issue like this?

My PS1 Customized Terminal Prompt doesn't work on MacOS

Posted: 26 Apr 2022 01:21 AM PDT

I moved from Windows and my customized terminal prompt doesn't work anymore, I'm trying to figure out the reason for that. It's not working in iTerm2 or RoyalTSX or Terminal.

enter image description here

On windows:

enter image description here

export PS1="\[\033[0;34m\]\[\033[0;32m\] ~B \[\e[0;42m\]\[\e[42m\] \u \[\033[0m\]\[\033[0;32m\]\[\033[44m\] ~B \[\033[0;34m\]\[\033[44m\]\[\033[0;30m\]\[\033[44m\] \w \[\033[0m\]\[\033[0;34m\] ~B  \[\033[1;36m\]$ \[\033[0m\]"  

Can I boot from "MSI" file? [closed]

Posted: 26 Apr 2022 12:04 AM PDT

I have a MSI file or let say it is a Windows installer. I can run the file inside the Windows and Windows will restart to load the setup in booting phase.

So I have an ISO file. In Windows, I have the tool from the vendor to wrap the ISO to MSI file then ISO can be boot without USB flash.

Is there any tools to create this "MSI" file? or is possible to create custom script to execute ISO file in booting mode?

Thanks.

diable\enable launchd daemon/agents

Posted: 25 Apr 2022 11:40 PM PDT

there are several launch daemons/agents that starts automatically and i wish they will not start automatically.

i have listed some services by running

$ launchctl list | grep -i 'safari\|siri\|photo\|map\|usernote\|contacts\|messages\|weather\|voice\|addressbook\|screentime\|game\|appstore\|speech\|airport\|location' | awk '{print $3}'  

running launchctl stop <name> is not persistent for (re)boot. given the list above, for each daemon/agent how can i:

  1. permanently stop it?
  2. kill its process?
  3. disable/enable it from/to automatically start on boot?

cmake / eigen / cannot find file

Posted: 25 Apr 2022 10:15 PM PDT

I've installed eigen through Homebrew and I'm trying to create a CMakeLists.txt file per the Eigen documentation:

cmake_minimum_required (VERSION 3.0)  project (myproject)  find_package (Eigen3 3.3 REQUIRED NO_MODULE)  add_executable (example example.cpp)  target_link_libraries (example Eigen3::Eigen)  

But my IDE (visual studio code) isn't able to locate the file when I invoke:

#include <Eigen/Dense>  

What's going on?

How do I play all songs shuffled of an artist?

Posted: 25 Apr 2022 09:56 PM PDT

I mean all songs of an artist that exists in Apple music.

The songs should include those that are not in my library.

I couldn't find a way on iOS or macOS.

Cannot copy files but can copy folders to SMB share

Posted: 25 Apr 2022 06:51 PM PDT

I've set up my Raspberry Pi to share an external HDD as a samba share. My clients are macOS 11.6 and 11.5.

I've followed the Samba Wiki page on how to configure samba to work better with Apple.

I can see and connect to my share. I can delete files and folders. I can rename and move them. I can copy directories to the Samba share. The only thing I can't do is copy over individual files. When I do this, I get error 100093.

These are my Samba global settings

min protocol = SMB2  vfs objects = fruit streams_xattr  fruit:metadata = stream  fruit:model = MacSamba  fruit:veto_appledouble = no  fruit:posix_rename = yes  fruit:wipe_intentionally_left_blank_rfork = yes  fruit:delete_empty_adfiles = yes  

Googling around I did find this discussion with a proposed fix that seems to have worked for others. I tried this, using the following Samba global settings

min protocol = SMB2  vfs objects = catia fruit streams_xattr  fruit:nfs_aces = no  fruit:metadata = stream  fruit:model = MacSamba  fruit:veto_appledouble = no  fruit:posix_rename = yes  fruit:wipe_intentionally_left_blank_rfork = yes  fruit:delete_empty_adfiles = yes  

Exact same behaviour and error.

Any idea what could be causing this?

Session count DECREASING in AppStoreConnect/TestFlight for my app

Posted: 25 Apr 2022 06:35 PM PDT

I'm seeing session counts DECREASE over time when I check TestFlight for my app. It has been in TestFlight for an extended period (over a year and half) while we've been creating a new and improved alternative. CLARIFICATION: Because users are using this, after nearly 90 days we create a new build, so they can continue testing the app.

I've been checking counts about once a month, and this month most of my users are showing a DECREASE in the sessions column from last month. I'm always (now) using the ALL TESTERS choice.

My desire is to start asking the most active users if they are ready to test the NEW app, using the session count as an (imperfect) guide.

Is there any way to add Slack to the Share menu on a Mac?

Posted: 25 Apr 2022 05:47 PM PDT

Pretty simple, I'd like to right click on a file, select Share > and have Slack be one of the sharing options. When I go into More... Slack is not an option.

I want to share a file over Slack with a coworker from the finder.

WhatsApp Videos not working after i upgrade my iphone

Posted: 25 Apr 2022 04:40 PM PDT

I just upgraded my iPhone recently I did backup for my WhatsApp using iCloud, but after installing WhatsApp in my new iPhone and restoring my chats all my VIDEOS are not working anymore. Videos are there but not playing and when I press the play button it's not changing.

And when I try to forward the video it says "can't forward. This video unavailable because it was not backed up"

I tried to search over the internet to find a solution but I couldn't.

Will be highly appreciate if any solutions available.

enter image description here

2nd photo link: https://i.postimg.cc/RVVSjH3Y/3-EA7-D6-DA-D771-4189-9708-2-D55-BA093624.jpg

Recommendations MacBook Pro (Retina, 13-inch, Late 2013) Bootcamp 120 GB

Posted: 25 Apr 2022 05:58 PM PDT

I'm considering installing bootcamp to play a single game Valorant on my Macbook. I'm clearing up storage space for this very purpose, and will have only 80 GB of free storage space to likely even partition when done.

For this reason I am considering using a SanDisk Extreme Storage (256GB) Micro SD to partition for bootcamp.

If I am only running a single game, what is reasonable amount of storage to run a game like Valorant, and would using an SD be necessary/ more efficient?

How can I update my iMac G4?

Posted: 25 Apr 2022 11:55 PM PDT

I have an iMac G4 and I want to update it to OS X 10.4.
I checked and all is OK, but I don't know were can I download the install DVD!
Can I use this https://archive.org/details/macosx10.4tigerretaildvd?
If yes, then would doing so be illegal?

Accessing a Whatsapp backup on iCloud Drive (Windows)

Posted: 25 Apr 2022 04:31 PM PDT

I am trying to retrieve a Whatsapp backup file that is stored on iCloud. I have found this thread which explains how to do that with a Macbook: accessing whatsapp icloud backup

I have a pc with Windows 10 so I installed iCloud drive on it, then tried to look for any hidden files from the command line, but I cannot find anything (used dir /a:h). When I click on the storage button in the icloud window, I can see there is 186MB for Whatsapp, which I think corresponds to the backup I am looking for.

Any advice on how I could access that Whatsapp backup file? Ultimately, I am trying to download the file, then will try to use a third-party software to try to load back in a new phone.

Thanks!

Finder and Terminal have different views of the system disc [closed]

Posted: 25 Apr 2022 09:24 PM PDT

MacBook Air 2017, macOS 10.15.7

The question below, now delimited by '---' has been closed by the Mighty Ones, and is not accepting answers.

I have now resolved it, thanks to a helpful comment by @Mike.

In Finder, I'd added a space to the folder name, 'ABC ' for 'ABC'.

bash reports "ABC: no such..." to either "cd ABC" or "cd ABC "

Please remove this text from the question, to allow an answer, which might help others. I've put it here, as my last reopen request was refused.


I can see a folder in Finder, but Terminal says 'No such file or folder.

There have been similar questions here, but none seem to address my particular problem.

Everything has been fine with this folder, Finder, and Terminal for several months, but this has suddenly happened, without warning.

I should really appreciate some help.

WD Hard Disk not Mounting/First Aid not Running

Posted: 25 Apr 2022 05:45 PM PDT

My hard disk has decided to not mount anymore. It has a partition, one I use for Time Machine and the other I use for storing files. This is what diskutil list looks like. Is my work all gone?

vinayakmenon@Vinayaks-Air ~ % diskutil list          /dev/disk0 (internal):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      GUID_partition_scheme                         251.0 GB   disk0     1:             Apple_APFS_ISC ⁨⁩                        524.3 MB   disk0s1     2:                 Apple_APFS ⁨Container disk3⁩         245.1 GB   disk0s2     3:        Apple_APFS_Recovery ⁨⁩                        5.4 GB     disk0s3    /dev/disk3 (synthesized):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      APFS Container Scheme -                      +245.1 GB   disk3                                   Physical Store disk0s2     1:                APFS Volume ⁨Macintosh HD⁩            15.2 GB    disk3s1     2:              APFS Snapshot ⁨com.apple.os.update-...⁩ 15.2 GB    disk3s1s1     3:                APFS Volume ⁨Preboot⁩                 626.0 MB   disk3s2     4:                APFS Volume ⁨Recovery⁩                798.1 MB   disk3s3     5:                APFS Volume ⁨Data⁩                    180.6 GB   disk3s5     6:                APFS Volume ⁨VM⁩                      24.6 KB    disk3s6    /dev/disk4 (external, physical):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      GUID_partition_scheme                        *2.0 TB     disk4     1:                        EFI ⁨EFI⁩                     209.7 MB   disk4s1     2:                 Apple_APFS ⁨Container disk5⁩         2.0 TB     disk4s2    /dev/disk5 (synthesized):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      APFS Container Scheme -                      +ERROR      disk5                                   Physical Store disk4s2     1:                APFS Volume ⁨DATA⁩                    ERROR      disk5s1     2:                APFS Volume ⁨My Passport for Mac⁩     ERROR      disk5s2  

disk4 and disk5 is where the problem lies. I am wondering what the solution is. When I am opening files like iBoySoft the files are there and clear to see that my hard disk has not been wiped. However, it will not mount.

Photos App is not showing left navbar / folders/volumes navigators

Posted: 25 Apr 2022 07:01 PM PDT

As can be seen there is no leftnav in the Photos app anymore.

enter image description here

I'm not sure what I did to cause it to disappear (after years of no issues). How can I get it back? There's no obvious way in the Menu:

enter image description here

iPhone photos taken on camera fail to show up in Photos for ten seconds

Posted: 25 Apr 2022 11:05 PM PDT

I take photos or screenshots frequently and then want to immediately send them to friends or share on social media.

Recently I have noticed it takes up to ten seconds for photos or screenshots to appear in my "Recents" album. When they first appear in the album they show up at low resolution and I can't select them, and then a few seconds later they show up at high resolution.

I have 150GB free space on a phone with 256GB total storage.

Curiously I noticed if I took a bunch of photos in a row - say, ten in five seconds - those photos showed up immediately.

I do not have iCloud photo sync enabled. I can also reproduce this effect if I have airplane mode turned on, ie. no Internet connection.

Has anyone ever seen this before? Do you know the possible cause?

How to find a Bluetooth Mouse

Posted: 25 Apr 2022 04:09 PM PDT

I have lost my Magic Mouse. To be clear, it's somewhere in my home office and it's powered on. I can pair with it via bluetooth. I just can't find the physical object. Does anyone know of a way to make it beep or flash or something so I can locate it?

Issue restoring iPhone from Mac backup using Finder

Posted: 25 Apr 2022 03:12 PM PDT

Edit: I upgraded to Monterey 12.1 and am still seeing the same issue. I've also updated the iPhone to the latest software version.

I have two phones, both iPhone XS running the latest iOS (15.1 or 15.2), that I backed up to my Mac yesterday from Finder. My Mac is on macOS Monterey 12.0.1. I am now having issues restoring those backups. I am experiencing the exact same issues restoring backup 1 to a new iPhone 13 and restoring backup 2 to an iPhone XS. So, the below applies to both phones:

Issue 1: When I plug my phone in and then select "Restore Backup" in Finder, the Finder hangs on "Erasing Phone", even though I can see that the phone has been erased and is now on the new phone setup screen. After waiting 30 minutes with no changes in Finder, I unplugged the phone (eject didn't work) and plugged it back in, and then Finder recognized the phone (the name updated to the name from the backup) and automatically shows "Restoring iPhone from backup". Nice. Maybe this isn't an issue, but I wanted to include these details

Issue 2: When the phone starts restoring from backup, the Finder initially shows the progress bar moving left and right (i.e. it feels like it's doing something but still deciding how long it will take), but after maybe 10-20 seconds, the progress bar shows completely filled, and there's no animation or indication that anything is happening. This is what I see:

Restoring from backup with progress bar filled

Meanwhile, my phone just shows the "Connect to Mac or to a PC with iTunes" screen and gives no indication that a restore is in progress. I can even tap "Back" and continue with setup.

I left my phone connected for several hours just in case it was working, but the screens never changed, so I disconnected my phone, and it is still in the initial setup state.

For Phone 1, I gave up and tried restoring from the old phone with Quick Start (holding the phones next to each other), and that failed three times in a row after almost two hours each time. I ended up backing up the old phone to iCloud and restoring that way, which worked great.

For phone 2, I no longer have the old phone, so restoring from this Mac backup is my only option.

How can I stop a bluetooth keyboard from waking my Macbook Pro?

Posted: 25 Apr 2022 03:48 PM PDT

I use my 2019 MacBook Pro with a Magic Keyboard via Bluetooth. When the MBP is in sleep mode, I can wake it up by pressing a key on the keyboard.

I would like to change it so key presses on the Magic Keyboard are ignored. I still want it to wake up easily otherwise - if possible by pressing any key on the integrated MBP keyboard, or by some other simple means (i.e. by a quick press on the on/off button).

I do not wish to turn off the Magic Keyboard, to disable Bluetooth or to disconnect the device in the Bluetooth settings.

Is there a way to achieve this? I checked the settings, and found no option to disallow a specific device to influence sleep mode...

Display Zoom on MAC

Posted: 26 Apr 2022 12:04 AM PDT

Is it possible to change how much the screen is zoomed in without the need to change the resolution?

I want something like on Windows:

enter image description here

What is eating up space inside Final Cut X bundles?

Posted: 25 Apr 2022 04:04 PM PDT

So here is the deal: I am backing up my HD, deleting all the media and keeping just the bundles. Usually it takes no more than 2MB, maybe 5MB. However some bundles are getting 10x more space. Like this one:

enter image description here

Often it is just about embedded render files (and then it can take several GB). No problem, I just get inside the package and delete the Render folder.

enter image description here

Now what is really odd, is that inside some packages, there is nothing using that space.

enter image description here

As you can see, I have already enabled hidden files to display. Could it be some sort of Finder refreshing issue?

This is my system: enter image description here

Why is the Data Roaming option missing from iPhone settings?

Posted: 25 Apr 2022 03:04 PM PDT

I am travelling internationally, and charges for Internet data are about $15 per megabyte. My provider doesn't offer a roaming package for that. I plan to add a second local SIM using eSIM. I want to be sure Data Roaming is off, even if Cellular Data is on.

Currently using an unlocked iPhone SE 2, with iOS 14.7.1.

According to this Apple help page: https://support.apple.com/en-us/HT201643 in order to turn off Data Roaming, I should: "Open Settings and tap Cellular, or Cellular Data, or Mobile Data. Turn off Cellular Data, then tap Cellular Data Options and turn off Data Roaming."

I did the above, as far as turning off Cellular Data. However, when I tap Cellular Data Options, there is no option for Data Roaming. There is only Low Data Mode. Why is it missing, and how can I assure that Data Roaming is off?

I understand that turning off Cellular Data should stop any data roaming charges. However, I don't want to make an expensive mistake, in case I accidentally turn on Cellular Data. I want to be sure that Data Roaming is off, even if Cellular Data is on. I don't want to experiment with turning on Cellular Data to see whether an option for Data Roaming appears.

El Capitan sidebar preferences not sticking

Posted: 25 Apr 2022 08:07 PM PDT

I had a hard drive failure and am temporarily using a machine which can only be brought up to El Capitan.

I have a sidebar problem that is driving me crazy. The configuration of the sidebar favorites is "stuck". If I make a change (such as reordering the list or deleting a folder), after a logout, the sidebar configuration reverts to one I made a long time ago.

I have tried trashing the Finder and Sidebar preferences, quitting the Finder, logging out and restarting with no joy.

I looked in com.apple.sidebar.plist and compared it to the file I have on my Yosemite machine and it is quite limited. Specifically, it is missing an entry called "favoriteItems" which has a child "CustomListItems" that seems to hold the info needed to make the sidebar look the way I want.

I have actually been having a lot of strange "things not sticking" issues on this machine - most seem to be solved, but this one isn't. I checked the permissions on my ~/library and ~/library/preferences files and I do have rw privileges

Is the sidebar favorites configuration stored differently on El Capitan vs. Yosemite?

preferences comparison

How to create a script with Automator to watermark each PDF in a folder with a different watermark?

Posted: 25 Apr 2022 05:01 PM PDT

I am trying to create a script to watermark a group a PDF files in a folder, each PDF has to have a unique watermark.

All the PDFs are in one folder, all the watermarks are in .png located in another folder. I currently have watermark script which I found on Apple Forums, but this was made to watermark all files with one watermark only.

What I need is a way to watermark each PDF file with it's own different watermark (there are 400 pdfs and 400 different watermarks)

Automator Screenshot

Here is the contents of the watermark tool.py:

#!/usr/bin/python  # Watermark each page in a PDF document    import sys #, os  import getopt  import math  from Quartz.CoreGraphics import *  from Quartz.ImageIO import *    def drawWatermark(ctx, image, xOffset, yOffset, angle, scale, opacity):      if image:          imageWidth = CGImageGetWidth(image)          imageHeight = CGImageGetHeight(image)          imageBox = CGRectMake(0, 0, imageWidth, imageHeight)                    CGContextSaveGState(ctx)          CGContextSetAlpha(ctx, opacity)          CGContextTranslateCTM(ctx, xOffset, yOffset)          CGContextScaleCTM(ctx, scale, scale)          CGContextTranslateCTM(ctx, imageWidth / 2, imageHeight / 2)          CGContextRotateCTM(ctx, angle * math.pi / 180)          CGContextTranslateCTM(ctx, -imageWidth / 2, -imageHeight / 2)          CGContextDrawImage(ctx, imageBox, image)          CGContextRestoreGState(ctx)    def createImage(imagePath):      image = None            # provider = CGDataProviderCreateWithFilename(imagePath)    # FIXED: replaced by the following CGDataProviderCreateWithURL()      url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, imagePath, len(imagePath), False)      provider = CGDataProviderCreateWithURL(url)            if provider:          imageSrc = CGImageSourceCreateWithDataProvider(provider, None)          if imageSrc:              image = CGImageSourceCreateImageAtIndex(imageSrc, 0, None)      if not image:          print "Cannot import the image from file %s" % imagePath      return image    def watermark(inputFile, watermarkFiles, outputFile, under, xOffset, yOffset, angle, scale, opacity, verbose):            images = map(createImage, watermarkFiles)            ctx = CGPDFContextCreateWithURL(CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, outputFile, len(outputFile), False), None, None)      if ctx:          pdf = CGPDFDocumentCreateWithURL(CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, inputFile, len(inputFile), False))          if pdf:                            for i in range(1, CGPDFDocumentGetNumberOfPages(pdf) + 1):                  image = images[i % len(images) - 1]                  page = CGPDFDocumentGetPage(pdf, i)                  if page:                      mediaBox = CGPDFPageGetBoxRect(page, kCGPDFMediaBox)                      if CGRectIsEmpty(mediaBox):                          mediaBox = None                                            CGContextBeginPage(ctx, mediaBox)                      if under:                          drawWatermark(ctx, image, xOffset, yOffset, angle, scale, opacity)                      CGContextDrawPDFPage(ctx, page)                      if not under:                          drawWatermark(ctx, image, xOffset, yOffset, angle, scale, opacity)                      CGContextEndPage(ctx)                del pdf          CGPDFContextClose(ctx)      del ctx    def main(argv):            verbose = False      readFilename = None      writeFilename = None      under = False      xOffset = 0.0   # FIXED: changed to float value      yOffset = 0.0   # FIXED: changed to float value      angle = 0.0     # FIXED: changed to float value      scale = 1.0     # FIXED: added      opacity = 1.0            # Parse the command line options      try:          options, args = getopt.getopt(argv, "vutx:y:a:p:s:i:o:", ["verbose", "under", "over", "xOffset=", "yOffset=", "angle=", "opacity=", "scale=", "input=", "output=", ])      except getopt.GetoptError:          usage()          sys.exit(2)        for option, arg in options:                    print option, arg                    if option in ("-i", "--input") :              if verbose:                  print "Reading pages from %s." % (arg)              readFilename = arg                    elif option in ("-o", "--output") :              if verbose:                  print "Setting %s as the output." % (arg)              writeFilename = arg                    elif option in ("-v", "--verbose") :              print "Verbose mode enabled."              verbose = True                    elif option in ("-u", "--under"):              print "watermark under PDF"              under = True                    elif option in ("-t", "--over"):    # FIXED: changed to "-t" from "t"              print "watermark over PDF"              under = False                    elif option in ("-x", "--xOffset"):              xOffset = float(arg)                    elif option in ("-y", "--yOffset"):              yOffset = float(arg)                    elif option in ("-a", "--angle"):              angle = -float(arg)                    elif option in ("-s", "--scale"):              scale = float(arg)                    elif option in ("-p", "--opacity"):              opacity = float(arg)                    else:              print "Unknown argument: %s" % (option)        if (len(args) > 0):          watermark(readFilename, args, writeFilename, under, xOffset, yOffset, angle, scale, opacity, verbose);      else:          shutil.copyfile(readFilename, writeFilename);    def usage():      print "Usage: watermark --input <file> --output <file> <watermark files>..."    if __name__ == "__main__":      print sys.argv      main(sys.argv[1:])  

Import Albums "From my Mac" to my iPhone albums and keep them synced

Posted: 25 Apr 2022 06:06 PM PDT

I don't use iCloud Photos. I wanted to import my iPhone photo albums to my Mac but it seems that without iCloud Photos it is not possible without any third party software according to my searches.

But I've found that I can create albums on Photos on my Mac and then sync with my iPhone. So I took time to recreate albums on my Mac. I factory reset my iPhone and then sync with my Mac. All the photos are back, even the albums, great.

BUT, the albums on my iPhone are "hidden" in the "From my Mac" section. Not in "My Albums". And I can't add photos to these albums on my iPhone. I could select all the photos and add them on a newly created album on my iPhone with the same name but.. I guess it will be out of sync.

Is it possible to keep the albums between my Mac and iPhone synced AND have the possibility to add photos to these albums on my iPhone ? Without iCloud Photos.

I've searched for a solution for the past two days and I don't know what to do anymore. It is supposed to be simple.. isn't it ? :(

Thanks

Permanently remove sidebar that pops up every time I open a tab in Safari

Posted: 25 Apr 2022 09:52 PM PDT

How can I permanently remove the sidebar that pops up every time I open a tab in Safari 9.1.3 on OS X El Capitan?

MacBook Air forgetting display arrangement

Posted: 26 Apr 2022 01:01 AM PDT

My Mac seems to be forgetting display arrangements for external monitors. It doesn't matter what type of connector it is (Tried Apple converter to VGA as well as non-apple to DVI). Within only a few hours after unplugging the display it will be reset.

Has anyone seen anything about similar issues? Is it maybe Mavericks-related?

1 comment:

  1. how to reset iphone to factory settings
    You might sometimes get stuck up in a situation where your apple iPhone is corrupted due to one or the other reason. It then calls for some action to be taken that helps to revive it back. Trying restart or soft reset is the first thing that you can go for.

    ReplyDelete