Posts

Showing posts from September, 2020

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:36:5-205:19 to override.

  Put these flags in your  gradle.properties android.enableJetifier = true android.useAndroidX = true

after update of my android package name change DataBindingUtil.setContentView returns null

Build > Clean Project go to your  Build.gradle (Module)  and  disable databinding : android { dataBinding { enabled = false } } File > Sync Project with Gradle Files Build > Rebuild Project  (no surprise: you'll get a ton of error messages) Now  enable databinding  again: android { dataBinding { enabled = true } } File > Sync Project with Gradle Files Build > Rebuild Project

How do I enable/disable a website hosted with Apache

  Hey, To enable or disable a site hosted with Apache, you can use the 'a2ensite' and 'a2dissite' commands, respectively. Both commands use essentially the same syntax: a2ensite <site> a2dissite <site> where '<site>' is the name of your site's Virtual Host configuration file, located in '/etc/apache2/sites-available/', minus the '.conf' extension. For example, if your site's Virtual Host configuration file is called 'example.com.conf', then the commands would look like</site> a2ensite example.com a2dissite example.com There are other, more complicated ways to do this, but these commands basically just automate those processes anyway, so my advice is to use these commands to ensure that everything is always configured correctly. Also, remember to restart Apache after running those commands. The exact command will depend on which Linux distribution you are using, but will most likely be one of the following 2...

How to Safely Delete Files and Directories Using Linux Command Line

  In this tutorial we can check how to safely delete files and directories using Linux Command line To remove a file or directory in Linux, we can use the rm command or unlink command. The rm command removes each specified file. By default, it does not remove directories. Also, it does not work on directories that contain files. The rm command (short for remove) is a Unix / Linux command which is used to delete files from a file system. Usually, on most filesystems, deleting a file requires write permission on the parent directory (and execute permission, in order to enter the directory in the first place). Also, be careful with the rm command because it does not ask you for confirmation when deleting files. Be sure you really want to delete your files before you use  rm , because once the files are gone, they’re not coming back. The multi-user nature of Linux does not allow for file recovery as in DOS. As soon as you let go of the space occupied by a file, the operating syste...

How To Secure Apache with Let's Encrypt on Ubuntu 18.04

follow this link ... https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04  

creata sublink for your project from sites-available to sites-enabled in ubuntu server

creata sublink for your project from sites-available to sites-enabled FOR NGINX:- sudo ln -s /etc/nginx/sites-available/"project name"  /etc/nginx/sites-enabled FOR APACHE2:- sudo a2site "project name"

Changing host permissions for MySQL USERS

  If you've got access to the   mysql   database, you can change the grant tables directly: UPDATE mysql.user SET Host='%' WHERE Host='localhost' AND User='username'; ...and an analogous  UPDATE -statement to change it back. Also you might need to make changes to the  mysql.db  table as well: UPDATE mysql.db SET Host='%' WHERE Host='localhost' AND User='username'; and then flush to apply the privileges: FLUSH PRIVILEGES;

static file does not load in nginx on ubuntu server

Nginx serve static file and got 403 forbidden  Just want to help somebody out. yes ,you just want to serve static file using nginx, and you got everything right in   nginx.conf : location /static { autoindex on; #root /root/downloads/boxes/; alias /root/downloads/boxes/; } But , in the end , you failed. You got "403 forbidden" from browser... ---------------------------------------- The Answer Below: ---------------------------------------- The Solution is very Simple: Way 1 : Run nginx as the user as the '/root/downloads/boxes/' owner In  nginx.conf  : #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; YES, in the first line " #user noboy; " , just delete " # " , and change " nobody " to your own username in Linux/OS X, i.e change to " root " for test. The restart nginx. reference by -https://stackoverflow.com/questions/16808813/nginx-serve-static-file...

Django Server Error: port is already in use

Just type this on your terminal killall - 9 python3 It will kill all python3 running on your machine and it will free your all port. Greatly help me when to work in  Django  project. OR kill - 9 PID // here pid is port id

Install and Use PHP Composer on Ubuntu

  PHP Composer   is a package management system for PHP which prevents users from having to "reinvent the wheel" when it comes to commonly-used website components like user authentication or database management. Composer is modeled on other popular package management systems like Ruby's Bundler. Note:  For any Cloud Server with Plesk, applications like PHP Composer should always be installed and managed through the Plesk interface. Composer vs PEAR PEAR was the first substantial package management system for PHP. However, PEAR has fallen out of favor with developers in recent years. Due to the difficult process of getting packages approved for inclusion with PEAR, many of the packages available through PEAR are out of date. PEAR also requires users to install packages system-wide, whereas Composer allows you to install packages either system-wide or on a per-project basis. Composer also tends to be better at handling dependencies, has a wider and more up-to-date codebase,...