osx-mavericks

Vagrant cannot install nokogiri-dependent plugins

谁说胖子不能爱 提交于 2019-12-01 16:26:58
问题 I'm trying to install the rackspace plugin for vagrant (1.5.1): vagrant plugin install vagrant-rackspace But it complains Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is: An error occurred while installing nokogiri (1.6.1), and Bundler cannot continue. Make sure that gem install nokogiri -v '1.6.1' succeeds

Segfault 11 with pandas with Python v2.7.6 RC1 on Mac OS X 10.9

帅比萌擦擦* 提交于 2019-12-01 12:27:05
In [1]: import json In [2]: path = 'ch02/usagov_bitly_data2012-03-16-1331923249.txt' In [3]: from pandas import DataFrame, Series; In [4]: records = [json.loads(line) for line in open(path)] In [5]: frame = DataFrame(records) In [6]: frame['tz'][:10] Segmentation fault: 11 Any access to frame results in a segfault. I have already upgraded to Python 2.7.6 RC1. Also happened in 2.7.5, also happens outside ipython. What am I to do? This appears to be a bug in Numpy that has been fixed recently. See https://github.com/numpy/numpy/issues/3962 来源: https://stackoverflow.com/questions/19722580

How to write usb touchscreen driver kext in os x 10.9?

大兔子大兔子 提交于 2019-12-01 11:58:38
I want to write a usb touchscreen kext for usb touch screen . I have read the Kernel Extension Programming Topics and the I/O Kit Fundamentals etc, My question is, 1 . how to get the input report messages from touch screen ? 2 . how to post the coordinate info to system ? I have no idea, anybody help? It depends on the hardware; moreover, this question is quite broad - you'll need to be more specific in your question to get more specific answers. I'll try to provide a broad overview: A touchscreen has 2 parts: Output: showing the image coming from the computer on the display Input: the touch

Sublime Text 2 command line not working after Mavericks install

妖精的绣舞 提交于 2019-12-01 11:20:07
I've ready through other threads on Stack Overflow and despite my efforts the issue doesn't seem to resolve. Since installing OS X Mavericks I'm not able to open Sublime Text 2 from the command line. I've tried following these guidelines: http://benkwok.wordpress.com/2013/11/17/setup-sublime-text-2-on-osx-mavericks-for-ruby-on-rails/ When I run this from the terminal Sublime pops up so that's good: http://benkwok.wordpress.com/2013/11/17/setup-sublime-text-2-on-osx-mavericks-for-ruby-on-rails/ I've added these lines to the bottom of my bash_profile: export PATH=/bin:/sbin:/usr/bin:/usr/local

Could not find CMake package configuration file for “Eigen3”

女生的网名这么多〃 提交于 2019-12-01 11:18:16
When I enter this command: cd /Users/mona/ros_catkin_ws/build_isolated/pcl_ros && /Users/mona/ros_catkin_ws/install_isolated/env.sh cmake /Users/mona/ros_catkin_ws/src/perception_pcl/pcl_ros -DCATKIN_DEVEL_PREFIX=/Users/mona/ros_catkin_ws/devel_isolated/pcl_ros -DCMAKE_INSTALL_PREFIX=/Users/mona/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles' I receive this error: -- Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- filesystem -- thread CMake Error at CMakeLists.txt:7 (find_package): By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH

pthread and semaphore not working for me in osx maverick 10.9

只谈情不闲聊 提交于 2019-12-01 11:11:29
I have the following simple program involving pthread and semaphore. I am in osx Maverck 10.9. I use a makefile to compile the program (rather than xcode). I use c++11. #include <pthread.h> #include <semaphore.h> #include <cassert> #include <iostream> #define ASSERT(a) if(!(a)) abort using namespace std; sem_t countMutex; int myCount=0; void *doThread(void *data) { int *pi = reinterpret_cast<int *>(data); sem_wait(&countMutex); for(int i =0 ;i < 100; ++i) { myCount += 1; } sem_post(&countMutex); pthread_exit( NULL ); } void LaunchThread() { const int kNumThreads = 10; pthread_t tids

terminate a connection CBPeripheralManager side

爱⌒轻易说出口 提交于 2019-12-01 09:21:54
Is there a recommended way for CBPeripheralManager to terminate a connection. The best way I have found so far is simply not to respond to dynamic value, then the BLE stack seems to close the connection, but that seems rather crude. There must be a better way? No, you can't forcefully close a connection in a clear way from the peripheral side. There is no API for it. You can break the connection abruptly by not responding to a request, which results in disconnection at most after 30 seconds. This is the standard behavior defined by the Bluetooth specification Vol.3 Part F 3.3.3 A transaction

pthread and semaphore not working for me in osx maverick 10.9

五迷三道 提交于 2019-12-01 09:01:42
问题 I have the following simple program involving pthread and semaphore. I am in osx Maverck 10.9. I use a makefile to compile the program (rather than xcode). I use c++11. #include <pthread.h> #include <semaphore.h> #include <cassert> #include <iostream> #define ASSERT(a) if(!(a)) abort using namespace std; sem_t countMutex; int myCount=0; void *doThread(void *data) { int *pi = reinterpret_cast<int *>(data); sem_wait(&countMutex); for(int i =0 ;i < 100; ++i) { myCount += 1; } sem_post(

Could not find CMake package configuration file for “Eigen3”

自古美人都是妖i 提交于 2019-12-01 07:37:52
问题 When I enter this command: cd /Users/mona/ros_catkin_ws/build_isolated/pcl_ros && /Users/mona/ros_catkin_ws/install_isolated/env.sh cmake /Users/mona/ros_catkin_ws/src/perception_pcl/pcl_ros -DCATKIN_DEVEL_PREFIX=/Users/mona/ros_catkin_ws/devel_isolated/pcl_ros -DCMAKE_INSTALL_PREFIX=/Users/mona/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles' I receive this error: -- Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- filesystem -- thread

Install Calabash-Android causes error on OS X Mavericks

廉价感情. 提交于 2019-12-01 06:34:32
Hi guys/rubyists out there, I need some help with trying to install Calabash-Android. After installing rvm, home-brew, when I install Calabash i get a strange error: sudo gem install calabash-android Building native extensions. This could take a while... ERROR: Error installing calabash-android: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for main() in -lc... yes creating Makefile make "DESTDIR=" compiling gherkin_lexer_ar.c ragel/i18n/ar.c.rl:440:1: warning: control may reach end of non-void function [-