News for hackers. Stuff that matters.

ers35

Re:Lambda.ai Is Down? on Saturday October 31, 2026 @01:07AM (#50313378)
Registrar status is "autoRenewPeriod". Did someone forget to renew the domain?

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

Re:Actually Portable Executables on Sunday February 28, 2021 @05:41AM (#26292346)
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
Re:Teensy 4.1 Development Board on Monday May 11, 2020 @12:49PM (#23144180)
Re:Ask HN: What features for an offline Hacker News reader? on Thursday March 05, 2020 @11:16AM (#22494831)
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.
Re:Ask HN: What features for an offline Hacker News reader? on Wednesday March 04, 2020 @10:43PM (#22490766)
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.

Re:Ask HN: What features for an offline Hacker News reader? on Wednesday March 04, 2020 @10:18PM (#22490649)
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.
Re:Ask HN: What features for an offline Hacker News reader? on Wednesday March 04, 2020 @04:32AM (#22482335)
That reminds me of how https://forum.dlang.org works: https://github.com/CyberShadow/DFeed It also uses SQLite.
Re:Ask HN: What features for an offline Hacker News reader? on Wednesday March 04, 2020 @04:21AM (#22482292)
You might find this interesting: https://github.com/donnemartin/haxor-news
Re:Ask HN: What features for an offline Hacker News reader? on Wednesday March 04, 2020 @04:16AM (#22482262)
Great idea. This could also be useful to post a mirror for other users if the site ends up going down.
Re:Ask HN: What features for an offline Hacker News reader? on Wednesday March 04, 2020 @12:08AM (#22481352)
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.

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

HN is a treasure trove of information. The primary way I read HN is to bookmark stories and read the comments when the discussion is complete. Others actively participate. Some get jobs via "Who is hiring?". We all use HN differently.There are ways to read HN other than this website. However, I have not found one that meets all of these requirements: - Self-hosted. - Offline access of data. ...

( Read More... | 38 comments | 57 points | on HN )
Re:New HN data dump available with over 14.5m entries on Sunday June 18, 2017 @03:44PM (#14582479)
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)

Re:New HN data dump available with over 14.5m entries on Sunday June 18, 2017 @01:19PM (#14581700)
7.27 GB.
Re:New HN data dump available with over 14.5m entries on Sunday June 18, 2017 @11:58AM (#14581212)
You can see the size of the download by clicking show all: https://archive.org/download/14566367HackerNewsCommentsAndSt...
Re:New HN data dump available with over 14.5m entries on Sunday June 18, 2017 @11:34AM (#14581073)
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
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
Re:Watch demos all day [video] on Thursday March 09, 2017 @11:49AM (#13830495)
If you're a fan of demoscene music, see Nectarine Demoscene Radio at https://www.scenemusic.net/.
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/

Re:Cloudflare Reverse Proxies Are Dumping Uninitialized Memory on Thursday February 23, 2017 @10:18PM (#13720618)
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...
Re:Cloudflare Reverse Proxies Are Dumping Uninitialized Memory on Thursday February 23, 2017 @07:14PM (#13719366)
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
Re:BeagleBone Black Wireless on Monday September 26, 2016 @03:43PM (#12584931)
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
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
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.

Older »