01-MacTips-ClassicOne

June 15, 2022

Accumulate MacTips encountered daily with "Qian Gu Yi Hao". Very helpful for first-time Mac users.

Cannot open xxx app because Apple cannot check if it contains malicious software

Solution: Go to Settings → Privacy & Security → Security Settings, and click the "Still Open" button to open the blocked app. This button is available for one hour after you attempt to open the app.

Reference: Apple cannot check if app contains malicious software


Installing Git on Mac with M1 chip

You don't need to install Xcode, which is several gigabytes in size. Simply install Command Line Tools for Xcode. After installation, Git will be available.

References:


Git clone error: Failed to connect to github.com port 443: Connection refused

Solution:

# This line may not be required
git config --global http.sslVerify "false"

# Key: replace 7890 with your proxy software’s port
git config --global https.proxy http://127.0.0.1:7890
git config --global http.proxy http://127.0.0.1:7890

References:


Alfred’s Auto-Paste on Return not working – How to fix

Solution:

  1. Open Alfred Preferences → Features → Clipboard History → Advanced. Ensure "Auto-Paste on Return" is enabled.
  2. Go to System Preferences → Security & Privacy → Privacy → Accessibility, and check the box next to Alfred.

Remapping external keyboard keys

Swap Command and Option keys.


Should you shut down your Mac?

My view:

  • If you use your Mac daily, keep it in sleep mode instead of shutting down.
  • If you don’t use it often, shut it down.

See this article for details: Should you shut down your Mac? | MacTips


Resetting SMC

If a Type-C port on your MacBook Pro stops working (charging works, but HDMI and USB/network don’t), reset the SMC.

Resetting SMC is a common Mac fix for power, backlight, screen brightness, and charging issues. Many users don’t know about it.

Steps:

  1. Shut down your Mac.
  2. On the built-in keyboard, press Shift-Control-Option on the left side, and simultaneously press the power button. Hold all keys for 10 seconds. (On MacBook Pro with Touch ID, the Touch ID button is the power button.)
  3. Release all keys.
  4. Press the power button again to turn on your Mac.

Clean up app leftovers after uninstalling

Even after deleting an app, residual files may remain on your hard drive. These files are small, but if you reinstall the app later, they may be reused. If you won’t use the app again, remove them completely.

Steps:

  1. Open Library: Hold the ⌥ Option key, click “Go” in the menu bar, and select “Library”.
  2. Delete cache: In the Application Support folder, remove the app’s folder.
  3. Delete preferences: In the Preferences folder, delete the app’s preference files.

Tip: Run this Terminal command to permanently show the Library folder:
chflags nohidden ~/Library

Reference: wikiHow


Mac WeChat backup issue (20180218)

Issue: The Mac version of WeChat can backup mobile chat records to your computer, but it says the phone and computer are not on the same network, even though they are. The phone shows the Wi-Fi name, while the computer shows “***’s MacBook”.

Solution: Change the computer’s name in “Settings → Sharing” to match the Wi-Fi name. This allows backup.

Note: I tried this online solution, but it didn’t work for me.


Computer screen lock issue (20180220)

Issue: After closing the lid (or pressing the lock key on Touch Bar), reopening the laptop doesn’t lock the screen.

Solution: Go to “System Preferences → Security & Privacy → General → Lock Screen”, and set “When sleeping or starting screen saver” to “Immediately”.


Editing the hosts file

In Finder, click “Go” → “Go to Folder”, enter /private/etc/, then locate the hosts file.


Cancelling iQiyi membership auto-renewal on iPad


Connecting Android phone to Mac


Local network sharing on Mac

Reference: Baidu Zhidao


Setting birthday reminders in Mac Calendar

  1. Enable iCloud calendar sync.
  2. Set birthdays in Contacts using lunar calendar.
  3. Set reminder time in Calendar (default: one day before).

20180725_1918.png


Mac WeChat backup error: “Please connect your phone and computer to the same network”

Issue: My Mac and phone are on the same network, but WeChat still prompts “Please connect your phone and computer to the same network”.

Solution: Change the computer’s name in “Settings → Sharing” to match the Wi-Fi name.


Zoom in/out WeChat window on Mac

Shortcut: Cmd + +/-


Managing iCloud storage (014)

  • On iPhone/iPad/iPod touch (iOS 10.3 or later): Go to “Settings” → “[Your Name]” → “iCloud”, then tap “iCloud Storage” or “Manage Storage”.

  • On Mac: Go to Apple menu → System Preferences → Apple ID (Internet Accounts) → iCloud → Click “Manage”.

  • On PC: Open Windows version of iCloud.

  • On supported browsers: Sign in to iCloud.com.

Reference: Apple Support - Manage iCloud Storage


Customizing Markdown style in Mac Evernote

References:

Steps:

  1. Download vue.css and the vue folder containing fonts from the theme. Copy them to /Applications/印象笔记.app/Contents/Resources/common-markdown-mac/.
  2. Edit index.html in that directory, and add this line before the closing </html> tag:
<link href="vue.css" rel="stylesheet">
  1. Restart Evernote.

Result:

【Additional Customization】

  1. Increase paragraph spacing: In vue.css, find:
.tui-editor-contents p {
    line-height: 1.6rem;
    word-spacing: .05rem;
}

Modify it to:

.tui-editor-contents p {
    line-height: 1.6rem;
    word-spacing: .05rem;
    margin-bottom: 1.2rem;
}
  1. Change H2 title font size and color: Find:
.tui-editor-contents h2 {
    font-size: 24px;
    border-bottom: 1px solid #ddd;
    color: #2c3e50
}

Change to:

.tui-editor-contents h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #ddd;
    color: #24292e
}

You can also change H3 font size to 1.25rem.


Make Dock show only open applications

I rarely use this feature; it’s not my habit.

Background: By default, the Dock shows not only open apps but also recently opened ones (regardless of whether they’re open).

This “show everything” behavior can

Article Title: 01-MacTips-ClassicOne

Author:

Published: June 15, 2022

Copyright: This article is licensed under CC BY-NC-SA 4.0 . Please keep attribution when reusing.

Related Posts

12/31/2021

Using Sketch

Master the usage techniques of Sketch design software, covering practical features such as artboard management and export settings, to enhance UI design efficiency on Mac.

Comments