Author Archives: redmondurbino

Apple HomePod < Amazon Echo

homepod

Homepod is nice, but Apple needs to open up it’s API to compete with the Echo.  There are just too many useful skills that my Echo has for me to give it up.   I feel like if you wanted good speakers for music you’d just get Sonos  speakers.  Apple pricing it way too much compared to an Echo feels like a wrong move.

How to install a previous version of a package with Homebrew

homebrew-256x256

Homebrew is an awesome package manager.  For their home page see https://brew.sh/.  However they did some refactoring in April 2017, and a lot of the information online on how to go back to a previous version of a package no longer works.

In my particular case I needed emscripten 1.36.5, and brew was giving me 1.37.10.  Replace emscripten in the Terminal commands below with your particular package.

  • brew tap homebrew/core –full
  • cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
  • brew log –oneline emscripten

You will see git hash on the left column, and the bunch of versions on the right column. example below.  Take note of the git hash that corresponds to the package version you want. In my case I want 1.36.5, so I choose d876a63 .

555a07d emscripten: update 1.37.10 bottle.
b590498 emscripten 1.37.10
53f53f6 emscripten: update 1.37.1 bottle.
bbd3cc2 emscripten 1.37.1
d2b06b4 emscripten: fix caveats
53507df emscripten: update 1.37.0 bottle.
8a660ec emscripten 1.37.0
d905802 emscripten: update 1.36.14 bottle.
e73e793 emscripten 1.36.14
0ea5a49 emscripten: fix HEAD build (#6475)
5229d2d emscripten: update 1.36.13 bottle.
5dee768 emscripten 1.36.13
7a4dabf Use hash rockets again. (#5177)
3036601 Use Ruby 1.9+ symbol hash keys in all formulae. (#4942)
d876a63 emscripten: update 1.36.5 bottle.
1bea73c emscripten: update 1.36.5 bottle.
dc4a4ce emscripten 1.36.5
72a78d4 emscripten: update 1.36.4 bottle.
a94599d emscripten 1.36.4
3194b7f emscripten: update 1.36.3 bottle.

  • git checkout d876a63
  • export HOMEBREW_NO_AUTO_UPDATE=1
  • brew install emscripten

You should check the terminal output that the old version that you want is now being installed

  • unset HOMEBREW_NO_AUTO_UPDATE
  • brew pin emscripten
  • git checkout master

At this point emscripten is now pinned to 1.36.5 and won’t get upgraded accidentally.

2017-04-18_0919

This book unity game optimization book is currently being offered for free for 6 hours.  While pieces of it can be found online,  it brings all that information together in a cohesive whole.  It covers not just code optimization, but art, audio and physics optimization too.  Get it while it’s free!

Genies & Gems Released!

Screen Shot 2016-01-22 at 9.48.50 AM

The newest game we’ve been working on has been released!  We’ve gotten Google Play and Apple App store featuring too.  It’s been great working with such an amazing SGN team!  It’s free, so please check it out and let me know what you think.

Google Play: https://play.google.com/store/apps/details?id=com.sgn.geniesandgems.gp&hl=en

Apple App Store: https://appsto.re/us/nADI9.i

Facebook: https://apps.facebook.com/geniesandgems/?fb_source=search

How to replace TextEdit in OSX

Ever gotten annoyed at how TextEdit will turn your double quotes into smart quotes?  I finally got fed up and switched my default text editor.  Here’s how:

1. download a new text editor.  In this example I’ll use Text Wrangler

2.  Open terminal. Then type this in:

osascript -e ‘id of app “TextWrangler”‘

3. It should come back with the bundle id of the new editor app you want to replace TextEdit with,  something like:

com.barebones.textwrangler

4. Now type this in terminal

defaults write com.apple.LaunchServices LSHandlers -array-add \ ‘{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.barebones.textwrangler;}’

5. reboot.  Replace the bundle id with your favorite text editor if TextWrangler is not the one you want to use