## 8 – How to get a multilevel taxonomy reference field to output as nested UL in node tpl?

I have a simple 2 level taxonomy vocabulary field but I can’t seem to find a way to output the terms (labels) in a nested UL in my node TPL. There are no display formatter options at all and I can’t find any info on this?

{{ content.field_my_terms }} just gives me field__items with flattened field__item.

## How can a machine with fixed output for all inputs be considered a Turing machine?

To clarify, this machine T′ with the fixed output for all inputs is a Turing machine? – Shashank V M

@ShashankVM, Yes, T′ is a Turing machine. – D.W.♦ (When can a deterministic finite-state-automata (DFSA) along with its input sequence be said to be a part of another DFSA?)

From what I understand, a machine with fixed output for all inputs is a Turing machine.

Consider this thought experiment, I have a “machine” which is a wall with a slit through which I can pass a tape in. The “output” of this machine is on the wall, i.e. it is painted on the wall as a fixed string $$S$$, which for the purpose of this experiment is “Hello”. So no matter what is written on the tape, the output of this “machine” is “Hello”. From what I understand this “machine” is a Turing machine.

Is my understanding correct or am I missing something?

Because I find it hard to believe that this wall with a slit can be considered a Turing machine, when a supercomputer is considered a Deterministic Finite State Automaton.

Also I cannot see how this “machine” can emulate any another Turing machine or do any useful computation.

## linux – How to output to a virtual sink from Zoom

I’d like to send audio to Zoom from a virtual sink monitor in pulseaudio.

I can see all the sinks/sources in my environment available in Zoom, apart from the one added via `module-null-sink`. I added it using:

``````pactl load-module module-null-sink channels=2 format=float32le
``````

which matches the configuration I see on an existing Jack sink. (and I can see the Jack sink/source in Zoom) If I try to force it from the pactl interface, I get:

``````Failure: Invalid argument
``````

## interpolation – Numerically solve a non-differential equation with InterpolatingFunction as output

I have some a function that I need to solve numerically over an entire domain (Ideally I would like an InterpolatingFunction object as output), which does not include any derivatives. I have found a way to do it using NDSolve, however I feel like there should be a better solution. Here is a simple example to show my NDSolve method:

Solving:
$$y^2+y=x$$

The solutions:
$$y(x) = frac{1}{2}left(-1 pm sqrt{1+4x}right)$$

Numerically Solving using NDSolve:

`NDSolve(D(y(x)^2 + y(x), x) == D(x, x) && y(0)^2 + y(0) == 0, y(x), {x, -5, 5}) //Quiet`

This operation gives me two InterpolatingFunctions that, when plotted, match the analytical solutions, but feels very hacky. I have also noticed that for some functions it does not produce solutions for the entire function domain. Is there a better way to do this?

## audio – Bluetooth speaker connects to input rather than output – seems related to macOS Big Sur

I’ve got a bluetooth speaker (Bose Mini II SoundLink) that I’m trying to connect to my Mac. I was playing music through Tidal and it was working normally but then it suddenly disconnected, and now whenever I try and reconnect it, it will show up in input devices (under System Preferences > Sound) and not under output devices (even though I’m pretty sure it doesn’t even have a Mic).

It seems after updating to macOS Big Sur my bluetooth devices are consistently having problems because some headphones of mine also refuse to connect with the audio unless I redo pairing them every time.

Can someone tell me how to fix this?

## python – How program and output would look like?

Write a Python script that calculates the top prize amount in a lottery.

Ask the user to enter the largest possible lottery prize as an integer.

Use the randint function to randomly generate the lottery prize. The randint range will be from 1 and the user input value.

Use the randint function with a range of 1 to 20, to get the number of people that win the lottery.

Calculate the prize amount for each person by dividing the lottery prize (1st random number) by the number of people that win (2nd random number) then use a delivered the math function to get the smallest integer.

Display the total prize amount, the number of people that win, and the prize amount for each person.

Keep looping until the user enters 0.

## No Output Is Show In Function In Python In MKList?

``````class MKLinkedList:
def __init__(self):
self.Start = None

def __init__(self, value):
self.Start = Node(value)

def Print(self):
if(self.Start == None):
print("The List Is Empty")

else:
self.Start.Print()
``````

## Which mathematical oeeratoration produces this output?

Given vector-valued functions $$f(x_1)=(f_1(x_1),f_2(x_1))$$ and $$g(x)=(g_1(x_1),g_2(x_2)).$$ I am looking for an operation $$F$$ such that $$F(f,g) = (f_1(x_1)g_1(x_2),f_2(x_1)g_2(x_2)).$$

Perhaps there is a canonical name for such a map? If these were only two functions, one might be able to express this using a tensor product.

## postgresql – Suppressing SELECT output before gexec?

This answer is great for when I needed to reown 150 tables, each with 40 tables, but displays the 6000 rows from SELECT before running the 6000 ALTER statements.

Thus, as stated in the Subject, is there any way to suppress the SELECT output?

``````sides=> SELECT format(
sides(>   'ALTER TABLE %I.%I.%I OWNER TO sides_owner;',
sides(>   table_catalog,
sides(>   table_schema,
sides(>   table_name
sides(> )
sides-> FROM information_schema.tables
sides-> WHERE table_schema = 'strans';
format
---------------------------------------------------------------------
ALTER TABLE sides.strans.foo OWNER TO sides_owner;
ALTER TABLE sides.strans.blarg_p2020_02 OWNER TO sides_owner;
ALTER TABLE sides.strans.blarg_p2020_03 OWNER TO sides_owner;
ALTER TABLE sides.strans.blarg_p2020_04 OWNER TO sides_owner;
ALTER TABLE sides.strans.blarg_error_p2019_01 OWNER TO sides_owner;
etc
etc
etc
``````

## complexity theory – How to implement a Turing Machine that calculates log base 2 of n where n is a natural number and output in a unary format?

How would you construct a Turing Machine that calculates log2(n)?

The process must take in an input such as 4 and output the result in a unary format such as a 11 (11 = 2 in unary)?

In the final output tape, the tape should only contain blank symbols followed by a consecutive number of 1’s from the final head position.

Many Thanks