Better HN
topnewbestaskshowjobs
Log inSign up

ers35

609 karma · joined Oct 28, 2011 (15y ago) · 98 submissions

Eric R. Schulz (ers35)

https://www.ers35.com/

Submissions

comment 3w ago · link · parent

Registrar status is "autoRenewPeriod". Did someone forget to renew the domain?

Edit: It's back and status now includes "renewPeriod".

comment 7mo ago · link · parent

Use the trigram tokenizer: https://www.sqlite.org/fts5.html#the_trigram_tokenizer

comment 3y ago · link · parent

See also: https://phoboslab.org/log/2023/02/qoa-time-domain-audio-comp...

comment 5y ago · link · parent

Maybe Cosmopolitan could be used with luastatic[1] to compile a Lua program to an "Actually Portable Executable":

  CC="" luastatic main.lua
  # Compile main.luastatic.c with Cosmopolitan Libc
[1] https://github.com/ers35/luastatic

comment 6y ago · link · parent

Mirror: https://media.libreplanet.org/u/libreplanet/m/a-prerecorded-...

comment 6y ago · link · parent

Mirror: http://archive.is/ewDJq

comment 6y ago · link · parent

I've been focusing on reading, but it looks like there is interest in writing too. The HN API doesn't support writing, so the username and password has to be stored. It's important that reading keeps working even if HN changes their backend in a way that breaks writing. I'll think about it.

comment 6y ago · link · parent

You can search previous comments: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

comment 6y ago · link · parent

HN itself is fast, but the comparison I'm making is with readers that use the HN API. See how getting each comment requires an additional API request: https://hacker-news.firebaseio.com/v0/item/22481199.json?pri...

It's more about the consistency of operating on data local to the user. For example, see this comment referencing how HN paginates threads at 250 comments for performance reasons: https://news.ycombinator.com/item?id=22231055 A local database does not have that issue.

comment 6y ago · link · parent

There have been many HN related websites posted over the years, but a lot end up as dead links. A self-hosted version does not depend on a third party. Another reason is to minimize the round trip latency of contacting a central server. Consider users without a good connection to the server.

comment 6y ago · link · parent

That reminds me of how https://forum.dlang.org works: https://github.com/CyberShadow/DFeed It also uses SQLite.

comment 6y ago · link · parent

You might find this interesting: https://github.com/donnemartin/haxor-news

comment 6y ago · link · parent

Great idea. This could also be useful to post a mirror for other users if the site ends up going down.

comment 6y ago · link · parent

I prototyped this in Qt 2 years ago: https://ers35.com/files/hackernews-qt.png

1) It is possible to keep the whole site offline. A database from 2017 is 9 GB: https://archive.org/details/hackernews-2017-05-18.db I think a 2020 DB could be less than 20 GB.

2) My focus is on reading, not writing. Local favorites make sense. Maybe with importing public favorites. A user can set their name without logging in.

3/4) SQLite does the heavy lifting here.

15.

Ask HN: What features for an offline Hacker News reader?

57 points · by ers35 · 6y ago · 38 comments

comment 7y ago · link · parent

https://en.wikipedia.org/wiki/Little_Bunny_Foo_Foo

comment 9y ago · link · parent

My DB covers from https://hacker-news.firebaseio.com/v0/item/1.json?print=pret... (10/09/2006 at 6:21pm UTC) to https://hacker-news.firebaseio.com/v0/item/14372035.json?pri... (05/18/2017 at 11:58pm UTC)

The dump posted claims to cover from 1 to 14566367 (06/16/2017 at 3:03am UTC)

comment 9y ago · link · parent

7.27 GB.

comment 9y ago · link · parent

You can see the size of the download by clicking show all: https://archive.org/download/14566367HackerNewsCommentsAndSt...

comment 9y ago · link · parent

See also: A dump of the stories, comments, and users from the Firebase API as a SQLite database with a full text search index: https://archive.org/details/hackernews-2017-05-18.db

21.

VFsync – secure file synchronization system(vfsync.org ↗)

4 points · by ers35 · 9y ago · discuss

comment 9y ago · link · parent

I'm working on a tool that maintains an up to date archive of Hacker News and a companion tool to browse and search it. I'm not ready to release yet, but here is a dump of the stories, comments, and users from the Firebase API as a SQLite database with a full text search index: https://archive.org/details/hackernews-2017-05-18.db

comment 9y ago · link · parent

If you're a fan of demoscene music, see Nectarine Demoscene Radio at https://www.scenemusic.net/.

comment 9y ago · link · parent

Yes. One can identify the IP address of the origin server behind a reverse proxy if the server responds to direct requests in a way that identifies itself. See: https://cloudpiercer.org/

Two steps towards obscuring the origin server include requiring that the HTTP Host header is set and only responding to Cloudflare IP ranges: https://www.cloudflare.com/ips/

comment 9y ago · link · parent

I used Censys to search for the IPv4 addresses of servers serving matching TLS certificates: https://censys.io/ipv4?q=443.https.tls.certificate.parsed.na...

comment 9y ago · link · parent

Hacker News uses Cloudflare: http://bgp.he.net/dns/news.ycombinator.com#_ipinfo

Add the following to your hosts file to bypass Cloudflare and access HN directly:

  50.22.90.248 news.ycombinator.com

27.

OVH to establish North American headquarters and first U.S. data center(governor.virginia.gov ↗)

187 points · by ers35 · 10y ago · 94 comments

comment 10y ago · link · parent

See also "A BeagleBone on a Chip" for discussion about the Octavo Systems OSD3358 system-in-package used on this board: https://news.ycombinator.com/item?id=11697719

comment 10y ago · link · parent

You may be interested in a tool I wrote that builds standalone executables: https://github.com/ers35/luastatic

For the following program:

  iup.Message('test', 'hello world')
Build the program to a standalone executable:

  luastatic example.lua /usr/lib/x86_64-linux-gnu/liblua5.2.a -I/usr/include/lua5.2 libiup.a libiuplua52.a libiupcontrols.a `pkg-config --cflags --libs gtk+-3.0` -lX11
1234