skysight-inc/HackerNews huggingface dataset:
China limits gaming time for <18yo to one hour a day on Fridays, Saturdays, Sundays and public holidays (title was cutted because of < character)

Beijing has issued a new rule limiting the gaming time for players aged under 18 to between 8pm and 9pm only on Fridays, Saturdays, Sundays and statutory holidays, marking the country’s most stringent measure yet to tackle gaming addiction among young people.

The National Press and Publication Administration (NAAP), China’s top watchdog for gaming and other forms of online media, formally issued the rules to combat gaming addiction among teenagers, according to a report by state media outlet Xinhua.

The previous rules, introduced in 2019, limited the play time for minors to no more than 90 minutes each day and 3 hours on statutory holidays.

While the direct impact on Chinese gaming companies such as Tencent Holdings and NetEase may be limited as players under 18 currently account for only a small part of revenues, over the longer term the new rule could gradually erode the country’s player base.

The notice also states that companies must strictly implement the real-name registration and login system in their games and not provide access to video games for those who are unregistered.

The gaming unit of Tencent said in a statement on Monday that it supports the new regulation and will implement the new requirements as soon as possible.

“Many parents have said that the gaming addiction problem among teens and children has gravely affected their ability to learn and study as well as their physical and mental health, even causing a series of societal problems,” a spokesperson for NAAP told Xinhua.

NAAP said that gaming companies are the main entities responsible for stopping children from becoming addicted to games. Beijing’s heightened scrutiny of the industry in recent months has already hit the stock prices of Chinese gaming giants such as Tencent, NetEase and Bilibili.

After a state media article described video games as “spiritual opium” earlier in August, Tencent, the world’s largest gaming company by revenue, lost US$43 billion from its market valuation in a matter of hours. Tencent has lost more than US$400 billion in value since a high in February.
In their recent quarterly reports this month, Tencent and Bilibili both emphasised that they have faithfully implemented the anti-addiction measures required by state authorities and that minors have become a small portion of their overall user base.

Tencent said that players under 16 accounted for just 2.6 per cent of its gross gaming receipts in China, with those under 12 accounting for just 0.3 per cent. Bilibili said that minors contributed only 1 per cent of the company’s gaming revenue.
They must be thinking in terms of job security...
You realize stock markets are at ATH because of the printing of money right?
To Learn More Quickly, Brain Cells Break Their DNA
everyone wants to underpay the talent and there's only limited amount of talent

the price floor for really talented engineers is also high so high in the sense most startups can't afford those 300-400k salaries.
We need better stories for our future
Renaissance of offline gaming and piracy/cracking happening in China right now.
Not as warm but it is also very visble at times in the straight of juan de fuca and some places in the puget sound of washington state.
It's hard to get a job because there are a lot of charlatans out there and it's often very hard to get rid of them once hired. Even worse is hiring someone merely mediocre and not actively harmful.

That said of course the modern coding interview is I think only very loosely correlated with quality.
Even the first case isn’t often that nice, because it’s only a fraction of the time that you’re not busy.

For example I went to work by local train for a while, but in practice it was a 10 minutes walk, a 5 minutes wait, a 5 minutes ride, a 10 minutes wait, a 20 minutes ride, then a 10 minutes walk. So in 1 hour there was only 20 minutes “free”.
Too late to edit, but I made a significant mistake in the Go code: v[3] would always be a runtime error unless we explicitly modify *ref inside the function (ref = append(ref, 4), in which case v[3] == 4 would always be true).

This happens regardless of resizing, since append() at best modifies the array that *ref/v points to, but it does not modify *ref/v itself; and slices in Go have a pointer to an underlying storage AND a start and end index into that storage (multiple slices can point to different parts of the same storage).

Created here an example that shows how this interacts with resizing:

https://play.golang.org/p/UJ-t63bKyJJ
E.g. their own API https://docs.unity3d.com/ScriptReference/Behaviour-enabled.h....

