Better HN
topnewbestaskshowjobs
Log inSign up

ng-henry

222 karma · joined Aug 25, 2022 (4y ago) · 30 submissions

https://henryn.xyz
Submissions

comment 10mo ago · link · parent

Who needs Google Maps and a browser when you can have interactive maps over SSH? Made with Rust, ratatui for terminal rendering on the backend, and xterm.js for terminal emulation on the front-end.

2.

Displaying Interactive Maps over SSH(terminal-maps.henryn.ca ↗)

2 points · by ng-henry · 10mo ago · 2 comments

comment 1y ago · link · parent

this looks so cool!

comment 2y ago · link · parent

congrats on the launch!!

comment 2y ago · link · parent

We aren't changing the data, just changing how the graph is displayed.

comment 2y ago · link · parent

See this comment I posted in another thread:

Yep this is only for stuff that we've crawled, so we can't detect all of your links. Because we have limited crawling resources, we rate-limit the crawling by domain so we don't get stuck in spider traps. The current visualization only shows the current state of the crawl, so it won't know about all of the posts.

comment 2y ago · link · parent

We just haven't crawled your site yet! There's a lot of links so we can't crawl them all :(

comment 2y ago · link · parent

Yep this is only for stuff that we've crawled, so we can't detect all of your links. Because we have limited crawling resources, we rate-limit the crawling by domain so we don't get stuck in spider traps.

The current visualization only shows the current state of the crawl, so it won't know about all of the posts.

comment 2y ago · link · parent

The hairball was much worse before. I used a lot of techniques from this paper [1] to make it look decent and a bunch of other heuristics based on other papers to make it look informative.

[1] https://jgaa.info/accepted/2015/NocajOrtmannBrandes2015.19.2...

comment 2y ago · link · parent

I started off with my favorite blogs and recursively explored from there based on what they linked to.

comment 2y ago · link · parent

To get their topics? I used a basic louvain community detection algorithm, then put all the URLs into GPT with some few-shot prompting tricks to get it to output a particular topic. There's some heuristics to break up giant communities / combine small communities in there too.

comment 2y ago · link · parent

Yeah I used cytoscape before but it didn't have the full customization that I wanted. Besides the performance issues, there were some problems I couldn't have solved without a custom renderer - if many lines overlap, how should their colors blend? - how to render circles so that they look nice both zoomed in / out - how to avoid it looking like a hairball graph [1]

The nice thing about a personal project is that I can do whatever I like with no constraints, so I built one that's suited for this project and fits my tastes.

[1] https://cambridge-intelligence.com/how-to-fix-hairballs/

comment 2y ago · link · parent

Nice! I looked through the logs and saw that you linked to it in this article: https://www.adithyabalaji.com/datascience/2021/05/17/Analyzi...

comment 2y ago · link · parent

I scraped my favorite blogs and made a graph from the domains that each blog links to.

You can see clusters forming of websites that talk about similar topics, like crypto, rationality, Canada, India, and even postgres!

The visualization was made entirely in webgl with some neat optimizations to render that many lines and circles.

15.

Network visualization of 50k blogs and links(graph.henryn.ca ↗)

222 points · by ng-henry · 2y ago · 56 comments

16.

Show HN: Resonant – discover and search high quality blogs(resonant.live ↗)

5 points · by ng-henry · 3y ago · 3 comments

17.

You Don’t Need to Move to Amsterdam to Be Happy [video](youtube.com ↗)

3 points · by ng-henry · 3y ago · discuss

comment 3y ago · link · parent

According to another comment, someone tried disabling Font and Cosmetic Filtering on uBlock and it worked for them?

comment 3y ago · link · parent

You can adjust the time where it says "Maximum trip duration".

comment 3y ago · link · parent

Not sure if something like this exists yet, but certainly do-able within my implementation.

For example, when choosing the best route, it penalizes every transfer by 120 seconds [1]. Therefore, a route that takes 2 minutes longer is equivalent to one transfer.

It'd be cool to have a tool where you can dynamically change these settings, and maybe even have different transfer penalties depending on if you're transferring inside a station vs walking outside.

[1]: https://github.com/econaxis/time2reach/blob/main/src/formatt...

comment 3y ago · link · parent

Hey, thanks for the feedback! Greatly appreciated.

1. Yes I think "locking" makes sense. The entire action of viewing the paths to different destinations still needs to be polished up, especially for the mobile version as well. When I tried it before posting to HN it was instant (30ms) but now it seems to be extra laggy because the CPU is maxed. I just upgraded the server from 4 -> 16 cpus, so let's hope that does something haha.

2. 100%

3. Agree as well. I chose the easiest solution when developing (and I also develop on a large monitor so it's harder to notice the occlusion), but adding a hide toggle would certainly have been better.

comment 3y ago · link · parent

Hahaha you discovered it! Originally I had waterloo because I study there, but I removed the city from the picker as I thought HN wouldn't know what Waterloo was :).

It even supports GO buses between Waterloo <-> GTA (unfortunately the max is 3 hours so you can't get everywhere just yet).

comment 3y ago · link · parent

~~getting job interviews~~

haha just kidding...I'm unsure of whether this is useful at all to transit companies, but one goal of this project is to make transit cool and help people understand their cities better.

I originally built this to help me find housing in Toronto, so deciding where to live could be another good use of this tool :)

comment 3y ago · link · parent

Experienced this problem too in Toronto, when Google Maps wouldn't give transit + bike directions (which are often much faster than transit + walk). As you know the city more though these things become intuitive and Google Maps becomes less useful.

I started using Transit App more often for the mixed-modes routing. It even supports bike shares/scooters, so sometimes it suggests new routes based on scooter -> subway -> scooter which is much faster than bus -> subway -> bus.

comment 3y ago · link · parent

Wow, this website is very pretty. It's similar to what I envisioned when I built this project, but I wanted to make a heatmap (of all possible times) rather than just an isochrone. The little "islands" of fast transit access is also what I wanted to show with my project too! It's cool to discover the little spots near train stations that are cheaper but offer an equivalent commute to the city center.

There's also https://www.chronotrains.com which was another inspiration when building this project too.

comment 3y ago · link · parent

Yes that's right. I do plan on adding other cities in the future, but these are the ones I've chosen because I've lived in them or I think they have a cool transit story.

comment 3y ago · link · parent

Oops! I was only able to test it on my iphone and the devices in the Chrome browser simulator :(. If you're willing, what phone/browser are you using?

comment 3y ago · link · parent

Yep the only cities that are supported are on the list at the top: Toronto, Montreal, Vancouver, New York, and Paris.

Adding support for other cities is a pain in the butt to find the corresponding GTFS, upload the vector tiles to postgis, etc.

29.

Show HN: I built a transit travel time map(map.henryn.xyz ↗)

255 points · by ng-henry · 3y ago · 91 comments