Posts

c# - How to fire-and-forget in WCF when using wsHttpBinding -

i have wcf service hosted in iis , consumed asp.net application. service , client on diferent servers , communicate on internet. message security on wshttpbinding used security model (using x.509 certificate). i tested service fiddler , seems ok unless single call there 4 sessions in fiddler (two round-trips). don't need sessions wcf , want calling threads (which asp.net worker threads), not blocked when calling wcf method. how can achieve fire-and-forget pattern when using wcf service (i can change service contract if needed) ? fire , forget (one-way operation) says operation doesn't return result , client doesn't have wait server processing. has nothing infrastracture calls see in fiddler. first of turn off estabilishsecuritycontext , negotiateservicecredentials in security element (these turned on default) , try again.

Problems with Jackrabbit XPath Query with an OR statement -

i have following xpath query in jackrabbit 2.2 application: //crms:publications/*/*[ @crms:publication-security = '28862' or @crms:publication-security='23459' or @crms:publication-security='23489' ] which causing following exception when executed javax.jcr.query.invalidqueryexception: lexical error @ line 1, column 73. encountered: "@" (64), after : "" statement: $v in //crms:publications/*/*[@crms:publication-security='28862' or @crms:publication-security='23459' or @crms:publication-security='23489'] return $v but if run following query without or's runs fine: //crms:publications/*/*[@crms:publication-security='28862'] it obvious guidance appreciated on doing wrong thanks david it obvious unfortunately. xpath case sensitive 'or' should have been 'or'

asp.net mvc - How is service validation communicated back to the controller? -

i think i'm missing fundamental here, i've been digging on 2 hours, , must overlooking obvious. if so, apologize. i have mvc 3 site, , have service layer controllers talk to, , repository service layer talks (all decoupled using ioc container, that's irrelevant here). domain models ef4 entities, shared between controller, services, , repositories. i have view model signing looks this: public class signupviewmodel { [displayname("email")] [required, regularexpression(@"^.+@.+\..+$")] public string email { get; set; } [displayname("password")] [required] public string password { get; set; } [displayname("confirm password")] [required, compare("password")] public string passwordconfirmation { get; set; } } my user domain model looks this: public class user { public int id { get; set; } public string email { get; set; } public string passwordhash { get; set; } ...

php - How to hide RSS page from everyone except FeedBurner -

i want hide feed except feedburner. when feedburner visits rss page, want them able crawl. when else visits page, redirected feedburner page. how it? my blog written in php. (custom code) additional info: i prefer redirect using head("location: ") method in php instead of .htaccess my rss page is: domain.tld/feed/ the feeburner useragent feedburner/1.0. can use $_server['user_agent'] detect user agent , redirect except feedburner. edit: can use .htaccess in documentation pascal martin provided.

cuda gdb debugging information for dynamically compiled kernels -

i'm dynamically compiling kernels cuda. there way add debugging information binary dynamically generated run-time generated assembly string? want use cuda-gdb on it. thanks. ps can please create tag cuda-gdb? i assuming creating .cubin file .cu file using nvcc, , later using cumoduleload, culaunchgrid , friends launch kernel. in case, can pass "-g" nvcc when converting .cu .cubin. then, can run program under cuda-gdb , place breakpoint in kernel , breakpoint should triggered.

perl - Jailbroken iPhone dev -

i have had great success running perl on jailbroken iphone 4: http://coredev.nl/ now play more functionality corelocation. i'd query gps , orientation data. have osx running in vm , able compile ios apps in xcode. i've been having difficult time learning ins , outs far, , have way of hacking more unix-y i'm comfortable with, server/client networking perl scripts have been writing. for example can download sample code apple, load in xcode, compile after switching off code signing , whatnot, scp app directory /applications, restart springboard, , bam it's on homescreen, happy have of working (through virtual machine no less!), overkill. what if want executable can run perl, spits gps coordinates out on stdout? understand i'll need use corelocation api, shouldn't have deal mvc, right? what p5-gps* packages? http://coredev.nl/cydia/dists/iphone/main/binary-iphoneos-arm/

android WebView change color -

i want change background color of webview when press button.. use use webview.setbackgroundcolor(color.blue); color never changes until load on webview.. know how fix this? thank you! you call invalidate() on webview object. see here .