hasattr function checks to see if an object has an attribute - a
fairly straightforward and sensible purpose. When I used it, however, it caused
some very subtle problems that were tricky and unintuitive to debug.
I've been "off the grid" for more or less the past six months. In case you were wondering why, here's an itemized list of my daily routine, expressed through my inner monologue.
Django assigns permissions to any user-submitted files it saves. If you don't explicitly set what these are, it uses an operating system default - which, in most cases, is
0600. If you're unfamiliar with unix-style file permissions, that means the following:
It's been over a week, but I'm sure you can all understand why I've been too busy to write this post.
Over years of using bash, I've customized my prompt configuration to fit my preferences. I value a minimal appearance, and I prefer to convey information with colors when possible. I also like it if information is hidden until relevant.
For a full list of posts, feel free to check out the Archive!