skysight-inc/HackerNews huggingface dataset:
Whats wrong with this:

1) scan to find 300m line offset N
2) shift file from N to 0 using reads+writes
3) truncate last N bytes

You can print out the current offsets in case of a crash you need to resume from. You read exactly the size of the file once and write it exactly once, and it's safe.
Security Things in Linux v5.7
In Ireland, not the UK, but from what I hear the ISP market is pretty similar.

1. You have an issue with your broadband in a rural area. You call up your ISP. You get some handwavy answer about contention and they ask you to restart your router and call them back if it happens again.

2. The next time they agree to have an engineer take a look. You hear nothing back. You contact them again, they say their engineer looked at the exchange and found no issues.

3. The next time you ring them and they agree to send an engineer to your house. The engineer (contracted out) arrives at 2pm, they check your modem, rant a bit off the record about how they don't fund shit, then determines that everything's working fine at 2pm, and it's the ISP's problem that their network collapses at 6pm because they oversold the rate of your village.

4. You contact the ISP. They read the engineer's report, saw it was working fine at 2pm, and decided they didn't need to take action. They suggest using the internet at another time of day, such as when you and most of your neighbours are away from the house and at work.

5. If enough people in the area decide they complain they might finally deign to do something about their service in a few months. More likely is some other ISP comes around and signs up all the customers so pissed off with the last one, until most of the village is now on this ISP and the same problems reocur.

6. After like 4 or so years you've looped through all the ISPs, maybe there's a new generation of tech which promises higher speeds but they can't be bothered funding anything locally so your actual speed and reliability is unchanged.
I want to vote for those things.

I'm told by my blue friends that I'm naive. Reds call me a socialist.

This is by design. It is intentional. Billions of dollars are spent giving people these 'views'.

Sanders gave people an opportunity to vote for "those things", and he was the clear favorite to take out Trump - until Democrats pulled every dirty trick to scupper his campaign. Again.

So people really do want to vote for these things, but massive effort is put into not giving them the option. Sanders is the most popular politician in America, every year - and instead of helping him, instead of boosting him, the Blue team stabbed him in the front, in the back, in the eye balls, etc.
I really don't understand what people expect to happen. The moratorium doesn't mean tenants are living rent-free, it just means landlords can't evict. All the missed rent payments are still due. What do people think is going to happen on January 1st, 2021, when the moratorium ends and people have many months of back rent? That rent is immediately due in order to avoid eviction.

It just seems comically short sighted. The most idiotic temporary punt of 2020.
dd reads and writes in blocks of bytes, not lines. You have to figure out where 300th line starts beforehand.
StimulusReflex v3.3 Morphs has been released
We're going to see 5G in the next 5-7 years... you think I'll stay on 3G for the purported 5-7 year lifespan of this 3G only device? Leaving out 4G (at least) defeats the purposes.
Belta loda! You sound like your speaking the Belter slang from the scifi series The Expanse. Set a few hundred yrs into the future, slang used by the working class out mining the asteroid belts.
In a properly executed TN-C-S distribution, the TN-C and TN-S sections are separated with a 4 way single junction point where the PEN conductor coming from the station is connected to the local grounding rod and after this the separated PE and Neutral conductors are drawn into the property. Absolutely no circuit breaker is allowed on the PEN conductor upwards of this separation point.

This arrangement remains safe regardless of any single fault in any of the 4 wires. If the PEN conductor breaks but the local earthing still has decently low resistance, the internal PE protection that connects to the case of electronic appliances is still connected to the ground. If strong currents are drawn the voltage of the PE in relation to the real ground will increase, but the mains voltage will also fluctuate with the difference; so you might get a 20-30V drop in the mains voltage and the same voltage appears on the PE, not usually dangerous and you can see something is wrong with the power. Differential and overload protections still work since they have a safe return via the grounding rod.

If, on the other hand, the local grounding malfunctions, the PE is still secured to the PEN, which should be grounded at the nearest pole or local transformer. This is a harder defect to detect and periodic checks are recommended on the local ground, but at least you have single fault protection, and two things need to happen before a dangerous condition can occur (both local grounding and the PEN conductor must have a fault).

An adjacent benefit of having good local grounding in this configuration is cleaner and more stable voltage, since all groundings of all houses in an area are connected in parallel to the same PEN line, providing a path to the ground that might have a lower impedance than the PEN line feeding it.
Pissing off the rulers of the biggest potential market for your product is not a popular choice these days I am afraid. Sad, but true.
This is an utter farce of a trial.

How any UK or US politician can stand up now, and call for sanctions against Russia or China or Iran .. beggars belief.

These are the sorts of charades we have been programmed to despise when we see it in our 'enemies' societies, when it happens - but when we are doing it, there is some moral stance that makes it acceptable.

