Recent submissions

Comment · 9 years ago
To upgrade to a new snapshot :)
Comment · 10 years ago
South bay from? My summer gig is in downtown Mountain View and I stay really close to San Jose Diridon station. Looking at the schedule, the train ride can be as short as 15 minutes (SJ to MTV) and the rents here are ~$3K/mo for a 2 bedroom apartment.
Comment · 10 years ago
Comment · 11 years ago
Comment · 11 years ago
> to compile the Python lxml library.

If you have to do it very often, I've had good success with keeping compiled python wheels around.

Comment · 11 years ago
One case where HTML won't work as a TeX replacement is when you have to think in terms on a page. For example, if you're making a resume and don't want it go over one page, it becomes a tedious process to "change CCS, Print preview, repeat".
Comment · 11 years ago
Yeah, says that at the bottom of the page.
Comment · 11 years ago
I was talking about local dev install where you can activate postactivate script is run after you source activate or call workon. In prod, you will not be activating the env but running executables directly from the env.

ie, your process manager will call /path/to/env/bin/gunicorn and in this case, you'll have to configure the env variables here (in the process manager (supervisor)) config.

Comment · 11 years ago
If you're on a django project, most probably you're using virtualenv. I had a habit of just putting environment variables in the postactivate script.
Comment · 12 years ago
Isn't light years a unit of distance?
Comment · 12 years ago
Comment · 12 years ago
I think you can setup nginx proxy with cache. Unfortunately, that's easy only for public files and authenticated requests won't save you much (for that you can also write a small script to authenticate yourself if there's a cache hit).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton