HNHacker News
TopNewBestAskShowJobs

tn1

155 karma · joined July 4, 2016

submissionscomments
tn1··on Ask HN: How would you make RSS feed readers better and increase adoption?
Ok sure I just made the repo public: https://github.com/nijssen/web2rss

Here's an example of a feed: feed.php?url=https%3A%2F%2Fdotty.epfl.ch%2Fblog%2Findex.html&containersel=.post-list+%3E+li&titlesel=h2&datesel=time&datefmt=Y-m-j%7C&contentsel=.excerpt

Play around with it by doing: index.php?url=https%3A%2F%2Fdotty.epfl.ch%2Fblog%2Findex.html&containersel=.post-list+%3E+li&titlesel=h2&datesel=time&datefmt=Y-m-j%7C&contentsel=.excerpt

tn1··on Ask HN: How would you make RSS feed readers better and increase adoption?
I agree with the points brought up by the other two people in this thread. Especially the unread count stresses me out!

My personal wish is to be able to create feeds (or have a reader be able to essentially present in feed form) for websites that have no/inadequate feed.

My solution is a very simple set of PHP scripts that fetch a page with cURL and then scan the DOM for a CSS selector and put each item as an entry in a feed. There are services that do this, but they're paid and I'm a cheapskate :-D Unfortunately I have to tweak the scripts every so often to handle something I hadn't considered before.

tn1··on Gradle 7.0
Huh, TIL. Still, it doesn't seem to be enabled by default on new projects (although I only tried in Android Studio, several months ago)
tn1··on Gradle 7.0
> I like that it downloads itself via wrapper script.

While I also use and enjoy Gradle, this is IMO its biggest weakness. We've all seen the recent supply-chain attacks, and ~everyone's infra is at risk here. There isn't even anything similar to Javascript's subresource integrity!

I'm sure that the people hosting Gradle are very cautious, but it only takes one slip-up...

tn1··on Exodus: Easily migrate your JVM code from Maven to Bazel
Gradle has a Kotlin Script build script option these days too. I haven't tried it yet, so I'm not sure if it's any better.
tn1··on Exodus: Easily migrate your JVM code from Maven to Bazel
At least with Groovy, most Java programs are also valid groovy programs (the converse is not true, but not too different).
tn1··on LexisNexis to Provide Giant Database of Personal Information to ICE
In my case they mailed me a piece of paper with an access code on it, which led to a site with an encrypted PDF containing my report. The password to the PDF was the same as the access code I got.
tn1··on 1993: CGI Scripts and Early Server-Side Web Programming
That's not the fault of CGI but rather of the people who wrote bad code. You can easily have the same problem in your NodeJS express app if you're careless!
tn1··on TikTok vs. Douyin: A Security and Privacy Analysis
Most smartphones tag photos with useful metadata such as location, which can be mined and sold
tn1··on TikTok vs. Douyin: A Security and Privacy Analysis
It's only disallowed by Play Store Policy, not as a technical limitation. Personally, I'm glad that it's not restricted, that way I can still write apps that use it, even if they'll never be officially published anywhere.
tn1··on Stack Overflow for Teams is now free forever for up to 50 users
Couldn't you also just hook this up to Slack search and include relevant threads into the results as well?
tn1··on How often should I rotate my SSH keys?
Does anyone know of the TPM equivalent for this? I found this [1] but when I tried it, the Windows Hello prompt only accepts USB security keys and not the fingerprint sensor in my laptop (already set up for login). My knowledge of WebAuthn is limited but their invocation of the relevant API seems like it should work for fingerprints also.

[1] https://github.com/tavrez/openssh-sk-winhello

tn1··on Tap your phone at Gold Coast bus stops to access my website
Sure, but those were the travel cards. Likely the marketing department is in charge of these signs, perhaps even outsourced to some agency, who may not consider this
tn1··on Tap your phone at Gold Coast bus stops to access my website
Many of these NFC tags may also be rewritable if the original authors neglected to lock them
tn1··on The complexity that lives in the GUI
It's probably an iOS app client for HN. CFNetwork is like their URLConnection I think. You're blocking people who want to read your article!

