Wireless WiFi on Ubuntu 19.04 is incredibly slow compared to Windows 10

I just installed Ubuntu 19.04 fresh on a partition on my hard drive and am booted with Windows 10 dual. Under Windows 10, I did internet speed tests and got a download rate of 104 MB / s. Under Ubuntu (version 19.04) I only get 4mb / s. I am not sure if this is a driver issue or a bug with Ubuntu itself.
Please help me!

WiFi cards info:
lspeci-

00: 00.0 Host Bridge: Advanced Micro Devices, Inc. [AMD] Device 15d0
00: 00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 15d1
00: 01.0 host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe dummy host bridge
00: 01.2 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 15d3
00: 08.0 host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe dummy host bridge
00: 08.1 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 15db
00: 08.2 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 15dc
00: 14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (Rev. 61)
00: 14.3 ISA Bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (Version 51)
00: 18.0 host bridge: Advanced Micro Devices, Inc. [AMD] Device 15e8
00: 18.1 host bridge: Advanced Micro Devices, Inc. [AMD] Device 15e9
00: 18.2 host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ea
00: 18.3 host bridge: Advanced Micro Devices, Inc. [AMD] Device 15eb
00: 18.4 host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ec
00: 18.5 host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ed
00: 18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ee
00: 18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 15ef
01: 00.0 USB Controller: Advanced Micro Devices, Inc. [AMD] Device 43d5 (Rev. 01)
01: 00.1 SATA Controllers: Advanced Micro Devices, Inc. [AMD] Device 43c8 (Rev. 01)
01: 00.2 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 43c6 (Rev. 01)
02: 00.0 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (Rev. 01)
02: 04.0 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (Rev. 01)
02: 05.0 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (Rev. 01)
02: 06.0 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (Rev. 01)
02: 07.0 PCI Bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (Rev. 01)
04: 00.0 Network Controller: Realtek Semiconductor Co., Ltd. RTL8812AE 802.11ac PCIe Network Adapter (Version 01)
07: 00.0 Ethernet Controller: Realtek Semiconductor Co., Ltd. RTL8111 / 8168/8411 PCI Express Gigabit Ethernet Controller (Version 15)
08: 00.0 VGA-Compliant Controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c8)
08: 00.1 Audio Device: Advanced Micro Devices, Inc. [AMD/ATI] Device 15de
08: 00.2 Encryption Controller: Advanced Micro Devices, Inc. [AMD] Device 15df
08: 00.3 USB Controller: Advanced Micro Devices, Inc. [AMD] Device 15e0
08: 00.4 USB Controller: Advanced Micro Devices, Inc. [AMD] Device 15e1
08: 00.6 Audio Device: Advanced Micro Devices, Inc. [AMD] Device 15e3
09: 00.0 SATA Controller: Advanced Micro Devices, Inc. [AMD] FCH SATA controller [AHCI mode] (rev. 61)

sudo lshw -class network

*-Network
Description: Wireless interface
Product: RTL8812AE 802.11ac PCIe Wireless Network Adapter
Provider: Realtek Semiconductor Co., Ltd.
physical ID: 0
bus info: pci @ 0000: 04: 00.0
logical name: wlp4s0
Version: 01
Serial number: 18: 31: bf: c5: d8: 7d
Width: 64 bits
Clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
Configuration: Broadcast = Yes Driver = RTL8821ae Driver Version = 5.0.0-15-Generic Firmware = N / A IP = 192.168.1.5 Latency = 0 Link = Yes Multicast = Yes Wireless = IEEE 802.11
resources: irq: 57 ioport: e000 (size = 256) memory: fcd00000-fcd03fff
*-Network
Description: Ethernet interface
Product: RTL8111 / 8168/8411 PCI Express Gigabit Ethernet Controller
Provider: Realtek Semiconductor Co., Ltd.
physical ID: 0
bus info: pci @ 0000: 07: 00.0
logical name: enp7s0
Version: 15
Serial number: 40: b0: 76: 42: a8: 45
Size: 10Mbps
Capacity: 1 Gbps
Width: 64 bits
Clock: 33MHz
Capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
Configuration: Autonegotiation = On Broadcast = Yes Driver = R8169 Duplex = Half Firmware = RTL8168H-2_0.0.2 26.02.15 Latency = 0 Link = No Multicast = Yes Port = MII Speed ​​= 10Mbit / s
resources: irq: 35 ioport: d000 (size = 256) memory: fcc04000-fcc04fff memory: fcc00000-fcc03fff

Is the metric "New on Google" reliable compared to "Returning users"? How do I measure user loyalty?

I have a quick question about new or returning users.

