## formal languages ​​- Is it correct: whether or not a type 3 grammar generates \$ Sigma ^ * \$ is not c.e

An example from Sipser's book, Introduction to Computational Theory, shows that it is not decidable $$TM$$ recognize if a $$CFG$$ (or a type 2 grammar) generates $$Sigma ^ *$$, or $$Sigma$$ is the alphabet. Call this language $$CFG_ {all}$$

But the above language is also not computable. There may be a reduction of $$CFG_ {all}$$ at $$bar {A_ {TM}}$$, or $$bar {A_ {TM}}$$ is the language s.t. the entry $$TM$$ accepts no entry. $$bar {A_ {TM}}$$ is not computable.

But could we say that if a type 3 grammar generates or not $$Sigma ^ *$$ also isn't c.e. ? (since type 3 grammars are a subset of grammars without context). If it is true that a finite automaton can recognize $$Sigma ^ *$$, this language is different from the fact that a type 3 grammar generates $$Sigma ^ *$$?

Just to clarify the source of my confusion, in summary, it is decidable for a $$TM$$ to decide if a pushdown controller recognizes $$Sigma ^ *$$ or accepts any input, but it is not decidable or even calculable for a $$TM$$ recognize that a CFG generates $$Sigma ^ *$$. Likewise, it is decidable $$TM$$ check if a finite automaton accepts $$Sigma ^ *$$, but it may not be decidable for a $$TM$$ to check if a type 3 grammar generates $$Sigma ^ *$$. It's sort of the difference between recognizing and generating.

## SALE: Generalie.com is an easy-to-remember general domain that generates traffic on autopilot

This traffic seems suspicious to me.

Mostly American traffic, but it arrives at your site when most people in the United States are sleeping – and on a desktop device.

What would make an American go to his desktop in the middle of the name and type your URL (full of Arabic) in his browser?

This traffic is more than likely false.

## javascript – How to increase the scalability of the method that generates each file while changing several conditions?

I have a common style (common.scss) and a text direction options file (RTL, LTR) (option-document-direction-rtl.scss, option-document-direction-ltr.scss). And by changing the reading of these files, the css file with modified RTL / LTR is output by a method like gulp.

_common.scss

body {
max-width: 1120px;
background-color: black;
color: white;
text-align: \$direction;
}

_option-document-management-rtl.scss

\$direction: right;

_option-document-management-ltr.scss

\$direction: left;

style.scss

@import "option-document-direction-rtl";
// switch to @import "option-document-direction-rtl";

@import "common.scss"

And I can go down below two css files at the same time by a method (in fact, the style of these scss files is more complex):

joe-style.css

body {
max-width: 1120px;
background-color: black;
color: white;
text-align: right;
}

ltr-style.css

body {
max-width: 1120px;
background-color: black;
color: white;
text-align: left;
}

### Main subject

So I have to change these style conditions different from the direction of the text. For example, the size of the screen without multimedia queries. In this case, I think I need a new options SCSS file, such as _computer.scss and _smartphone.scss. Here I had a question.

The number of configuration files with new conditions may increase in the future. In the current method, in short, the css file to be output is modified according to that of the "configuration files which describe the parameters used in each condition" which is read.

I'm afraid my configuration files will grow and become more difficult to manage. What tools and mechanisms on SCSS can be used to increase the scalability of many configuration files?

I have considered a method to dynamically modify the output file based on the argument at generation time, but I have not been able to determine if this is a way to improve scalability.

I asked a question about Stack Overflow earlier, where I suggested other SE sites, such as Code Review SE. So I checked the list of SE sites. Then, according to each help center, I realized that the content could be published both on the following site and on Sofrware Engineering. Because I don't know which one is best for my topic, I published content similar to Code Review SE.

## Although you can't make it a macro, it works if you save it as an ability

&{template:simple} ?{Save|STR, {{rname=Strength}} {{mod=@{selected|strength_save_bonus}}} {{r1=((1d20+@{selected|strength_save_bonus}))}} {{r2=((1d20+@{selected|strength_save_bonus}))}}{{always=1}}|DEX, {{rname=Dexterity}} {{mod=@{selected|dexterity_save_bonus}}} {{r1=((1d20+@{selected|dexterity_save_bonus}))}} {{r2=((1d20+@{selected|dexterity_save_bonus}))}} {{always=1}}|CON, {{rname=Constitution}} {{mod=@{selected|constitution_save_bonus}}} {{r1=((1d20+@{selected|constitution_save_bonus}))}} {{r2=((1d20+@{selected|constitution_save_bonus}))}}{{always=1}}|INT, {{rname=Intelligence}} {{mod=@{selected|intelligence_save_bonus}}} {{r1=((1d20+@{selected|intelligence_save_bonus}))}} {{r2=((1d20+@{selected|intelligence_save_bonus}))}} {{always=1}}|WIS, {{rname=Wisdom}} {{mod=@{selected|wisdom_save_bonus}}} {{r1=((1d20+@{selected|wisdom_save_bonus}))}} {{r2=((1d20+@{selected|wisdom_save_bonus}))}} {{always=1}}|CHA, {{rname=Charisma}} {{mod=@{selected|charisma_save_bonus}}} {{r1=((1d20+@{selected|charisma_save_bonus}))}} {{r2=((1d20+@{selected|charisma_save_bonus}))}}{{always=1}}} {{charname=@{selected|token_name}}}

