osx-yosemite

Broken Apache configuration after upgrading to Yosemite

随声附和 提交于 2020-02-01 03:21:09
问题 Yesterday I upgraded to Yosemite and now my local configuration for web development is not working anymore. I managed to set up a userdir under /Users/user/public_html and I could access all the websites via localhost/~user/websitename . Nothing special, but it took me a while to configure. Looking in the apache directory I saw that many files were replaced, keeping a backup. I tried putting back the files with my settings again, but still is not working. Maybe I'm missing some file that I

SNAFU with npm update -g

我与影子孤独终老i 提交于 2020-01-25 03:56:05
问题 I tried updating npm and all hell broke loose: Environment check ✔ $HOME ✔ Yo ✔ Compass ✔ Ruby ✔ Git ✔ Node.js ✔ npm dist: $ npm update -g npm http GET https://registry.npmjs.org/envcheck npm http GET https://registry.npmjs.org/bower npm http GET https://registry.npmjs.org/generator-h5bp npm http GET https://registry.npmjs.org/generator-mocha npm http GET https://registry.npmjs.org/generator-zf5 npm http GET https://registry.npmjs.org/headstart npm http GET https://registry.npmjs.org/cordova

display: unable to open X server

不羁的心 提交于 2020-01-25 02:58:08
问题 I am running ImageMagick on my Mac which runs on Yosemite. I have just downloaded ImageMagick and I am trying to open the logo display by running this on the command line: display logo.gif after executing the above command, I am getting the following error: display: unable to open X server `:0.0' @ error/display.c/DisplayImageCommand/426. I've implemented all the steps to install ImageMagick, including executing the following command: export DISPLAY=:0.0 and I am still not getting the display

How to use shell_exec xampp php in a Mac

只谈情不闲聊 提交于 2020-01-23 19:39:24
问题 I just cant figure it out how can execute shell commands on php. it must suppose to echo the parameters of mogrify but it always return false. How could i do it on a macbook pro yosemite? i already tried editing all users permissions to read/write/execute but still no luck.. already tried researching the web about this and cant get the answer. my code is: <?php echo shell_exec("/opt/ImageMagick/bin/mogrify"); ?> 回答1: OK for all of you to solve this kind of problem that any terminal

iPython notebook on Mac OSX Yosemite: no module named jinja2, even if it's installed

时光总嘲笑我的痴心妄想 提交于 2020-01-23 11:49:36
问题 I am trying to run iPython notebook on OSX Yosemite. I have installed everything via pip install ipython[all] and I see mattia:~ mattiaspeziali$ pip freeze backports.ssl-match-hostname==3.4.0.2 certifi==14.5.14 docutils==0.12 gnureadline==6.3.3 ipython==2.3.1 Jinja2==2.7.3 MarkupSafe==0.23 nose==1.3.4 numpy==1.8.2 numpydoc==0.5 pandas==0.14.1 Pygments==2.0.1 pyzmq==14.4.1 Sphinx==1.2.3 tornado==4.0.2 vboxapi==1.0 However, jinja2 seems not installed properly: mattia:~ mattiaspeziali$ ipython

How to translate this slider value change from AppleScript to JavaScript

给你一囗甜甜゛ 提交于 2020-01-17 06:20:09
问题 This bit of AppleScript works. If I have the System Preferences Sound panel open, and run it in the Script Editor app, it changes the volume to be at 50%. tell application "System Events" tell process "System Preferences" set v to value of slider 0 of window 0 log v set value of slider 0 of window 0 to 0.5 end tell end tell This, which tries to be the same thing, fails. Anyone know how to fix it? var se = Application("System Events"); var spp = se.processes["System Preferences"]; spp.windows

Error while making CLucene for Max OS X 10.10

允我心安 提交于 2020-01-16 13:19:14
问题 I am trying to build CLucene in Max OS X 10.10. I followed the instructions here. The cmake .. command ran correctly, but after that, when I try to run make with the makefile generated, I get the following error: I Googled it and found reports of similar errors in some forums, and even found a similar question in Stackoverflow as well: Error when Make CLucene, but nowhere did I find a canonical solution. What should I do to fix this? 回答1: There is a bug for the Mac OS X version. You need to

Python subprocess wait() behaves differently on mavericks and Yosemite

谁说胖子不能爱 提交于 2020-01-14 19:30:33
问题 I recently upgraded to Yosemite. And some of the Python scripts are hanging that used to run on Mavericks. My version is 2.7.8. I created a test case: import subprocess cat = subprocess.Popen(['top', '-l', '1'], stdout=subprocess.PIPE, ) cat.wait() Runs on Maverics but hangs on Yosemite. When I interrupt on Yosemite, I see the following traceback. Traceback (most recent call last): File "test.py", line 5, in <module> cat.wait() File "/Library/Frameworks/Python.framework/Versions/2.7/lib

How to get MySQL server working after OSX Yosemite upgrade?

╄→гoц情女王★ 提交于 2020-01-14 10:37:32
问题 After I upgraded my Mac from Mavericks OSX to Yosemite, my local Apache and MySQL server setup did not work anymore. Thanks to Apache localhost/~username/ not working I just got the Apache server working but my Joomla application now indicates it can't access the MySQL database; neither can the Phpmyadmin tool. How to fix this? I've seen instructions for installing MySQL for Yosemite (https://www.computersnyou.com/3376/setup-apache-php-mysql-macosx-10-10-yosemite/) but I'm not sure whether

git svn clone died of signal 11 on OSX

左心房为你撑大大i 提交于 2020-01-14 07:04:06
问题 I'm trying to migrate a project from svn to git. I was using the osx svn package, but I also tried installing with homebrew. I keep getting this same error. git svn clone http://myserver/myrepo error: git-svn died of signal 11 Version information: git --version git version 2.2.1 svn --version svn, version 1.7.17 (r1591372) compiled Sep 18 2014, 13:06:44 I'm running Yosemite. 回答1: git svn executes git-svn which is a Perl program which uses bindings to libsvn and those bindings are touchy. If