osx-mavericks

Trouble Installing Scrapy on 10.9 Mavericks

笑着哭i 提交于 2019-12-06 07:05:10
问题 I'm trying to install Scrapy using my homebrew python build. Despite having everything up to date, installed and in my path, I cant use it. Here's my order of operations: check brew: $ brew doctor Your system is ready to brew. check python & pip: $ which python /usr/local/bin/python $ python --version Python 2.7.6 $ which pip /usr/local/bin/pip $ pip -- version pip 1.5.4 from /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.4-py2.7

Java Applet sandboxed in Safari?

匆匆过客 提交于 2019-12-06 06:34:06
Ever since upgrading to Mavericks an Applet we have at work has stopped being able to browse for files if used from Safari, still works on Firefox. The Applet handles upload of files so you can imagine how that might be a problem. When using it from Safari I see the following messages on the OSX console. 11/5/13 10:27:46.000 AM kernel[0]: Sandbox: java(87926) deny file-read-data /Users/username Is there some way to fix this or will Applets just not be able to browse the file system on Safari ever again? Thank you. In OSX 10.9/Safari7 plugins are running in sandboxes. These settings are applied

Solving a difficult compilation issue

依然范特西╮ 提交于 2019-12-06 06:32:48
Good day, First up, I have a mac running Mavericks, and I am attempting to build PCL (Point Cloud Library) as part of ROS. This is the command that fails: cd /Users/X/ros_catkin_ws/build_isolated/pcl_ros && /Users/X/ros_catkin_ws/install_isolated/env.sh cmake -vd /Users/X/ros_catkin_ws/src/perception_pcl/pcl_ros -DCATKIN_DEVEL_PREFIX=/Users/X/ros_catkin_ws/devel_isolated/pcl_ros -DCMAKE_INSTALL_PREFIX=/Users/X/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release With: CMake Error at /usr/local/share/pcl-1.8/PCLConfig.cmake:47 (message): simulation is required but glew was not found Call

Unable to install and run iOS app on Simulator from command line - Simulator of iOS 6.1 Xcode 5 on mavericks

邮差的信 提交于 2019-12-06 02:46:07
问题 I've tried various methods and scripts to launch my iOS compiled app via commandline but unable to do so, help will be appreciated. I tried the following: This command line: ./Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication App.app/App This shell script Attempted on: Simulator app v7.0 iOS 6.1 Mac OSX Mavericks No luck :/ 回答1: You could use ios-sim (can be installed via Homebrew brew install ios-sim

How to start Chromedriver in verbose mode - Selenium Eclipse

和自甴很熟 提交于 2019-12-06 02:40:43
问题 I just installed OSX 10.9 on my mac and ever since then my Chromedriver is not working when I try to run tests. The error I get is that "chrome was killed". Everybody keeps mentioning that it works when you set Chromedriver to --verbose mode but I have no idea how to do that. Any ideas? 回答1: Here's a script that creates the executable you'll need, cd to the directory where chromedriver is, then paste this into your console: cat <<EOF>chromedriververbose echo "running chromedriver --verbose \$

Runtime error for CLang compiled program (Mac) reading double type with std::cin

妖精的绣舞 提交于 2019-12-06 01:19:58
I'm pretty new to C++ and working through some examples of the book "Programming Principles and Practices Using C++" (2nd Edition). I wrote the following simple Program (in file Main.cpp): #include <iostream> #include <string> int main () { double d = 0; std::string s = ""; while (std::cin >> d >> s) { std::cout << "--" << d << " " << s << "\n"; } std::cout << "FATAL? "<< d << " " << u << "\n"; } Compiling the program (on the command line) with CLang ( Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.2.0 Thread model: posix ): clang++ -o Main -std=c+

How can I set a custom C entry point with Clang on OS X Mavericks?

此生再无相见时 提交于 2019-12-06 00:36:37
问题 I have the following program: #include <stdio.h> int bob() { printf("bob\n"); return 0; } int main() { printf("main\n"); return 0; } On Linux, I can enable a custom entry point via: gcc test.c -Wl,-e,bob When I run the resulting program, I get: ./a.out bob On OS X, however, this doesn't work: clang test.c -Wl,-e,bob ./a.out main I've tried everything to get this to work. I think it might be a bug. Here's the output with the -v option: clang test.c -Wl,-e,bob -v Apple LLVM version 5.1 (clang

PNG display in PIL broken on OS X Mavericks?

旧城冷巷雨未停 提交于 2019-12-05 21:22:26
I've noticed that PNG images aren't displaying in Tkinter apps using ImageTk.PhotoImage in OS X Mavericks. But, GIFs and JPEGs display fine. There's no error printed or exception thrown and debugging the code shows the image is read and has the correct height & width. Here's a simplified example: import Tkinter from PIL import Image, ImageTk logo_file = 'test.png' #logo_file = 'test.gif' class Application(Tkinter.Frame): def __init__(self, master): Tkinter.Frame.__init__(self, master) self.master.minsize(width=512, height=256) self.master.config() self.pack() self.main_frame = Tkinter.Frame()

GNU gdb can not step into template functions (OS X Mavericks)

北慕城南 提交于 2019-12-05 19:54:04
问题 I have installed gdb 7.7 (from GNU sources) under OS X Mavericks (10.9.2). I codesigned it, so it works fine whenever I debug a c++ file that does not contain templates. However, it is unable to step into template functions (can step into regular functions, but just fails to step into templated ones). When I type step command in a debugging session, it just steps over the function, as if the debugging symbols are not present for the template function. My template function is not even a member

Rails + MySQL on Mavericks - Library not loaded: libmysqlclient.18.dylib

陌路散爱 提交于 2019-12-05 18:01:57
When I run a Rails ( rails s ) app on my localhost (OSX Mavericks), I get this error message:/Users/adam/.rvm/gems/ruby-2.0.0-p481/gems/mysql2-0.3.16/lib/mysql2.rb:8:in `require': dlopen(/Users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError) Referenced from: /Users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static/mysql2-0.3.16/mysql2/mysql2.bundle Reason: image not found - /Users/adam/.rvm/gems/ruby-2.0.0-p481/extensions/x86_64-darwin-13/2.0.0-static