Mac Archives - Justin Silver https://www.justinsilver.com/tag/mac/ Technology, Travel, and Pictures Tue, 15 Oct 2019 18:12:45 +0000 en-US hourly 1 https://wordpress.org/?v=6.0.1 https://www.justinsilver.com/wp-content/uploads/2013/06/cropped-apple-touch-icon-160x160.png Mac Archives - Justin Silver https://www.justinsilver.com/tag/mac/ 32 32 OSX Mojave Disappearing Icons Fixed https://www.justinsilver.com/technology/osx/osx-mojave-disappearing-icons-fixed/?utm_source=rss&utm_medium=rss&utm_campaign=osx-mojave-disappearing-icons-fixed https://www.justinsilver.com/technology/osx/osx-mojave-disappearing-icons-fixed/#comments Tue, 15 Oct 2019 16:55:01 +0000 https://www.justinsilver.com/?p=4873 Icons on my Macbook Pro running OSX Mojave (10.14.6) started disappearing and being replaced with a generic icon in the Dock, Finder, Applications, task switcher, etc… which is pretty annoying as it makes it...

The post OSX Mojave Disappearing Icons Fixed appeared first on Justin Silver.

]]>
AmpedSense.OptimizeAdSpot('AP'); AmpedSense.OptimizeAdSpot('IL'); AmpedSense.OptimizeAdSpot('IR');

Icons on my Macbook Pro running OSX Mojave (10.14.6) started disappearing and being replaced with a generic icon in the Dock, Finder, Applications, task switcher, etc… which is pretty annoying as it makes it hard to determine which icon launches which app.

The standard recommendations of restarting the Dock and Finder did not fix the issue for me, nor did rebuilding the launch services database. Ultimately I needed to clear the icon cache, as well as the former items, and then after waiting a bit (and relaunching the applications) the icons appeared as normal.

find "${HOME}/Library/Application Support/Dock" -name "*-*.db" -maxdepth 1 -delete;
sudo rm -rf /Library/Caches/com.apple.iconservices.store;
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm -rf {} \;;
sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;; 
sudo touch /Applications/*;
defaults write com.apple.dock ResetLaunchPad -bool true;
killall Dock;
killall Finder;

The post OSX Mojave Disappearing Icons Fixed appeared first on Justin Silver.

]]>
https://www.justinsilver.com/technology/osx/osx-mojave-disappearing-icons-fixed/feed/ 8
Ignore node_modules in Dropbox https://www.justinsilver.com/technology/osx/ignore-node_modules-dropbox/?utm_source=rss&utm_medium=rss&utm_campaign=ignore-node_modules-dropbox https://www.justinsilver.com/technology/osx/ignore-node_modules-dropbox/#comments Mon, 29 Aug 2016 04:38:35 +0000 https://www.justinsilver.com/?p=4233 Node is notorious for generating a rather large number of files in the node_modules when running and npm install. I like to start my projects in Dropbox, which presents a problem with my computer...

The post Ignore node_modules in Dropbox appeared first on Justin Silver.

]]>
AmpedSense.OptimizeAdSpot('AP'); AmpedSense.OptimizeAdSpot('IL'); AmpedSense.OptimizeAdSpot('IR');

Node is notorious for generating a rather large number of files in the node_modules when running and npm install. I like to start my projects in Dropbox, which presents a problem with my computer tries to sync tens of thousands of files, sometimes every few minutes if I’m working on a new module for example.

The solution for this problem is to the the “selective sync” feature of Dropbox, however it’s easiest if you haven’t already installed all the module dependencies. First, you want to create your project folder – either a directory followed by npm init, or possibly an existing project from a git or other source code repository.

In this example I will clone my node developer-tools module, which installs binaries and other tools for development work. This module can be found on Github here: https://github.com/doublesharp/node-developer-tools. It will be cloned into the path ~/Dropbox/Workspaces/node-developer-tools. After the directory has been created, we will manually create a node_modules folder inside it.

mkdir -p ~/Dropbox/Workspaces
cd ~/Dropbox/Workspaces
git clone https://github.com/doublesharp/node-developer-tools.git
mkdir -p ./node-developer-tools/node_modules

Now we can exclude this folder from Dropbox sync before filling it up with thousands of tiny files.

1. Select the dropbox icon from you system bar

2. Select the gear icon, followed by Preferences…

dropbox-node-1

3. Choose the Account tab

4. Find the Selective Sync option and click Change Settings…

dropbox-node-2

5. Navigate to Workspaces/node-developer-tools and un-select node_modules

6. Click the Update button

dropbox-node-3

Now you can install the node modules without having the sync to Dropbox.

Unfortunately this needs to be set up for each Node project you want to work with, but the up front investment will save time down the road. Plus a little storage space.

The post Ignore node_modules in Dropbox appeared first on Justin Silver.

]]>
https://www.justinsilver.com/technology/osx/ignore-node_modules-dropbox/feed/ 2
Disk Util Repair Permissions on Mac OS X Lion RAID 0 https://www.justinsilver.com/technology/osx/disk-util-repair-permissions-on-mac-os-x-lion-raid-0/?utm_source=rss&utm_medium=rss&utm_campaign=disk-util-repair-permissions-on-mac-os-x-lion-raid-0 https://www.justinsilver.com/technology/osx/disk-util-repair-permissions-on-mac-os-x-lion-raid-0/#respond Sun, 13 May 2012 22:27:05 +0000 http://justin.ag/?p=2251 So it turns out that if you have a Mac OS X Lion on RAID 0 that you can’t run Verify/Repair Permissions on your hard drive, at least via Disk Utility. You can however...

The post Disk Util Repair Permissions on Mac OS X Lion RAID 0 appeared first on Justin Silver.

]]>
AmpedSense.OptimizeAdSpot('AP'); AmpedSense.OptimizeAdSpot('IL'); AmpedSense.OptimizeAdSpot('IR');

So it turns out that if you have a Mac OS X Lion on RAID 0 that you can’t run Verify/Repair Permissions on your hard drive, at least via Disk Utility. You can however still run from the command line, just enter:

sudo diskutil repairPermissions /

If you want to repair the disk you will have to do so from Single User mode – hold down the Apple ⌘ + S while the system is booting up, then run:

/sbin/fsck -fy
sudo fsck_hfs -f /dev/disk4s2

The post Disk Util Repair Permissions on Mac OS X Lion RAID 0 appeared first on Justin Silver.

]]>
https://www.justinsilver.com/technology/osx/disk-util-repair-permissions-on-mac-os-x-lion-raid-0/feed/ 0