Problem:
How do I exit XQuartz full-screen mode?
Solution:
When in XQuartz:
- Press the keyboard shortcut Command-, (command + comma)
- Uncheck full-screen mode in the preferences
How do I exit XQuartz full-screen mode?
When in XQuartz:
How do I take a screenshot of the Touch Bar on a Mac?
To take a Touch Bar screenshot and...
The shortcuts in the solution above are defaults. They can be configured by going to "System Preferences" -> Keyboard -> Shortcuts -> "Screen Shots", and setting new shortcuts.
The how-to was verified to work in macOS 10.12.6 on a MacBook Pro with a Touch Bar. Your mileage may vary with other OS versions.
I have a USB-to-Serial adapter that I need to use on a Mac. How do I configure it, and how do I read/write to it?
I am already partially familiar with using serial ports on Linux and Windows.
This post is written as a reminder and contains just enough information to reproduce these steps in the future. It is not thorough. A little Google may be required in order to clarify or expand on some points.
The following steps were verified to work with macOS 10.12.6, with a very specific USB-to-serial adaptor that happened to work fine with Apple's default drivers. Your mileage may vary with other configurations and devices.
To find out some basic information about your USB-to-Serial adapter, use the following steps.
To configure your USB-to-Serial adapter speed, etc., for use with other apps on your Mac, use the following steps.
How can I change my timezone to UTC in Ubuntu?
sudo dpkg-reconfigure tzdata
If all goes well then the "date" command should show the date and time in UTC.
I am running Lubuntu in VirtualBox. I want to output to guest COM1, and send this feed to a physical serial port on COM6 on my host machine.
To output to COM1 in Lubuntu VirtualBox guest:
How do I rename a local git branch using git command line?
If you'd like to rename the currently checked-out branch to "new_branch_name":
git branch -m new_branch_name
If you'd like to rename any branch ("old_branch_name") to "new_branch_name":
git branch -m old_branch_name new_branch_name
How do I get a local git branch to track a remote branch?
For Git 1.8.0 and later:
If you've already checked out "thebranch" on your local, then:
git branch -u myremote/thebranch
If you haven't checked out "thebranch" on your local, then:
git branch -u myremote/thebranch thebranch
For Git 1.7.0 until 1.7.12.4, if you've checked out "thebranch" on your local, then:
git branch --set-upstream-to=myremote/thebranch
If you haven't checked out "thebranch" on your local, then:
git branch --set-upstream-to=myremote/thebranch thebranch
How do I make Google Play Music ignore a folder of audio files on my Android device?
I have a bunch of audio books, language lessons, and voice recordings that I do not want to play when listening to music.
One solution is to add a new file and name it ".nomedia" into the folder you would like Google Play Music to ignore.
This file can be empty, and the period in the front front of the filename is necessary.
This was tested to work on devices using Android 5 and Android 6.0.1. Your mileage may vary on other devices.
This trick will work with any app that uses a media scanner which ignores folders with ".nomedia". See some of the references below for other examples.
In order to create the .nomedia file, you can either use your computer or use a file manager on your Android (such as "Amaze" - turn on "show hidden files and folders" in the settings to see the results).
In Windows, what is one quick way that I can list nearby detected wifi networks, and related information about access points?
I am currently working on an app and need to see if several access points share the same SSID, and IT does not allow me to install network stumblers or similar programs.
In the command prompt, you can use either "netsh wlan show networks" or "netsh wlan show all".
Example output of "netsh wlan show all":
I'd like to get a human-readable date/time for a number of Ticks in C#.
Try the tool below :)
(Please note that this might not work in all browsers due to limitations in number size that a browser can handle. Also, please let me know if I goofed up the calculation. Thanks!)