skysight-inc/HackerNews huggingface dataset:
Ask HN: Cloudflare for Hosting Code Files?
I'm interested in using Cloudflare to serve up some code modules for others to download. I'm having some difficulty figuring out which product I should be looking at; I'm not even 100% sure that Cloudflare is where I should be looking in the first place:

- R2 is supposed to be their version of S3. But the materials are focused on storing large blobs, etc, which sounds like it might be overkill. I also would want my resources to end up on a CDN, and I don't know if R2 is the route you're supposed to take for that.

- Pages: obviously intended for serving a static site, but I'm wondering if it could be used/would make sense to use for smallish non-web text files

- Cloudflare CDN: it's hard to tell whether this is something you use directly, or whether it gets layered on top of other things like Pages and R2. It has some sort of API, but I couldn't find anything in the docs about how to "just upload a file".

This isn't really my area so any help is appreciated. Just want to serve up some files, distribute them via CDN, and occasionally push up new ones from CI.
> Wouldn't the Android platform be worth a lot more if they gave developers freedom to explore different strategies and business models

Android as a platform is completely at odds with Google as a business, and will continue to be so as long as Google's is only revenue stream is online advertising.
Sounds like fucking hell on earth. I’ll fight to death to maintain private property rights.
Sure. And fifty years worth of other studies have shown its' effectiveness. This is meaningless noise in the absence of meta analysis.
In all seriousness, it worked last time. What's stopping him from trying again?
It's fascinating how many times the Prolog cut operator has been borrowed into parsing. It shouldn't be surprising, probably, given how easily lookahead leads people down the path of some backtracking mechanism or other for ease of implementation, and how ingrained the idea of a cut to stop backtracking is if you've ever been exposed to Prolog...
I replaced the Open in Chrome step with Open in Safari. That should use the default browser either way, which I was unsure of when I created it.

Does that help?
The GIL is for internal python state. Not for atomic preservation of python data types.

I learned very early on that python threads should be treated like C threads, and therefore should be avoided. Also there really isn't a performance gain to using threads (other than maybe waiting for IO completion).
Unicode did worse than that. They added code points to esrever the direction of text rendering. Naturally, this turned out to be useful for injecting malware into source code, because having the text rendered backwards and forwards erases the display of the malware, so people can't see it.

Note that nobody needs these code points to reverse text. I did it above without gnisu those code points.
"analytics [..] customer service [..] marketing" are more than just minimal server logs.
i used to use it, i ended up disabling it because i realised i was going to procrastinate anyway and this was the most productive site to procrastinate on ;p
> How can anybody be blackmailed with publicly available info?

By pointing out to people who haven't gone looking for that info, or who might have come across it but not connected it to you, that it is indeed about or by you.
That's actually cool! I feel it's great they do some introspective work, no matter the company size.
I find the relational API very easy and intuitive to work with. What do you not like about it?
Okay, so what happens if the world gets into pre 1990's state? Will the internet function as normal? Can US be a refuge for banned Russian content and Russia be a refuge for banned Western content? For Android it's a bit straightforward but Apparently Apple commands ~30% of the Russian smartphone market[0], what happens to Russian iPhone users if American companies are prohibited from doing business in Russia?

[0] : https://www.statista.com/statistics/262174/market-share-held...
it's mongodb all over again

gotta get dem sweet sweet benchmarks, to hell if we're persisting garbage
Well, the Vegas loop is just a short, expensive, small tunnel that took a very very long time to build (more than 1 year per mile) in a straight line with all permitting sorted out, so I'm not sure what it proves except incompetence.

Look at some Swiss alpine tunnels or the underwater Channel tunnel if you want to see advanced tunnel boring technology.

Edit: to give exact numbers: boring for LVCC Loop started on November 15 2019, and the tunnels opened to the public in April 2021, 1.5 years later for 1.7 miles (2.7km) of tunnel. In contrast, boring for the Channel tunnel started in June 1988, and the tunnels were opened to freight trains in June 1994 - 6 years for 50 km (31 miles) of much larger undersea tunnels, which allow transport up to 160km/h in real use (200 km/h being the highest designed speed). That's 5.2 miles per year, versus TBC's 1.1 miles per year, comparing like with like.
Tangentially, Kalman filters were first applied in... tracking flying objects:

https://en.wikipedia.org/wiki/Kalman_filter#History
> there are two level of security with Face ID, but I haven't seen any decent explanation yet

Easy answer: confidence intervals
Social sciences are all a sham, now think about the trillions of dollars of government spending that are based on that same sham science as justification. People wonder why so many government programs fail, it's because they are built on a rotten foundation

https://en.wikipedia.org/wiki/Replication_crisis

>How can we conclude anything at all about the general population using a sample of Stanford kids?

