Showing posts with label osX. Show all posts
Showing posts with label osX. Show all posts

Monday, May 13, 2019

macbook pro black screen problem

macbook pro, 15 inches, screen is black after failed wakeup from sleep.

https://macpaw.com/how-to/fix-mac-black-screen

it works when connects to an VGA monitor.

Run disk unility, fixed volume issue, restart, still black screen.

===============Tried this, still black screen===========

Reset your Mac’s NVRAM settings

NVRAM stands for non-volatile RAM and is basically a functionality that stores in memory settings for display, speakers, primary startup disk etc. Everything even remotely connected with boot process (like your MacBook won’t turning on) can be set back to factory settings during the NVRAM reset.
To flush NVRAM settings:
  1. Shut your Mac down.
  2. Press the Power key.
  3. Wait for your Mac to start loading.
  4. When you hear a startup sound, hold down Cmd + Option + P + R.
  5. Keep pressing the keys until you hear a second startup sound
==================================

Zap your Mac’s SMC settings

SMC is System Management Controller. What it controls is temperature, lights, keyboard, fans, and many other side-processes. According to Mac support forums, resetting SMC helps in 90% of the cases when your Mac’s screen goes black. To perform this trick follow the tips below.
For a MacBook with a non-removable battery:
  1. Shut your Mac down. 
  2. Connect your Mac to a power outlet. 
  3. While your Mac is still shut, Press Shift + Option + Control and Power key at the same time. 
  4. Let go of the keys and boot your Mac again.
Reset SMC to fix MacBook black screen

==================================

Update OS X system

https://support.apple.com/kb/DL1969?locale=en_US

upgrade from 10.12.6 Sierra to 10.13 High Sierra

Downloaded high Sierra dmg file. Installed. Restarted not responding after 3-5 minutes.

14:47, hard-shutdown, and restart again. Fan can be heard running.







Monday, January 28, 2019

mac startup list change, remove citrix receiver




applejack:LaunchAgents hqin$ pwd

/Library/LaunchAgents


com.adobe.AAM.Updater-1.0.plist
com.adobe.ARMDCHelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a23d420d.plist
com.bradfordnetworks.bncsaui.plist
com.citrix.AuthManager_Mac.plist
com.citrix.ReceiverHelper.plist
com.citrix.ServiceRecords.plist
com.google.keystone.agent.plist
com.jamf.management.agent.plist
com.jamfsoftware.jamf.agent.plist
com.microsoft.update.agent.plist
com.oracle.java.Java-Updater.plist
com.paloaltonetworks.gp.pangpa.plist
com.paloaltonetworks.gp.pangps.plist
com.paragon-software.NTFS.fsnotify.agent.plist
com.paragon-software.facebook.agent.plist
com.pharos.notify.plist
com.pharos.popup.plist
org.chromium.chromoting.plist
org.macosforge.xquartz.startx.plist
applejack:LaunchAgents hqin$ less com.citrix.AuthManager_Mac.plist
applejack:LaunchAgents hqin$ grep vpn *
applejack:LaunchAgents hqin$ grep VPN *
applejack:LaunchAgents hqin$ pwd
/Library/LaunchAgents
applejack:LaunchAgents hqin$ 
applejack:LaunchAgents hqin$ 
applejack:LaunchAgents hqin$ pwd
/Library/LaunchAgents




 sudo nano -w com.citrix.AuthManager_Mac.plist
// change the key value to false, based on
https://superuser.com/questions/885273/how-can-i-stop-checkpoints-vpn-program-from-automatically-starting-on-my-mac-t

did not work, try this:

 sudo nano -w com.citrix.ReceiverHelper.plist

        <key>RunAtLoad</key>
        <false/> #change from true to false

still not work, try to remove software at /usr/local/libexec/ReceiverHelper.app

