osx-mavericks

bs4: “soup.title.string” doesn't work on IDLE but Terminal

夙愿已清 提交于 2019-12-03 20:23:46
Mac OS X 10.9 Python 2.7 IDLE BeautifulSoup 4 installed (successfully) I followed BS4 documentation and was practicing some of the functions on IDLE . The following code works and was able to print out title & title.name. from bs4 import BeautifulSoup html = """ <html><head><title>The Dormouse's story</title></head> <body> <p class="title"><b>The Dormouse's story</b></p> <p class="story">Once upon a time there were three little sisters; and their names were <a href="http://example.com/elsie" class="sister" id="link1">Elsie</a>, <a href="http://example.com/lacie" class="sister" id="link2">Lacie

Strange Problems With Python After Upgrading to OS X Mavericks

非 Y 不嫁゛ 提交于 2019-12-03 20:10:59
After upgrading my OS X Lion to Mavericks, I've encountered with strange problems. At first, It gave me segmentation fault or bus error . After searching for a bit I've noticed that it's related to the readline library. The solution was described by bugs.python.org : curl -O http://bugs.python.org/file32324/patch_readline_issue_18458.sh openssl sha1 patch_readline_issue_18458.sh # the digest should be 7cb0ff57820a027dd4ca242eb2418930f8f46b4c sudo sh ./patch_readline_issue_18458.sh This will disable the readline library. The errors are gone now but I have another problem. In Python shell when I

ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension

旧城冷巷雨未停 提交于 2019-12-03 19:03:32
问题 I am trying to install cocoapods to my macbook pro running with OSX 10.9.1 (new mavericks) and after type gem install cocoapods I get the following error: Building native extensions. This could take a while... ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby" -rubygems /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.1.1/bin/rake RUBYARCHDIR=/Users/rangreenberg/gems/gems/xcodeproj-0.14.1/ext RUBYLIBDIR=/Users

localhost doesn't execute php files after update to Maverick/Yosemite OS

我们两清 提交于 2019-12-03 18:48:14
问题 So I've upgraded to Mavericks (or maybe Yosemite) yesterday but now I only get a view of my directory when I visit localhost but the included index.php isn't executed anymore. I have to uncommented the virtualhosts line in /etc/apache2/httpd.conf # Virtual hosts Include /private/etc/apache2/extra/httpd-vhosts.conf so my virtual hosts work but php doesn't get executed. 回答1: Found the solution: Have to uncomment this line in /etc/apache2/httpd.conf as well: LoadModule php5_module libexec

osx Mavericks: dnsmasq stops working

Deadly 提交于 2019-12-03 17:47:25
问题 I have been using dnsmasq on mac osx mountain lion which was installed via mac ports. Recently,I upgraded to Osx Mavericks and all of a sudden it has stopped working. I examined the dnsmasq.conf and resolv.conf in /opt/local/etc/ which are unchanged. In addition the dnsmasq process is displayed running in the os activity monitor. I tried a force quit of the dnsmasq process as well. Any suggestions? Has anyone experienced a similar problem? 回答1: Solved mine by doing the following: mkdir -pv $

CGEventTapCreateForPSN in Mavericks+ (GetCurrentProcess deprecated)

我们两清 提交于 2019-12-03 16:05:11
问题 I am using CGEventTapCreateForPSN to trap and filter keys for my application. I'm not interested in intercepting events for other applications. I'm pretty sure an event tap is too heavy handed for my purpose, but I've been unable to find a better way, and using the event tap works. Specifically, this code does what I want. GetCurrentProcess(&psn); CFMachPortRef eventTap = CGEventTapCreateForPSN( &psn, kCGHeadInsertEventTap, kCGEventTapOptionDefault, CGEventMaskBit(kCGEventKeyDown) |

Can't sign kext in Mavericks/Yosemite?

百般思念 提交于 2019-12-03 13:34:13
问题 Goal: to sign my own packages, and my own kernel extensions. "My own" in the context means "that I wrote, or that I picked elsewhere, recompiled myself from their sources, and want to install on my machine. Problem: Mavericks does not accept my signature with Code Signing Failure: code signature is invalid (but loads the kext), Yosemite won't even load it. I have my own CA, and code-signing certs. I've been able to successfully sign code and set up policies that would allow code signed by the

Error on loading Genymotion Device on OS X Mavericks

空扰寡人 提交于 2019-12-03 12:36:40
问题 I have been using Genymotion on OS X 10.8 but after I updated it to Mavericks, the Genymotion device does not work properly. The three buttons which should be at the bottom appear at the top. However the touch is uneffected. Thus while the buttons are shifted to top, they are sensitive to touch only when touched at bottom. Here is a sample screenshot Edit - One of the answers suggest that the problem might also depend on the Mac model I am using. I am using a 13" Macbook Retina Pro. Edit 2 -

Selector name found in current argument registers: isEqual:

陌路散爱 提交于 2019-12-03 10:34:35
问题 I am looking for some assistance with squashing a bug in an OSX app that i just can't work out. I am getting a logged error of: Selector name found in current argument registers: isEqual: But i can't for the life of me work out where it's coming from as the log is very unhelpful. Also i can't reproduce this on my own test systems, but it seems to be happening quite a lot on some of the beta testers machines. This only seems to happen on 10.9. Here is the log file for the crash: Incident

Hiding the dock icon without hiding the menu bar

烈酒焚心 提交于 2019-12-03 09:09:53
I use the ideas in this thread to hide the dock icon of my app optionally . If the dock icon is shown after all, the menu bar should be shown too. Only with Jiulong's answer I haven't been able to make this work. The menu bar is still hidden. So basically 'Application is agent' is set to '1' in the InfoPList, and this code is used : if (![[NSUserDefaults standardUserDefaults] boolForKey:@"LaunchAsAgentApp"]) { ProcessSerialNumber psn = { 0, kCurrentProcess }; TransformProcessType(&psn, kProcessTransformToForegroundApplication); SetSystemUIMode(kUIModeNormal, 0); [[NSWorkspace sharedWorkspace]