8 – Is there a controller return meaning "stay on current page and don't update"?

Is there a value that can be returned by a controller function, ie "stay on the current page and don't update"? Kind of like "Don't pay attention to this click."

For example, a form has "/ download" as an action. This path is defined in routing.yml to call a download () function that determines whether the user is authorized to download. If not, I want the user to stay on the same page without changing anything when they click Submit.

I know I can just redirect to the same page. I know I can intercept the click and use Ajax to find out if they have permission and then ignore the click this way. I'm not looking for suggestions for alternative solutions like this. I just want to know if there is a controller return value that means "do nothing".

I've completed many articles and tried to guess what might work (no return, zero return, empty array, empty markup, etc.) but I haven't found an answer to this question.

Why don't more computer viruses just flash the BIOS with malicious software?

Most viruses can be removed by simply wiping the hard drive and reinstalling the windows.
Why don't more viruses create a payload and flash them onto the BIOS chip? In this way, the virus can be downloaded again each time it is started, without the user being able to remove it.
Why isn't the BIOS used more often as an attack vector?

[ Politics ] Unanswered question: Why don't conservative Republicans understand that a fetus is biologically and lawlessly alive up to a point?

Up to 5 1/2 to 6 weeks, sometimes 6 1/2 to 7 weeks, a fetus does not even have a heartbeat and up to 8 weeks a fetus has no sense of feeling. All your pure flix
Scaremongering does not change facts, reality or science.
In my opinion, it should be mandatory for The Pro-Life to adopt 6 to 10 children and raise them up to their 18th year, then adopt another 6 to 10. For your information, nobody goes dizzy to get an abortion. For this question, look at all sewage rats that come from the woodwork.

How is it that travelers from France entering the UK don't have to be quarantined?

https://news.sky.com/story/coronavirus-people-flying-from-france-to-the-uk-will-not-have-to-be-quarantined-11986268

This link indicates that the UK and France have entered into an agreement that allows travelers entering France from France to enter the country without quarantine. Does anyone know why that is exactly?

Does this mean that travelers can fly to the UK via France and do not need quarantine? You could fly from the US to France and fly to the UK.

If not, does this mean that travelers can simply fly from the United States to France, stay one night and then travel to the United Kingdom and do not need to be quarantined?

Just need some help to understand why they reached this agreement.

If you don't feel your phone in your pocket

I was thinking about something recently and have you ever thought that you panicked for the first time because you didn't have your phone in your pocket and when it all started?

They say we look too much on our phones these days, but I'm 33 years old and got my first Nokia 3310 when I was 12. I used it to play a lot of snake but never had it close to me 23/4. When I was 26 I got the very first smartphone and at that time I started using my phone for everything and shortly after (1 year) I panicked when I didn't have it with me so I "use" it for something.

Strange, isn't it? I think it's mostly like I've never had a phone or a non-smart that responds more than others. Anyone who only had a smartphone cannot leave or let go of their home without it.
SEMrush

Kind of funny : p

Multiple Python Pie Charts: Legends don't show text

I'm showing 5 pie charts with separate legends. Data is in the form of a data frame that is stored in an array. The data frame contains two columns, Legend_text and Legend_value. The array after saving the data frame looks like this:

 (                  Legend_text     Legend_value    
0                    Weather Winds  80.27728  
1  Vegetation - Touching / Burning  36.47659  
2          Equipment Deterioration  30.34069,
            Legend_text              Legend_value    
0          Equipment Deterioration  26.71819  
1                     Weather Snow  14.85159  
2                          Unknown  14.64567  
3  Vegetation - Touching / Burning  13.48370  
4                    Weather Winds  12.74284  
5    Foreign Interference Vehicles   5.20347,
         Legend_text              Legend_value    
0           Equipment Deterioration  22.90246  
1                           Unknown  22.89272  
2   Vegetation - Touching / Burning  13.81959  
3     Foreign Interference Vehicles  10.59179  
4                     Weather Winds   9.22017  
5  Foreign Interference Excavations   6.27836  
6     Vegetation - Windblown Debris   5.12722  
7      Foreign Interference Objects   4.58217  
8                      Weather Rain   4.54669,
         Legend_text              Legend_value    
0          Equipment Deterioration  40.09754  
1                    Weather Winds  32.06516  
2                     Weather Snow  24.96378  
3  Vegetation - Touching / Burning  15.98534  
4    Foreign Interference Vehicles  13.83290  
5                          Unknown  13.58333,
        Legend_text              Legend_value    
0          Equipment Deterioration  38.91777  
1                          Unknown  22.34813  
2                    Weather Winds  21.65532  
3  Vegetation - Touching / Burning  16.63129  
4     Foreign Interference Animals  14.42144  
5                        Lightning  12.26881  
6    Foreign Interference Vehicles   8.34043 )

