osx-yosemite

WebStorm 11 fresh install not starting in Mac OSX

微笑、不失礼 提交于 2019-12-08 07:00:59
问题 This happened to me in fresh installs both in El Capitan and Yosemite . WebStorm 11.0.3. When trying to start WebStorm from whatever source (Finder, Spotlight etc.) it seems like it does nothing at all. No visible errors, nothing at all. So I tried to start it again with OSX's Console utility opened and I caught these: 08/02/16 12:57:29,912 webstorm[99959]: Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3587 "The bundle “OpenJDK 8” couldn’t be loaded because it is damaged or

Pipe to subprocess stdin for JXA

谁说我不能喝 提交于 2019-12-08 04:00:38
问题 I would like to start a subprocess in JavaScript for Automation (JXA) and send a string to that subprocess's stdin which might include newlines, shell metas, etc. Previous AppleScript approaches for this used bash's <<< operator, string concatenation, and quoted form of the string. If there was a JavaScript equivalent of quoted form of that I could trust to get all of the edge cases, I could use the same approach; I'm investigating regex methods toward that end. However, I thought since we

Error trying to installing JDK8 U11 OSX 10.10 Yosemite

前提是你 提交于 2019-12-07 10:34:58
问题 Today was the release of Oracle JDK8 U11. When I try to install the .pkg in OSX yosemite 10.10 I get this error and can't continue. 回答1: The OSX version is stored in /System/Library/CoreServices/SystemVersion.plist We can temporary change the OSX version before installing de package. Change OSX version 10.10 to 10.9: sudo sed -i '' 's/>10.10</>10.9</' /System/Library/CoreServices/SystemVersion.plist Install Java and don't forget to change your JAVA_HOME to /Library/Java/JavaVirtualMachines

WebStorm 11 fresh install not starting in Mac OSX

二次信任 提交于 2019-12-07 07:28:24
This happened to me in fresh installs both in El Capitan and Yosemite . WebStorm 11.0.3. When trying to start WebStorm from whatever source (Finder, Spotlight etc.) it seems like it does nothing at all. No visible errors, nothing at all. So I tried to start it again with OSX's Console utility opened and I caught these: 08/02/16 12:57:29,912 webstorm[99959]: Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3587 "The bundle “OpenJDK 8” couldn’t be loaded because it is damaged or missing necessary resources." (dlopen_preflight(/Applications/WebStorm.app/Contents/jre/jdk/Contents/MacOS

OSX Game Center: Couldn't communicate with a helper application

不打扰是莪最后的温柔 提交于 2019-12-07 06:53:35
问题 I'm setting up Game Center for my OSX game, but it can't authenticate player with the following error (OSX 10.10 Yosemite): I've got the following setings in iTunesConnect: and XCode: I'll appreciate any ideas how to make it work! 回答1: Solution: This is not documented. I've reported a rdar://23594124 Add this key to the entitlements of the App: com.apple.developer.game-center BOOLEAN = YES This fixes the error. 来源: https://stackoverflow.com/questions/29295423/osx-game-center-couldnt

Cannot run most cordova commands without using sudo

大憨熊 提交于 2019-12-07 03:33:46
问题 I have installed npm to setup Ionic & Cordova - and I have used sudo for this? My question is when I run the following command without sudo I get an error: cordova emulate ios The error is an EACCES, permission denied ..... /ios.json Am I right that if I cannot use this 'basic' cordova command without running sudo my installation has been screwed up somehow? 回答1: I did the following on the terminal to allow me to run the commands without using sudo (this might help someone) sudo chown -R $

Pipe to subprocess stdin for JXA

南楼画角 提交于 2019-12-07 01:58:29
I would like to start a subprocess in JavaScript for Automation (JXA) and send a string to that subprocess's stdin which might include newlines, shell metas, etc. Previous AppleScript approaches for this used bash's <<< operator, string concatenation, and quoted form of the string. If there was a JavaScript equivalent of quoted form of that I could trust to get all of the edge cases, I could use the same approach; I'm investigating regex methods toward that end. However, I thought since we have access to unistd.h from JXA, why not try to just call $.pipe , $.fork , and $.execlp directly? $

Xcode 6.4 Scheme Option Disappeared in El Capitan Beta

拟墨画扇 提交于 2019-12-06 19:39:16
问题 After I upgraded my Mac from Yosemite to El Capitan developer beta, the scheme option button in Xcode 6.4 is disappeared from the tool bar: But Xcode 7 beta works fine Is this an El Capitan bug? Is there any solution to fix this apart from rolling back to Yosemite? Thank 回答1: You don't need that button; the same options are available from the Product menu. So even though it's a bug, you can work around it for now, easily enough. 回答2: It is a UI bug and will probably be fixed soon. I've been

Activate different Python version in Terminal

微笑、不失礼 提交于 2019-12-06 16:39:07
Just reformatted my Mac to Yosemite and installed Python 2 & 3 using Homebrew. I've also setup some aliases in my bash_profile file which allows me to activate which version of Python I want to use. So if I type p3, it'll launch the python3 shell. I'm wondering if it's possible to activate a specific version of Python without it starting the Python shell? So if I bring any files into the Terminal for instance, it'll use the version which I've activated? Cheers! Apologies if this has been answered elsewhere, I had a good search but I couldn't find anything. Rather than writing your own scripts

PyGame Installation Mac OS X

微笑、不失礼 提交于 2019-12-06 12:02:01
I downloaded Python 2.7.10 and I wanted to install pygame. I downloaded the DMG from pygame's website (Version 1.9.1) and installed it. To test if pygame was installed properly, I opened IDLE and entered the command import pygame just for the following error to return: File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py", line 95, in <module> from pygame.base import * ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found. Did find: /Library/Frameworks