D&D 5e – Dominate person recognition, and Squeezing question

Had an interesting session with a DM I generally quite like playing with where he made 2 decisions I disagreed with. Unfortunately a bit of research hasn’t clarified if I’m misunderstanding the rules, so I thought I’d ask:

Scenario: We encountered a frost giant and a few stone giants who weren’t yet hostile to us, but not friendly and refused to cooperate. I cast dominate monster on the frost giant (the leader), making him listen to us in the first instant, while another party member tried to convince them to help us. I then took full control of him, and got him to tell the other giants that we were friends (all of this happening telepathically, as per the spell). At this point the DM said one of the stone giant (a dreamwalker) recognised him as being charmed (apparently because he looked dazed and said that we were friends randomly), and immediately attacked the frost giant, forcing another save and releasing him. The justification here was the stone giant dreamwalker is familiar with charms (it has a passive charm power that does not allow a save on damage, so works quite differently to dominate monsnter). I left it when he made the call but then after the game finished argued that because the spells are quite different I doubt she’d have recognised it, and even if she did, she’d be more inclined to attack me than her leader the frost giant.

So question 1, how easy is it for another NPC to recognise that a creature has been put under the dominate monster spell, after the spell has been cast and the verbal/somatic components not noticed? And would they think that directly attacking that creature would be the most reasonable course of action, barring metagame knowledge of saving throws. A dreamwalker has an intelligence score of 10 and a wisdom of 8.

Question 2, the squeezing rules are quite clear, a large creature can squeeze through a 5 foot space. I have a Pegasus through find greater steed, and he ruled it couldn’t enter mordenkainen’s magnificent mansion despite the rules as written, because "there has to be some disadvantage to having a flying mount, and practically its wings wouldn’t fit". From everything I’ve read it looks like my reading of the rules is correct both as written and intended, other than it being his world and him getting to make up the rules at the table, am I missing anything? List item

Gmail Email id, dot(.) recognition [closed]

I keep on receiving email which is intend to be received by a gmail id similar to be mine, with no dots(.) in gmail id of other party. For example : my email id is john.grisham@gmail.com the inbox of above email ids, get emails intended to be received by johngrisham@gmail.com

Question 1: The other party will also be receiving my emails ? Question 2: How can i get rid of this problem?

What is the current state of author recognition software and what can be done about it?

I’m curious what the current state of author recognition software is, i.e. software that detects the author of a certain anonymous text based on a certain pool of texts obtained from elsewhere. This could identify people in dangerous positions like critics of a government or whistle blowers even if they have been totally careful in terms of security otherwise.

I found this question but it is quite old now: https://softwareengineering.stackexchange.com/questions/203133/how-advanced-are-author-recognition-methods

Some articles (Software Helps Identify Anonymous Writers or Helps Them Stay That Way and The Analysis Software That Wrecked J.K. Rowling’s Anonymity) are also old but portray a more scary world than the stackexchange answer.

I imagine recent years with machine learning becoming far more popular and powerful have done a lot to make software like this much more reliable than back in 2013.

So how reliable is this nowadays and what would be appropriate measures to take against it?

Algorithm for Brand recognition in images [on hold]

I know that this is a highly subjective and use case varied question, but Im just looking for a push in the right direction.

How would one go about implementing a brand recognition algorithm in images.

e.g. I take a photo with my phone of a macbook and it recognizes that its a macbook (ideally it would also be able to determine the actual model of the computer) or I take a picture of headphones and the algorithm outputs that those headphones are Sony model xx-100 (ideally it should be possible to do that with boxed and unboxed items).

So my question is: 1) Is this even possible? 2) If yes, where would one start in implementing this? (Im not asking for step by step instructions just a general outline)

Thanks in advance, and I apologise if this question doesnt really follow the rules of this forum.

Unable to host Speech Recognition and Sound Playing Application on Docker

I have an application that takes voice input from microphone, performs speech recognition and plays certain music files based on the cue words recognized. This application is in Python and implements a couple of python modules like PyAudio, Playsound and Websocket-client. I am trying to build a Docker image of this application.

I have created a Dockerfile with below contents:

FROM ubuntu ADD . /app  FROM python:3 ADD transcribe.py / ADD speech.cfg / ADD setup.cfg /  ADD setup.py /  RUN apt-get update RUN apt-get --assume-yes install libasound-dev portaudio19-dev     libportaudio2 libportaudiocpp0 RUN pip3 install pyaudio RUN pip3 install websocket-client RUN pip3 install playsound CMD [ "python3", "./transcribe.py" ] 

When trying to build it, I get a successful build response as below:

ABCDEFG:random-folder User$   docker build -t storyassist . Sending build context to Docker daemon  3.494MB Step 1/13 : FROM ubuntu  ---> 4c108a37151f Step 2/13 : ADD . /app  ---> e520eb6d11e8 Step 3/13 : FROM python:3  ---> 42d620af35be Step 4/13 : ADD transcribe.py /  ---> 6c76aee20537 Step 5/13 : ADD speech.cfg /  ---> 74c3221f2324 Step 6/13 : ADD setup.cfg /  ---> 2c415c19a4fb Step 7/13 : ADD setup.py /  ---> c6382077cdcf Step 8/13 : RUN apt-get update  ---> Running in ace9adab6a44 Get:1 http://deb.debian.org/debian buster InRelease [118 kB] Get:2 http://deb.debian.org/debian buster-updates InRelease [46.8 kB] Get:3 http://deb.debian.org/debian buster/main amd64 Packages [7897 kB] Get:4 http://security.debian.org/debian-security buster/updates     InRelease [39.1 kB] Get:5 http://security.debian.org/debian-security     buster/updates/main amd64 Packages [42.5 kB] Fetched 8143 kB in 3s (2493 kB/s) Reading package lists... Removing intermediate container ace9adab6a44  ---> d46db350b95f Step 9/13 : RUN apt-get --assume-yes install libasound-dev     portaudio19-dev libportaudio2 libportaudiocpp0  ---> Running in 8d772b088b15 Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed:   libasound2 libasound2-data libjack-dev libjack0 Suggested packages:   libasound2-plugins alsa-utils libasound2-doc jackd1 portaudio19-doc The following NEW packages will be installed:   libasound2 libasound2-data libasound2-dev libjack-dev libjack0     libportaudio2   libportaudiocpp0 portaudio19-dev 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. Need to get 1094 kB of archives. After this operation, 5886 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian buster/main amd64 libasound2-    data all 1.1.8-1 [59.6 kB] Get:2 http://deb.debian.org/debian buster/main amd64 libasound2     amd64 1.1.8-1 [361 kB] Get:3 http://deb.debian.org/debian buster/main amd64 libasound2-dev     amd64 1.1.8-1 [145 kB] Get:4 http://deb.debian.org/debian buster/main amd64 libjack0 amd64     1:0.125.0-3 [109 kB] Get:5 http://deb.debian.org/debian buster/main amd64 libjack-dev     amd64 1:0.125.0-3 [227 kB] Get:6 http://deb.debian.org/debian buster/main amd64 libportaudio2     amd64 19.6.0-1 [66.6 kB] Get:7 http://deb.debian.org/debian buster/main amd64     libportaudiocpp0 amd64 19.6.0-1 [18.8 kB] Get:8 http://deb.debian.org/debian buster/main amd64 portaudio19-    dev amd64 19.6.0-1 [108 kB] debconf: delaying package configuration, since apt-utils is not     installed Fetched 1094 kB in 1s (1381 kB/s) Selecting previously unselected package libasound2-data. (Reading database ... 24544 files and directories currently     installed.) Preparing to unpack .../0-libasound2-data_1.1.8-1_all.deb ... Unpacking libasound2-data (1.1.8-1) ... Selecting previously unselected package libasound2:amd64. Preparing to unpack .../1-libasound2_1.1.8-1_amd64.deb ... Unpacking libasound2:amd64 (1.1.8-1) ... Selecting previously unselected package libasound2-dev:amd64. Preparing to unpack .../2-libasound2-dev_1.1.8-1_amd64.deb ... Unpacking libasound2-dev:amd64 (1.1.8-1) ... Selecting previously unselected package libjack0:amd64. Preparing to unpack .../3-libjack0_1%3a0.125.0-3_amd64.deb ... Unpacking libjack0:amd64 (1:0.125.0-3) ... Selecting previously unselected package libjack-dev. Preparing to unpack .../4-libjack-dev_1%3a0.125.0-3_amd64.deb ... Unpacking libjack-dev (1:0.125.0-3) ... Selecting previously unselected package libportaudio2:amd64. Preparing to unpack .../5-libportaudio2_19.6.0-1_amd64.deb ... Unpacking libportaudio2:amd64 (19.6.0-1) ... Selecting previously unselected package libportaudiocpp0:amd64. Preparing to unpack .../6-libportaudiocpp0_19.6.0-1_amd64.deb ... Unpacking libportaudiocpp0:amd64 (19.6.0-1) ... Selecting previously unselected package portaudio19-dev:amd64. Preparing to unpack .../7-portaudio19-dev_19.6.0-1_amd64.deb ... Unpacking portaudio19-dev:amd64 (19.6.0-1) ... Setting up libasound2-data (1.1.8-1) ... Setting up libjack0:amd64 (1:0.125.0-3) ... Setting up libasound2:amd64 (1.1.8-1) ... Setting up libjack-dev (1:0.125.0-3) ... Setting up libasound2-dev:amd64 (1.1.8-1) ... Setting up libportaudio2:amd64 (19.6.0-1) ... Setting up libportaudiocpp0:amd64 (19.6.0-1) ... Setting up portaudio19-dev:amd64 (19.6.0-1) ... Processing triggers for libc-bin (2.28-10) ... Removing intermediate container 8d772b088b15  ---> d2bc72b4654c Step 10/13 : RUN pip3 install pyaudio  ---> Running in 654227a7b259 Collecting pyaudio   Downloading         https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3    c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz Building wheels for collected packages: pyaudio   Building wheel for pyaudio (setup.py): started   Building wheel for pyaudio (setup.py): finished with status     'done'   Stored in directory:     /root/.cache/pip/wheels/f4/a8/a4/292214166c2917890f85b2f72a8e5f13e1ffa5    27c4200dcede Successfully built pyaudio Installing collected packages: pyaudio Successfully installed pyaudio-0.2.11 Removing intermediate container 654227a7b259  ---> 1336a7cbfb0f Step 11/13 : RUN pip3 install websocket-client  ---> Running in dfa7c4d9f195 Collecting websocket-client   Downloading         https://files.pythonhosted.org/packages/29/19/44753eab1fdb50770ac696055    27e8859468f3c0fd7dc5a76dd9c4dbd7906/websocket_client-0.56.0-py2.py3-    none-any.whl (200kB) Collecting six (from websocket-client)   Downloading     https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238    ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl Installing collected packages: six, websocket-client Successfully installed six-1.12.0 websocket-client-0.56.0 Removing intermediate container dfa7c4d9f195  ---> e82fd88cd21a Step 12/13 : RUN pip3 install playsound  ---> Running in 2f2af7ce7bdc Collecting playsound   Downloading         https://files.pythonhosted.org/packages/f5/16/10d897b0a83fb4b05b03a63d7    a2667ab75f857f67f7062fd447dd3f49bf7/playsound-1.2.2-py2.py3-none-any.whl Installing collected packages: playsound Successfully installed playsound-1.2.2 Removing intermediate container 2f2af7ce7bdc  ---> ac6c2e571e3b Step 13/13 : CMD [ "python3", "./transcribe.py" ]  ---> Running in 11291eaff8f4 Removing intermediate container 11291eaff8f4  ---> 2d8cd222b2bb Successfully built 2d8cd222b2bb Successfully tagged storyassist:latest 

