7-Views - Developers Blog

Reverse Geocoding – Get formatted address from latitude and longitude

Posted by
July 3, 2020

<script> function getmylocation(lat, lng) { var currAddress, addtress= []; var geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(lat, lng); if (geocoder) { geocoder.geocode({‘latLng’: latlng}, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { if (results[0]) { currAddress = results[0].formatted_address; addtress.push(currAddress ); } else { alert(‘No results found’); } } else { alert(‘Geocoder failed due […]

read more

MySQL – UPDATE query with LIMIT

Posted by
July 24, 2019

Many a times there are certain conditions where ou want to update your records with certain limit attached to it. To update multiple rows using limit in MySQL can be implement by a query: UPDATE table_name SET field=’1′ WHERE id IN (SELECT id FROM (SELECT id FROM table_name LIMIT 0, 10) tmp);  

read more

Add multiple TXT record on Route53

Posted by
July 23, 2019

You want to set up TXT record for both Amazon SES and Mailgun? Currently TXT record for my domain example.com looks like this: TXT example.com.=”amazonses:GQxg09o5paN/HJqx2rOIXbEOQuOyOqcH” and you want to add Mailgun SPF record: TXT example.com.=”v=spf1 include:mailgun.org ~all” then you need to add multiple TXT record on Route53: Fot that, In “Value” text field paste the […]

read more

Changing File Permissions

Posted by
July 23, 2019

On computer file systems, different files and directories have permissions that specify who and what can read, write, modify and access them. This is important because WordPress may need access to write to files in your wp-content directory to enable certain functions. Permission Modes 7 5 5 user group world r+w+x r+x r+x 4+2+1 4+0+1 4+0+1 = 755 The […]

read more