skysight-inc/HackerNews huggingface dataset:
I'm not a very experienced Ruby developer but RuboCop does a pretty good job at guiding and teaching you to use `unless` as a guard in method definitions, e.g.:

def my_method(required_thing)
raise 'required_thing is required' unless required_thing.present?

...
end

In practice, this hasn't been as issue as a consequence of the tooling and ecosystem around Ruby.
I brew it just like any regular herbal tea and I'm pretty happy with it. The whole ritual with the pipe and gourd is a bonus, but never required.

If you dislike the more bitter flavors about it, try steeping it at a lower temperature (like 70-80C) and only for a short duration (2 or 3 minutes). That should make it a lot more bearable to you. You can also get packages that have less or no stems or powder, which both add to the bitterness.
AI will unlock a new dimension of marketing creativity
IPFS still has poor performance for very little innovation. Bittorrent still works perfectly fine, and in fact peertube uses webtorrent to distribute content from browser to browser to offload the server. It is perfectly possible to mirror peertube channels on bittorrent
If "devs" don't want to play with my side project because of nginx, that sounds like a problem for "devs" not for me.
Modern PHP frameworks work around the issue where the web server directly executes PHP files targeted by the request URL. They also provide nice abstractions that are battle-tested and secure.

PHP is not my cup of tea (I can't be productive with the unintuitive function naming) but with a modern framework it can be proper. Laravel for example gives you a Django/Rails equivalent including task queues/etc, and becomes immune to the dumb vulnerability of uploading malicious PHP files in the media folder since all requests are routed through a single entry point rather than having the web server directly execute the PHP file.
I think there might also some incentive to pad media runtimes for streaming services to make it look like they have a lot of content. And a drug induced high sequence is cheap to film.

Lots of content that should be 90min or 2 hours at most is now 4 hours or more.

I simply stop watching or fast forward through that nonsense. If I wanted to see people get high and drunk over and over, there are more entertaining venues.
You're missing that less is more. ;)
This would be solved if drugs were decriminalized and testing kits were very easy to use and come by but I guess a lot more people have to die before society as a whole acquires common sense
Prescription drug sales reps market to doctors, attempting to convince them to prescribe certain drugs more frequently. Who pays for the drugs is largely irrelevant to that interaction, but I wouldn't be shocked to learn it's illegal in the UK.
After all these years, sublime still stands on a league of its own.

Fleet is supposed to be this lightweight editor but unless it can beat sublime at startup, it's not.
I write C++ professionally and primarily edit code using Emacs inside Tmux over ssh, and I've found once you get accustomed to it you can be just as productive without any fancy plugins. E.g. instead of autocomplete, it only takes a couple seconds to split the window, open the other source file in the second pane, jump (by text-based search, if you weren't already there) to where the definition is, highlight the word and copy-paste it back to the first pane. And that way you never have to worry about your tooling randomly breaking in template-heavy code, something no C++ IDE is safe from. No more moments of frustration when the IDE randomly freezes while you're trying to do something important.
I believe that this is more related to a political point of view than Twitter's quality itself.
>like Musk and SBF

I‘m sorry, but what?

Just to give some perspective that I don’t think HN really gets: most of my friends have increased their twitter usage.

If you aren’t aware, whatever the team did there a few days ago really has appeared to cut bots down to almost 0.

SBF is an [alleged] criminal who has [allegedly] defrauded people of billions of dollars, and will likely be spending a substantial amount of time in prison for it.

These things aren’t the same. A restaurant changing their menu to suit a larger audience is not “hubris” simply because it no longer caters to you.
What do you mean it doesn't work? The point is for people to know what they are buying. If it's legal then products would be better regulated and consistent. Heroin should be completely heroin, not heroin with a bit of fentanyl thrown in.
Would you happen to have that ansible setup on github for others to learn from? Now that docker is actually fast enough to be usable on mac, I'm leaning in the direction of a fast VPS plus docker compose for simple app deploys like you (with the option to move to swarm if growth occurs). Would be great to learn how others are automating the VPS setup itself.
Am I right in believing that US vice presidents are officers of the company, and can sign contracts on the company's behalf? I was once told by a VP of Marketing that because he was a veep and could sign contracts, he had a fiduciary duty to his employer, and was constrained in the kinds of thing he was allowed to say.
a16z didnt invest in FTX did it ? ( i agree with your thesis nonetheless)
> not your keys, not your coins as the saying goes.

