HNHacker News
TopNewBestAskShowJobs

ers35

609 karma · joined October 28, 2011

Eric R. Schulz (ers35)

https://www.ers35.com/

submissionscomments
ers35··on Lambda.ai Is Down?
Registrar status is "autoRenewPeriod". Did someone forget to renew the domain?

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

ers35··on Modern SQLite: Features You Didn't Know It Had
Use the trigram tokenizer: https://www.sqlite.org/fts5.html#the_trigram_tokenizer
ers35··on The Quite OK Audio Format [pdf]
See also: https://phoboslab.org/log/2023/02/qoa-time-domain-audio-comp...
ers35··on Actually Portable Executables
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
ers35··on A prerecorded message from Richard Stallman
Mirror: https://media.libreplanet.org/u/libreplanet/m/a-prerecorded-...
ers35··on Teensy 4.1 Development Board
Mirror: http://archive.is/ewDJq
ers35··on Ask HN: What features for an offline Hacker News reader?
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.
ers35··on Ask HN: What features for an offline Hacker News reader?
You can search previous comments: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
ers35··on Ask HN: What features for an offline Hacker News reader?
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.

ers35··on Ask HN: What features for an offline Hacker News reader?
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.
ers35··on Ask HN: What features for an offline Hacker News reader?
That reminds me of how https://forum.dlang.org works: https://github.com/CyberShadow/DFeed It also uses SQLite.
ers35··on Ask HN: What features for an offline Hacker News reader?
You might find this interesting: https://github.com/donnemartin/haxor-news
ers35··on Ask HN: What features for an offline Hacker News reader?
Great idea. This could also be useful to post a mirror for other users if the site ends up going down.
ers35··on Ask HN: What features for an offline Hacker News reader?
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.

ers35··on HN What rhyme is this?
https://en.wikipedia.org/wiki/Little_Bunny_Foo_Foo
ers35··on New HN data dump available with over 14.5m entries
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)

ers35··on New HN data dump available with over 14.5m entries
7.27 GB.
ers35··on New HN data dump available with over 14.5m entries
You can see the size of the download by clicking show all: https://archive.org/download/14566367HackerNewsCommentsAndSt...
ers35··on New HN data dump available with over 14.5m entries
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
ers35··on Ask HN: Is Hackernews still using the file system as database?
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
ers35··on Watch demos all day [video]
If you're a fan of demoscene music, see Nectarine Demoscene Radio at https://www.scenemusic.net/.
ers35··on Cloudflare Reverse Proxies Are Dumping Uninitialized Memory
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/

ers35··on Cloudflare Reverse Proxies Are Dumping Uninitialized Memory
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...
ers35··on Cloudflare Reverse Proxies Are Dumping Uninitialized Memory
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
ers35··on BeagleBone Black Wireless
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
ers35··on IUP Portable User Interface: Multi-Platform Toolkit for Building GUI in C or Lua
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
ers35··on Show HN: Modserver – HTTP application server supporting 11 languages
Bindings are included: https://github.com/ers35/modserver/tree/master/src/api

The Python module does not require one to use an FFI: https://github.com/ers35/modserver/blob/master/src/example/p...

More idiomatic wrappers can be written later, but the FFI based bindings have to come first.

I updated the readme to make this more clear.

ers35··on Show HN: Modserver – HTTP application server supporting 11 languages
Here is a list of the 11 supported languages: C, C++, CGI, D, Go, Haskell, Lua, Nim, Python, Ruby, and Rust.
ers35··on Friends don't let friends do Java
See the original: https://ptrthomas.wordpress.com/2006/06/06/java-call-stack-f...
ers35··on Symantec Set to Buy Blue Coat Systems in $4.65B Deal
See also from 17 days ago: "Symantec Issues Intermediate CA Certificate for Blue Coat Public Services" https://news.ycombinator.com/item?id=11781915
Page 1 of 3Next →