applejack:~ hqin$ cd /usr/local/libexec/
applejack:libexec hqin$ ls
AuthManager_Mac.app ReceiverHelper.app ServiceRecords.app
applejack:libexec hqin$ ll
total 0
drwxr-xr-x  3 root  wheel   102B May  1  2017 AuthManager_Mac.app
drwxr-xr-x  3 root  wheel   102B May  1  2017 ReceiverHelper.app
drwxr-xr-x  3 root  wheel   102B May  1  2017 ServiceRecords.app
applejack:libexec hqin$ less ReceiverHelper.app/
ReceiverHelper.app/ is a directory
applejack:libexec hqin$ cd ReceiverHelper.app/
applejack:ReceiverHelper.app hqin$ ls
Contents
applejack:ReceiverHelper.app hqin$ cd Contents/
applejack:Contents hqin$ ls
Frameworks MacOS Resources
Info.plist PkgInfo _CodeSignature
applejack:Contents hqin$ cd MacOS/
applejack:MacOS hqin$ ls
ReceiverHelper
applejack:MacOS hqin$ less ReceiverHelper 
"ReceiverHelper" may be a binary file.  See it anyway? 
applejack:MacOS hqin$ pwd
/usr/local/libexec/ReceiverHelper.app/Contents/MacOS
applejack:MacOS hqin$ sudo mv ReceiverHelper ReceiverHelper.trash
Password:
applejack:MacOS hqin$ pwd

/usr/local/libexec/ReceiverHelper.app/Contents/MacOS

Finally, this removed citrix receiver from startup.


Thursday, June 21, 2018

turn on three finger drag on apple laptop


https://support.apple.com/en-us/ht204609


Turn on "three finger drag" for your Force Touch trackpad

"Three finger drag" is a Multi-Touch gesture in OS X. It lets you use three fingers to move the active window on your screen.
Here's how to turn on three finger drag if your Mac has a Force Touch trackpad
  1. From the Apple menu, choose System Preferences.
  2. Click the Accessibility icon.
  3. Choose Mouse & Trackpad from the options on the left.
  4. Click Trackpad Options.
  5. Place a checkmark next to "Enable dragging." 
  6. From the related pop-up menu, choose “three finger drag” so there's a checkmark next to it.
  7. Click OK.
Published Date: 

Wednesday, June 20, 2018

folder with large file size on applejack

Folders with large file size


applejack:MobileSync hqin$ pwd
/Users/hqin/Library/Application Support/Google
Google File stream temporary uploading file

/Users/hqin/Library/Application Support/MobileSync
iPad syn storage.

Saturday, July 8, 2017

change disk size of VirtualBox, in osX


http://osxdaily.com/2015/04/07/how-to-resize-a-virtualbox-vdi-or-vhd-file-on-mac-os-x/


applejack:MacOS hqin$ VBoxManage modifyhd /Users/hqin/VirtualBox\ VMs/windows10/
Logs/                windows10.vbox       windows10.vbox-prev  windows10.vdi        
applejack:MacOS hqin$ VBoxManage modifyhd --resize 40000 /Users/hqin/VirtualBox\ VMs/windows10/windows10.vdi 
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
applejack:MacOS hqin$ VBoxManage showhdinfo  /Users/hqin/VirtualBox\ VMs/windows10/windows10.vdi 
UUID:           3a38dc04-987c-46be-9dda-1ded6cece216
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /Users/hqin/VirtualBox VMs/windows10/windows10.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       40000 MBytes
Size on disk:   20154 MBytes
Encryption:     disabled

In use by VMs:  windows10 (UUID: 46645298-3095-4fa0-8b95-f625b89c4b24)




Tuesday, July 4, 2017

wget to osX

install wget to applejack mac osX

sudo port install wget

Monday, January 23, 2017

annaconda py2.7 commandline installation, applejack

laptop: applejack,

Download commandline Anaconda2 installation using python 2.7.

Under 'hqin'
bash Anaconda2-4.2.0-MacOSX-x86_64.sh
Anaconda2 will now be installed into this location:

/Users/hqin/anaconda2

Thursday, January 19, 2017

wine Respondus, macOS, network problem

Installed Respondus through wine on osX laptop.


Byte-5:windows hqin$ wine Respond.exe 

#It runs, but publishing to UTClearn failed.


Wednesday, January 11, 2017

wine, osX installation, Visual Logic run


Based on the instructions of
https://www.davidbaumgold.com/tutorials/wine-mac/#part-1:-install-homebrew
The whole installation process probably took 1-2 hours, depending on network speed.

First, install homebrew (a package manager)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


brew doctor

Warning: Your Xcode (6.2) is outdated.
Please update to Xcode 7.2.1 (or delete it).

Xcode can be updated from the App Store


