Several times after I force-restart my Mac (recently in High Sierra), I found Safari lost all its saved passwords. It seems the Mac loses the keychain containing these passwords. The solution may be simple:
Go to System Preferences -> iCloud, if “Keychain” is unchecked, check it. Then all passwords should be accessible in Safari again.
Tag: tools
IntelliJ install Google Java style
- Download intellij-java-google-style.xml from GitHub: https://raw.githubusercontent.com/google/styleguide/gh-pages/intellij-java-google-style.xml
- On Mac, IntelliJ Preferences -> Editor -> Code Style -> Java -> (Click “Gear” icon) -> Import Scheme -> Import IDEA code style XML
IntelliJ IDEA Notes
- Disable “duplicated code” detection
- Settings → Editor → Inspections → General → Duplicated Code
- (Or better) in the source code, use @SuppressWarnings(“Duplicates”)
- Ref.: stackoverflow
- Show source file structure
- From menu: “View” -> “Tool Windows” -> “Structure”
- Quick key: CMD + 7
- Reformat all codes under a folder: in Project view, select the folder, then Code -> Reformat Code
Useful Android apps for power-related measurement
1. Keep screen from dimming: Stay Alive!
2. Sync system time with NTP: ClockSync