Tuesday, September 27, 2016

macOS Sierra: Python: Plot and Save Image File Using Matplotlib

Noteworthy:

# Using AGG - The Anti-Grain Geometry (Agg) rendering engine
import matplotlib
matplotlib.use('Agg')

# Plot lines and/or markers to the Axes.
# args is a variable length argument, allowing for multiple x, y pairs with an optional format string.
import matplotlib.pyplot as plt
plt.plot(*args)

# Save the current figure
import matplotlib.pyplot as plt
plt.savefig(FILENAME)


Command:

$ cat testplotandsavefig.py


Result:

#!/usr/local/bin/python
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.savefig('myfig')


Command:

$ chmod +x testplotandsavefig.py
$ ./testplotandsavefig.py


Result:

Traceback (most recent call last):
  File "./testplotandsavefig.py", line 2, in <module>
    import matplotlib
ImportError: No module named matplotlib


Command (Installing matplotlib):

$ brew install matplotlib


Result:

==> Auto-updated Homebrew!
Updated Homebrew from 6e57355 to e4ed309.
Updated 2 taps (homebrew/core, homebrew/science).
==> New Formulae
gofabric8                  httpdiff                   linkerd                
==> Updated Formulae
airspy                                   openssl ✔                            
antigen                                  openssl@1.1                          
argyll-cms                               pgrouting                            
cgal                                     postgis                              
chaiscript                               protobuf-swift                      
consul-template                          purescript                          
fzf                                      sfcgal                              
homebrew/science/exabayes                spdylay                              
homebrew/science/nextflow                storm                                
homebrew/science/sortmerna               the_silver_searcher                  
homebrew/science/vtk                     varnish                              
jetty                                    vim ✔                                
jsoncpp                                  wellington                          
launch                                   wolfssl                              
legit                                    yle-dl                              
libpointing                              you-get                              
mobile-shell                             zplug                                
nghttp2                              
==> Deleted Formulae
aeskeyfind

==> Installing matplotlib from homebrew/python
==> Downloading https://pypi.python.org/packages/source/m/matplotlib/matplotlib-
######################################################################## 100.0%
==> Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/C/Cycler/cycler-0.9.0.ta
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/f/funcsigs/funcsigs-0.4.
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/n/nose/nose-1.3.7.tar.gz
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/m/mock/mock-1.3.0.tar.gz
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/p/pbr/pbr-1.8.1.tar.gz
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/p/pyparsing/pyparsing-2.
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/p/python-dateutil/python
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/p/pytz/pytz-2015.7.tar.b
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Downloading https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cel
==> Caveats
If you want to use the `wxagg` backend, do `brew install wxpython`.
This can be done even after the matplotlib install.
==> Summary
🍺  /usr/local/Cellar/matplotlib/1.5.1: 3,513 files, 76.5M, built in 1 minute 15 seconds


Command:

$ ./testplotandsavefig.py


Result (Error):

Traceback (most recent call last):
  File "./testplotandsavefig.py", line 2, in <module>
    import matplotlib
  File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 1131, in <module>
    rcParams = rc_params()
  File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 975, in rc_params
    return rc_params_from_file(fname, fail_on_error)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 1100, in rc_params_from_file
    config_from_file = _rc_params_in_file(fname, fail_on_error)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 1018, in _rc_params_in_file
    with _open_file_or_url(fname) as fd:
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 1000, in _open_file_or_url
    encoding = locale.getdefaultlocale()[1]
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 545, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 477, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8


Command:

$ locale


Result:

LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=


Command (Fixing locale):

$ LC_CTYPE="C"
$ locale


Result:

LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=


Command:

$ ./testplotandsavefig.py


Result:

/usr/local/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')


Command:

$ ls myfig*


Result:

myfig.png


Command (Opening image file):

$ open myfig.png





AppleScript: iTunes: Get All the Artwork of Current Playlist

on replace_chars(this_text, search_string, replacement_string)
set AppleScript's text item delimiters to the search_string
set the item_list to every text item of this_text
set AppleScript's text item delimiters to the replacement_string
set this_text to the item_list as string
set AppleScript's text item delimiters to ""
return this_text
end replace_chars

tell application "iTunes"

set trackArray to tracks of current playlist

set lastAlbum to null
repeat with aTrack in trackArray
set currentAlbum to album of aTrack as string
if currentAlbum is not lastAlbum then
if exists every artwork of aTrack then
set srcBytes to raw data of artwork 1 of aTrack
if format of artwork 1 of aTrack is «class PNG » then
set ext to ".png"
else
set ext to ".jpg"
end if

set str to my replace_chars(currentAlbum, ":", "-")

set fileName to (((path to desktop) as text) & str & ext)

-- write to file
set outFile to open for access file fileName with write permission
-- truncate the file
set eof outFile to 0
-- write the image bytes to the file
write srcBytes to outFile
close access outFile
end if
end if
set lastAlbum to currentAlbum
end repeat
end tell

David Bohm: An Interview with David Bohm

David Bohm

Objective-C: Physical Constant

Command:

$ cat PhysicalConstant.h


Result:

//
//  PhysicalConstant.h
//  Science
//
//  Created on 8/30/14.
//

#import <Foundation/Foundation.h>

@interface PhysicalConstant : NSObject

//Table of universal constants
+(double)speedOfLight;
+(double)newtonianConstantOfGravitation;
+(double)planckConstant;
+(double)reducedPlanckConstant;

//Table of electromagnetic constants
+(double)magneticConstant;
+(double)electricConstant;
+(double)characteristicImpedanceOfVacuum;
+(double)coulombsConstant;
+(double)elementaryCharge;
+(double)bohrMagneton;
+(double)conductanceQuantum;
+(double)inverseConductanceQuantum;
+(double)josephsonConstant;
+(double)magneticFluxQuantum;
+(double)nuclearMagneton;
+(double)vonKlitzingConstant;

//Table of atomic and nuclear constants
+(double)bohrRadius;
+(double)classicalElectronRadius;
+(double)electronMass;
+(double)fermiCouplingConstant;
+(double)fineStructureConstant;
+(double)hartreeEnergy;
+(double)protonMass;
+(double)quantumOfCirculation;
+(double)rydbergConstant;
+(double)thomsonCrossSection;
+(double)weakMixingAngle;
+(double)efimovFactor;

//Table of physico-chemical constants
+(double)atomicMassConstant;
+(double)avogadrosNumber;
+(double)boltzmannConstant;
+(double)faradayConstant;
+(double)firstRadiationConstant;
+(double)firstRadiationConstantForSpectralRadiance;
+(double)loschmidtConstant;
+(double)gasConstant;
+(double)molarPlanckConstant;
+(double)molarVolumeOfAnIdealGasAtTemperature:(double)temperature andPressure:(double)pressure;
+(double)sackurTetrodeConstantAtTemperature:(double)temperature andPressure:(double)pressure;
+(double)secondRadiationConstant;
+(double)stefanBoltzmannConstant;
+(double)wienDisplacementLawConstant;

//Table of adopted values
+(double)molarMassConstant;
+(double)molarMassOfCarbon12;
+(double)standardAccelerationOfGravity;
+(double)standardAtmosphere;

//Natural units
+(double)planckLength;
+(double)planckMass;
+(double)planckTime;
+(double)planckCharge;
+(double)planckTemperature;

//TEST
+(void)debug;

@end


Command:

$ cat PhysicalConstant.m


Result:

//
//  PhysicalConstant.m
//  Science
//
//  Created on 8/30/14.
//

#import "PhysicalConstant.h"

@implementation PhysicalConstant

static const double SPEED_OF_LIGHT = 299792458;
static const double NEWTONIAN_CONSTANT_OF_GRAVITATION = 6.67384E-11;
static const double PLANCK_CONSTANT = 6.62606957E-34;
static const double ELEMENTARY_CHARGE = 1.602176565E-19;
static const double ELECTRON_MASS = 9.10938291E-31;
static const double PROTON_MASS = 1.672621777E-27;
static const double EFIMOV_FACTOR = 22.7;
static const double AVOGADROS_NUMBER = 6.02214129E23;
static const double ATOMIC_MASS_CONSTANT = 1.660538921E-27;
static const double GAS_CONSTANT = 8.3144621;
static const double STANDARD_ATMOSPHERE = 101325;
static const double FERMI_COUPLING_CONSTANT = 1.166364E-5;
static const double WEAK_MIXING_ANGLE = 0.2223;
static const double FIRST_RADIATION_CONSTANT_FOR_SPECTRAL_RADIANCE = 1.191042869E-16;
static const double WIEN_DISPLACEMENT_LAW_CONSTANT = 2.8977721E-3;
static const double MOLAR_MASS_CONSTANT =1E-3;
static const double MOLAR_MASS_OF_CARBON_12 = 1.2E-2;
static const double STANDARD_ACCELERATION_OF_GRAVITY = 9.80665;

//Table of universal constants

+(double)speedOfLight{
    return SPEED_OF_LIGHT;
}

+(double)newtonianConstantOfGravitation{
    return NEWTONIAN_CONSTANT_OF_GRAVITATION;
}

+(double)planckConstant{
    return PLANCK_CONSTANT;
}

+(double)reducedPlanckConstant{
    return self.planckConstant / (2 * M_PI);
}

//Table of electromagnetic constants

+(double)magneticConstant{
    return 4 * M_PI * 1E-7;
}

+(double)electricConstant{
    return 1.0f / (self.magneticConstant * self.speedOfLight * self.speedOfLight);
}

+(double)characteristicImpedanceOfVacuum{
    return self.magneticConstant * self.speedOfLight;
}

+(double)coulombsConstant{
    return 1.0f / (4 * M_PI * self.electricConstant);
}

+(double)elementaryCharge{
    return ELEMENTARY_CHARGE;
}

