Regular expression connecting and selecting from mysql database

I have just started with safeguard privileged passwords. And their documentation is next to none. All it says is I must make a regular expression. Now I am stumped.

I have one of 2 choices it looks like, and here I stand hat in hand asking advice.

Can you in PHP or MySQL create a regular expression to MySQL – host,database,user,pass, query or when using SugarCRM

http://link.to.sugar/login?user=ppp&pass=llll&case_number=123321

python – Connecting multiple TFMini sensors to Arduino uno

I need help getting each TFMini lidar sensor I have to measure distance, each sensor measure a different distance . I havea total of three sensors .

In this code when I run it and open the serial monitor it doesn’t measure any distance for me .It just print “” ALL distance in cm “” .

Thank you in advance here is the code.


#include<SoftwareSerial.h>
#include<TFMini.h>
#include "Talkie.h"
#include "Vocab_US_Large.h"
#include "Vocab_Special.h"
#include "Vocab_US_TI99.h"
#include "TalkieUtils.h"

//Declaring variables and constants
TFMini TFFront;
TFMini TFRight;
TFMini TFLeft;
Talkie voice;                   //PIN 3 is by default the output for the speaker
SoftwareSerial SRight (4,5);    //(RX, TX)
SoftwareSerial SFront (6,7);    //(RX, TX)
SoftwareSerial SLeft (8,9);     //(RX, TX)

int TFBaudRate = 115200;
int USBBaudRate = 9600;
uint16_t threshold_distance = 100;       //Threshold distance in "cm"; speak only when any object is nearer than this distance

void setup() 
{
  //Initializing Baud Rates
  Serial.begin (USBBaudRate);
  while(!Serial);                     //Wait for USB Serial Port to connect
  Serial.println("Starting ......");
  SFront.begin (TFBaudRate);
  delay(50);
  SRight.begin (TFBaudRate);
  delay(50);
  SLeft.begin (TFBaudRate);
  delay(50);

  //Initializing TFMini Sensors
  TFFront.begin(&SFront);
  delay(100);
  TFRight.begin(&SRight);
  delay(100);
  TFLeft.begin(&SLeft);
  delay(100);  
}

void loop() 
{ 
  uint16_t Distances(3)={0,0,0};  //Initializing a blank array to store the distances of each side in each iteration
  Serial.println("All distances are in cm");

  //Getting and storing the distance from each side
  Distances(0) = TFFront.getDistance();
  Serial.print ("Front distance: ");
  Serial.println (Distances(0));
  delay(50);
  Distances(1) = TFRight.getDistance();
  Serial.print ("Right distance: ");
  Serial.println (Distances(1));
  delay(50);
  Distances(2) = TFLeft.getDistance();
  Serial.print ("Left distance: ");
  Serial.println (Distances(2));
  delay(50);

  //Checking if another object is nearer than our set threshold and speaking
  if(Distances(0) < threshold_distance)    //Front Sensor
  {
    int dist_m0 = Distances(0)/100;
    voice.say(spt_SOME);
    voice.say(spt_THING);
    voice.say(spt_IN);
    voice.say(spt_FRONT);
    voice.say(sp2_AT);
    sayQFloat(&voice, dist_m0, 2, true, true);
    voice.say(sp2_METER);
    delay (100);
  }

  if(Distances(1) < threshold_distance)    //Right Sensor
  {
    int dist_m1 = Distances(1)/100;
    voice.say(spt_SOME);
    voice.say(spt_THING);
    voice.say(spt_ON);
    voice.say(spt_RIGHT);
    voice.say(sp2_AT);
    sayQFloat(&voice, dist_m1, 2, true, true);
    voice.say(sp2_METER);
    delay (100);
  }

  if(Distances(2) < threshold_distance)    //Left Sensor
  {
    int dist_m2 = Distances(2)/100;
    voice.say(spt_SOME);
    voice.say(spt_THING);
    voice.say(spt_ON);
    voice.say(spt_LEFT);
    voice.say(sp2_AT);
    sayQFloat(&voice, dist_m2, 2, true, true);
    voice.say(sp2_METER);
    delay (100);
  }  
}

dns – DNSMASQ set up – Connecting two computers over a Ethernet cable

I have an Host A where I have my VM running Kali and Host B, which is a Win computer.
I want to have Host A as the only one computer connected to the Internet, so Host B must pass through Host A via an Ethernet cable in order to connect.

Host A needs to also act as a DNS & DHCP server for Host B, so I’m trying to configure dnsmasq properly.

Host A is connected over the wlan0 interface on the 192.168.1.0 sub-network.
I have configured a static IP for the eth0 interface which will be responsible for acting as a DHCP server on the 192.168.2.0 sub-network.

Then I edited the /etc/network/interfaces file as follows:

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.2.1
        network 192.168.2.0
        netmask 255.255.255.0
        broadcast 192.168.2.255

auto wlan0
iface wlan0 inet dhcp

Here is my /etc/dnsmasq.conf configuration file:

interface=eth0
dhcp-range=192.168.2.100,192.168.2.200,24h
dhcp-leasefile=/var/lib/misc/dnsmasq.leases
dhcp-authoritative

Basically I want the DHCP server to lease IP addresses for the 192.168.2.0 network, the one that will connect via the Ethernet cable the two computers.

And here is my /etc/resolv.conf file:

nameserver 8.8.8.8
nameserver 8.8.4.4

At this point I created (and made it executable) the following file /etc/network/if-pre-up.d/router_firewall which is responsible to route the traffic from the 192.168.2.0 network to the 192.168.1.0 network (the one with the internet access):

#!/bin/bash
#
# script for source Network Address Translation using iptables
#

iptables -F
iptables -t nat -F
iptables -X