But when I try to runt his image, I get a bunch of errors where I my docker image cannot find the drivers specified. While its is possible to resolve similar issues in Virtual Machines, I am not sure if there is a simple way to resolve the same in docker containers.

ABCDEFG:random-folder User$   docker run storyassist ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4568:(_snd_config_evaluate) function     snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM sysdefault ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM sysdefault ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM dmix Exception in thread Thread-1: Traceback (most recent call last):   File "/usr/local/lib/python3.7/threading.py", line 926, in     _bootstrap_inner     self.run()   File "/usr/local/lib/python3.7/threading.py", line 870, in run     self._target(*self._args, **self._kwargs)   File "./transcribe.py", line 83, in read_audio     RATE = int(p.get_default_input_device_info()    ['defaultSampleRate'])   File "/usr/local/lib/python3.7/site-packages/pyaudio.py", line     949, in get_default_input_device_info     device_index = pa.get_default_input_device() OSError: No Default Input Device Available 

Hobby project with facial recognition

not quite a “how do I program” question, but I think it’s related.

Basically I want to write a system that thats a bunch of photos at one end, and spits out an ordered collection of photos all grouped by faces in those photos. I.e, I give it 10 photos, and it shows me which faces are in those 10, and which photos each face is in (lets you find yourself in a large album of photos).

But, if I ever want this thing to be a useable product, I need to answer the question around legality. Is that kind of application of facial recognition legal? (I’m in the UK btw).

Pattern Recognition in Time Series

I have a number (>10000) of time series from simulation. Based on my observation, I found that the time series can be classified into several kinds (see fig.1).

  • fig.1A and fig.1F is a same kind;
  • fig.1B , fig.1E and fig.1B is another kind;
  • fig.1C is the third kind;

My question is how can I classify them automatically? What kind of algorithm I can use?

Thanks.