Saturday, October 17, 2015

===================== Don't Buy Lenovo K3 note.. ==========================



after using this phone since last 2 week i have nothing than regret myself.
lenovo owner are trying to tag this product as Luxury Brand but in reality its a shit.
200% i will tell you that levono has worst developer and    tester who don't know the market needs.

why i am angry. read below

1. its lagging alot even i had not installed too many Apps. (i have M-indicator, slack, GreyTipHr whatsapp, google hangout)

2. if you plug ur charger into laptop and start any application (try camera ) it will tale enough time to make you angry.

3. if you will use another charger (even in wall socket ) device will show "its charging" when its not charging. in evening 7 PM i plunged carbon charger and when i back 7:40 PM, you will not believe it but i found same 42% as it was before.

4. even with lenevo charger, my device is not charging via laptop. (in 30 mnt i am getting 1% increment in charging.)

only camera is good nothing else. if they can return my money or replace with other phone..it will be great help for me.

Suggestion for lenevo Dev-: Wearing nice jacket, shoes and googles will not make you popular, you should be nice by your karma...(designing the nice UI is not all About, care about your functionality)

Worst product Ever i found.

Monday, October 12, 2015

Disable cell broadcast notifications on Lenovo K3 Note

Go to Message Setting    -> 
                                        -> Cell Broadcast 
                                        ->   Select Provide 
                                        -> Uncheck the "ETWS Alert".

Thursday, October 8, 2015

what is the simple concept for pagination

pagination required mathematics..
its easy to make any kind of pagination.

lets have a look in php.

<?php
$current_page=((isset($_REQUEST['page']) && ($_REQUEST['page']!=""))?$_REQUEST['page']:1);
$next_page=$current_page+1;
$page_limit=5;
$page_from=(($current_page*$page_limit)-$page_limit);
echo $page_from.'-'.$page_limit;
?>


Hit url like http://yourdomain.com?page=1

Hit url like http:127.0.0.1/myprojec_page.php?page=1

Detect MouseWheel via javascript and do auto scroll as MouseWheel scroll.

Useful code for developers.

// detect mouse wheel and do scroll as per
if (document.addEventListener) {
    document.addEventListener("mousewheel", MouseWheelHandler(), false);
    document.addEventListener("DOMMouseScroll", MouseWheelHandler(), false);
} else {
    sq.attachEvent("onmousewheel", MouseWheelHandler());
}


function MouseWheelHandler() {
    return function (e) {
        // cross-browser wheel delta
        var e = window.event || e;
        var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));

        //scrolling down?
        if (delta < 0) {
           // alert("Down");
        }

        //scrolling up?
        else {
            // alert("Up");
        }
        return false;
    }
}

Click here for demo