Are Nitrile Gloves Food Safe?

Are nitrile gloves food safe? What exactly will be better to use in restaurant business?

memory – Is it safe to use RAM with damaged capacitor?

While inserting a new DDR4 RAM module to second slot of my laptop, I broke one of the capacitors (see image).

RAM with broken capacitor

To my surprise, my Windows 10 started normally indicating that new RAM is available (24 GB in total). It seems to work normally. I’m running Memtest by HCI Design with full RAM coverage and it seems to report no errors yet (30% work done).

Is it safe to use such broken RAM? May it somehow break my hardware or software?

My Hawaii “Safe Travels” COVID test is still stuck in “Verification in Process”. Is this a problem?

No, its not a problem. I’ve arrived in Hawaii with a “Verification in Process” test and was allowed to exit the airport without issues. From speaking to other people who have recently traveled to Hawaii, this is normal – they probably verify the test, but fail to update the portal with the right status.

How to loop throug a database table, to safe every column as a single node?

I have a module, which load company data from external db, to save this as content.

function example_create_nodes() {
// Get Data from external DATABASE
  db_set_active('db_wirdfit');
  $result = db_query('SELECT * FROM wirdfit.wirdfit_data');
  db_set_active();

 foreach ($result as $row) {
  $node->language = LANGUAGE_NONE;
  $node->type = "page";
  $node->title = $row->post_title;
  node_object_prepare($node);  //Set some default values

 // Try to set your custom field
  $node->field_id($node->language)(0)('value') = $row->id;
  $node->field_post_content($node->language)(0)('value') = $row->post_content;
  $node->field_post_author($node->language)(0)('value') = $row->post_author;

  $node->date = 'complaint_post_date';
  $node->created = strtotime('complaint_post_date');

  $path = 'content/mytest-' . date('YmdHis');
  $node->path = array('alias' => $path);
  print_r($row);
  node_save($node);

  }

Thats works but saved only one node from the the last row of my table.
How can i loop throug the table and save every row as a single content page.

Thanks for help

is ufo vpn is safe

There are many VPNs to promote their services. carefully choose the service you are using whether it is paid or free. so I will tell you that VPNs which are really amazing bandwidth and speed. Basically, the purpose of a VPN is not to “hide” your true location or your IP address. The purpose of a VPN is to provide a secure connection to a private network so my opinion is that ufo VPN is the best VPN because of

the amazing speed.

Features:-

Connecting to a secure Wi-Fi hotspot.

Switching countries with just one tap

Surf online safely and keep anonymous

Speedup all websites and apps

Watch streaming contents

No logs, no monitoring

Support for 5 devices

Multiple protocols

Stream Online TV Show

Mobile Games Friendly

VPN servers worldwide

Is it safe to plug a power USB C hub on Desktop PC?

My situation is, if I have a USB C hub which I am connecting to my desktop PC and the hub is trying to support many devices all drawing power. As USB C ports typically only supply a low power from the bus, devices seem to be having power issues as they are together all demanding too much from the otherwise unpowered hub so are intermittently connecting, so my question is:

Is it safe to connect this hub to a power source and connect that to the PC which has its own power source?

My feeling is this would be fine, and the standard has considered this. The hub itself should be clever enough to know to ask for power, and the motherboard too should be smart enough to prevent power from coming from the hub, but I would like to be sure before I plug something in and then smell smoke. As a follow up, is there any limit to the power supply you can use, eg, can I use a 65W power supply for a laptop? If it’s device dependent, what information should I be looking up, i.e. what’s the correct terminology?

Thread Safe Python Client Server Service

I had like to get some feedback about my Thread Safe Python Client-Server example.
Is it really thead-safe?
Do you see any dead-locks or other thread problems?

# Server
import socket
import sys
import threading
import select

class ServerConnection():

    def __clientThread(self, callback, connection, client_address):
        try:
            inputs = ( connection )
            outputs = ( )
            timeout = 1
            while self.startClient:
                readable, writable, exceptional = select.select(inputs, outputs, inputs, timeout)
                if not ((readable or writable or exceptional)):
                    if (not self.startClient):
                        break
                    continue

                if (not self.startClient):
                    break

                for sock in readable:
                    data = sock.recv(16)
                    if (data):
                        callback(client_address, data)
        except Exception as e:
            print ('Server: ', e)
        finally:
            print("Exiting Client Thread")

    def __listenerThread(self, callback, numOfAllowedConnections):
        try:
            self.sock.settimeout(0)
            self.sock.setblocking(0)
            self.sock.listen(numOfAllowedConnections)
            print ('Server: Waiting for a connection...')
            read_list = (self.sock)
            timeout = 1
            while self.startListener:
                readable, writable, exceptional = select.select(read_list, (), (), timeout)
                if not ((readable or writable or exceptional)):
                    if (not self.startListener):
                        break
                    continue

                connection = None
                connection, client_address = self.sock.accept()
                connection.setblocking(0)
                self.mutex.acquire()
                if (self.startListener and connection):
                    self.connections.append(connection)
                    print ('nServer: client connected:', client_address)
                    t = threading.Thread( target=self.__clientThread, args=(callback, connection, client_address) )
                    self._connectionThreads.append(t)
                    t.start()
                self.mutex.release()
        except Exception as e:
            print (e)
            self.Close()
        finally:
            print("Exiting Listener Thread")

    def __init__(self):
        self._listenerThread = None
        self.connections = ()
        self._connectionThreads = ()
        self.mutex = threading.Lock()
        self.sock = None
        self.callback = None
        self.numOfAllowedConnections = None

    def Open(self, ip, port, callback, numOfAllowedConnections):
        try:
            self.mutex.acquire()
            if (self.sock):
                return False

            self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            self.callback = callback
            self.numOfAllowedConnections = numOfAllowedConnections
            server_address = (ip, port)
            self.sock.bind(server_address)
            print ('Creating socket on %s port %s' % self.sock.getsockname())
            self.startListener = True
            self.startClient = True
            self._listenerThread = threading.Thread( target=self.__listenerThread, args=(self.callback, self.numOfAllowedConnections, ) )
            self._listenerThread.start()
            return True
        finally:
            self.mutex.release()

    def Close(self):
        self.mutex.acquire()
        try:
            if (self.startListener == False):
                return False

            self.startListener = False
            if (self._listenerThread):
                try:
                    self._listenerThread.join(3)
                except Exception as e:
                    pass

            self.startClient = False
            try:
                for connection in self.connections:
                    connection.close()
            except Exception as e:
                pass
            self.connections = ()

            for t in self._connectionThreads:
                try:
                    t.join(3)
                except Exception as e:
                    pass

            self._connectionThreads = ()
        finally:
            self.mutex.release()
            return True

    def SendDataAll(self, data):
        try:
            self.mutex.acquire()
            print ('Server: sending "%s"' % data)
            for connection in self.connections:
                connection.sendall(data)
            return True
        except Exception as e:
            print(e)
            return False
        finally:
            self.mutex.release()

    def SendData(self, con, data):
        try:
            self.mutex.acquire()
            if con in self.connections:
                print (con.getpeername(), 'Server: sending "%s"' % data)
                con.sendall(data)
            return True
        except Exception as e:
            print(e)
            return False
        finally:
            self.mutex.release()

    def GetNumOfConnections(self):
        try:
            self.mutex.acquire()
            numOfCon = len(self.connections)
            return numOfCon
        finally:
            self.mutex.release()

    def GetConnection(self, index):
        try:
            conn = None
            self.mutex.acquire()
            conn = self.connections(index)
            return conn
        except IndexError:
            pass
        finally:
            self.mutex.release()


def cb(client_address, data):
    print (client_address, 'server received "%s"' % data)
    pass

def main():
    import sys
    serverConnection = ServerConnection()
    serverConnection.Open('localhost', 5000, cb, 3)

    print("nPress Enter to continue...n")
    sys.stdin.flush()
    sys.stdin.read(1)

    serverConnection.SendDataAll(bytes("Itay3", encoding='utf8'))

    numOfCon = serverConnection.GetNumOfConnections()
    print ("nConnections: ", numOfCon)
    con = None
    if (numOfCon > 0):
        con = serverConnection.GetConnection(0)
    if (con):
        serverConnection.SendData(con, bytes("Itay4", encoding='utf8'))


    print("nPress Enter to Exit...n")
    sys.stdin.flush()
    sys.stdin.read(1)

    serverConnection.Close()
    pass

if __name__ == "__main__":
    main()


# Client
import socket
import sys
import threading
import select

class ClientConnection():

    def __init__(self, ip, port, callback):
        self.mutex = threading.Lock()
        self.sock = None
        self.ip = ip
        self.port = port
        self.callback = callback
        self.clientThread = None
        self.connect = False

    def __clientThread(self):
        try:
            inputs = ( self.sock )
            outputs = ( )
            timeout = 1
            while self.connect:
                readable, writable, exceptional = select.select(inputs, outputs, inputs, timeout)
                if not ((readable or writable or exceptional)):
                    if (not self.connect):
                        break
                    continue

                if (not self.connect):
                    break

                for sock in readable:
                    data = sock.recv(16)
                    if (data):
                        self.callback(self.sock.getsockname(), data)
        except Exception as e:
            print (self.sock.getsockname()(1), e)
        finally:
            print(self.sock.getsockname()(1), "Exiting Client Thread")

    def Connect(self):
        try:
            self.mutex.acquire()
            if (self.connect):
                return False
            self.connect = True
            self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            server_address = (self.ip, self.port)
            print ('Client: connecting to %s port %s' % server_address)
            self.sock.connect(server_address)
            #self.sock.setblocking(0)
            t = threading.Thread( target=self.__clientThread)
            self.clientThread = t
            self.clientThread.start()
            return True
        except Exception as e:
            print (e)
            return False
        finally:
            self.mutex.release()

    def Disconnect(self):
        try:
            self.mutex.acquire()
            if (not self.connect):
                return False

            self.connect = False
            if (self.clientThread):
                try:
                    self.clientThread.join(3)
                except Exception as e:
                    pass
            if (self.sock):
                self.sock.close()
            return True
        finally:
            self.mutex.release()

    def SendData(self, data):
        try:
            self.mutex.acquire()
            if (not self.connect):
                return False
            if (self.sock):
                print (self.sock.getsockname(), 'Client: sending "%s"' % data)
                self.sock.sendall(data)
                return True
        except Exception as e:
            print(e)
            return False
        finally:
            self.mutex.release()

def cb1(address, data):
    print (address, 'Client1: received "%s"' % data)
    pass

def cb2(address, data):
    print (address, 'Client2: received "%s"' % data)
    pass

def main():
    client1 = ClientConnection('localhost', 5000, cb1)
    if (client1.Connect()):
        client1.SendData(bytes("Itay1", encoding='utf8'))
    if (client1.Connect()):
        client1.SendData(bytes("Itay1", encoding='utf8'))

    client2 = ClientConnection('localhost', 5000, cb2)
    if (client2.Connect()):
        client2.SendData(bytes("Itay2", encoding='utf8'))

    print ("nPress Enter key to exit...n")
    sys.stdin.flush()
    sys.stdin.read(1)
    client1.Disconnect()
    client2.Disconnect()
    pass

if __name__ == "__main__":
    main()

If they safe if i change my WordPress site post permalink

If i change my site post permalink have any negative effect on my site ranking. Have any SEO Expert Here guide me about this confusion. Thanks!

malware – Is it safe to enable a guest’s firewall on a virtual machines?

On my host machine, I have the firewall on, of course, but while using my virtual machine (guest) should I enable the OS’s firewall on that too?

Or would is that unsafe if I got malware?

I saw somewhere that if I got malware, the firewall being on would help the attacker get into my network.

malware – Is it safe to view a file on Google Drive?

Let’s unpack this:

“… Can I safely view these types of files on a google drive (without downloading them)…”

When you view or edit a remote file, you are downloading it. You can see it only because it’s on your computer. Depending on circumstances it may only be in memory, it may be written to a temp file, it may be in chunks if the file is exceptionally large, but it’s on your computer.

“… images, mp4s, word, PowerPoints and pdf documents … nothing executable and no programs …”

Images like JPGs or videos like MP4s are not going to carry executable malware outside of torturous logic involving steg and third party executable malware. There have been some extremely rare exploits against graphic driver flaws in the past but the odds of encountering that are just about zero.

However there are a number of file types that are executable that might not seem like it and can carry malware . The old Windows “.wmf” graphic file contains an executable capability. So too might all Windows Office files like PowerPoint. Adobe PDF, while really convenient, has a very long history of many and continuing security issues with dangerous executable capabilities, that’s why there’s concerted effort industry wide to stop using PDF.

“…Can I safely view these types of files … from an uninfected laptop or is best to use a Chromebook?”

I’m guessing you are referring to using a different operating system than Windows, under the assumption of Windows only malware? Using a different operating system will help provide a buffer, but cross platform malware is not unusual in scriptable mechanisms such as MS Office and PDF’s.

How likely is it that you may encounter these types of malware I can’t say. The safest way to handle it is to use a non-persistent OS that can’t be infected past a power cycle. (Yes there are extremes of BIOS/GraphicCard/etc modifications but it’s not a significant concern.)