I used the following code to create the multiple pie charts:

fig, (ax1, ax2, ax3, ax4, ax5) = plt.subplots(1, 5)
ax1.pie(temp_list(0)('Legend_value'),autopct='%1.1f%%')
ax2.pie(temp_list(1)('Legend_value'),autopct='%1.1f%%')
ax3.pie(temp_list(2)('Legend_value'),autopct='%1.1f%%')
ax4.pie(temp_list(3)('Legend_value'),autopct='%1.1f%%')
ax5.pie(temp_list(4)('Legend_value'),autopct='%1.1f%%')

first_legend = ax1.legend(temp_list(0)('Legend_text'), loc = 3)
second_legend = ax2.legend(temp_list(1)('Legend_text'), loc = 3)
third_legend = ax3.legend(temp_list(2)('Legend_text'), loc = 3)
fourth_legend = ax4.legend(temp_list(3)('Legend_text'), loc = 3)
fifth_legend = ax5.legend(temp_list(4)('Legend_text'), loc = 3)

plt.show()

I have two problems with the code above:
a) The legend does not show the text
b) The legend is in the lower left corner and I want to move the legend just below it into the pie chart (without an overlapping pie chart).

Could someone please guide me where I make the mistake?

Tags – pyqt5 in python socks don't work and error crashes?

The error increases as soon as I try to send Meaasege to the bread.
The task is to send a message about the completed fields.
And displays sent and received messages in the list view window.

from PyQt5 import QtWidgets
from mydes import Ui_Form  # импорт нашего сгенерированного файла
from PyQt5.QtCore import pyqtSignal, QObject
import sys
import socket
import socks
import requests
import time
def log_uncaught_exceptions(ex_cls, ex, tb):
    text = '{}: {}:n'.format(ex_cls.__name__, ex)
    import traceback
    text += ''.join(traceback.format_tb(tb))

    print(text)

sys.excepthook = log_uncaught_exceptions

class mywindow(QtWidgets.QMainWindow):
    def __init__(self):
        super(mywindow, self).__init__()
        super().__init__()
        self.ui = Ui_Form()
        self.ui.setupUi(self)

        self.ui.BUTTONpush.clicked.connect(self.btnClicked)

        self.ui.ProxyInput.textChanged.connect(self.text_proxy)                          # +++
        self.proxy = self.ui.ProxyInput.text()

        self.ui.PortInput.textChanged.connect(self.text_port)                          # +++
        self.port = self.ui.PortInput.text()

        self.ui.TokenInput.textChanged.connect(self.text_token)                          # +++
        self.token = self.ui.TokenInput.text()

        self.ui.ChatInput.textChanged.connect(self.text_chatid)                          # +++
        self.chatid = self.ui.ChatInput.text()

    def text_proxy(self, text):                                                         # +++
        self.proxy = text
        print(self.proxy, text) 
    def text_port(self, text):                                                         # +++
        self.port = text
        print(self.port)
    def text_token(self, text):                                                         # +++
        self.token = text
        print(self.token)
    def text_chatid(self, text):                                                         # +++
        self.chatid = text
        print(self.chatid)

        self.ui.EnterText.textChanged.connect(self.text_changed)                          # +++
        self.text = self.ui.EnterText.text()

    def text_changed(self, text):                                                         # +++
        self.text = text
    def btnClicked(self):
        #self.ui.label.setText("Вы нажали на кнопку!")
        # Если не использовать, то часть текста исчезнет.
        #self.ui.label.adjustSize()
        ip = self.ui.ProxyInput.text()# = ip
        port = self.ui.PortInput.text()# = port
        api_token = self.ui.TokenInput.text()# = api_token
        chat_id = self.ui.ChatInput.text()# = chat_id
        textik = self.ui.EnterText.text()
        socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, ip, port)
        socket.socket = socks.socksocket


        print('Нажали на кнопку' )
        print(self.ui.EnterText.text(), 'введеный текс')
        h = requests.get(f"https://api.telegram.org/bot{api_token}/sendMessage?chat_id={chat_id}&text={str(textik)}")

        self.ui.EnterText.clear()


    def mostrarFuncion(self):
        minombre = self.EnterText.text()
        micontrasena = self.contrasena.text()
        print("Nombre: " +minombre + " Contrasena: ")
        self.setWindowTitle("Nombre: " +minombre + " Contrasena:")

app = QtWidgets.QApplication(())
application = mywindow()
application.show()

sys.exit(app.exec())

