I need to solve this problem

Error MySQL said: Documentation

Cannot connect: invalid settings. mysqli_real_connect(): (HY000/1130): Host ‘localhost’ is not allowed to connect to this MariaDB server Connection for controluser as defined in your configuration failed. mysqli_real_connect(): (HY000/1130): Host ‘localhost’ is not allowed to connect to this MariaDB server phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. Retry to connect

NP problem algorithm that can solve more than normal algorithms,will it be P=NP for some cases or limiter?

assume that all algorithms can find optimum in problem like travel selesman problem for 25 cities which mean 25! possibility in polynomial time with using power of supercomputer then if there algorithm that can solve for 50 cities which mean 50! possibility with using power of supercomputer this mean it could to close range of many possibility to small number that could solve by like 25 cities

so what this algorithm mean ,p=np in limit of 50 cities, or just it can get answer under limit but it can not solve higher numbers like 100! although it could throw big number of possibility from 100!

I have 8Gb RAM, but the system report 6.8 Gb. How to solve it?

I have 8Gb RAM, but the system report 6.8 Gb and in bios, it’s says 8Gb. I don’t have any swap on it. I’m on Lubuntu 18.04 64bit.

img here

sudo lshw -C memory   *-firmware                        description: BIOS        vendor: AMI        physical id: 0        version: F.10        date: 05/17/2018        size: 64KiB        capacity: 15MiB        capabilities: pci upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi   *-memory        description: System Memory        physical id: 9        slot: System board or motherboard        size: 8GiB      *-bank:0           description: SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0,4 ns)           product: HMA81GS6AFR8N-UH           vendor: Hynix           physical id: 0           serial: 825AC392           slot: Bottom - Slot 1 (left)           size: 8GiB           width: 64 bits           clock: 2400MHz (0.4ns)      *-bank:1           description: SODIMM [empty]           product: Unknown           vendor: Unknown           physical id: 1           serial: Unknown           slot: Bottom - Slot 2 (right)   *-cache:0        description: L1 cache        physical id: b        slot: L1 - Cache        size: 192KiB        capacity: 192KiB        clock: 1GHz (1.0ns)        capabilities: pipeline-burst internal write-back unified        configuration: level=1   *-cache:1        description: L2 cache        physical id: c        slot: L2 - Cache        size: 1MiB        capacity: 1MiB        clock: 1GHz (1.0ns)        capabilities: pipeline-burst internal write-back unified        configuration: level=2   *-cache:2        description: L3 cache        physical id: d        slot: L3 - Cache        size: 4MiB        capacity: 4MiB        clock: 1GHz (1.0ns)        capabilities: pipeline-burst internal write-back unified        configuration: level=3 

How can I solve this problem using dynamic programming?

I’m stuck in this problem and I would need some help:

Given an array arr, in each step, 1, 2 or 5 units have to be incremented to all but one item of the array. The goal is to find the minimum number of steps to all items to be equal.

First example

arr = [1, 1, 5]

1) [1 (+2), 1 (+2), 5] = [3, 3, 5] 2) [3 (+2), 3 (+2), 5] = [5, 5, 5] 

Solution: 2 steps


Second example

arr = [2, 2, 3, 7]

1) [2 (+1), 2 (+1), 3, 7 (+1)] = [3, 3, 3, 8] 2) [3 (+5), 3 (+5), 3 (+5), 8] = [8, 8, 8, 8] 

Solution: 2 steps


I have tried some things but I’m really stuck.

I consider a base case when all items are already equal. In another case, I try to find all the possible solutions by incrementing 1, 2 and 5 to every item but one in the array:

def equal(arr):      if (allElementsIdentical(arr)):         return 0      min = sys.maxsize     for i in [1, 2, 5]:         for j in range(len(arr)):              #Increment all items by "i", except item at index "j"             newArr = arr.copy()             for k in range(j):                 newArr[k] += i             for k in range(j + 1, len(newArr)):                 newArr[k] += i              movements = 1 + equal(newArr)             if movements < min:                 min = movements     return min 

This solution doesn’t work because recursion never ends. E.g.

[1, 1, 5] -> [1, 2, 6] -> [1, 3, 7] -> [1, 4, 8] -> [1, 5, 9] -> ... 

Is it my initial approach correct? How can I break it down in subproblems?

How to Solve the Google Ads Problem In Ios?

step 1:I m Implement a google admob.this link:

https://developers.google.com/admob/unity/start

Step 2:when import this plugin in unity->build(ios)-> and implement in xcode then give an error:google mobileads.h not found.

i m trying this one: https://developers.google.com/admob/ios/download but error still not solved??

Referance:

enter image description here

GoogleMobileAds.h Not Found

enter image description here

I m surfacing this problem last 3 days what is issue in plugin??

How to solve the error with the proxy in React when working with Node?

From time to time when saving a project such an error occurs (this example actually occurs with different links):

Proxy error: Could not proxy request /api/games/handle/:handle from localhost:3000 to http://127.0.0.1:5000.

I have the following project structure:

- client -- package.json - server - package.json

Google prompted the decision to add the following under client / package.json:

"proxy": {     "/api": {       "target": "https://127.0.0.1:5000",       "secure": false     }   }, 

But it does not help, the problem still arises from time to time

How to solve this problem?

I use Kali linux 2019.2 In login page, after insert user and password, and hitting enter, top left of my screen shows a black and gray area; and after a few seconds problem will be solved and kali starts normally. my problem is that black and gray area. can anyone help me please? (excuse me for my English is not good.)

How to solve this problem?

I use Kali linux 2019.2 In login page, after insert user and password, and hitting enter, top left of my screen shows a black and gray area; and after a few seconds problem will be solved and kali starts normally. my problem is that black and gray area. can anyone help me please? (excuse me for my English is not good.)