osx-mavericks

CSS word-spacing issue in Safari 6.1/7.0 with text-align center

懵懂的女人 提交于 2020-01-14 18:58:17
问题 When I align text center in Safari 6.1/7.0 and add word-spacing, it centers the text as if its width did not include the space in the center. E.g. CSS div { width:300px; border: 1px solid #CCC; } h1 { text-align:center; word-spacing: 90px; } E.g. HTML <div> <h1>Text Text</h1> </div> How it displays in all other browsers: http://i.imgur.com/JfdM2YG.png How it displays in Safari 7.0: http://i.imgur.com/OrhLa2Y.png A demo: jsfiddle.net/2rwa3/2/ Are there any workarounds for this without wrapping

Eclipse does not recognize Java 7 on Mavericks, can't find jdk.1.7.0_51 to fix issue

寵の児 提交于 2020-01-14 02:30:10
问题 Now, the problem of not being able to use Java Development Kit 7 with eclipse on Mac computers seems to be a problem a lot of people have. After digging around, I found what seemed to be a widely accepted solution here: Eclipse Kepler for OS X Mavericks request Java SE 6 The problem is, there are no files in /Library/Java/JavaVirtualMachines. I enabled hidden files but still found nothing. I looked around for more solutions, but they all seem to involve the jdk.1.7.0_xx file. I have tried

Strange Problems With Python After Upgrading to OS X Mavericks

冷暖自知 提交于 2020-01-12 10:12:05
问题 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

Trouble downgrading Ruby on OS X Mavericks

别等时光非礼了梦想. 提交于 2020-01-12 03:43:29
问题 OS X 10.9 comes with ruby 2.0.0p195 but I need to install Ruby 1.8.7. I keep running into errors. I have Xcode5-DP install and I believe Command Line Tools is installed too. In the terminal: sudo rvm install 1.8.7 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10/x86_64/ruby-1.8.7-p371. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password.

How to get Java 32bit in Mac OS X Mavericks

好久不见. 提交于 2020-01-11 09:39:11
问题 I'm trying to set up an Openfire XMPP server on my MAC, however the problem is that I needed to upgrade to Maverick for Titanium and once you upgrade to Maverick Java updates to a 64bit rather than the 32bit that is needed for Openfire. How can I get the Java 32bit again? 回答1: This Should help you on understanding how to run a 32-Bit java environment with the -d32 switch. However, the most recent version of Openfire should be 64bit compatible, found here. 来源: https://stackoverflow.com

terminate a connection CBPeripheralManager side

只愿长相守 提交于 2020-01-11 06:34:06
问题 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? 回答1: 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

Error in Sandboxed App, When loading Helper (LoginItems), code signing issue

狂风中的少年 提交于 2020-01-11 04:52:25
问题 I'm trying to get out of this problem (I hope it's the last!) Briefly, I have one status bar app, which needs to start at login. I followed this tutorial http://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project/ Everything it's working, but when it's time for testing the app in a real contest, outside xcode, I end up with this message in the console system.log: appleeventsd[52]: <rdar://problem/11489077> A sandboxed application with pid 1258, "xxxxx" checked in with

Intercept Command-Quit in Mac App?

北战南征 提交于 2020-01-07 05:26:26
问题 I would like to make an app for Mac (Mavericks) that does not handle the command-quit option. I found the following solution but it must be out of date because I get an error: CFMachPortRef eventTap = CGEventTapCreate(kCGHIDEventTap, kCGHeadInsertEventTap, kCGEventTapOptionDefault, CGEventMaskBit(kCGEventKeyDown), &KeyDownCallback, NULL); CFRunLoopSourceRef runLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, eventTap, 0); CFRunLoopAddSource(CFRunLoopGetCurrent(), runLoopSource,

Problems with libxml2 when installing Ruby on Rails on OSX Mavericks

走远了吗. 提交于 2020-01-06 19:42:13
问题 I'm having a problem installing Ruby on Rails in my terminal. Has anyone else encountered the following error in the terminal: checking for main() in -llzma... yes checking for xmlParseDoc() in libxml/parser.h... no checking for xmlParseDoc() in -lxml2... no checking for xmlParseDoc() in -llibxml2... no ----- libxml2 is missing. Please locate mkmf.log to investigate how it is failing. ----- *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary

SecKeyCreateFromData fails on 10.9 with -2147415792

≡放荡痞女 提交于 2020-01-06 05:47:29
问题 I have a code that constructs an RSA public key on MacOS with the help of the security framework. This works fine on 10.11/10.12/10.13, but today I found that this fails on 10.9. Below is the constructor of the class that wraps the key: CRSAPublicKey(const unsigned char* pExponent, const std::size_t nExponentSize, const unsigned char* pModulus, const std::size_t nModulusSize) { static const SecAsn1Template kRsaPublicKeyTemplate[] = { { SEC_ASN1_SEQUENCE, 0, NULL, sizeof(ASN1_RSA_PUBLIC_KEY) }