mydes.py

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '1.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.setWindowModality(QtCore.Qt.NonModal)
        Form.setEnabled(True)
        Form.resize(342, 380)
        Form.setMinimumSize(QtCore.QSize(342, 380))
        Form.setMaximumSize(QtCore.QSize(342, 380))
        self.BUTTONpush = QtWidgets.QPushButton(Form)
        self.BUTTONpush.setEnabled(True)
        self.BUTTONpush.setGeometry(QtCore.QRect(0, 350, 341, 31))
        self.BUTTONpush.setObjectName("BUTTONpush")
        self.scrollArea = QtWidgets.QScrollArea(Form)
        self.scrollArea.setEnabled(True)
        self.scrollArea.setGeometry(QtCore.QRect(0, 120, 341, 191))
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 339, 189))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.listView = QtWidgets.QListView(self.scrollAreaWidgetContents)
        self.listView.setEnabled(True)
        self.listView.setGeometry(QtCore.QRect(0, 0, 341, 191))
        self.listView.setObjectName("listView")
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.EnterText = QtWidgets.QLineEdit(Form)
        self.EnterText.setEnabled(True)
        self.EnterText.setGeometry(QtCore.QRect(0, 310, 341, 41))
        self.EnterText.setObjectName("EnterText")
        self.textEdit = QtWidgets.QTextEdit(Form)
        self.textEdit.setEnabled(False)
        self.textEdit.setGeometry(QtCore.QRect(0, 0, 341, 31))
        self.textEdit.setObjectName("textEdit")
        self.ProxyInput = QtWidgets.QLineEdit(Form)
        self.ProxyInput.setEnabled(True)
        self.ProxyInput.setGeometry(QtCore.QRect(60, -1, 281, 31))
        self.ProxyInput.setObjectName("ProxyInput")
        self.textEdit_2 = QtWidgets.QTextEdit(Form)
        self.textEdit_2.setEnabled(False)
        self.textEdit_2.setGeometry(QtCore.QRect(0, 30, 341, 31))
        self.textEdit_2.setObjectName("textEdit_2")
        self.PortInput = QtWidgets.QLineEdit(Form)
        self.PortInput.setEnabled(True)
        self.PortInput.setGeometry(QtCore.QRect(60, 30, 281, 31))
        self.PortInput.setObjectName("PortInput")
        self.textEdit_3 = QtWidgets.QTextEdit(Form)
        self.textEdit_3.setEnabled(False)
        self.textEdit_3.setGeometry(QtCore.QRect(0, 60, 341, 31))
        self.textEdit_3.setObjectName("textEdit_3")
        self.TokenInput = QtWidgets.QLineEdit(Form)
        self.TokenInput.setEnabled(True)
        self.TokenInput.setGeometry(QtCore.QRect(60, 60, 281, 31))
        self.TokenInput.setObjectName("TokenInput")
        self.textEdit_4 = QtWidgets.QTextEdit(Form)
        self.textEdit_4.setEnabled(False)
        self.textEdit_4.setGeometry(QtCore.QRect(0, 90, 341, 31))
        self.textEdit_4.setObjectName("textEdit_4")
        self.ChatInput = QtWidgets.QLineEdit(Form)
        self.ChatInput.setEnabled(True)
        self.ChatInput.setGeometry(QtCore.QRect(60, 90, 281, 31))
        self.ChatInput.setObjectName("ChatInput")

        self.retranslateUi(Form)
        self.BUTTONpush.clicked.connect(self.EnterText.clear)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Chat telegram"))
        Form.setToolTip(_translate("Form", "

vd

")) self.BUTTONpush.setText(_translate("Form", "Send Message")) self.EnterText.setText(_translate("Form", "text")) self.textEdit.setHtml(_translate("Form", "n" "n" "

Proxy

")) self.ProxyInput.setText(_translate("Form", "127.0.0.1")) self.textEdit_2.setHtml(_translate("Form", "n" "n" "

Port

")) self.PortInput.setText(_translate("Form", "9000")) self.textEdit_3.setHtml(_translate("Form", "n" "n" "

token

")) self.TokenInput.setText(_translate("Form", "1176023984:AAE34n2FqEgY6O1TZy1tXFM-Yg0hejlQqWE")) self.textEdit_4.setHtml(_translate("Form", "n" "n" "

chat_id

")) self.ChatInput.setText(_translate("Form", "-1001342623128"))

Javascript – Native Navigation respond: How do I get a navigation prop if I don't use hooks?

I use react navigation in my React Native project and I read this documentation where you can get it navigation Support in a component like this:

function Screen({navigation}) {
  ...
}

I don't use hooks. My components look like this:

class Screen extends Component {
  ...
}

What I want to know:

When I use that class Syntax, how do I get it navigation Support?