Is it possible to retrieve the incoming call number in my Android app

I want to retrieve the cell phone number that arrives on my cell phone before my cell phone starts ringing, so my question: is this possible? if so how can i do this?

Indian citizens – why didn't India stop all incoming flights in early February 2020 to prevent COVID-19 infections?

Everyone agrees that COVID-19 is not from India and comes from international travelers. Why didn't India ban incoming flights in early February 2020 until the virus problem is resolved? Is there an international travel rule that prohibits a country from denying entry to its own citizens?

notifications – Mi A2 Lite (Android 9): How to keep the phone on mute, except for incoming calls?

I usually keep my phone on mute, so I don't get notification sounds all the time. The problem is, I don't know when someone is calling me, because I don't receive any audio notification. What I would like to do is keep my phone on mute for everything except incoming phone calls.

I went through my settings and I got to a point where my phone is no longer muted, and the notification sounds are set to "None". It seems to be working as I would like, except that Messenger (and probably some other apps) always emits a notification sound, as they have their own settings and another notification sound (which I can't change to "None").

Is it a way to achieve what I want?

PS: On my previous phones, it was always as easy to do. I don't understand why Android (or Xiaomi) decided to cancel this useful feature.

Fixed a very small font in Mail.app for some incoming emails?

The context

i use macOS Catalina (10.15.3), but this problem exists for at least 5 years in the integrated messaging application (Mail.app).

The problem

Mail.app in macOS seems to display some incoming mail & # 39; much smaller fonts that they are only supposed to be shown. In any other mail client on Windows, these messages appear completely normal and the font size is clearly readable. Usually this applies to personal emails in RichText or HTML format, which have no particularly stylish text other than bold or colored text. It does not apply to newsletters and most emails generated by online stores, etc.

font on the body of the mail in very small

Workarounds

  1. A way of screed with this problem is to press repeatedly CTRL+to increase the font size. But, as soon as you switch to another email, the size is reset to the default (which in turn is the correct behavior). When you open the same email again, you need to increase the font size again. It is mentioned in Mail from AOL, font to small Fix? (5 year question with no real answer).
  2. You can increase the overall font size of emails in settings (Fonts and colors> Font for email). However, this will also increase the subject font size, headers and other text that is displayed in the preview pane for all emails, and it just looks awful.
    Font set to Arial 18

  3. (Not tested) It may be possible to apply an AppleScript which amended the content of the email. It is mentioned in Replace font in incoming mail (mail.app). I can't even think it will succeed. It could be a huge security issue.

Does not work (or no longer)

Possible reason

Looking at the source of these problematic emails, I can see a lot of tags, especially parts like this, where the size="2" could be the problem:

Ich danke dir!

Previously, it was possible (somehow) to solve this problem by modifying /Applications/Mail.app/Contents/Resources/Message.css. This file no longer exists.

Some references to this problem on other sites

This problem seems been around for years and has not been processed properly by Apple. For me it's always most frustrating problem after switching to the Mac from a Windows PC. Any help is appreciated!

linux – SNAT and DNAT iptables on the same incoming packet

Is it possible to SNAT and DNAT on the same incoming packet?

iptables -t nat -A PREROUTING -d  --dport  -j SNAT --to 
iptables -t nat -A PREROUTING -d  --dport  -J DNAT --to 

Do the above rules cling and dnat the same package? if not, what is the way to achieve it. An example would be very useful. Thank you!

postgresql 9.5 – How to monitor incoming streaming replication on a standby server using version 9.5?

We have a PostgreSQL cluster running version 9.5. I know version 9.6 would support view pg_stat_wal_receiver which included the information I was looking for.

Is there a way to check if the streaming mode is still active when I have a database connection open to the standby server only? The situation I am trying to detect is the case where the server already complains about connecting along the lines

FATAL:  the database system is starting up
LOG:  entering standby mode
LOG:  redo starts at 0/2000028
LOG:  consistent recovery state reached at 0/20000F8
LOG:  database system is ready to accept read only connections
LOG:  started streaming WAL from primary at 0/3000000 on timeline 1
LOG:  replication terminated by primary server
DETAIL:  End of WAL reached on timeline 1 at 0/4000098.
FATAL:  could not send end-of-streaming message to primary: no COPY in progress

Streaming replication can obviously fail in several ways, so I'm looking for a generic way to identify from connection to the standby server that the data is out of date even if I can run queries against it.

I am trying to avoid connecting the master server as I am using read-only copies to reduce the load on the master. If I have to contact the master to find out if the sleep mode is usable, the load will increase again.

aws – Fix incoming rules for PostgreSQl on RDS and EBS instances

I am very new to AWS and its security policies. I have two similar projects which each contain a postgreSQl database on RDS and an EC2 instance of the js node. The problem is from time to time, PGadmin (displays a timeout error) as well as Rest Client (continues to load) stop connecting to them and I have to configure the incoming rules which I don't know much about.

Here are the rules that I have currently defined:

  1. For the Beanstalk instance

enter description of image here

  1. To access the database
    enter description of image here

Access to the database has been set on my IP at the moment which I change daily to connect. What might be the best way to configure incoming rules. Because now my Android app hangs because it can't access it.

linux – VPN client is unable to establish connection with VPN server when server firewall does not allow incoming OpenSSH connections

I have configured an OpenVPN server and an OpenVPN client.

The problem is that the client can only establish a connection when the server firewall allows incoming OpenSSH connections.

These are the server firewall rules when the client East able to establish a connection.

$ ufw status verbose

To                         Action      From                  
--                         ------      ----                  
22/tcp (OpenSSH)           ALLOW IN    Anywhere              // <---
Anywhere on eth0           ALLOW IN    1194/udp              
Anywhere on tun0           ALLOW IN    Anywhere              
22/tcp (OpenSSH (v6))      ALLOW IN    Anywhere (v6)         // <---
Anywhere (v6) on eth0      ALLOW IN    1194/udp (v6)         
Anywhere (v6) on tun0      ALLOW IN    Anywhere (v6)         

Anywhere                   ALLOW OUT   1194/udp on eth0      
Anywhere                   ALLOW OUT   Anywhere on tun0      
Anywhere (v6)              ALLOW OUT   1194/udp (v6) on eth0 
Anywhere (v6)              ALLOW OUT   Anywhere (v6) on tun0 

After running ufw delete allow OpenSSH on the server, the client is not able to establish VPN connection

This is the log output that we receive when the client is unable to establish a connection.

$ sudo openvpn --config /etc/openvpn/client.conf

...

OpenVPN 2.4.4 x86_64-pc-linux-gnu (SSL (OpenSSL)) (LZO) (LZ4) (EPOLL) (PKCS11) (MH/PKTINFO) (AEAD) built on May 14 2019
library versions: OpenSSL 1.1.1  11 Sep 2018, LZO 2.08
Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Control Channel MTU parms ( L:1621 D:1184 EF:66 EB:0 ET:0 EL:3 )
Data Channel MTU parms ( L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 )
Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1557,tun-mtu 1500,proto UDPv4,keydir 1,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-client'
Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1557,tun-mtu 1500,proto UDPv4,keydir 0,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-server'
TCP/UDP: Preserving recently used remote address: (AF_INET)xxx.xxx.xxx.xxx:1194
Socket Buffers: R=(212992->212992) S=(212992->212992)
UDP link local: (not bound)
UDP link remote: (AF_INET)xxx.xxx.xxx.xxx:1194

How, if at all, can a client establish an OpenVPN connection when the VPN server does not allow incoming OpenSSH connections?

Incoming emails to All Mail

My inbox receives the mail as it should, but it is also sent to All messages.
Before, I had to archive an email to send it to All Mail.
THANK YOU

nlp – What should I look for to analyze incoming emails as a DataScientist?

I currently work as a DataScientist in a large company, which means that we have a lot of emails arriving every day and we would like to be able to classify them as precisely as possible.

The amount of data is not a problem at all. I can extract as many emails as I want.

I don't really know where to start and I have never worked on nlp issues, so I was wondering what ideas or techniques you would suggest.

I am interested either in ideas to analyze the data I have but also in models that I could offer.
I don't want to go too far into the details of where I work for privacy reasons, but maybe I could answer some of your questions!

thank you so much