+(double)bohrMagneton{
    return (self.elementaryCharge * self.reducedPlanckConstant) / (2 * self.electronMass);
}

+(double)conductanceQuantum{
    return (2 * self.elementaryCharge * self.elementaryCharge) / self.planckConstant;
}

+(double)inverseConductanceQuantum{
    return self.planckConstant / (2 * self.elementaryCharge * self.elementaryCharge);
}

+(double)josephsonConstant{
    return (2 * self.elementaryCharge) / self.planckConstant;
}

+(double)magneticFluxQuantum{
    return self.planckConstant / (2 * self.elementaryCharge);
}

+(double)nuclearMagneton{
    return (self.elementaryCharge * self.reducedPlanckConstant) / (2 * self.protonMass);
}

+(double)vonKlitzingConstant{
    return self.planckConstant / (self.elementaryCharge * self.elementaryCharge);
}

//Table of atomic and nuclear constants

+(double)bohrRadius{
    return self.fineStructureConstant / (4 * M_PI * self.rydbergConstant);
}

+(double)classicalElectronRadius{
    return (self.elementaryCharge * self.elementaryCharge) / (4 * M_PI * self.electricConstant * self.electronMass * self.speedOfLight * self.speedOfLight);
}

+(double)electronMass{
    return ELECTRON_MASS;
}

+(double)fermiCouplingConstant{
    return FERMI_COUPLING_CONSTANT;
}

+(double)fineStructureConstant{
    return (self.elementaryCharge * self.elementaryCharge) / (self.reducedPlanckConstant * self.speedOfLight * 4 * M_PI * self.electricConstant);
}

+(double)hartreeEnergy{
    return 2 * self.rydbergConstant * self.planckConstant * self.speedOfLight;
}

+(double)protonMass{
    return PROTON_MASS;
}

+(double)quantumOfCirculation{
    return self.planckConstant / (2 * self.electronMass);
}

+(double)rydbergConstant{
    return (self.fineStructureConstant * self.fineStructureConstant * self.electronMass * self.speedOfLight) / (2 * self.planckConstant);
}

+(double)thomsonCrossSection{
    return (8 * M_PI / 3) * self.classicalElectronRadius * self.classicalElectronRadius;
}

+(double)weakMixingAngle{
    return WEAK_MIXING_ANGLE;
}

+(double)efimovFactor{
    return EFIMOV_FACTOR;
}

//Table of physico-chemical constants

+(double)atomicMassConstant{
    return ATOMIC_MASS_CONSTANT;
}

+(double)avogadrosNumber{
    return AVOGADROS_NUMBER;
}

+(double)boltzmannConstant{
    return self.gasConstant / self.avogadrosNumber;
}

+(double)faradayConstant{
    return self.avogadrosNumber * self.elementaryCharge;
}

+(double)firstRadiationConstant{
    return 2 * M_PI * self.planckConstant * self.speedOfLight * self.speedOfLight;
}

+(double)firstRadiationConstantForSpectralRadiance{
    return FIRST_RADIATION_CONSTANT_FOR_SPECTRAL_RADIANCE;
}

+(double)loschmidtConstant{
    return self.avogadrosNumber / [self molarVolumeOfAnIdealGasAtTemperature:273.15f andPressure:101325.0f];
}

+(double)gasConstant{
    return GAS_CONSTANT;
}

+(double)molarPlanckConstant{
    return self.avogadrosNumber * self.planckConstant;
}

+(double)molarVolumeOfAnIdealGasAtTemperature:(double)temperature andPressure:(double)pressure{
    return (self.gasConstant * temperature) / pressure;
}

+(double)sackurTetrodeConstantAtTemperature:(double)temperature andPressure:(double)pressure{
    return (5.0f / 2) + log(pow((2 * M_PI * self.atomicMassConstant * self.boltzmannConstant * temperature) / (self.planckConstant * self.planckConstant),
                          1.5) * self.boltzmannConstant * temperature / pressure);
}

+(double)secondRadiationConstant{
    return self.planckConstant * self.speedOfLight / self.boltzmannConstant;
}

+(double)stefanBoltzmannConstant{
    return (M_PI * M_PI * pow(self.boltzmannConstant, 4)) / (60 * pow(self.reducedPlanckConstant, 3) * pow(self.speedOfLight, 2));
}

+(double)wienDisplacementLawConstant{
    return WIEN_DISPLACEMENT_LAW_CONSTANT;
}

//Table of adopted values

+(double)molarMassConstant{
    return MOLAR_MASS_CONSTANT;
}

+(double)molarMassOfCarbon12{
    return MOLAR_MASS_OF_CARBON_12;
}

+(double)standardAccelerationOfGravity{
    return STANDARD_ACCELERATION_OF_GRAVITY;
}

+(double)standardAtmosphere{
    return STANDARD_ATMOSPHERE;
}

//Natural units

+(double)planckLength{
    return sqrt((self.reducedPlanckConstant * self.newtonianConstantOfGravitation) / pow(self.speedOfLight, 3));
}

+(double)planckMass{
    return sqrt((self.reducedPlanckConstant * self.speedOfLight) / self.newtonianConstantOfGravitation);
}

+(double)planckTime{
    return self.planckLength / self.speedOfLight;
}

+(double)planckCharge{
    return sqrt(4 * M_PI * self.electricConstant * self.reducedPlanckConstant * self.speedOfLight);
}

+(double)planckTemperature{
    return (self.planckMass * self.speedOfLight * self.speedOfLight) / self.boltzmannConstant;
}

//TEST

+(void)debug{
   
    //Table of universal constants
    NSLog(@"***Table of universal constants***\n\n");
    NSLog(@"Speed of light: %.0f", self.speedOfLight);
    NSLog(@"Newtonian constant of gravitation: %.5e", self.newtonianConstantOfGravitation);
    NSLog(@"Planck constant: %.8e", self.planckConstant);
    NSLog(@"Reduced planck constant: %.9e\n\n", self.reducedPlanckConstant);
   
    //Table of electromagnetic constants
    NSLog(@"***Table of electromagnetic constants***\n\n");
    NSLog(@"Magnetic constant: %.9e", self.magneticConstant);
    NSLog(@"Electric constant: %.9e", self.electricConstant);
    NSLog(@"Characteristic impedance of vacuum: %3.9f", self.characteristicImpedanceOfVacuum);
    NSLog(@"Coulomb's constant: %.9e", self.coulombsConstant);
    NSLog(@"Elementary charge: %.9e", self.elementaryCharge);
    NSLog(@"Bohr magneton: %.8e", self.bohrMagneton);
    NSLog(@"Conductance quantum: %.10e", self.conductanceQuantum);
    NSLog(@"Inverse conductance quantum: %5.7f", self.inverseConductanceQuantum);
    NSLog(@"Josephson constant: %.8e", self.josephsonConstant);
    NSLog(@"Magnetic flux quantum: %.9e", self.magneticFluxQuantum);
    NSLog(@"Nuclear magneton: %.8e", self.nuclearMagneton);
    NSLog(@"von Klitzing constant: %5.7f\n\n", self.vonKlitzingConstant);
   
    //Table of atomic and nuclear constants
    NSLog(@"***Table of atomic and nuclear constants***\n\n");
    NSLog(@"Bohr radius: %.10e", self.bohrRadius);
    NSLog(@"Classical electron radius: %.10e", self.classicalElectronRadius);
    NSLog(@"Electron mass: %.8e", self.electronMass);
    NSLog(@"Fermi coupling constant: %.6e", self.fermiCouplingConstant);
    NSLog(@"Fine-structure constant: %.10e", self.fineStructureConstant);
    NSLog(@"Hartree energy: %.8e", self.hartreeEnergy);
    NSLog(@"Proton mass: %.9e", self.protonMass);
    NSLog(@"Quantum of circulation: %.10e", self.quantumOfCirculation);
    NSLog(@"Rydberg constant: %8.6f", self.rydbergConstant);
    NSLog(@"Thomson cross section: %.9e", self.thomsonCrossSection);
    NSLog(@"Weak mixing angle: %.4f", self.weakMixingAngle);
    NSLog(@"Efimov factor: %.1f\n\n", self.efimovFactor);
   
    //Table of physico-chemical constants
    NSLog(@"***Table of physico-chemical constants***\n\n");
    NSLog(@"Atomic mass constant: %.9e", self.atomicMassConstant);
    NSLog(@"Avogadro's number: %.8e", self.avogadrosNumber);
    NSLog(@"Boltzmann constant: %.7e", self.boltzmannConstant);
    NSLog(@"Faraday constant: %5.4f", self.faradayConstant);
    NSLog(@"First radiation constant: %.8e", self.firstRadiationConstant);
    NSLog(@"First radiation constant for spectral radiance: %.9e", self.firstRadiationConstantForSpectralRadiance);
    NSLog(@"Loschmidt constant: %.7e", self.loschmidtConstant);
    NSLog(@"Gas constant: %.7f", self.gasConstant);
    NSLog(@"Molar planck constant: %.10e", self.molarPlanckConstant);
    NSLog(@"Molar volume of an ideal gas at temperature at 273.15 K and pressure 100 kPa: %.7e", [self molarVolumeOfAnIdealGasAtTemperature:273.15f andPressure:100000.0f]);
    NSLog(@"Molar volume of an ideal gas at temperature at 273.15 K and pressure 101.325kPa: %.7e", [self molarVolumeOfAnIdealGasAtTemperature:273.15f andPressure:101325.0f]);
   
    NSLog(@"Sackur tetrode constant at temperature 1 K and pressure 100 KPa: %1.7f", [self sackurTetrodeConstantAtTemperature:1.0f andPressure:100000.0f]);
    NSLog(@"Sackur tetrode constant at temperature 1 K and pressure 101.325 KPa: %1.7f", [self sackurTetrodeConstantAtTemperature:1.0f andPressure:101325.0f]);
   
    NSLog(@"Second radiation constant: %.7e", self.secondRadiationConstant);
    NSLog(@"Stefan boltzmann constant: %.6e", self.stefanBoltzmannConstant);
    NSLog(@"Wien displacement law constant: %.7e\n\n", self.wienDisplacementLawConstant);
   
    //Table of adopted values
    NSLog(@"***Table of adopted values***\n\n");
    NSLog(@"Molar mass constant: %.0e", self.molarMassConstant);
    NSLog(@"Molar mass of carbon 12: %.1e", self.molarMassOfCarbon12);
    NSLog(@"Standard acceleration of gravity: %.5f", self.standardAccelerationOfGravity);
    NSLog(@"Standard atmosphere: %.0f\n\n", self.standardAtmosphere);
   
    //Natural units
    NSLog(@"***Natural units***\n\n");
    NSLog(@"Planck length: %.6e", self.planckLength);
    NSLog(@"Planck mass: %.5e", self.planckMass);
    NSLog(@"Planck time: %.5e", self.planckTime);
    NSLog(@"Planck charge: %.9e", self.planckCharge);
    NSLog(@"Planck temperature: %.6e", self.planckTemperature);
}

