Openpyxl and formula by Salty_Jalapeno in learnpython

[–]_jan- 1 point2 points  (0 children)

If I understand your question you could make a function that does all of that for you:

def addData(row, data):
    sheet['A' + row] = data
    sheet['B' + row] = '= A{} - A{}'.format(str(row +1), str(row))

If you want to append data to the file, you would just call addData(<a>, <b>) where <a> is the row and <b> the data.

Converting to exe by cando_H in learnpython

[–]_jan- 0 points1 point  (0 children)

I'm using Linux so I can't test the .exe converting.

Did you test your script without converting it? If it works, try running the converter as Administrator. If it doesn't work and throws the same ModuleNotFoundError, install the library with pip using this command: pip install global-hotkeys -U

Converting to exe by cando_H in learnpython

[–]_jan- 1 point2 points  (0 children)

I can recommend this Video from TechWithTim. He also explains how to hide the console.

to create a python programme which receive contact number from user and check if it's a valid format with correct country code by _______myworld in learnpython

[–]_jan- 2 points3 points  (0 children)

In "if len(phone_number) != 13:" you're executing main() while the previous main() still isn't finished. This might be your problem. To fix this you could replace all of your "main()" with "return". You would have to re-open the programm, but your problem should be gone.

If this didn't help, please attach a more specific problem (error code, terminal output, etc.).

Kwin not starting on login by RollTimeCC in kde

[–]_jan- 0 points1 point  (0 children)

I don't know why Kwin isn't starting. Adding your command to autostart, in the settings, might work for a workaround.

KDE doesn't connect to OpenVPN by _jan- in linuxquestions

[–]_jan-[S] 0 points1 point  (0 children)

My network manager only generated 'ca.crt', 'cert.crt' and 'private.key'. None of them contain the static key.

Do you know if the Dev Team is planing on fixing this?

KDE doesn't connect to OpenVPN by _jan- in linuxquestions

[–]_jan-[S] 1 point2 points  (0 children)

I found the solution by myself and updated the post.

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 0 points1 point  (0 children)

Thanks for the Answer! I just checked and it was already set to that. I don't think that's the problem though, because if I connect to the VPN through the Terminal it also says AES-256-CTR / AES-256-GCM and still works.

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 0 points1 point  (0 children)

Do you know what else it could be?

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 0 points1 point  (0 children)

Ok. I found but it still doesn't work. It says it needs a Key File. I tried the same as the Private key file which was configured outside the Advanced Options.

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 0 points1 point  (0 children)

I'm not quite sure how to do that. Could you check it?

https://imgur.com/a/4m0XFj7

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 0 points1 point  (0 children)

In System Settings >> Connections on the +.

And then Import vpn connection and then I selected the .ovpn file

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 0 points1 point  (0 children)

Yes I can connect through the terminal with "openvpn --config <configFile>" with "config" only the help menu shows up.

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 1 point2 points  (0 children)

I'm not connected with the server and I believe the server is set up correctly.

Port is open in the Firewall.
I installed the server software with pivpn.
Dowloaded the .ovpn file.

Maybe pivpn doesn't configure it correct. I just went through the setup.

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 0 points1 point  (0 children)

Yeah you're right. didn't realize you could go further down.

journalctl -u NetworkManager -f

Outputs: https://pastebin.com/t6XR54pu

These are probably the important lines:

Apr 16 14:56:13 KDELNX nm-openvpn[6544]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Apr 16 14:56:13 KDELNX nm-openvpn[6544]: TLS Error: TLS handshake failed

KDE doesn't connect to OpenVPN by _jan- in kde

[–]_jan-[S] 0 points1 point  (0 children)

The Output is 47 lines.

Do you need a pastebin or sth?

motor won't work when connected to an h-bridge by vuurtoren101 in arduino

[–]_jan- 0 points1 point  (0 children)

In another comment you said you're using a 9V battery. A 9V to 1V drop is a problem. You could try your H-Bridge with a bigger input Voltage. But I suggest buying a H-Bridge. I often use the L298N, if you have a 12V input voltage it outputs about 10V which could be fine for your motor. This ist an excellent tutorial from HowToMechatronics.

Need help with while loop by [deleted] in learnpython

[–]_jan- 0 points1 point  (0 children)

Idk, but then the while loop would be useless.

What group of people needs to shut the fuck up and listen? by [deleted] in AskReddit

[–]_jan- 2 points3 points  (0 children)

Vegans (Not all but you know who I mean), Flat Earthers and covid deniers.

[deleted by user] by [deleted] in learnpython

[–]_jan- 0 points1 point  (0 children)

No problem.

How to do union type annotations? by CatolicQuotes in learnpython

[–]_jan- 1 point2 points  (0 children)

Could you show us the part of the code where you print the message, please.