iphone – Unable to connect to hotspot

I have a 2016 Macbook Pro running Mac OS Big Spur.

My Macbook connected to the internet using an Ethernet cable.

Since my WiFi is sketchy where I tend to work in my room, I was looking to make my Macbook the hotspot, sharing it’s internet via WiFi for my iPhone 12 Pro Max to connect to.

I do see the local WiFi connection show up on the iPhone, I select and put in the password but continually get the message that it was unable to connect.

Is there something I’m doing incorrectly here?

When I go to “share” I have made sure that it states that I am to share via WiFi, and it shows connection on the Macbook is via Ethernet.

Many thanks in advance to any assistance.

9 – How do I connect to a database while building a custom module?

9 – How do I connect to a database while building a custom module? – Drupal Answers

How to connect to a mysql/mariadb database in Drupal 9 while building a custom module

Are you pulling data with AJAX or plain , entity_field ?

Again, is the pulled data being implemented in entity, node or block .

Now comes – database API, add some code which API you seem, not working in Drupal-9.

The database API, working version – As documented by Drupal Official Documentation –
Drupal Database API and Drupal 8 dynamic query

Unless you required to do do not use full query as Verbatim, instead use Drupal API,

Drupal API based Select query

Drupal::service('database')->select('users', 'u');
  ->condition('u.uid', 0, '<>')
  ->fields('u', ('uid', 'name', 'status', 'created', 'access'))
  ->range(0, 50);

The Drupal::service('database') can be Drupal::database.

When, this API is not working, you can write in Native PHP, and get the Array or Object, you have stored.

Your question is incomplete to understand. Yes, sometimes the insert or select and merge even update API is hard to get worked. insert or update will not fail you.

But merge is hard to get work, sometimes – select can fail.

wi fi – Smartphone can’t connect to Google’s services unless resetting the WIFI connection

I’m using Samsung Galaxy Note 10 Plus, which has a very strange behavior that I can’t explain.

Everything works fine with 3G, 4G. But if I use my home’s wifi connection, sometimes I can’t access google search, youtube, play store. For example, I’m using the phone and need to do a quick google search, I open Chrome and input the keyword in the address bar, then hit Go. The browser will show that it’s loading the Google search, but will never finish unless I turn off the WIFI and reconnect, then hit F5 on the browser. The same issue for YouTube, Playstore.

I notice that this is the problem of my phone, because my wife’s Iphone does not have the same issue, and laptops also dont.

Can anyone explain this?

export – How to remove “Qt issued a fatal error: QXcbConnection: Could not connect to display”?

I’m using Mathematica 11.2 on Linux. At the end of my script, I’m adding an Export command to export my results into a pdf file. I’m receiving the error msg:

Qt issued a fatal error: QXcbConnection: Could not connect to display
:0.0 /usr/local/Wolfram/Mathematica/11.2/Executables/Mathematica: line
150: 418313 Aborted “${MathematicaFE}” -topDirectory
> “$
{TopDirectory}” “$@” $mesa

I tried to add:export USE_WOLFRAM_LD_LIBRARY_PATH=1 to bashrc or bash_profile but it didn’t work.
Could someone please help me in solving this issue?

c++ – Connect to telnet server


No need for a constructor if it does nothing.

    if (telnet != nullptr)
        delete telnet;

The test here is pointless, since delete works fine with a null argument. We can improve on this by making telnet a smart pointer (probably std::unique_ptr<TelnetClient>), so that a default constructor is sufficient.

Changing to smart pointer also means we don’t need to override or delete the copy constructor and assignment operator, which we have failed to do (meaning that after copying, one object’s destructor would delete the other’s data).

bool Ephemeris::Connect(std::string host, std::string port)

Do we really need modifiable copies of host and port? It looks like we should be fine with const references:

bool Ephemeris::Connect(const std::string& host, const std::string& port)
size_t host_length = host.length() + 1;
char* chost = new char(host_length);
strcpy_s(chost, host_length, host.c_str());

