Posts

ionic framework - Vertical Scroll Parent on ionicScroll -

ionic framework - Vertical Scroll Parent on ionicScroll - this going bit hard explain sick best. i'm working on ionic project, have on home screen several horizontal scrolling divs, , whole view vertically scrollable. problem if drag screen, , start dragging items in horizontal list, cant vertically drag whole view, makes sense, cause horizontal list has ionic scroll direction set x. but want mimic effect on facebook timeline, there suggested apps ads, can horizontally scroll through them, if u dragged vertically u scroll whole timeline normal. ionic-framework

c# - How do dynamic and value types work? -

c# - How do dynamic and value types work? - there little piece of code can not understand: class programme { static void main(string[] args) { var ts = new teststruct() { = 2 }; object ots = ts; dynamic dts = ots; ts.a = 6; dts.a = 4; console.writeline(dts.gettype()); //type teststruct console.writeline("ts.a =" + ts.a); //6 console.writeline("unboxed ts.a =" + ((teststruct)ots).a); //4 console.writeline("dts.a =" + dts.a); //4 console.readkey(); } } public struct teststruct { public int a; } dts , ots refer same variable on heap, gettype returns dts teststruct . dts teststruct stored on heap? or not understand? tl;dr: dts , ots point same, boxed, re-create of ts . ts contains original teststruct separately. as may know, boxing , unboxing works this: a key difference same operations on class types boxing , unboxing copie...

find - Jquery wildcard not select not working -

find - Jquery wildcard not select not working - i have form send off various orders, happens in th ebackground via ajax. 1 order can sent @ time when send button clicked want hide other send buttons still show one. the id of table cells "send(order_number)1". jquery code is $('#all_orders').find('[id^=send]').not('#send'+order_id+'1').replacewith(); where +order_id+ clicked order. currently hides of buttons. each order repeated in table within div id of all_orders. <td id="send<?=$order['id']?>1"> <input type='button' class='submit subtitle' value='send' onclick="export_leads(<?=$order['id']?>, '<?=$orders[$order['id']]['type']?>', '<?=$orders[$order['id']]['amount']?>', <?=$client_id?>)"> </td> function export_leads(order_id, type, amount, client_id){ $('#a...

forEach array javascript incomplete -

forEach array javascript incomplete - updated i trying build array calling callback function , feeding values other arrays. however, few values , cannot understand why. the construction like: var sorteddata = []; arrayprovidingthevalues.foreach(pushel,sorteddata); and callback function is function pushel(element,index) { console.log("pushel called"); this[index] = element; } input: saisinearray = {obj1, obj2 obj3, obj4, obj5, obj6}; contratarray = {obj21, obj22 obj23, obj24, obj25, obj26}; intervalnb = 5; expected output sorteddata = {obj1, obj2 obj3, obj4, obj5, obj6,obj21, obj22 obj23, obj24, obj25,obj6,obj26}; ps: detailled code show in more detail. for (var k = 0; k < intervalnb; k++) { if (k * interval >= saisinearray.length) { } else if ((k + 1) * interval >= saisinearray.length) { saisinearray.slice(k * interval, saisinearray.length).foreach(pushel, sorteddata); } else { saisinearray.slic...

indexing - why oracle CHOOSE INDEX RANGE SCAN over FAST FULL INDEX SCAN -

indexing - why oracle CHOOSE INDEX RANGE SCAN over FAST FULL INDEX SCAN - i have read documentation indexes, did examples , have doubts. i create table , insert random values, (a column has unique values) column not null create index on a, b, c. (b-tree) select count(*) demo_full_index_scan; =1000 select * demo_full_index_scan; b c d e f ---------- ---------- ---------- ---------- ---------- ---------- 1 7 109 1 1 1 2 12 83 2 2 2 3 21 120 3 3 3 4 13 74 4 4 4 5 2 1 5 5 5 ... documentation says when query values in index, values gathered index (index fast total scan), here optimizer choosing operation. explain plan select a,b,c demo_full_index_scan = 1; ...

How to replace servlet doPost method with PHP or Python or Perl? -

How to replace servlet doPost method with PHP or Python or Perl? - i uploading image file on server using javascript , servlet. servlet dopost method follows. protected void dopost(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { // todo auto-generated method stub system.out.println( " image sent server "); servletinputstream servletinputstream = request.getinputstream(); file capturefile = new file("./images/img1.jpg"); system.out.println(capturefile.getabsolutepath()); if(!capturefile.exists()) { capturefile.createnewfile(); } fileoutputstream fileoutputstream = new fileoutputstream(capturefile); int c; while((c = servletinputstream.read()) != -1) { fileoutputstream.write((char)c); //system.out.print((char)c); } fileoutputstream.close(); } in javascript creating header , body follows: header = 'post /file/upload http/1.1\...

javascript - Changing style of input without display:none -

javascript - Changing style of input without display:none - a mutual way replace standard input display:none input, , add together background-image label. css: class="lang-css prettyprint-override"> input[type="checkbox"] { display: none; } input[type="checkbox"]+label { background: url('../images/checkbox_unchecked.png') left center no-repeat; background-size: 25px; } input[type="checkbox"]:checked+label { background: url('../images/checkbox_checked.png') left center no-repeat; background-size: 25px; } the problem: html broken afterwards. when want alter direction of elements, have alter within css ( background: right ). how can alter image/style of input field without create display:none first, , alter background image? has work in android 2.3. edit: jsfiddle. the simple prepare rtl issue (assuming main problem here, based on jsfiddle demo), style on dir attribute when set ...