The bit rates for the most common audio formats –
| ALAW | 8 BITS |
| ULAW | 8 BITS |
| PCM | 16 BITS SIGNED/UNSIGNED |
| ADPCM | 8 BITS |
The endian-ness for more than one byte systems:
| Motorola Processors | Big Endian |
| Intel Processors | Small Endian |
The bit rates for the most common audio formats –
| ALAW | 8 BITS |
| ULAW | 8 BITS |
| PCM | 16 BITS SIGNED/UNSIGNED |
| ADPCM | 8 BITS |
The endian-ness for more than one byte systems:
| Motorola Processors | Big Endian |
| Intel Processors | Small Endian |
The bit rates for the most common audio formats –
| ALAW | 8 BITS |
| ULAW | 8 BITS |
| PCM | 16 BITS SIGNED/UNSIGNED |
| ADPCM | 8 BITS |
The endian-ness for more than one byte systems:
| Motorola Processors | Big Endian |
| Intel Processors | Small Endian |
Error : Few docker containers don’t start up. In the /var/log/syslog they give the error “Cannot start container Subnet sandbox join failed…”
Fix: Restart the machine !
Optionally you can try the steps mentioned here, and see that they don’t work, and restart the machine anyway 🙂
Problem : On page refreshes, the ajax calls in the componentDidMount functions throws the error : “Error: Should not already be working.”
Reason : Probably the ajax request is called before the react’s async calls framework is initialized.
Fix: Run within a timeout function
Eg –
componentDidMount() {
setTimeout(() => {
$.ajax(...);
}, 400);
}
Issue : When doing an apt update, we get the this error.
The repository ‘http://archive.ubuntu.com/ubuntu disco-backports Release’ no longer has a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
fix :
[bash]
vi /etc/apt/sources.list
replace all occurrences of archive.ubuntu.com to old-releases.ubuntu.com
[/bash]
I had recently hit a blocker to production deployment, when my processes just won’t connect to my Cassandra DB from within their containers.
This is how I could fix it –
nc -vz dbhost 9042
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' your-container-name-or-id
172.32.15.36
{
"bip": "10.0.0.1/16"
}
sudo service docker stop
sudo rm -rf /var/lib/docker
sudo service docker start
#init your swarm if needed
docker swarm init
pull your images
start your containers

On the terminal, do the following to open port 80
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
sudo iptables -F
Persisting the rule changes across boot cycles –
sudo iptables-save > /etc/iptables/rules.v4
sudo apt-get install iptables-persistent
iptables-persistent will look for the file “/etc/iptables/rules.v4” after boot up, to restore the rules for IPV4, thus automating the restore for each boot.
To make a new disk you just added to the Ubuntu device, please go through the following steps –
Check whats the /dev path of the disk. On terminal, run-
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 97M 1 loop /snap/core/9289
loop1 7:1 0 18M 1 loop /snap/amazon-ssm-agent/1566
nvme0n1 259:0 0 1T 0 disk
nvme1n1 259:1 0 10G 0 disk
You would have got a result as above. ( In Azure the disk names are the usual sda, sdb etc, unlike the nvme* in AWS.)
In this case, the disk I wanted add is the 1 TB disk, which is /dev/nvme0n1
Format the disk with a new compatible filesystem (XFS).
sudo mkfs -t xfs /dev/nvme0n1
Wait for the file-system creation to finish.
sudo mkdir /data
sudo mount /dev/nvme0n1 /data
sudo cp /etc/fstab /etc/fstab.orig
sudo blkid
From the output of the last command, find the UUID of your disk
sudo vim /etc/fstab
Append the line –
UUID=[your disk's UUID] /data xfs defaults,nofail 0 2
Note that in the above replace your disk’s UUID without the square brackets, and save the file.
sudo umount /data
sudo mount -a
df -h
Verify that /data is listed as a disk in the last command. If not, please check the /etc/fstab file, apply correction of UUID, spaces etc, and repeat the above test block again.
Problem:
The newly set hostname reverts back to older one after reboot
Reason :
Hostname is reset by cloud-init
Solution :
Inactivate cloud-init.
On terminal, key in –
[bash] hostnamectl set-hostname YourNewHostName sudo touch /etc/cloud/cloud-init.disabled sudo reboot [/bash]
Problem:
The newly set hostname reverts back to older one after reboot
Reason :
Hostname is reset by cloud-init
Solution :
Inactivate cloud-init.
On terminal, key in –
[bash]
hostnamectl set-hostname YourNewHostName
sudo touch /etc/cloud/cloud-init.disabled
sudo reboot
[/bash]