I know that due to duplication, new and returning users usually can not count users and "users" can be considered a de-duplicated version. My question is – if I look at my data for every single month, the ratio between new and return is almost all over 30%: 80%. But if I look at my data from the creation of my website until today (that's 2 years), the ratio is 17%: 83%, that is NOT the average of two years. Why is the aggregate like this and if I do not look at the data over time, how do I know if the new and returning users are reliable at all? How can I track the loyalty of users? Do you have any other metrics that you recommend?

Many Thanks!!

What is the battery life of Apple's latest MacBook Air compared to the 2016 MacBook Pro?

apples 2016 MacBook Pro Intel Core i5 with 13 inches and 2.9 GHz, 8 GB and 512 GB SSD has always had a bad battery performance. If I'm lucky, it takes 4 to 5 hours, but more likely 3 to 4. Apple has replaced the battery twice. I also spent a lot of time with them to improve performance but without real luck.

The Previous The MacBook Pro model was a dream before it brought out the new, thinner design. The battery easily lasted 8/9 hours or longer. No problem. The new model fades away.

The touch bar annoying at best.

The latest MacBook Air looks like a potential successor. Technical specifications: 13 inches, 1.6GHz dual-core i5, 512GB, 16GB, 512GB SSD

Is the battery life much longer to justify an upgrade?

nosql – How do I calculate the number of database nodes compared to the number of required frontends?

I'm looking for a way to right Calculate the number of nodes I probably need in my cloud system.

I use Cassandra (NoSQL) and a C ++ frontend. Everything works. In the front ends, a new HTML page is generally created by querying the data in the Cassandra cluster. Most heavy work, such as calculating the reports, is done by a backend computer.

An obvious answer is: Run tests. I also think that this is an interesting approach, it seems to be difficult to get a 100% answer based on my own tests (which could be quite different from those) normal use.)

How do you normally calculate such requirements? Do you need to have an idea of ​​how many hits you make to the database by HTTP request? What if there is a CDN in between?

A perfect answer would be a short CV of a computer science work talking about the matter.

wordpress – number of files compared to applications

Use the GoDaddy Ultimate Linux Plan, which lists these features:

Details of the plan: Ultimate Hosting
2 CPU
1,024 MB RAM
250,000 files
140 entry-level processes

So far there are 7 WordPress applications installed.

(1) Version 5.1.1, 213.7 MB files, 4.9 MB database, 0 backups.

(2) Version 5.1.1, 303.6 MB files, 2.3 MB database, 0 backups.

(3) Version 5.1.1, 2419.2MB files, 25.3MB database, 1 backups.

(4) 5.1.1 version, 277.3 MB files, 1.6 MB database, 0 backups.

(5) Version 5.1.1, 181.5 MB files, 2.2 MB database, 0 backups.

(6) Version 5.1.1, 212 MB files, 4.8 MB database, 0 backups.

(7) Version 5.1.1, 212 MB files, 4.8 MB database, 0 backups.

cPanel shows:

file usage
248,160 / 250,000 (99.26%)

Is it possible to have 248,160 files with 7 WordPress applications of the above specifications? If not, how can I ensure that unnecessary files are removed.

The peak in the number of files may have appeared immediately after trying to install Magento under a WordPress application directory, which was unsuccessful. When I phoned the GoDaddy customer service, they tried to install Magento from their side. Later they were told that Magento was not installed due to the number of files allowed (2,50,000) and asked me to remove unwanted files from my site.

How can a Nikon D40x be compared to a modern mobile phone?

Bring both and then compare the results. You'll probably find that the answer is not as black and white as you would expect, and is very dependent on the subject and the scene. Compare also the output on the mobile screen, a good computer screen and possibly a few printouts.

One thing you should keep in mind is that cell phone cameras are trying to achieve the result you would achieve with a semi-professional camera and aggressive to process, Color saturation, noise reduction and sharpening even in "standard" mode modes (the "standard" profile of some phones is "more brutal" than the "vibrant" of many dedicated cameras).

The night-time photography performance of today's smartphones looks surprisingly good (if you do not have a VR-based and / or very fast lens on the Nikon), you'll probably be struggling with aggressive noise reduction when viewed on a monitor in full size.

Ease of Use – Multiple options compared to a user interface with an option

In the dashboard we create, there are two options that users can select:

Several options (checkboxes)
Enter the image description here

and individual options (behavior of radio buttons)
Enter the image description here

Although the components look similar, their uses are different.

In usability tests, users used these components without difficulty, or once they understood and understood the functionalities, they had no problem using them in the other parts of the product.

However, my design colleagues argued that the components should look different and users need to understand whether it's a check box or a radio button.

My goal was to maintain consistency and reduce cognitive load.

Any thoughts or input?

postgresql – How are transaction IDs compared in Postgres?

I'm trying to understand how to compare transaction IDs in Postgres

I have two questions

  1. Transaction IDs (XIDs) are represented in 32 bits. Therefore, a maximum of 4,294,967,296 XIDs can be used. Why is a wraparound possible with two billion XIDs?

  2. How are XIDs compared?

Note that there are only 3 bits to represent XIDs that allow the following values ​​for XID – 0,1,2,3,4,5,6,7.

Before a wraparound, XIDs can simply be compared to x <y.

However, after one round, say that the last XID was 7 and the next would be XID 1. How are these compared to determine that XID 1 is greater than XID 7 (to allow visibility of the line with xmin as 7)

During my research, I came across the following, but I do not know how the comparison works

From the Postgres documents

Normal XIDs are compared to modulo 2 ^ 32 arithmetic. This means that for every normal XID, two billion XIDs are "older" and two billion "newer". Another way to say is that the normal XID space is circular and has no endpoint

From a post by Tom Lane

Ordered comparisons on XIDs are no longer simply "x <y", but must be expressed as a macro. We consider x <y if (y – x)% WRAPLIMIT <WRAPLIMIT / 2.
This comparison works as long as the range of interesting XIDs
never exceeds WRAPLIMIT / 2