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

Stop making so much sense


I would be highly surprised if most of these bots are already running JavaScript, I'm confused by this unquestioned notion that they don't.


It only challenges user agents with Mozilla in their name by design, because user agents that do otherwise are already identifiable. If Anubis makes the bots change their user agents, it has done its job, as that traffic can now be addressed directly.


This has basically been Wikipedia's bot policy for a long long time. If you run a bot you should identify it via the UserAgent.

https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Found...


It's only recently, within the last three months IIRC, that Wikipedia started requiring a UA header

I know because as a matter of practice I do not send one. Like I do with most www sites, I used Wikipedia for many years without ever sending a UA header. Never had a problem

I read the www text-only, no graphical browser, no Javascript


What if everyone requests from the bot has a different UA?


Success. The goal is to differentiate users and bots who are pretending to be users.


Then you can tell the bots apart from legitimate users through normal WAF rules, because browsers froze the UA a while back.


Can you explain what you mean by this? Why Mozilla specifically and not WebKit or similar?


Due to weird historical reasons [0] [1], every modern browser's User-Agent starts with "Mozilla/5.0", even if they have nothing to do with Firefox.

[0]: https://en.wikipedia.org/wiki/User-Agent_header#Format_for_h...

[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/...



CMV: HN should just automatically replace x links with xcancel


They do, but they aren't very good. PHP is very fast, but unfortunately Wordpress is carefully designed to make it very slow.


Yes but if someone asks me for a source that Paris is the capital of France, I will go find a legitimate source for that information to include in my response, not hallucinate a source and steadfastly claim it is real.

AIs not remembering the source for the original fact is not the problem, the problem is that asking them to make sure their claims are supported by sources does not preclude them from making up the sources themselves.


Free provisioning: If you do not pay the developer fee an app installed via Xcode will work for 7 days. Afterwards the app on your phone will *stop working*, and you must open Xcode on your Mac again, and push a new build to your phone if you want to keep using it.

Paid provisioning: If you have paid the developer fee, a build will expire based on the amount of time left before that payment renews, so if you build and install an app a month before your developer fee renews, that build of the app (that you installed via Xcode) will stop working in 1 month.


We're stuck between two mafia families :-(


A.K.A. Digital Feudalism.


I've been doing it that way for years on the free account, never seemed like a bother to me. I usually have a tweak I want to make to the code anyway. But I suppose some might find it inconvenient.

In any case, to say you can't put your own apps on your phone without paying a fee is incorrect, which is the comment I was responding to.


Saying what youve said above and knowing full well how this works, but failing to mention a crucial fact like this is deceptive.


I guess some are more bothered by this than others. A bit harsh to claim there is deception going on. Like I said, I’ve never paid Apple a fee and I have several original apps on my iPhone.


This is like calling a Tesla car a spacecraft because one got launched by a rocket. It's like saying you're a free man in prison because you don't want to go anywhere. All the apps you've made either can't connect with other people or require them to be local and visit once a week or be able to jump through the same hoops as you and own a machine to install the app. "I can install an app but my definition of an app is it only works for 7 days and then it needs to be installed again"

At best you can install a demo.

I'm immortal because except for the few ways I can die, like old age, I'll live forever.


These are the most hyperbolic metaphors I have seen on HN within at least the last few months.


Thanks and of course, it's used to highlight how ridiculous you are being in considering an app, that doesn't function as an app, an app.

The tesla car is a vehicle traveling through space, technically a spacecraft it's just literally not what anyone thinks of when they mean spacecraft.

The prisoner reference is an allusion to the usual philosophical debate on how small man made borders need to be to be considered a prison, here's a nice blog post on some parallel thought's about it[1]. The main point being most people don't believe the borders of a country a prison or if they were stuck in a state, or smaller country, a district, a building, a room. If it's only a building then what of prison camps? refugee camps? A city with its' one road washed out? Australia's a fine island to be stuck on but marooned on a desert island and suddenly people are saying they're trapped.

You are literally saying a 7 day limit on a piece of software working still makes it count as what people consider an app and have been arguing that people are wrong for calling apple out on not letting you install your own apps for free. You're as technically correct as saying you can use a tesla car as a spacecraft.

[1] https://philosophersmag.com/philosophical-conversations-in-p...

edit: just remembered the immortal thing, fair enough, but then again highlanders are considered immortal even though chopping off their heads kills them.


> highlanders are considered immortal even though chopping off their heads kills them.

It’s not worth further of my time to debate with this level of irrationality.


https://www.imdb.com/title/tt0091203/

I can see why you have come to very fragile conclusions if your default is to assume what others say is irrational rather than researching or simply asking when you don't understand it (googling what you quoted verbatim even gives the context).


But is /dev/null web scale?


Yes, /dev/null can even power sites like zombo.com


What’s the I/O throughput of /dev/null ?


Single client, I'm getting ~5GB/s, both on an 8-year-old intel server, and on my M1 ARM chip.

However with a single server, it doesn't perfectly linearly scale with multiple clients. I'm getting

1 client: 5GB/s

2 clients: 8GB/s

3 client: 8.7GB/s


I'm easily reaching 30GB/s with a single client:

    dd if=/dev/zero of=/dev/null bs=1M status=progress
A second dd process hits the same speed.


My artisanal architecture design uses writes with a few characters and uses unix pipes:

    yes | pv > /dev/null
I hope that in my next rewrite I can advance to larger block sizes.


Interestingly I tried this as well and was disappointed with the results:

  yes $(printf %1024s | tr " " "y") | pv > /dev/null
About the same throughput as letting yes output a single character. I guess Unix pipes are slow.


> I guess Unix pipes are slow.

Or string concatenation, or pipeviewer.


yes doesn't do string concatenation, at least not in the loop that matters. It just prepares a buffer of bytes once and writes it to stdout repeatedly.

https://github.com/coreutils/coreutils/blob/master/src/yes.c



What's the best hardware for running a /dev/null instance for production?


A single resistor at ground voltage.


That doesn't support expected features like 'stat /dev/null'.


I usually do a kubernetes cluster on top of VMs. But sometimes when I really want to scale the standard cloud server less platforms all support /dev/null out of the box. (Except for Windows...)


> Except for Windows...

copy c:\file nul

It's been there since DOS or more likely CP/M :)


   set "nul1=1>nul"
   set "nul2=2>nul"
   set "nul6=2^>nul"
   set "nul=>nul 2>&1"
just saw this in a .cmd script


Still need an adapter library though! Fortunately there are about 7 competing implementations on npm and most of them only have 5-6 transitive dependencies.


How did you measure this? Do you know that /dev/null is the limiting factor, or could it be the data source that is limiting?


You start dealing with Heisen-throughput at that point, it goes as high as you can measure.


reference for the unaware: https://youtube.com/watch?v=b2F-DItXtZs



Do you think they just got a smartphone for the first time a few months ago?


> There is, you just have to accept that Solana goes down with it.

And nothing of value was lost.


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

Search: