Posts

Javascript image timout -

good day, i'm having problem code, can't show loading image few seconds, while post code getting in database , gives backinformation show. $("#poll_vote").click(function(){ var answer = $("input.panswer:checked").val(); var p_id = $("#p_id").val(); $("#poll_load").html("<tr><td align='center'><img src='/images/ajax/ajax4.gif'/></td></tr>"); $.ajax({ type: "post", data: "action=poll_vote&p_id="+p_id+"&answer="+answer+"&module="+module+"", datatype: 'html', url: "/ajax.php", success: function(data) { $("#poll_content").html(data); } }); }); i hope on fast help, i'm begginer in java, can't dicide myself. if want create delay loading animation shows (i believe is... mmm different, i'm going that...) what need se...

c# - Hiding SuperSU and Kingo Root -

i'm trying hide root , supersu icons android devices. company wants hide them keep our app tidy without having icons on our phones. i've tried shelling pm hide com.kingoroot.com pm hide com.kingouser.com but icons remain, tried rebooting after same result. it should straight-forward: adb shell pm hide "package.name" ex: adb shell pm hide "com.jondouglas.application" after kicks in, should see: package com.jondouglas.application new hidden state: true after 5-10 seconds, icon disappear screens.

c# - Should I declare variables accesed by a SerialPort's callback as synchronized? -

i have callback added datareceived event of serialport . callback accesses class' properties. so, must these properties declared synchronized ? in other words, possible main thread accesses property while callback writing on it? here put example: class { private serialport serialport; [methodimpl(methodimploptions.synchronized)] // <-- necessary? public int prop { get; set; } public a(serialport sp){ serialport = sp; serialport.datareceived += (object sender, serialdatareceivedeventargs e) => { prop++; }; } } that's possible don't know whether happens because code of main thread not visible here. if 2 threads access prop must synchronized in form. in demo code [methodimpl(methodimploptions.synchronized)] enough. want protect more state single value. in case need lock manually using lock . [methodimpl(methodimploptions.synchronized)] code smell anyway. believe it's there java compati...

reporting services - embedding existing tablix with several group levels into a main tablix - detail member with inner members -

in new ssrs 2008 report, embedding 18 tablixes 1 main tablix due data related particular student. each of 18 tablixes unique report user utilizes report parameter determine report(s) want have executed. process has 1 dataset being used. rows selected each report based upon column called report_number. each tablix (report) has filter parameter used determine rows dataset apply particular report. columns in dataset not being used particular report have value of spaces or zeroes in columns. this process has worked fine until existing report has embedded in main tablix. executing report has 4 levels of groupings summarization counts made @ different levels. error message displayed is, 'the tablix 'tablix1' has detail member inner members. detail members can contain static inner members'. to solve problem far, have used following links: http://blogs.lessthandot.com/index.php/datamgmt/dbprogramming/reporting-services-error-the-tablix/ , http://forum.mibuso.com/...

javascript - jscript dropdown menu doesn't work on other buttons -

im creating navigation bar using button dropmenu. 1 button functions (abou button). clicking other button (blog) displays same dropmenu though put different menu it. here's code. thank help. javascript: function myfunction(){ document.getelementbyid("mydropdown").classlist.toggle("show"); } window.onclick = function(event){ if(!event.target.matches('.dropbtn')){ var dropdowns = document.getelementsbyclassname("dropdown-content"); var i; for(i = 0; < dropdowns.length; i++){ var opendropdown = dropdowns[i]; if(opendropdown.classlist.contains('show')){ opendropdown.classlist.remove('show'); } } } } html: <div class="dropdown"> <button onclick="myfunction()" class="dropbtn"> <img src="images/whitearrow.png" width="10" height="10" ></bu...

how to file.write() an empty string if dictionary produces a KeyError in python -

i have particular problem json files. following code reads json, , writes txt file. have shortened code readability, in real code hundereds of fields , write statements. import os import json def _getjson(filename): """ returns list of dictionaries """ if not os.path.exists(filename): return [] open(filename, 'r') openfileobject: data = json.loads(openfileobject.read()) return data def writefile(filename, data): """writes file""" open(filename, 'w') f: d in data: f.write(d['field1'] + ' ' + d['field2'] + ' ' + d['field3'] + '\n') ## lot more code here def main(): filename = r'c:\input.json' data = _getjson(filename) outfile = r'c:\output.txt' writefile(outfile, data) if __name__ == '__main__': main() the problem is, field not in json, , produce...

testing - How to Test the two stage translation in ARMv7 MMU? -

i have configured ttbcr , ttbr stage 1 translation. configured vtcr , vttbr stage 2 translation. faced issues abort solved now. know testing perspective how 2 stage translation in mmu tested when goes verification stage. need sure have done in application code correct. the strategy followed follows 1.) configure ttbcr , ttbr0 , ttbr1 2.) switch non secure world 3) configure vtcr , vttbr