Is there a need to copy the string from host? We’re going to pass this to the resolver::query constructor, which accepts a const std::string&, so it’s completely pointless to copy the characters to create a new string. We can simply pass our existing strings:

    tcp::resolver::query query(host, port);
   telnet = new TelnetClient(io_service, iterator);

We have a memory leak here, as we have not freed the previous value of telnet before assigning this new one. A smart pointer takes care of that for us.

    boost::thread t(boost::bind(&boost::asio::io_service::run, &io_service));

boost:thread is not declared – I recommend including <boost/thread.hpp> to get a definition in scope.


It’s a bad idea to destruct a running joinable thread. If we really want it to continue in the background we should detach() it first.

     catch (std::exception& e)

It’s generally a bad idea to catch all kinds of exception like this. It’s probably better to allow our function to throw exceptions, rather than returning a status code that the caller could forget to examine.

    return result;

With proper destructors, there’s no need to store the return value – we can return immediately and let C++ clean up our objects.

#include <memory>
#include <string>

class Ephemeris
    void Connect(const std::string& host, const std::string& port);

    std::unique_ptr<TelnetClient> telnet = {};
#include <boost/array.hpp>
#include <boost/asio.hpp>
#include <boost/thread.hpp>

using boost::asio::ip::tcp;

void Ephemeris::Connect(const std::string& host, const std::string& port)
// may throw boost::thread_resource_error or boost::system::system_error
    boost::asio::io_service io_service;
    // Resolve the host name and port number to an iterator that can be used to 
    // connect to the server.
    tcp::resolver resolver(io_service);
    tcp::resolver::query query(host, port);
    tcp::resolver::iterator iterator = resolver.resolve(query);

    // Create a Telnet client
    telnet = std::make_unique<TelnetClient>(io_service, iterator);

    // Run the IO service as a separate thread, so the main thread can block on standard input
    boost::thread t(boost::bind(&boost::asio::io_service::run, &io_service));

linux – Guest OS unable to connect to the internet

I am using VirtualBox to run a guest Debian, and used the bridged network to connect to the internet.
I was initially able to access the internet,but after I changed my network it stopped working.

Is the issue something related to setting up the static ip address?

Host Ip details
Windows IP Configuration

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::59d0:6230:bd50:ad90%5
   IPv4 Address. . . . . . . . . . . :
   Subnet Mask . . . . . . . . . . . :
   Default Gateway . . . . . . . . . :

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::1cb3:70c0:ef8f:6805%7
   IPv4 Address. . . . . . . . . . . :
   Subnet Mask . . . . . . . . . . . :
   Default Gateway . . . . . . . . . :

debian etc/network/interface

auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static

Computer won’t boot if I connect an externally powered USB HUB

As the title suggests, today I ran into a rather unusual problem, that is, if I connect an externally powered USB HUB to my PC it refuses to boot.

Has anything like this ever happened to you?
Are there any settings in the BIOS that need to be changed to correct this?

Thank you very much for helping!

MacBook Pro 2013 won’t connect to new wifi

MacBook Pro 2013 won’t connect to new wifi – Ask Different

php fpm – Can’t connect WordPress and MariaDB on LAMP stack with docker-compose

I’m new here and that’s my 1st question so tell me if anything is wrong in the way I put it.

So here’s the problem: I’m building a LAMP stack with 3 separate containers for nginx, maiadb and wordpress.

The whole nginx and php-fpm seems to work well, as I can access the site’s index and process php pages. Mdb builds the wordpress db and creates a “wordpress@wordpress-php” user with all privileges on it.

It starts to go wrong when I access the site for installation, I get stuck with a : “Error establishing a database connection”

