Posts

c# - Showing near guesses that exist in the grammar? -

c# - Showing near guesses that exist in the grammar? - microsoft sapi speechrecognitionengine know, not accurate speech recognition engine out there. in event of programme not recognizing speech correctly, there way user notify application application recognized speech incorrectly? or how can display near guesses exist in speech grammar similar speech uttered? for example: speaking words: "read entire book" engine recognizes as: "read enrich book" the user should able click on button says: "incorrect guess" and application shows list of words similar user can select he/she said , maybe programme can larn mistake? program displays: "words in grammar similar: enrich, enhance, entire, encapsulate i know similar machine learning , neural network training, if this, create sapi work better. answers please? alternates available dictation recognitions. 1 can ask alternates grammar-based recognitions, engine doesn...

How to insert two lines for every data frame using awk? -

How to insert two lines for every data frame using awk? - i have repeating info follows .... 4 4 4 66 79 169 150 0 40928 40938 40923 40921 40789 40000 40498 5 4 3 16 22 247 0 40168 40911 40944 40205 40000 40562 6 4 4 17 154 93 309 0 40930 40919 40903 40917 40852 40000 40419 7 3 2 233 311 0 40936 40932 40874 40000 40807 .... this info made of 115 info blocks, , each info block have 4000 lines format. here, hope set 2 new lines (number of line per info block = 4000 , empty line) @ begining of each info blocks, looks 4000 1 4 4 244 263 704 952 0 40936 40930 40934 40921 40820 40000 40570 2 4 4 215 172 305 33 0 40945 40942 40937 40580 40687 40000 40410 3 4 4 344 279 377 1945 0 40933 40915 40907 40921 40839 40000 40437 4 4 4 66 79 169 150 0 40928 40938 40923 40921 40789 40000 40498 ... 3999 2 2 4079 4081 0 40873 40873 40746 40000 40634 4000 1 1 4080 0 40873 40923 40000 40345 4000 1 4 4 244...

Spring Data java.lang.NoSuchMethodError in grails -

Spring Data java.lang.NoSuchMethodError in grails - i using mongo db plugin , spring-data-neo4j in grails application. i using latest version of sdn , mongo db plugin. here buildconfig : grails.servlet.version = "3.0" // alter depending on target container compliance (2.5 or 3.0) grails.project.class.dir = "target/classes" grails.project.test.class.dir = "target/test-classes" grails.project.test.reports.dir = "target/test-reports" grails.project.work.dir = "target/work" grails.project.target.level = 1.6 grails.project.source.level = 1.6 //grails.project.war.file = "target/${appname}-${appversion}.war" grails.server.port.http = 1111 grails.project.fork = [ // configure settings compilation jvm, note if alter groovy version forked compilation required // compile: [maxmemory: 256, minmemory: 64, debug: false, maxperm: 256, daemon:true], // configure settings test-app jvm, uses daemon default test: [...

How to determine space and time complexity of an algorithm? -

How to determine space and time complexity of an algorithm? - i have algorithm, not sure time , space complexity. , for (i = 1 n ) begin r(xi) = random(o, xi, r) i++ end what time , space complexity in above algorithm , why? thanks space , time complexity in proportional size of input. suppose there input array of size n , processing each element once, time complexity o(n) . if utilize info construction store , process intermediate results, array of size n , space complexity o(n) . there many notations complexity , different complexities such log n, n, n^2, n^3, n! . for code time complexity o(n) , space complexity depends on whether have defined( o(n) ) r or passed( o(1) ) parameter. refer here more analysis of algorithms algorithm time-complexity space-complexity

data structures - git: DAG vs. tree? -

data structures - git: DAG vs. tree? - i've read git uses directed acyclic graph (dag) info structure, each commit node, , things branches , tags pointers nodes. but when seek visualize commit history using tools gitk, looks more tree graph since every parent-child relationship directed 1 way. so, what's difference between dag , tree, regards git? but when seek visualize commit history using tools gitk, looks more tree graph since every parent-child relationship directed 1 way. a dag, tree, can laid out such parent-child relationships one-way. difference between them nodes in dag can have multiple parents. mutual case of in git when merge. merge commit have of commits merged parents. tree doesn't allow nodes have multiple parents. (image source) notice how merge commit c6 has 2 parents, c4 , c5. git data-structures

html - How to debug Font-Awesome icons? -

html - How to debug Font-Awesome icons? - i have been using font-awesome , icons while now, , has been working fine. today, however, displays blank squares instead of icons. have read many other related questions, none of cases apply me. said, worked before, , did not create changes font-awesome files (i using downloaded version of fa, not cdn) or html templates display icons. so want start debugging process. 1 illustration this: <i style="color: orange" class="fa fa-exclamation-triangle"></i> however, cannot find urls in css of affected elements, when inspecting chrome. see on every icon element though, this: .fa-warning:before, .fa-exclamation-triangle:before { content: "\f071"; } where \f071 "blank square" character. so question is: where icons come from, , how can debug no-show fa icons, in general? update i found out \f071 , friends symbols referring icons, stored in font files. fact show blan...

ios - NSURLRequest returning nil -

ios - NSURLRequest returning nil - i performing simple download of info json service. when invoked request returns nil response object. seems same code i've used several times, stumped why request returns nil. have verified generated url valid , homecoming data. missing obvious? thanks! nsstring *serviceendpoint = [nsstring stringwithformat:@"http://waterservices.usgs.gov/nwis/iv/?sites=%@&period=pt%luh&format=json", guageid, hours]; nsurlrequest *request = [nsurlrequest requestwithurl:[nsurl urlwithstring:serviceendpoint]]; nsdata *response = [nsurlconnection sendsynchronousrequest:request returningresponse:nil error:nil]; // response nil @ point nsdictionary *rvdata = [nsjsonserialization jsonobjectwithdata:response options:0 error:&jsonerror]; you're totally disregarding nserror , nsurlresponse populated sendsynchronousrequest method. first, add together check inquire whether nserror has been populated (if nsurlresponse if nil), ...