- In any broadcast network, the key issue is how to determine who gets to use the channel when there is competition for it.
- Conference calls and Actual meetings (raise hands)
- Broadcast channels also called Multiaccess Channels or Random Access Channels
- The protocols used to determine who goes next on a multiaccess channel belong to a sublayer of the data link layer called the MAC (Medium Access Control) sublayer
- The MAC sublayer is especially important in LANs, particularly wireless ones because wireless is naturally a broadcast channel.
- The MAC sublayer is the bottom part of the data link layer
Presently, the musicbrainz webservice is used and the related functions reside in the critiquebrainz/frontend/external/musicbrainz.py
. Both the ws and musicbrainz database are to be used for getting information regarding the release_groups, artists and other entities (To make it up to the user to decide which one to use based on the configuration). We can divide the current ws related functions and make up the directory structure as follows:
external/
musicbrainz/
__init__.py
db/
__init__.py
artist.py
entity.py
place.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/local/lib/python3.6/tarfile.py", line 1657, in bz2open | |
import bz2 | |
File "/usr/local/lib/python3.6/bz2.py", line 23, in <module> | |
from _bz2 import BZ2Compressor, BZ2Decompressor | |
ModuleNotFoundError: No module named '_bz2' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:9.5.6 | |
ARG DEBIAN_FRONTEND=noninteractive | |
# install_extensions.sh removes certain build dependencies that we need, so we | |
# can't install everything here. | |
# Note: curl is also a dependency of carton. | |
RUN apt-get update && \ | |
apt-get install --no-install-suggests --no-install-recommends -y ca-certificates curl sudo && \ | |
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:9.5.6 | |
ARG DEBIAN_FRONTEND=noninteractive | |
# install_extensions.sh removes certain build dependencies that we need, so we | |
# can't install everything here. | |
# Note: curl is also a dependency of carton. | |
RUN apt-get update && \ | |
apt-get install --no-install-suggests --no-install-recommends -y ca-certificates curl sudo cpanminus && \ | |
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m4_include(`macros.m4')m4_dnl | |
FROM postgres:9.5.6 | |
ARG DEBIAN_FRONTEND=noninteractive | |
# install_extensions.sh removes certain build dependencies that we need, so we | |
# can't install everything here. | |
# Note: curl is also a dependency of carton. | |
RUN apt_install(`ca-certificates curl sudo cpanminus') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can't locate DateTime/Duration.pm in @INC (you may need to install the DateTime::Duration module) (@INC contains: /home/musicbrainz/musicbrainz-server/admin/../lib /home/musicbrainz/musicbrainz-server/local/lib/perl5/x86_64-linux-gnu-thread-multi /home/musicbrainz/musicbrainz-server/local/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.3 | |
hu Jun 1 07:11:33 2017 : Creating tables ... (caa/CreateTables.sql) | |
Thu Jun 1 07:11:33 2017 : Creating documentation tables ... (documentation/CreateTables.sql) | |
Thu Jun 1 07:11:37 2017 : Creating tables ... (report/CreateTables.sql) | |
Thu Jun 1 07:11:38 2017 : Creating sitemaps tables ... (sitemaps/CreateTables.sql) | |
Thu Jun 1 07:11:38 2017 : Creating statistics tables ... (statistics/CreateTables.sql) | |
Thu Jun 1 07:11:38 2017 : Creating wikidocs tables ... (wikidocs/CreateTables.sql) | |
Can't locate DateTime/Duration.pm in @INC (you may need to install the DateTime::Duration module) (@INC contains: /home/musicbrainz/musicbrainz-serv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM postgres:9.5.6 | |
ARG DEBIAN_FRONTEND=noninteractive | |
# install_extensions.sh removes certain build dependencies that we need, so we | |
# can't install everything here. | |
# Note: curl is also a dependency of carton. | |
RUN apt-get update && \ | |
apt-get install --no-install-suggests --no-install-recommends -y ca-certificates curl sudo && \ | |
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ musicbrainz-server git:(mb-import) ✗ docker run suyashmb:latest | |
The files belonging to this database system will be owned by user "postgres". | |
This user must also own the server process. | |
The database cluster will be initialized with locale "en_US.utf8". | |
The default database encoding has accordingly been set to "UTF8". | |
The default text search configuration will be set to "english". | |
Data page checksums are disabled. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ok | |
creating template1 database in /var/lib/postgresql/data/pgdata/base/1 ... ok | |
initializing pg_authid ... ok | |
initializing dependencies ... ok | |
creating system views ... ok | |
loading system objects' descriptions ... ok | |
creating collations ... ok | |
creating conversions ... ok | |
creating dictionaries ... ok | |
setting privileges on built-in objects ... ok |