Posts

c++ - Runtime error due to WTTlog.DLL? -

i'm running vc++ code in vs2008 in win8 os. when click on "f5" (run project), see errro message below "the program can't start because, wttlog.dll missing computer. try reinstalling program fix problem" i manually copied wttlog.dll release/debug folder in vs project i'm running. still error. can kindly me if need copy wttlog.dll specific location ? tried registering dll,but getting message like "the module wttlog.dll loaded entry point dllregiterserver not found". 1) can kindly let me know how execute vc++ solution without getting wttlog.dll error ? 2) reason error ? thanks in advance. this file part of microsoft driver test manager/studio. the file location should this.. 'c:\program files\microsoft driver test manager\studio\wttlog.dll' or c:\program files (x86)\windows kits\8.0\hardware certification kit\tests\[architecture]\nttest\driverstest\storage\wdk or c:\program files (x86)...

Oracle SQL get one of each data -

if had table column of hello , had multiple rows data 'world' , multiple data dave (there other columns too) , wanted select different types of data within hello column. so looking return 2 results, 1 being world , other being dave . another option count how many different data pieces there in column(2 in case) , searching rownum , sorting results (although i'd assume similar search.) thanks if don't want duplicates in result - add distinct : select distinct hello yourtable and if want count different values : select hello, count(*) yourtable group hello

jquery - load scripts and css with ajax loaded contents -

i have page contains menu sidebar links , div load ajax content other pages in it, content load scripts , css not work, use html 5 history load load content other pages. $(function () { $('.menuanchor').click(function (e) { href = $(this).attr("href"); loadcontent(href); // history.pushstate history.pushstate('', 'new url: ' + href, href); e.preventdefault(); }); // event makes sure back/forward buttons work window.onpopstate = function (event) { console.log("pathname: " + location.pathname); loadcontent(location.pathname); }; }); function loadcontent(url) { // uses jquery load content $.get(url, {}, function (data) { $(".contn_btm_mid_bg").html($(data).find('.contn_btm_mid_bg').html()); //$.validator.unobtrusive.parse(".contn_btm_mid_bg"); }); // these 2 lines make sure nav bar reflects current url...

Android Button Tag and Onclick listener in listview get reset when scrolling -

i populating listview imagebutton when clicked, starts playing audio file. i set datasource of mediaplayer imagebutton.settag("resource url") while populating list. without scrolling, first record playing fine, once scroll, of imagebutton tags, , onclicklistener lost. to enable click buttons on list, implement own customonclick , set in xml part. //the list row button xml: <imagebutton android:id="@+id/imagebutton1" android:layout_width="30dp" android:layout_height="30dp" android:background="@drawable/play_icon" android:layout_gravity="center_vertical" android:tag="file_recording" android:onclick="myonclick" /> customcursoradapter: class customcursoradapter extends simplecursoradapter { private int layout; context context; public customcursoradapter(context context, int layout, cursor cursor, string[] from, int[] to) { super(...

jquery - Two function and alert not working? -

html code <body> <h1 align="center">are ready?</h1> <h2 align="center">just answer yes or no!</h2> <div class="wrapper"> <button id="ohyes" class="buttonyes"> yes </button> <button id="ohno" class="buttonno"> no </button> </div> </body> jquery code <script> $(function () { $("#ohno").on({ mouseover: function () { $(this).css({ left: (math.random() * 800) + "px", right: (math.random() * 800) + "px", top: (math.random() * 400) + "px", }); } }); $("#ohyes").click(function () { alert("yes"); //use .val() if you're getting value }); }); </script> i'm trying call function in jquery first working fine button moving on mouseover when click butt...

iphone - Best way to process multiple HTTP async requests in the background and return responses individually -

i have 1 class processes requests composing framework, https://github.com/ivasic/restframework . want able execute requests requests , return responses individually caller. stands if have more 2 request, result of second 1 domes not come through, seems happen @ same time. what solution this? you have caller pass block "one class handles requests." caller block can response. // inside caller class. oneclassthathandlesrequests *ws = [oneclassthathandlesrequest sharedinstance]; [ws getfromurl: @"http://webservice.com/people/jack" completionblock: ^(urlrequest *request , urlhttpresponse *response, nsdata *data) { // make sure we got 200 code back. // change data json if i'm getting json back. }]; now oneclassthathandlesrequests knows how pass information call without oneclassthathandlesrequests needing know called. you use delegate pattern, blocks case makes more sense me

hashmap - floorEntry for Double numbers in java -

i have divided continuous range of double numbers several sub-ranges. tried create method in order map each sub-range specific string value: static navigablemap < double, string > rrmap = new treemap < double, string > (); static hashmap < string, double > qualitymap = new hashmap < string, double > (); public static void main(string args[]) { qualitymap.put("key", 0.3); rrmap.put(0.0, "a"); // 0..11 => bradypnea rrmap.put(1.2, "b"); // 12..14 => unreliable_ranges rrmap.put(1.5, "c"); // 15..20 => normal activity rrmap.put(2.1, "d"); // 21..25 => unreliable_ranges rrmap.put(2.6, "e"); method(); } // lines of codes public static void method() { system.out.println(floorentry(qualitymap.get("key")).getvalue()); } in function named "method", want print string value mapped number exist in qualitymap , value of "k...