Idiomatic C# is PascalCase public members. Look at the BCL. Yes, the capitalization of fields in Unity determines the flavor of property, buy that's exactly what attributes were designed to do.
It is not just that AWS, Azure etc. are eating your lunch, it is that the big enterprise customers are actively asking them to eat your lunch. Enterprise customers hate dealing with multiple vendors and they are always looking to reduce the number of vendors and legal agreements they have --- so they encourage the bigcos to deliver more services.

I have been in meetings where I was asked to explain why we can't just use AWS Redis instead on using RedisLabs. Since I was a big fan of Redis , I had to painstakingly explain with cost projections of the implications of using AWS services for this solution.
I've never seen this question posted by anyone who had either a CS degree or any nontrivial amount of experience.

It might be hard to get a FAANG job, but it's not hard to find a $100k legacy code janitor job at any old Fortune 1000 in a flyover state.
It's clearly not the "only sensible one" given that no other language works the way Go does here.

In C++ this is UB, which is bad, but in keeping with the rest of the language.

In Rust, the compiler will not allow you to do any operation that would re-allocate the backing store whilst there are outstanding references into it.

In most other languages (eg. Java, C#, python, etc.), you can't get a pointer/reference to an array index, only a pointer/reference to the item at that index at the time you looked.

Go's decision here is especially weird given that this same thing is seemingly prevented for maps (why the inconsistency?).

Given the three goals of memory-safety, "simplicity" and performance, it's true there are not many other options Go could have chosen, but personally I think Go's interpretation of "simplicity" is incredibly warped: it's a kind of superficial simplicity that leads to programs that are much more complicated to reason about.
Interesting. As an aside the Remarkable runs Linux too and it's somewhat hackable, but its main application is closed source, as is the drawing of the screen (accomplished with temperature dependent waveforms via software).

Its hardware specs are much worse but it's thinner at 4.7 mm.

I appreciate this new product but if it were dependent on me I would have invested in color eInk instead of powerful CPU with an NPU. I guess the build on the community providing a nice environment and handwriting recognition (otherwise I cannot explain the NPU)
Paying with Crypto:List of Companies That Accept Crypto as Payment
Not (2020), (2002):

https://en.wikipedia.org/wiki/Anthropic_Bias_(book)
Cyber Security Best Practices and Ghosting Yourself
Perfect! Thanks for the link, I was thinking that was going to be about the supported OS status only and didn't think to check it. Looks like all of the boxes I needed are checked except PCIe which already has a tiny patchset in linux-next :D.
Hacking the Life Hack
That seems cheap for tailoring in the US. I don't really wear suits or even blazers any longer but, when I did, I'd either get them custom-made in Asia or extensively tailored in the US. Haven't done that for ages though.

I was mostly referring to day-to-day wear that's $10-40 or so off the rack.
One fundamental thing, in my opinion, revolves around the concept of "validation". Sometimes I see vulnerability assessment reports that claim some vulnerability was introduced by "insufficient validation" or "improper validation" or something like that.

Most of the times (let's exclude embedded/iot which can be different, I'm talking about "classical" web applications or API backends) you don't need to validate arbitrary data. You need to use the proper API to handle such data.

If an input string contains '); DROP TABLE Students; -- you don't need to "sanitize" the string. You just need to use the proper function (usually provided by your db driver), and it will quote it for you. There's no input that can create a SQL injection.

Similarly, when you output something for the web, always use a context-aware templating engine (e.g. Thymeleaf) so that the appropriate escaping function is used when rendering an HTML element, javascript, an attribute, whatever. XSS is impossible, unless "unsafe" functions (those that dump the raw string into the text) are used.

For sure, if any "active" content (not just an opaque string that needs to be rendered back somehow) is passed to the application (e.g. a direct reference to an object which may require an ACL to be visualized), then you need to "validate" the input. But it is very important to understand the difference between "validate something which is strictly related to your application logic" and "use the appropriate data manipulation functions for arbitrary data".
New smb3 kernel server (ksmbd)
I think this article gets close, but glosses over one of the major issues in software dev hiring: the filtering process is all wrong.

Front line recruiters tend to be non-technical, and can't pattern match for good candidates outside of very narrow criteria. (ex: They won't know that a person with strong C# skills will likely be just fine with Java.)

Just getting your resume in front of actual people doing the hiring is hard. My experience is that if you want to make it easier to hiring talented software engineers you need to make it easier to get the right candidates in front of the actual hiring team.
Tiny deep learning models need high-quality training data
Cool. I just dream someone will also create a DE and apps designed specifically for e-ink, on the principle that no piece of screen should be re-drawn unless it actually is to show (or hide) some [important] updated information.
Gaaaah.

This is mostly not about Lightroom, or photos, or any of those specifics. This is about (a) a failure in a migration followed by (b) *failure of the user to verify the migration before deleting the original copies*:

>To make matters worse, I deleted the photos from the USB hard drive, without verifying the new catalog.

That line is, not coincidentally, where I stopped reading.
Realistically, the only thing you can do in this situation is to switch teams and/or company if the problem comes from above.
After reading into details, this sounds like a fundamental design flow that was made easily exploitable via a new feature
Here is an example: https://arxiv.org/pdf/2011.03403.pdf

Anything with high scale manufacturing where a %0.01 percent decrease in overhead means millions saved would be interested in certain algorithms quantum computers are good at.
Outside of FAANG, who is paying $300k+ for a standard / non-management dev job?
Busyness 101: Why Are We So Busy in Modern Life?
“Only ideas won by walking have any value.”

― Friedrich Nietzsche, Twilight of the Idols
Lawyers, Bugs, and Money: When Bug Bounties Went Boom
In general, that team that writes OCaml compilers at Facebook (Hack, Pyre, Flow probably a bunch of stuff I missed) are doing the Lord's work.
> Block reason: Access from your Country was disabled by the administrator.

Thanks for that mirror, I occasionally use the lynx web browser that is also hosted there and being blocked has always been a problem.
I get the feeling that mediocre business should be able to run just fine on mediocre people. So it can't be that bad.

Of course, every business likes to pretend they're the top and can only hire top talent.
Yeah, this.

My old laptop is effectively my NAS server.
One of the major pillars of measure theory is countable subadditivity, which serves to allow one to work with countably infinite series in a nice way. This is pretty much unworkable in a countable space like the computables. That isn't to say we really "need" the reals, merely that math hasn't come up with a fully-featured alternative framework that physics can use. I know there are people working on "computable measure theory" in recent years, and there's no reason why the universe should use a mathematical framework that is easy for we humans to construct.
Not sure why you are getting downvoted, I think you comment is correct. I think our only way out of this mess is by coming up with technology to reverse our effect on Earth. I've always envisioned a planet where energy is so abundant that we can do things that normally wouldn't make sense, like filter giant volumes of water to remove micro plastics.
CRAIG SH*T WRIGHT - faketoshi.cypherpunks.xyz
You would think the EU would be more interested in supporting Collabora seeing as how it's home-grown. Then again you'd think they'd be supporting their own Linux distros as well - such as Suse which is German again. Why isn't Europe investing in and promoting Europe?
Synology's Moments is ok, but it has issues. Not mobile friendly at all, can only create one shareable link per album, and others can't contribute their pictures to your album. Those are the biggest issues in my experience.
How to deal with dogmatic people on Scrum teams?
I like the idea of Remarkable but the thing that bothers me a lot is that it doesn't have a backlight. I'd really like to use it to read at night and no backlight kinda kills that.

Do you not use it at night or do you use some other solution for nighttime lighting (like bright ceiling lights)?
Paris speed limit falls to 30km/h
Yes, good that Oracle added backward compatibility to DBMS_JOB thought there is DBMS_SCHEDULER in recent versions.
It's expensive if you ain't got it.

I used testdisk as a student living on loans :)
> Even worse is hiring someone merely mediocre and not actively harmful.

