osx-mountain-lion

VBA code to fetch data from Mysql DB in Mac Excel 2011

让人想犯罪 __ 提交于 2019-12-01 08:33:52
I was using ADODB code in Windows to fetch data from Mysql Database and it was working fine. However, I can not seem to get my Excel workbook (using ADODB) to work with Excel Mac 2011. After a lot of googling, I found an ODBC connector from Actual tech and I was able to fetch three rows using Microsoft Query. But I want this to be done using VBA code but have been unable to do so. Has anyone gotten this to work? If yes, can you please provide me with a sample code. Thanks in Advance !! P.S: I know there is a similar existing question but the link provided in the answer is no longer working.

Change OS X system volume programmatically

醉酒当歌 提交于 2019-12-01 08:28:11
How can I change the volume programmatically from Objective-C? I found this question, Controlling OS X volume in Snow Leopard which suggests to do: Float32 volume = 0.5; UInt32 size = sizeof(Float32); AudioObjectPropertyAddress address = { kAudioDevicePropertyVolumeScalar, kAudioDevicePropertyScopeOutput, 1 // Use values 1 and 2 here, 0 (master) does not seem to work }; OSStatus err; err = AudioObjectSetPropertyData(kAudioObjectSystemObject, &address, 0, NULL, size, &volume); NSLog(@"status is %i", err); This does nothing for me, and prints out status is 2003332927 . I also tried using values

VBA code to fetch data from Mysql DB in Mac Excel 2011

喜你入骨 提交于 2019-12-01 06:47:25
问题 I was using ADODB code in Windows to fetch data from Mysql Database and it was working fine. However, I can not seem to get my Excel workbook (using ADODB) to work with Excel Mac 2011. After a lot of googling, I found an ODBC connector from Actual tech and I was able to fetch three rows using Microsoft Query. But I want this to be done using VBA code but have been unable to do so. Has anyone gotten this to work? If yes, can you please provide me with a sample code. Thanks in Advance !! P.S: I

Mountain Lion Notification Center from Safari

落爺英雄遲暮 提交于 2019-12-01 06:11:30
Is it possible to use something similar to the alert() function to send notifications to notification center using javascript? I tried googling but it just brings up the apple website for 10.8 features. Any pointers to how this could be done would be awesome, if it's even possible... Yes, its possible to send notifications to notification center using HTML5. Check this out http://dangercove.github.com/html5-notifications/ 来源: https://stackoverflow.com/questions/11667718/mountain-lion-notification-center-from-safari

Xcode 5 IOS simulator black screen and app install fails

不羁岁月 提交于 2019-12-01 06:01:22
I just updated my xcode to work with ios7. Now whenever I make a new app, even if its set to build for ios7, I get an error in the simulator when running. It says that the install failed, even if I just made the project and haven't coded anything into it yet. The simulator also shows a black screen. I have tried the reset content, and it didn't work. I saw something somewhere saying to delete the Iphone Simulator folder in application support, but no such folder seems to exist. What can I try to do? Update-- With some additional research, I found that Iphone Simultor is in the Xcode.app now,

Mountain Lion Notification Center from Safari

心已入冬 提交于 2019-12-01 05:00:18
问题 Is it possible to use something similar to the alert() function to send notifications to notification center using javascript? I tried googling but it just brings up the apple website for 10.8 features. Any pointers to how this could be done would be awesome, if it's even possible... 回答1: Yes, its possible to send notifications to notification center using HTML5. Check this out http://dangercove.github.com/html5-notifications/ 来源: https://stackoverflow.com/questions/11667718/mountain-lion

Change OS X system volume programmatically

荒凉一梦 提交于 2019-12-01 04:56:37
问题 How can I change the volume programmatically from Objective-C? I found this question, Controlling OS X volume in Snow Leopard which suggests to do: Float32 volume = 0.5; UInt32 size = sizeof(Float32); AudioObjectPropertyAddress address = { kAudioDevicePropertyVolumeScalar, kAudioDevicePropertyScopeOutput, 1 // Use values 1 and 2 here, 0 (master) does not seem to work }; OSStatus err; err = AudioObjectSetPropertyData(kAudioObjectSystemObject, &address, 0, NULL, size, &volume); NSLog(@"status

apache tomcat 7.0.30 datasourcerealm javax.naming.NameNotFoundException: Name [jdbc/proto] is not bound in this Context. Unable to find [jdbc]

瘦欲@ 提交于 2019-12-01 04:37:10
let me describe the environment first: environment: - mac os x (java build 1.6.0_35-b10-428-11M3811) - apache tomcat 7.0.30 - mysql 5.5.27 - tomcat/lib --> mysql-connector-java-5.1.22-bin.jar i've implemented successfully a JDBCRealm and want to switch to a DataSourceRealm because it is recommended for production environments. i use form-based authentication. I did everything described here: http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#DataSourceRealm and here: http://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html#MySQL_DBCP_Example server.xml <Realm className

Xcode 5 IOS simulator black screen and app install fails

ε祈祈猫儿з 提交于 2019-12-01 03:41:51
问题 I just updated my xcode to work with ios7. Now whenever I make a new app, even if its set to build for ios7, I get an error in the simulator when running. It says that the install failed, even if I just made the project and haven't coded anything into it yet. The simulator also shows a black screen. I have tried the reset content, and it didn't work. I saw something somewhere saying to delete the Iphone Simulator folder in application support, but no such folder seems to exist. What can I try

An error occured while installing ffi (1.1.2), and Bundler cannot continue

你离开我真会死。 提交于 2019-12-01 03:23:34
问题 Running OSX Mountain Lion, in a Rails 3.0 project. When trying to update my gems with bundler in a Rails project i get the following errror: An error occured while installing ffi (1.1.2), and Bundler cannot continue. Make sure that `gem install ffi -v '1.1.2'` succeeds before bundling. ERROR: Error installing ffi: ERROR: Failed to build gem native extension. /Users/victorstan/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb checking for ffi.h... *** extconf.rb failed *** Could not create