MacOSX Mojave Dark Mode is what I prefer for most apps I use, but in Spark Mail App, Google Groups Digests look like crap:
To fix this you have to disable Dark Mode for the specific app, but Apple doesn’t provide any way to choose apps that should not use it. Time for a hack:
To force an application to use the standard interface mode instead of Mojave Dark Mode (in my case Spark MailApp), quit Spark and in a Terminal issue the following command to get the Bundle Identifier for the app:
osascript -e 'id of app "Spark"'
This command returns:
for the Spark Mail App, but use it for any app you want. Use the identifier to issue the command to turn off Dark Mode:
Did you know that MacOS X’s Keychain Access comes with a built-in password generator?
I usually save my passwords to iCloud via Safari’s Keychain integration, but sometimes I need to create a new password manually.
Open Keychain Access
Click the + icon in the upper left corner
This brings up a tool that generates strong random passwords
You can choose different kinds and lengths for your passwords
You can do this without disabling SIP by creating a copy of the system RichText.mdimporter, modifying its Info.plist and saving it in /Library/Spotlight.
cp -r /System/Library/Spotlight/RichText.mdimporter ~/
(This copies the .mdimporter to the root of your user home directory)
You can either use an editor from the command line, or go to a Finder window in your Home folder and do a “Show Package Contents” on the RichText.mdimporter file bundle to get to the Info.plist file and open it with Text Edit or another Text Editor.
Open the: RichText.mdimporter/Contents/Info.plist Markdown.mdimporter/Contents/Info.plist file and add:
to the array of LSItemContentTypes in that file:
Rename the RichText.mdimporter to Markdown.mdimporter: mv ~/RichText.mdimporter Markdown.mdimporter
Copy the new .mdimporter to /Library/Spotlight: sudo cp -R ~/Markdown.mdimporter /Library/Spotlight
Use the mdimport command to add it to the metadata indexing system: mdimport -r /Library/Spotlight/Markdown.mdimporter
This command asks the server to reimport files for UTIs claimed by the listed plugin.
It should re-import the files automatically after the previous caommand, but if you wish, you can always re-index the whole drive to include the new filetype by rebuilding the whole Spotlight index: sudo mdutil -E /
(This will take some time, and is rather resource demanding)
But now you should be good to go with .markdown files being indexed by Spotlight!
drwx------+ 4 root wheel 128 Nov 16 18:58 com.apple.garageband10
It looks as if the AmpliTube installer removes the regular user account from the directory permissions altogether and changes owner and group of the directory to root : wheel, and the only access granted is to the root user.
It also adds an additional ACL attribute as displayed by the + sign in this listing.
This makes it impossible for GarageBand to install the needed files into this directory as MacOS doesn’t use the root user when installing applications.
Fixing the permissions
The correct permissions for every other directory in the parent path seems to be:
drwx------ 4 user_name staff
Start by running this command to change ownership back to the defaults:
I’ve collected some of the Emacs shortcuts / keyboard hotkeys I find myself using from time to time! 😉
Please visit: GNU Emacs for Unix/Linux and precompiled Windows binaries Aquamacs for OS X (I prefer this over http://emacsformacosx.com/ as it is better integrated)
To get a hold of this incredible “editor”. The reasons I write “editor” is because calling Emacs an editor is something of an understatement! It’s more like a little operating system or at least an intelligent Lisp world!
For you guys never bothered to learn Emacs: You don’t know what you’re missing out on!
Ok, here are the hotkeys (feel free to add some as a comment, and I’ll add them to the list!):
c-x c-f = new buffer (file)
c-x c-c = quit
c-g = cancel input command
c-v next page
m-v previous page
c-l toggle cursor point up/down/center (pgUp/pgDown)
Navigation in text:
c-p = previous line
c-n = next line
c-b = backward
c-f = forward
m-f = move forward Word-by-word
c-a = beginning of the line
c-e = end of the line
m-a = beginning of the sentence
m-e = end of the sentence
m-< = beginning of the text
m-> = end of the text
(text goes to a safety buffer like in Cut)
m-backspace = kill word before cursor
m-d = kill word after cursor
m-k = kill words until end of sentence (.)
c-k = kill words until end of line
c-space = mark start of delete (move to end of text to delete)
c-w = delete text from mark until here
c-y = yank (paste) text from last kill buffer
m-y = cycle through the kill buffer entries
c-x u = undo
c-_ = undo too!
Search for text:
c-s = search forward in buffer from cursor
c-r = search backwards in buffer from cursor
for a non-interactive search press enter before search word.
Search and replace:
m-x replace-string + enter
<word to replace>
<word to replace with>
Managing buffers and windows
c-x c-b = display buffer list
c-x o = switch to buffer list, select with arrows and enter
c-x b = start typing the name of the buffer to choose (tab-complete)
c-x 1 = one buffer in window
c-x 2 = two buffers in window horizontal
c-x 3 = two buffers in window vertical
c-x 0 = close active buffer (file)
m-x recover-file = recover file after crash (open original file, not auto-backup)
c-u 90 c-x f = set margin width to 90 chars
c-u 0 c-l = move current line to top of buffer window
c-x o = move cursor to “other” buffer window
c-m-v = scroll through other window (keeping cursor in main window)
m-x make-frame = create an independent Emacs frame
esc esc esc = get out of recursive editing level mode
c-h f <function> = help on <function>
c-h k <command> = help on <command>
c-h a <keyword> = search for <keyword> in help
c-h i m Emacs = read Emacs manual using info
I don’t know why, but every time I have to set up Mental Ray between different platforms I always stumble some before everything works perfect. Today I configured my quad core Windows computer to do the chewing when rendering from my MacBook Pro laptop.
This is a super-simple setup, but somehow it wasn’t all click and go today either. First of all, I had the slave machine configured earlier, so when I tried to telnet into the port I googled about it would not connect from my Mac host.
So, I checked with the \Windows\System32\Drivers\etc\services file on the Windows machine and got the correct port number 7412 for satellite connections, then I created the maya.rayhosts file in the preferences folder on my mac containing one simple machine.
After disabling the local network firewall on Windows, it sort of worked, but I got this annoying error message from Mental Ray after the render:
MSG 0.0 info : adding new host 1 (192.168.1.152:7412)
MSG 0.0 error 011330: mi-ray/tcp: not a service (check /etc/services)
MSG 0.0 warn 012219: using fallback inet service 7003
Then I tried to add the correct port for satellite (a different port than the one used with MR Stand alone btw) to the /etc/services.
This did not help either.
But, when I also added the “fallback service”, inet 7003/tcp to /etc/services it managed to actually shut up!
# Mental ray satellite
So, if anybody out there experience the same “error” message, you know what to do…
BTW, the error doesn’t stop the render from running, but I believe maybe a nanosecond or two will be wasted if the ports don’t match up and the system has to mage a different route… Who knows?