Posts

Match values in two columns and return value using vlookup from third column in Excel -

i have worksheet (called final) similar data below: b c year month births 1880 1 530 1880 2 456 1880 3 234 1890 1 163 1890 2 123 1890 3 125 second spreadsheet: b c d year month births 1880 1 1890 2 1890 3 i wish mach value column in sheet 2 e.g. 1880 sheet 2, in sheet 1 column return value in d when meets specific month criteria e.g. 1880(a) , 1(b) return 530 in column d this formula wrote not give me (gives na) =if(if(a2=final!b12,true,false),true,vlookup(final!a2,final!b12:c3532,2,false)) to me logic is, if a2=b2 true outer if gets true , if true vlookup , return value in second column else false) doesn't work you need put logic in lookup. =index(final!$c$1:$c$500(match(1,if(a2=final!$a$1:$a$500,if(b2=final!$b$1:$b$500,1,0),0),0)) this array formula. needs confirmed ctrl-shift-en...

android - Losing ACTION_DOWN parameters when InterceptTouchEvent -

i have parent view should follow finger on touch , child view inside clickable. used onintercepttouchevent decide if have consume touch event on parent or child comparing touch distance before action_up. obviously used "retrun false" on action_down in onintercepttouchevent (because propagate event before calculations) unfortunately ontouch loses action_down. the question how can initialize parameters (as initial position of parent view) ontouch (not onintercepttouchevent)? footnote: reason have write ontouch inline other codes have implemented onintercepttouchevent inside object definition. a part of object definition: boolean mmisbeingdragged; float mlastx; float mstartx; int mtouchslop=viewconfiguration.get(getcontext()).getscaledtouchslop(); @override public boolean onintercepttouchevent(motionevent event) { switch (event.getaction()) { case motionevent.action_down: mlastx = event.getx(); mstartx = mlastx; ...

c++ - Calling NtQuerydirectoryFile from a Kernel Hook Crashes the Kernel -

i'm using latest version of easyhook hook kernel functions. did setup debugging important on windows 8.1 64-bit based virtual machine, , tested hooking both of ntquerydirectoryfile , ntquerysysteminformation in user mode , ntquerysysteminformation in kernel mode without problem. my current problem hooking ntquerydirectoryfile using same code used user mode hook, fails when call original function giving me access violation error. i'm using following code kernel mode hook: ntstatus ntquerydirectoryfile_hook( __in handle filehandle, __in_opt handle event, __in_opt pio_apc_routine apcroutine, __in_opt pvoid apccontext, __out pio_status_block iostatusblock, __out_bcount(length) pvoid fileinformation, __in ulong length, __in file_information_class fileinformationclass, __in boolean returnsingleentry, __in punicode_string filename optional, __in boolean restartscan ) { ntstatus status; status = ntquerydirectoryfile(fileha...

ALSA buffer underrun network audio -

i'm using arch linux arm on olimex lime2. network speed tests between device , nas indicate > 450mbps. i'm using i2s driver audio output. when playing 2 channel, 192khz / 24bit material, following: playing usb stick: good. playing nfs share: buffer underruns between 7 & 300 ms. playing cifs share: buffer underruns between 199 & 215 ms. where begin track down issue? edit: a. i'm testing with: aplay -d default:card=sunxisndi2s "/mnt/nfs/06 - rosie 192.wav" b. 96khz / 24bit material plays without issue on network. edit: ping results: 64 bytes 10.10.10.9: icmp_seq=1 ttl=128 time=0.750 ms 64 bytes 10.10.10.9: icmp_seq=2 ttl=128 time=0.371 ms 64 bytes 10.10.10.9: icmp_seq=3 ttl=128 time=0.439 ms 64 bytes 10.10.10.9: icmp_seq=4 ttl=128 time=0.440 ms 64 bytes 10.10.10.9: icmp_seq=5 ttl=128 time=0.362 ms 64 bytes 10.10.10.9: icmp_seq=6 ttl=128 time=0.438 ms 64 bytes 10.10.10.9: icmp_seq=7 ttl=128 time=0.441 ms 64 bytes 10.10.10.9: icmp_se...

c - Fixed width, minimum width and fastest minimum width unsigned 8 bit integer -

three days read article on choosing correct integer size . before reading article, unaware of these 3 keywords viz: 1) fixed width unsigned 8-bit integer: uint8_t . (typedef's c99 complaints) 2) minimum width unsigned 8-bit integer: uint_least8_t . 3) fastest minimum width unsigned 8-bit integer: uint_fast8_t . so question are: 1) mean saying "at least 8 bits wide" uint_least8_t & uint_fast8_t . example, let's take @ snippet of code for(u16 i=0;i<counter;i++) { increment_counter++; } here :- u16 means unsigned short. counter , increment_counter 2 variables when counter =0xff ; increment_counter work fine type of keyword declaration. when counter =0x01ff ; kind of declaration should choose? uint_least8_t (who guaranteed @ least 8 bits wide) or unit16 type? 2) how choosing uint_fast8_t affects code speed. 3) how choosing uint_least8_t consumes lesser data memory unsigned char. i webbed doubts got nothing. appreciated. thanks in a...

java - Defining a class name Money -

i stuck add/subtract methods defining class named money objects represent amounts of money. class should have 2 instance variables of type int dollars , cents in amount of money. include constructor 2 parameters of type int dollars , cents, 1 one constructor of type int amount of dollars 0 cents , no-argument constructor. include methods add , minus addition , subtraction of amounts of money, , return value of type money. include reasonable set of accessor , mutator methods methods equals , tostring. again, stuck on add/minus part, cannot nail down. plus equals part bit confusing. yes homework. trying best need bit of push. please take look.... public class money { private static int dollars; private static int cents; public money() { } public money(int dollars, int cents) { this.dollars = dollars; this.cents = cents; } public money(int dollars) { this.dollars = dollars; } public int getd...

Microsoft Oxfordproject Speech-to-text Rest API -

Image
i need recognize speech text microsoft engines via rest api (i know other speech text engines , have them working, need ms speech-to-text). i read lot of info , manuals cannot working. i tried follow manuals ms site (sorry cannot add more links) no luck, found many "working" examples, , find way how recognize via ms api, stack problem: 1) can token authorize recognition request: 2) after have token, can try make request recognize recording: but in case error. despite "version" set in request. if knows how recognize audio recordings via microsoft rest api service please give me example. it's hard sure screenshot makes version , other parameters in form (payload), spec requires these query parameters instead.