@end


Command:

$ cat AppDelegate.h


Result:

//
//  AppDelegate.h
//  Science
//
//  Created on 8/30/14.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end


Command:

$ cat AppDelegate.m


Result:

//
//  AppDelegate.m
//  Science
//
//  Created on 8/30/14.
//

#import "AppDelegate.h"
#import "PhysicalConstant.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
   
    [PhysicalConstant debug];
   
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end


Command:

$ cat main.m


Result:

//
//  main.m
//  Science
//
//  Created on 8/30/14.
//

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char * argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}


Output (Debug area):

2016-09-27 00:51:30.264101 Science[60292:40774731] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-27 00:51:30.271240 Science[60292:40774731] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-27 00:51:30.304548 Science[60292:40774728] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-27 00:51:30.322003 Science[60292:40773198] subsystem: com.apple.UIKit, category: StatusBar, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-27 00:51:30.568 Science[60292:40773198] ***Table of universal constants***

2016-09-27 00:51:30.568 Science[60292:40773198] Speed of light: 299792458
2016-09-27 00:51:30.569 Science[60292:40773198] Newtonian constant of gravitation: 6.67384e-11
2016-09-27 00:51:30.569 Science[60292:40773198] Planck constant: 6.62606957e-34
2016-09-27 00:51:30.569 Science[60292:40773198] Reduced planck constant: 1.054571725e-34

2016-09-27 00:51:30.569 Science[60292:40773198] ***Table of electromagnetic constants***

2016-09-27 00:51:30.570 Science[60292:40773198] Magnetic constant: 1.256637061e-06
2016-09-27 00:51:30.570 Science[60292:40773198] Electric constant: 8.854187818e-12
2016-09-27 00:51:30.570 Science[60292:40773198] Characteristic impedance of vacuum: 376.730313462
2016-09-27 00:51:30.570 Science[60292:40773198] Coulomb's constant: 8.987551787e+09
2016-09-27 00:51:30.570 Science[60292:40773198] Elementary charge: 1.602176565e-19
2016-09-27 00:51:30.571 Science[60292:40773198] Bohr magneton: 9.27400967e-24
2016-09-27 00:51:30.571 Science[60292:40773198] Conductance quantum: 7.7480917407e-05
2016-09-27 00:51:30.571 Science[60292:40773198] Inverse conductance quantum: 12906.4037116
2016-09-27 00:51:30.571 Science[60292:40773198] Josephson constant: 4.83597870e+14
2016-09-27 00:51:30.572 Science[60292:40773198] Magnetic flux quantum: 2.067833757e-15
2016-09-27 00:51:30.572 Science[60292:40773198] Nuclear magneton: 5.05078353e-27
2016-09-27 00:51:30.572 Science[60292:40773198] von Klitzing constant: 25812.8074232

2016-09-27 00:51:30.572 Science[60292:40773198] ***Table of atomic and nuclear constants***

2016-09-27 00:51:30.573 Science[60292:40773198] Bohr radius: 5.2917721011e-11
2016-09-27 00:51:30.573 Science[60292:40773198] Classical electron radius: 2.8179403268e-15
2016-09-27 00:51:30.573 Science[60292:40773198] Electron mass: 9.10938291e-31
2016-09-27 00:51:30.573 Science[60292:40773198] Fermi coupling constant: 1.166364e-05
2016-09-27 00:51:30.574 Science[60292:40773198] Fine-structure constant: 7.2973525755e-03
2016-09-27 00:51:30.574 Science[60292:40773198] Hartree energy: 4.35974435e-18
2016-09-27 00:51:30.574 Science[60292:40773198] Proton mass: 1.672621777e-27
2016-09-27 00:51:30.575 Science[60292:40773198] Quantum of circulation: 3.6369475493e-04
2016-09-27 00:51:30.575 Science[60292:40773198] Rydberg constant: 10973731.593929
2016-09-27 00:51:30.575 Science[60292:40773198] Thomson cross section: 6.652458735e-29
2016-09-27 00:51:30.575 Science[60292:40773198] Weak mixing angle: 0.2223
2016-09-27 00:51:30.576 Science[60292:40773198] Efimov factor: 22.7

2016-09-27 00:51:30.576 Science[60292:40773198] ***Table of physico-chemical constants***

2016-09-27 00:51:30.576 Science[60292:40773198] Atomic mass constant: 1.660538921e-27
2016-09-27 00:51:30.577 Science[60292:40773198] Avogadro's number: 6.02214129e+23
2016-09-27 00:51:30.577 Science[60292:40773198] Boltzmann constant: 1.3806488e-23
2016-09-27 00:51:30.577 Science[60292:40773198] Faraday constant: 96485.3365
2016-09-27 00:51:30.577 Science[60292:40773198] First radiation constant: 3.74177152e-16
2016-09-27 00:51:30.578 Science[60292:40773198] First radiation constant for spectral radiance: 1.191042869e-16
2016-09-27 00:51:30.578 Science[60292:40773198] Loschmidt constant: 2.6867806e+25
2016-09-27 00:51:30.578 Science[60292:40773198] Gas constant: 8.3144621
2016-09-27 00:51:30.579 Science[60292:40773198] Molar planck constant: 3.9903127148e-10
2016-09-27 00:51:30.579 Science[60292:40773198] Molar volume of an ideal gas at temperature at 273.15 K and pressure 100 kPa: 2.2710953e-02
2016-09-27 00:51:30.579 Science[60292:40773198] Molar volume of an ideal gas at temperature at 273.15 K and pressure 101.325kPa: 2.2413968e-02
2016-09-27 00:51:30.579 Science[60292:40773198] Sackur tetrode constant at temperature 1 K and pressure 100 KPa: -1.1517078
2016-09-27 00:51:30.580 Science[60292:40773198] Sackur tetrode constant at temperature 1 K and pressure 101.325 KPa: -1.1648708
2016-09-27 00:51:30.580 Science[60292:40773198] Second radiation constant: 1.4387770e-02
2016-09-27 00:51:30.580 Science[60292:40773198] Stefan boltzmann constant: 5.670372e-08
2016-09-27 00:51:30.580 Science[60292:40773198] Wien displacement law constant: 2.8977721e-03

2016-09-27 00:51:30.581 Science[60292:40773198] ***Table of adopted values***

2016-09-27 00:51:30.581 Science[60292:40773198] Molar mass constant: 1e-03
2016-09-27 00:51:30.581 Science[60292:40773198] Molar mass of carbon 12: 1.2e-02
2016-09-27 00:51:30.581 Science[60292:40773198] Standard acceleration of gravity: 9.80665
2016-09-27 00:51:30.582 Science[60292:40773198] Standard atmosphere: 101325

2016-09-27 00:51:30.582 Science[60292:40773198] ***Natural units***

2016-09-27 00:51:30.582 Science[60292:40773198] Planck length: 1.616199e-35
2016-09-27 00:51:30.583 Science[60292:40773198] Planck mass: 2.17651e-08
2016-09-27 00:51:30.583 Science[60292:40773198] Planck time: 5.39106e-44
2016-09-27 00:51:30.583 Science[60292:40773198] Planck charge: 1.875545956e-18
2016-09-27 00:51:30.583 Science[60292:40773198] Planck temperature: 1.416833e+32
2016-09-27 00:51:30.586 Science[60292:40773198] *** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3599.6/UIApplication.m:3679
2016-09-27 00:51:30.591 Science[60292:40773198] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
*** First throw call stack:
(
0   CoreFoundation                      0x000000010dffd34b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x000000010da5e21e objc_exception_throw + 48
2   CoreFoundation                      0x000000010e001442 +[NSException raise:format:arguments:] + 98
3   Foundation                          0x000000010d5f4edd -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4   UIKit                               0x000000010bcd6be9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 3827
5   UIKit                               0x000000010bcd3539 -[UIApplication workspaceDidEndTransaction:] + 188
6   FrontBoardServices                  0x0000000110c2c76b __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
7   FrontBoardServices                  0x0000000110c2c5e4 -[FBSSerialQueue _performNext] + 189
8   FrontBoardServices                  0x0000000110c2c96d -[FBSSerialQueue _performNextFromRunLoopSource] + 45
9   CoreFoundation                      0x000000010dfa2311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
10  CoreFoundation                      0x000000010df8759c __CFRunLoopDoSources0 + 556
11  CoreFoundation                      0x000000010df86a86 __CFRunLoopRun + 918
12  CoreFoundation                      0x000000010df86494 CFRunLoopRunSpecific + 420
13  UIKit                               0x000000010bcd1db6 -[UIApplication _run] + 434
14  UIKit                               0x000000010bcd7f34 UIApplicationMain + 159
15  Science                             0x000000010b5011cf main + 111
16  libdyld.dylib                       0x000000010f00a68d start + 1
17  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)




Sunday, September 25, 2016

José Fernández: 2016 Highlights

José Fernández


Rest in peace...

macOS Sierra: Installing Caffe (Not yet complete)

Command (Installing pyenv):

$ brew install pyenv


Result:

==> Using the sandbox
==> Downloading https://github.com/yyuu/pyenv/archive/v1.0.2.tar.gz
==> Downloading from https://codeload.github.com/yyuu/pyenv/tar.gz/v1.0.2
######################################################################## 100.0%
==> Caveats
To use Homebrew's directories rather than ~/.pyenv add to your profile:
  export PYENV_ROOT=/usr/local/var/pyenv

To enable shims and autocompletion add to your profile:
  if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
==> Summary

🍺  /usr/local/Cellar/pyenv/1.0.2: 521 files, 2.2M, built in 10 seconds


Command (Installing Anaconda):

$ pyenv install --list | grep anaconda


Result:

  anaconda-1.4.0
  anaconda-1.5.0
  anaconda-1.5.1
  anaconda-1.6.0
  anaconda-1.6.1
  anaconda-1.7.0
  anaconda-1.8.0
  anaconda-1.9.0
  anaconda-1.9.1
  anaconda-1.9.2
  anaconda-2.0.0
  anaconda-2.0.1
  anaconda-2.1.0
  anaconda-2.2.0
  anaconda-2.3.0
  anaconda-2.4.0
  anaconda-4.0.0
  anaconda2-2.4.0
  anaconda2-2.4.1
  anaconda2-2.5.0
  anaconda2-4.0.0
  anaconda2-4.1.0
  anaconda2-4.1.1
  anaconda3-2.0.0
  anaconda3-2.0.1
  anaconda3-2.1.0
  anaconda3-2.2.0
  anaconda3-2.3.0
  anaconda3-2.4.0
  anaconda3-2.4.1
  anaconda3-2.5.0
  anaconda3-4.0.0
  anaconda3-4.1.0
  anaconda3-4.1.1


Command:

$ pyenv install anaconda3-4.1.1


Result:

Downloading Anaconda3-4.1.1-MacOSX-x86_64.sh...
-> https://repo.continuum.io/archive/Anaconda3-4.1.1-MacOSX-x86_64.sh
Installing Anaconda3-4.1.1-MacOSX-x86_64...
Installed Anaconda3-4.1.1-MacOSX-x86_64 to /Users/USERNAME/.pyenv/versions/anaconda3-4.1.1


Download and Install (CUDA 7.5 for macOS Sierra Developer Preview):

http://www.nvidia.com/object/macosx-cuda-7.5.30-driver.html


Command (General dependencies):

$ brew install -dv snappy leveldb gflags glog szip lmdb


Result:

/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/snappy.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/leveldb.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gflags.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/glog.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/szip.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/lmdb.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cctools.rb
==> Downloading https://homebrew.bintray.com/bottles/snappy-1.1.3.sierra.bottle.tar.gz
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.4-2-g03e568e (Macintosh; Intel macOS 10.12) curl/7.49.1 https://homebrew.bintray.com/bottles/snappy-1.1.3.sierra.bottle.tar.gz -C 0 -o /Users/USERNAME/Library/Caches/Homebrew/snappy-1.1.3.sierra.bottle.tar.gz.incomplete
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  120k  100  120k    0     0  52002      0  0:00:02  0:00:02 --:--:-- 52118
==> Verifying snappy-1.1.3.sierra.bottle.tar.gz checksum
==> Pouring snappy-1.1.3.sierra.bottle.tar.gz
tar xvzf /Users/USERNAME/Library/Caches/Homebrew/snappy-1.1.3.sierra.bottle.tar.gz
x snappy/1.1.3/
x snappy/1.1.3/AUTHORS
x snappy/1.1.3/ChangeLog
x snappy/1.1.3/COPYING
x snappy/1.1.3/include/
x snappy/1.1.3/INSTALL_RECEIPT.json
x snappy/1.1.3/lib/
x snappy/1.1.3/NEWS
x snappy/1.1.3/README
x snappy/1.1.3/share/
x snappy/1.1.3/share/doc/
x snappy/1.1.3/share/doc/snappy/
x snappy/1.1.3/share/doc/snappy/ChangeLog
x snappy/1.1.3/share/doc/snappy/COPYING
x snappy/1.1.3/share/doc/snappy/format_description.txt
x snappy/1.1.3/share/doc/snappy/framing_format.txt
x snappy/1.1.3/share/doc/snappy/INSTALL
x snappy/1.1.3/share/doc/snappy/NEWS
x snappy/1.1.3/share/doc/snappy/README
x snappy/1.1.3/lib/libsnappy.1.dylib
x snappy/1.1.3/lib/libsnappy.a
x snappy/1.1.3/lib/libsnappy.dylib
x snappy/1.1.3/include/snappy-c.h
x snappy/1.1.3/include/snappy-sinksource.h
x snappy/1.1.3/include/snappy-stubs-public.h
x snappy/1.1.3/include/snappy.h
Changing dylib ID of /usr/local/Cellar/snappy/1.1.3/lib/libsnappy.1.dylib
  from @@HOMEBREW_PREFIX@@/opt/snappy/lib/libsnappy.1.dylib
    to /usr/local/opt/snappy/lib/libsnappy.1.dylib
==> Finishing up
ln -s ../Cellar/snappy/1.1.3/include/snappy-c.h snappy-c.h
ln -s ../Cellar/snappy/1.1.3/include/snappy-sinksource.h snappy-sinksource.h
ln -s ../Cellar/snappy/1.1.3/include/snappy-stubs-public.h snappy-stubs-public.h
ln -s ../Cellar/snappy/1.1.3/include/snappy.h snappy.h
ln -s ../../Cellar/snappy/1.1.3/share/doc/snappy snappy
ln -s ../Cellar/snappy/1.1.3/lib/libsnappy.1.dylib libsnappy.1.dylib
ln -s ../Cellar/snappy/1.1.3/lib/libsnappy.a libsnappy.a
ln -s ../Cellar/snappy/1.1.3/lib/libsnappy.dylib libsnappy.dylib
Changing dylib ID of /usr/local/Cellar/snappy/1.1.3/lib/libsnappy.1.dylib
  from /usr/local/opt/snappy/lib/libsnappy.1.dylib
    to /usr/local/opt/snappy/lib/libsnappy.1.dylib
==> Summary
🍺  /usr/local/Cellar/snappy/1.1.3: 20 files, 414.1K
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/gperftools.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/autoconf.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/automake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libtool.rb
==> Installing dependencies for leveldb: gperftools
==> Installing leveldb dependency: gperftools
==> Downloading https://homebrew.bintray.com/bottles/gperftools-2.5.sierra.bottle.1.tar.gz
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.4-2-g03e568e (Macintosh; Intel macOS 10.12) curl/7.49.1 https://homebrew.bintray.com/bottles/gperftools-2.5.sierra.bottle.1.tar.gz -C 0 -o /Users/USERNAME/Library/Caches/Homebrew/gperftools-2.5.sierra.bottle.1.tar.gz.incomplete
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1260k  100 1260k    0     0   318k      0  0:00:03  0:00:03 --:--:--  688k
==> Verifying gperftools-2.5.sierra.bottle.1.tar.gz checksum
==> Pouring gperftools-2.5.sierra.bottle.1.tar.gz
tar xvzf /Users/USERNAME/Library/Caches/Homebrew/gperftools-2.5.sierra.bottle.1.tar.gz
x gperftools/2.5/
x gperftools/2.5/AUTHORS
x gperftools/2.5/bin/
x gperftools/2.5/ChangeLog
x gperftools/2.5/COPYING
x gperftools/2.5/include/
x gperftools/2.5/INSTALL_RECEIPT.json
x gperftools/2.5/lib/
x gperftools/2.5/NEWS
x gperftools/2.5/README
x gperftools/2.5/share/
x gperftools/2.5/TODO
x gperftools/2.5/share/doc/
x gperftools/2.5/share/man/
x gperftools/2.5/share/man/man1/
x gperftools/2.5/share/man/man1/pprof.1
x gperftools/2.5/share/doc/gperftools/
x gperftools/2.5/share/doc/gperftools/AUTHORS
x gperftools/2.5/share/doc/gperftools/ChangeLog
x gperftools/2.5/share/doc/gperftools/COPYING
x gperftools/2.5/share/doc/gperftools/cpuprofile-fileformat.html
x gperftools/2.5/share/doc/gperftools/cpuprofile.html
x gperftools/2.5/share/doc/gperftools/designstyle.css
x gperftools/2.5/share/doc/gperftools/heap-example1.png
x gperftools/2.5/share/doc/gperftools/heapprofile.html
x gperftools/2.5/share/doc/gperftools/index.html
x gperftools/2.5/share/doc/gperftools/INSTALL
x gperftools/2.5/share/doc/gperftools/NEWS
x gperftools/2.5/share/doc/gperftools/overview.dot
x gperftools/2.5/share/doc/gperftools/overview.gif
x gperftools/2.5/share/doc/gperftools/pageheap.dot
x gperftools/2.5/share/doc/gperftools/pageheap.gif
x gperftools/2.5/share/doc/gperftools/pprof-test-big.gif
x gperftools/2.5/share/doc/gperftools/pprof-test.gif
x gperftools/2.5/share/doc/gperftools/pprof-vsnprintf-big.gif
x gperftools/2.5/share/doc/gperftools/pprof-vsnprintf.gif
x gperftools/2.5/share/doc/gperftools/pprof_remote_servers.html
x gperftools/2.5/share/doc/gperftools/README
x gperftools/2.5/share/doc/gperftools/README_windows.txt
x gperftools/2.5/share/doc/gperftools/spanmap.dot
x gperftools/2.5/share/doc/gperftools/spanmap.gif
x gperftools/2.5/share/doc/gperftools/t-test1.times.txt
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.1024.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.128.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.131072.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.16384.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.2048.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.256.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.32768.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.4096.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.512.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.64.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.65536.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspercpusec.vs.threads.8192.bytes.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.1.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.12.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.16.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.2.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.20.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.3.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.4.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.5.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc-opspersec.vs.size.8.threads.png
x gperftools/2.5/share/doc/gperftools/tcmalloc.html
x gperftools/2.5/share/doc/gperftools/threadheap.dot
x gperftools/2.5/share/doc/gperftools/threadheap.gif
x gperftools/2.5/share/doc/gperftools/TODO
x gperftools/2.5/lib/libprofiler.0.dylib
x gperftools/2.5/lib/libprofiler.a
x gperftools/2.5/lib/libprofiler.dylib
x gperftools/2.5/lib/libtcmalloc.4.dylib
x gperftools/2.5/lib/libtcmalloc.a
x gperftools/2.5/lib/libtcmalloc.dylib
x gperftools/2.5/lib/libtcmalloc_and_profiler.4.dylib
x gperftools/2.5/lib/libtcmalloc_and_profiler.a
x gperftools/2.5/lib/libtcmalloc_and_profiler.dylib
x gperftools/2.5/lib/libtcmalloc_debug.4.dylib
x gperftools/2.5/lib/libtcmalloc_debug.a
x gperftools/2.5/lib/libtcmalloc_debug.dylib
x gperftools/2.5/lib/libtcmalloc_minimal.4.dylib
x gperftools/2.5/lib/libtcmalloc_minimal.a
x gperftools/2.5/lib/libtcmalloc_minimal.dylib
x gperftools/2.5/lib/libtcmalloc_minimal_debug.4.dylib
x gperftools/2.5/lib/libtcmalloc_minimal_debug.a
x gperftools/2.5/lib/libtcmalloc_minimal_debug.dylib
x gperftools/2.5/lib/pkgconfig/
x gperftools/2.5/lib/pkgconfig/libprofiler.pc
x gperftools/2.5/lib/pkgconfig/libtcmalloc.pc
x gperftools/2.5/lib/pkgconfig/libtcmalloc_debug.pc
x gperftools/2.5/lib/pkgconfig/libtcmalloc_minimal.pc
x gperftools/2.5/lib/pkgconfig/libtcmalloc_minimal_debug.pc
x gperftools/2.5/include/google/
x gperftools/2.5/include/gperftools/
x gperftools/2.5/include/gperftools/heap-checker.h
x gperftools/2.5/include/gperftools/heap-profiler.h
x gperftools/2.5/include/gperftools/malloc_extension.h
x gperftools/2.5/include/gperftools/malloc_extension_c.h
x gperftools/2.5/include/gperftools/malloc_hook.h
x gperftools/2.5/include/gperftools/malloc_hook_c.h
x gperftools/2.5/include/gperftools/profiler.h
x gperftools/2.5/include/gperftools/stacktrace.h
x gperftools/2.5/include/gperftools/tcmalloc.h
x gperftools/2.5/include/google/heap-checker.h
x gperftools/2.5/include/google/heap-profiler.h
x gperftools/2.5/include/google/malloc_extension.h
x gperftools/2.5/include/google/malloc_extension_c.h
x gperftools/2.5/include/google/malloc_hook.h
x gperftools/2.5/include/google/malloc_hook_c.h
x gperftools/2.5/include/google/profiler.h
x gperftools/2.5/include/google/stacktrace.h
x gperftools/2.5/include/google/tcmalloc.h
x gperftools/2.5/bin/pprof
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libprofiler.0.dylib
  from @@HOMEBREW_PREFIX@@/opt/gperftools/lib/libprofiler.0.dylib
    to /usr/local/opt/gperftools/lib/libprofiler.0.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc.4.dylib
  from @@HOMEBREW_PREFIX@@/opt/gperftools/lib/libtcmalloc.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc.4.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc_and_profiler.4.dylib
  from @@HOMEBREW_PREFIX@@/opt/gperftools/lib/libtcmalloc_and_profiler.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc_and_profiler.4.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc_debug.4.dylib
  from @@HOMEBREW_PREFIX@@/opt/gperftools/lib/libtcmalloc_debug.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc_debug.4.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc_minimal.4.dylib
  from @@HOMEBREW_PREFIX@@/opt/gperftools/lib/libtcmalloc_minimal.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc_minimal.4.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc_minimal_debug.4.dylib
  from @@HOMEBREW_PREFIX@@/opt/gperftools/lib/libtcmalloc_minimal_debug.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc_minimal_debug.4.dylib
==> Finishing up
ln -s ../Cellar/gperftools/2.5/bin/pprof pprof
ln -s ../Cellar/gperftools/2.5/include/google google
ln -s ../Cellar/gperftools/2.5/include/gperftools gperftools
ln -s ../../Cellar/gperftools/2.5/share/doc/gperftools gperftools
ln -s ../../../Cellar/gperftools/2.5/share/man/man1/pprof.1 pprof.1
ln -s ../Cellar/gperftools/2.5/lib/libprofiler.0.dylib libprofiler.0.dylib
ln -s ../Cellar/gperftools/2.5/lib/libprofiler.a libprofiler.a
ln -s ../Cellar/gperftools/2.5/lib/libprofiler.dylib libprofiler.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc.4.dylib libtcmalloc.4.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc.a libtcmalloc.a
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc.dylib libtcmalloc.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_and_profiler.4.dylib libtcmalloc_and_profiler.4.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_and_profiler.a libtcmalloc_and_profiler.a
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_and_profiler.dylib libtcmalloc_and_profiler.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_debug.4.dylib libtcmalloc_debug.4.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_debug.a libtcmalloc_debug.a
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_debug.dylib libtcmalloc_debug.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_minimal.4.dylib libtcmalloc_minimal.4.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_minimal.a libtcmalloc_minimal.a
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_minimal.dylib libtcmalloc_minimal.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_minimal_debug.4.dylib libtcmalloc_minimal_debug.4.dylib
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_minimal_debug.a libtcmalloc_minimal_debug.a
ln -s ../Cellar/gperftools/2.5/lib/libtcmalloc_minimal_debug.dylib libtcmalloc_minimal_debug.dylib
ln -s ../../Cellar/gperftools/2.5/lib/pkgconfig/libprofiler.pc libprofiler.pc
ln -s ../../Cellar/gperftools/2.5/lib/pkgconfig/libtcmalloc.pc libtcmalloc.pc
ln -s ../../Cellar/gperftools/2.5/lib/pkgconfig/libtcmalloc_debug.pc libtcmalloc_debug.pc
ln -s ../../Cellar/gperftools/2.5/lib/pkgconfig/libtcmalloc_minimal.pc libtcmalloc_minimal.pc
ln -s ../../Cellar/gperftools/2.5/lib/pkgconfig/libtcmalloc_minimal_debug.pc libtcmalloc_minimal_debug.pc
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libprofiler.0.dylib
  from /usr/local/opt/gperftools/lib/libprofiler.0.dylib
    to /usr/local/opt/gperftools/lib/libprofiler.0.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc.4.dylib
  from /usr/local/opt/gperftools/lib/libtcmalloc.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc.4.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc_and_profiler.4.dylib
  from /usr/local/opt/gperftools/lib/libtcmalloc_and_profiler.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc_and_profiler.4.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc_debug.4.dylib
  from /usr/local/opt/gperftools/lib/libtcmalloc_debug.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc_debug.4.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc_minimal.4.dylib
  from /usr/local/opt/gperftools/lib/libtcmalloc_minimal.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc_minimal.4.dylib
Changing dylib ID of /usr/local/Cellar/gperftools/2.5/lib/libtcmalloc_minimal_debug.4.dylib
  from /usr/local/opt/gperftools/lib/libtcmalloc_minimal_debug.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc_minimal_debug.4.dylib
==> Summary
🍺  /usr/local/Cellar/gperftools/2.5: 100 files, 3.5M
==> Installing leveldb
==> Downloading https://homebrew.bintray.com/bottles/leveldb-1.19.sierra.bottle.tar.gz
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.4-2-g03e568e (Macintosh; Intel macOS 10.12) curl/7.49.1 https://homebrew.bintray.com/bottles/leveldb-1.19.sierra.bottle.tar.gz -C 0 -o /Users/USERNAME/Library/Caches/Homebrew/leveldb-1.19.sierra.bottle.tar.gz.incomplete
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  422k  100  422k    0     0   126k      0  0:00:03  0:00:03 --:--:--  354k
==> Verifying leveldb-1.19.sierra.bottle.tar.gz checksum
==> Pouring leveldb-1.19.sierra.bottle.tar.gz
tar xvzf /Users/USERNAME/Library/Caches/Homebrew/leveldb-1.19.sierra.bottle.tar.gz
x leveldb/1.19/
x leveldb/1.19/AUTHORS
x leveldb/1.19/bin/
x leveldb/1.19/include/
x leveldb/1.19/INSTALL_RECEIPT.json
x leveldb/1.19/lib/
x leveldb/1.19/LICENSE
x leveldb/1.19/NEWS
x leveldb/1.19/README.md
x leveldb/1.19/TODO
x leveldb/1.19/lib/libleveldb.1.19.dylib
x leveldb/1.19/lib/libleveldb.1.dylib
x leveldb/1.19/lib/libleveldb.a
x leveldb/1.19/lib/libleveldb.dylib
x leveldb/1.19/include/leveldb/
x leveldb/1.19/include/leveldb/c.h
x leveldb/1.19/include/leveldb/cache.h
x leveldb/1.19/include/leveldb/comparator.h
x leveldb/1.19/include/leveldb/db.h
x leveldb/1.19/include/leveldb/dumpfile.h
x leveldb/1.19/include/leveldb/env.h
x leveldb/1.19/include/leveldb/filter_policy.h
x leveldb/1.19/include/leveldb/iterator.h
x leveldb/1.19/include/leveldb/options.h
x leveldb/1.19/include/leveldb/slice.h
x leveldb/1.19/include/leveldb/status.h
x leveldb/1.19/include/leveldb/table.h
x leveldb/1.19/include/leveldb/table_builder.h
x leveldb/1.19/include/leveldb/write_batch.h
x leveldb/1.19/bin/leveldbutil
Changing install name in /usr/local/Cellar/leveldb/1.19/bin/leveldbutil
  from @@HOMEBREW_PREFIX@@/opt/snappy/lib/libsnappy.1.dylib
    to /usr/local/opt/snappy/lib/libsnappy.1.dylib
Changing install name in /usr/local/Cellar/leveldb/1.19/bin/leveldbutil
  from @@HOMEBREW_PREFIX@@/opt/gperftools/lib/libtcmalloc.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc.4.dylib
Changing dylib ID of /usr/local/Cellar/leveldb/1.19/lib/libleveldb.1.19.dylib
  from @@HOMEBREW_PREFIX@@/opt/leveldb/lib/libleveldb.1.dylib
    to /usr/local/opt/leveldb/lib/libleveldb.1.dylib
Changing install name in /usr/local/Cellar/leveldb/1.19/lib/libleveldb.1.19.dylib
  from @@HOMEBREW_PREFIX@@/opt/snappy/lib/libsnappy.1.dylib
    to /usr/local/opt/snappy/lib/libsnappy.1.dylib
Changing install name in /usr/local/Cellar/leveldb/1.19/lib/libleveldb.1.19.dylib
  from @@HOMEBREW_PREFIX@@/opt/gperftools/lib/libtcmalloc.4.dylib
    to /usr/local/opt/gperftools/lib/libtcmalloc.4.dylib
==> Finishing up
ln -s ../Cellar/leveldb/1.19/bin/leveldbutil leveldbutil
ln -s ../Cellar/leveldb/1.19/include/leveldb leveldb
ln -s ../Cellar/leveldb/1.19/lib/libleveldb.1.19.dylib libleveldb.1.19.dylib
ln -s ../Cellar/leveldb/1.19/lib/libleveldb.1.dylib libleveldb.1.dylib
ln -s ../Cellar/leveldb/1.19/lib/libleveldb.a libleveldb.a
ln -s ../Cellar/leveldb/1.19/lib/libleveldb.dylib libleveldb.dylib
Changing dylib ID of /usr/local/Cellar/leveldb/1.19/lib/libleveldb.1.19.dylib
  from /usr/local/opt/leveldb/lib/libleveldb.1.dylib
    to /usr/local/opt/leveldb/lib/libleveldb.1.dylib
==> Summary
🍺  /usr/local/Cellar/leveldb/1.19: 25 files, 1.1M
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/sphinx-doc.rb
==> Downloading https://homebrew.bintray.com/bottles/gflags-2.1.2.sierra.bottle.2.tar.gz
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.4-2-g03e568e (Macintosh; Intel macOS 10.12) curl/7.49.1 https://homebrew.bintray.com/bottles/gflags-2.1.2.sierra.bottle.2.tar.gz -C 0 -o /Users/USERNAME/Library/Caches/Homebrew/gflags-2.1.2.sierra.bottle.2.tar.gz.incomplete
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  110k  100  110k    0     0  72958      0  0:00:01  0:00:01 --:--:-- 73281
==> Verifying gflags-2.1.2.sierra.bottle.2.tar.gz checksum
==> Pouring gflags-2.1.2.sierra.bottle.2.tar.gz
tar xvzf /Users/USERNAME/Library/Caches/Homebrew/gflags-2.1.2.sierra.bottle.2.tar.gz
x gflags/2.1.2/
x gflags/2.1.2/AUTHORS.txt
x gflags/2.1.2/bin/
x gflags/2.1.2/ChangeLog.txt
x gflags/2.1.2/COPYING.txt
x gflags/2.1.2/include/
x gflags/2.1.2/INSTALL_RECEIPT.json
x gflags/2.1.2/lib/
x gflags/2.1.2/README.md
x gflags/2.1.2/lib/cmake/
x gflags/2.1.2/lib/libgflags.2.1.2.dylib
x gflags/2.1.2/lib/libgflags.2.dylib
x gflags/2.1.2/lib/libgflags.dylib
x gflags/2.1.2/lib/libgflags_nothreads.2.1.2.dylib
x gflags/2.1.2/lib/libgflags_nothreads.2.dylib
x gflags/2.1.2/lib/libgflags_nothreads.dylib
x gflags/2.1.2/lib/cmake/gflags/
x gflags/2.1.2/lib/cmake/gflags/gflags-config-version.cmake
x gflags/2.1.2/lib/cmake/gflags/gflags-config.cmake
x gflags/2.1.2/lib/cmake/gflags/gflags-export-release.cmake
x gflags/2.1.2/lib/cmake/gflags/gflags-export.cmake
x gflags/2.1.2/include/gflags/
x gflags/2.1.2/include/gflags/gflags.h
x gflags/2.1.2/include/gflags/gflags_completions.h
x gflags/2.1.2/include/gflags/gflags_declare.h
x gflags/2.1.2/include/gflags/gflags_gflags.h
x gflags/2.1.2/bin/gflags_completions.sh
Changing dylib ID of /usr/local/Cellar/gflags/2.1.2/lib/libgflags.2.1.2.dylib
  from @@HOMEBREW_PREFIX@@/opt/gflags/lib/libgflags.2.dylib
    to /usr/local/opt/gflags/lib/libgflags.2.dylib
Changing dylib ID of /usr/local/Cellar/gflags/2.1.2/lib/libgflags_nothreads.2.1.2.dylib
  from @@HOMEBREW_PREFIX@@/opt/gflags/lib/libgflags_nothreads.2.dylib
    to /usr/local/opt/gflags/lib/libgflags_nothreads.2.dylib
==> Finishing up
ln -s ../Cellar/gflags/2.1.2/bin/gflags_completions.sh gflags_completions.sh
ln -s ../Cellar/gflags/2.1.2/include/gflags gflags
mkdir -p /usr/local/lib/cmake
ln -s ../../Cellar/gflags/2.1.2/lib/cmake/gflags gflags
ln -s ../Cellar/gflags/2.1.2/lib/libgflags.2.1.2.dylib libgflags.2.1.2.dylib
ln -s ../Cellar/gflags/2.1.2/lib/libgflags.2.dylib libgflags.2.dylib
ln -s ../Cellar/gflags/2.1.2/lib/libgflags.dylib libgflags.dylib
ln -s ../Cellar/gflags/2.1.2/lib/libgflags_nothreads.2.1.2.dylib libgflags_nothreads.2.1.2.dylib
ln -s ../Cellar/gflags/2.1.2/lib/libgflags_nothreads.2.dylib libgflags_nothreads.2.dylib
ln -s ../Cellar/gflags/2.1.2/lib/libgflags_nothreads.dylib libgflags_nothreads.dylib
Changing dylib ID of /usr/local/Cellar/gflags/2.1.2/lib/libgflags.2.1.2.dylib
  from /usr/local/opt/gflags/lib/libgflags.2.dylib
    to /usr/local/opt/gflags/lib/libgflags.2.dylib
Changing dylib ID of /usr/local/Cellar/gflags/2.1.2/lib/libgflags_nothreads.2.1.2.dylib
  from /usr/local/opt/gflags/lib/libgflags_nothreads.2.dylib
    to /usr/local/opt/gflags/lib/libgflags_nothreads.2.dylib
==> Summary
🍺  /usr/local/Cellar/gflags/2.1.2: 20 files, 296.2K
==> Downloading https://homebrew.bintray.com/bottles/glog-0.3.4.sierra.bottle.tar.gz
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.4-2-g03e568e (Macintosh; Intel macOS 10.12) curl/7.49.1 https://homebrew.bintray.com/bottles/glog-0.3.4.sierra.bottle.tar.gz -C 0 -o /Users/USERNAME/Library/Caches/Homebrew/glog-0.3.4.sierra.bottle.tar.gz.incomplete
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  139k  100  139k    0     0  88610      0  0:00:01  0:00:01 --:--:-- 89009
==> Verifying glog-0.3.4.sierra.bottle.tar.gz checksum
==> Pouring glog-0.3.4.sierra.bottle.tar.gz
tar xvzf /Users/USERNAME/Library/Caches/Homebrew/glog-0.3.4.sierra.bottle.tar.gz
x glog/0.3.4/
x glog/0.3.4/AUTHORS
x glog/0.3.4/ChangeLog
x glog/0.3.4/COPYING
x glog/0.3.4/include/
x glog/0.3.4/INSTALL_RECEIPT.json
x glog/0.3.4/lib/
x glog/0.3.4/NEWS
x glog/0.3.4/README
x glog/0.3.4/share/
x glog/0.3.4/share/doc/
x glog/0.3.4/share/doc/glog-0.3.4/
x glog/0.3.4/share/doc/glog-0.3.4/AUTHORS
x glog/0.3.4/share/doc/glog-0.3.4/ChangeLog
x glog/0.3.4/share/doc/glog-0.3.4/COPYING
x glog/0.3.4/share/doc/glog-0.3.4/designstyle.css
x glog/0.3.4/share/doc/glog-0.3.4/glog.html
x glog/0.3.4/share/doc/glog-0.3.4/INSTALL
x glog/0.3.4/share/doc/glog-0.3.4/NEWS
x glog/0.3.4/share/doc/glog-0.3.4/README
x glog/0.3.4/share/doc/glog-0.3.4/README.windows
x glog/0.3.4/lib/libglog.0.dylib
x glog/0.3.4/lib/libglog.a
x glog/0.3.4/lib/libglog.dylib
x glog/0.3.4/lib/pkgconfig/
x glog/0.3.4/lib/pkgconfig/libglog.pc
x glog/0.3.4/include/glog/
x glog/0.3.4/include/glog/log_severity.h
x glog/0.3.4/include/glog/logging.h
x glog/0.3.4/include/glog/raw_logging.h
x glog/0.3.4/include/glog/stl_logging.h
x glog/0.3.4/include/glog/vlog_is_on.h
Changing dylib ID of /usr/local/Cellar/glog/0.3.4/lib/libglog.0.dylib
  from @@HOMEBREW_PREFIX@@/opt/glog/lib/libglog.0.dylib
    to /usr/local/opt/glog/lib/libglog.0.dylib
