Posts

nhibernate - Ignore column using mapping by code in HNibernate -

i'm using mapping code in nhibernate. got class several properties. 1 of them not related columns in db still has getter , setter. i use conventionmodelmapper not modelmapper. first 1 assumes properties mapped. how can tell nhibernate ignore it? why not map properties want , leave ones not needed mapped check this you can manage persistence of conventionmodelmapper following: mapper.beforemapproperty += (mi, propertypath, map) => { // code here using mi, propertypath, , map decide if want skip property .. can check property name , entity name if want ignore }; a better answer be: mapper.ispersistentproperty((mi, declared) => { if (mi.declaringtype == typeof (yourtype) && mi.name == "propertynametoignore") return false; return true; ...

visual studio 2008 - Integrating CUDA 4.0 into existing VS2008 project -

i wrote simple raytracer in c++ , want add cuda project. edited .vcproj manually , added cudart build rule can't work. nvcc invoked cuda compiles ok, seems host compiler doesn't recognize of cuda types , kernel syntax. my cuda version 4.0 rc2, can compile , run other cuda projects. please help. got deadline on head. you need ensure cuda code in .cu files such compiled nvcc, since nvcc understands cuda keywords.

iphone - Delegate for "View" for Push Notification -

is there delegate gets called when tap on "view" button of push notification alert. when app inactive. yes there is. application:didfinishlaunchingwithoptions: . apple docs: if action button tapped, system launches application , application calls delegate’s application:didfinishlaunchingwithoptions: method (if implemented); passes in notification payload (for remote notifications) or local-notification object (for local notifications). if application icon tapped, application calls same method, furnishes no information notification. here reference: local , push notification programming guide @ handling local , remote notifications section.

bash - trac-admin deploy not working -

i'm trying use trac-admin deploy command. sudo trac-admin /home/****/repository deploy /home/****/trac_temp/ after entering password get: error: command not found anyone know i'm doing incorrectly? looks "trac-admin" not found root shell. try use full path: /path/to/.../trac-admin

javascript - Hide scroll bar even when the cursor hovers the div -

i have div text scrolled , down 2 simple buttons & js. wish totally disable scroll bars never appear on screen, if crosser above them. how approach problem? thank shani add overflow: hidden css rule div.

Android USB device mode commands -

hi searching cannot find android usb device mode commands. not looking host mode in android, device mode commands. not find in developer.android site. can help? thanks in advance. the usb interface not part of android sdk. custom firmware can manipulate usb, of course, , can learn more @ http://source.android.com .

spring ws clientinterceptor example -

i need add custom soap header out going soap message in spring ws 2.0 client. i using client interceptor follows..... public class mywebserviceclientinterceptor implements clientinterceptor { private qname qname = new qname(web_service_namespace, soap_header_part); private string testtext = "<username>myuser</username><role>everything</role>"; @override public boolean handlerequest(messagecontext context) throws webserviceclientexception { soapmessage soapmessage = (soapmessage) context.getrequest(); soapheader soapheader = soapmessage.getsoapheader(); soapheaderelement newheader = soapheader.addheaderelement(qname); newheader.setactororrole(my_soap_actor); newheader.settext(testtext); return true; } } i have confirmed interceptor called, header doesn't seem added. meant doing sort of "commit" apply header message ???? no, don't need type of com...