The rule of law is being eroded right before our eyes.

Oh yeah. I forgot about what was done to Habeus Corpus. We are really, really fucked.
QT is free if you’re OK linking it as LGPL.
Advice to Applicants for Academic Positions (Master, PhD, and Postdocs) [pdf]
you're saying that artifacts plundered from colonialist rule

Here we go...

--

ps. both my shallow dismissal and your OT flamebait are discouraged here, so let's call it even and move on

https://news.ycombinator.com/newsguidelines.html
Disregarding the copy time, why not just find the 300M-th newline and move everything else down, then truncate?
Very cool!

- have a blog post of building all of this? I've been interested in doing something along these lines for a while and find this inspiring!
I'm in ops and this is a huge, huge headache for those of us on our end at companies where we're not given Google SRE powers to control release trajectory based on failure budgets of some sort.

I've worked at too many places that had no SWEs on-call for the on-call alerts that I get, which the vast majority of the time involves throwing a bandaid (as in redirecting traffic, etc) in front of an internal bug that I hope eventually gets fixed once the RFO/etc has been submitted before it hits my NEXT on-call rotation or my poor coworkers.

Without SWEs on my rotation they don't understand the immediacy. They aren't the ones getting their Christmas week interrupted every 4 hours while ops keeps the house running. In Ops having your entire day ruined by various on-call alerts usually feels like you're working without any breaks and nobody even cares.

Anyone want a bad golang developer, wannabe ex-ops person who knows a lot about platform reliability and o11y and wants to focus on the golang end finally? I'll make your teams automation and o11y purr no matter where it is (bm, cloud, global pops, serverless..)..
Coconut harvesting is not a low skilled job though. It pays very little because coconuts are cheap and it's traditionally a low status job.
What's the actual lever that including Taiwan in the Jetbrain's survey result will actually pull? In smaller examples like yours there's actually the chance to move but China's strong enough to face down actual geopolitical pressure what in the world does a tiny IDE company stand to do?
Beaten to the punch :)
>>"Shame on the so-called mainstream media"

While I think a lot of media bashing is trite, this really does need to be said in this case.

"The media" is probably even wrong term. That calls to mind a corporate industry mostly about entertainment. Here, what is wrong is "journalism." Mainstream "journalism" isn't doing its job, even though this story relates directly to stuff of interest to journalism. Confidentiality of sources. Freedom of the press. What happens when journalism upsets powerful people and institutions. etc.

Whatever your opinions of Assange himself, the Assange case is setting precedents that will play out over the next generation.

Part of the irony here is that I am sure journalists are all following the case. They're just not reporting on it very much.
There's no single culprit, but you hit part of the problem.

- Users prioritizing new features over rock solid performance hurt us badly. Basically, we as customers are our own worst enemy.

- Software done as distributed services when it doesn't need to be. Each tier added to a distributed architecture is a point of failure. And each tier needs to be supported in vendor upgrades and the like for server software, VM software, security patches, etc.

- Reduced emphasis on protocols. When my team started to develop services for the first time we decided to use JSON as the lingua franca for communicating between them. But we didn't think about developing protocols using JSON. Now it's a shit show of different messaging formats in JSON. So we don't have any standard components for parsing and forming messages.

- Here's a particular pain point with me. I'm sick of creating an account for every damned service I use. When I pull up an app to order takeout from a restaurant, I shouldn't need an account. All too often, I'm required to create one. I have accounts all over the web now and I'm sure I don't remember half of them. Of course, having lots of accounts requires lots of passwords to manage. So I have a password manager which works mostly until I'm in a hurry and then it doesn't.

I don't see a way out of our current predicament. But I do hear an undercurrent of "I want to simplify my life" growing. I believe that tech is taking too much cognitive effort from non-tech people.
A Macbook is a very different beast from a latest-gen iPhone.
Is there really no screenshot of the visualisation, or is it just hard to find / hidden on mobile? I assume the architecture diagram is made in another tool.
But it's not legal.
Yay! --someone else who shares my theory.

I've always insisted that the USA doesn't really exist. Because no country so fucked up could possibly command so much power and influence in the world.

Some day I hope to prove my theory by earning enough money to buy a boat and then sailing due west from Ireland until I reach the east coast of Russia.
A list of discontinued Mozilla products and services
Are you suggesting that the Spanish gov't forcibly enroll youths in labor camps?
Requesting the content and injecting it into the document are both first party browser apis though. They didn't want for everyone to make a custom implementation they wanted for people to use the existing browser APIs. Just because something is done in JavaScript doesn't mean it's 3rd party, most of a browsers first party interfaces are in JS.

