skysight-inc/HackerNews huggingface dataset:
> It also helps if you use a large knife with a curved blade, so that you can rock it along its length. This is great for quickly dicing veg into really tiny pieces (grain of rice size).

IMO: If you're going that small, get a food processor.

Food processors are very useful in a number of recipes: homemade cuts of ground beef (ever try Rib-eye burgers?), breadcrumbs, casserole?

----------------

Similarly, if you're julienne (aka: french cut) a lot, consider a mandoline slicer. A knife can be used, but dedicated tools are faster and more efficient.

The knife is the general purpose cutter. But there are many other cutting tools that are better at making certain shapes.
Entire source is here (107 loc): https://github.com/felixpalmer/procedural-gl-react/blob/main...

It seems to be a nice little trick to translate state from the React lifecycle to a non-React library.
+1 insightful.
Excellent question.

What I am personally most interested in is sort of flipping the script on this private -> public dynamic: ingesting the content I contribute in Public, aggregating and curating it in Private.
You don't need a blood test to measure your blood pressure though.
I don't want to disparage Julia, it's actually a very nice language, and I was very excited to learn it a couple of years ago.

But, honestly, I think their adoption at this point is less "linux-like" driven and much more "apple-like". In that, the language is 'ok', but the company is going to INCREDIBLE lengths with respect to shrewd marketing and buzz-creation at this point.

Which is admirable but also kinda worrying at the same time.
So this is how you’d solve the Fallout 3+ hacking challenges? :)

In practice I cannot think of a time when I was confronted with this particular problem. Usually if I need to find a duplicate I have no guarantees that there isn’t more than one or if there is a duplicate at all. I don’t think I’ve ever had to practically solve the “every number but one” problem. Curious where such problems arise in the wild, except interview puzzles.
One thing that surprised me is how the whole product comes in a "kit" with instructions and tools. I never thought on those medical devices as something that would come as a lego brick, mainly something that has a huge potential as this. I thought that to perform this kind of operation a ton of material was necessary.
Beautiful prose. Well constructed.

I cannot stand the "out loud" variety of music when I'm working, at least.
Miners, unsurprisingly, find much cheaper sources of electricity than the global average.
I'd add that there's plenty of talented people who can easily build and execute an idea well, but struggle so badly with the business side.

Have been guilty of this myself and seen so many overconfident devs who think they can manage it once they "get there" despite the entirely different skillset that's required for the role. Someone who can do both at the same time is incredibly rare.
Solar cells perovskite films made at record low cost and speed
Closing and locking are two different things.
Recent Big Clive video discussing this lamp: https://www.youtube.com/watch?v=klaJqofCsu4.
This is conceptually almost the same as summing over all entries and comparing to the sum of all numbers in [1, n], except that the latter can be done more efficiently because that sum is simply n*(n+1)/2.

There are in fact legit use cases for XOR to speed things up or make algorithms simpler, but this is not the case here IMHO.
This is something I have noticed as well, if it is music I've heard many times before it is far less distracting than something more novel.
If they lose the tourism economy, the population is going to dwindle even faster. That being said, I think it's completely fair to charge tourists for entry, and use that money for maintenance.
"The state, however, has since returned to high-level dysfunction, including a recent case in which foster kids were being transported in handcuffs and leg shackles — a practice that has now been prohibited"

I wonder what the sequence of events was where nobody said anything about putting shackles on kids that aren't prisoners or being arrested.
Note that the mainstream Fediverse's federation isn't just refusal to "associate with Nazis". If you maintain a server and are not a Nazi yourself, but you federate with a third server where a handful of people said something offensive (and this got blown up in the media even though it was just a handful of nobodies), the mainstream Fediverse will refuse to federate with you.

It gets to the point where the Fediverse ends up enforcing a pretty narrowly defined orthodoxy not reflective of even many traditional anti-Nazis. For example, the Fediverse has a conspicuous numbers of strident trans activists in influential positions, and e.g. posting the sort of views that J.K. Rowling held (shared by many intellectuals who consider themselves on the Left) may to outrage and refusal to federate.
That is what I'm worried about too.
Complex Adaptive Systems – the nature of organisation
I observed this only in the USA. Even worse then described.

