Posts

sharepoint - Where to store value in Outlook 2013 C# -

i developing addin outlook 2013. for that, have specific requirement , have data sharepoint list , display in pane. i have created addin , working fine. right , have written sharepoint url, username, password, domain directly. now scenario, have give user configure sharepoint url, username, password, domain. so can store information. when have data sp list, need use details user has configured can please me.? outlook stores data in hidden (associated) message in 1 of default folders. can see existing data in outlookspy - click imapifolder button, go "associated contents" tab. outlook object model lets access data through mapifolder.getstorage - see http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.getstorage(v=office.14).aspx

java - javax.validation.ValidationException: Type interface org.hibernate.validator.method.MethodValidator not supported -

am using spring 3.1 , hibernate validator 4.2. have custom traversal resolver , registered spring bean after have create vlaidaton factory using below code <bean id="validatorfactory" class="org.springframework.validation.beanvalidation.localvalidatorfactorybean" > <property name="traversableresolver" ref="traversableresolver"/> <property name="validationpropertymap"> <util:map> <entry key="hibernate.validator.fail_fast" value="false" /> </util:map> </property> </bean> <bean id="traversableresolver" class="org.hibernate.validator.engine.resolver.singlethreadcachedtraversableresolver" > <constructor-arg ref="delegate"/> </bean> <bean id="methodvalidatoradvice" class="common.validator.methodvalidationaspect"> <constructor-arg ref="v...

java - Is it required to add org.apache.catalina.startup.VersionLoggerListener for tomcat 8 server.xml? -

i upgrading tomcat 8 7. required add listener? <listener classname="org.apache.catalina.startup.versionloggerlistener" /> as far know listener prints application server , os informations. should first on list of listeners included in <server> element can ommited .

Find duplicate rows in SQL Server by multiple conditions -

my fields are id | name | starttime | endtime | date | description i looking way select rows same entries in fields except id. i not familiar sql tried this approach there 1 field relevant not (as in case) five. my first idea try like: select * table order name, date, starttime, endtime, description if through entries @ least find duplicates not best way solve problem. this should need: select name, date, starttime, endtime, description table group name, date, starttime, endtime, description having count(*) > 1

nginx - Why use gunicorn with a reverse-proxy? -

from gunicorn's documentation : deploying gunicorn we recommend use gunicorn behind proxy server. nginx configuration although there many http proxies available, advise use nginx. if choose proxy server need make sure buffers slow clients when use default gunicorn workers. without buffering gunicorn susceptible denial-of-service attacks. can use slowloris check if proxy behaving properly. why recommended use proxy server, , how buffering prevent dos attacks? according nginx documentation , reverse proxy can used provide load balancing, provide web acceleration through caching or compressing inbound , outbound data, , provide layer of security intercepting requests headed back-end servers. gunicorn designed application server sits behind reverse proxy server handles load balancing, caching, , preventing direct access internal resources. by exposing gunicorn's synchronous workers directly internet, dos attack performed creating load trickles data serv...

objective c - iOS: Unrecognized selector error — but I never call that method and it doesn’t exist -

so pretty weird one. first of — doesn’t happen when running app via xcode. when app running standalone on device (deployed via testflight or itunes). i use class called rmlstarreceiptprinter interface portable, bluetooth receipt printer. works fine while running in debug mode while device (iphone/ipad) connected xcode on dev machine. if run in standalone mode, -[rmlstarreceiptprinter th:]: unrecognized selector sent instance error. but , th: method doesn’t exist in rmlstarreceiptprinter , never called! time when ran it, errored same message selector ex: , doesn’t exist either. there methods contain th , ex substrings in name, tells me kind of weird memory leak or form of corruption makes app send wrong selector name. possible? bonus : thought when compile in release mode (which in case), package doesn’t contain symbol tables, how come in error logs there class , selector names? i can answer bonus part of question, , not actual problem. objective-c uses dyna...

java - How to control parsing xml using xStream? -

now using xstream parse object xml-format string. hope when parse xml can want according different fileds, if encounter filed a, add cdata block before it, when encounter filed b, make upper case, this, , here doing now. public static string textmessagetoxml(responsetextmessage textmsg){ xstream.alias("xml", textmsg.getclass()); return xstream.toxml(textmsg); } private static xstream xstream = new xstream(new xppdriver() { @override public hierarchicalstreamwriter createwriter(writer out) { return new prettyprintwriter(out) { // add cdata block boolean cdata = ...;//i need add cdata fields boolean isneedupper=...;//only need protected void writetext(quickwriter writer, string text) { if (cdata) { writer.write("<![cdata["); writer.write(text); write...