Posts

google maps - Android: getting different latitude and longitude on same location -

Image
we making track , trace application , accuracy of address important us. we have done testing of our application , found getting different latitude , longitude same location.if there change in latitude , longitude accuracy of address 150 200 meters away actual location. my question why getting different latitude , longitude same location?? can more accurate latitude , longitude?? thanks, sanjay salunkhe used fused location api here tutorial. when working location, important understand may request accuracy, you're not guaranteed accuracy in actual location updates . here accuracy table tested google see presentation here in case there wrong in code otherwise not give away 150-200 m because huge distance.

javascript - Get actual height of document with jQuery -

i have problem jquery plugin, want display footer in specific way right before end of page. actual bottom position , compare height of entire body. but there problem jquery function height() return bad value. example know site has height of 5515px function returns me value: 8142px i use plugin mcustomscrollbar in few places on page, , think may cause problem. can't disable it, because page has elements require good. my code: (function($){ $.fn.scrollingelements = function(){ var height = $(window).height(); var max_height = $(document).height(); var prev_top = $(window).scrolltop(); var prev_bottom = top + height; $(window).scroll(function(){ var top = $(window).scrolltop(); var bottom = top + height; console.log(max_height, bottom); if(prev_top < height && top > height){ // console.log('show header', 'show sticky', 'show footer...

ios - Removal of white line under section header in UITableView? -

Image
i'm struggling removing white lines below each custom section header in uitableview, seen below. suggestions? use in tableview. self.tableview.separatorstyle = uitableviewcellseparatorstyle.none the above solves separators between cells, not headers. the thing have in custom section header containercellview.backgroundcolor = uicolor(red: 24/255.0, green: 34/255.0, blue: 41/255.0, alpha: 100) set heigth header & footer 0.01 solve problem func tableview(tableview: uitableview, heightforheaderinsection section: int) -> cgfloat { return 0.01 }

javascript - need to reload for jquery to do the function -

i have code check every height's thumbnail , make thumbnail have height of tallest thumbnail. work first time. test in resolution 768x163 1440x613 thumbnail seems have little space inside caption. try reload page. , bug got fix. how make function work when minimize window without have reload page this code on height.js (function($) { "use strict"; // thumbnail height function equalheight(group) { var tallest = 0; group.each(function() { var thisheight = $(this).height(); if(thisheight > tallest) { tallest = thisheight; } }); group.each(function() { $(this).height(tallest); }); } $(document).ready(function() { equalheight($(".thumbnail")); }); })(jquery); heres jsfiddle https://jsfiddle.net/nr2cc6ll/ just call function inside resize method like: $(window).resize(function() ...

c - How is speculative fault due to compiler optimization implemented under the hood? -

this question follow-up question on can c compiler optimizer violate short-circuiting , reorder memory accesses operands in logical-and expression? . consider following code. if (*p && *q) { /* */ } now per discussion @ can c compiler optimizer violate short-circuiting , reorder memory accesses operands in logical-and expression? (especially david schwartz comment , answer) possible optimizer of standard-conformant c compiler emit cpu instructions accesses *q before *p while still maintaining observable behaviour of sequence point established && -operator. therefore although optimizer may emit code accesses *q before *p , still needs ensure side-effects of *q (such segmentation fault) observable if *p non-zero. if *p zero, fault due *q should not observable, i.e. speculative fault occur first due *q being executed first on cpu speculative fault ignored away once *p executed , found 0. my question: how speculative fault implemented under hood?...

php - Can I maintain hydration after updating an object with Propel? -

if fetch object so: $q = orderreturnquery::create() ->joinwith('type') ->joinwith('status') ->usestatusquery() ->joinwith('email') ->enduse() ->joinwith('priority'); $object = $q->findpk(1); var_dump($object->toarray(tablemap::type_phpname, true, [], true)); this output get: array (size=14) 'id' => int 1 'typeid' => int 3 'statusid' => int 2 'priorityid' => int 1 'orderid' => int 234567 'customerid' => int 5 'initiated' => string '2016-03-02t01:11:12+00:00' (length=25) 'initiator' => int 2 'freepostagelabel' => boolean true 'lostinpost' => boolean false 'suppressemail' => boolean true 'type' => array (size=4) 'id' => int 3 'title' => string 'title 3' (length=7) 'priority...

java - Increase Maximum Room Occupants count smack api -

how increase deafult maximum room occupants count '30' desired count. possible smack api? so far researched, submitform.setanswer("muc#roomconfig_maxusers", 20000); not working thorws exception in thread "main" java.lang.illegalargumentexception: since type 'list-single' how set value muc#roomconfig_maxusers? thanks in advance. i solved problem giving maximum users count in arraylist follows, arraylist oarraylist = new arraylist(); oarraylist.add("0") submitform.setanswer("muc#roomconfig_maxusers", oarraylist);