skysight-inc/HackerNews huggingface dataset:
Why does everyone think Twitter is doomed?
Lazy people work the hardest. It's an up front investment for a big payoff later when you can grok your code in scannable blocks instead of having to read a dozen lines and pause to contemplate what they mean, then juggle them in your memory with other blocks until you find the block you're looking for.

Comments allow for a high-level view of your code, and people who don't value that probably on average have a slower overall output.
All iPhones today already support wireless charging, so it won't be that big of a jump.
Oh most certainly. We also have a ever growing list of JavaScript frameworks. Software developers are great at the NIH syndrome or not liking how something was solved and they like their way of solving it. Just because there is another solution path doesn't mean new solution paths to the same problem are void.

If you mean more efficiently then that is likely a dimension of the solution where it may not fit for some use cases. For example blockchain transactions are known to be slow when compared to say a RDBMS transaction. If you are recording purchases in a web shopping cart its probably not a good solution. The trade-off here is that for some problem, maybe the speed of the transaction is not a concern.

Don't get me wrong, I'm not defending, nor supporting blockchain solutions. Just pointing out that the "we have ways to solve those problems already" isn't a very valid argument in software.
snark remark... Has nothing to do with PHP but more with the implementation.
Agree, I tend to go through my work with `git add --patch` and committing that way. I find it also works as a quick refresh on what you actually did and helps you decide how/if to split up your work into multiple commits.
> Last I checked, BTC is still 5x from 2018 low.

The video clip appears to be form may 7th, 2018 [1]. Bitcoin was around $9200 at the time.

[1] https://www.cnbc.com/2018/05/07/berkshires-charlie-munger-bi...
The sentinel toothpaste: a useful programming technique for everyday life
But note that git's data store (the bit where actual code/content is kept) is fundamentally append only. You can't manipulate anything there. You can only add different versions. The only pointers you can actually change are branches and HEAD. This is really, really important to understanding git and actually trusting it to keep your work safe.
That was my conclusion after publishing a paper during my BSc. Academia is full of petty politics. Professors that gatekeep whole fields on a "like"-basis, reviewers arguing with "not enough experiments done" and questioning uniqueness and novelty in ways that just don't make any sense (to me). It is a very bureaucratic process that cannot possibly be good for innovation and progress. Then you get incentives of fields that don't make any progress to keep the hype train going so their jobs don't become meaningless over night. It just keeps going. So, I obviously declined to do a PhD and went into industry. At the bare minimum, playing politics in industry leads to vastly better (pay) outcomes than in academia.
Can someone please ELI 5 for me how to get started?

I downloaded and ran it, it created folders NOT where I told it to, and started.... but no command I type seems to result in anything other than an error message.

How can I get it to add 5+5, without using an external editor?
And teams for business...
For the mere mortal who just needs these commands every once in a while, it’s a huge win though.
No, you only shouldn't rebase if you pushed to a shared branch. If it's your PR that only you are working on and you need to update it to the latest in the master branch, rebasing is the correct way to do this. There isn't a magical rule about not pushing to a remote branch. The point is to recognize that rebasing rewrites the history which is a problem if and only if that history has already been relied on by someone else or otherwise integrated in such a way that rewriting that history is destructive. If it's your PR, then as far as anyone else is concerned, you DID just checkout the latest from master and branch off of it. No one needs to know or care that you actually rebased.
Everyone with half a brain has predicted the failure of NFT's and the collapse of ridiculous get rich schemes such as FTX. The big problem is when recognising the (small amount) of value that actually is in the cryptocurrency/defi industry, to put your money to work in a smart manner. Sequoia is clearly not able to do so reliably, but in general it's incredibly hard to be long on a market that's so overhyped as crypto is.

Besides crypto there's a ridiculous amount of overhyped tech stocks on the market. None of the tech companies have a market cap that is anywhere close to being sane relative to their intrinsic value. I'm long on Tesla, but I'd never actually hold that position, because I'm long at a much lower value of their stocks than they have now. But you know, the market can stay irrational a lot longer than you can resist FOMO'ing into an overhyped stock, is how the saying goes right?
Reading up what available publicly on FTX saga, it is clear they do make big bets in cryptos while misusing their funds. We will wait for the FTX book written to know more detail.
> This whole notion of "documentation can get out of sync with the code, so it's better not to write it at all" is so nonsensical.

I do believe that in a lot of case an outdated, wrong or plain erroneous documentation does more harm than no documentation. And while the correct solution is obviously "update the doc when we update the code", it has been empirically proven not to work across a range of projects.
Would it run better if it was a "Python turd" under the hood?
A map of FTX's private company investments
They are not in the trading business.

