osx-yosemite

git svn clone died of signal 11 on OSX

房东的猫 提交于 2020-01-14 07:04:05
问题 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

How to change the preferred encoding in Sublime Text 3 for MacOS

杀马特。学长 韩版系。学妹 提交于 2020-01-13 11:43:32
问题 I want to change the preferred encoding from US-ASCII to UTF-8 in Sublime Text 3 on Yosemite. The preferred encoding in the bash is set to UTF-8 so when python is run in the terminal: import locale print(locale.getpreferredencoding()) the output is: UTF-8 When the same code is run in Sublime Text, the output is US-ASCII . Setting in the build system for Python 3: "encoding": "UTF-8" or "env": {"PYTHONIOENCODING": "utf-8} has not helped. How can the setting be changed permanently so that I don

Something wrong with my ruby

房东的猫 提交于 2020-01-13 09:35:08
问题 Always the same error: AilixdeMacBook-Pro:~ Ailix$ ruby -v ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14] AilixdeMacBook-Pro:~ Ailix$ ruby -d Exception `LoadError' at /Library/Ruby/Site/2.0.0/rubygems.rb:1240 - cannot load such file -- rubygems/defaults/operating_system Exception `LoadError' at /Library/Ruby/Site/2.0.0/rubygems.rb:1249 - cannot load such file -- rubygems/defaults/ruby Exception `NameError' at /Library/Ruby/Site/2.0.0/rubygems.rb:1257 - uninitialized

How to save a color in NSUserDefaults in swift?

时光怂恿深爱的人放手 提交于 2020-01-12 05:42:05
问题 I have a litle problem with saving a color in NSUserDefaults . In objective-c is easy : -(NSColor *)colorForKey:(NSString *)key{ NSData *data; NSColor *color; data = [[NSUserDefaults standardUserDefaults] objectForKey:key]; color= [NSUnarchiver unarchiveObjectWithData:data]; if( ! [color isKindOfClass:[NSColor class]] ){ color = nil; } return color; } -(void)setColor:(NSColor *)color forKey:(NSString *)key{ NSData *data = [NSArchiver archivedDataWithRootObject:color]; [[NSUserDefaults

Why can't I see the iOS 7.0 simulator in Xcode on Yosemite?

不打扰是莪最后的温柔 提交于 2020-01-10 14:11:55
问题 I need to do some testing on an iOS 7.0.3 Simulator, but when I go to Preferences > Downloads in Xcode (6.0.1) there is no iOS 7.0 Simulator under the Components section. Could it be because I am running Yosemite? I've heard of Mavericks machines losing support for iOS 6.0, but couldn't find any definitive answer on whether Yosemite has removed support for 7.0 simulators. 回答1: It's because you're on Yosemite. It doesn't support 7.0 anymore. Had the same issue. 回答2: XCode 6.1 in Yosemite

Errors Merging a Git Submodule into its Parent Repository in OS X

断了今生、忘了曾经 提交于 2020-01-07 08:28:10
问题 I have cloned a parent repository ' objc4 ' from https://github.com/RandomDSdevel/objc4 to the local path ' /Volumes/Development/Repositories/objc4 .' This parent repository contains a submodule ' OBJC4-437.1-Runtime ' which I have set up to mirror the contents of https://github.com/macmade/OBJC4-437.1-Runtime at the local path ' /Volumes/Development/Repositories/objc4/runtime .' I would like to merge this submodule into its parent repository and have already attempted to do so using these

Weird behaviour with zsh PATH

时光总嘲笑我的痴心妄想 提交于 2020-01-06 02:42:26
问题 I just encourage a weird problem with zsh today. My environment is Mac OS X Yosemite, zsh 5.0.5 (x86_64-apple-darwin14.0) In .zshrc, I have manually set the PATH variable to something like export PATH="$PATH:~/.composer/vendor/bin" Try echo $PATH in terminal, the result is as expected (contained ~/.composer/vendor/bin ). Then try executing a binary from ~/.composer/vendor/bin , It'll always return me "zsh: command not found" error. Try switching to bash, echo $PATH is also as expected, have

Installing Metasploit Framework on OS X Yosemite, metasploit-framework -v '4.10.1.pre.dev' not found

孤者浪人 提交于 2020-01-06 02:20:37
问题 I am trying to install Metasploit Framework on OS X Yosemite and whilst running bundle install the installer gets stuck on trying to install metasploit-framework -v '4.10.1.pre.dev'. When I run gem install metasploit-framework -v '4.10.1.pre.dev' on it's own I get this error: ERROR: Could not find a valid gem 'metasploit-framework' (= 4.10.1.pre.dev) in any repository ERROR: Possible alternatives: test_framework, metasploit-yard, metasploit-runner, metasploit-erd, metasploit-concern Has

How do I get RCurl to connect to POST SSL on OS X Yosemite?

被刻印的时光 ゝ 提交于 2020-01-05 10:32:38
问题 Since upgrading to OS X Yosemite 10.10.2, I have been unable to use RCurl to send POSTs via SSL. The error message I get is: Error in function (type, msg, asError = TRUE) : SSLRead() return error -9806 This strongly resembles the curl error here: osx 10.10 Curl POST to HTTPS url gives SSLRead() error So I ran the instructions to install libcurl via home-brew, per the answers on that question, but I cannot figure out how to link RCurl to the new libcurl. curl-config still returns the old

Unable to run telnet commands on Genymotion emulator on Mac

喜欢而已 提交于 2020-01-04 02:41:07
问题 I am running Genymotion 2.3.1 on Mac OS X Yosemite. When I was running Genymotion on Win 7, I could telnet to the emulator and run commands like "geo fix" to set a location. However, on Yosemite, when I telnet to the emulator and run a command, I do not get an OK response, and nothing happens. This is an example: $ adb devices List of devices attached 192.168.56.101:5555 device $ telnet 192.168.56.101 5555 Trying 192.168.56.101... Connected to 192.168.56.101. Escape character is '^]'. geo fix