Posts

javascript - Metaslider flexslider move:1 -

i have been trying fix time now, still no luck. on wordpress install i'm using metaslider - flexslider carousel. the images in carousel have different heights, resized fit carousel: result: images have different widths. on doesn't cause problems, when clik next/prev need carousel move 1 image @ time. moving entire visible part. could please me? http://denkkamer.com/nieuwesite/projecten/ i read code: "move: 1;" should work. doesn't. // carousel options itemwidth: 0, //{new} integer: box-model width of individual carousel items, including horizontal borders , padding. itemmargin: 0, //{new} integer: margin between carousel items. minitems: 1, //{new} integer: minimum number of carousel items should visible. items resize fluidly when below this. maxitems: 5, //{new} integer: maxmimum number of carousel items should visible. items resize fluidly when above limit. move: 1, ...

Postal Code listing in PHP/JSON/MySQL -

Image
i have database of ~980k postal codes, , form user can input either zip code, city, state, and/or country. i'd create script auto populates other fields based upon results of another, before arrive there i'm curious best manner parse amount of data select box form. not appropriate way? have on code far, looking pseudo code or thoughts. database looks so took recommendation sakamaki izayoi , found script modified work application. once reaches 3 characters searches database of ~980k postal codes , returns results instantly. let me know guys's thoughts. form <input type="text" id="quote_shipper_postalcode" name="quote_shipper_postalcode" class="form-control" maxlength="5"> javascrpit $(document).ready(function(){ var ac_config = { source: "ajax/ajax_postal_codes.php", select: function(event, ui){ $("#quote_shipper_city").val(ui.item.city); $("#quo...

Shell/Unix - Getting MAC Address -

i know how our mac address on unix environment, know ifconfig -... i'm getting others stuff (i want mac address, nothing more). is possible ? as root user (or user appropriate permissions type "ifconfig -a" from displayed information, find eth0 (this default first ethernet adapter),locate number next hwaddr. mac address..

Get link from anchor tag using Java -

i'm trying value of href attribute anchor tag ( a tag) using java, without third party api. know class of label. website looks this: <html> <body> <div id="uix_wrapper"> <div id="button"> <label class="downloadbutton"> <a href="link want get">button</a> </label> </div> </div> </body> </html> you can use regular expression if try avoid using third-party libraries. basic expression example is <a href="(.*?)"> and should work. can try out using https://www.debuggex.com/ the result in second group.

jquery - Make div container clickable, except export button -

i want create highcharts chart whole div has onclick function, don't want export button handle event on click. should react normal export button. i have tried jquery tricks avoid it, getting highcharts buttons class: highcharts-button , doesn't work : jquery("#container").on('click', ':not(.highcharts-button, .highcharts-button *)', function(e){ e.stoppropagation(); alert('click'); }); here jsfiddle . (problem is: don't want see alert pop when click export button). one way filter event target, e.g: jquery("#container").on('click', function(e){ if ($(e.target).closest('.highcharts-button, .highcharts-contextmenu').length) return; e.stoppropagation(); alert('click'); }); -jsfiddle-

php - How to return multiple value from one function? -

i create simple web in php , want return multiple variables 1 function. possible or not. , possible how? you can return array function dosth(){ $a = 2; $b = 5 $c = 9; return array($a,$b,$c); } and use list() method single values: list($a, $b, $c) = dosth(); echo $a; echo $b; echo $c;

jquery - Getting average or number of columns Highstock -

i'm working highstock column chart. http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/stock/demo/column/ $('#container').highcharts('stockchart', { chart: { alignticks: false }, rangeselector: { selected: 1 }, title: { text: 'aapl stock volume' }, series: [{ type: 'column', name: 'aapl stock volume', data: data, datagrouping: { units: [[ 'week', // unit name [1] // allowed multiples ], [ 'month', [1, 2, 3, 4, 6] ]] } }] }); when change range bigger on navigator joins bars , values. there way getting average of these 2 values, not sum? or, there possibility amount of columns, visible...