2d
revised Evaluating dictionary value during json serialization
edited title
Nov
19
comment Evaluating dictionary value during json serialization
I was about to use this as the accepted answer, but came up with a shorter one, which actually makes use of a generator.
Nov
19
answered Evaluating dictionary value during json serialization
Nov
19
comment Evaluating dictionary value during json serialization
damn, can't use this, as I need to be able to pass _gen into a function, as _gen will exist before the dict has been created. This will force me to use spicavigo's answer. I'm sorry for removing the accept.
Nov
19
comment Evaluating dictionary value during json serialization
Why on earth did this get a downvote, it's perfect.
Nov
19
asked Evaluating dictionary value during json serialization
Nov
18
answered Making a mouse scroll work in non-active windows?
Nov
9
comment Python: Ignore 'Incorrect padding' error when base64 decoding
Try base64.urlsafe_b64decode(s)
Nov
9
answered Python: Ignore 'Incorrect padding' error when base64 decoding
Nov
8
comment MongoDB: How to change the type of a field?
Watch out, I tested this with Robomongo, and this resulted in type 1: double. Had to use new NumberInt()
Nov
7
comment Why does overflow:hidden not work in a <td>?
@romkyns you should add your reference as an answer, as it is the real solution to this problem.
Nov
6
comment OpenVPN and DNS. How to?
This doesn't seem to have any effect in my case. Could it be because I'm not using DHCP? I must use a static setup, but I'd like the DNS to get overridden anyway.
Nov
6
awarded Nice Question
Nov
6
comment Change OpenVPN server's tun0 address from xxx.xxx.xxx.1 to xxx.xxx.xxx.11
Yep, this one works. The other solution gave me issues with pinging from the client into subnets attached to the server, so this is a quick and dirty way to do it. I added the solution to the question. Thanks.
Nov
6
awarded Editor
Nov
6
accepted Change OpenVPN server's tun0 address from xxx.xxx.xxx.1 to xxx.xxx.xxx.11
Nov
6
comment Change OpenVPN server's tun0 address from xxx.xxx.xxx.1 to xxx.xxx.xxx.11
I was about to use this, but I got into problems with pinging from the client into some subnets attached to the server, so I went with the other answer. But I will move over to this long-term. Also, sorry for de-accepting your answer, since the other one is more accurate to the question (but not neccessarily better). The upvote is for the subnet recommendation.
Nov
6
revised Change OpenVPN server's tun0 address from xxx.xxx.xxx.1 to xxx.xxx.xxx.11
added 445 characters in body
Nov
6
awarded Scholar
Nov
5
awarded Commentator
1 2 3 4 5