it's a well known problem that is rarely brought up, WEIRD bias. Most social science research participants are college students being bribed with extra credit or gift cards

https://en.wikipedia.org/wiki/Psychology#WEIRD_bias
Study shows journalists tend to temper–not exaggerate–scientific claims
> you turn it off and on again

That would be a power failure. Kernel crash is not equivalent to that.

System reboot doesn't entail power failure either. The disks may be powered by an independent external enclosure (e.g. JBOD). All they see is that they stopped receiving commands for a short while.
I guess the main issue here is the lack of Google Play Services, which may mean that you can’t reliably implement certain features or reproduce conditions that your end users will face. Perhaps it doesn’t matter for a dev-only phone, but if the device doubles up as a test device, this may be where a non-Google ROM falls down. I’d be wary of using CalyxOS as a base for a dev phone, for this reason.
If anything we're going to see a de-ubranisation as more jobs go perma-remote. Get over it.
I can imagine the time may seem wasted to a developer if your focus is on personal productivity (which seems to be the case since you cite your productivity rather than your team's productivity), but the lost value is in making sure what you're building is aligned with what your customers need.

The fact that you're talking about "spec" here, in addition to your focus on individual productivity makes me wonder if what you're doing fits in with what's described in what I linked (the Agile Manifesto).

Agile isn't for every team, and you can succeed despite not communicating, but there are risks and costs involved that, if made explicit, would not likely create costs you or your team would actually want to pay.
To say this more explicitly, even the idea of waiting for the second marshmallow being the "preferred" behavior is somewhat classist.

Sounds more like the test is just testing for an adaptation that happens to be well suited to living in a upper-middle class to wealthy environment. If resources are scarce, the kid that takes what they can get now rather than trusting other people will do better in the long run.
Is this the definition of whataboutism?
Good point that it depends.

What if reason developers aren’t “shipping” is due to project scope and/or lack of resources (e.g. number of developer hours and/or expertise level of developers)? From my experience, this is the most likely issue. Difficult for developers to resolve that by increasing the granularity of tasks.
Not sure if you're being sarcastic but it was liberal icon FDR who sent these citizens to prison camps.
Is this that much 0easier to implement on a grill for White Castle due to their burgers being cooked on a griddle in a grid formation vs others that press/cook burgers individually? I wonder how it handles exceptions like no slimy onions.
The comparison isn't far off. The distinction however is that Russia is acknowledging that the forces they are sending are indeed Russian troops, rather than hiding behind the fiction that they are local separatist paramilitary.

Instead they are hiding behind the propagandistic "peacekeeper" framing.
Isn't that their main argument? They say "today's journalists are bad at journalism" not "journalism is bad". "Fake news" with a negative intonation must imply that it's bad to fake something so important?
the logging part is obvious, but in their privacy policy they say the share it, which is something they should get consent on.
I completely agree with everything you said, except:

> Cloud specific services and persistent storage will be the main issues, but that's something you can't really get around.

That isn't wrong necessarily, but products like OpenShift Container Storage (OpenShift Data Foundations now actually) can provide a common API to erase that problem. ODF uses Ceph under the hood so you can get block, file, and (s3 compatible) object storage no matter where you are.

Cloud specific services are indeed a problem, but many of them have open source/portable solutions that you an choose that can run everywhere. Such as Fission, RabbitMQ, Kafka (not my favorite), Argo CD, etc. Really the things I run into most now are things like AWS machine learning services.
Yep, one after another decision reeks of short termism. There's a dictator who believes the world as some zero sum system right at our borders and we are burying our heads in sand.
To quote Apples man pages:

> Specifically, if the drive loses power or the OS crashes, the application may find that only some or none of their data was written.
There needs to be an escalation path. Sanctions should always be able to get worse, or else Russia would no longer have anything to lose, and Europe won't have anything left to threaten with. Once in that situation it would be a recipe for a hot war between NATO and Russia.
It's not an argument. The GP claimed that the act of freezing bank accounts was unprecedented in Western societies; I showed that there is, in fact, ample precedent.

There isn't even remotely a due process concern here, in the US constitutional sense (which isn't the Canadian sense!) of the phrase. When someone receives a SAR, their bank account is frozen and they are given steps to liquidate the account. No deprivation of property, the necessary condition for due process, occurs.
I think the parent is saying that the SQL example is simpler and easier to read.
For me no animations (except a real loading circle) is a plus point. I don't want to spend time looking at a fake circus display of taxes. Its form filling, I just want to fill data and be done with it.
"Cooler Master also announced a 4K 160 Hz version of this monitor, the GP27-FUS. This device is also cheaper than other mini LED monitors. With similar specs to the GP27-FQS, save for a bump to HDMI 2.1, the monitor will cost $1,100 when it debuts alongside its lower-res sibling."
Call it what you want, it is abuse of power by the government to deal with a peaceful protest that has a vast support if not the majority of the people