brew tap caskroom/cask

Byte-5:~ hqin$ brew tap caskroom/cask
==> Tapping caskroom/cask
Cloning into '/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask'...
remote: Counting objects: 3616, done.
remote: Compressing objects: 100% (3601/3601), done.
remote: Total 3616 (delta 34), reused 267 (delta 11), pack-reused 0
Receiving objects: 100% (3616/3616), 1.19 MiB | 0 bytes/s, done.
Resolving deltas: 100% (34/34), done.
Checking connectivity... done.

Tapped 0 formulae (3,624 files, 3.7M)


brew cask install java xquartz


Byte-5:~ hqin$ brew cask install java xquartz
==> Creating Caskroom at /usr/local/Caskroom
==> We'll set permissions properly so we won't need sudo in the future
Password:
==> Caveats
This Cask makes minor modifications to the JRE to prevent issues with
packaged applications, as discussed here:

  https://bugs.eclipse.org/bugs/show_bug.cgi?id=411361

If your Java application still asks for JRE installation, you might need
to reboot or logout/login.

Installing this Cask means you have AGREED to the Oracle Binary Code
License Agreement for Java SE at

  https://www.oracle.com/technetwork/java/javase/terms/license/index.html

==> Downloading http://download.oracle.com/otn-pub/java/jdk/8u112-b16/jdk-8u112-
######################################################################## 100.0%
==> Verifying checksum for Cask java
==> Running installer for java; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are i
==> installer: Package name is JDK 8 Update 112
==> installer: Upgrading at base path /
==> installer: The upgrade was successful.
🍺  java was successfully installed!
==> Downloading https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask xquartz
==> Running installer for xquartz; your password may be necessary.

==> Package installers may write to any location; options such as --appdir are ignored.
==> Verifying checksum for Cask xquartz
==> Running installer for xquartz; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
==> installer: Package name is XQuartz 2.7.11
==> installer: Upgrading at base path /
==> installer: The upgrade was successful.
==> /Library/LaunchAgents/org.macosforge.xquartz.startx.plist: Operation already in progress

🍺  xquartz was successfully installed!


