Hacker Newsnew | past | comments | ask | show | jobs | submit | szszrk's commentslogin

one thing I always forget about, is that you have a whole network of 127.0.0.0/8 , not just one IP.

So you can create multiple addresses with multiple separate "domains" mapped statically in /etc/hosts, and allow multiple apps to listen on "the same" port without conflicts.


Unlike IPv6 localhost that's just the [::1] address. I'm not sure if you can abuse IPv4 in IPv6 to do the same

I never thought of using localhost like that, I'm surprised that works actually. Typically, if you want a private /8 you would use 10.0.0.0/8 but the standard 192.168.0.0/16 gives you a lot of address space ( 255^2 - 2 IPs (iirc) ) too.

..actually this is very weird. Are you saying you can bind to 127.0.0.2:80 without adding a virtual IP to the NIC? So the concept of "localhost" is really an entire class A network? That sounds like a network stack bug to me heh.

edit: yeah my route table on osx confirms it. very strange (at least to me)


That was deliberate. Works on Linux and Windows as well. I think this is the current RFC: https://datatracker.ietf.org/doc/html/rfc5735

You can do:

python3 -m http.server -b 127.0.0.1 8080

python3 -m http.server -b 127.0.0.2 8080

python3 -m http.server -b 127.0.0.3 8080

and all will be available.

Private network ranges don't really have the same purpose, they can be routed, you have to always consider conflicts and so on. But here with 127/8 you are in your own world and you don't worry about anything. You can also do tests where you need to expose more than 65k ports :)

You have to also remember these are things established likely before even DNS was a thing, IP space was considered so big that anyone could have a huge chunk of it, and it was mostly managed manually.


I didn't really know the mechanism of how this worked but if you check your resolv file you might find that the nameserver IP for your localhost is 127.0.0.53 . It is so in recent Linux distros. (Probably a systemd thing)

Nowadays it's called "residential IP proxy".

A lot of shady shit under that term. Used by all the harmful services - scammers, AI crawlers... :)


Now that you mention it, I never used those, but I always did wonder how they do those.

Someone googles "free VPN" so they can watch region locked videos and now their connection is a part of that network too. They may or may not realize that this is the arrangement.

Or his kid uses a free game with a lot of grinding, not knowing that the child's phone is now technically part of a botnet.

I would like to know more about this. Got a source?

It's hard to find a source that isn't paywalled, but fortunately it's covered in a paper: https://www.xiaojingliao.com/uploads/9/7/0/2/97024238/ndss21...

Can you buy a generic TV nowadays?

All that I have available in typical stores are smart TVs. The rest is some display panels meant for commercial installations (like big ad screens, multiple, working as one), which are only available online at a premium price.


Yes, but they can be a bit tricky to find. You can find them used. You can use a computer monitor.

Ultimately, I'm planning for a world where the technological decline continues (ie, technology continues to be something which its users do not own or control) and things like adblock just don't work anymore. When that finally happens, I'm honestly going to be watching DVDs, VHS, reading books, etc. This is a game of cat and mouse and if I'm pushed far enough I'm just going to check out of the system completely. TV is not so valuable that I'm going to let some sleazy company push me around.


> Yes, but they can be a bit tricky to find. You can find them used. You can use a computer monitor.

Sir, that's basically a no.

A TV is a specific device. It has many functions that TV monitor seldom has, or implements poorly. Like speakers. Or rich inputs and outputs, like multiple hdmi and antenna. Or a proper remote, a dvb-t tuner. Or play media on it's own when connected via USB. Or DLNA (I had devices far from modern smart-tv that could do that, in the past).

Monitor or panel can mimic some of this, with effort on your side, but not really.


You use use cases will vary, but I'll bet what 90% of people do can be duplicated with a laptop or an Apple TV.

Sceptre makes dumb TVs. I have a monitor for them that's many years old - it was a good value and has held up.

Thanks, they don't seem to exist in EU.

I think closest are some Sharp models, and their screens are great. But that also requires hunting for commercial models mean for large displays.


"game words" in English got a bit ridiculous nowadays. While there is around 170k in usage there are over a million known and over 8k added yearly. Apparently.

Bryndza is Central European/Eastern European product, it even means "poverty" in Polish. Wikisources say it's of Romanian/Italian origin.

But if it's commonly used in a certain language, it becomes a native word.

Their results page for different languages have some interesting plots, especially when you compare languages:

- https://www.myvocab.info/pl/results-pl

- https://www.myvocab.info/en/results-en

So based on that data:

- EN has over a million known words and is growing fast, a 12 year old knows around 10k words

- PL has around 140k words in popular dictionaries, a 12 year old knows around 40k words

I wonder how much of that is sample size and grammar interpretation (definition of word) related.


I have no such thing, but a few comments later another redditor gives a bit different perspective:

https://www.reddit.com/r/interestingasfuck/comments/1pfdkfs/...


Which is not surprising, as those two have very different priorities.

- OSM want's a detailed and reliable map.

- Google maps tries to either sell your data to clients, or make you buy from them.

Their business data is their priority for maps. You can see that clearly when you look at location history changes over past decade or so. It used to be actual user location history and it was glorious. Now it's "near what businesses you were more or less, help us rate them".

It's a great moment to again remind about existence of low-friction tools that you can use to add business data (among others) to OSM, like StreetComplete app, available on F-droid and Google Play :)

https://streetcomplete.app/?lang=en

In my region OSM business data starts to be on par with google, better (more up to date) sometimes.


If you just want to add POI data, then Every Door is a good choice that also works on iOS

CoMaps would be a good map app, and it will also display when POIs and opening hours were last confirmed (the only OSM app to do so AFAIK)

https://every-door.app https://www.comaps.app


I have recently tried to navigate with OsmAnd a few times where I live. Once I ended up in the wrong location, and a few times I have had to look up the business in Google Maps to find their address.

I would love to use OsmAnd more. StreetComplete sounds great and looks like a nice way to be able to contribute fixes to OSM. Thanks for the recommendation!


It is smooth and kind of "I'm doing my part!" but with low friction.

> a few times I have had to look up the business in Google Maps to find their address

Exactly my point - Gmaps taught us to expect *businesses" on maps. Not addresses. Pins and stars, instead of streets and numbers. Arrival time and traffic, instead of distance, elevation and road type (size).

I use gmaps still, mostly for businesses, but to actually know where I am I have better options. Gmaps hides most of typical map features - you see less of trees, water, buildings, height elevation. On Comaps/Osmand you suddenly can correlate map with things you see (without street view! :P).


they must have fixed it. Works for me, including new sessions on separate browser.


Still doesn't work for me in a new session separate browser. I get the output but I also get this message

  Output does not match expected lines - try again
Does it give you the clue for the next level? Can you or someone else share a screenshot or something so I can compare to find out what I'm missing?


For clean session it goes to the next level.

There is some mess if you already finished the thing, and then use url to particular level on a clean session. For me it looked like I am on level 2, but site expected answers to 1.

When I start from scratch with proper link (main page) simple:

grep laugh *

works


Worked. Thanks!


When you look at the actual list of those 4, it's not as hard to understand any more.

It's Firefox, Dillo, Links2 and Netsurf GTK :)

Dillo is something I'd love to daily drive like I did 20 years ago, but it would just fail on most modern websites. But it's what, 2MB in total (binary+libraries)?

Links2 is text terminal oriented. No modern browser can do that natively at all. All competition is even smaller (w3m, lynx). Plus links2 can run in graphics mode, even on a framebuffer, so you can run it without X server at all.

So Fx is the only "general purpose" browser on that list, but is just too big for old hardware.


I have a mobile 4g router from them and it supports physical esim. I even managed to get their suggested card for cheap. They have some support in their firmware to set it up, so you can do that fully on the router.


oh, I didn't noticed that at first, but you are right.

What I did noticed is so many fast videos right next to text. I didn't even bother to read it (without firefox read mode) because it makes me a bit dizzy.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: