Thanh DK

Singapore, Singapore

thanhdk.com

Age: 28

A geek who loves learning programming languages, playing computer games and practicing martial arts.

Aug
14
awarded Good Answer
Jul
8
awarded Notable Question
May
10
comment How to get information about an image (picture) from the Linux command-line?
You need to install ImageMagick for it to work. I mentioned that it uses ImageMagick behind the scene, didn't I?
Feb
3
awarded Yearling
Feb
3
awarded Yearling
Jan
16
comment Why aren't python nested functions called closures?
@user193130 I guess it is a pedantic matter. My point is that Christian Garcia's answer can cause misunderstanding as people can read the answer as they can't modify data with Python's closure.
Jan
9
comment Why aren't python nested functions called closures?
"While the inner function can read the outer function's variables, it cannot write them." - This is inaccurate as per unutbu's comment. The problem is that when Python encounters something like x = ..., x is interpreted as a local variable, which of course is not yet defined at that point. OTOH, if x is a mutable object with a mutable method, it can be modified just fine, e.g. if x is an object that supports inc() method which mutates itself, x.inc() will work without a hitch.
Nov
20
awarded Nice Answer
Oct
2
awarded Popular Question
Sep
12
answered Flask Blueprint can't find static folder
Sep
2
awarded Necromancer
Aug
25
revised How do I set resources allocated to a container using docker?
added 156 characters in body
Aug
25
revised How do I set resources allocated to a container using docker?
better layout
Aug
25
revised How do I set resources allocated to a container using docker?
Add lxc configuration feature
Aug
6
revised How do I set resources allocated to a container using docker?
more accurate cpuset option
Aug
6
answered How do I set resources allocated to a container using docker?
Jul
2
awarded Curious
May
9
awarded Supporter
Apr
26
awarded Autobiographer
Apr
13
awarded Guru
1 2 3 4 5