As for why it occurs so often in quick succession, perhaps there's a bug in the app causing it to fetch several times instead of once.

tn1··on Blog with Markdown and Git, and degrade gracefully through time
> I'd rather use my LibreOffice HTML template and simple PHP controller

Could you tell me more about this? I've had a similar idea but the HTML that LibreOffice generates is very gross

tn1··on I Still Use RSS
Certainly. Here's the whole thing: https://pastebin.com/ZZAscpyk

I host it on a generic cPanel webhost.

It's not very robust, there's no error checking, and it only grabs the first page of replies, but it's sufficient to prompt me to look at all the comments if needed.

If I ever become a celebrity then I will revisit this script :-D

tn1··on Service end for Bintray, JCenter, GoCenter, and ChartCenter
> Which serious project would use artifacts from such a place?

Plenty of them, since it's just adding a few lines to either pom.xml or the Gradle script. Sure, maybe there's rules against it in your org, but if it works then a code reviewer might say whatever, there's bigger problems

tn1··on I Still Use RSS
The feature could use some work however. I remember trying it recently and OPML support (especially when you have sub-folders) didn't really work.

Personally I use Smart-RSS [1], which is a clone of the original Opera (12) feed reader and runs as a browser extension (both chrome/ium and firefox). It has some bugs but it works well for my use case.

[1] https://github.com/SmartRSS/Smart-RSS

tn1··on I Still Use RSS
An idea I had is to just embed a pixel into the item body. You can self host it too: just analyze the apache logs (or whatever you have) for requests to that pixel.
tn1··on I Still Use RSS
Aww man, I just wrote my own replies fetcher script in php the other day before I heard about hnrss
tn1··on Nntpit: Minimalist Reddit-to-NNTP gateway
Some programming languages have them. I'm personally subscribed to Dlang (news.digitalmars.com), Perl (nntp.perl.org), and PHP (news.php.net). All of them have decent traffic every day, although most of that is likely due to the mailing list that they mirror. You can also post to the mailing lists from NNTP on all of those AFAIK.

By the way, I think it's absolutely amazing that one can access the same discussion over several protocols (NNTP, email mailing list, and often HTTP) without losing any functionality.

tn1··on The Problem with Gradle
One thing that helped me a lot is to decompile the compiled build script classes with e.g. JADX [1] to see how my code gets turned into Java, since that is what I already knew.

That was my "Ah-ha!" moment in using Gradle.

[1] https://github.com/skylot/jadx

tn1··on The Problem with Gradle
> The only projects I see reliably escaping this trap are ones with commercial backing.

Gradle is backed by Gradle, Inc. [1] who provide commercial support and presumably a lot of development as well.

[1] https://gradle.com/

tn1··on Ray Tracing in pure CMake
> CMake has working FindXyz modules for most major libraries

Unless you have that library installed anywhere that is not /usr/include Then you have to just hope and pray that there's some magic incantation that will make it find the right one (especially if your system-installed version is the wrong version and you'd really like to use the newer version you installed to $HOME)

tn1··on Show HN: Timeless HN – random good HN stories from the past
The links don't seem to work on text posts. For example, this Ask HN post: https://news.ycombinator.com/item?id=18469649 instead shows the title link as (literally):

    https://news.ycombinator.com/item?id=${el.objectID}
...but the comments link works fine.
tn1··on Ask HN: How do you send custom notifications to your phone?
Automate is an android app with many automation features, including notifications (which can open dialogs of various kinds if desired). There is a "cloud send" with an API allowing you to send arbitrary data to your phone. Not affiliated, just a happy user.

https://llamalab.com/automate/

tn1··on Oasis: a small statically-linked Linux system
I believe Apple sort of does this for iOS: developers submit LLVM IR to them and they compile it to send to end users
tn1··on Show HN: BlogScroll – Minimalist open-source personal site/blog directory
It would be beneficial to show a snippet/preview of each person's most recent post on their blog (assuming they have an RSS feed). Otherwise it's just a list of names
tn1··on The Browser – WorldWideWeb Next Application
That's actually relatively easy. The hard part is interacting with most HTML and JavaScript out there today
← PreviousPage 3 of 4Next →