Changing install name in /usr/local/Cellar/glog/0.3.4/lib/libglog.0.dylib
  from @@HOMEBREW_PREFIX@@/opt/gflags/lib/libgflags.2.dylib
    to /usr/local/opt/gflags/lib/libgflags.2.dylib
==> Finishing up
ln -s ../Cellar/glog/0.3.4/include/glog glog
ln -s ../../Cellar/glog/0.3.4/share/doc/glog-0.3.4 glog-0.3.4
ln -s ../Cellar/glog/0.3.4/lib/libglog.0.dylib libglog.0.dylib
ln -s ../Cellar/glog/0.3.4/lib/libglog.a libglog.a
ln -s ../Cellar/glog/0.3.4/lib/libglog.dylib libglog.dylib
ln -s ../../Cellar/glog/0.3.4/lib/pkgconfig/libglog.pc libglog.pc
Changing dylib ID of /usr/local/Cellar/glog/0.3.4/lib/libglog.0.dylib
  from /usr/local/opt/glog/lib/libglog.0.dylib
    to /usr/local/opt/glog/lib/libglog.0.dylib
==> Summary
🍺  /usr/local/Cellar/glog/0.3.4: 24 files, 426.1K
==> Downloading https://homebrew.bintray.com/bottles/szip-2.1.sierra.bottle.1.tar.gz
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.4-2-g03e568e (Macintosh; Intel macOS 10.12) curl/7.49.1 https://homebrew.bintray.com/bottles/szip-2.1.sierra.bottle.1.tar.gz -C 0 -o /Users/USERNAME/Library/Caches/Homebrew/szip-2.1.sierra.bottle.1.tar.gz.incomplete
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 44455  100 44455    0     0  22397      0  0:00:01  0:00:01 --:--:-- 22463
==> Verifying szip-2.1.sierra.bottle.1.tar.gz checksum
==> Pouring szip-2.1.sierra.bottle.1.tar.gz
tar xvzf /Users/USERNAME/Library/Caches/Homebrew/szip-2.1.sierra.bottle.1.tar.gz
x szip/2.1/
x szip/2.1/COPYING
x szip/2.1/HISTORY.txt
x szip/2.1/include/
x szip/2.1/INSTALL_RECEIPT.json
x szip/2.1/lib/
x szip/2.1/README
x szip/2.1/lib/libsz.2.0.0.dylib
x szip/2.1/lib/libsz.2.dylib
x szip/2.1/lib/libsz.a
x szip/2.1/lib/libsz.dylib
x szip/2.1/include/ricehdf.h
x szip/2.1/include/szip_adpt.h
x szip/2.1/include/szlib.h
Changing dylib ID of /usr/local/Cellar/szip/2.1/lib/libsz.2.0.0.dylib
  from @@HOMEBREW_PREFIX@@/opt/szip/lib/libsz.2.dylib
    to /usr/local/opt/szip/lib/libsz.2.dylib
==> Finishing up
ln -s ../Cellar/szip/2.1/include/ricehdf.h ricehdf.h
ln -s ../Cellar/szip/2.1/include/szip_adpt.h szip_adpt.h
ln -s ../Cellar/szip/2.1/include/szlib.h szlib.h
ln -s ../Cellar/szip/2.1/lib/libsz.2.0.0.dylib libsz.2.0.0.dylib
ln -s ../Cellar/szip/2.1/lib/libsz.2.dylib libsz.2.dylib
ln -s ../Cellar/szip/2.1/lib/libsz.a libsz.a
ln -s ../Cellar/szip/2.1/lib/libsz.dylib libsz.dylib
Changing dylib ID of /usr/local/Cellar/szip/2.1/lib/libsz.2.0.0.dylib
  from /usr/local/opt/szip/lib/libsz.2.dylib
    to /usr/local/opt/szip/lib/libsz.2.dylib
==> Summary
🍺  /usr/local/Cellar/szip/2.1: 11 files, 107.5K
==> Downloading https://homebrew.bintray.com/bottles/lmdb-0.9.18.sierra.bottle.tar.gz
/usr/bin/curl --fail --remote-time --location --user-agent Homebrew/1.0.4-2-g03e568e (Macintosh; Intel macOS 10.12) curl/7.49.1 https://homebrew.bintray.com/bottles/lmdb-0.9.18.sierra.bottle.tar.gz -C 0 -o /Users/USERNAME/Library/Caches/Homebrew/lmdb-0.9.18.sierra.bottle.tar.gz.incomplete
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  259k  100  259k    0     0   103k      0  0:00:02  0:00:02 --:--:--  469k
==> Verifying lmdb-0.9.18.sierra.bottle.tar.gz checksum
==> Pouring lmdb-0.9.18.sierra.bottle.tar.gz
tar xvzf /Users/USERNAME/Library/Caches/Homebrew/lmdb-0.9.18.sierra.bottle.tar.gz
x lmdb/0.9.18/
x lmdb/0.9.18/bin/
x lmdb/0.9.18/include/
x lmdb/0.9.18/INSTALL_RECEIPT.json
x lmdb/0.9.18/lib/
x lmdb/0.9.18/share/
x lmdb/0.9.18/share/man/
x lmdb/0.9.18/share/man/man1/
x lmdb/0.9.18/share/man/man1/mdb_copy.1
x lmdb/0.9.18/share/man/man1/mdb_dump.1
x lmdb/0.9.18/share/man/man1/mdb_load.1
x lmdb/0.9.18/share/man/man1/mdb_stat.1
x lmdb/0.9.18/lib/liblmdb.a
x lmdb/0.9.18/lib/liblmdb.dylib
x lmdb/0.9.18/include/lmdb.h
x lmdb/0.9.18/bin/mdb_copy
x lmdb/0.9.18/bin/mdb_dump
x lmdb/0.9.18/bin/mdb_load
x lmdb/0.9.18/bin/mdb_stat
Changing dylib ID of /usr/local/Cellar/lmdb/0.9.18/lib/liblmdb.dylib
  from @@HOMEBREW_PREFIX@@/opt/lmdb/lib/liblmdb.dylib
    to /usr/local/opt/lmdb/lib/liblmdb.dylib
==> Finishing up
ln -s ../Cellar/lmdb/0.9.18/bin/mdb_copy mdb_copy
ln -s ../Cellar/lmdb/0.9.18/bin/mdb_dump mdb_dump
ln -s ../Cellar/lmdb/0.9.18/bin/mdb_load mdb_load
ln -s ../Cellar/lmdb/0.9.18/bin/mdb_stat mdb_stat
ln -s ../Cellar/lmdb/0.9.18/include/lmdb.h lmdb.h
ln -s ../../../Cellar/lmdb/0.9.18/share/man/man1/mdb_copy.1 mdb_copy.1
ln -s ../../../Cellar/lmdb/0.9.18/share/man/man1/mdb_dump.1 mdb_dump.1
ln -s ../../../Cellar/lmdb/0.9.18/share/man/man1/mdb_load.1 mdb_load.1
ln -s ../../../Cellar/lmdb/0.9.18/share/man/man1/mdb_stat.1 mdb_stat.1
ln -s ../Cellar/lmdb/0.9.18/lib/liblmdb.a liblmdb.a
ln -s ../Cellar/lmdb/0.9.18/lib/liblmdb.dylib liblmdb.dylib
Changing dylib ID of /usr/local/Cellar/lmdb/0.9.18/lib/liblmdb.dylib
  from /usr/local/opt/lmdb/lib/liblmdb.dylib
    to /usr/local/opt/lmdb/lib/liblmdb.dylib
==> Summary
🍺  /usr/local/Cellar/lmdb/0.9.18: 12 files, 537.8K


Command (Tapping homebrew/science):

$ brew tap homebrew/science


Result:

==> Tapping homebrew/science
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-science'...
remote: Counting objects: 638, done.
remote: Compressing objects: 100% (634/634), done.
remote: Total 638 (delta 1), reused 67 (delta 0), pack-reused 0
Receiving objects: 100% (638/638), 556.61 KiB | 365.00 KiB/s, done.
Resolving deltas: 100% (1/1), done.
Tapped 622 formulae (657 files, 1.7M)


Command (Confirm):

$ brew tap


Result:

