<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>MacOS on Lin's Blog</title><link>https://coder.tw/en/tags/macos/</link><description>Recent content in MacOS on Lin's Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 17 Sep 2017 13:36:54 +0000</lastBuildDate><atom:link href="https://coder.tw/en/tags/macos/index.xml" rel="self" type="application/rss+xml"/><item><title>Fixing Google Drive on macOS Defaulting to Simplified Chinese</title><link>https://coder.tw/en/posts/google-drive-macos-simplified-chinese-fix/</link><pubDate>Sun, 17 Sep 2017 13:36:54 +0000</pubDate><guid>https://coder.tw/en/posts/google-drive-macos-simplified-chinese-fix/</guid><description>&lt;p&gt;After installing Google Drive on macOS, I suspected it was a bug in the program. Even though my system language is set to Traditional Chinese, Google Drive displayed Simplified Chinese. It looked really unfamiliar, so I researched it and found a fix to share with everyone.&lt;/p&gt;
&lt;p&gt;Just open Terminal and enter the following command, then restart Google Drive, and it will switch to Traditional Chinese:&lt;/p&gt;
&lt;pre&gt;defaults write com.google.GoogleDrive AppleLanguages '("zh-TW")'&lt;/pre&gt;</description></item><item><title>iOS Packet Sniffer on macOS</title><link>https://coder.tw/en/posts/ios-packet-sniffer-on-macos/</link><pubDate>Thu, 02 Feb 2017 18:37:10 +0000</pubDate><guid>https://coder.tw/en/posts/ios-packet-sniffer-on-macos/</guid><description>&lt;p&gt;When developing iOS apps, or when doing things you&amp;rsquo;d rather keep under wraps, you may need to capture packets. For capturing packets on a computer, Wireshark is the top choice. But what if you want to capture packets on your iOS device (iPhone, iPad)? You could set up a proxy and have the iOS device connect through it, or jailbreak and run tcpdump on the device. But both approaches are too troublesome. Here I recommend the rvictl command included in the Xcode Command Line Tools. It requires no complicated setup or jailbreak, and with just one command you can capture packets on your computer using any software.&lt;/p&gt;</description></item><item><title>Using Command to Display Notification on macOS</title><link>https://coder.tw/en/posts/using-command-to-display-notification-on-macos/</link><pubDate>Thu, 19 Jan 2017 01:32:57 +0000</pubDate><guid>https://coder.tw/en/posts/using-command-to-display-notification-on-macos/</guid><description>&lt;p&gt;macOS has a handy Notification Center. You can write a program to send messages to it, and they&amp;rsquo;ll appear on screen just like on iOS. But if all you want to do is send a message, you can do it with a single command in Terminal! You don&amp;rsquo;t need to learn Objective-C or Swift to use macOS&amp;rsquo;s notification feature. For example, while you wait for tests to run, you might want to make good use of the time by reading some documentation. In that case, you can use Notification to tell you when the tests have finished. You don&amp;rsquo;t have to worry about getting so absorbed in your reading that you forget the tests are still running, and when they finish, you&amp;rsquo;ll get a notification right away, so not a moment is wasted! Of course, tests aren&amp;rsquo;t the only use. Because this Notification works as a command, any program run in Terminal can do the same thing!&lt;/p&gt;</description></item><item><title>macOS Screenshot Shortcuts, File Format, and Save Location Settings</title><link>https://coder.tw/en/posts/macos-screenshot-shortcut-format-location/</link><pubDate>Sun, 01 Jan 2017 10:00:26 +0000</pubDate><guid>https://coder.tw/en/posts/macos-screenshot-shortcut-format-location/</guid><description>&lt;p&gt;One of the reasons I like the Mac is that it comes with many useful built-in features, such as screenshots and image editing. Windows has these features too, but they&amp;rsquo;re pretty much useless, so you end up installing a bunch of apps anyway. Today I&amp;rsquo;ll show you that Mac OS already has a very powerful screenshot feature! You can even set where screenshots are saved, their format, and more!&lt;/p&gt;</description></item><item><title>How to Install Unverified Apps on macOS Sierra</title><link>https://coder.tw/en/posts/macos-install-unverified-apps-sierra/</link><pubDate>Sat, 31 Dec 2016 00:49:12 +0000</pubDate><guid>https://coder.tw/en/posts/macos-install-unverified-apps-sierra/</guid><description>&lt;p&gt;Sometimes when we install apps on Mac OS, the system shows the message &amp;ldquo;“OOO” cannot be opened because it is from an unidentified developer.&amp;rdquo; In the past, we all knew that you only had to go to the Security &amp;amp; Privacy settings in System Preferences and allow apps downloaded from anywhere. But after macOS Sierra, the &amp;ldquo;Anywhere&amp;rdquo; option mysteriously disappeared! In fact, Apple hid this option to keep users from installing malicious programs. But an unverified app isn&amp;rsquo;t necessarily malicious. Many useful apps aren&amp;rsquo;t certified by Apple for various reasons. For example, some apps use system permissions, or the developer hasn&amp;rsquo;t bought a developer program (because it costs money!!!), so they can&amp;rsquo;t get Apple&amp;rsquo;s certification. It&amp;rsquo;s hard to justify not letting us use them just for that, right!&lt;/p&gt;</description></item><item><title>AES Encrypt/Decrypt File on Mac OS</title><link>https://coder.tw/en/posts/aes-encryptdecrypt-file-on-mac-os/</link><pubDate>Wed, 28 Dec 2016 14:06:30 +0000</pubDate><guid>https://coder.tw/en/posts/aes-encryptdecrypt-file-on-mac-os/</guid><description>&lt;p&gt;When you need to send sensitive data through Facebook or email, such as a Google API token or a company&amp;rsquo;s annual accounts, do you really trust those online services? Personally, I don&amp;rsquo;t. There are too many possibilities, from hacker attacks to poor internal controls at a company that let employees view customer data. Because of these possibilities, I&amp;rsquo;m not really willing to send confidential data over the internet. But in this day and age, sending data without using services like email or Facebook Messenger is almost impossible. In that case, you can use AES to encrypt the file, and then share the password through a channel you trust, such as a phone call or in person. Or at the very least, send the password through a different channel than the file, to reduce the risk of everything being compromised at once.&lt;/p&gt;</description></item><item><title>macOS: How to Show Keystrokes on Screen for Recording and Live Streaming</title><link>https://coder.tw/en/posts/macos-show-keystrokes-on-screen/</link><pubDate>Sat, 24 Dec 2016 01:11:49 +0000</pubDate><guid>https://coder.tw/en/posts/macos-show-keystrokes-on-screen/</guid><description>&lt;p&gt;Online courses are very popular now, and many people record their courses as videos to share online. Whenever I record this kind of &amp;ldquo;computer tutorial video,&amp;rdquo; I always wonder how to show the keys you press. Sometimes you&amp;rsquo;re used to pressing Ctrl + C to copy a piece of text, but viewers can&amp;rsquo;t tell what you did when they watch the video. Some recording software can capture keystrokes too, by building a virtual keyboard into the recording whenever you press a key. But besides recording software itself, there are also apps that can display the keys you press directly on screen! Besides live streaming and online courses, it&amp;rsquo;s also very handy for in-person lectures and talks!&lt;/p&gt;</description></item><item><title>Homebrew - Error: Unknown command: cask</title><link>https://coder.tw/en/posts/homebrew-error-unknown-command-cask/</link><pubDate>Fri, 23 Dec 2016 02:11:29 +0000</pubDate><guid>https://coder.tw/en/posts/homebrew-error-unknown-command-cask/</guid><description>&lt;p&gt;If you&amp;rsquo;re a Mac developer, you&amp;rsquo;re surely familiar with Homebrew, and you&amp;rsquo;ve probably used brew-cask to install apps. Today, when I tried to install a program with brew cask, I kept getting the error &amp;ldquo;Error: Unknown command: cask&amp;rdquo; every time I ran brew cask install xxx, even though I had confirmed that brew cask was installed successfully. After searching the issues, I learned that this seems to be a bug in an older version, which has since been fixed.&lt;/p&gt;</description></item><item><title>Quickly Moving the Cursor in Terminal on macOS</title><link>https://coder.tw/en/posts/macos-terminal-cursor-movement/</link><pubDate>Wed, 14 Dec 2016 01:14:21 +0000</pubDate><guid>https://coder.tw/en/posts/macos-terminal-cursor-movement/</guid><description>&lt;p&gt;Since I&amp;rsquo;m really sleepy, let&amp;rsquo;s keep it simple and share something small today! Whenever I use vim or Terminal and run into a super long command, I find it annoying to press the arrow keys forever just to get to the position I want. Today I&amp;rsquo;ll share three ways to quickly move the cursor to a specific spot.&lt;/p&gt;</description></item><item><title>Get File MD5, SHA1 Checksum on Mac OS</title><link>https://coder.tw/en/posts/get-file-md5-sha1-checksum-on-mac-os/</link><pubDate>Sun, 11 Dec 2016 10:00:03 +0000</pubDate><guid>https://coder.tw/en/posts/get-file-md5-sha1-checksum-on-mac-os/</guid><description>&lt;p&gt;On Windows, I was used to installing a separate program for everything: one to view images, one to browse PDFs, and another to calculate a file&amp;rsquo;s MD5 or SHA1. On Mac OS X, you don&amp;rsquo;t have to go through all that trouble! If you want to calculate the MD5 or SHA1 checksum of a file, there is a built-in tool for it.&lt;/p&gt;</description></item><item><title>MacBook Air 2013 Unboxing: Claimed to Have the World's Longest 12-Hour Battery Life</title><link>https://coder.tw/en/posts/macbook-air-2013-unboxing/</link><pubDate>Fri, 12 Jul 2013 22:20:59 +0000</pubDate><guid>https://coder.tw/en/posts/macbook-air-2013-unboxing/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2013/07/P1040216.jpg"&gt;&lt;img class="alignnone size-large wp-image-6269" alt="P1040216" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2013/07/P1040216-520x347.jpg" width="520" height="347" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Since I was about to start university, and Apple had just released the new-generation MacBook Air, I couldn&amp;rsquo;t resist and splurged on one. The biggest highlight of this year&amp;rsquo;s MacBook Air is its 12-hour battery life. When I saw that line at the launch event, I thought they were joking. But later reviews from overseas confirmed it&amp;rsquo;s real, and that&amp;rsquo;s what made me really want to buy it. With such long battery life, I don&amp;rsquo;t need to bring the power adapter when I go out, and I don&amp;rsquo;t have to worry about running out of power halfway through. For someone like me who goes out often, that&amp;rsquo;s very convenient. Besides the long battery life, it has many other updates, such as 802.11ac wireless networking, a super-fast SSD, and the new-generation Intel Haswell processor, among others.&lt;/p&gt;</description></item><item><title>Still Using Mouse Gestures? Try the Cooler Screen Hotspots</title><link>https://coder.tw/en/posts/screen-hotspots-alternative-to-mouse-gestures/</link><pubDate>Sat, 12 Dec 2009 15:28:22 +0000</pubDate><guid>https://coder.tw/en/posts/screen-hotspots-alternative-to-mouse-gestures/</guid><description>&lt;p style="text-align: center;"&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2009/12/2009-12-12_150818.jpg"&gt;&lt;img class="size-large wp-image-2365 aligncenter" title="2009-12-12_150818" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2009/12/2009-12-12_150818-304x400.jpg" alt="2009-12-12_150818" width="304" height="400" /&gt;&lt;/a&gt;&lt;/p&gt;
If you're still using old-fashioned mouse gestures, you're behind the times! In this article I'd like to introduce a program called &lt;strong&gt;Screen Hotspots&lt;/strong&gt;. It was designed by Jeremy (Cang Hai), a friend of the site owner, and it's modeled on the &lt;strong&gt;Screen Hotspots&lt;/strong&gt; feature on Mac OS. &lt;strong&gt;Screen hotspots&lt;/strong&gt; work a lot like mouse gestures, except that with mouse gestures you have to draw a shape with the mouse, while with &lt;strong&gt;screen hotspots&lt;/strong&gt; you just move the mouse to a certain spot on the screen to run a preset action. Screen hotspots were never available on Windows before, but now Cang Hai has developed this &lt;strong&gt;Screen Hotspots&lt;/strong&gt; program, so Windows users can enjoy this fun feature too!</description></item></channel></rss>