In Europe people and managers/HR mostly tend to be reasonable instead. Never had any such problems here.
So you do a check beforehand for whether you need to swap them at all?
It also works if both are equal since only one value will ever be zero:

x=2, y=2:

x^=y => x=0, y=2

y^=x => x=0, y=2

x^=y => x=2, y=2
Employer surveillance is the one privacy issue I can't get too upset about.

If I enter the relationship voluntary and I acknowledge that there's no expectation of privacy on my employer's systems, and I understand that this is considered needed by the company on one hand and I am being paid on the other, I just don't see where there's room for me to complain.

It comes down more to how I feel about my employer to begin with. If I feel like I am in a good place, I don't worry that my boss will use my IM response ratio against me. If I am in a bad place then probably this ratio isn't going to make or break my career either - there are other bigger issues.
HSR can be put underground. And since urban land is expensive, the rails are put underground. 90% of the Chuo Shinkansen will be underground[0]. The first section of the proposed Northeast Maglev in the US will be 75% underground[1]. The Hokkaido Shinkansen extension will be 76% tunnels (and only 7% at grade - the other 17% is bridges and viaducts) [2][3]

[0] https://en.wikipedia.org/wiki/Ch%C5%AB%C5%8D_Shinkansen
[1] https://en.wikipedia.org/wiki/Northeast_Maglev
[2] https://en.wikipedia.org/wiki/Hokkaido_Shinkansen
[3] pdf warning https://www.mlit.go.jp/common/000215188.pdf
I Used to Feel Lonely; It Was Unbearable. – News Break
I dont buy this, reading many of the comments here. I'm not a native speaker and not certain at this moment if the figure of "hamster wheel" exists in English. But "rat race" does, as well as "cog in the wheel".
There is a certain underlying trait of self-optimizing anything, also visible in the HN articles title itself (fortunately not so much the content) as well as in many other articles of this kind, coming up here continously. And these optimization considerations are >95% limited to time, they are much closer to self-exploitation than anything else.

