Posts

.net - Error when rolling out my software revision to terminal sessions instead of desktops? -

i'm doing maintenance on software built predecessor @ company (who has since moved on greener pastures). i'm rolling out new version of software. at company, installation procedure shove /bin/release directory out our automated program updater's magic directory, allowing automatically copy contents of directory on local /program files/ , let magic happen. magic seems happen, there's no big issue, there, although weird me out somewhat, after many years of .msi installers... anyway, rolling out new software went fine on 2 of our file servers, rolling out third , final location went bit differently. the third section of company doesn't use auto-rollout software. use windows' remote desktop connection software run software directly on server. so go along server, check current version working (which is), up, etc. copy exact same software works fine on of our other machines. the new software fails play nice third-party libraries it's using (crystal r...

themes - google.Load jQuery UI Specific CSS -

i loading jquery ui as google.load("jqueryui", "1.8.6"); from google cdn , want theme ui darkness associated it. other methods other than <link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-darkness/jquery-ui.css" /> something like google.load("jqueryui", "1.8.6","{theme: 'ui-darkness'}"); so far google loader doesn't support syntax jqueryui, can check documentation here. http://code.google.com/intl/zh-cn/apis/loader/#googleload i think refer link in tag still best way in case.

java - Spring @Autowired in Servlet -

i using spring framework (2.5.4) in app load time weaving , works fine everywhere (in spring beans, in non-spring entities), except when try autowire field in servlet annotated @configurable, nice nullpointerexception... @configurable(dependencycheck=true) public class captchaservlet extends httpservlet{ @autowired private captchaserviceiface captchaservice; @override public void init(servletconfig config) throws servletexception { super.init(config); // applicationcontext ctx = webapplicationcontextutils.getrequiredwebapplicationcontext(config.getservletcontext()); // captchaservice = (captchaserviceiface) ctx.getbean("captchaservice"); } @override protected void doget(httpservletrequest req, httpservletresponse resp) throws servletexception, ioexception { captcha c = captchaservice.getcatpcha(); req.getsession().setattribute("captchaanswer", c.getanswer()); resp.setcontenttype(...

iphone - NSString out of scope problem? -

Image
i'm pulling hair out, must simple problem, can't see it. i'm trying assign value variable text field. in h file have nsstring *currentpass; @property (nonatomic, retain) nsstring *currentpass; my m file. @synthesize currentpass; - (void)alertview:(uialertview *)alertview willdismisswithbuttonindex: (nsinteger)buttonindex{ if (alertview.tag == alertpasswordask) { uitextfield* thetextfield = ((uitextfield*)[alertview viewwithtag: 5]); currentpass = [nsstring stringwithformat:@"%@", thetextfield.text]; if ([thetextfield isediting]) { [thetextfield resignfirstresponder]; } } } - (void)alertview:(uialertview *)alertview diddismisswithbuttonindex:(nsinteger)buttonindex{ nslog(@"diddismisswithbuttonindex tag=%i", alertview.tag); if (alertview.tag == alertpasswordask) { if(buttonindex == 1){ nsuserdefaults *mydefaults = [nsuserdefaults standarduserdefaults]; nsstring *strpassword = [...

extjs - EditorGrid dynamic/dependant Combo Box Editor Fields -

in extjs, have simple editorgrid 2 columns, x , y, both of have combo box editor. how is possible make values available in second column's combo box (y) depend on selected value in first column (x)? so, depending on selected in x, values available in y change accordingly. assuming have store backing each combobox, can use store's filter or filterby methods narrow down results of 1 combobox based on other's current selection. can call either filter function on 'select' or 'change' events of combobox. i've used method in past, , worked needs. had around 200 records per combobox, i'm not sure how solution scales if have deal records more that.

iphone - How do I call and app deletage method (which uses an alertview) and get the value in view controller after the events? -

i'm calling method i've written in app delegate calls alertview ask user password, use method in applicationwillenterforeground also. so value set in clickedbuttonatindex in app delegate. how determine when value has been set in view controller (where i'm calling method) ? the simplest way delegate viewcontroller. your app delegate have ability access pointers viewcontrollers/navcontrollers have. (scope depends on design of course) here post on objective-c delegates. i found myself doing kind of thing quite simplify process had method contained in singleton called 'toolbox' went this. -(void)showalertwithtitle:(nsstring*)_title message:(nsstring*)_message cancelbuttontitle:(nsstring*)_canceltitle alternitivebuttontitle:(nsstring*)alternitivebuttontitle anddelegate:(id)del { uialertview *alert = [[uialertview alloc] initwithtitle:_title message:_message delegate:del cancelbuttontitle:_canceltitle otherbuttontitles:alternitivebuttontitle, ni...

javascript - How can I resize a modal iframe when a new page loads in it? -

i have several linked pages want display in modal iframe. pages not same size , want able resize iframe when each new page loaded. have looked @ several jquery plugins create iframe, can't figure out how resize of them. experimenting prettyphoto , nyromodal, open suggestions. need make work. not javascript, trying learn. note: pages on web server, there no issue cross domain. thanks quick responses. i'm headed bed forward trying out suggestions when wake up. try putting in iframe: document.onload = function() { var = parent.document.getelementbyid('myiframe'); i.style.width = document.body.offsetwidth+"px"; i.style.height = document.body.offsetheight+"px"; }