osx-yosemite

MAMP not connecting to localhost

六眼飞鱼酱① 提交于 2019-12-11 20:53:53
问题 Just updated MAMP to version 3.2.1 on Yosemite. Both Apache and MySQL servers are green but when I go to my localhost I keep getting: This webpage is not available ERR_NAME_NOT_RESOLVED in browser (Chrome). I’ve tried incognito browsing and Firefox with the same result, tried both the MAMP default port settings and ports 80 & 3306, tried a reinstall of MAMP and rolling back to previous install of MAMP; all without success. Can anyone suggest how to fix this…it’s starting to drive me crazy!

Extract PresentationNotes from keynote

故事扮演 提交于 2019-12-11 20:36:01
问题 I'm having a hard time extracting presentationNotes from a keynote presentation using JXA (Javascript for osx) I don't want to use applescript. There is way more to this script than extracting notes. It seems rather simple. However when I get the presentationNotes its in an RichText object that doesn't seem to have anyway to get normal text. So I figured I'd open up textEditor and write them out to it. Well I can't figure out how to do that. var app = Application('Keynote') document = app

Yosemite: Python MySQLlib issue - 'no suitable image found'

浪子不回头ぞ 提交于 2019-12-11 20:18:41
问题 Trying to figure out why MySQLlib is not working on my installation. Here's the error from a script which tries to import it: Traceback (most recent call last): File "test.py", line 4, in <module> import MySQLdb as mdb File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQLdb/__init__.py", line 19, in <module> import _mysql ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/_mysql.so, 2): Library not loaded:

Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment

可紊 提交于 2019-12-11 16:00:31
问题 I use OS X Yosemite (10.10.2) and have some java projects which I want to build in Eclipse. Some projects are old and they are in Java 5, 6 and 7. At first, I installed JDK 7 and Eclipse Luna. Then I read this and this thread how to install specific JDK on mac. I used this script to install JDKs and changed these two lines in order to Yosemite compatibility. /usr/libexec/PlistBuddy -c "Set :JavaVM:JVMMaximumFrameworkVersion 14.*.*" ./Resources/Info.plist /usr/libexec/PlistBuddy -c "Set

Get Battery Charge Information Programmatically

ぐ巨炮叔叔 提交于 2019-12-11 15:06:36
问题 (Xcode 6, OSX 10.10.3) How do I get the battery charge information of a Mac (Charge Status, Battery level, Cycle count, Maximum charge in mAH) programmatically? 回答1: Hope this'll help you: It uses non-approved calls, so don’t post your application with this code or you may be rejected! http://blog.coriolis.ch/2009/02/14/reading-the-battery-level-programmatically/ From Apple; so don't worry about this code: https://developer.apple.com/library/ios/samplecode/BatteryStatus/Introduction/Intro

npWindow->window gives 0 value in NPP_SetWindow function, plugin for Safari browser on Mac

守給你的承諾、 提交于 2019-12-11 13:57:46
问题 A plugin, which works fine in firefox on windows, is being now ported to safari on Mac. we are using Xcode for development. we want a window in safari browser over which a video can be displayed. I read a code regarding NSwindow being used in NPP_SetWindow function as following: NPError NPP_SetWindow(NPP instance, NPWindow* npWindow) { // Get a Cocoa window reference of the browser window NP_CGContext* npContext = (NP_CGContext*)npWindow->window; WindowRef window = npContext->window; NSWindow

Hosts file update Yosemite

六月ゝ 毕业季﹏ 提交于 2019-12-11 11:47:28
问题 I am running OSX Yosemite 10.10.2 When I update the hosts file using nano or vi with sudo, the update to hosts file gets reverted after a restart. I am new to Mac. Can someone tell me what I am doing wrong. Obviously I searched the internet before asking this question and I don't think I found a good answer. Apologize if it is a repeat question. 回答1: I was able to retain the hosts file entry by updating the /etc/hosts.ac in addition to /etc/hosts I noticed that during logon and while

phpStorm asks for php-cgi built interpreter. How to make php as fast cgi?

為{幸葍}努か 提交于 2019-12-11 10:09:31
问题 I am new to OS X environment. I need to setup php dev environment so I've phpStorm IDE + php 5.4 (cli) with xdebug 2.2.3 + apache 2.1 installed and configured. When I tried to build my project, I got an error as php-cgi not found I've read few solution and tried to make a facts php but then I got cURL error saying that reinstall libcurl as easy.h should be in /use/include/curl. I'm having easy.h at same location. How do I make through this step ? 回答1: I got the solution. Found it as, I needed

Ineligible device iPad Air2 on Xcode 6.0? [duplicate]

允我心安 提交于 2019-12-11 09:37:16
问题 This question already has answers here : Ineligible Devices section appeared in Xcode 6.x.x (32 answers) Closed 4 years ago . I could't use iPad Air2 in xcode6.0 on mac with OSX 10.9.5, Xcode sorts iPad Air2 under in eligible devices category. Deployment target is iOS 8.0. Tried restarting both the device and mac, but no improvement. Any suggestions ? But it is working in mac with Yosemite installed. Do i need to update mac with yosemite ? 回答1: iPad Air 2 comes with iOS 8.1, so development