osx-mountain-lion

Sqlserv extension on mac

做~自己de王妃 提交于 2019-11-28 10:02:17
问题 My company uses the sqlserv extension to connect to a MSSQL database. This extension was chosen over the mssql extension because it is actively being maintained by Microsoft and the mssql driver is no longer maintained at all. My colleague has always worked in a windows enviroment so he could just download the proper DLL file and voila, sqlserv is available. Since i am running on Mac OSX 10.8.1 i don't share this luxery. So basically the question is: does anyone know of a sqlserv php

Enumerate All Installed Applications on OS X

偶尔善良 提交于 2019-11-28 08:44:36
Basic problem I'm looking for a solution to enumerate all applications installed on a (Mac) OS X system, i.e. all application bundles registered with LaunchServices . Simple approach that did not work (Please note: lsregister can be found under /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister ). Currently I am using the output of lsregister -dump | grep -E '^.*[ \\t]*path:[ \\t]+(\/.*)$' | grep -Eo '\/.*' , which has a few problems: .app bundles with newlines ( \n , which is valid on UNIX) are not handled correctly (This issue would be

ERROR: While executing gem … (Gem::FilePermissionError)

南楼画角 提交于 2019-11-28 06:47:58
I have checked all the other similar answers and none was exactly like mine, neither did any of those solutions work for me. gem environment and sudo gem environment give the same result: RubyGems Environment: - RUBYGEMS VERSION: 1.5.3 - RUBY VERSION: 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux] - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/local/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /usr/local/lib/ruby/gems/1.8 - /home/ava/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources => true -

gdb fails on mountain lion

折月煮酒 提交于 2019-11-28 06:39:32
I tried to compile a 7.x Version of gdb without any luck. I codesigned the executable(http://sourceware.org/gdb/wiki/BuildingOnDarwin). With following version there were these problems. 7.5,7.4,git clone: unknown load command 0x2a (and others) for my application and different system libraries when starting gbd. When trying to print a vector for example i always get: Could not find the frame base for "main(int, char**)" 7.3 (macports and from gdb-website): on starting the application it fails to set the breakpoint and continues to run. (gdb) start Temporary breakpoint 1 at 0x100000950: file ..

“bad ecpoint” SSL error on fresh RVM Ruby 1.9.3 install on OSX Mountain Lion

早过忘川 提交于 2019-11-28 06:26:02
问题 Trying to use Ruby 1.9.3 & rest-client to make https requests like: RestClient.get('https://google.com') always gives me a SSL error, OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint which I cannot figure out. bad ecpoint ? I've had no trouble making the same request with 1.9.3 & rest-client on another Mountain Lion machine. Notes about this machine: MacBook pro with fresh Mountain Lion install, where I originally had some trouble

Are there any alternatives to valgrind on Mac OS X Mountain Lion and Mavericks to detect memory leaks for C/C++ applications? [closed]

寵の児 提交于 2019-11-28 05:42:21
I used to use valgrind to detect memory leaks for my C/C++ applications on Mac OS X 10.6 (Snow Leopard) and 10.7 (Lion), but I find it's not supported on recent releases like 10.8 (Mountain Lion) and 10.9 (Mavericks) when I upgraded my OS. Is there something else like valgrind that can be installed on Mac OS X 10.9? On 2013-11-01, the valgrind team announced Valgrind 3.9.0: We are pleased to announce a new release of Valgrind, version 3.9.0, available from http://www.valgrind.org . 3.9.0 is a feature release with many improvements and the usual collection of bug fixes. This release adds

Backward compatibility of Xcode OSX

本秂侑毒 提交于 2019-11-28 05:35:03
问题 How to use features such as viewDidLoad or appDidBecomeActive in Xcode 4.6.1 for OSX 10.8, which are available only for OSX 10.10 and above. Please suggest the alternative ways to use these functions. 回答1: To expand on Ken Thomas's comment; this is the code that I use: - (void)loadView { [super loadView]; // if we're running on 10.8 or older… if (NSAppKitVersionNumber <= NSAppKitVersionNumber10_8) { [self viewDidLoad]; // call viewDidLoad (added in 10.9) } } // // This will be called by

OS X Mountain Lion: gcc-4.2 No such file or directory

妖精的绣舞 提交于 2019-11-28 04:54:59
Tried to install a gem on Mountain Lion and make couldn't find gcc-4.2: kamil$ gem install posix-spawn -v '0.3.6' Building native extensions. This could take a while... ERROR: Error installing posix-spawn: ERROR: Failed to build gem native extension. /Users/kamil/.rbenv/versions/1.9.3-p0/bin/ruby extconf.rb creating Makefile make compiling posix-spawn.c make: gcc-4.2: No such file or directory make: *** [posix-spawn.o] Error 1 If you have Xcode installed, gcc should be available. Check where it is with: kamil$ which gcc /usr/bin/gcc Then make a user-land symbolic link from gcc-4.2 to plain gcc

Remove application from Notification Center

做~自己de王妃 提交于 2019-11-28 04:44:45
Hey I was playing around with making a small cocoa application and using the new Notification Center API in Mountain Lion. However my app is now present in the notification center settings, together with Calendar, Messages and so on. As it was just me playing around I want it to disappear from the list now, but I cannot find anyway to remove it, tried several things, dragging it out, holding alt+right click and so on. Does anyone know where the (probably a) plist that populates that list could be located? SeafoodBuffet I was stuck in the same boat. While I don't believe purging applications

Where is Network link conditioner Prefpane in OSX Mountain Lion and Xcode 4.4 [closed]

試著忘記壹切 提交于 2019-11-28 04:23:28
I have recently updated to OSX Mountain Lion Xcode 4.4. Now I can't find the bundled Network Link Conditioner anymore which was automatically installed on OSX Lion and the corresponding Xcode version. Any ideas I figured it out. It looks like the Network Link Conditioner is now an optional package in Mountain Lion and Xcode 4.4 which can be installed like so: Open Xcode Navigate to Xcode > Open Developer Tool > More Developer Tools Download the Hardware IO Tools for Xcode and then double click on the file Network Link Conditioner.prefpane , which will install the Preference pane again: http:/