What's so bad about... mediocrity? For obvious statistical reasons, most companies, most jobs, and most people are mediocre (or worse).
I don't know. Microsoft has been pushing for safer languages (most famously C#) as well as static verification where that's not viable (kernel drivers) for well over a decade, along with the prevalence of Java in Enterprise Software, and we still have out-of-bounds read/write and use after free in the top 10.

If you write new software these C-isms seem easy to avoid, especially with Rust as another compelling option. But I doubt that makes a big dent on the statistics in the next decade.
Only octopuses...?
I have seen a lot of Customers still stuck on the Oracle versions where DBMS_JOB is heavily used.
I think the problem is that we're trying to fit everything into software frameworks rather than just occasionally redo things in a simple way. Part of what I hate about Java programming is exactly the over-dependence on shitty use of Spring idiosyncracies everywhere.
OG or not OG? That is the question
His entire approach to storage of critical data was a disaster waiting to happen. Storing data on FAT-formatted USB drives and then transferring them to a Btrfs file system over Samba? Why?

If you run an OS with first-class ZFS support and your files arrive on the platform as soon as possible over as few intermediaries as possible, the chances of such mishaps are greatly reduced.
I did the whole "Save it to a large usb drive" method for backing up personal files for a while.

I finally upgraded to a synology nas and I feel a little silly for not doing it earlier.

