Marius Illmann

1

votes
0

answer
3

views

suse openssl undefined symbol: private_CAST_set_key

I want to create a ssl certificate on my suse system. When i try to this like this: openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 I get the following error: openssl: symbol lookup error: openssl: undefined symbol: private_CAST_set_key
Marius Illmann
4

votes
2

answer
68

views

Exist a way in Python to write lambda like objects, like in js

In JS I can define an Object like this: foo = {'foo': 42, 'bar': function(){/* do somthing */}} Is there a way to do the same thing in Python ?
Marius Illmann
1

votes
1

answer
44

views

Change html page and parse websocket

I work with JS websockets and try to create a login together with a python websocket server. I want that the user sends his passwort and name to the server and get redirect to my main.html when the login is correct. The thing is; when I redirect to the main page, my websocket disappears. When I try...
Marius Illmann
1

votes
3

answer
34

views

Python3 f string alternativ in Python2

Mostly i work with Python3. There can i write this print(f'the answer is {21 + 21} !') output: the answer is 42 ! But in Python 2 f strings not exist. So is this the best way ? print('the answer is ' + str(21 + 21) + '!')
Marius Illmann