osx-elcapitan

Create ssh tunnel to remote docker container running Jupyter Notebook

给你一囗甜甜゛ 提交于 2019-12-13 02:57:19
问题 I'd like to create a ssh tunnel from my computer to a remote server to a docker container running Jupyter Notebook (computer>server>Docker container) that allows me to run a Jupyter Notebook in my browser on my computer. The Docker container is hosted on a machine running OS X (El Capitan). Docker is using the default machine IP: 192.168.99.100. $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default * virtualbox Running tcp://192.168.99.100:2376 v1.11.1 I am able to

Warning: openssl-1.0.2g already installed when using HomeBrew

半腔热情 提交于 2019-12-13 02:35:53
问题 I'm working on OS X 10.11.4. I'm trying to get started with Zend Framework2 and am using the official manual so have installed composer. When installing composer I got this warning: The OpenSSL library (0.9.8zc) used by PHP does not support TLSv1.2 or TLSv1.1. If possible you should upgrade OpenSSL to version 1.0.1 or above. So I opened Terminal and used the following to check my openssl version: $ openssl version OpenSSL 0.9.8zh 14 Jan 2016 So I looked into updating and came across How to

signal EOF of stdin when in mac OS X terminal with ctrl+D doesn't work

随声附和 提交于 2019-12-12 20:05:59
问题 I am on a mac OS X EL Captain and try to figure out how to signal EOF , however ctrl + D doesn't work. I have confirmed with the terminal using stty all that eof = ^D. With the following code in Haskell Module Input where import Data.List import Data.Char import System.IO (isEOF) main = interact (concat . sort . lines) The expression will never give me any stdout - I have tried ctrl+d , but nothing happens. Why is this? I run this program in GHCI 回答1: (Note: Question about running the program

Mcrypt problems after update OS X to El Capitan

放肆的年华 提交于 2019-12-12 13:00:24
问题 I have a problem with mcrypt(and Laravel) after update Yosemite to El Capitan. When i run local site(Laravel Framework version 4.2.17), i'm getting Mcrypt PHP extension required. Here are my settings: 1) which php /usr/local/bin/php 2) php --version PHP 5.6.14 (cli) (built: Oct 3 2015 14:54:13) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans 3) php --ini Configuration File (php

Android Studio Quits unexpectedly on Mac

守給你的承諾、 提交于 2019-12-12 09:39:33
问题 I am running Android Studio v1.5.1 on OSX El Capitan 10.11.2. Android studio starts flickering whenever I move and click the mouse from external monitor to the laptops screen, then suddenly quits without giving any error message. Is anyone else facing this problem? Crash Report: http://pastebin.com/xda8wAKN 回答1: I just found the solution to my problem: Open the info.plist in a text editor path is "/Applications/Android\ Studio.app/Contents/info.plist" update the JVMVersion to 1.7* 来源: https:/

Upgraded to OSX 10.11 El Capitan, now cannot use MySQL with Python/Django

北慕城南 提交于 2019-12-12 08:54:15
问题 I have a Python/Django project that I manage using PyCharm. Everything was working perfectly under Mac OSX Yosemite. This morning I upgraded to the final release version of El Capitan, now I cannot run the project. The error I get is: Error loading MySQLdb module: No module named MySQLdb I've tried all the suggestions from past questions, but none has resolved it. The most common suggestion seems to be: sudo pip install MySQL-python When I do that, I get: Requirement already satisfied (use -

Warning message when opening RStudio or the R console

若如初见. 提交于 2019-12-12 07:50:03
问题 recently I installed Microsoft R Open 3.3.1 on my MacBook Pro (El Capitan 10.11.6). When I open RStudio or I use the R console I get this warning message: Warning message: In doTryCatch(return(expr), name, parentenv, handler) : unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so': dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Symbol not found: _CGBitmapContextCreate Referenced from: /Library/Frameworks/R.framework/Resources

AppleScript for changing prefix and automatically upload to ftp when file is copied to folder

北战南征 提交于 2019-12-12 06:32:46
问题 I am programing an AppleScript that allows me to automatically put a prefix to a file and upload it to an ftp-server when it is copied to a specific folder (used as a folder action under OS X El Capitan). What I get to work is that the file is automatically uploaded, but when I try to implement that it should add a prefix (specifically a unix timestamp), it won't change either the filename nor uploading it to the ftp-directory. Here is my code as it is now: property uploadftp : "ftp://user

NSTableViewCell setSelected?

寵の児 提交于 2019-12-12 03:17:31
问题 How do I communicate between my NSViewController and the NSTableViewCell when I select that cell on my tableView? On iOS you could use setSelected but in OSX it is totally different. The NSTableCellView class doesn't have any function like that. I might be missing something simple. How do I talk with that cell? I have a custom class cell and on my tableView controller, I got: func tableView(tableView: NSTableView, shouldSelectRow row: Int) -> Bool { let previousSelected = NSIndexSet(index:

While Mac OSX has the say command to speak, or so to say, is there any command that is similar for Python?

无人久伴 提交于 2019-12-12 01:57:36
问题 While Mac OSX 10.11.5 (El Capitan) has the "say" command to speak in a system generated voice, or so to say, is there any command that is similar for Python that can be used in Python? If Subprocess is utilized, please explain on how to use that. 回答1: You can use subprocess as follows: import subprocess my_message = "hello there" subprocess.call(["say", my_message]) 回答2: PyTTSx package will help you with this. PyTTSx is a Python package supporting common text-to-speech engines on Mac OSX,