> Furthermore, the current "bad crypto news" is still suppressing the BTC price.

This is a contradiction. The high price of cryptocurrency is based in part on intermediated (ETF-style) and leveraged long bets.

If everyone took your advice and kept custody of their own keys, the crypto space would be much less speculative. That's probably not a bad thing, but it would not obviously herald a return to high prices.
>"That's some crazy powerful hardware, and would be a significant upgrade for most people."

I have my own company. Cost of this laptop goes as a business expense and is peanuts comparatively to revenue.

>"Sure, 8GB RAM is quite little, but it's still within the mainstream."

I've never cared about mainstream. Not in the industry and neither in private life. I do what works for me / my company and could not care less about what others do.
What you describe was literally the cause of the revolutionary war in the US!
Thinking with all new AI tools where world is going? Is it scariest or happiest time to be in this AI era?
For the input sizes in aoc, the slowdown shouldn't be measurable.

Taking input size into account, you do not even need a queue, just loops.
The professional teeth cleaning most folks with insurance can get 2-4 times annually with a dental hygenist - eg. Scaling and polishing.
OR wouldn't work with a sliding window since it can't be inverted?

This should work:

init bit mask and count of bits to 0
for each new char:
old = bit mask
bit mask = bit mask XOR old char
if bitmask > old then count++ else count--
old = bit mask
bit mask = bit mask XOR new char
if bitmask > old then count++ else count--
if count == window length: return match

The idea is that each XOR will always set or clear exactly one bit, so we can maintain a count of set bits.

But if there is a POPCNT instruction it would probably be faster to use it.
All these links are wapo internal. I can't find the CDC corroborating this.

It looks like the authors are comparing numbers from different methodologies and then claiming a quantitative rank order can be deduced and it can't unless you can demonstrate the methodologies yield equivalencies especially when you're looking at small population percentages...

I had a good friend lose a multi-year battle with opioids about 7 years ago who ended up sleeping on my couch for months when his family had abandoned him. It's a life changing and terrible thing and I've never been through anything more difficult than helping someone struggling with opioids but I don't think these claims in the article are well supported.

I wish nothing but the best for others going through these troubles. I wish compassion worked as better medicine
> As your CEO, I own this outcome and take full responsibility for the decisions that got us here.

Such a popular phrase this year, yet they do not go into details about that. Even more, as a co-founder, he should have more responsibility here.
For a static site, I deploy it on Vercel via Github. Been great for me
> viciously chased out

Now that you mention it, I recall the Dixie Chicks getting cancelled for openly suggesting that maybe the Iraq adventure wasn't such a good idea.
I agree! For VCs, crypto has been a “Heads we win, tails you lose” proposition.

Normally it takes 3-10 years for a VC investment to reach an exit. In crypto, they get tokens that they’ve been able to dump to retail almost immediately. A16Z has a particularly suspicious shitcoin pipeline via their Coinbase board seat.

I hope SEC also ends up prosecuting investors who participated in these token offerings, and ideally also employees who got paid in tokens [1]. But I have no idea if there’s a legal basis because American securities law is designed to protect investors and doesn’t necessarily seem to account for the A16Z-style case where they’re essentially co-conspirators in the fraud: supplying crypto founders with money for marketing which pulled in retail dollars which ended up straight back to the VC’s and founders’ pockets.

[1] What difference does it really make if you’re a founder selling unlicensed securities, or an employee who signed a contract where you get paid in those unlicensed securities and then you dump them on retail investors? The SEC should look at these schemes which were popular with companies that hire on HN too.
Running a somewhat current Mesa3d should also matter.

Ubuntu's stack is just prehistoric.
If I wanted Facebook, I'd stay on Facebook.
https://www.theguardian.com/uk-news/2022/sep/01/gun-rising-i...

Criminals using illegal guns don't adhere to laws. Same issue in US.
I've spent the last few days building copypastemathjax.com after finding myself searching google too many times for mathjax expressions.
I think you meant to comment on this thread: https://news.ycombinator.com/item?id=33951866
On the upside, Twitter has reinstated scientists talking sense about Covid. I may not agree with everything Elon but I welcome this new wind of change.
But why were you on Twitter in the first place? I’m deeply skeptical of people who believe that Twitter was a great place to be, right up until the moment Musk announced he’d buy it. It was always something of a cesspool, and was a vehicle for political extremism of all shades.
Do non-OSS companies still use Bugzilla? Looking at their pages it's just Apache + Linux distros and Libre/OpenOffice.
You're proving the point. You see no difference in presenting a product well and "selling junk". The Peertube website's job is to tempt people to try it out. Getting people to use Peertube is the only way Peertube can change anything about the situation where the default video repository is being run by a for-profit company with only its own interest at heart.

That requires what iandanforth refers to as "product and market building".

Making a good, ethical product look attractive isn't evil.
Aha, some more good ideas there! But you're right, there's tradeoffs and dependencies and uncertainties throughout, so it's not easy to even guess in advance what would work or be worthwhile. Plus as you say there could be negative consequences from a kind of arms-race, with the solution becoming a problem in itself.

It's not the same thing, but I'm reminded now of email in the past, when you would usually get an undeliverable message if something went wrong. But later that was almost entirely stopped - because of spam. Massive volumes of spam was sent from forged addresses, and much of it led to those replies. So that made things worse by doubling the volume, plus the innocents whose addresses had been forged got deluges of confusing undeliverable messages!

I think you're right in that changing IPs would be easy for them. But, changing hosts would be significantly more work and hassle. So if the abuse reporting worked, that could have much more of an impact...
I just have a digitalocean droplet and deploy with SCP. No fuss, no muss!
> Note that the SEC's is merely a civil action.

The SEC can only bring civil action, for those wondering why it's a civil action.
I’d look at it from the other direction: how does an interview help him? Nothing he says is going to keep him out of a courtroom and he’ll have time to present his version there, so I’m not seeing any upside to potentially saying something which the prosecution can use, find a lead from, or simply point to as evidence of duplicity — immediately pivoting from “I’m a genius who’ll stabilize this out of control field” to “I had no idea what was going on and ignored my staff” just days after being caught is going to be a hard sell.
Here is a Snopes article from a year ago that claims to have duplicated the Fox News article using CDC data:

https://www.snopes.com/fact-check/fentanyl-overdose-death/

Interesting that Google searches for this info return RT results
Keep in mind that depending on use case it will build your project on the same machine your production app runs. There are also a few things to keep in mind.. it depends on docker so a docker update might stop your services, disk space might fill up and needs to be checked on. Plugins such as databases also need to be updated once in a while.
If you're very unlucky you may cause a crash/outage by deploying an update. What I do instead sometimes is to build and push container images of my apps in a pipeline on commit and then deploy those to dokku using git-from.
> the outsized influence of large institutions on American politics is really unfortunate.

The current populist wave has shown that the opposite is true. The threats posed by citizens united were overblown as small dollar donors are generally significantly more radical than large institution.
You first...
My poor-mans-PAAS: git, ssh, systemd, dedicated instance, caddy, grafana and prometheus

Cost per "project": domain + shared cost of the dedicated instance. Right now the dedicated instance is running 8 projects in total, I pay ~70 EUR a month, so about 8.75 EUR + .com domain for each which works out to be ~20 EUR per year, 1.6 per month. Also using Migadu for email, shared between all little projects, ~30 EUR / month (so currently 3.75 EUR per project per month).

Each project added makes cost per project lower, as they all share the same infrastructure.

Environment is setup so every service has it's own systemd user service. Deploys happen by doing the following steps:

- Build and test project locally

- Copy artifact/binary to server with ssh, rename file to be versioned incrementally

- Restart systemd service

- New service deployed

- If database migrations have to be run, I execute them here