Cooking for the moment aside, consider lunch. I'm German (sadly, the country became closer to the US in this respect). But if you ever worked in France or Switzerland for example (not to talk about countries even further into the South), you will spot much a difference here - yet in time spent, but also in the opinion what is important at all. Cooking is the same - it is not all "hungry family" (I certainly agree, at times it is), these are more often than not rationalizations. When I am cooking, the kitchen full of people is the most satisfying situation. It doesn't matter really, how long it lasts. This is not lost time, on the contrary! Also not in the context of work, because it eventually produces energy (I don't mean the calories) also for this.

A final small example: I have an Italian espresso machine here in my offices kitchen. Producing an espresso or cappuccino requires to do all steps manually: grinding beans, evaluating the pressure on the analog gauge, provisioning the milk, making foam from it, etc. - time-consuming! But it is a micro ritual, making my head free enough for handling some of the kinds of small problems, appearing during work. I could also buy something 'modern' using pads, maybe some sort of remote control, even a robot serving the final result to me (are there such things?). I certainly will never do this.
I’m seeing a lot of people posting conspiracy theories here and on social media. I wonder what makes this instance exceptional...
Do you not already have this feeling on a fairly regular basis? (Serious question)
I recently wrote an article explaining what makes XOR so special - may help put this in context: https://qvault.io/2020/01/18/why-is-exclusive-or-xor-importa...
This. Julia's combination of human-readable pseudocode-like code and speed makes it perfect for these applications, and seems to be driving adoption.
Yeah, regrowing teeth has been in the news for decades.

Treating cataracts with eye drops is one I noticed a few years ago.

https://www.sciencemag.org/news/2015/07/eye-drops-could-diss...

I was surprised to find these start forming after age 40.

It’s great when a little science fiction finally works.
I stand corrected. I'd still rather have my own personal handle that I could point to any given Mastodon account (kind of like how email aliases work) but it's absolutely better than nothing.
Then Julia should stop describing itself as a general-purpose programming language.
Yeah it's a coordinated effort against elon musk again, but he'll win again. Can't wait for satellite internet.
>all popular instances have a very strong left-wing set of guidelines

Can you point to those guidelines on the top instances? I'm not sure which of the most popular instances prohibit, say, expression of conservative views. Though perhaps you do have a point - they might be more tolerant of far-left views than far-right views.

I also think defederation because of lax guidelines doesn't happen as often as defederation because of users of other instances behaving in ways which heavily go against the guidelines - whether it's harassment or posting porn the major instance doesn't want, etc.

Fedi, moreso than Twitter, is what you make of it, and there are many (but just not as many) users on 'lax' instances (e.g. FSE or SPC or Smug or Weeaboo.space or Gameliberty... you name it) to talk to. I have an account on a major instance, a 'lax' instance, and my own instance. I have personally found I extract the least value from the local timeline 'lax' instance.

I'm skeptical of the idea that defederation-by-association is as common as another commenter here suggests.

I don't think it's meaningful to say a newspaper is 'censored' when there's another newspaper stand right next to it that shows every paper in full.
Art (music, literature, ...) involves satisfaction of constraints. For instance you need to tune your guitar like the rest of the band, write 800 words like the editor told you, tell a story with beginning, middle, and end and hopefully not use the cheap red pigments that were responsible for so many white, blue, and gray flags I saw in December 2001.
> These lamps are currently only available in Dubai. The likelihood of them appearing elsewhere is limited by the fact that they are designed to last a long time, which isn't profitable for the manufacturers.

Just incredibly sad.
You seem to have a pretty loose understanding of "friendship" if you consider random strangers who converse with you over a forum as friends ... a friend is somebody who'll help you move or visit you in hospital if your sick.
> One of my biggest complaints with Julia is that zealots for the language insist these permeating abstractions are costless, but they totally aren’t.

This sounds like it might be interesting, but your later comments about overhead and abstraction costs sounds like you maybe don't understand what Julia's JIT is actually doing and how it leverages multiple dispatch and unboxing. Could you be a bit more concrete?
That's weird. There was some research that people behave more morally when they think they are being observed. Even if they see themselves looking at themselves in the mirror.
Inkscape Releases 1.0.2 and 1.1alpha
There's no thread there to combine.
julia> supertype(String) == supertype(SubString) == AbstractString
true

If you insist just use f(s::AbstractString)
I'm guessing someone is measuring the Project Manager's performance based on number of open issues. Or they think someone is doing so. Even if it's just a side comment from a VP noting how many open issues there are.
Some go to Hillary and Joe to suck their blood so there's that.
Low cost 4G LTE service to be rolled out in Nigeria
I said something similar in another thread, but for me it doesn't have to be better than Python, as that is largely going to be subjective, the package ecosystem just has to grow and have some offering, at all, for the things that I do.

https://fluxml.ai/Flux.jl/stable/

Is still very barebones compared to Torch/TF/Flax and I would be hamstringing myself by switching to Julia even if I find the language otherwise attractive.
None of these "cash out your lifesavings of 100K" when you're a 20-something and go live in the woods/foreign-country plans are realistic.

Sure, it's theoretically possible, but it's much better to redirect that effort into finding a job you can live with in your own county. Nothing wrong with a bit of wanderlust, and you can certainly get that out of your system with the safety-net of a sustainable career. Do I sound like a parent yet?

The expat thing is done by every generation, it doesn't stick. Gen-X-ers (my people) went to Prague, had great times, made lifelong friends, saved nothing, often developed mild drinking problems, in the end they lost a few years of their earning potential. Did it develop character? Yes. Could it have been done in other ways? Yes. Was it worth it? ehh.

There are other ways to escape from the searing banality of a career inside of Mega-corps filled with assholes, HR drones, soul-sucking labor.
Random idea:

I like the idea of running apps in their own sandbox, eg using docker container to run an instance.

For macOS, maybe second desktop login just for Teams and then use quick user switching.

Kludge, not a fix.

Working remotely, my SO has to agitate the mouse, like a dead person's switch, to prevent screensaver / lock screen, and to signal to micromanaging PHB continuous attention. Separate user login wouldn't help with that.
I think this one here appeared because it's been featured on hackaday recently[1], which got featured there because Youtube channel "bigclivedotcom" made a video about them[2], which blew through the roof because of some Youtube-algorithm-doodads? Compared to his recent other videos, this really stands out in terms of views. (Although I can really recommend the channel).

Anyways, the main thing is that these lamps use more filament-strips than usual led bulb, thus allowing them to run cooler and last longer. Unfortunately, they are only available in Dubai (afaik).

[1]: https://hackaday.com/2021/01/17/leds-from-dubai-the-royal-li...

[2]: https://www.youtube.com/watch?v=klaJqofCsu4
It's totally different when you can plan for everything, like when things are deterministic like a game.
In real life, when you need to constantly switch to new problems to solve, it gets really time consumming, and saps motivation.
Xor trick may reduce the time/space complexity of a solution but I'd say it definitely increases the cognitive load (maintenance) complexity. Outside of few niche industries/use cases, the increased developer cost will probably outweigh whatever extra hardware you'd need to compensate.
Resources for Learning Math for Data Science
This is probably one of the biggest worries of those starting in the area of data science, learning/refreshing math

Let’s be honest, most people didn’t do very well in math in school, maybe not even in college, and this is very scary and creates a barrier for those who want to explore this discipline called data science.

A few days ago I published a post in Towards Data Scienceand right here on our blog called “Study Plan for Learning Data Science Over the Next 12 Months”, where I gave some quarterly recommendations and made an emphasis on studying mathematics and statistics for this first quarter, and from which I received many questions about exactly which materials I recommended. Well, this post answers those questions. But before that, I want to give you a context.

Leaving aside the factors or reasons that have led most people to hate math, it is a reality that we need it in data science. For me, one of the biggest shortcomings I found in mathematics was its lack of applicability in the real world, I didn’t see a reason for intermediate and advanced mathematics, such as multivariate calculus. I confess that in school and college I didn’t like them for that reason, but I always did well and got good scores and averages above the majority (especially in statistics). But I still didn’t see how I could use a derivative or a matrix in the real world. I finally ended up as a software engineer and once I entered the world of data science I was able to make the connection between mathematics, statistics, and the real world.

Read all here: https://www.datasource.ai/en/data-science-articles/21-resour...
It was not super obvious to me, but the actual sequence is https://oeis.org/A003815 which is the absolute value of A077140. The entry for the latter gives another formula for A003815 however, which is distinct from a formula (1+3x-x^2+x^3)*x/(1-x^4)/(1-x^2) given in A003815.
Came here to post this same link but you beat me to it! Big Clive's videos are brilliant—highly recommend his channel to anyone remotely interested in electricity/electronics.
Micromorts vary hugely based on pre-existing conditions (and, consequently, age)
Once Microsoft became the sole and exclusive licensee of GPT-3, a credible open source effort was bound to emerge, and I hope it really is an effective alternative.
a = 5
b = 5
a = a ^ b = 0
b = a ^ b = 5
a = a ^ b = 5

You where saying?
Cost to manufacture, 4x the LED modules and better supply circuitry. Upsides: LEDs driven at very low current last "forever", more light, less waste heat. Downsides: price to manufacture, and manufacturers preferring to make the typical ones that over-drive and burn out the LEDs so you have to buy replacements.
Xor'ing registers isn't a compiler trick or arcane piece of lore, it's the canonical way to zero a register on most architectures. It's the only universally recommended way for both Intel and AMD x86 and x64 processors.
They are much more expensive to manufacture, since they are achieving that level of efficiency by using more LEDs and undervolting them, around four times the amount of a normal lamp. Big Clive did a complete teardown and reverse engineering in his youtube channel, if you are interested.
You are literally withdrawing into an inner world reminiscent of autism. I would only attempt tulpas as a late stage attempt at solving your problems.
More generally, prisons all over the world serve much more often as a place to put people that society has failed than vice versa. It’s a sad truth that gets very little recognition since these people have no lobby. The American prison situation is certainly particularly awful due to privatization. But it doesn’t stop there. We’re doing terrible things in Europe as well.
The problem is that the 737 was designed in the 60s. The point where all the automation is designed to get hooked in is the trim.

If it were designed today, the 737 would have fly by wire, and all the stick forces would be generated by a servo and the computer anyway.
On the other hand, it was exactly this loss of power, which allowed European states to overcome their long-lasting contest and to unite… Realistically, immediate post-Vietnam would have been too soon for this.
Hashing is another big use case.

For example, XOR is the most convenient combining function for Zobrist hashes in chess programs. OR/AND would be bad choices: given random input, their output is biased to the values 1 and 0 (respectively).
yeah what is the concern that she's going to hack the president's phone and steal the launch codes? /s
Just saw https://www.youtube.com/watch?v=vn2aJA5ANUc. It looks great! I am excited that Handsontable works for you in this context. Please let me know if you'd need any help with it.
Doesn't this just come back to a flavor of superstition? Mine were imaginary enemies. I didn't have any imaginary friends, rather, monsters in closets and under the bed or in dark rooms but I clearly remember talking to one when I was 3 or 4 trying to be polite to it so it wouldn't drink my blood. It would also make more sense people have more imaginary enemies than friendly too right? We know that fear really hampers our intellectual faculties and I had learned through evolution we have confirmation bias in that regard as well.
For me it depends on if the music has lyrics or vocals in it. Someone speaking or singing is the factor for whether my brain expends cognitive effort in listening. I just can't help but try and pick up on words and discern what the meaning of them are.
> There are a whole bunch of popular interview questions

As a very personal strong opinion, this makes me groan.

I'm not concerned If someone happens to know some esoteric trick that they could Google search (Unless of course you're applying for a position at a company that manufactures very low level devices like microcontrollers or embedded systems and questions like this are _actually relevant_).

