skysight-inc/HackerNews huggingface dataset:
agree on the mocking the database - I wrote an entire test suite based on mocking the database responses, and then found a ton of live problems caused by the database - backend interaction (things like structs not aligning with the actual return records from functions, input format for arrays of ids being different from the mockup to the actual driver, and hstores).

Now I have a test database, which I create from a version-controlled schema.sql, and each test creates its own fixtures in the test db. Works way better.
Controlled burns are also important, and California has been neglecting those lately too.
This is what plutocracy looks like.
> The congressional hearings are a hostile environment.

That's true, but if an honest answer to any of the hostile questions makes Zuckerberg look and feel bad, then maybe he should fix his company.
Simple answer: because they are lazy and they want a cheapest way, and ad giants like Google convinced advertisers this is the only way. Of course it's not, and ad deals with no middlement can be extremely efficient and financially advantageous to both parties. Not to mention they're often adblock-friendly because of being served locally.
> Basically, all messages in a mailbox are numbered from 1 to N, and you can reference a message by number, and when a message is deleted all message numbers above it shift down by one. But since this could confuse clients that are sending inflight requests, you can't start translating from the new shifted-down-by-one numbers until you've told your clients about it, which could take a theoretically unbounded amount of time.

Message ids are monotonically increasing, but not necessarily consecutive. You may need to renumber when you hit the 32-bit ceiling, but that is much less frequent than what you describe. Worst case scenario, you can disconnect unresponsive clients when renumbering, clients behave well on disconnects.

This invalidates your conclusions.

> (1) You can't have concurrent mailbox access because it might mess up MSNs reified to disk

You can. Renumbering is not frequent.

> (3) you can't have connections live too long because they passively eat up RAM with queued updates and a stored MSN list

My dovecot IMAP processes use an average of 5MB reserved memory, of which 4MB is shared memory, so a server with 100GB memory can hold close to 100k connections.

> (8) because opening a new session can be heavy.

Monitoring tells me that on loaded production servers, session open + select + list + logout occurs comfortably in less than 100ms. That's not heavy.

Dovecot starts to fail on mailboxes with about a million messages. It's a limit I can live with. Users have learned to archive messages by date.
Not OP, but I had a very similar high school experience. I basically have two "stable" sleep rhythms: Go to sleep at 4 am, wake up at ~1 pm (the "lazy person" cycle), or got to sleep at 6 pm, wake up at ~3 am (the "I can't categorize this" cycle) - unfortunately, neither are very compatible with normal people. The second one is alright for work, but tends to kill every last bit of your social life for obvious reasons. So I'm kinda stuck with a daily ritual of trying to fall asleep at 11 pm and trying to somehow get out of bed after an hour long struggle at 8 am. Also I'm about 3 times as productive at work after 2 pm, because before that, I just feel like a zombie.

On the plus side, if something has to get done, I don't mind staying until 10 pm too much.
My code editor does a fair job of finding things for me, I know I won't use ripgrep/fzf that often :shrug: On the other hand I would recommend fish shell (replacement for bash) with z plugin and http (replacement for curl).
Sounds like "personal goals" might be misaligned with personal goals?
Safari has removed it, as websites wouldn’t respect it.
The ones I dreaded most were stand up meetings. Mostly they force you to listen to things you already know.

Any team with decent teamwork, who have lunch together, communicate together, or even shitpost on Slack... they will know what's going on. Trello updates or some tool equivalent makes trivial progress updates unnecessary.
Could also upgrade some infrastructure in the process, like running fiber. Might not be free but worthwhile.
For those who are confused by this comment, a brief note.

In many (but not all!) countries, "Professor" is a job title - it's a position you hold. You are appointed to be a professor in a department, or in an institution.

In contrast, a "PhD" is a qualification. You register with an appropriate institute or organisation, you do the necessary work, you go through the required assessment, and you are awarded the qualification. This is muddled a little by some institutions awarding "Honorary Doctorates", recognising that a body of work done by someone would qualify them for the status of the degree.

