What is solution for automatic battery draining?

I’m using Asus Zenfone Max Pro M2.
Running on pie.

It has 5000 mah battery.
It should long last upto two days.

But hardly getting one day battery backup.
Even for minimal use.

And battery draining auto when phone is not in use.

I used Twitter for 13 minutes after fully charged and that eaten 2 percent battery quickly.

My phone is new two months old and updated to latest firmware.

I performed hard reset thrice but nothing happen.

Third party app I won’t install and not satisfied if I need to install app like greenify.

Note : I know it is bug by Asus so if there has a solution I could fix myself.

So what is solution for battery draining?

Generate automatic URL alias removing words

I’m trying to create a topic page for “internet of things”, but each time I create the page I notice the URL slug removes the word “of” in it. By default Generate automatic URL alias is checked. The only solution I have found is to uncheck the Generate automatic URL alias option and giving custom url alias. This is a problem since we have alot pages and it’s difficult to update it manually. (Some people who make these pages don’t have permission to open drupal and push changes from our website). We also run into an issue with symbols # or + or character ‘a’.This is restricting the SEO for pages like C#

How to make a automatic ubuntu iso?

I am using Ubuntu ,I don’t want any interoperation and keystrokes, how to make an automatically ISO image? For example, I want the option “Try Ubuntu” will be selected automatically, in other word, set it as the default value. Maybe, I need change some files in the ISO image….?

enter image description here Please check the following image

enter image description here

Automatic testing with Windows 10 Eclipse JUnit 5 of code that runs in WSL Ubuntu 16.04?


Context

In order to write integration tests that verify whether running a compiled project.jar file yields the desired results, I thought of doing:

  1. Execute a J-unit test that substitutes certain files with test files
  2. Runs the Main of the project.
  3. AssertTrue on certain output file modifications.

However the main is written to be compiled in eclipse, and opened/ran manually from WSL Ubuntu 18.04. So running main from eclipse in windows will not work (It manipulates environment variables and uses input/output piping for several commands that are run in WSL Ubuntu 18.04 so emulating the behavior of WSL for Java testing becomes significantly more difficult than the entire project itself).

Approach 0.

I run the test but do not run the main from the test. Then I manually compile the project, then I manually open up WSL Ubuntu 18.04, then I manually run the java -jar project.jar file.` And then manually inspect the output files.

Approach 1.

  1. I will look up how I can auto-compile a project while running the project.
  2. After reading https://stackoverflow.com/questions/50108739/how-do-i-sequentially-execute-wsl-commands-from-java and https://www.brianketelsen.com/getting-crazy-with-windows-subsystem-for-linux/ I am researching how I can open the WSL Ubuntu 18.04 terminal from java.
  3. I need to find a solution to grasp/maintain control over that launched instance of the WSL Ubuntu 18.04 terminal, so that the test method can execute commands and read the output files from within that instance, since windows is not able to access those output files.

Question

What would be a better/the preferred strategy to test this project?

Is there a SIMPLE (= one click on 1st open page) block for automatic translation in Google?

So, one has to EACH TIME when opening Google go to option to block automatic page translation? Also, each new open page is translated again after a previous page was reset to the original language. Why can’t this be an easy click at the top of the page? Or am I missing something. Thanks for anybody coming with a “one click on 1st open page solution”, and not the 4-5 clicks and checks at each Google opening (and yes, I clear History frequently, as recommended by most computer protection professionals).

Setting a time interval for an automatic message

I have a form where a user needs to set how often and at what time a certain report is send from the system. The report is created and sent automatically. In the current system the form looks like this; enter image description here The time interval means that the report is sent every 60 seconds. Time offset means the offset from an equal minute. With the values in the image, the report would be send at 10:00:15, 10:01,15, 10:02:15, etc. If the offset would be 0, the report would be send at 10:00:00, 10:01:00, and so on.

This design is quite difficult to understand. What would be a better to tell the user what the time interval and offset mean? Should I add examples? The use case here is that usually send interval is at an equal minute mark, but sometimes the offset is needed. Furthermore, there might be rare cases where one would want to send the report, for example at every 45 seconds.

Automatic, immediate, no-prompt update installation?

I currently maintain four different installations of Ubuntu Desktop and Pop!_OS (3 and 1, respectively) around my house on various devices. Because of the frequency of package updates, I find myself greeted with “updates are available” pop-ups on one or more desktops on an almost daily basis, which is tedious. Also, I like the idea of having updates automatically applied as soon as available – especially for desktops.

So for those two reasons, I decided to find a way to configure automatic, immediate, no-prompt update installations on all desktops.

  1. I started with the respective Update GUIs on both desktops, but neither offered that feature – only configure of sources and such.

  2. I then did some googling and learned about the “unattended-upgrades” package which is apparently the intended tool for this exact task. I followed the instructions in this article on one desktop as a trial:

    How to set up automatic updates on Ubuntu Server 18.04

It’s been over a week, and I’ve seen no effects. I am still greeted in the morning an “updates available” dialog, and I still have to manually intervene in order to facilitate the installation.

So is there a better way to accomplish this than sticking apt-get update && apt-get -y upgrade in root’s daily cron like a damn caveman?