osx-yosemite

How to import and use python Levenshtein extension on OSX?

淺唱寂寞╮ 提交于 2019-12-04 19:35:30
问题 I've downloaded the python-Levenshtein archive and extracted Levenshtein dir. So, in result I have the following files structure: Levenshtein - __init__.py - _levenshtein.c - _levenshtein.h - StringMatcher.py myscript.py And the following myscript.py content: from Levenshtein import * from warnings import warn print Levenshtein.distance(string1, string2) But I get the following error - Traceback (most recent call last): File "myscript.py", line 1, in <module> from Levenshtein import * File "

RubyMine fails to start on Yosemite

大兔子大兔子 提交于 2019-12-04 18:56:50
问题 RubyMine won't start under Yosemite, no loading screen, no error message. This seems to be caused by the default JVM that comes with Yosemite EDIT This also seems to affect WebStorm 回答1: This solution is controversial - please read all of it before applying changes! Open this file Check the version of Java, most likely 1.8, by using java -version , you should see something like: java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM

Python's 'site.py' gone after Yosemite upgrade. Is that okay?

时光毁灭记忆、已成空白 提交于 2019-12-04 18:13:42
The Yosemite (OS X 10.10) upgrade includes Python 2.7.6, and the process, as usual with Apple system updates, seems to completely replace the system packages directory, in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python This time, the process appears to have entirely omitted site.py . My understanding was that this file was essential to the functioning of Python , in particular, the proper construction of package search paths; but my Python (which uses nothing more than the Apple system Python and additional packages in site-packages ) works fine, and my paths remain

AirPlay messes up localhost

雨燕双飞 提交于 2019-12-04 15:26:50
问题 Since the last OSX update (Yosemite), my localhost server is full of error messages from airplay (but I am not using it). Each times it's the same: [31/Oct/2014 05:40:42] code 400, message Bad request version ('RTSP/1.0') [31/Oct/2014 05:40:42] "GET /info?txtAirPlay&txtRAOP RTSP/1.0" 400 - It's just annoying to have its server full of error messages so if anyone has a clue to fix that or to remove airplay, I would be very thankful :) 回答1: I think I found the answer: On a cisco discovery forum

How to use NSTitlebarAccessoryViewController?

一笑奈何 提交于 2019-12-04 12:41:29
Can anyone tell me how to use NSTitlebarAccessoryViewController, to add subview to a view with an example? As I am new to mac programming you may have to explain from basics. Please. NSTitlebarAccessoryViewController is for adding subviews to the windows title bar. Here is a example: Set up a view in interface builder. Go to the `applicationDidFinishLaunching: method to add the view to the title bar. The code would be the following: NSTitlebarAccessoryViewController* vc = [[NSTitlebarAccessoryViewController alloc] init]; vc.view = self.view; vc.layoutAttribute = NSLayoutAttributeRight; [self

Using “whose” on arrays in Javascript for Automation

我的梦境 提交于 2019-12-04 12:33:07
问题 Playing with the new JS for automation using Script Editor. I'm getting an error on the final line of the following: var iTunes = Application("iTunes"); var sources = iTunes.sources(); var library = sources.whose({name : "Library"}); Confirmed that the sources array is as expected (two elements, one with name "Library" and one "Internet Radio"). But that final line chokes with Error on line 3: TypeError: undefined is not a function (evaluating 'sources.whose({name : "Library"})') . As far as

XAMPP NOT WORKING! - OS X Yosemite

耗尽温柔 提交于 2019-12-04 12:06:49
I was working with XAMPP 1.8.3-3 on OS X Mavericks. After upgrading to Yosemite Mysql server stopped working. And an upgrade to XAMPP 1.8.3-5 fixed the problem and mysql server starts working. Now the entire database list is showing on phpmyadmin, but no access to the tables. Its showing “#1146 - Table ‘DB_NAME.TABLE_NAME’ doesn’t exist”. Unfortunately I don't have any DB backup! I have the entire XAMPP folder backup. So how I can able to retrieve the mysql tables? just type /Applications/XAMPP/xamppfiles/bin/mysql.server start in terminal then start xampp you can restore if you have all the

How to develop status bar app in OS X Yosemite?

烈酒焚心 提交于 2019-12-04 11:17:22
问题 I've been trying to develop a status bar app for Yosemite, which is my first OS X app, but when I searched for the document, the NSStatusItem documentation says that almost all of the properties and methods there (e.g. .title , .highlightMode , and .image ) are deprecated in OS X 10.10. So I wonder how I can create a status bar app for Yosemite. I found those documentations from Dash, but it's weird that Apple's documentation doesn't make it deprecated yet. But I know they are usually slow to

Permission problems with /usr/local/bin and /usr/local/share

旧时模样 提交于 2019-12-04 10:16:25
I'm using OS X Yosemite in a fresh MacBook. Just installed Homebrew and some essential packages, having moved to this new computer recently. I noticed that once in a while I get linking errors when I install new brew packages. For some reason, the permissions of /usr/local/bin and /usr/local/share keeps changing back to root:wheel even after I did chmod and chgrp several times to make it FP:admin (FP being my username). Take note, it fixes the permissions for a time, allowing me to install new brew packages, and changes back to root:wheel automatically at random (at least as per my observation

“Couldn’t communicate with a helper application” on 10.10

故事扮演 提交于 2019-12-04 10:11:46
问题 I'm suddenly getting this error on Yosemite: ***storageTaskManagerExistsWithIdentifier:withIdentifier failed: Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper application." (The connection to service named com.apple.nsurlstorage-cache was invalidated.) UserInfo=0x6000000621c0 {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; The app was working perfectly on Mavericks. Any ideas what might be going on? (I don't even