Posts

c# - Windows Form DatetTimePicker Control Pre Selected Dates -

Image
i'm wonder can set dates highlighted on datetimepicker before shows calendar. this. i know month calendar boldeddates job possible same thing datetimepicker i don't think possible using existing datapicker control.you might have create new custom datetimepicker control. take http://www.techpowerup.com/forums/threads/a-custom-datetimepicker-control-in-c.70925/

java - Force IOException to happen in Android while reading a file without mocking -

how make ioexception happen testing? in particular, app reading file on external storage. possible, example, instruct os close file handle specific app process next read() throws ioexception ? on real device, can done physically, removing external storage media.

r - date discrepancy in zoo package when setting origin -

when try as.date(42010, origin = "1900-01-01") or as.date.numeric(...) zoo package in r; returns jan 8 2015 instead of jan 6, while can change origin 2 days sort this, wonder why issue coming up. like @akrun wonder why expect jan 6 outcome. checked base r , various online calendars there 42010 days between 2015-01-08 , 1900-01-01: as.date("2015-01-08") - as.date("1900-01-01") ## time difference of 42010 days note has nothing zoo package. as.date.numeric function in zoo , base r differ in default value origin . while authors in r core team argue unreasonable give default, zoo package has chosen use same default as.numeric.date function (i.e., 1970-01-01). therefore, outcome same no matter whether base r's or zoo 's as.date function used: base::as.date(42010, origin = "1900-01-01") ## [1] "2015-01-08" zoo::as.date(42010, origin = "1900-01-01") ## [1] "2015-01-08"

html - How can i make it csv file password protected using javascript -

html table data exporting csv file ,it's happening want make csv file password protected using javascript .is possible ? or way same thing .thanks in advance on surface csv file data exchange format, fields separated commas , each record goes on single line. comma separated values standard this specification wouldn’t deal password protection. but can zip csv. require password before uncompressing. password protect zip file so in link called exec zip file password protection. i not know details of intending accomplish, can scramble csv want , make unreadable without decryption, since isn't part of standard, getting file wouldn't know it. if control both encryption , decryption, don't need zip. you use encryption library javascript aes encryption

mysql - SQl Query for S.no -

how use sql query generating s.no 1. can't answer correctly select (@cnt := @cnt + 1) 's.no',`barcode`, (select @cnt := 0) dummy wp_weblib_outitems try this: select @s:=@s+1 's.no',`barcode` wp_weblib_outitems, (select @s:= 0) s;

c# - How resource efficient is Data Binding vs BeginInvoke (for the purpose of GUI manipulation) -

i did search , closest thing question have in mind how refresh visual control properties (textblock.text) set inside loop? the example included in url in situation, except reading in constant changing stream of data, , want changes in values reflected in windows interface. i trying make program efficient possible, should use ( inotifypropertychanged + data binding ) or following better? application.current.dispatcher.begininvoke(system.windows.threading.dispatcherpriority.background, new action () => label1.content = some_content)) assuming perform lot of buffer/checksum operations using system timers. wpf, other ui frameworks, requires modify ui controls same thread on created. thread, referred "ui thread", application's main thread, i.e. 1 program execution started. if happen subscribe serialport.datareceived event, facing problem, because event might triggered on (background) thread: the datareceived event raised on secondary thre...

Why it's so slow when I call adapter by tool "Call MobileFirst Adapter"? -

when use tool "call mobilefirst adapter" provided mobilefirst studio 7.1, take 1 minutes start up. cause this? it's fast on before versions. other recommendation: please change test method old fashon using url not generate file , read file content, can refresh page when changed adapter code. current fashon take more time. well, kind of baseless, isn't it? did not provide information , code snippets regarding adapter. do, pointing at, there security involved, how data processing , on... without this, difficult help. for example, may happen if did not first start server. if did not start server , attempt call adapter procedure studio first start server, deploy adapter , call adapter procedure. could take minute. as alternative studio can use tool such postman allow enter adapter's rest url structure , call again , again , again...