HackerTrans
トップ新着トレンドコメント過去質問紹介求人

k7d

no profile record

コメント

k7d
·11 か月前·議論
That’s just not true. I’m from Europe but lived in Boulder for several years. For example this shooting (1) happened 5 min walking distance from my home. My kids’ school had several lockdowns due to gun-related stuff in the neighborhood. Something like that is unimaginable in Europe, and big part of why we moved back.

1) https://en.m.wikipedia.org/wiki/2021_Boulder_shooting
k7d
·15 年前·議論
For example what's the difference between "filter[queries][]" and "q" arguments for http://www.thriftdb.com/documentation/rest-api/search-api? The way I understand, q does a simple keyword matching on all fields while "filter[queries][]" is more like SQL "where" query. In that case, what operators are supported?
k7d
·15 年前·議論
Original HN bookmarklet already works that way http://ycombinator.com/bookmarklet.html

However - I don't always want to upvote a post just because I want to check the discussion. Published this with an assumption that I'm not the only one.
k7d
·15 年前·議論
There is already JSONP support, see callback argument:

http://www.thriftdb.com/documentation/rest-api
k7d
·15 年前·議論
So after some quick hacking I created a new HN bookmarklet based on the new API:

http://kaspa.rs/hn-bookmarklet/

If the current URL is added, it will go straight to discussion thread (without voting). If not, it will ask if you want to submit it.
k7d
·15 年前·議論
This is cool, but the API looks a bit cryptic. Is there a way to simply lookup an item by URL?

Edit: Nevermind, figured it out: http://api.thriftdb.com/api.hnsearch.com/items/_search?prett...