So it's possible to have a PhD and not be a professor, and it's possible to be a professor without having a PhD. Brian May has a PhD, but is not a professor.

In some places the distinction isn't so clear, precise, or respected, but broadly, that's the difference.
O'Reilly website down Due to the fires and power outages in California
The thing is, you don't have to give up hardware protection. If you don't trust code, you can still run it in ring 3 with all the associated overhead. The point is being able to choose how close an application runs to "no overhead" until you're at a level where the driver is a function call away.

From my experience, a lot of hardware is terribly insecure against exploits. Not necessarily the CPU but stuff like your GPU or HBAs, ethernet cards, etc.

With software containment, the advantage is that you can set it up that drivers need to declare their interfaces and privileges beforehand. In an ELF or WASM you have to declare imported and linked functions, it should not be difficult to leverage that to determine what a driver can effectively do. With WASM you get the added benefit that doing anything but using declared interfaces results in a compile-time error.

A driver can be written so that a minimal, audited interface exists to talk to the hardware almost directly with some security checks and then the WASM part that handles the larger logic parts and provides the actual functionality.

WASM isn't a supervisor, so exploits on VM code aren't that relevant. Exploiting the WASM compiler/interpreter/JIT is more interesting but those are exposed to the daily internet shitstorm exploits, so I think they are fairly safe.
Kinda seems like the perfect question to be used with this show hn from a couple days ago

https://carbon.now.sh/
Being able to easily use the data from one application in another. Being able to learn one set of digital tools and apply them to nearly any task (copy and paste being an example). I don't think you have to be a basement dweller to see benefits from these, and there are others.
> I've often tried to explain to marketeers at work that marketing to the wrong people will create negative sentiment and lower sales

That's the same thing as a marketer approaching a dev at work trying to explain that shit code will create poor product experience, negative sentiment and lower sales.

What most people don't realize is that marketing isn't a input > output solution.

That's not how people work. That's not how society works.

No one wants to waste budget to reach the wrong people, because, just like on any other job - no one likes to do a bad job. Specially marketing/sales jobs have a direct measurable result.

I know that a lot of IT people have a lot of difficulty understanding this, but that's part of some marketing roles, to deal with all stakeholders and try to explain it to them (when/if necessary - else they should just say: "How about you do your job well and don't worry about other's people job?").

When you understand that when Coca-Cola approaches you with a briefing to sell "happiness in a bottle" and that poses a media challenge, then you're one step closer to understand the difficulty of the task.

Now, are there bad practices and bad professionals? Just like in any other job.

So what's the difference? Well unlike many other jobs, the outcome of a bad advertising is seen by a lot of eye balls, because that's the end goal.

A good analogy of a bad engineering job that received a lot of public attention and anger is for example the Boeing 737 Max Q. Or when ever there's a data leak from X company. Yet most poor/bad engineering jobs aren't noticeable to a large audience, aren't up for public scrutiny.

To sum up: when people are affected by bad practices, they don't like it.
I suppose once could burry main lines, and have a mechanism that can remotely disable parts of overground lines, and enable them once the fire risk is over. But either way, not acting in anyway makes the US/CA look like a poor country - they certainly have all sorts of excuses for power-cuts in there, and why it is impossibly expensive to fix.
I also bake sourdough. In my case, I took a class for it a few years ago which helped me a lot to nail down the basics.

I wouldn't say it's easy to get right. It requires a fair amount of trial and error to get your equipment, setup and recipes dialed in. One factor that confounds me a lot is the temperature during bulk ferment and proofing. It's like temperature is an ingredient. My house as a lot of variation in temperature... I think I need to get a proofing chamber.