brew install wine
Byte-5:~ hqin$ brew install wine
==> Installing dependencies for wine: libpng, freetype, jpeg, pkg-config, libtool, libusb, libusb-compat, fontconfig, libtiff, webp, gd, libgphoto2, little-cms2, cmake, jasper, libicns, makedepend, openssl, net-snmp, sane-backends, libtasn1, gmp, nettle, libffi, p11-kit, gnutls
==> Installing wine dependency: libpng
==> Using the sandbox
==> Downloading ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.28.tar.xz
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libpng/1.6.28
==> make
==> make test
==> make install
🍺  /usr/local/Cellar/libpng/1.6.28: 26 files, 1.7M, built in 4 minutes 26 seconds
==> Installing wine dependency: freetype
==> Downloading https://downloads.sf.net/project/freetype/freetype2/2.7.1/freetype-2.7.1.tar.bz2
==> Downloading from https://iweb.dl.sourceforge.net/project/freetype/freetype2/2.7.1/freetype-2.7.1.tar
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/freetype/2.7.1 --without-harfbuzz
==> make
==> make install
🍺  /usr/local/Cellar/freetype/2.7.1: 62 files, 3.7M, built in 1 minute 5 seconds
==> Installing wine dependency: jpeg
==> Downloading http://www.ijg.org/files/jpegsrc.v8d.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/jpeg/8d
==> make install
🍺  /usr/local/Cellar/jpeg/8d: 20 files, 1.3M, built in 29 seconds
==> Installing wine dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.1_2.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.29.1_2.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.1_2: 10 files, 627.4K
==> Installing wine dependency: libtool
==> Downloading https://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.xz
==> Downloading from http://open-source-box.org/libtool/libtool-2.4.6.tar.xz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtool/2.4.6_1 --program-prefix=g --enable-ltdl-install
==> make install
==> 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: 71 files, 3.7M, built in 45 seconds
==> Installing wine dependency: libusb
==> Downloading https://github.com/libusb/libusb/releases/download/v1.0.20/libusb-1.0.20.tar.bz2
==> Downloading from https://github-cloud.s3.amazonaws.com/releases/15120676/80d0f5e8-5a3e-11e5-82a6-d21
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libusb/1.0.20
==> make install
🍺  /usr/local/Cellar/libusb/1.0.20: 28 files, 754.7K, built in 23 seconds
==> Installing wine dependency: libusb-compat
==> Downloading https://downloads.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-0.1.5/l
==> Downloading from https://pilotfiber.dl.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compa
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libusb-compat/0.1.5
==> make install
🍺  /usr/local/Cellar/libusb-compat/0.1.5: 14 files, 136.6K, built in 16 seconds
==> Installing wine dependency: fontconfig
==> Downloading https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.12.1.tar.bz2
######################################################################## 100.0%
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/3790bcd/fontconfig/patch-2.12
######################################################################## 100.0%
==> Patching
==> Applying patch-2.12.1-fccache.diff
patching file src/fccache.c
==> ./configure --disable-silent-rules --enable-static --with-add-fonts=/System/Library/Fonts,/Library/F
==> make install RUN_FC_CACHE_TEST=false
==> Regenerating font cache, this may take a while
==> /usr/local/Cellar/fontconfig/2.12.1_2/bin/fc-cache -frv
^[[B^[[B🍺  /usr/local/Cellar/fontconfig/2.12.1_2: 469 files, 3.8M, built in 2 minutes 36 seconds
==> Installing wine dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz
######################################################################## 100.0%
==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.7-4.debian.tar.xz
######################################################################## 100.0%
==> Patching
==> Applying patches/01-CVE.patch
patching file ChangeLog
patching file libtiff/tif_read.c
patching file libtiff/tiffiop.h
==> Applying patches/02-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/03-CVE.patch
patching file ChangeLog
patching file libtiff/tif_luv.c
patching file libtiff/tif_pixarlog.c
==> Applying patches/04-CVE.patch
patching file ChangeLog
patching file libtiff/tif_dirread.c
patching file libtiff/tif_strip.c
==> Applying patches/05-CVE.patch
patching file ChangeLog
patching file libtiff/tif_ojpeg.c
==> Applying patches/06-CVE.patch
patching file ChangeLog
patching file tools/tiffcrop.c
==> Applying patches/07-CVE.patch
patching file ChangeLog
patching file tools/tiffcrop.c
==> Applying patches/08-CVE.patch
patching file ChangeLog
patching file tools/tiffcrop.c
==> Applying patches/09-CVE.patch
patching file ChangeLog
patching file tools/tiffinfo.c
==> Applying patches/10-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/11-CVE.patch
patching file ChangeLog
patching file libtiff/tif_dir.c
==> Applying patches/12-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/13-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/14-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/15-TIFFFaxTabEnt_bugfix.patch
patching file ChangeLog
patching file libtiff/tif_fax3.h
==> Applying patches/16-CVE-2016-10094.patch
patching file ChangeLog
patching file tools/tiff2pdf.c
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.7_1 --without-x --with-jpeg-include-dir=/usr/loca
==> make install
🍺  /usr/local/Cellar/libtiff/4.0.7_1: 248 files, 5.0M, built in 57 seconds
==> Installing wine dependency: webp
==> Downloading http://downloads.webmproject.org/releases/webp/libwebp-0.5.2.tar.gz
######################################################################## 100.0%
==> ./configure --disable-gl --enable-libwebpmux --enable-libwebpdemux --enable-libwebpdecoder --prefix=
==> make install
🍺  /usr/local/Cellar/webp/0.5.2: 35 files, 3.3M, built in 43 seconds
==> Installing wine dependency: gd
==> Downloading https://github.com/libgd/libgd/releases/download/gd-2.2.3/libgd-2.2.3.tar.xz
==> Downloading from https://github-cloud.s3.amazonaws.com/releases/29669711/611ef3ba-4ffe-11e6-9382-af2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/gd/2.2.3_1 --without-x --without-xpm --with-png=/usr/local/op
==> make install
🍺  /usr/local/Cellar/gd/2.2.3_1: 36 files, 2.1M, built in 29 seconds
==> Installing wine dependency: libgphoto2
==> Downloading https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.12/libgphoto2-2.5.12.tar.
==> Downloading from https://superb-dca2.dl.sourceforge.net/project/gphoto/libgphoto/2.5.12/libgphoto2-2
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libgphoto2/2.5.12
==> make install
🍺  /usr/local/Cellar/libgphoto2/2.5.12: 169 files, 7.5M, built in 1 minute 40 seconds
==> Installing wine dependency: little-cms2
==> Downloading https://downloads.sourceforge.net/project/lcms/lcms/2.8/lcms2-2.8.tar.gz
==> Downloading from https://pilotfiber.dl.sourceforge.net/project/lcms/lcms/2.8/lcms2-2.8.tar.gz
######################################################################## 100.0%
tar: copyfile unpack (lcms2-2.8/Projects/mac/.DS_Store) failed: File exists
==> ./configure --prefix=/usr/local/Cellar/little-cms2/2.8
==> make install
🍺  /usr/local/Cellar/little-cms2/2.8: 18 files, 1.9M, built in 38 seconds
==> Installing wine dependency: cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.7.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-3.7.1.yosemite.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺  /usr/local/Cellar/cmake/3.7.1: 2,143 files, 29.3M
==> Installing wine dependency: jasper
==> Downloading https://github.com/mdadams/jasper/archive/version-2.0.10.tar.gz
==> Downloading from https://codeload.github.com/mdadams/jasper/tar.gz/version-2.0.10
######################################################################## 100.0%
==> cmake .. -DGLUT_glut_LIBRARY=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De
==> make
==> make test
==> make install
🍺  /usr/local/Cellar/jasper/2.0.10: 39 files, 1.3M, built in 49 seconds
==> Installing wine dependency: libicns
==> Downloading https://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz
==> Downloading from https://superb-sea2.dl.sourceforge.net/project/icns/libicns-0.8.1.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libicns/0.8.1_3
==> make install
🍺  /usr/local/Cellar/libicns/0.8.1_3: 19 files, 421.0K, built in 22 seconds
==> Installing wine dependency: makedepend
==> Downloading https://homebrew.bintray.com/bottles/makedepend-1.0.5.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring makedepend-1.0.5.yosemite.bottle.1.tar.gz
🍺  /usr/local/Cellar/makedepend/1.0.5: 7 files, 72.7K
==> Installing wine dependency: openssl
==> Downloading https://www.openssl.org/source/openssl-1.0.2j.tar.gz
######################################################################## 100.0%
==> make clean
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2j --openssldir=/usr/local/etc/openssl no-ss
==> make depend
==> make
==> make test
==> make clean
==> perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.2j --openssldir=/usr/local/etc/openssl no-ss
==> make depend
==> make
==> make test
==> make install MANDIR=/usr/local/Cellar/openssl/1.0.2j/share/man MANSUFFIX=ssl
==> lipo -create build-x86_64/libcrypto.1.0.0.dylib build-i386/libcrypto.1.0.0.dylib -output /usr/local/
==> lipo -create build-x86_64/libcrypto.a build-i386/libcrypto.a -output /usr/local/Cellar/openssl/1.0.2
==> lipo -create build-x86_64/libssl.1.0.0.dylib build-i386/libssl.1.0.0.dylib -output /usr/local/Cellar
==> lipo -create build-x86_64/libssl.a build-i386/libssl.a -output /usr/local/Cellar/openssl/1.0.2j/lib/
==> lipo -create build-x86_64/engines/lib4758cca.dylib build-i386/engines/lib4758cca.dylib -output /usr/
==> lipo -create build-x86_64/engines/libaep.dylib build-i386/engines/libaep.dylib -output /usr/local/Ce
==> lipo -create build-x86_64/engines/libatalla.dylib build-i386/engines/libatalla.dylib -output /usr/lo
==> lipo -create build-x86_64/engines/libcapi.dylib build-i386/engines/libcapi.dylib -output /usr/local/
==> lipo -create build-x86_64/engines/libchil.dylib build-i386/engines/libchil.dylib -output /usr/local/
==> lipo -create build-x86_64/engines/libcswift.dylib build-i386/engines/libcswift.dylib -output /usr/lo
==> lipo -create build-x86_64/engines/libgmp.dylib build-i386/engines/libgmp.dylib -output /usr/local/Ce
==> lipo -create build-x86_64/engines/libgost.dylib build-i386/engines/libgost.dylib -output /usr/local/
==> lipo -create build-x86_64/engines/libnuron.dylib build-i386/engines/libnuron.dylib -output /usr/loca
==> lipo -create build-x86_64/engines/libpadlock.dylib build-i386/engines/libpadlock.dylib -output /usr/
==> lipo -create build-x86_64/engines/libsureware.dylib build-i386/engines/libsureware.dylib -output /us
==> lipo -create build-x86_64/engines/libubsec.dylib build-i386/engines/libubsec.dylib -output /usr/loca
==> lipo -create build-x86_64/openssl build-i386/openssl -output /usr/local/Cellar/openssl/1.0.2j/bin/op
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include
    PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2j: 1,696 files, 17.8M, built in 10 minutes 45 seconds
==> Installing wine dependency: net-snmp
==> Downloading https://homebrew.bintray.com/bottles/net-snmp-5.7.3.yosemite.bottle.3.tar.gz
######################################################################## 100.0%
==> Pouring net-snmp-5.7.3.yosemite.bottle.3.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/net-snmp/lib
    CPPFLAGS: -I/usr/local/opt/net-snmp/include

==> Summary
🍺  /usr/local/Cellar/net-snmp/5.7.3: 538 files, 12.8M
==> Installing wine dependency: sane-backends
==> Downloading https://fossies.org/linux/misc/sane-backends-1.0.25.tar.gz
######################################################################## 100.0%
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/6dd7790c/sane-backends/1.0.25
######################################################################## 100.0%
==> Patching
==> Applying 1.0.25-missing-types.patch
patching file backend/pieusb_buffer.c
patching file include/sane/sane.h
patching file include/sane/sanei_backend.h
patching file sanei/sanei_ir.c
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 29 with fuzz 1.
==> ./configure --prefix=/usr/local/Cellar/sane-backends/1.0.25_1 --localstatedir=/usr/local/var --witho
==> make
==> make install
🍺  /usr/local/Cellar/sane-backends/1.0.25_1: 428 files, 19.9M, built in 3 minutes 22 seconds
==> Installing wine dependency: libtasn1
==> Downloading https://ftpmirror.gnu.org/libtasn1/libtasn1-4.9.tar.gz
==> Downloading from http://mirror.thecodefactory.org/gnu/libtasn1/libtasn1-4.9.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtasn1/4.9 --disable-silent-rules
==> make install
🍺  /usr/local/Cellar/libtasn1/4.9: 59 files, 674.4K, built in 59 seconds
==> Installing wine dependency: gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.2.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring gmp-6.1.2.yosemite.bottle.1.tar.gz
🍺  /usr/local/Cellar/gmp/6.1.2: 18 files, 3.1M
==> Installing wine dependency: nettle
==> Downloading https://homebrew.bintray.com/bottles/nettle-3.3.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring nettle-3.3.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/nettle/3.3: 81 files, 2.0M
==> Installing wine dependency: libffi
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.0.13.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libffi-3.0.13.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Some formulae require a newer version of libffi.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libffi/lib
    PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/libffi/3.0.13: 15 files, 377.2K
==> Installing wine dependency: p11-kit
==> Downloading https://homebrew.bintray.com/bottles/p11-kit-0.23.3.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring p11-kit-0.23.3.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/p11-kit/0.23.3: 59 files, 855.4K
==> Installing wine dependency: gnutls
==> Downloading https://homebrew.bintray.com/bottles/gnutls-3.4.17_1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gnutls-3.4.17_1.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/gnutls/3.4.17_1: 1,117 files, 7.3M
==> Installing wine 
==> Downloading https://homebrew.bintray.com/bottles/wine-1.8.6.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring wine-1.8.6.yosemite.bottle.tar.gz
==> Caveats
You may want to get winetricks:
  brew install winetricks

By default Wine uses a native Mac driver. To switch to the X11 driver, use
regedit to set the "graphics" key under "HKCUSoftwareWineDrivers" to
"x11" (or use winetricks).

For best results with X11, install the latest version of XQuartz:
  https://xquartz.macosforge.org/
==> Summary
🍺  /usr/local/Cellar/wine/1.8.6: 2,506 files, 261.2M

Byte-5:~ hqin$ 


Some behind-the-scence running jobs:
Byte-5:~ hqin$ ps
  PID TTY           TIME CMD
46331 ttys000    0:00.03 -bash
48818 ttys000    0:24.31 /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 /u
53010 ttys000    0:00.01 /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 /u
53012 ttys000    0:00.54 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /us
74320 ttys000    0:00.02 /Applications/Xcode.app/Contents/Developer/usr/bin/make
76833 ttys000    0:00.00 /bin/sh -c dir=test; target=all; if expr " crypto ssl engines apps test tools 
76835 ttys000    0:00.00 /bin/sh -c dir=test; target=all; if expr " crypto ssl engines apps test tools 
76836 ttys000    0:00.05 /Applications/Xcode.app/Contents/Developer/usr/bin/make -e LC_ALL=C PLATFORM=d
77274 ttys000    0:00.00 /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -x /us

48266 ttys001    0:00.02 -bash



Byte-5:~ hqin$ which wine

/usr/local/bin/wine


Can I run VisualLogic on osX now?

Byte-5:windows hqin$ wine VisualLogic-Course-2.2.10.exe 

Yes, it worked.

More References: 
http://stackoverflow.com/questions/39065921/what-do-raw-githubusercontent-com-urls-represent





Wednesday, July 27, 2016

OSX external backup disk cannot be mounted.

Tried Disk Utility, it cannot fix the disk.

I then let default fsck_hfs run to fix it by default, based on,
http://apple.stackexchange.com/questions/130304/how-can-i-repair-a-disk-that-disk-utility-says-it-cant-repair

'top' shows that 'fsck_hfs' was running when "Horizon green backup disk" was connected to "byte".

Byte-4:~ hqin$ ls /dev/disk*
/dev/disk0 /dev/disk0s2 /dev/disk1 /dev/disk1s2
/dev/disk0s1 /dev/disk0s3 /dev/disk1s1
Byte-4:~ hqin$ ps -ef | grep fsck
    0   623    16   0 12:31AM ??        21:22.89 /System/Library/Filesystems/hfs.fs/Contents/Resources/./fsck_hfs -y /dev/disk1s2
  502   741   451   0  1:07AM ttys001    0:00.00 grep fsck
Byte-4:~ hqin$ df -hl
Filesystem                          Size   Used  Avail Capacity   iused    ifree %iused  Mounted on
/dev/disk0s2                       698Gi  506Gi  191Gi    73% 132783864 50149878   73%   /

localhost:/bCr671Ajn4MZTpa3yc_-X4  698Gi  698Gi    0Bi   100%         0        0  100%   /Volumes/MobileBackups

In the evening, the disk was finally fixed and mounted. 

Wednesday, May 4, 2016

Sunday, January 17, 2016

R GEO paring problem on osX

Working with R GEO on osX, somehow the GEO object cannot be parsed. I then update GEO to the most recent version. Problem persisted.

After restarting the computer, everything seems fine. Not sure what have happenned.

Wednesday, August 26, 2015

turn on ssh login in osX


The Apple Mac OS X operating system has SSH installed by default but the SSH daemon is not enabled. This means you can’t login remotely or do remote copies until you enable it.
To enable it, go to ‘System Preferences’. Under ‘Internet & Networking’ there is a ‘Sharing’ icon. Run that. In the list that appears, check the ‘Remote Login’ option.
This starts the SSH daemon immediately and you can remotely login using your username. The ‘Sharing’ window shows at the bottom the name and IP address to use. You can also find this out using ‘whoami’ and ‘ifconfig’ from the Terminal application.

Friday, June 26, 2015

Thursday, June 25, 2015

vertical strips on 17in mac pro laptop

Today, my 17inch mac pro laptop (5 years old now, hostname "ace") has a vertical strip in the middle. (It occurred once in the spring 2015, but went away on its own).

After some online research, I pressed the glass screen for a few second, and restart by holding CMMD+Ctrl+P+R. The vertical strip went away.

Pressing the glass screen was mentioned at
https://www.ifixit.com/Answers/View/17589/MacBook+suddenly+has+inverted-flickering+vertical+strip+on+the+screen

CMMD+Ctrl+P+R was mentioned at
 http://www.cnet.com/forums/discussions/macbook-pro-screen-problems-strip-screen-then-shutdown-588409/


Later in the afternoon, the same vertical strip come back again, after some overheated use.
I tried press the glass and CMMD+Ctrl+P+R again. The vertical strip was still there.