New answers tagged

0

The simplest answer to your question is: For efficiency. As others have said in their answers, files are displayed using a more compact notation than raw binary code, because raw binary code is unfathomably inefficient as a means of communicating data. Take the ps program you displayed using vi. I'm not sure about the MacOS version of the command, but on my ...


-2

you can click in the close box for the tab or window displaying the page. It should not reappear unless you visit site again.


0

I would recommend using ARD for trusted IT management and something like screens express to invite a share on demand. https://edovia.com/en/screens-express/


0

We set the user default on all machines and then automate changing it right before an IT / Admin connection needs to be made and then reset the default after the support engagement. The command you need to craft is two versions of kickstart and then your admin can send the less restrictive command over ssh/ARD, then screen connect, then rest the default ...


0

Fn is usually evaluated within the keyboard, before transmission. It doesn't generate its own event. According to Key Codes, Fn Opt ⌥ Backspace ⌫ generates this data... Key Down Characters:  Unicode: 63272 / 0xf728 Keys: ⌥⌦ Key Code: 117 / 0x75 Modifiers: 8913216 / 0x880140 ⓘ Maybe you could use that to initiate ...


-1

I use a very useful tool, DriodID [http://suyashsrijan.com/droidid/][1] to unlock my Macbook Pro 2017 using my android.


5

As you are already using awk and are looking for a simple solution: awk -F/ '{n=split($3, a, "\."); printf("%s.%s", a[n-1], a[n])}' <<< 'http://www.example.com/index.php' ^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ | | | | | last two ...


4

Parsing URLs with Bash The following questions should provide a good starting point: Parse URL in shell script Parse below URL in bash @pjz's answer breaks apart a URL into more manageable parts: #!/bin/sh INPUT_URL="https://www.amazon.com/gp/product/B007B60SCG/ref=ox_sc_act_title_1?smid=ATVPDKIKX0DER&psc=1" # extract the protocol proto="`echo $...


0

I would approach this a little differently to (hopefully) simplify things a little! Let's assume you will use Rows 4, 7, 10, etc to enter the text of your words/sentences (which is the approach in your screenshot). Let's also assume that you're only going to use Columns C to W to enter your text into (although there's no reason why it can't be more columns,...


2

The low hanging fruit is to make an alias in your shell to avoid having to type sudo Assuming bash, add this to your ~/.bash_profile (or other dot file of choice) alias mtr=‘/usr/bin/sudo /usr/local/sbin/mtr’ Then close your command / shell / window or paste the alias command after saving it for next shell start to be active. I would recommend against ...


2

Refer to this macOS upgrade instructions webpage, (currently it refers to macOS Mojave): macOS - How to Upgrade Upgrading from OS X Snow Leopard or Lion If you’re running Snow Leopard (10.6.8) or Lion (10.7) and your Mac supports macOS Mojave, you will need to upgrade to El Capitan (10.11) first. Click here for instructions.


1

It may be asking you for the iCloud account that was originally used on the machine. Try to get the iCloud account/password that was originally used on the machine, if it was a company machine, and de-register it with that iCloud account so you can register it on yours. There may be no need to buy a license. If the current OS is Mavericks or higher, ...


0

I have taken user3439894's solution and modified it to work on the same error that theonlygusti's found because I was also running into that problem. The following script is a massive hack, but the general idea is sometimes the rotation tab is window 1 and sometimes it is window 2. To solve this I used a try catch block that will just try the first one and ...


0

Solution: Go to https://www.icloud.com/#settings You can then select to restore Reminders. Restore back to the earliest date available and it will work again (Although you can no longer access them on iCloud via the web). This will also cause Calendars to be restored, so before restoring, either back up your calendars. You can also install a Google ...


0

In your specific case With the command you used, if dd encountered errors it just stops. So if no errors were reported when you used it, then you are good to go: there are no meaningful differences in your case as described. The main difference is it will increase your chances of success when working with a damaged drive: Making an image/clone of a damaged ...


1

No, there's no difference when you have a byte-for-byte identical clone as you have. And yes, data recovery software should work the same for an original drive as for an image-based clone. In other cases than yours there could be a slight difference - namely when we're dealing with defective hardware. If you have a broken hard drive for example it might be ...


0

Signing with Apple Developer ID worked out. DMGs and PKGs are created and installed just fine on MacOS, well up to version 10.14. From macOS 10.15 Apple made developers notarize their applications otherwise Gatekeeper will not allow them to be installed. I am using SnifX frameworks which simply creates and bundles via Maven a Spring-based Java application to ...


8

Nearly all modern computers deal with bytes, instead of the individual bits. A single byte, as you may know, can store any of 256 different values; from eight zeroes to eight ones. When you open the binary file in a text editor, it is showing you these byte-sized chunks instead of each individual bit. The symbols it picks are determined by your editor's ...


1

I had this same issue. Confusingly, Final Cut puts this in your "Music" folder in your home directory. The full path for me (on Mojave with Final Cut 10.4.6) is: /Music/iTunes/iTunes Media/Home Videos


1

It's not required that you declare your array upfront, but if you do, you need to use the lower case "a"; not the capital. declare -a listofnames Secondly, you need to use numerical indicies when referencing an array element listofnames[one] <----- incorrect listofnames[1] <----- correct So, for your two elements, it should look like this: ...


6

Start vi in binary mode - then you can run xxd to get hex view, binary view and edit the file as you would. (Of course most of these are read-only, but that's not about the editor and more the permissions/SIP). vi -b /bin/ps Then to convert the buffer to bits of 1 and 0 :%!xxd -b Then you can see all the Mach-0 executable binary goodness, right from ...


0

We have some 2019 MBPs that return different year models for the two one-liners posted by tabrindle. His first one-liner (using sysctl -n hw.model) returns 2018 for a 2019 model: Wrong: 15" MacBook Pro with Thunderbolt 3 and Touch ID (Mid 2018) But his second one-liner (using system_profiler SPHardwareDataType) returns the correct name: Right: MacBook ...


26

There are two interpretations of the word binary. In terms of number system, it refers to a base 2 number system which uses two symbols, 0 and 1. When speaking of a file, it refers to a file containing non-textual data (executables, libraries, data files etc.). A binary file that can be run as a process is called an executable binary. A file being binary ...


1

I recommend Pacifist from Charlessoft. This will open any .pkg file and show you the files, and where they will be installed to. You can also inspect pre- and post- install shell scripts, if present, and see what they do.


2

In general it is not possible to figure out after the fact what was done - unless you have backups. If you have a recent backup from just before the installation, you can do a comparison with your current system to locate the differences. This is the “safest” method (I.e. least likely to miss something). It is also possible to analyze the installer file ...


0

A nice app I found to stop this behavior is noTunes. It will run in the background and prevent iTunes from launching. It can be disabled in one click to make iTunes accessible again.


2

The MP500 and MP600 are Canon all-in-one printer/scanners. TWAIN is a driver protocol for exchanging information with scanners. MPXXX.ds files are Canon drivers for the scanner component of these AIO printers. Canon documentation indicates they can be removed by opening "Library, Image Capture, and TWAIN Data Sources, and move Canon MPXXX.ds to the trash",...


0

I've had this problem on PCs too. Turned out to be my router. I replaced it with a Ubiquiti Unifi LR Access Point and that fixed all of my issues. The Unifi is a little harder to setup because it has a software controller but the speeds are insane. I get 50-75 Mbps downloads frequently. The TX rate in the picture you posted is literally 108.37 MB/Sec so ...


1

Simple ... Uninstall Sophos. Check with Sophos on how to uninstall. Simple put, Apple attempts to provide all the malware detection and removal you need in Mac OS X. "Effective defenses against malware and other threats" by John Galt https://discussions.apple.com/docs/DOC-8841 "Avoid phishing emails, fake 'virus' alerts, phony support calls, and other ...


1

Dr Google says... Download Titles Again If you are still having issues with the downloaded titles, be it blank pages or wrong book, delete the downloaded book. Next, go to your account’s purchased section under Reading Now or for iBooks, visit your account settings in the iBooks Store and re-download the title. This likely solves your issues even when you ...


0

I ended up: sharing the contact with myself renaming the original adding the shared one


1

This is a puzzler and at first I was thinking, "wonky keyboard or keyboard controller." But before I go blaming hardware it would be best to see if the issue is related to software. Most, if not all, keyboard customizations are done on a user by user basis and if they are not set in System Preferences they would be set by something that ran at login or ...


1

WiFi devices will reduce speeds if they detect too many errors at the higher rates. For example, in your screenshot, your WiFi radio has negotiated a fairly decent RF speed (MCS 9, 867Mbps) with the router. (It would be interesting to see what the router says, as Tx and Rx can differ.) Over time, radio link quality changes, causing the radios at both ends ...


2

You can use Activity Monitor that comes with MacOS in Applications>Utilities Choose Window>GPU History or press ⌘4


1

I have the same problem and solve it by the following approach. choose System Preferences select the Keyboard option Select the Input Sources tab, and then check the box next to Automatically switch to a document’s input source option Source: https://www.tech-recipes.com/rx/53194/os-x-switch-language-input-sources-automatically/


1

Dedicated Tools Given the problems encountered with curl and AppleScript, consider using an alternative dedicated tool such as Beautiful Soup. See How To Scrape Web Pages with Beautiful Soup and Python 3 for a comprehensive introduction. Alternatively, there are numerous tools other that can help, see Web scraping software on Wikipedia. Many of these tools ...


18

You’ve done a pretty good job so far of troubleshooting this yourself and there are many things that prevent sleep out of the box and by design. What I would do next is exactly what you’re asking about - a targeted check to see if an application is what’s stopping your Mac from going to sleep. To do this, follow these steps: The next time your Mac isn’t ...


3

macOS Catalina and iOS 13 brings a completely rebuilt Reminders app, which requires a new database. On first launch of Reminders the database will be upgraded. Upgraded iCloud reminders cannot be viewed on devices running macOS prior to Catalina and iOS prior to 13. Currently, as both macOS Catalina and iOS 13 are in beta, upgraded reminders are not ...


1

If you don’t use iCloud to sync your library, it’s super easy to archive off a copy of your Photos database (in addition to your normal backup) and then just run the import and see how bad or good a job Photos does at not importing duplicates. Many situations, you’ll have a great import and be done. Before I cared about the faces metadata, I did also ...


0

The common cause of a bus powered drive not operating is the computer isn’t getting enough power through the cable you are using to power the unit. USB external hard drive is mounted on one MacBook Pro but not another External hard drive not recognised by MacBook Pro. USB Hard drive has very small chance of being recognized by Macbook Pro each time it is ...


0

You can import an image from a scanner and print it in Preview, though this is not completely scriptable, but will only take a few clicks. PDF Pen can import from a Scanner and Print the results, and is fully AppleScriptable.


-1

I've looked into this question as well, and it appears that the "Data Added" attribute (kMDItemDateAdded) can be queried from mdls (but not xattr), but cannot be set. There is no option for it in the setattrlist function. The comments on this SO question go into a little (but not much) more detail. The "Date Added" value appears to be derived from some other ...


1

I ran into this same problem with my son, I googled and found a post where someone suggested to check MacintoshHD/Library/Application Support/Apple/ParentalControls/Users But when I did I found that "Users" was locked. I tried to chmod the settings to 777 and was blocked, so I sudo changed the settings with: $ sudo chmod 777 Users/ For the non-native ...


1

The closest thing to getting IO r/w info is iotop command, which comes with all Mac OS (see disk_r and disk_w). $ sudo iotop 2019 Jul 15 22:39:17, load: 1.19, disk_r: 0 KB, disk_w: 628 KB UID PID PPID CMD DEVICE MAJ MIN D BYTES 0 1 0 launchd ?? 1 2 W 643072 0 0 ...


4

At minimum, you need to consult with your boss. Together you should decide if you should contact you employer's lawyers, Apple's legal department or both. If you do not follow the rules, you put yourself and your employer at risk. I found the following quote on the macOS appstore: You can install apps on every Mac authorized for your personal use https:/...


2

I also suffered from this problem after installing a software to use a wireless projector. Though the name is not ESHOW but DongleAudio in my case, I guess this works for you. In Terminal.app, cd /Library/Audio/Plug-Ins/HAL Remove the driver by rm -rf ESHOW.driver or rm -rf DongleAudio.driver Reboot your Mac I hope this helps.


3

I'm the owner of Intel Power Gadget on macOS. Which core's frequency and temperature are shown by the Intel Power Gadget tool? On any Intel processor prior to Icelake, all cores run at the same frequency. In the current version of Power Gadget, frequency is read from a package scope register, so it's not reading a specific core's frequency. A future ...


1

Aren't there drivers or kernel extensions too? Yes, apparently Parallels does use kernel extensions. If in the Finder we select Parallels Desktop.app and context-click to choose Show package contents, we can navigate to nested folder Contents > Library > Extensions > 10.9 to find some .kext files such as prl_hypervisor.kext. Are such kernel extensions ...


3

VCF files are just text files, so you can edit them in every text editor. Right-click on VCF file Select "Open with" and then "Textedit.app" Change whatever field you want to change (N and FN are typical fields to change if you want to change the name) Use "Save as" to save with a new file name PS: See https://en.wikipedia.org/wiki/VCard#Properties for ...


1

There is no downgrade option available which let's you 'go back to a previous macOS version'. Most Mac Apps automatically convert your Photo, Mail or iTunes files to a newer database version. So you won't be able to import Mails out-of-the-box from Mail (Mojave) into Mail (El Capitan). You will need to backup your data, first Erase your disk or volume ...


Top 50 recent answers are included