It's far more convenient given I bounce between 3 machines during the day (personal laptop, work laptop, desktop), my wife can easily access files on her machines as well.

Added bonuses are that it comes back up on its own after a power outage, doesn't require my desktop to be on for me to hit it externally or for a successful backup, and I don't have to remember where I last placed the usb drive.

Basically - USB drives totally work, but the NAS is better in pretty much every way outside of price (and possibly some configuration, if the person isn't very technical).
I'm not really understanding the parent commenter's point, but your comment seems like a non sequitur. How does "residential real estate pricing" imply anything about urban vs. suburban?
How DBT DevOps Enables Data Teams
Crystal Violet
Slackware is actually the one distro I've succeeded deeply with AFS. One thing that made everything less buggy is to find out what your UID , User ID, was, on the OSX UNIX-compatible system e.g. 1001, let's say, and just make sure the co-responging AFS user/share on the other end shared the same. - No bugged idea why it matters but within linux' AFS implementation paired with OS X it seems to be crucial for some reason, and a lot less headaches.

So therefore: user ' osxking ' with UID ' 1001 ' connects best to user ' osxking ' UID ' 1001 ' on your Slackware AFS server. Good luck man! It will work! < 3 Happy AFS'ing, Slackware served me well!
Archive copy: https://archive.fo/tXJPR

The average human life span is absurdly, terrifyingly, insultingly short.” (About 4,000 weeks, on average; thus the title.)

The real measure of any time management technique is whether or not it helps you neglect the right things.

Once you get over the disappointment that, despite a large industry trying to say otherwise, there is no magic bullet for optimising life, it’s rather liberating not wasting time trying to find one

Here is the book review by Nytimes on "Four Thousand Weeks: Time Management for Mortals" referred in the article here -
https://www.nytimes.com/2021/08/11/books/review-four-thousan...
I'm scared by that link warning about how easy it is to brick your device. Should I be?
> Since I was a big fan of Redis , I had to painstakingly explain with cost projections of the implications of using AWS services for this solution.

Your tone shows annoyance, but that's just doing your job properly. "I'm a fan" isn't really valid reasoning to choose RedisLabs.
What about a normal book light that you’d use with a traditional book? I find that even the Kindle light can be uncomfortable when in complete darkness, so I try to always keep a little bit of ambient light, which is usually enough to read by.
I think this is part of why getting hired through connections is even more important in this field, and why it's also interesting that so many members of the field look down on that very process.

I agree it's not very meritocratic, but it DOES get people in front of people more qualified to pattern match their qualifications more quickly.

The problem with getting more people in front of the actual hiring team is the "charlatans" other people have mentioned in this thread will effectively waste the (very expensive) time of said team. Using a (less expensive) recruiter as a first stage seems rational until you discover the high rate of false negatives.

I've mulled this problem a lot and I still come up empty on a new, more effective way to solve it.
SOS is free if you buy an actual iridium phone.
Well, I think so… but I can’t find any sources for that now that I am looking.

You can get them used for 700 usd
> Kobo still updates every single model they've released except for the first two non-touch models and the 5" mini stretching back a decade.

Wow you're right (at least until this year?): https://wiki.mobileread.com/wiki/Kobo_Firmware_Releases

The Mk3 is the https://en.wikipedia.org/wiki/Kobo_Touch released 10 years ago.
I feel it's very unjust that you got downvoted so much. Whether the "lift-off" away from low-level programming is intentional or not, the effects are definitely pronounced.
I find it interesting that XSS has been in the top 5 since the first Top 25 to include a table with ranks in 2010 (archive: https://cwe.mitre.org/top25/archive/).

I know Content Security Policy can help mitigate XSS, but I wonder if there are any existing tools to help you discover what kind of rules your website would need currently to even function as intended?
Any big trendy startup that everyone knows the name of
...that's AM/FM etc radio.
> The microservice managed and processed large files, including encrypting them and then storing them on S3. The problem was that large files, such as 100 Gbytes, seemed to take forever to upload. Hours. Smaller files, as large as 40 Gbytes, were relatively quick, only taking minutes.

> The 100 Gbyte file doesn't fit in the 48 Gbytes of page cache, so we have many page cache misses that will cause disk I/O and relatively poor performance.

This is the kind of thing that is becoming more and more common as literally no one wants to think about how to process anything that does not fit in memory.

> The quickest fix is to move to a larger-memory instance that does fit 100 Gbyte files. The developers can also rework the code with the memory constraint in mind to improve performance (e.g., processing parts of the file, instead of making multiple passes over the entire file).

It is not trivial for a team which has never thought about why things that can be done in constant memory footprint ought to be done in constant memory footprint to make this change. Ideally, your team will adopt the view that while slurping files might be OK in toy examples, if you start with a constant memory footprint goal, you eliminate a whole huge range of issues at the outset.

Your biggest problem then becomes trying to get everyone to see the value of this approach because they will never have experienced crashing machines, corrupted processing pipelines, sleepless nights, missed deadlines because every thing every step of the way wants to read everything into memory.

The whole encrypt/upload thing could be done in a single pass in fixed size chunks here, reading the file linearly (I am not sure why the S3 bucket is not encrypted or if it is what the advantage of the "double" encryption is). Incidentally, this would not even require that much extra programming.

The cache being full is exactly what you want. During a linear read, most of the reads will be satisfied from the cache. And, the OS will do a much better job of deciding how much of each file should remain in the cache etc.

Say you move this thing to a server with 128 GB memory. What happens when the service actually has to handle four uploads at the same time?
pretty much any public company with salary plus rsus
Flying Ginsu
Right.

Plus responsiveness. Terminal apps have faster response time than GUIs. And when someone is typing like 10 chars per seconds it matters.

The usecase is different between terminal vs GUI. Where in GUI you look - choose - decide and click. And in terminal you blindly storm on the keyboard as fast as you can.
By "damning", do you mean that the quote alone is obviously sufficient to materially tip the scales in favor of the government should the antitrust lawsuit occur?

If so, what is your best guess as to why the executives (who surely know that) might have chosen to use those words?
Yes, many options exist. The big one is Flippa which will take just about any project and allow you to list. There are others that are specific for large businesses (either have a listing price floor or a revenue floor) such as FE International and Empire Flippers. Another new one that is 0% commission is MicroAcquire. I follow the founder on Twitter and they seem to be doing quite a bit of volume.

I've personally sold projects on both Flippa and MicroAcquire and happy to chat about the pro's/con's of each.
Effective Shell
> In Cartoons (and in science), wasn't this called Planet X and in other hypothesis 'Nemesis'?

Nemesis is a hypothetical star, not Planet 9/X, explaining different phenomena; it would be farther out.

But, yes, Planet 9 is more recent name for the same hypothetical object as Planet X:

https://solarsystem.nasa.gov/planets/hypothetical-planet-x/i...