skysight-inc/HackerNews huggingface dataset:
The command design pattern never ceases to amaze me. Package up a complicated process in an "input, process, output" package. Turn it into a black box. The input should be as small as possible, just the details and data you need to "do the needful". The output should be as little as possible to explain how things went. I usually let my code grow organically, but once it gets to a certain point, using this technique really helps clean things up.
You can block out light, but you can't regain the sky that way.

Sound attenuates much faster. If you live in the SF bay area and want to spend some time without sound pollution you can do so easily. Many of our open space preserves are noted for their level of quiet.

I chose where I live partially on the basis that it's extremely quiet.

If you would like to experience an extremely dark sky, however, you'll have to drive several hours and much of the US can't even get to one in several hours.
It solves the problem of your ISP's DNS resolver being hostile in one way or another. But you still have to have complete trust in the resolver you choose. Which is not great if most people choose $BIGCORP's resolver.
You write a simple interpreter basicly. Instead of directly manipulating the data , you build an ast of how to manipulate the data then you execute it. It also allows for nifty optimizations later on.
A 'trick' that I've grown fond of is for iterating over a circular list where the current and previous items form an edge, with a special case for the first edge, that is composed of the first and last items of the list (making it circular).

The 'normal' way to write a loop over this is something like:

for (let i = 0; i < ls.length; i++) {

const j = i > 0 ? i - 1 : ls.length - 1;

...

}