I'd rather know whether or not they are a pleasant person, are a team player, whether they have leadership aspirations, and take responsibility.
> If they lose the tourism economy, the population is going to dwindle even faster.

I bet it’s not.
Library of Congress:https://www.loc.gov/free-to-use/public-domain-films-from-the...

Public Domain Movies: http://publicdomainmovies.net
It seems like official US policy to make things “cruel and usual”, effectively skirting the prohibition on punishments that are cruel and unusual.
Check out Cisco WebEx sometime if you want to see how bad it can get. It is not possible to quit the app, it will re-open itself automatically and stick in your dock + app switcher. Nothing in Login Items and no setting to disable this. I found the LaunchDaemon doing this and deleted it, and it figured out and refused to work when launched manually.
Well, I'm also making that same assessment for them. If they give me too much shit for the pay, I'm going to work for someone else. It's all about negotiation and win-win deals, no?
xor reg, reg is indeed the standard way to zero out a register in x86 assembly (it's not just a compiler trick) as it is both shorter and faster than loading the register with zero via a mov.

Apart from that, I'd say that a common use of XOR operations in general are interactions with hardware peripherals where manipulating bit fields are needed.
I’m keratakonus patient who needs such surgery as well, to clarify there is also cornea transplant operations too. Which is from a donor. But that surgery requires 6-12month healing time, because it have many stiches
> don't eat like an asshole

Man, it feels like you're taking a shot at me. I've averaged my 10k steps a day for almost a year now (actually averaged close to 11k in 2020 on a whole,but didn't get consistent until mid-March), and, while I have lost weight, I just can't get my diet under control. It's quite frustrating, honestly, and stems form my lack of desire to meal prep.
If the amount of guided tour groups is any indication, tourists do love being treated like cattle. In fact, they pay a lot of money for the privilege. Anyway Venice isn't really a city any more so much as it is an amusement park for wealthy tourists, so it's not too surprising that they're running their city like a business.