Posts

c# - Binding Data To WebBrowser -

c# - Binding Data To WebBrowser - i'm binding info list view, , need display html string in web browser. how this? list: <listbox margin="0,0,-12,0" itemssource="{binding}" name="postslist"> <listbox.itemtemplate> <datatemplate> <stackpanel margin="0,0,0,17" width="432"> <textblock text="{binding path=name}" textwrapping="nowrap" style="{staticresource phonetextsubtlestyle}"/> <textblock text="{binding path=content}" textwrapping="wrap" margin="12,-6,12,0" style="{staticresource phonetextnormalstyle}"/> <phone:webbrowser source="{binding path=webcontent}" margin="12,-6,12,0" /> </stackpanel> </datatemplate> </listbox.itemtemplate> </listbox> tia, ng93 c# windows-phon...

SVN : How to fix a commit erroneously made to the trunk instead of to a branch? -

SVN : How to fix a commit erroneously made to the trunk instead of to a branch? - i created maintenance/bug-fix branch in our svn repository, in order create stable releases while introduce new features on trunk. branch called "4.2.x" now, 1 developper of team didn't switch working re-create 4.2.x branch , commited changes trunk. these changes should in 4.2.x branch along other bug fixes , little changes, shipped client in next 4.2 release. these changes comprised in bunch of consecutive revisions, 500 510, , latest commits made trunk. what best , cleanest way bring these changes 4.2.x branch, , out of trunk, in way won't cause problems later when want merge 4.2.x branch trunk ? merge revisions 500 510 trunk branch, , commit branch. since these bug fixes, should done in trunk, leave trunk is. if want remove them trunk, undo these changes. to avoid merging changes branch trunk, merge commit branch trunk alternative "record only". ...

Spring 3.1 ConversionServiceFactoryBean breaks tilesViewResolver -

Spring 3.1 ConversionServiceFactoryBean breaks tilesViewResolver - i have little spring (3.1.0.release) application, working fine, until decided need have converter converting stuff strings other types. my application context file includes file, mvc-config.xml: <?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" xsi:schemalocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd"> <mvc:annotation-driven /> <mvc:view-controller path="/" view-name="index"/> <mvc:resourc...

ios - Tapping UIButton that's a subview of UIView -

ios - Tapping UIButton that's a subview of UIView - i'm having problem capturing taps on uibutton that's subview of uiview . here's how code setup: // in myclass.m @interface myclass () @property (nonatomic, retain) uibutton *mybutton; @end @implementation myclass @synthesize mybutton; - (void) buttontapped:(id) sender { nslog(@"button tapped!"); } - (id) initwithframe:(cgrect)frame { if (!(self = [super initwithframe:cgrectzero])) homecoming nil; mybutton = [uibutton buttonwithtype:uibuttontyperoundedrect]; [mybutton setimage:[uiimage imagenamed:@"image.png"] forstate:uicontrolstatenormal]; [mybutton addtarget:self action:@selector(buttontapped:) forcontrolevents:uicontroleventtouchupinside]; mybutton.exclusivetouch = yes; mybutton.frame = cgrectmake(100, 100, 100, 100); [self addsubview:mybutton]; homecoming self; } - (void) dea...

Run Jenkins jobs on Linux under a User -

Run Jenkins jobs on Linux under a User - i have jenkins installed in linux , want run build(s) under user. not simple user, 1 belongs list of user access linux machine , belongs grouping has privileges modify/create files under folder. i have read somewhere can set variable $jenkins_user not know , how. give thanks time p.s. did research questions posted similar not same one please if not clear read this: jenkins execute build using user called jenkins, want able utilize different user (pre-existing). have @ started-by environment variable plugin. https://wiki.jenkins-ci.org/display/jenkins/started-by+environment+variable+plugin edit: if asking how set jenkins run under different user in linux depends on how installed it. never set jenkins on linus yet (but can utilize google). have @ https://wiki.jenkins-ci.org/display/jenkins/installing+jenkins different setup options. had @ installing jenkins unix daemon , @ step 7 need setup configuration file. alter...

c# - The remote server returned an error: (500) Internal Server Error -

c# - The remote server returned an error: (500) Internal Server Error - i trying phone call webservice. getting 500 internal error. webservice running .i uses next code i getting error @ point: webresponse response = request.getresponse(); code: string requestxml = @"c\request.xml"; xmldocument xmldoc = new xmldocument(); xmldoc.load(requestxml); stringwriter sw = new stringwriter(); xmltextwriter tx = new xmltextwriter(sw); xmldoc.writeto(tx); byte[] bytes = encoding.utf8.getbytes(sw.tostring()); webrequest request = webrequest.create("http://localhost:3993/test.asmx"); request.method = "post"; byte[] bytearray = encoding.utf8.getbytes(sw.tostring()); request.contenttype = "application/xml"; request.contentlength = bytearray.length; stream datastream = request.getrequeststream(); datastream.write(bytearray, 0, bytearray.length); datastream.close(); ...

ruby on rails 3.1 - How to resolve the cache_clases = true/false conflict using Spork, RSpec & Cucumber? -

ruby on rails 3.1 - How to resolve the cache_clases = true/false conflict using Spork, RSpec & Cucumber? - i had problems ages in rspec models not beingness reloaded between spork runs. i fixed changing next line in config/environments/test.rb : config.cache_classes = true became config.cache_classes = false however... while solved issues rspec, cucumber requires cache_classes set true. https://rspec.lighthouseapp.com/projects/16211/tickets/165 is there canonical solution works both rspec , cucumber , reloads rspec models successfully? footnote * other changes implemented create rspec reload models included adding next lines spec_helper.rb : activesupport::dependencies.clear factorygirl.reload none of these lines solved problem without setting cache_classes=true line. i had problem, , me due rails' threadsafe mode. ensuring config.threadsafe! not called in test environment fixed me. because threadsafe mode prevents code reloading on e...