Adding Emojis to Gsuite on the Mac

How maddening is this, with traditional Mac Apps, it is pretty simple. Got to Edit/Emojis & Symbols. Find the arrow or whatever and then double click.

This however does not work with Gsuite at least on Safari:

  1. Google Docs. You cannot double click, you can however drag and drop the symbols
  2. Google Slides, does not double click and when you drag you get a separate text box

Instead, you have to use the Google’s own internal Insert Special Characters does work

Mac DVD VOB files to MKV

I haven’t ripped a DVD in a very long time, but sometimes I see these VOB files. I have used Handbrake in the past to get my old DVDs of the kids over to a modern format, but somehow the latest Handbrake fails me and stops after the first segment. Sigh.

So onto looking for a new tool that works so here’s the alternative path:

  1. MKVTooINixMKVTooINix. This takes the 1G .VOB files and stuffs them into a single MKV container. The Handbrake seems to fail along the VOB boundaries. As a refresher, the original DVD file format had a 1GB per file limit, so movies were split into .VOB files. You have to find the right file names, typically 01_0x.VOB and then open them in this tool. It then produces a single huge Matrovska file. With the MPEG-2 encoding used in DVDs, a 2 hour movie would be about 11GB. A typical DVD would be 720×480
  2. Handbrake to transcode to X.265. Once you have this MKV file, you can use Handbrake to encode it in X.265. This is about 2x better than X.264 which is in turn about 4x better than MPEG-2. Net, net your 11GB file should

Great soundtracks

Wow been binge watching quite a bit and some of these new series have just awesome soundtracks. is wonderful as it is a place where these get aggregated and you can play with Apple Music from there, so some great soundtracks. I wish the thing would just make a playlist for Spotify or Apple Music, so you could play it, but in the mean time, here are some good songs off the top 40:

  1. Shooter. For a series about a sharpshooter on run, really some great alternative tracks.
  2. Lethal Weapon. Anything by McG is going to have style and they have captured the carefree 1970s really well and updated it. Love Riggs! And great use of house music and

Books and things

When you want to read, here are the great sources beside the usual suspects (Amazon Kindle and Audible that is):

  1. Overdrive. They connect to your local library. They have ebooks and audiobooks and the app works well.
  2. This is another great source of hard to find books

Fixing an iMac 2009 with Apple Hardware Tests and Memtest

OK, so I think I’m on the right track. This sudden shutdown is likely due to bad memory. There is nearly 32GB of memory in the iMac 2009 and it is third party, so could be bad. But figuring out how to diagnose it more a riddle. The main problem is that hitting the D key during reboot does not bring up the Diagnostic nor does holding the Option-D key.

The history of this tool is that it sort of works but it doesn’t function properly on older hardware with newer MacOS.

So what’s a person to do, well someone has gone through the trouble of finding the links for all the old AHTs, then you just burn a USB key and it works. Basically what happens is that if you clean install your old computer, the old AHTs are not kept of course, so now you have to download them. Newer Macs will actually download the AHT over the Internet, but the 2009 iMac doesn’t do that.

Note that even if you get this installed, MacRumors says the memory tests are really not that good, so you need to download memtest86. The free version seems right for most uses. That thing isn’t big on documentation, but you get a .tar file that you untarnished and you will see a README and a IMG file, but basically they are to use diskutil list to figure out what the actual disk number of the USB is and then do

diskutil unmountDisk <dev>
sudo dd if=<memtest.img> of=<dev>

Also with Sierra MacOS, you can’t even install them into the operating system (as that’s a security issue), so the preferred way is to now burn a USB key with the proper AHTs. Duplicating the answers, you figure out your actual model with it’s suffix

sysctl hw.model | awk '{ print $2 }'
ioreg -l | awk -F\" '/board-id/ { print $4 }'

Naturally (as luck is going to have it), the precise model I need is iMac11,1-F2268DAE but this doesn’t appear on the list but is in a package called iMac10,1 that tries to install it into the system folder.

First get a USB Key and make sure it uses GUID Partition and OS X Extended file system. Then copy all of the files and sudo bless the USB so it will boot. Assuming your USB key is at /Volumes/USB Key then you would do:

cp -r /Volumes/AHT/System /Volumes/USBstick/
sudo bless --folder /Volumes/USBstick/ --file /Volumes/USBstick/System/Library/CoreServices/.diagnostics/diags.efi --label AHT

The best AI development setup

With prices and hardware changing there are so many different choices for a good developer setup. Here are some of the edges assuming a relatively modest $6k budget:

  1. A monster gaming laptop. Today for $6k Ok got it so that’s a $6k box that weighs 13 pounds. And it sure is powerful. And relatively cheap. Some ones to look at the 13 pound Msi GT83VR with dual gtx 1080s. 

  2. A workstation class laptop If u want 16GB because many machine learning apps need that then u need a p6000 (fwiw Nvidia at least has it families in alphabetical order so it’s Kepler -> maxwell -> pascal). Also the p6000 uses hbm so it has 4x more memory bandwidth between gpu and vram. Does your work load need that and also supports fast fp 16.).

  3. If ur just going from home to work a pair of desktops plus a laptop that’s thin and light are actually cheaper and have more performance. U then have a mini data center at work. Main advantage is u can add up to four cards on either side. When disconnected u use a laptop with Nvidia so u can debug but big workloads are on desktops. And the laptop weighs 3lbs. The razor is a good one.

  4. Youcan run loads in the cloud with the new amazon Tesla p100s. These can be pricey 

Here are some more great MacBook Pro 2016 tips

  1. MacBook Pro 2016 prices are falling. They are now 10% off at B&H so remember prices keep falling.
  2. If you want to get decent battery doc on your MacBook Pro turn on the battery checker but you should Safari instead as it is much more efficient than Chrome and Firefox. Also when u see the power is higher you need to reboot.
  3. The MacBook Pro can charge up to 15 watts on USB C so do yourself a favor and get a USB c to lightening adapter and you can ditch your USB c charger. Also if you get a USB c low power charger then you can use it to trickle charge got mbp. Nice to have one charging standard.