https://www.youtube.com/watch?v=S_GnClytz34
One important note for residents of California and New Jersey: if you live in one of these states you must pay state tax on HSA contributions and gains, the same as if it were a regular taxable account. Your HSA is still tax-advantaged at the federal level though
LOL at "peacekeepers." He is essentially saying that this is Russia now, so that he's only deploying internal security personnel.
- father, where does Russia end?

- there, where they start hitting you, my son
Apple gets lots of hate but one thing that's rarely mentioned is how the Play Store prevents you from monetizing a successful app. They do this by making it impossible to turn a free app into a paid app

A normal app goes through these stages:
1- Free. If it's good, it will receive good reviews, which will make it more popular
2- Paid

The first stage is an investment on the part of the developer. He invests his time and effort. But many developers only find out that it's impossible to move to (2) once it's too late (reviews can't be ported to new apps)
Well, and 95% of heroin users don't mind needles and constipation. It's trivially true that the people who end up using a product are mostly the people who are content with its tradeoffs. That doesn't say much at all about whether those tradeoffs are ultimately optimal.
I always liked the embedded system model where you get flash hardware that has two operations -- erase block and write block. GC, RAID, error correction, etc. are then handled at the application level. It was never clear to me that the current tradeoff with consumer-grade SSDs was right. On the one hand, things like the error correction, redundancy, and garbage collection don't require the attention from CPU (and more importantly, doesn't tie up any bus). On the other hand, the user has no control over what the software on the SSD's chip does. Clearly vendors and users are at odds with each other here; vendors want the best benchmarks (so you can sort by speed descending and pick the first one), but users want their files to exist after their power goes out.

It would be nice if we could just buy dumb flash and let the application do whatever it wants (I guess that application would be your filesystem; but it could also be direct access for specialized use cases like databases). If you want maximum speed, adjust your settings for that. If you want maximum write durability, adjust your settings for that. People are always looking for that one size fits all use case, but it's hard here. Some people may be running cloud providers and already have software to store that block on 3 different continents. Some people may be an embedded system with a fixed disk image that changes once a year, with some temporary storage for logs. There probably isn't a single setting that gets optimal use out of the flash memory for both use cases. The cloud provider doesn't care if a block, flash chip, drive, server rack, availability zone, or continent goes away. The embedded system may be happy to lose logs in exchange for having enough writes left to install the next security update.

It's all a mess, but the constraints have changed since we made the mess. You used to be happy to get 1/6th of a PCI Express lane for all your storage. Now processors directly expose 128 PCIe lanes and have a multitude of underused efficiency cores waiting to be used. Maybe we could do all the "smart" stuff in the OS and application code, and just attach commodity dumb flash chips to our computer.
They can start by mentioning this history at the FDR memorial in Washington, DC.
You're talking about metaprogramming. I've seen C code that does metaprogramming with the preprocessor.

If you want to use metaprogramming, you've outgrown C and should consider a more powerful language. There are plenty to pick from. DasBetterC, for example.
that is actually a competition between AI and collective public intelligence, where the first being a pure engineering problem with no limits for growth has been improving exponentially over mere decades while the second has been improving really slow over the observable millennia. So, i'd bet on AI :)
I am very far removed from swift community so have 0 insight just shared my recollection of interactions on swift forums
Predictive is synonymous with correlated in a research setting, but lay use of that word seems like it runs the risk of implying causation. This may be the primary problem with the Standford Marshmallow experiment, right? - that delayed gratification is highly correlated with socioeconomic status, which is well known to be an excellent predictor of future socioeconomic status.
All: if you're going to post here, can please make sure you're not posting a shallow dismissal? Those are the quickest and easiest reactions to post, but they're repetitive and boring. This site is supposed to be for interesting conversation, and that requires new information—not things we've all heard before.

Hint: if you're making a strong, large statement—e.g. an emphatic claim about an entire category of things—then it's most likely a shallow comment.

https://news.ycombinator.com/newsguidelines.html
Ding ding, round 1.
Don't worry, he'll get cancelled soon enough. That way, there wont be a problem giving good guy government more power in the future.
>there's even a night club

There's actually 3 :D Umbracle, the one that exists open air under the awnings is great in the summer time air. It only runs during the warmer months as the locals can't stand the 20C night temperature.

Valen-bici is super convenient, they are pretty heavy steel framed machines but everythings flat so it's not a great bother.

The real gem is the extensive bike lanes that stretch upwards of 20km out from the city. Every main road has a bike lane. Electric scooters were the real ticket and I had one while I was there. ALmost went a year carbon free transport.
I've actually run into some data loss running simple stuff like pgbench on Hetzner due to this -- I ended up just turning off write-back caching at the device level for all the machines in my cluster:

https://vadosware.io/post/everything-ive-seen-on-optimizing-...

Granted I was doing something highly questionable (running postgres with fsync off on ZFS) It was very painful to get to the actual issue, but I'm glad I found out.

I've always wondered if it was worth pursuing to start a simple data product with tests like these on various cloud providers to know where these corners are and what you're really getting for the money (or lack thereof).

[EDIT] To save people some time (that post is long), the command to set the feature is the following:

nvme set-feature -f 6 -v 0 /dev/nvme0n1

The docs for `nvme` (nvme-cli package, if you're Ubuntu based) can be pieced together across some man pages:

https://man.archlinux.org/man/nvme.1

https://man.archlinux.org/man/nvme-set-feature.1.en

It's a bit hard to find all the NVMe features but 6 is the one for controlling write-back caching.

https://unix.stackexchange.com/questions/472211/list-feature...
I'm not sure I know how to square "Working software over comprehensive documentation" with "well defined stories with great documentation" and "clean specs upfront".

Those sounds incompatible, I'd even go so far as to say.

Imagine throwing out every process you just described (minimal specs and plans, no contracts, no documentation, avoiding as many processes and tools as possible), and instead replacing them with conversations. You'd have those conversations (dev to dev, dev to PM, PM to customer, dev to customer), spend a few days building software, and then have those conversations all over again, continuously looping until the product is either "done" or something more important came up to work on.

Would you call that team "agile" or "waterfall"?
Very interesting, I didn’t know PostScript was capable of this kind of software - my interest was especially piqued when he mentioned it’s homoiconic. It’s a shame these hypermedia efforts had a tendency of being ignored and unloved by their parent corporations, they would likely flourish as open-source projects. There’s something about wholly object oriented systems that is incredibly promising, though only within the bounds of the system itself, which is why “worse is better” led to the Web and X11 winning.
Here’s a 2011 meta analysis that reports that DRD (delayed reward discounting — basically putting lower importance on delayed gratification and instead putting greater importance on immediate rewards) is highly associated with addictive personalities:

https://addictions.psych.ucla.edu/wp-content/uploads/sites/1...

> Conclusions These results provide strong evidence of greater DRD in individuals exhibiting addictive behavior in general and particularly in individuals who meet criteria for an addictive disorder.
OS crashes do not cause acknowledged writes to be lost. They are already in the drive's queue.
I had an NVMe controller randomly reset itself a few days ago. I think it was a heat issue. Not really sure though, may be that the motherboard is dodgy.

This shit does happen.
My poorly informed impression is that the key challenge of any data driven investigation is striking the balance between how hard something is to measure and how close it is to what you really want to know.

The marshmallow test was so appealing because it was incredibly easy to perform and seemed like it was pretty close to a measure of the kind of self-control and discipline that's needed to succeed in a variety of life's most important challenges.
It didn't work last time. Last time everyone knew the were Russian soldiers or mercenaries. Ukraine didn't oppose them because a) they held a key road (a bottleneck, really) into Crimea and b) significant parts of the Ukrainian military on the peninsula defected to the Russian side. This time, there's no bottleneck and there will probably be no or only few defectors. This time, it's going to be a shooting war, sadly.
The habit-forming pain,

Mismanagement and grief:

We must suffer them all again.
That seems like an awfully terrible design if the user-controlled equipment is responsible for rate-limiting instead of the CMTS itself.
I assume the comment (and early downvotes) was related to the fact that one could take this as commentary on SCOTUS shooting down some COVID vaccination mandates (along party lines). Which admittedly is what mostly triggered my thinking about the point.
> how much loss of FLUSH'd data should be expected on power loss for

0%

In enterprise you are expected to expect lost data, but only if your drive fails and needs to be replaced, or if it's not yet flushed.
> On personal anecdotes, I've used the same internet identity across all platforms and it's not hard to locate my real life identity from there...since like 20 years ago when I got on the internet.

Me too.

> So all the good reputation and bad reputation followed me through, and surprised me in best and worst way.

Not so much for me, AFAIK. I think quite simply, pretty much nobody could be bothered to look for it.
What is the endgame here for Putin? It seems like for the most part that no one is going to do anything to stop him.
Will Russia even be able to get chips needed for pretty much everything?
This. I've been using multiple 1440p displays since 2010, and actually had a 2560x1600 LED back in 2004.

I'd do anything for 5K, 120Hz, Mini-LED or Micro-LED displays with 10-bit color and HDR. I don't want 4K: 5K has over 77% more logical area.

They don't have to be cheap. I'll pay well. I just want them to exist. I've been waiting over a decade at this point!
Isn't saying that energy sector won't be touched a few days before Putin's latest declaration showing our hand too much though.
That's because the Novorossia republics are now recognized as sovereign states by Russia.