You can’t make the identical argument for companies because they may return value to shareholders in the future. But there is the risk of management and governance, like we see now with Meta pissing away money on vanity projects instead of returning value to shareholders.
I think it would take 12 weeks just to find out where the tech debt is.
Cats Trash Theory That They Followed First Farmers to Europe
Bob Ross enters the chat
The NYT is reporting something that is happening. The main point of the article seems to be that this a change in policy at the last minute, something that tends to be criticized in most cultures.
Yes yes and yes. But: Microsoft?
I’m not over 50:). Not sure why you’d make a wild guess like that.

No one mentioned working overtime except for you. If you want to work overtime then you do you!!

I can’t imagine being so lazy that you still go to work and collect. A pay check but don’t do any work for the company and just work in your resume as you suggest.

There is a happy medium between working overtime and doing no work at all.

Hopefully you’ll find some work life balance in your life, because work really can be fun and fulfilling if you are lucky and work at it.
ASML is headquartered in the Netherlands, they don't do that over there - everyone is on a salary.

The annual report states that they don't grant stock options since 2017 and there is no word about stock based compensation in the balance sheet.
Modern music uses ambiguous chord sequences - usually four chords - that repeat over and over but never come to a climax or a pause. The chords are ambiguous because they fit with a couple of keys - usually related major and minor, or perhaps a mode - but without the stops there's no clear sense which applies.

I don't agree with that.

A key is not just a collection of allowed notes, there is a kindof frequency distribution to them too, so that the tonic is either the most used or the most implied. The fifth is often the second-most-used. Its sortof like a key has a 'center of gravity' in the tonic note. Either it will be used a lot or alluded to a lot.

So a chord sequence might technically fit into different keys but usually there is an implied tonic and that 'tells' you what key you are in.

So within a (well constructed) chord sequence in modern pop you can still have suspense and resolutions and so on. Kindof the same as cadence but done in a different way.

And the trick to a good key change is to subtely shift the 'weight' in the direction of the new key just before you make the change.
It's not 'all the code', it's the directory info, and links to every file, the vast majority of both of which will already be in the repo.
Habr allows reposts from different media, but only by author.
This one isn't so much a cultural difference but Qatar not doing what they said they would. They agreed to allow the sponsors to what they've paid to do and now a sponsor who paid 85 million(?) is being told they're not allowed to do what they've paid to do.

This is Qatar not respecting the cultural differences they asked for come to their country. Drinking beer at the World Cup is a major part of the experience and the fans quite simply are getting screwed over.

It's hard to think that this won't go down in history as the worse world cup ever along with being the most corrupt one.
The technical level can seem very impressive until you read a thread on a topic that you know very well.
Agreed. It is great watching him eat the shit sandwich he has made for himself.
This!!!
I always laugh when Apple advertises its supposedly superior privacy features...

For sensitive stuff I placed a encrypted sparsebundle on my iCloud drive.
Only a state actor could threaten ASML dominance at this point. They have outlasted all their commercial rivals.
I already have a recipe in IFTTT to send my twitter favs to a google sheet
The question: what is the state of your server after a handler panics? The answer: you have no idea. It is not wise to continue serving requests when you may have serious issues in the state of your server. Maybe some central data structure is now corrupt. You have no way of knowing. Fail fast and fail hard.

OTOH, maybe your priorities are different and you would prefer to be more available than correct. In that case by all means add a recover to the top level of your request handlers. But it was a mistake to have made this decision for all users of net/http ahead of time.
> I really can't believe he didn't put any escape clauses in his contract, no due dilligence, etc. I think he's very smart in general but this mistake is pretty much colossal in size.

This was not a mistake. He was seeing that his offer to buy twitter was not taken seriously. Understandably the board felt he will flake out. He wanted to show he won't flake out. The way he could demonstrate that was by binding his own hands.

So he went to his lawyers and asked them to write an offer he can't back out from. And then he got what he asked for.
Is that Tom Scott as in Tom Scott?
Geez you use this tool for quick answers, it's not a manual specification. Do you also hate the CPU cache because it doesn't always point to correct memory?
Their only product is a software whose background process scanner can never be disabled.

That's a red flag to me already.
Especially since this wasn't a failure of "crypto" or anything decentralized actually built on it. It was a failure by a Wall Street trader who set up a centralized exchange in the Bahamas, and engaged in the sort of shenanigans that we've seen other Wall Street people do. Apparently everybody's forgotten that legacy finance had Madoff, all sorts of shady nonsense that collapsed in 2008, etc.

The point of crypto is to eliminate such attacks by removing the need to trust central actors like SBF and FTX. It's the reason people keep talking about "trustlessness."