What you've extrapolated is what would happen if each interface for funxtionality were left to 3rd parties, not what happens if the browser implements first party interfaces in JS instead of HTML. E.g. in your example of extrapolating it all the way it wouldn't be "everyone has to create a button and draw it to the screen" it'd be "to create a button you can create it in JS instead of HTML"

And even then that's only assuming that because they made one choice on one thing the same choice would make as much sense for other things.
Of course, if they were the ones who originally built those products, they should support them. Why should people that create software that requires so much support they quit over it be entrusted with yet another greenfield project without fixing the stuff they built in the first place?
Most old video game consoles render games internally in 240p and then blank every other scan line. On CRTs, this effect works since the missing lines blend together with the filled in lines but modern TVs will often try to use video processing to 'fill in' these missing lines and even when they don't the effect doesn't look nice on a modern LCD or OLED.

Also, CRTs render each scan line in real time whereas modern TVs have to receive all 480 lines before they can render a frame. This introduces a non-trivial amount of latency into the video feed which can make certain old games unpleasant to play.
How to Embed Version Information in Your Dockerized React App
Don't dismiss the value of tier 1 and 2 support requests. Maybe 30% of your tier 1 requests are some confusion that support knows how to alleviate, but an engineer could make the product more straightforward to eliminate those support issues entirely.

You aren't looking for the hardest problems, you're looking for the problems your users hit the most that an engineer could reduce in the product.
As someone who used to heavily use intellij and visual studio, and briefly defended them when I transitioned to a shop that was full of vim/emacs hipsters, I throw up in my mouth a little bit every time I recall the times when I was using them.

The way of the future is definitely lightweight code editors loaded with as much or little customisation as the user desires. Monolothic IDEs are long dead outside of the Enterprise™© world.

Funnily enough, I also found myself using Java and .net less and less. I never had much love for Java, but C# was an amazing language that somehow got gobbled up by the Enterprise black hole and it's a huge shame.
> A notice posted to the website of Tibet’s regional government website last month said over half a million people were trained as part of the project in the first seven months of 2020 - around 15% of the region’s population. Of this total, almost 50,000 have been transferred into jobs within Tibet, and several thousand have been sent to other parts of China. Many end up in low paid work, including textile manufacturing, construction and agriculture.

I guess this is what actual 'oppression' looks like.
What China has done to Tibet is horrible.

One thing that is missing from this article is how they are doing this? How are they coercing people? Are they literally dragging them out of their homes? Threatening them? Or are they just offering them opportunities that are actually preferable to their current conditions, and the people are accepting them?
Apple CEO impressed by remote work, sees permanent changes
Be patient. . . there's people working on that.
> I bet most HNers don't even know what Palantir is much less why it would be wrapped up in any controversy.

615 stories posted here, https://hn.algolia.com/?q=Palantir

Pretty sure everyone on this startup tech discussion board has heard of them.
> HotSpot, under a typical configuration, eats up about 250MB just sitting there doing nothing.

This is much lower in newer jdk's [0].

> For a slightly more apples-to-apples comparison that's also quite a bit more apples-to-jicama, if I open vscode and IDEA on the same project (a small one I'm just getting started on), vscode and all its helpers are using 316MB, and IDEA is using 1.08GB

I believe this to just be intellij bloat and not JVM because it just does too much. I run VSCode with the Java plugins and ZGC (read: eclipse language server, which is all jvm) and the language server only ends up using around 250mb of ram.

[0] https://cl4es.github.io/2019/11/20/OpenJDK-Startup-Update.ht...
Some popular tech sites:
Anandtech: 29 Ad trackers, 76 3rd party cookies
Arstechnica: 47 Ad trackers 110 3rd party cookies
Go's mediocrity is a feature, since it's supposed to allow larger teams to get more work done. That seems to have worked fairly well in practice. The authors hypothesized that a inexpressive language might actually be superior for the types of things that Google used to do in C++ (in terms of development time including onboarding and defect rate [especially with regards to concurrency]).

Git's implementation is stronger and more useful for larger projects than Mercurial's, even if the user interface is less logical.

It's not that the software world is driven by hype but that the software world is driven by what the giants do. Often, what Google does isn't right for a small project.
I think https://solar.lowtechmagazine.com/ is getting hugged to death right now.
Sorry, you're right in that Julia is written in C/C++, so everything Julia does can be solved in those by writing a language (like Julia itself, and not unlike Tensorflow original interface) and compiling it on demand and finding a way to eval the new code and recover the results. I was talking along the ways of how to make it sort of convenient (at least viable to implent unlike the former), as an extension to the C++ compiler itself where you can just tell the compiler what stays AoT and what is JIT'd but otherwise keep the same C++ syntax.

