Server Setup First, you need to update your system and install necessary packages to your system. To update the system and install the SSH server on the server machine, run the following command: sudo apt-get update sudo apt-get install open ssh-server Second, install Git on …
Uncategorized
Restrict access to phpMyAdmin by IP
Under an Ubuntu system phpMyAdmin adds an Apache vhost that makes it publically available at http://yoursite.com/phpmyadmin . By accessing http://yoursite.com/phpmyadmin have maximum chances to get hacked your database. Under Ubuntu, the phpMyAdmin apache conf file is located at: /etc/apache2/conf-available/phpmyadmin.conf Simply add the following order, allow, deny directives …
Common memory leaks and how to fix them
1. Fix your contexts: Try using the appropriate context: For example since a Toast can be seen in many activities instead of in just one, use getApplicationContext() for toasts, and since services can keep running even though an activity has ended start a service with: …
Get orientation from video or thumb obtained with AVAssetImageGenerator
Solution: Need to add following line under above method generator.appliesPreferredTrackTransform=true
Avocode can make developer work easy
How can Avocode help Developer? You can open and inspect Photoshop/Sketch designs without Photoshop or Sketch at all. Or you can export image assets, copy text and CSS, grab colors, gradients and fonts information, measure distances between elements, and save optimized image assets for production. …