My favorite resource is https://www.theperfectloaf.com/. He's a software engineer in his day job, but he has a beautiful blog where he gives somewhat obsessively detailed recipes for sourdough. The recipes are practical and achievable by a home baker.
Smells like jealousy. Grow up peopke. What a person does with their private money is non of your business as long as they are not hurting anyone. And I fail to see how hiring private firefighters hurts anyone. So how about we move along
I use the Brave browser due to these kinds of things
I've found this to work beautifully: https://github.com/iamadamdev/bypass-paywalls-firefox
Interesting- I always thought the cyberpunk future of self-policed corporate-states would be here eventually, but I didn't think firefighters would be privatized in that manner before police.
It's a crisis of democracy when the people voted so clearly and they're not given what they voted for. They're being slowly ignored by the political class.
Idk, I use Chrome, works like a charm.
As a UK citizen, I wonder if we should just switch to PAYG EU membership contract until we work out what new phone we want. /s
Since Windows Vista, Windows has been transitioning to C++, hence why they don't care much more about ISO C beyond of what is required by ISO C++ standard compliance.

https://herbsutter.com/2012/05/03/reader-qa-what-about-vc-an...

https://www.reddit.com/r/cpp/comments/4oruo1/windows_10_code...
Your very own comment said "lack of supply of fireman".

Are you implying that there are open fireman positions that no one is applying for? If so your market is incredibly different from the one I know. Here in Australia a job as a fireman is very hard to get.
The Chinese gov did play a big part in keeping the economic boom going. They continually propped up the housing bubble even though it was generating new construction well over demand and could have crashed multiple times. They did a bunch of currency manipulation to keep exports going. Whatever that was keeping shipping costs in and out of China so low worked very well.

I don't think you can rule out the government as a factor, there's plenty of cheap workers in the world that want money.
Nice. I immediately had to try the same in PHP. To make a working repl with newlines in the output etc, this is what I a came up with:

while(1) {eval(fgets(STDIN));echo "\n";};

I then tried it on the command line like this:

php -r 'while(1) {eval(fgets(STDIN));echo "\n";};';

Hurray, it prompted me for input! So I typed:

for ($i=0;$i<10;$i++) echo $i;

Which got me:

0123456789

So far so good.

I wondered: Can we now run the repl in the repl? So I typed:

while(1) {eval(fgets(STDIN));echo "\n";};

It kept prompting me for input. Am I in a REPL in a REPL now? I typed:

echo "Hello from a REPL in a REPL!";

And the reply was:

Hello from a REPL in a REPL!

I'm not totally sure if I believe it though.
The Gettysburg Powerpoint Presentation
The number of people willing to be paid to not fight fires is unlimited.
Yes but it's way cheaper and easier to just use drain cleaner for those kinds of malicious things.
The world is sitting on a $400T financial time bomb (2017)
In what world is 51.89%/48.11% "so clear"? You make it sound like it was 90%.
Moneta Sleet: The great black photographer you've never heard of
Different headline... Insurance companies implement fire mitigation tactics to protect policyholders
I'll nominate this pseudocode from a paper of mine currently under review. Treat it like a koan to be meditated upon to gain enlightenment about AGI. The paper introduces an ordinal notation system in which ordinals are notated by computer programs. This pseudocode notates the ordinal omega^2. `, ⌜, and « are progressively higher-level opening quotation marks. ', ⌝, and » are the corresponding closing quotation marks.

LEFT = «X=⌜»;

RIGHT = «⌝; While(True) {Print(X); X=⌜Print(`⌝+X+⌜')⌝}»;

X = «Exit()»;

While(True) {

X = LEFT + X + RIGHT;

Print(X);

}
I'm not sure why you'd think staying up late and getting a headache the next day is limited to teenagers.

> Both conclusions are perfectly reasonable, have precedent, and could both be true simultaneously.

This is exactly why I object to the statement "in reality it was from co2 ppm" without evidence from a CO2 monitor.
The main (IMO sad) reason REBOL sits in a weird half-life position of "not quite dead, but..." is that, while REBOL Core is open, the GUI parts (which are crossplatform, and run on Linux) are still closed source.

It's a bit like .NET Core. Great to base a business on... not so great to tinker around with. Arguably the second (tinkering, learning) comes before the first (using what you've learned to build a business).

Mildly infuriating...
> Every form of IPC can be implemented on top of asynchronous message passing

Sure, if you want to introduce inherent DoS vulnerabilities into your IPC subsystem, not to mention slow down IPC so much that it's practically unusable. Many early microkernels were asynchronous, and synchronous microkernels like L4 beat them easily every time.

Furthermore, synchronous IPC can be made immune to DoS which is inherent to async IPC: https://www.researchgate.net/publication/4015956_Vulnerabili...
Avatars: Are we ready for our digital twins?
You could shrink the die, but what package will you put it in?
And perhaps even begin building a superconducting grid ad for once in PG&E's history, doing something that was pro-active rather than reactive.
>Anything in orbit can (and is) actively tracked by amateur and professionnal astronomers around the world.

Indeed, I follow a guy on twitter that has photographed it.

Quickest link I could find to one of the photos https://www.space.com/x-37b-space-plane-skywatcher-photo.htm...

And here is his account where he also has photos of stuff like the ISS https://twitter.com/ralfvandebergh
Ha! I played with a friend too, and always read all dialog out-loud (except the loot-the-bodies one, that got old pretty quick).
> Does #1 mean that there are IMAP servers where my phone and my desktop and my laptop (etc.) can't all read my mail simultaneously?

The short answer is that you can access from multiple device. The long answer is, it depends on the server datastore implementation. Namely, any server using mbox will probably lock the mbox file to the first connection, and hence allow one connection per mailbox (folder).

Most large scale servers won't use mbox, though. The problem is described, in the original article, from writing an IMAP client perspective. You can't assume _all_ servers will allow multiple connections, even if most do.
Star Control II had some similar issues with unclear priorities. The game doesn't have a strict "time limit," per se, but the invasion happens whether you're ready or not, so if you spend too much time trying to gather materials and prepare (which you are encouraged to do) without progressing the story far enough to get the right gear, you'll suddenly find yourself unable to go more than a few miles off-world before being attacked by alien ships that incinerate your own in a matter of seconds.
Indeed, that is what we used at the campus.
So your solution is just that the whole population must die younger than necessary, then? Is that really the best we can do?

I don't know, maybe we could put a hard limit on academic positions of 50 years or so. We could figure something out. I like that solution more than, effectively - kill them, and everyone else!
DevOps'ish 151 – DevOpsDays Detroit 2019, WeWork, admin as username
Which variation of Brexit did 51.9% of the people that voted in the referendum so clearly vote for?
Regarding Imbiss, it could be that my teacher learned it incorrectly, or it could be that I'm remembering incorrectly. Or, of course, it could be technically correct, but not actually used in daily speech. :)
Disney Is New to Streaming, but Its Marketing Is Unmatched
Nebulet [0] was an interesting take on this -- a Rust microkernel compiled to WebAssembly. Unfortunately, the project seems to have run out of steam.

[0] https://github.com/nebulet/nebulet
I wonder if anyone’s considered making a kind of modular way for vehicles to connect to something like a train.
"Leave won by 1 million. No of EU citizens who couldn't vote 3 million. No of British abroad who couldn't vote 700,000. Citizens of 53 Commonwealth countries were able to vote just by being UK residents. Will of "the people"- depends on who you asked #BrexitExtension"

https://twitter.com/KatarinaKeys/status/1188785762436816896

But it is indeed a crisis of democracy: the elected leaders should be able to prevent self-harm scenarios like this.
I've seen similar variants of this headline floating around, so I don't want to over-blame this Fox outlet for something that's just in the water by this point (I don't recall if they were all on Fox-family outlets, but probably not). That said, the headline seems pretty manipulative...

> However, private firefighters are more likely to contract with insurance companies like USAA to offer mitigation services to customers. Sometimes neighborhood associations hire private firefighters, according to The Post.

+

> Homeowners hiring private firefighters make up about 5% of the industry, David Torgerson of Wildfire Defense Systems told The Los Angeles Times last year.

+

> Firefighting crews working for insurance companies do not just wait around for the fire to spread to the areas they're protecting. They often install sprinkler systems and spray retardant, according to The Post.

+

> When trying to fireproof a particular home, crews will take the time to rake away vegetation surrounding the home and close windows and vents, The Times reported.

=

> title: Private firefighters go to work for California's wealthy
Do we think differently in different languages? [video]
No, about what the company was accountable for.
There are open positions. Whether qualified applicants are applying, I don’t know.

https://mobile.twitter.com/CALFIRE_Careers
The demographic argument has been played out for decades in regards to china.

Does china need to innovate? They have very well oiled structures for 'borrowing' other countries' ip. That was all fun and games when their military was not so great, but we're back to competing with them. They can also research in areas that seem ethically and morally dubious to the west, they will always have the edge there.
> Claiming that Cambridge Analytica had a catastrophic impact on the 2016 election. It's hard to know what to answer to such a thing.

"Congresswoman, half of this country thinks that your statement about the impact of Cambridge Analytica in the last election is factually false. In case you wanted to publish an ad that mentioned it, should Facebook reject it?"
No idea, but it seems to be using Akamai Player: https://player.akamai.com/

It seems to have an event called "autoplayblocked": https://developer.akamai.com/tools/AdaptiveMediaPlayer/docs/...
Ask HN: What Has Been Your Experience “Rehosting” Mainframe Applications?
Also known as “pick up and drop”, there are a few companies that offer the ability to move the application code and data to a different platform (ie Linux) and do away with the mainframe entirely.

Does anyone here have experience with these products or types of projects?
There you go. Seriously sad to read about how this happens in one of the most tech developed areas of the world.
Largest Markets That Have Experienced Low Innovation
Encouraging, but I'll remain cautious about this. Regardless of early career stumbles I'll be successful by the average person's idea, but I doubt I'll be considered successful by my own ideals or by that of many people here, for example.
Could you share how you are able to scrape emails in particular?
The government of Germany. The BND had surveillance operations that ran counter to the constitution (again). One of their excuse was the mentioned position. It became known as their space theory (freely translated from "Weltraumtheorie") in that context.

A plain example why you need to grab these institutions by the balls with tight restrictions or they run amok. They had the idea for their "space theory" from the NSA, allegedly, but I never heard of anything like this. Perhaps their American colleagues thought it to be too embarrassing to bring forward.

I would have difficulties to find examples from recent years when the constitutions was undermined that effectively. How should I convince anyone that it isn't a complete joke?
[insert xkcd411 here]
And the public has prison slave labor fighting its fires:

https://www.aclu.org/blog/prisoners-rights/prisoners-are-get...
It's baffling to me that Parliament requires a 2/3 vote to call an early election, but something earthshaking like leaving the EU somehow is 50% + 1.
"Snap has been running in production for over three years, supporting the extensible communication needs of several large and critical systems."

Are there many systems using microkernels in production environments? I mean at least at this kind, or a somewhat similar, scale?

3 years seems like a long time, while up until this moment microkernels seemed fairly niche to me and something reserved for more experimental systems.

The only one I can think of off the top of my head is Fuchsia.
Dead serious indeed. They shuffled data between countries to get around the domestic espionage act in the US. They aren't waiting for our permission to reach the surveillance nirvana somebody somewhere is dreaming of.
I mean you have this massive small-town sized ship (6000~ crew) and it's support ships, and then you have a bunch of agile, fast moving, speedboats that present very small targets that bounce across the waves that are capable of carrying enough explosives to put a hole in the hull...

Obviously the swarm of small things that are effectively man-piloted missiles are going to be able to take out the slow 200 million pound behemoth that requires 3-5 miles to turn around.
> Stack allocations are trivial and fast by comparison: Allocation is a matter of bumping the stack pointer, and no synchronization is needed.

And this is why runtimes with moving garbage collectors can be faster than malloc - allocation with such a GC is always this cheap even when it's to the heap. (The costs move elsewhere, of course, but ideally to another thread, and are temporally and spatially grouped so that the work uses cache better.)
It doesn't autoplay for me (using Firefox 70.0)

In fact, in my console there's a message that says this:

"Autoplay is only allowed when approved by the user, the site is activated by the user, or media is muted."