It will ask the user for the backup type, then launch a backup of the selected type for the currently selected token, then output it in the same format as if you had rolled it directly from the character sheet .

It should be recorded as an ability (on a character sheet, under the "Attributes and Abilities" tab) rather than as a global macro, because if you save it as a macro global, each instance of } (HTML replacement for } ) converts by breaking everything.

## Where is the string that generates the hash with 18-20 zeros?

When Bitcoin miners mine, they must solve a difficult and extremely repetitive mathematical problem using the SHA256 algorithm. Miners try (mainly to play the lottery and almost always work in large groups) to get a hash with (currently) at least ~ 18.81 zeros. (I put a decimal / floating point number because the value is inconsistent.) But, I want to put the hash in a hash function and get that super hard number to calculate for a story I have where a superhero calculates this number. How do I get this string (nonce) that calculates this hash set to zero and where can I find it on a block explorer, such as blockchain.com, or on bitcoin-cli?

## root access – Individual commands work fine, but shell script generates errors

I am trying to create a shell script to configure iptables and add some routes to my device running Android 10. I have root access.

Here is the script. I called him script.sh:

#!/system/bin/sh
iptables -t filter -F FORWARD
iptables -t nat -F POSTROUTING
iptables -t filter -I FORWARD -j ACCEPT
iptables -t nat -I POSTROUTING -j MASQUERADE
ip rule add from 192.168.43.0/24 lookup 61

sysctl -w net.ipv6.conf.wlan1.disable_ipv6=1

I have a root console open via ADB, and I can execute each individual command from the script manually in the console, as follows:

… etc.

But this happens when I run my script:

and I don't really understand why.

I have limited skills with Android and Linux, so I tried to follow and combine a few examples, but I was unlucky.
https://www.pctips4u.com/2016/03/writing-shell-scripts-in-android.html
https://gist.github.com/LouWii/9626480

## rendering – Unity generates a bad mipmap, which makes voxel terrains bad

It's just a dirty ground with grass blocks on the High. (which are just blocks of earth with green tops.)

I sampled the height map of a Unity terrain, and built a voxel terrain based on it, and I divided it into pieces, the meshes of which were then combined.

Unfortunately, the the generated mipmaps are bad, the change of mipmap is easily noticeable: shade of green changes, then he becomes completely dirt color.

## magento2 – The CSV uploader generates random errors for identical entries

I get random errors for identical data.

For example: each cell of the attribute_set_column has a 9, but I get this error

Invalid value for Attribute Set column (set doesn't exist?) in row(s): 575, 577

Is there a way to fix inconsistencies like this, or at least get less vague error messages?

Thank you

## python – PySide2 generates an error, "QPaintDevice: unable to destroy the painting device while painting"

After experimenting, it seems that the painter must clean before pixmap done, otherwise you get the error. For example, it works without error.

from PySide2.QtGui import QPixmap, QPainter
from PySide2.QtWidgets import QApplication

app = QApplication()
width = 200
height = 100
pixmap = QPixmap(width, height)
painter = QPainter(pixmap)
painter.drawLine(0, 0, 100, 100)
print('Done.')

del painter
del pixmap

You can also tell painter clean without destroying it. Just tell him that you're done painting by calling end().

from PySide2.QtGui import QPixmap, QPainter
from PySide2.QtWidgets import QApplication

app = QApplication()
width = 200
height = 100
pixmap = QPixmap(width, height)
painter = QPainter(pixmap)
painter.drawLine(0, 0, 100, 100)
print('Done.')

painter.end()

There are other things that avoid error for mysterious reasons. For example, this avoids error.

from PySide2.QtGui import QPixmap, QPainter
from PySide2.QtWidgets import QApplication

app = QApplication()
width = 200
height = 100
pixmap = QPixmap(width, height)
painter = QPainter(pixmap)
painter.device()  # <-- No idea why this helps!
painter.drawLine(0, 0, 100, 100)
print('Done.')

In summary, just make sure the painter cleans up before the pixmap. I would recommend using the painter in a smaller scope than the pixmap or calling explicitly painter.end().

## ssh – dpkg generates an error when regenerating certificates for my instance on AWS

I am trying to regenerate certificates for my instance on AWS via Docker-Machine as I have to do it often enough for some reason. Suddenly I get this error after running docker-machine regenerate-certs [instance]:

Error running "DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y  curl": ssh command error:
command : DEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y  curl
err     : exit status 100
output  : E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

Execution sudo dpkg --configure -a will not make the problem go away.

Why am I getting this all of a sudden and how can I fix it?