Sunday, July 26, 2020

Flutter Provider simple counter example




Sunday, October 6, 2019

jquery filter element by menu

Filter elements by jquery, here i used data attribute for filter elements and used bootstrap4 for grid.
menu items like this :

<a class="nav-link" data-filter="Events">Events</a>
<div class="col-12 col-sm-6 col-md-4 filtr-item" data-category="Media,News">
            <img src="https://via.placeholder.com/150?text=1" class="img-fluid" alt="sample">
        </div>

and the thumnail item data like this:

Saturday, October 5, 2019

bootstrap 4 material checkbox and radio button




Saturday, July 20, 2019

How to create a awesome Flutter material login screen



Awesome Flutter material login screen sample code:


Saturday, February 2, 2019

You don't have permission to access, Server unable to read htaccess file, denying access to be safe - Fix Godaddy

Error : You don't have permission to access, Server unable to read htaccess file, denying access to be safe.

Solution: chmod -R 755 <site_top_folder>

Tuesday, July 17, 2018

CircleTransform for Picasso


Friday, July 6, 2018

PHRETS create mysql tables for torontomls.net

using phrets to create mysql tables from rets for torontomls.net


Wednesday, June 27, 2018

PHRETS sample code for torontomls





Results Like:


Saturday, March 24, 2018

Android AsyncTask Callback example





Thursday, March 15, 2018

Android Volley Callback Example









Friday, April 21, 2017

Php add days to current date excluding weekends and excluding holidays

<?php

$holidayDates = array(
    '2016-03-26',
    '2016-03-27',
    '2016-03-28',
    '2016-03-29',
    '2017-04-25',
);

$count5WD = 0;
$temp = strtotime("2017-04-21");

while($count5WD<2){
    $next1WD = strtotime('+1 weekday', $temp);
    $next1WDDate = date('Y-m-d', $next1WD);
    if(!in_array($next1WDDate, $holidayDates)){
        $count5WD++;
    }
    $temp = $next1WD;
}

$next5WD = date("Y-m-d", $temp);

echo $next5WD;
?>

Thursday, December 22, 2016

WAMP server installation errors and solutions



1. How to solve WAMP - local server - 1 of 2 services running or WAMP icon is orange error

If you have this error? vcruntime140.dll missing error in wamp on windows First solve the problem. Need Help? Click Here or Download and install the file.


!Important - Then click wamp icon->Apache -> Service administration -> install service

2. *** ERROR *** The PHP configuration loaded file is: - should be: C:/wamp64/bin/apache/apache2.4.17/bin/php.ini or c:/wamp64/bin/php/php5.6.16/phpforapache.ini


  • copy php.ini file from - C:\wamp64\bin\php\php7.0.4 
  • past to - C:\wamp64\bin\apache\apache2.4.18\bin


Wednesday, December 14, 2016

How to allow remote access to WAMP server

When i try to access WAMP from my mobile i got this error:

Forbidden You don't have permission to access / on this server


then i insert Require all granted into 2 files :

1. C:\wamp64\bin\apache\apache2.4.18\conf\httpd
       
DocumentRoot "C:/wamp/www"
<Directory />
    Options None
    AllowOverride None
   Require all granted
</Directory>

<Directory C:/wamp/www>
    Options None
    AllowOverride All
    Require all granted
</Directory>

2. C:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts

<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

3. Allow ports
    Controlpanel -- windows firewall -- advanced setting -- inbound rules -- ports -- all local or port 80