Posts

odbc sql server driver communication link failure -

i have access 2003 front-end sql 2005 back-end. occasionally, users error below , front-end crashes. pointers how can resolve this? [odbc sql server driver] communication link failure from googling , reading have done on topic, seems me might bug in ms access they've never bothered fix, ie: there is no resolution. the symptoms seeing , others seem have connection access has sql server becomes "bad", , once reaches state, nothing fix except restarting access, period. although blows person's mind, entirely possible - if code related connection management (either in ms access itself, or within odbc provider) doesn't check validity of connection state , assumes fine, see symptoms are seeing. you'd think, surely microsoft fix this, wouldn't first time. update i'm seeing same behavior when using microsoft access project (*.adp) problem appears within ms access (as opposed odbc).

actionscript 3 - Style callout in Flex PieChart? -

is possible style string returned labelfunction can change color , font of callout (inside)? or other way? (it seems big limitation have return string unstylable.) thanks! david i suppose there properties of pie series, called color, fontfamily, can job u mite. further reference: http://help.adobe.com/en_us/flashplatform/reference/actionscript/3/mx/charts/series/pieseries.html

Reading and writing an Excel sheet with form elements using PHP on Linux -

one of our clients trying find way automate filling out form supplied 1 of vendors. excel spreadsheet contains dropdowns , checkboxes. catch must submit form on daily/weekly basis using exact spreadsheet "form" , trying remove human processing loop. i have tried using phpexcel read files, cannot life of me figure out how set value of dropdowns -or- check 1 of checkboxes. as secondary note, if load , rewrite file new file, dropdowns , checkboxes disappear file. thanks, dan assuming form doesn't change, bind values separate data source, change that.

ruby on rails - JRuby and jQuery don't play well together -

hello using: * mac os x 10.6.5 * netbeans 6.9.1 (with embedded jruby 1.5.1) * jdk6u17 * glassfish gem 1.0.2 * rails 3.0.3 i want use jquery , ckeditor in project. after install jquery-rails gem , ran command rails g jquery:install somethings go wrong. output: remove public/javascripts/controls.js remove public/javascripts/dragdrop.js remove public/javascripts/effects.js remove public/javascripts/prototype.js fetching jquery (1.4.3) identical public/javascripts/jquery.js identical public/javascripts/jquery.min.js fetching jquery ujs adapter (github head) /applications/netbeans/netbeans 6.9.1.app/contents/resources/netbeans/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require': load error: rails/commands/generate -- java.lang.nosuchmethoderror: org.jruby.ruby.getselectorpool()lorg/jruby/util/io/selectorpool; (loaderror) /applications/netbeans/netbeans 6.9.1.ap...

broadcastreceiver - preventing a crash when someone mounts an Android SD card -

i have file open on sd card. when mounts sd card, winds crashing application. trying register action_media_eject broadcast event, , receive that, seems i'm getting late. time that, it's crashed application. there way notified before crashing application? added simple sample code. when this, winds crashing service when turn on usb (msc mode). test.java /** called when activity first created. */ @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); try { startservice(new intent(this, testservice.class)); bindservice(new intent(this, testservice.class), serviceconnection, context.bind_auto_create); } catch (exception e) { } } protected testservice testservice; private serviceconnection serviceconnection = new serviceconnection() { @override public void onserviceconnected(componentname name, ibinder service) { testservice.localbinder binder...

java - Implementing servlet lifecycle methods in a Spring web application? -

i implementing web application using spring. using spring's contextloaderlistener, load application contexts, , spring's dispatcherservlet, load relevant beans {name}-servlet.xml, refer beans in main application context. want able integration test these spring configurations outside of container validate wired correctly before deploy tomcat. application requires scheduled background processing when running in container. in regular httpservlet implement init() , destroy(). suggestions have read suggest using initializingbean kind of initialization. however, if use initializingbean, afterpropertiesset() gets called whether inside container or in integration tests - , outside container, don't have access resources background task needs. there better way perform tasks perform in init() , destroy() run when deployed webapp? have considered using test spring config file overrides bean implementing background process? this way else in spring configuration work exc...

cocoa - UIKit's [NSString sizeWithFont:constrainedToSize:] in AppKit -

is there equivalent method in appkit (for cocoa on mac os x) same thing uikit's [nsstring sizewithfont:constrainedtosize:] ? if not, how go getting amount of space needed render particular string constrained width/height? update: below snippet of code i'm using expect produce results i'm after. nsdictionary *attributes = [nsdictionary dictionarywithobjectsandkeys: [nsfont systemfontofsize: [nsfont smallsystemfontsize]], nsfontattributename, [nsparagraphstyle defaultparagraphstyle], nsparagraphstyleattributename, nil]; nssize size = nsmakesize(200.0, maxfloat); nsrect bounds; bounds = [@"this really really really long string won't fit on 1 line" boundingrectwithsize: size options: nsstringdrawingusesfontleading attributes: attributes]; nslog(@"height: %02f, width: %02f", bounds.size.height, bounds.size.width); i ex...