Better HN
topnewbestaskshowjobs
Log inSign up

peedy

211 karma · joined Aug 11, 2011 (15y ago) · 52 submissions

Submissions

1.

OpenBSD 6.3 released(marc.info ↗)

212 points · by peedy · 8y ago · 57 comments

comment 9y ago · link · parent

To upgrade to a new snapshot :)

comment 10y ago · link · parent

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 10y ago · link · parent

Is there a reason for recursive queries not being the first choice?

I had versioning problem to solve recently, and recursive CTE was my first choice (did take some time to wrap my head around but was also performant enough), https://github.com/recipehub/recipehub-service/blob/master/d...

comment 10y ago · link · parent

Are these your keys? https://github.com/mashlol/notify/blob/master/node/notify.js

comment 10y ago · link · parent

> 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.

7.

Ask HN: Resources to build VMs for an Opensource project

4 points · by peedy · 10y ago · 2 comments

comment 11y ago · link · parent

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 11y ago · link · parent

Yeah, says that at the bottom of the page.

comment 11y ago · link · parent

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 11y ago · link · parent

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 11y ago · link · parent

Isn't light years a unit of distance?

13.

A freenode IRC server compromised(blog.freenode.net ↗)

2 points · by peedy · 12y ago · discuss

comment 12y ago · link · parent

People even write their dotemacs in Org mode and use babel in their init.el to run it

https://github.com/thomanil/dot-emacs/blob/master/thomanil.o...

comment 12y ago · link · parent

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).

comment 12y ago · link · parent

On the website, they are pre rendered into images. Example, http://www.google.com/get/noto/images/samples/noto-sans_en_4...

comment 12y ago · link · parent

I just installed TST and it lost all my 4 pinned tabs but could pin them again with no issues.

comment 12y ago · link · parent

Seems like their background workers were down too. My colleague sent a pull request before the went down and got the notification just a few minutes ago.

19.

Walking Desk(kushaldas.in ↗)

48 points · by peedy · 12y ago · 41 comments

comment 12y ago · link · parent

Has anybody been able to make a priority queue (with a single worker) in celery?

Eg, execute other tasks only if there are no pending important tasks.

comment 12y ago · link · parent

As making a policy involves no communication with Amazon, I used to just create a policy on the fly for every upload request that said "allow upload to this specific key(path)". The key would be unique to every upload request. Once the upload is done, I'd just start processing the upload and move it where it belongs.

Thus, in plaintext you'd have to put only your AccessID and a policy which would expire after a few minutes.

EDIT: typo

comment 12y ago · link · parent

> At least my Mac recognizes and uses a second monitor when I plug it in, unlike the bloody Fedora 19 box that I use at work. And don't get me started on that second graphics card that the system can't figure out how to use! And the wifi Just Works(tm), unlike the Ubuntu laptop that I had before that.

You can write a udev rule for that

comment 12y ago · link · parent

The screen shots were leaked a few hours before the keynote started. So, they might have seen it coming.

24.

Jobs Page(frappe.io ↗)

1 points · by peedy · 12y ago · discuss

comment 12y ago · link · parent

Sheet music sounds like assembly.

comment 12y ago · link · parent

Many people from Europe do that. It does sound cooler.

comment 12y ago · link · parent

On SSD?

comment 12y ago · link · parent

What are your thoughts on Neal Ford and Stu's Clojure from inside out series?

comment 12y ago · link · parent

In my experience it is the other way round. I run Linux 3.13 on Macbook pro (Early 2011). OSX takes 2~4 seconds, linux takes ~1 second.
12