A trick I got from sean barretts website (https://nothings.org/), is to use the for-loop initialization clause for the special case:

for (let i = 0, j = ls.length - 1; i < ls.length; j = i++) {

...

}

The work I do usually does not care about the performance improvement if there is any, but it feels good to avoid that per-iteration check.
Is anyone making alternative motherboards for it?
console.log({ variable }) when debugging
Of course it's true -- it states that something could happen. Therefore, it's true whether or not that happens, that's basic discrete mathematics. But the thought was planted and that is what counts in the end. That's how propaganda works -- I highly recommend the seminal book on the subject: https://en.wikipedia.org/wiki/Propaganda_(book)
I would expect a wordcount to pass these through as-is, along with any other invalid sequences of bytes with the high bits set. Performing unexpected conversions just seems like a way to make my future self have a bad time debugging.
Just look at the state of almost every google project.
AFAIK it's the opposite. Low frequency early warning radars are able to detect the vague position of stealth fighter jets (like the F-35) because these jets need a vertical stabilizer to be able to do combat maneuvers. Knowing the vague position is good enough to route intercepting aircraft towards the threat but in theory you will be unable to target these jets with AA missiles because targeting radars can't see these jets until they're very very close.

Flying wing designs like the B-2 and B-21 don't have this issue and are mostly invisible to early warning and targeting radars.
S-500 only went into production this year and with sanctions in place not sure how many they will be able to build (if any) with their supply chain in tatters.

And given that Israel has been running around Syria with their F-35s being undetected by the S-400 not sure how much confidence anyone should have in Russian claims.
Clickbait means hiding the content of the article from its title.

The title without clickbait would read: In Iran, having a pet could soon land you in jail (bbc.com)
Looks like there's no need to wait for Unreal Verse anymore
Access to cheap, clean abundant energy is also a national security concern.
Not sure if this counts as a "programming trick", but for maneuvering around the shell: learning readline.

https://readline.kablamo.org/emacs.html

^This one cool trick will increase your productivity by 1000%!

I've had sr. engineers see me using ctrl-r and go "woah, how did you do that?"
Not Machine Learning (2020)
Only because the AF got really careless and literally overflew the radar site repeatedly on the same path at a predictable time.

Stealth is a not a cloaking device. It's a <1 multiplier on enemy radar range. If you get close enough, you will still be targeted. But combined with sufficient standoff range on your weapons, stealth enables hitting your target before they can hit you.
I wonder if some amount of hysteresis would be helpful to avoid switching back and forth on the edge.
'Cheap' / dumb ammunitions may be easier to produce in volume, so if you need to increase production it could be easier.

The B-21 is a fixed cost that is ready to go: just 'add water' (munitions) and you can have a higher pace of operations as long as you can feed the machine (B-21).
Atmel AVR are very popular microprocessors. It's what powers the first and probably still the most common Arduino.
I am on the opposite extreme, I get so wound up designing stuff that I never write any code. I basically force myself to write something even it's imperfect and messy because it can be easily changed. And writing the code helps me understand the problem.

As with all things, moderation is good here.
I hope you realize that web-development in my discipline is a niche nowadays. So, it's perfectly reasonable to prioritize bare metal and micro performance benchmarks that target naked performance, OS and GPU apps/APIs.

Our vantage points are different, and these different vantage points need not to see the complete ecosystem as a whole. It's too big to generalize from a single vantage point, and just because our view reveal us a little of something doesn't mean it is, in fact, little.

There's a whole invisible world out there, from DBs themselves to OS kernels to embedded platforms, and everything in between.

IOW, horses for courses.
I've worked with (and been a) staff engineers who have fallen into the same trap. Over engineering is something that we need to constantly be cognizant of because it's often dependant on scope.

E.g. are microservices over engineering? If you have 1 user now, and only expect 100 total users over the next 2 years, probably. If you're running AWS, definitely not. Everything in between becomes a grey area that requires thoughtful architecture to decide on the right approach, and even very experienced people will make the wrong calls
generics in typescript

seriously, generics in typescript is godsent.

it's great to be able to code in javascript while having a very supportive vscode intellisense
Reminds me of this quote by Brian W. Kernighan

>Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it
I guess this really depends on how complicated the problem really is and can you really know everything before you code.

I have very limited memory, so I often write out pseudocode/notes about some properties to help my reasoning. For some problems, I will write scripts to try out some idea, verify my assumptions, while thinking about the problem.
This is a solved issue with Merge mining. Here a primer: https://blog.bitmex.com/the-growth-of-bitcoin-merge-mining/
“ For example, right now there are lots of Russians who think it's fine to invade, kill and steal, not for safety, fairness or justice for everyone. They just want better for their tribe.”

I think is a way oversimplification of geopolitical situation in Ukraine and Russian motives.

Just my two cents
Great! So TSMC will have more capacity for Qualcomm and Apple, and other chips?
While not truely surreptitious, if you can’t reach your phone for whatever reason but you do have Siri enabled you can also disable Touch/Face ID with 2 voice commands.

First “Hey Siri lock my phone”

This command screen locks the phone but doesn’t disable Touch/Face ID - you can skip this phrase if the phone is already screen locked, however it does no harm if the screen is already locked, so might be handy to just say it anyway esp if you can’t see the screen to verify it’s screen locked.

Then “Hey Siri whose phone is this?”

This command will say the first name of who the phone belongs to and if the phone is screen locked disables Touch/Face ID.

You can also switch off the phone with 2 Siri commands which will also disable Touch/Face ID.

“Hey Siri, turn off my phone” or “Hey Siri, restart my phone”

Siri will ask you to confirm the power down/reboot, so confirm with “Yes”. The phone will then power down/reboot.
Veklar / Privacy by default (social network)
use of linters is godsent too, eslint for javascript fixes a lot of compile time problems which avoids runtime problems
As I have aged, I have done this more and more.

I take inspiration from the famous pianist, Glenn Gould. He would study a piece of music for weeks or more. Taking all kinds of notes, truly studying and understand each measure, etc.. He did all of this without touching a piano.

Once he was satisfied, then he'd play the piece.
What viewpoints are you trying to share that aren't acceptable in most tech companies?
>do it in more situations than you think you need and always earlier than you think you need.

I can't even count how many this I should just apply that. It's an obvious thing but it takes time to getting used to clearly formulating your problems. Search engines are so sofisticated nowadays that you don't even necessarily need to know what you're looking for and it just pops up. I think of it as a sort of hive mind thing, internet became a natural extension of our brains.
A simple example might be a function that makes an HTTP request to a server. You could separate out a function that builds the request from a function that sends the request to the server. Then it's easy to unit test that the request is what you expect, without coding up a realistic fake for the server.
Yeah I heard of people grepping their history file. Ctrl+R is so much faster.
Why does this not exist?
Being proficient and fluent in your language and tooling of choice is a superpower. What are the guarantees you get with different kinds of async behavior, how are null or maybe values handled and passed around, what are the default values of things and why. Not just knowing, but understanding questions like these will allow you to write code that is robust and has fewer unexpected side effects. In short, the trick is putting in the hours and hard work. Or, to quote MtG: "There is no shortcut to work done true and well."
SARS-CoV-2 reinfections associated with lower risk of death than first infection
The Godot documentation is also pretty easy to parse. So I made a Dash[1] docset from it: https://github.com/poga/godot-dash-docset

[1]: https://kapeli.com/dash
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3427189/
> Which namespace do I open to import the right extension method to register swagger generation

If you use the templates provided by .NET Command Line Interface or Visual Studio, you'll get this all baked in & setup.

VS also added a very nice feature where it suggests & imports popular packages if you type a method on a type that's well known. If you already have it added to your project but need a using statement in this file, it'll pick that up fast as well.

They've also improved their docs quite a bit from years ago with lots of good examples for common things.
> I think we need to see evidence that hyper-sonic missiles are (a) accurate and (b) able to hit moving targets.

(b) may not be necessary: hitting military bases, and munition and fuel stores, neither of which are moving targets, is a useful capability.
Sure you can have this "discussion" but it comes off as needless (and probably racist) concern trolling. The Sweden thing is a favorite among reactionaries trying to mask their racism. The homicide rate in Sweden is lower than Canada. It's lower than Finland.
You type about the same number of characters. Now imagine you wanted to declare the value to be immutable.
Isn't that just a function?
I mean, fuck the Daily Stormer, but the sites that have been most subject to state-mandated DNS blocking are primarily torrent search engines, which most people would agree are a good thing. I'm willing to accept the loss of DNS blocking as an avenue to attack the Daily Stormer in order to preserve the Pirate Bay.
For C, use seccomp and write simple and readable code and hope the compiler optimizes instead of complicated and hard to audit code, I don't mean commenting and variable/function names but the actual control flow, data structures and algorithms. Eliminate complexity unless you absolutley have no choice. And the power 10 rules from JPL which i think can apply to other languages as well.

https://en.m.wikipedia.org/wiki/The_Power_of_10:_Rules_for_D...
Have the complete opposite experience here - we (OBS Studio team) often have malware copies of our website set up by scammers, and Namecheap are the most responsive by far at suspending the domains - usually in under an hour (!).
> Police there recently announced that walking dogs in parks was a crime. The ban was justified as a measure to "protect the safety of the public".

Sounds like it’s already happening; that was in the first paragraph of the article. I don’t see how this is an example of propaganda, unless you consider any news reporting in general to be propaganda.
"Make the world a better place" is an primary element of Ikigai: https://www.mindtools.com/blog/whats-your-ikigai/

but, not the only one.
Most of the time I know the starting characters of the command I want, so I use up/down arrow instead of Ctrl+r. You'll need this in `.inputrc`

# use up and down arrow to match search history based on typed starting text
"\e[A": history-search-backward
"\e[B": history-search-forward
Yep. True. But amortized over the expected lifetime of the aircraft, it will still be orders of magnitude cheaper.
Right... which is why I said It's a great way to do small-medium features.
That's what I meant in my first post that we need to get rid of. There is too much of this behavior that companies try to get into people's computers and control what they can do with their own computer.
One that a professor of mine used when I was in grad school which I don't see that often these days is the use of sentinel values. For arrays/lists of unknown sizes, it's sometimes nice to do something like:

while val != SENTINEL:
# ...stuff...
val = some_iterator()

You just have to be careful that you can never have real data equal the sentinel.

A variation on this can be used to stop queue processing in a multi-threaded/processing environment. You can put N sentinels (aka, poison) in the queue for N readers, and when a reader gets the poison, it quits.
Actually depicted people trying to organize and cooperate, rebuild rather than running nitrous-fueled cars to trade petrol with the Bullet Lord or whatever. (I like those films too though.)
>We evolved

*Still evolving. Many people every day die from being exposed to other people's microbes and mishaps, even those who are weened on it. I wouldn't immediately justify and jump to the 'not socializing is deadly' argument.
How do you recover control of the server, if remote?
While this argument makes intuitive/emotional sense, it's not the case that humans start having more kids once they can finally "chill t f out"—though I totally understand where you're coming from.

In practice, populations in actual hypercompetitive hellholes, where they're not just competing for a job/status/basic financial solvency, but literally for their food security, physical safety, etc., are those which are having more kids.

The pretty-much-universal trend appears to be that once people become more educated and comfortable, they stop having kids above repopulation rate.

All that said, we are not arguing in favor of making life more stressful for any group, be they in developed nations or nations facing severe hardship. We're simply pointing out that "make raising kids cheaper/easier" and "make life easier" are not interventions proven to boost birth rates.
Using cryptographic hashes for "deterministic randomness", i.e. values which are reproducible, but unpredictable beforehand.

I've used this for benchmarking, seeding pseudorandom number generators with the SHA256 of the project's source code. That way, anyone can reproduce the benchmark, but it's hard to "cheat" since tweaking the code (e.g. to favour the current benchmark) will alter the benchmark in an unpredictable way!
Tracing the decline of socialism through the lives of ordinary Cubans
Viewing everything as win-loss is bad, but politics does inform or creep into the majority of things.

Especially if you aren't part of the majority.
When building UIs, I fill the UI with TODO bullet points. This screen will have textbox, when I press enter it will store the input.

Next version: This textbox should display properly on mobile. Then I fix it.

So my UI is always telling me what to work on next
Best programming trick I know - when I don't know something, I ask for help.
Russia is a near-peer and Ukraine was able to fly helicopters into Russia and attack a refinery.
I’m of the belief that social media use ravages the attention span and imposes a high passive opportunity cost on your time (consider how often you absentmindedly open your phone to scroll a feed without looking for anything in particular only to suddenly realize 20 minutes has passed with nothing to show for it). While there is a great deal of informative content on YouTube, personally I find the cognitive trade offs of being a YouTube user far too great for it to be a tool of intellectual development. I’m just a random asshole on the internet though, so credit my opinion accordingly.
I've been seeing a lot of references to this across youtube, reddit etc for a new experimental language. Is google putting their full weight behind this like Go or is the virality just incidental?
There are many reasons to reproduce papers, it doesn’t matter if the author is unquestionably correct. One is to establish that they actually did what they said they did. What if the authors stole this result? It’s certainly happened before. If we don’t accept students divining solutions, why should we accept that from scholars?

Another is for posterity and for future generations. If I give the paper you cited to a student, they can be wowed at its brevity and impressed by its genius, but they learn nothing.

I get you’re trying to prove your point but all you’ve done is solidify my position in my mind that literature reviews are essential to good research. You’ve given me a great topic for my talk to our incoming class of Ph.D. students in a couple weeks, so thanks for that, I mean it. Cheers.
> Get really good at googling

Those moments when you are sitting there trying to figure out how to explain in search engine friendly terms the problem you have.
FWIW Lindybeige is very entertaining but not particularly credible. One sign of this is probably his back-and-forth with Military History Visualized on the debate between the Bren and MG34/MG42 machine guns.
> Alzheimer's researchers have, very clearly, wholly ignored them

This is more of what I was talking about - the extreme confidence that seems to require no externally demonstrated evidence or expert knowledge. It's clear that in continuing this discussion I can expect only doubling down on these armchair certainties.

Incidentally, even the paradigm-challenging researchers are using mouse models and amyloid plaques to make their arguments, e.g. Dr. Itzhaki's work on HSV as a risk factor [1]. Broadsides against these things sweep away the very work you wish to promote.

> Your noisy defense

I'm not defending amyloid beta stuff. I don't know enough to say one way or another, and we should probably invest in diverse approaches when focusing on just one isn't working out very well. That said, I think that challenges to the scientific experts should be based on compelling evidence and reasoning, not mere assertions of certainty.

> misrepresented what I said and did

People can look at the conversation and decide that for themselves.

I tried to tell you something that would help you have a more meaningful intellectual life if you understood it. Now you've heard it. You won't hear from me again. Good day.

[1] https://www.statnews.com/2019/06/25/alzheimers-cabal-thwarte...
I know it's not so useful to be there but technically it is a land border between Africa and the EU. And clearly it still attracts a lot of organised crime. Which warrants this collaboration with Morocco, which was what the discussion started with. I only wanted to say that it makes sense for Spanish/EU authorities (who do control these exclaves) to collaborate with Moroccan police. Much more than any other country.

I don't really understand why Spain insists on keeping them. They're more trouble than they're worth IMO. Also, it's just a little bit hypocritical of Spain to want Gibraltar back from the UK but wanting to keep these areas in Morocco.

Personally I think both should be done, Ceuta/Melilla to Morocco and Gibraltar to Spain.
I think C.J. Date's An Introduction to Database Systems is good, also Gray and Reuter's Transaction Processing: Concepts and Techniques.
Writers say that the secret to writing is rewriting.

The same is true for programming.
(1) Model checking first (using a tool most appropriate for the domain): UPPAAL, SPIN, NuSMV, Z3, TLA+

(2) Model based design (less time spent on less value-added concerns...plus, capturing even more benefit from (1))
As I read it, you are searching for pedantry wherever you can find it.

I don't think you think enough about this fact. For a large open-source project, $20 a year is about as close as "free" as one can get.
Work out solution from the end result. Imageine how end result should be (library API, UI components and interaction) and figure out how reduce it to building blocks you have (framework entities, text, functions-data, etc)
The only reason I don't walk away instantly is that very occasionally someone does engage in good faith and it's an opportunity for me and maybe them to learn something, and that makes the rest (for the most part) worthwhile.
A Bite from the Apple of Death
My take is that local cooperation is natural and good. But, the roving bands of marauders will absolutely be a thing in an apocalypse scenario.

We had TP when no one in our state had it locally, because people didn't lose their minds. Then people found out and drove here. The day I saw a literal armed guard for a pallet of toilet paper was the day I realized that in a true SHTF scenario, there is nothing you can do. If you live within 4 or 5 hours of a road, you will be inundated with refugees/robbers/marauders. It will happen, I am convinced.

As dark as this is, I believe the best thing you can do is plan a safe and painless exit for you and yours when things get really bad.
I think by using `var` keyword you have the potential to inherit the type without changing too much the syntax, in rust you could omit the type if the compiler can inherit the type, that saves you a lot of typing in the future, but you could argue that it makes harder to read the source code without any tool.
Israel has a law proposed (by religious parties) to tax dogs $2500 annually.

Edit: emphasis
It’s similar to chickenpox in that it’s much safer to be exposed younger, but in this case it’s more pronounced
At some point the US (or anyone) probably needs to build a stealth tanker.

A lot of long-distance operations need refueling, and the commercial conversions that are currently done are not stealth at all and could compromise sensitive operations.

* https://www.thedrive.com/the-war-zone/7012/the-air-force-des...

* https://nationalinterest.org/blog/reboot/concept-stealth-tan...
Oh my, a digital book for almost $40 bucks. The book must be really good.