This guide will help you connect your Sony WH-1000XM4 headset to Ubuntu 22.04 using Bluetooth. Once connected, you'll be able to listen to music and use the microphone on apps like Microsoft Teams.
- Open a terminal and launch
bluetoothctl
:
This guide will help you connect your Sony WH-1000XM4 headset to Ubuntu 22.04 using Bluetooth. Once connected, you'll be able to listen to music and use the microphone on apps like Microsoft Teams.
bluetoothctl
:Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
# Script to generate a new block every minute | |
# Put this script at the root of your unpacked folder | |
#!/bin/bash | |
echo "Generating a block every minute. Press [CTRL+C] to stop.." | |
address=`./bin/bitcoin-cli getnewaddress` | |
while : | |
do |
# Import requests and regex library | |
import requests | |
import re | |
def get_external_ip(): | |
# Make a request to checkip.dyndns.org as proposed | |
# in https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery#DNS_Addresses | |
response = requests.get('http://checkip.dyndns.org').text | |
# Filter the response with a regex for an IPv4 address |
For the Bitcoin network to remain in consensus, the network of nodes must not be partitioned. So for an individual node to remain in consensus with the network, it must have at least one connection to that network of peers that share its consensus rules. This document describes how we attempt to achieve this.
We can't rely on inbound peers to be honest, because they are initiated by others. It's impossible for us to know, for example, whether all our inbound peers are controlled by the same adversary.
bool Solution::isPower(int A) { | |
if (A<2) | |
return true; | |
for (auto i = 2; i<=sqrt(A); ++i) | |
{ | |
for (auto j = 2; j<=32; ++j) | |
{ | |
if(pow(i, j)==A) | |
return true; |