This is not a panacea, and building reliable smart contracts is an ongoing technical challenge with its own social issues. To really work, users need to insist on solid audits and minimal special access for admins, just for starters. But those are different problems that had nothing to do with FTX.
Apple in India is a luxury brand, increasing prices with additional taxes won't make any significant change in their sales numbers. The main concern here was avoiding more e-waste and allowing more consumer freedom.
You don't rebase it ontop of main after you've published it because that will mean anyone else who has checked it out will have to like checkout -f to clean it up.

You just merge main in. Don't worry about extra commits that appear. PR tools like Github won't make people review them if you've done it all right, they can tell what a Merge Commit looks like (don't go deleting the auto-generated messages for merge commits unless you know what you're doing).

Once you merge main into your out-of-date branch, it'll be up to date. And when you merge your branch back into main after the PR, it will work out. This is the standard way you would work on a branch with a coworker, instead of working alone.

There's nothing wrong with merging main in.

If you absolutely MUST have a perfect history of your commits on top of THE CURRENT state of main, start a new branch, start a new PR, IMO. Just don't change public history.
Nice to see America waking up.
You can merge with master instead of rebasing, the downside is you'll end up with a lot of merge commits in a long living branch.

I just rebase and force push. I really don't get all the people that say avoid doing that. If you're the only one working on that branch, there's no risk.

If you're working with other people on the branch, and no one has unpushed changes, it's also fine. Everyone will just need to reset to the origin version of the branch to keep working.

If people do have unpushed changes and you force push, then they need to spend some time untangling it. Which is annoying, but it's not the end of the world. I don't get all the fear about it.

Don't rebase and force push master, that'll piss everyone off, sure. But doing it in branches is fine in most cases.
Well, I am a millennial. Zero is a distance, admittedly[.!]
Sanctions: Russia's commercial airlines face a slow death
So they’re leading the industry by building “buggy” products ?

I’d prefer to buy a Toyota
> Does it bring "joy" though ? or does it bring a quick feel good response in your brain that pushes you away from activities that actually bring joy ?

We’re talking about an app you watch on the toilet or while waiting in line somewhere.
Make a sandbox repository and just break it repeatedly. Within the realm of basic commands, I bet you already know how to do most things (including recovering from small mistakes), but it feels too scary so you revert to non-– GIT methods. In a sandbox, you can get the reps in without any fear.

You could then graduate to forking a real repo. Again experiment fearlessly, with slightly more realistic scenarios.
Git from the bottom up. A very clear and simple guide to the internals.

https://jwiegley.github.io/git-from-the-bottom-up/
I don’t think music is getting dumbed down, just that different aspects are becoming more prioritized than others were in the past.

Listen to a 100 gecs or other hyperpop song and listen to some of rhythmic motifs being used. This isn’t a fringe genre either, it’s hugely popular with gen z. It may not have key changes like a rock ballad, but it has lots of musical ideas which songwriters from the last 60 years never even had access to.
The general concept of having a medium and marketplace of exchange that isn't regulated/controlled has some value. It may have more costs than benefits in the grand scheme of things, though. I tend to support regulation in general, but I also see the value of something that has limited opportunity for opportunists to dig their fingers into and extract from without contributing real value themselves. To be very clear, I'm quite an opponent of cryptocurrency in the the big picture.

It could be that taxes become absurd or abusive in some governments or corrupt officials steal or waste their fair share. It may be that some government wants to prevent certain types of exchanges that the rest of society thinks are actually 'OK' and their government no longer reflects their interest.

For example, my significant other is filipino and in their culture, many leave the country to work internationally because of limited local opportunity. Part of that culture involves many sending money home regularly to their families. Sending that money has limitations and often goes through currency exchanges and other brokers who collect fees off that money. To my SO and their family, these groups are leeches providing no value.

I understand why some of these structures exist (to help reduce money laundering and criminal monetary exchanges, etc.) but most these folks sending money home are doing honest labor and simply trying to support their families abroad but have various middlemen sticking their fingers the pot. Crypto and exchanges could provide a viable route to avoid this and send wealth home with limited interference.
Real world range tests for highway driving:

https://insideevs.com/reviews/443791/ev-range-test-results/
1000%

In C, if it can fail, my function always has an error out parameter.

void mtt_read_user_file(char* path, mtt_error_t* error);

The ease of use benefit of having a unified way of checking for errors far outweighs any performance cost.

My errors:

- are binary. "FAIL" vs "SUCCESS"

- hold a chain of user friendly error strings

- have caller controlled behavior, such as turning off error strings to save perf

- can also hold a single error code

- supports being fully preallocated, which I always do at thread creation time. I only need one error object per thread.

I'm quite proud of the error handling in my C code.
It's amazing how much magical thinking pervades the space. Why would governments moving "more" into digital currencies do anything for crypto? They'd be completely unrelated.
I've always found this excerpt from a Doomberg article sums the whole thing up nicely:

> We distinctly recall drawing two circles on a piece of paper. In the circle on the left, we wrote "Real Economy"; while in the circle on the right we wrote "Crypto Universe". We drew two pipes between the circles - one flowing into the crypto universe and the other flowing back to the real economy - and labeled both pipes with fiat currencies. While we understood how fiat currencies from investors could flow in, we failed to grasp what could be occurring within the crypto universe that would create more fiat currency for investors to take out at a later date.
A "dark webhook" in this case just means sending data from a public server/service like a GitHub action (or even an AWS Lambda) to a server that doesn't have a port open on the internet.

For example, I get a message to my Mattermost client everytime someone pushes/commits/etc. All those messages are sent to the Mattermost server over a webhook that is configured on an overlay network (in our case, using OpenZiti). There's no firewall rule allowing the traffic to the Mattermost server, it's "dark" to the internet.
That's a lot of bullshit when you could just simplify it as "we want to take money from suckers"
I'm passionate about running. I started with it as a way to lose fat. In conjunction with diet, it worked flawlessly, and I continued to be passionate about it.
Around a year and a half ago, I wanted to improve further, so I found a running coach and got better enough to compete in running events. The past Sunday, I competed in my first full marathon in Athens, placing in the top 3%
I would consider anytime you are thinking about a work issue as productive time. So yes that includes time i am mindlessly browsing HN while my brain is processing information for me to come up with a neat solution to a problem.

But yes managers dont get this when i say i get all my work done during lunch hour.
SICP is your messiah: https://web.mit.edu/6.001/6.037/sicp.pdf
> law allows newer standards to be used. USB-C is just the required minimum

Nobody is going to put two ports on a phome. Required minimum is the legislated maximum for physical interfaces.
There is a bit of that with static lambdas, function pointers (unsafe), but still isn't quite what you want.
Turns out we govern small scale institutions pretty well without blockchain. Eg: companies, collectives, organisations, associations, etc.
My mental model is each edge is a diff and each node is the aggregate of all edges + the starting state
Sharepoint is complicated enough as a system that it requires its own certification programs. People should really learn to get competent IT and ask them questions instead of trying to figure it out without any relevant skills and then complaining. I get it, most of us have been told and have witnessed that we’re much above the average joe when it comes to computer interfaces but that’s because a lot of low level stuff is intuitive and not as complicated as this. Just swallow your pride and ask questions.
>Just relax and browse

our social media platform brings the soma to you!
Both in workforce and valuation. Companies like Zeiss have slower but more sustainable growth, but also don't move fast and break things.
> but in practice there’s cases where it’s treated more like an unchecked exception in Java, i.e., “I can’t recover from this so _I’m_ going to give up but _you_ can keep going.”

Java has a supertype for unrecoverable problems like out-of-memory-errors. It's called "Error", a subtype from Throwable. Exceptions are also Throwables, but they are NOT errors.
You just saved my brain so much pain. Thank you
There are probably no fundamental differences like there are no fundamental difference on transportion from a horse to a car. You just have the benefit when you can drive 130kmh for hours on well maintained road infrastructure instead of riding through a forest.
Environmental impact of diets for dogs and cats
This reads like the psychedelic equivalent of "true Communism has never been tried." You're saying psychedelics always have whatever emotional effect, and if they seemingly don't well its your fault for putting up a defense mechanism, or actually it did work but you don't remember.

Why are you rationalizing this? How are you so sure that there really aren't people who simply don't get major distortions to their emotional state, and that there isn't anything wrong with them?
Trump tweeted an image from a spy satellite, declassified document shows
Hardware acceleration in robotics news. ROS2 HAWG #13, Robotics markets: up, down or just sideways?, Nvidia offers new advanced chip for China that meets U.S. export controls, SiPearl works with AMD on GPU support for Arm HPC chip, Transforming robots help to transfer skills
Does the US debt threaten to end the life on earth? Then I'll happily join the movement that aims to bring it down by private action.

I know individual action on it's own is not terribly effective. The game plan I see here is that we keep public focus on how bad meat eating is for the environment, and hopefully reach a critical mass in public opinion so that one day it is politically acceptable to reduce the dairy industry subsidies. It takes time, but it is a feasible idea.
It is possible to overall embrace diversity while at the same time finding disgust or problems with certain aspects of a culture. As an extreme example one can be against discriminating against Muslims and simultaneously find disgust with the cultural practice of female genital mutilation by some Muslim societies.
I feel like this world cup is going to lead to chaos in an unpredictable way. Taking international fans and putting them under strict no alcohol policy, and other weird authoritarian measures like no kissing in public is going to fail spectacularly. Not a matter of whether I think people should respect other cultures, it's a matter of knowing some people won't.

They will probably instruct their local police to turn a blind eye. But if they don't, I bet this is going to lead to diplomatic crisis one way or the other.