Not to mention if you want to reimplement Julia's logic in C++ you'll have to develop it's sophisticated type inference, since Julia compiler is so aggressive that it will compile at once entire blocks of program (the entire program if it can) as long as it can infer what types are used downstream, which is why it can compete with AoT compiled languages (it's basicaly a "Just Ahead of Time Compiler")
You should dub this “slinky copy”
As a designer, what annoys me so much is reading pieces from other designers who provide no evidence to their statements. If you're going to say "x is better than y" at least talk about the difference in performance when you were testing the change otherwise it feels like you're talking out of your ass.
33.6% of requested ballots by 65 and over voters, a group which represent about 18% of total voters. I hope my generation is planning to vote in person.

65 and up 3,111,071 33.6
Without making any judgment on the merits of the Assange case and the proceedings, one fact has become increasingly clear to me. Assange has tried to play politics and has been burned. He had a very clear bias in what he leaked and the political systems are now flexing their might to make an example of him. I disagree with this process, it does not feel like any sort of "justice". I also strongly disagree with Assange's politics and how he aimed to manipulate the American political system with the help of powerful enemy states. Ultimately, he dabbled in state secrets and was a willing puppet for Russia and other states. Regardless of the fairness of it, he had to imagine he was playing with fire and may get burned. You simply don't delve into promoting one a political agenda, publicly, with the help of an enemy state and not expect some sort of blowback.
It's #1 answer. Nothing wrong except it isn't safe. Depending on type of crash you might not have a chance to see your printed offset.
I dont really understand why in this country enforcing immigration law is controversial.
Welp, Adrian Zenz strikes again.

If you haven't heard of this guy, he's a fellow at 'Victim of Communism Foundation Memorial', set up and paid by US.

Anecdotally, private businesses in China very much dislike taking in labor transfers (more or less a gov initiative) - because they had to provide housing, specific food (halal, etc), and even religious facilities while paying the same. The labor quality is not nearly as high as one on the market. This is essentially China's answer to increase employment for the remote regions.

Of course they would 'suggest the transfers have coercive elements.' The same pay and benefits simply doesn't exist in the region, why would anyone want to go? /s
I understand that bare facts cannot be copyrighted but IMO, a better test in this case is to ask whether the information has any monetary value? Because once it is under the posession of the data brokers, it's aggregated and traded like chattel.
The user wants to avoid having to rewrite the file to disk

"This is one option. Exporting the data from the old DB again, skipping the first 300 Mio entries and cp it again over to the new and import it there. It roughly takes a day. I just thought there must be a way to do it in place: the data are already there - just truncate the first part of it and continue. But I'm not in a desperate position. I have backups and no (extreme) time pressure. So in this sense it's an exercise."

Solutions such as: compressing, splitting into smaller files, using dd would require re-writing most or all of the file so are not what the user is looking for

Using fallocate to change where the file starts from would appear to be the correct solution but it would leave some unwanted data at the start of the file.

The best solution would be to use fallocate and then overwrite the unwanted lines in the first block with newline characters.
6 years in Mars orbit, NASA’s MAVEN has revealed how Mars lost its water
I hope you are asking it sarcastically. If not, it is a common usage to say "a hundred/thousand/million years ago" to convey that something was in the distant past, so long ago that it feels strange to even recollect the experiences.
An option provided to device manufacturers. When the user buys their smart IOT cheesegrater on Amazon, they get no option...
Doesn't it annoy you when you want to type 'a quoted sentence beginning with one of them'?
Interviewing Just Because
I replaced screens 2x Moto G1, 4x BQ Aquaris X and 2x Pixel 1, also batteries 3x BQ Aquaris X, 1x Nexus 5x and 1x Pixel 1 and speaker on Moto G1. It all was not all that difficult, so that's why I bought my Pixel 1 used with broken screen. All parts coming from Aliexpress and last screen came surprisingly quickly (within 2 weeks).

Though this new batch of tinker friendly devices like Fairphone or Pinephone is something I track with interest. Main issue with phones getting obsolete is not hardware though as it is software. That keeps me hopeful especially regarding Pinephone, but Fairphone keeps updates significantly longer than run of the mill Android phones.

They are all too big for my taste, but that's a different subject altogether. I would like to see something in Unihertz Jelly 2 format. But for now I will stick to beat down phones.
They provide the “analysis” part of the equation. Like an algorithm or black box, you don’t know why it is recommending, and I bet there is a lot of AI involved in most of those analysis modules they offer.
this is the 6th or so submission of this story today, and it is still on the front page... please check for duplicates: https://news.ycombinator.com/item?id=24551808
Running pi-hole it's astounding the percentage of the dns requests are for trackers/ad serving.