All posts tagged #python all posts RSS-feed


I've started a draft about PyCharm 5 months ago. I really love PyCharm, it's the best! Everything is just so smooth. But it's hard to summarize what makes it great, and I don't want to list all the little details. I used Eclipse before, which wasn't bad, and there's not really any giant thing in PyCharm that Eclipse lacked (stability maybe). Rather, it's the hundred little details that add up to a much better experience. I also used Wing for... full post»
by Mark,

Dory backup removal

Daily backups, even if incremental, can fill up your disk space pretty quickly. So I've added some functionality to Dory to remove old backups. I wanted a way to keep a number of backups, with recent backups being closer together and past ones further apart. I've ended up using the reciprocal time-distance to each neighbour, multiplied by the square root of the age, as a 'redundancy score'. This way, if there are close neighbours (e.g. .two backups made on the... full post»
by Mark,

Minimal logging server & clients

Having solved backups, I attacked the the next important thing that gets in the way of building actual functionality: error logging. I've had some trouble setting up Sentry (possibly more my fault than Sentry's, but it does much more than I need so it's more work). I also tried Loggly which doesn't need server setup, but it captured mostly irrelevant syslog stuff and I'd need to pay a lot to keep logs for more than 7 days. So I figured... full post»
by Mark,

Reset static files cache each version (Django)

Ideally, you'd want your static files to be cached so that clients don't need to request them at all. In Apache, you can achieve this with: ExpiresActive on ExpiresDefault "access plus 1 year" Header append Cache-Control public But you also want the clients to request the new version as soon as anything changes. Since this can't be achieved with cache headers (they'll not request the files, so they never get the header), you can change the name instead. There's a... full post»
by Mark,

The blag!

#imadethis, #coding, #tools, #python, #bash, #machine-learning, #ubuntu, #music, #django, #focus, #fortran, #backup, #chinese, #charity, #learning, #data-analysis, #effecive-altruism, #games, #travel, #order-of-magnitude, #R, #javascript, #personal, #cross-validation, #china, #data-science, #discussion


  1. Rainbow colormap in javascript @Mark The post has been expanded to include non-rainbow colorm...
  2. "Invite" someone to ssh into your machine without port forwarding or firewall changes @Mark Added details about how to use the established tunnel in...
  3. Rainbow colormap in javascript @Mark Now finally with color-coded source!
  4. Bye Make, hello SCons (Fortran) @Mark For SCons' own comparison against alternatives, have a l...
  5. Ubuntu macros @Mark Macro locks have been made more reliable, to prevent any...
  6. Dory backup scripts @Mark I've added some functionality to remove old backups! htt...
  7. Ubuntu macros @Mark Updated after moving the files to
  8. Concentration noise @Mark Sorry if you're in China and can't access Youtube. If th...