- (if something goes wrong, I copy old artifact to "production" directory and restart service again, poors-man rollback)

- Send a marker to Grafana that a deploy have happened so it's visible in the dashboard

As it stands right now, it seems to be about 13 EUR per month per project, but as mentioned before, gets cheaper for each added service. None of them are particularly performance sensitive or use a lot of resources. As a max, I've run something like 15 services on this very machine without any problems. Everything goes via Caddy that acts like a proxy front for everything.

One of the projects got more popular one time and started impacting the performance of the others, I simply replicated exactly the same environment to a new dedicated server where it lived by itself from there on.
> It's not unenforced. It's just that there are basically no counterclaims because they're not worth doing.

Right, they're not worth doing because the cost of doing them won't be reimbursed.

Unsure if you read the above link for the other court case, but moving in a different direction. There have been plenty of DMCA requests for 127.0.0.1 [1], there is no argument that those are in good faith. It would be easy money to get reimbursement for dealing with them but you won't because the courts do not have to give you it.

[1]: https://www.google.com/search?q=DMCA+request+for+127.0.0.1&o...
I posted how to do it in another comment on the thread.
The first 2/3 ones are bitter by nature. Then starting the 3rd or the 4th one (you just add water on top, don't change the leaves) it gets better.
Yes. I kind of cringe a bit because he learned something very special with a somewhat obscure language. (Fanbois will scream of course).

My goto solution for this kind of task is to open up a jupyter notebook and solve if from there with Python. And yes, repeatability in his solutin is lacking. 3 weeks later with an updated zip file he will have to do it all again.

Clever but there are better solutions.
Ngrok Raises $50M
US ads for prescription drugs typically say "ask your doctor about [drug]". I think there's a regulation saying that an ad describing what the drug treats must also discuss risks and side effects, but there are sometimes ads that don't say what the drug is for, merely suggesting anyone watching talk to their doctor about it.
Brett, thanks for making this book! You've reinvigorated my interest in DragonRuby. I have a pro license that I haven't done much with; a couple jam "games".

I have a question about FLOSS that I haven't seen the answer to floating around. If I want to make a GPLv3 game, release, and sell it, what are the implications with using DragonRuby?

Is the recommended approach to ship the commercial packages with DragonRuby and have an open source variant running with zif[0]?

Any recommendations? Thank you again for the book!

[0] https://github.com/danhealy/dragonruby-zif
Really well done. There are some interesting ideas presented here.
I wonder how long before this question starts popping up in interviews with immediate reject if one does not come up with magic-xor solution in 5 minutes on the whiteboard.
EDIT: neat solution nonetheless!!
Not really. The magic is in Badalamenti's harmony.

Julee Cruise - Floating into the Night is one of my all time favorite albums.
The Art of Being a Girl is just nothing without Badalamenti.

You can hear this even more so with the Badalamenti and Dolores O'Riordan songs. Badalamenti was just a wizard with a type of introspective melancholy.
Google CloudRun - I haven't done extensive comparisons but it's been nearly a year and a very smooth experience.

My audio plugin is backed by CloudRun https://signalsandsorcery.org
I have almost no experience of this, and nothing recent, so I don't know. But I'm not surprised at what you say, given the amount of abusive stuff that happens online nowadays.
In my limited experience, you get better results from GP visits if you come with opinions and data about your own conditions and care hopes. They’re too busy; the current system that has forced 10min bookings weeks ahead as the only means of access means it goes better if you do the research for them.
What emulation?

My experience has been great so far, with emulators for recent consoles.
I was thinking the same thing. macros use is easily 90% of my 'Added Value' of vim.

I did learn a lot of things from the video, but I agree that a macro might have served them better.
One marvels as to why e.g. Russia or China don't covertly push funds and efforts into drug legalization in the US if that would widely harm its population and weaken it as a whole. But to the best of my knowledge, they apparently don't, so this is a (somewhat weak) argument in favour of legalization.
Talking Heads – The new science of how conversation shapes our worlds
It's not laid out explicitly, but you can see the numbers here and pull the 2 textual representations to get the detail:

"Top Ten Leading Causes of Death in the U.S. for Ages 1-44"

https://www.cdc.gov/injury/wisqars/animated-leading-causes.h...

"Unintentional Injury" holds overdoses, which are called "unintentional poisoning" in the breakdown in the bottom chart.

For 2020:

80,208 Unintentional Injury deaths
(consisting of)
49,643 Unintentional Poisoning deaths <-- overdoses, 2/3 fentanyl
21,780 Unintentional MV Traffic deaths
2,232 Unintentional Drowning deaths
1,176 Unintentional Fall deaths
5,377 All Other Unintentional deaths
22,431 Suicide deaths
18,838 Homicide deaths
17,310 Heart Disease deaths
16,708 Heart Disease deaths
8,902 COVID-19 deaths
6,620 Liver Disease deaths
4,445 Diabetes deaths
2,927 Stroke deaths
2,100 Influenza & Pneumonia deaths
Zed! That's a blast from the distant past! I enjoyed this 1980 paper about its development: https://onlinelibrary.wiley.com/doi/abs/10.1002/spe.43801001...

EDIT: I just saw in my own comment history that I knew (but forgot) there is a more recent Zed text editor which is probably the one you meant.
Google Docs. I use it every day and it's a pleasure.
Returnal on PC Recommends 32GB of RAM
Yup, it's that amazing.

That's why I think said institutions should donate to the project ;)
I think a reboot of Bayer Heroin (tm) would be better received - from my understanding Fentanyl and similar drugs don't have the euphoria or length of effect of OG Diacetylmorphine.
If you want to try things out it's free to use for now https://chat.openai.com/chat. Just pasting the raw source with no prompt is enough to get that description.
Fun fact: Yerba Mate is widely used in Syria and Lebanon due to trade between Latin America and the Levant. I grew up drinking Yerba Mate Tea almost every day.
I noticed that I focussed more when my Mac terminal was full screen and only using vi to learn rust with almost no plugins. It forced me to reason about the borrow checker before cargo build. I still use vscode for debugging once in a while, but I think it improved my understanding of the language and also prevented me from getting distracted.
> When some offshore temp contractors came onsite and gave themselves grandiose titles

Never seen that; in fact I've never seen a contractor with a job title. I would be predisposed to think less of a contractor with a grandiose title.
Oh great find! I didn't see that in my search results but might've just had the wrong keywords.

Yeah, I'm not surprised - motor vehicle accidents were always super high on the list for that demographic so if fentanyl is even remotely close to the number reported above it would easily surpass everything else.
I've lived in Argentina since 2006, when I discovered mate.. it changed my whole approach to stable productivity because it would not crash you like coffee.

I'm happy to see this study finally. Surprisingly when I asked my doctor here if there were any studies on it, I was shocked to hear "Oh No!" when asked why.. she responded "1. there is no $ for funding it. 2. No one cares here about the clinical health effects, we all drink it ( +/- 45 million ), it works, and the only thing people care about is how many 'palos'/sticks get into the bag".

Personally, having drank it for 16 years, I do deeply wonder about the long term effects of it on the nervous system, which I don't think the paper addresses.
>almost 20 years ago

Yeah, that was ATI, pre-AMD.
WordPress is 25% of the internet. However, according to public metrics (https://w3techs.com/technologies/details/pl-php), almost 80% of websites with known server-side programming language use PHP.

PHP being only WordPress? Laughable. PHP dying? Also laughable. PHP is the choice for everybody but FAANG and Silicon Valley startups. But not even all of them - Facebook, Wikipedia, P*nHub, Slack, MailChimp, Tumblr, Etsy, all PHP or Hack (a stricter variant, diverging over time). (Yes, Slack is PHP, not Node!)

> The web is more and more real time, all sorts of events fired thru sockets, work queues, and state is stored both on the client and on the server. PHP is not up for this task

Go visit Slack then. They are literally built on PHP, and later moved to Hack, Facebook's stricter-typed PHP because Facebook was as well. If Slack doesn't need "all sorts of events fired thru sockets, work queues, and state" I don't know what does, and yet PHP is their foundation. They're fine, and PHP is fine.