Here is my wp-config.php, that I copy in the wordpress dir inside the container:

 15 define( 'DB_HOST', 'mariadb' );                                                                                                                                                      
 16 define( 'DB_CHARSET', 'utf8' );                                                 
 19 define( 'DB_COLLATE', '' );                                                     
 20 define('AUTHOR', 'yotillar');                                                   
 22 // Authentication unique keys and salts.                                        
 23 define( 'AUTH_KEY',         'key' );
 24 define( 'SECURE_AUTH_KEY',  'key' );
 25 define( 'LOGGED_IN_KEY',    'key' );
 26 define( 'NONCE_KEY',        'key' );
 27 define( 'AUTH_SALT',        'salt' );                                    
 28 define( 'SECURE_AUTH_SALT', 'salt' );
 29 define( 'LOGGED_IN_SALT',   'salt' );
 30 define( 'NONCE_SALT',       'salt' );
 38 $table_prefix = 'wp_';               

Here’s my docker-compose.yaml:

version: "3.5"                                                                  
  3 networks:                                                                       
  4   front-network:                                                                
  5     driver: bridge                                                              
  6     attachable: false                                                           
  7   back-network:                                                                 
  8     driver: bridge                                                              
  9     attachable: false                                                           
 11 volumes:                                                                          
 12   mdb-data:                                                                     
 13   wordpress:                                                                    
 15 services:                                                                       
 17   nginx:                                                                        
 18     depends_on:                                                                 
 19       - wordpress-php                                                           
 20     build: "./services/nginx"                                                   
 21     image: nginx:mytag                                                          
 22     volumes:                                                                    
 23       - wordpress:/var/www/myserver/wordpress:rw                                
 24       - "../logs/nginx_logs:/var/log/nginx:rw"                                  
 25     restart: on-failure                                                         
 26     ports:                                                                      
 27       - "80:80"                                                                 
 28       - "443:443"                                                               
 29     expose:                                                                     
 30       - 9000                                                                    
 31     networks:                                                                   
 32       - front-network                                                           
 35   wordpress-php:                                                                
 36     depends_on:                                                                 
 37       - mariadb                                                                 
 38     build: "./services/wordpress"                                               
 39     image: wordpress-php:mytag                                                  
 40     volumes:                                                                    
 41       - wordpress:/var/www/myserver/wordpress:rw                                
 43     restart: on-failure                                                         
 44     environment:                                                                
 45       - WORDPRESS_DB_HOST=mariadb:3306                                          
 46       - WORDPRESS_DB_NAME=wordpress                                             
 45       - WORDPRESS_DB_USER=wordpress                                             
 48       - WORDPRESS_DB_PASSWORD=wordpress                                                                                      
 50     expose:                                                                     
 51       - 3306                                                                    
 52       - 9000                                                                    
 53     networks:                                                                   
 54       - front-network                                                           
 55       - back-network                                                            
 58   mariadb:                                                                      
 59     build: "./services/mariadb"                                                 
 60     image: mariadb:mytag                                                        
 61     volumes:                                                                    
 62       - mdb-data:/var/lib/mysql:rw                                              
 63       - "../logs/mariadb_logs/error.log:/var/log/mysql/error.log"               
 64     restart: on-failure                                                         
 65     environment:                                                                
 66       - MYSQL_DATABASE=wordpress                                                
 67       - MYSQL_USER=wordpress                                                    
 68       - MYSQL_USER_PASSWORD=wordpress                                           
 69       - MYSQL_ROOT_PASSWORD=root                                                
 70     expose:                                                                     
 71       - 3306                                                                    
 72     networks:                                                                   
 73       - back-network                                                            

I set the bind-address of mariadb on in ./etc/mysql/mariadb.conf.d/50-se rver.cnf and ./etc/mysql/my.cnf to be sure that th db is indeed listening from every ip.

I think the problem comes from the wp-config.php , but as I understood in a docker-compose environment you can refer to each container with his name instead of ip, and I don’t know how I could retrieve mariadb’s IP from wordpress-php.

Please help me,
Thank in advance to anyone that read that far! ^^

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies 5000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive.com Proxies-free.com New Proxy Lists Every Day Proxies123.com Buy Cheap Private Proxies; Best Quality USA Private Proxies