Posts

jquery - Show or Hide Table rows based on drop down selection -

i have table has got sector column under . on changing sector column , using drop down need show / hide rows corresponding sector this code html code <table class="table table-striped marg_none tablesorter tablesorter-blackice" id="mytable" role="grid"> <tbody id="positivebody" aria-live="polite" aria-relevant="all"> <tr class="greencolor" role="row"> <td class="text-center"> <label for="ibrealest" class="marg_none"> <div></div> </label> </td> <td class="greencolor">jublfood</td> <td>99.15</td> <td>108.25</td> <td>cnx fmcg</td> </tr> <tr class="greencolor" role="row"> <td class="text-center...

symfony - Injecting webpack chunks to twig files -

i creating traditional website (not single page application) using php/twig/webpack tools. every site has own entry scripts. there vendor , common js files. how can inject entry chunks with hash (to handle browser cache) in twig files? stored in templates folder , should stay there (not go public folder since used php). how can inject script tags twig files? this twig general layout file: {% block html %} <!doctype html> <html lang="pl"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <base href="/"> <title> {% block title %}{% endblock %} </title> <link href="css/style.css" rel="stylesheet"> <script src="js/vendor.js"></s...

mysql - SQL cross table based on two columns -

Image
i want make cross table in mysql based on 2 columns in table. 1 evidence number of bus: called "boczny" (without repetitions in column) , number of lane: "linia". try convert "linia" column row, , count how evidence bus seen on given lane. acutualy have this, still mising pivot table (cross table). please help. select boczny, min(linia) vehicles group boczny a typical way uses conditional aggregation: select v.boczny, sum(v.linia = 1) linia_1, sum(v.linia = 2) linia_2 vehicles v group v.boczny; alternatively, put each linia on separate row: select v.boczny, v.linia, count(*) vehicles v group v.boczny, v.linia;

android - API 25 causing Rendering problems -

i have installed api 25 sdk manager , set build.gradle (module app) showing rendering problem enter image description here .. have set android version 25 in xml file . . still not working in advance

aws lambda - DynamoDb : Scan query does not return all the data -

i have dynamodb table thousands of data. scanning table using scan function , have applied "between" filterexpression. , query response gives 3 records whereas should return 100 records. i have created lambda function using node js. the other common issue whether scan executed until lastevaluatedkey empty. if doing , still not getting items, please show code @ in detail. if total number of scanned items exceeds maximum data set size limit of 1 mb, scan stops , results returned user lastevaluatedkey value continue scan in subsequent operation. results include number of items exceeding limit. scan can result in no table data meeting filter criteria. if lastevaluatedkey empty, "last page" of results has been processed , there no more data retrieved. if lastevaluatedkey not empty, not mean there more data in result set. way know when have reached end of result set when lastevaluatedkey empty.

python - Issue with the one line output when executing psexec command from subprocess.Popen -

i'm trying run , output of following command using psexec. 'psexec.exe -accepteula \\172.16.196.162 -u administrator -p builder!12 cmd.exe /c dir /b /s c:\\dir1' this command executed python using subprocess.popen(). please ignore rest of variables such psexecmdpath _childprocess = subprocess.popen(psexecmdpath + "\\" + 'psexec.exe -accepteula \\\\172.16.196.162 -u administrator -p builder!12 cmd.exe /c dir /b /s c:\\dir1', 0, none, none, subprocess.pipe, subprocess.pipe, none, false, false) the problem i'm facing when output stored in _output . given below snippet of code this. _childprocess = subprocess.popen(_cmd, 0, none, none, outfileobj, errorfileobj, none, false, true, psexecmdpath) retcode = _childprocess.wait() #after process has unblocked, it's safe assume no more writes being made. must return beginning in a+ mode. outfileobj.seek(0) ...

c# - Can't start a simple view with MVVMCross Xamarin IOS -

please help! just spend more 8 hours trying 1 simple view presented in ios, not working. no idea whats going on. this code. setup.cs public class setup : mvxiossetup { public setup(mvxapplicationdelegate applicationdelegate, uiwindow window) : base(applicationdelegate, window) { } public setup(mvxapplicationdelegate applicationdelegate, imvxiosviewpresenter presenter) : base(applicationdelegate, presenter) { } protected override void initializeioc() { base.initializeioc(); mvx.registersingleton<ilanguageservice>(() => new languageservice()); mvx.registersingleton<isoundplayerservice>(() => new soundplayerservice()); mvx.registersingleton<ialertservice>(() => new alertservice()); mvx.registersingleton<itagmanagerservice>(() => new tagmanagerservice()); mvx.registersingleton<ibackcompatservice>(() => new backcompatservice()); mvx....