iptables -N val_input
iptables -N val_output

# allow packets with NEW, ESTABLISHED and RELATED states
iptables -A val_input -m state --state NEW,ESTABLISHED,RELATED -i lo -j RETURN
iptables -A val_output -m state --state NEW,ESTABLISHED,RELATED -o lo -j RETURN

iptables -A val_input -m state --state NEW,ESTABLISHED,RELATED -i eth0 -j RETURN
iptables -A val_output -m state --state NEW,ESTABLISHED,RELATED -o eth0 -j RETURN

iptables -A val_input -m state --state NEW,ESTABLISHED,RELATED -i wlan0 -j RETURN
iptables -A val_output -m state --state NEW,ESTABLISHED,RELATED -o wlan0 -j RETURN

iptables -A val_input -j DROP
iptables -A val_output -j DROP

iptables -A INPUT -p tcp -j val_input
iptables -A OUTPUT -p tcp -j val_output

iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

At this point I have checked the configurations file for days and I cannot understand why it is not working. When I connect the two computers via cable (cross over one), the win computer is not getting the IP from the eth0 interface of the Kali machine.

Note:

  1. The Win machine is configured to get automatically an IP from DHCP.
  2. The dnsmasq service is enabled and running.
  3. IP forwarding is enabled

Really hope someone can help here!

Connecting SharePoint Designer 2013 SP1 to SP 2016 with claims authentication

We have an issue present in multiple environments, Where SharePoint Designer 2013 (with SP1 update) does not properly connect to any SharePoint web application using claims authentication.

The example I’ll give is that we have 2 side-by-side environments consisting of a current PROD 2013 farm and a 2016 environment that content is being migrated to. Both environments are setup the same way using Azure AD Enterprise Applications for SSO. When connecting to the 2013 environment using SharePoint Designer 2013 SP1, we get the popup window for the Azure AD login screen. Once credentials are entered, the box disappears and the site loads. In SharePoint 2016, The popup for authentication pops up, and once credentials are entered, that box stays on screen with site content displayed. Closing the popup dialog manually intermittently results in an error message that site could not be opened. It just seems like authentication is not completing enough to trigger the window to close. After that sometimes content is available in SPD, and sometimes not. Additionally, sometimes reopening SharePoint designer and loading the site from the sites menu works without issue.

Has anyone else run into this, and if so, any known workarounds? Connecting using Windows authentication in default zone is not permitted.

One final thing… I also have a 2016 environment authenticating with ADFS doing the same thing.

Utron- An Ultimate Advanced Technology Connecting Defi & Mining – Cryptocurrencies Corner

UTRON DeFi — The Interoperable DeFi liquid yield generator, interconnecting industrial mining capabilities with next-generation decentralized finance solutions.

UTRON and our future user-friendly ecosystem contribute to the adoption of mining and staking cryptocurrencies with next generation decentralized finance solutions. Blockchain & Decentralized technologies allow us to make a transparent and efficient environment for any users to join and earn in the crypto mining & staking.

Read more at https://coinpedia.org/news/utron-defi-connecting-defi-mining/

 

networking – Add route after connecting to Windows L2TP VPN

I have a basic TP-Link router that has a VPN server built into it at home. I have set up the L2TP VPN server and successfully connected to it with my Windows 10 client. I only want to route traffic over the VPN that is destined for the remote network, so I have unticked the ‘Use default gateway on remote network’ tickbox and added a route to the remote network manually using the ‘route add’ command in CMD. After doing this I am able to communicate with devices on that network.

My question is, how can I set this up to automatically add the route after connecting to the VPN? Since the VPN client IP changes dynamically the route may not always be the same. I’ve seen people posting about being able to do this with a batch script, but haven’t been able to find any clear examples.

Is anyone able to advise how best to do this?

wi fi – kindle not connecting to wi-fi

Whenever I am trying to connect my kindle to wi-fi it shows no internet found. Once my kindle got discharged to 0. So is that the reason why my tablet is not able to find any internet. If no, then why my tab is not able to find any internet? And if yes, then what should I do so that it finds wi-fi again.

transit – During covid, can a filipino citizen allowed to have a connecting flight from japan to india?

Im a filipino citizen with business visa travelling to india as my final distination but with stop over in japan through a connecting flight. I heard many restrictions between countries to countries during covid in airports, my question is’ can a filipino citizen are allowed to have a connecting flight from japan to india during covid 19′? Right now there are no direct flights from Philippines to india and still negotiating the air bubble arrangement between 2 countries,
thank you.

applications – Some apps not connecting to interent on galazy s6

so I have a Galaxy S6 that is driving me nuts! I keep getting a ‘cannot connect to a network’ error on some apps. But it is only some apps.

As a (terrible) example my phone will run the McDonald’s app perfectly fine but the Taco Bell app tells me it can’t connect to the internet.

My spouse has the same phone and it is perfectly capable of running both the mcdonalds and the taco bell app!

Any ideas about why my phnoe hates taco bell? I’ve tried messing around with the settings but I can’t solve this problem! Thanks!

linux – Connecting to local fileserver on Fedora 32 fails in Thunar

I’m setting up a new install of Fedora 32 and I’m trying to get Samba running so I can access my local file server, which I’ve had no problems with on my previous ubuntu install.

I’ve gone through a few Fedora-specific tutorials with no luck, to the end of even installing Samba server, thinking it might cover whatever is making Thunar refuse to connect to the file server.

Once I set up a samba share, ‘LOCALHOST’ shows up in Thunar, but I get the same error as I do attempting to connect to the file server – specifically, “The specified location is not supported”

Not sure where to go looking for targeted troubleshooting since I’m pretty new to Fedora. Any suggestions or good links to digest?