==> Auto-updated Homebrew!
Updated Homebrew from 03e568e to 6e57355.
Updated 1 tap (homebrew/core).
==> Updated Formulae
abcm2ps                   cake                      git-imerge                libyaml                   plowshare                 tor                  
agedu                     discount                  haskell-stack             mas                       pod2man              
==> Deleted Formulae
aget                                                                           sgfutils                                                                  

homebrew/core
homebrew/python
homebrew/science


Command (installing hdf5 and opencv):

$ brew install hdf5 opencv


Result:

==> Installing hdf5 from homebrew/science
==> Installing dependencies for homebrew/science/hdf5: autoconf, automake, libtool
==> Installing homebrew/science/hdf5 dependency: autoconf
==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.69.sierra.bottle.4.tar.gz
######################################################################## 100.0%
==> Pouring autoconf-2.69.sierra.bottle.4.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/autoconf
==> Summary
🍺  /usr/local/Cellar/autoconf/2.69: 70 files, 3.0M
==> Installing homebrew/science/hdf5 dependency: automake
==> Downloading https://homebrew.bintray.com/bottles/automake-1.15.sierra.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring automake-1.15.sierra.bottle.2.tar.gz
🍺  /usr/local/Cellar/automake/1.15: 130 files, 2.9M
==> Installing homebrew/science/hdf5 dependency: libtool
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtool-2.4.6_1.sierra.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺  /usr/local/Cellar/libtool/2.4.6_1: 70 files, 3.7M
==> Installing homebrew/science/hdf5
==> Downloading https://support.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.17.tar.bz2
######################################################################## 100.0%
==> autoreconf -fiv
==> ./configure --prefix=/usr/local/Cellar/hdf5/1.8.17 --enable-production --enable-debug=no --with-zlib=/usr --with-szlib=/usr/local/opt/szip --enable-stat
==> make
==> make install
🍺  /usr/local/Cellar/hdf5/1.8.17: 180 files, 10.6M, built in 3 minutes 37 seconds
==> Installing opencv from homebrew/science
==> Installing dependencies for homebrew/science/opencv: cmake, eigen, ilmbase, openexr, pkg-config
==> Installing homebrew/science/opencv dependency: cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.6.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-3.6.2.sierra.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺  /usr/local/Cellar/cmake/3.6.2: 2,028 files, 27.8M
==> Installing homebrew/science/opencv dependency: eigen
==> Downloading https://homebrew.bintray.com/bottles/eigen-3.2.9.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring eigen-3.2.9.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/eigen/3.2.9: 368 files, 3.5M
==> Installing homebrew/science/opencv dependency: ilmbase
==> Downloading https://homebrew.bintray.com/bottles/ilmbase-2.2.0.sierra.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring ilmbase-2.2.0.sierra.bottle.2.tar.gz
🍺  /usr/local/Cellar/ilmbase/2.2.0: 362 files, 5.6M
==> Installing homebrew/science/opencv dependency: openexr
==> Downloading https://homebrew.bintray.com/bottles/openexr-2.2.0.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring openexr-2.2.0.sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/openexr/2.2.0: 131 files, 11.2M
==> Installing homebrew/science/opencv dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.1_2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.29.1_2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.1_2: 10 files, 627.4K
==> Installing homebrew/science/opencv
==> Downloading https://github.com/opencv/opencv/archive/2.4.13.tar.gz
==> Downloading from https://codeload.github.com/opencv/opencv/tar.gz/2.4.13
######################################################################## 100.0%
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.13_3 -DCMAKE_BUILD_TYPE
==> make
Last 15 lines from /Users/USERNAME/Library/Logs/Homebrew/opencv/02.make:
[ 15%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowgf.cpp.o
cd /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++   -DCVAPI_EXPORTS -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/perf -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/calib3d/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/features2d/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/highgui/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/imgproc/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/flann/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/core/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/ts/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/src -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/test -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild -isystem /usr/local/include/eigen3  -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -Wno-semicolon-before-method-body -fno-omit-frame-pointer -msse -msse2 -mavx -DNDEBUG  -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fPIC   -o CMakeFiles/opencv_video.dir/src/optflowgf.cpp.o -c /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/src/optflowgf.cpp
[ 16%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/simpleflow.cpp.o
cd /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++   -DCVAPI_EXPORTS -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/perf -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/calib3d/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/features2d/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/highgui/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/imgproc/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/flann/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/core/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/ts/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/src -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/test -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild -isystem /usr/local/include/eigen3  -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -Wno-semicolon-before-method-body -fno-omit-frame-pointer -msse -msse2 -mavx -DNDEBUG  -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fPIC   -o CMakeFiles/opencv_video.dir/src/simpleflow.cpp.o -c /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/src/simpleflow.cpp
[ 16%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/tvl1flow.cpp.o
cd /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++   -DCVAPI_EXPORTS -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/perf -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/calib3d/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/features2d/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/highgui/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/imgproc/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/flann/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/core/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/ts/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/src -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/test -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild -isystem /usr/local/include/eigen3  -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -Wno-semicolon-before-method-body -fno-omit-frame-pointer -msse -msse2 -mavx -DNDEBUG  -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fPIC   -o CMakeFiles/opencv_video.dir/src/tvl1flow.cpp.o -c /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/src/tvl1flow.cpp
[ 16%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/video_init.cpp.o
cd /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++   -DCVAPI_EXPORTS -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/perf -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/calib3d/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/features2d/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/highgui/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/imgproc/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/flann/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/core/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/ts/include -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/src -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/test -I/tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild -isystem /usr/local/include/eigen3  -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -Wno-semicolon-before-method-body -fno-omit-frame-pointer -msse -msse2 -mavx -DNDEBUG  -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fPIC   -o CMakeFiles/opencv_video.dir/src/video_init.cpp.o -c /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/modules/video/src/video_init.cpp
[ 16%] Linking CXX shared library ../../lib/libopencv_video.dylib
cd /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video && /usr/local/Cellar/cmake/3.6.2/bin/cmake -E cmake_link_script CMakeFiles/opencv_video.dir/link.txt --verbose=1
/usr/local/Homebrew/Library/Homebrew/shims/super/clang++     -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -Wno-semicolon-before-method-body -fno-omit-frame-pointer -msse -msse2 -mavx -DNDEBUG  -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 2.4.0 -current_version 2.4.13 -o ../../lib/libopencv_video.2.4.13.dylib -install_name /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/lib/libopencv_video.2.4.dylib CMakeFiles/opencv_video.dir/src/bgfg_gaussmix.cpp.o CMakeFiles/opencv_video.dir/src/bgfg_gaussmix2.cpp.o CMakeFiles/opencv_video.dir/src/bgfg_gmg.cpp.o CMakeFiles/opencv_video.dir/src/camshift.cpp.o CMakeFiles/opencv_video.dir/src/kalman.cpp.o CMakeFiles/opencv_video.dir/src/lkpyramid.cpp.o CMakeFiles/opencv_video.dir/src/motempl.cpp.o CMakeFiles/opencv_video.dir/src/optflowgf.cpp.o CMakeFiles/opencv_video.dir/src/simpleflow.cpp.o CMakeFiles/opencv_video.dir/src/tvl1flow.cpp.o CMakeFiles/opencv_video.dir/src/video_init.cpp.o ../../lib/libopencv_imgproc.2.4.13.dylib ../../lib/libopencv_core.2.4.13.dylib
cd /tmp/opencv-20160925-39329-tnphw6/opencv-2.4.13/macbuild/modules/video && /usr/local/Cellar/cmake/3.6.2/bin/cmake -E cmake_symlink_library ../../lib/libopencv_video.2.4.13.dylib ../../lib/libopencv_video.2.4.dylib ../../lib/libopencv_video.dylib
[ 16%] Built target opencv_video
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/Homebrew/homebrew-science/issues

These open issues may also help:
opencv: fix stable on sierra and with xcode 8 sdk https://github.com/Homebrew/homebrew-science/pull/4336
opencv: fix build with vtk https://github.com/Homebrew/homebrew-science/pull/3750
OpenCV install fails on MacOS Sierra (10.12) at 16% https://github.com/Homebrew/homebrew-science/issues/4303
opencv: java.lang.UnsatisfiedLinkError https://github.com/Homebrew/homebrew-science/issues/1979
opencv modify libstdc++ to libc++ https://github.com/Homebrew/homebrew-science/pull/2714
brew install opencv --with-ffmpeg fails https://github.com/Homebrew/homebrew-science/issues/2862
OpenCV 3 macOS 10.12 Sierra QTKit not found build issue https://github.com/Homebrew/homebrew-science/issues/4104
Cannot build OpenCV with Java https://github.com/Homebrew/homebrew-science/issues/2499
Brew install opencv fails at 99%  https://github.com/Homebrew/homebrew-science/issues/2905
OpenCV 3.1.0 Java Link Problem https://github.com/Homebrew/homebrew-science/issues/3268
OpenCV and OpenCV3 fail to build with ximea camera support https://github.com/Homebrew/homebrew-science/issues/3395
opencv fail to build with ffmpeg or vtk https://github.com/Homebrew/homebrew-science/issues/3371
opencv failed to build against QuickTime on 10.11 https://github.com/Homebrew/homebrew-science/issues/3322
Installing OpenCV attempts to reinstall gcc 5.2 https://github.com/Homebrew/homebrew-science/issues/2938

Git: Cloning Caffe

Command:

$ git clone https://github.com/BVLC/caffe.git


Result:

Cloning into 'caffe'...
remote: Counting objects: 36465, done.
remote: Total 36465 (delta 0), reused 0 (delta 0), pack-reused 36464
Receiving objects: 100% (36465/36465), 49.42 MiB | 339.00 KiB/s, done.
Resolving deltas: 100% (24583/24583), done.

IntelliJ IDEA: Download

IntelliJ IDEA

https://www.jetbrains.com/idea/