osx-mountain-lion

Possible to test website with GAE over LAN in Mountain Lion?

瘦欲@ 提交于 2019-12-20 02:10:49
问题 I'm hosting my website using Google App Engine. It's a pretty simple website, but I've got some javascript drawing to a canvas element, which I'm trying to test on my iPhone. I'd also like to take a crack at reworking my CSS for mobile. However, I can't access http://localhost:8080/ (which is the url that GoogleAppEngineLauncher spits out when I run the app locally) from my phone. This seems obvious. Unfortunately, it seems that Mountain Lion has removed the web sharing preference from system

Scrapy: Unable to create a project

坚强是说给别人听的谎言 提交于 2019-12-20 01:59:45
问题 I had issues installing scrapy respect to lxml but then I found some information on stackoverflow. Based on that information I did a sudo easy_install lxml with some error I think scrapy got install: Reason I came to that judgement is that I repel I could do following: Python 2.7.5 (default, Jul 28 2013, 07:27:04) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from scrapy import * >>> But when I try

Scrapy: Unable to create a project

一曲冷凌霜 提交于 2019-12-20 01:59:22
问题 I had issues installing scrapy respect to lxml but then I found some information on stackoverflow. Based on that information I did a sudo easy_install lxml with some error I think scrapy got install: Reason I came to that judgement is that I repel I could do following: Python 2.7.5 (default, Jul 28 2013, 07:27:04) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from scrapy import * >>> But when I try

Undefined symbols for architecture x86_64: JNI_CreateJavaVM OS-X Xcode

谁说胖子不能爱 提交于 2019-12-19 19:18:45
问题 I am attempting to compile the following C++ code for creating a Java Virtual Machine, using Xcode on Mac OS-X Mountain Lion: JNIEnv * createVM(JavaVM **jvm){ JNIEnv * retEnv = NULL; JavaVMInitArgs vm_args = *new JavaVMInitArgs(); JavaVMOption *options = new JavaVMOption[1]; std::string sJavaInstallPath = "-Djava.class.path=" + findJavaPath(); if(sJavaInstallPath == "-Djava.class.path="){ return NULL; } options[0].optionString = const_cast<char*>(sJavaInstallPath.c_str()); vm_args.version =

Undefined symbols for architecture x86_64: JNI_CreateJavaVM OS-X Xcode

与世无争的帅哥 提交于 2019-12-19 19:18:02
问题 I am attempting to compile the following C++ code for creating a Java Virtual Machine, using Xcode on Mac OS-X Mountain Lion: JNIEnv * createVM(JavaVM **jvm){ JNIEnv * retEnv = NULL; JavaVMInitArgs vm_args = *new JavaVMInitArgs(); JavaVMOption *options = new JavaVMOption[1]; std::string sJavaInstallPath = "-Djava.class.path=" + findJavaPath(); if(sJavaInstallPath == "-Djava.class.path="){ return NULL; } options[0].optionString = const_cast<char*>(sJavaInstallPath.c_str()); vm_args.version =

pydev debugger: unable to find real location for python 2.7 after OS 10.8 upgrade

吃可爱长大的小学妹 提交于 2019-12-19 05:23:55
问题 I just upgraded to OS X 10.8 Mountain Lion and having troubles understanding how the pydev debugger should work on Aptana 3.0. In Aptana's preferences I have the python interpreter setup with a location of "/usr/bin/python". It states that the System libs are coming from "/System/Library/Frameworks/Python.framework/Versions/2.7/..." When I start the debugger for my Google App Engine project within Aptana, the console logs: pydev debugger: CRITICAL WARNING: This version of python seems to be

nc (netcat) on Mac OS X 10.8.4 gets stuck

梦想的初衷 提交于 2019-12-19 04:09:33
问题 I encountered a little issue while using the nc utility on Mac OS X, a utility i often use as a quick and dirty solution to check if a port is open and what version the daemon is running. We deployed a new set of computers the other day and i wanted to verify what version of sshd they were running, without having to leave my chair. This is the command i ran and the resulting output: $ for i in {183..200}; do echo "hello" | nc -n -w 2 -v 10.120.113.$i 22; done Connection to 10.120.113.183 22

Using 10.8 Notification Center in Java

情到浓时终转凉″ 提交于 2019-12-18 11:46:55
问题 this is just a general question. I'm not having an actual project or something else where I want to do this. Is it possible to build an App in Java and add some framework stuff or something else and use Notication Center? 回答1: I wrote a simple C -> Objective-C shim .dylib that exported a function showNotification That delivered a notification immediately. Then I wrote a JNA wrapper to the function exported in the dylib. I'm sure that you could use a combination of Rococoa and JNAerator to

GCC-4.2 error on Mac OSX Mountain Lion, unable to install mysql-python

孤街醉人 提交于 2019-12-18 10:57:29
问题 I'm having trouble building MySQLdb on Mac OSX Mountain Lion. After upgrading to OSX Mountain Lion from OSX Lion, I have downloaded and installed Xcode 4.4 also. Then, I went to Preference > Downloads of the Xcode and installed Command Line Tools. I've downloaded MySQL-python ver. 1.2.3 from http://sourceforge.net/projects/mysql-python/ When I run python setup.py build I get below message: running build running build_py copying MySQLdb/release.py -> build/lib.macosx-10.6-intel-2.7/MySQLdb

Mountain Lion - LibXML & Nokogiri

不羁岁月 提交于 2019-12-18 10:53:07
问题 I've just updated to OS X Mountain Lion and I'm getting the following when working with rails and terminal. WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 I've had a look at other answers to a similar question, but they doesn't seem to stop the warning message from appearing. 回答1: Putting gem 'nokogiri' above gem 'pg' in my Gemfile fixed this for me. My Gemfile didn't have nokogiri in it, but it was a dependency that was in Gemfile.lock, so I put it