skysight-inc/HackerNews huggingface dataset:
But I would assume the more dangerous "research chemical" versions aren't used any more in those areas where legal weed is available.
Damn right!! on the path to make actually do what it is supposed to do.
They call him the Eagle: The US lost a key ally in Mexico as fentanyl took off
Breakthrough drug cures sleeping sickness with one dose
Ask HN: I feel GitHub lacks some tools, does my thought make sense?
Hi,

I have been using GitHub for some time but have to admit I never went into the depth. However I find it lacking some tools. For example, is it unreasonable to require a feature that sort branches by their status (merged/unmerged) and last commit time so that I can batch delete merged branches older than X months? And is it unreasonable to recover a deleted branch easily?

After spending a lot of time, I managed to find answers to both questions. Neither of which is easy. The first one requires a few lines of bash scripts, which sounds trivial, but needs knowledge of bash scripting, sed and other stuffs. The second one needs the last commit hash, which I'm yet to find out an easy way to batch recover.

Is there any tool that solves these issues? They are common and once for a while one will need them. It might be easy to say "You should learn all", but in reality I don't have time to learn every tool in depth unfortunately.
I don't think i've seen one that can handle bluetooth devices, unless maybe you plugged a bluetooth dongle into the switch?

i'd go more with multi device keyboards and mice. like the logitech mx keys for example. have mine paired to 3 devices currently - easily toggle between them with a switch on the keyboard. Granted its not as seamless but sometimes i just want to quickly respond to an email on my personal rig while still watching work queues.

they also have mice/trackballs with the same tech - although the mxmaster mouse has the switch on the bottom so not as convienent.. and the mx ergo trackball only toggles between 2 devices.

other options if screen realestate isn't as important are things like the genki shadow play. While targeted at gamers - it works great as an HDMI input device. I use mine to work on raspberry pi projects on my main system. Its view only - won't pass control through it, but sometimes thats all you really want.

and on the other end of the spectrum, full display port KVM's like these from Level 1 techs:

https://store.level1techs.com/products/14-kvm-switch-quad-mo...

display port 1.4: 2 computers, 4 screen switching
I don't want to be 'that guy' buuuutttt can you turn down the hostility a few notches please?

I understand that HN is a multicultural place and that people across the globe express their opinions in different ways however, a quick look through your previous comments before deciding to down-vote or flag made me take a look at your previous comment history before deciding whether to down-vote or flag it.

We are all new to HN at some stage which is why I've taken the time to write this in an attempt to be kind, gentle and guiding.
> 31. From the inception of FTX, Bankman-Fried diverted FTX customer funds to
Alameda, and he continued to do so until FTX’s collapse in November 2022

I assume they have the evidence, and while what SBF was saying (we never touched customer funds etc.) was never particularly credible - it blows up the narative that he has maintained to date. Indeed much of the case is built on his public statements (and testimony) being false.
Drug abuse is a much smaller problem in east Asia where it is intensely criminalized. In Singapore drug trafficking is a capital offense.

Drug abuse is a massive problem in those parts of the US where it is de-facto decriminalized on the west coast.

I think the evidence is fairly clear on what would constitute a solution, rather the debate is on whether we’d be willing to pay the costs of that solution.
> The most interest aspect in the FTX saga, for me, is that SBF was treated very gently by major news outlets (and maybe by government regulators too)... until regular individuals in social media started asking: Why is SBF being treated so kindly? Why would journalists (and regulators) assume that SBF meant well?

I went through a few examples people brought up of journalists supposedly treating Bankman-Fried kindly the other day[1]. When I read what journalists were actually saying, they were quite negative about Bankman-Fried (saying he was "betraying his clients" or saying FTX "didn’t crumble due to bad luck, but what now appears to be unsustainable layers of deception").

The crypto community seems to be trying really hard to deflect from the fallout of yet another major crypto scam, and spinning whatever they can to make this seem like this is the fault of establishment non-crypto folks. Remember that just a few days ago people were claiming that Bankman-Fried hadn't been charged because he had paid off U.S. politicians.

[1] https://news.ycombinator.com/item?id=33811681
What does Mac OS X have to do with it?

If something I downloaded from npm trashes my Windows desktop or my Linux server it's just as bad. For that matter, pypi (python) and maven central (Java) aren't too different in how they work and there are services like that for many other programming languages.
Kubuntu may looks like it meets your expectations.
They wrote the C so that you don't have to :)
I highly doubt Sam needs to worry about his career prospects sir.
But if he is would love to see solve some LC hards
Speaking/writing like this comes
off as pretentious to me. Have you heard that before?
Enterprise Webhooks with Static Ips
All those non-technical folk were dumped when Drupal decided to go "enterprise" and started to demand composer, docker and VMs to get Drupal going.

Jeff Geerling's series on trying to upgrade his fairly basic blog to Drupal 8 showed what Drupal has become.
This is completely wrong and lacks an attachment to the real world. People absolutely care if they're sending money to Wells Fargo, the real world bank, or a random dude named Well S. Fargo in some other country.

However, most users do not care if the US government can see their traffic. (Whether or not they should... not the point.) And MITM attacks aren't a practical concern for the vast majority of society in a real world sense.

EV certs do something largely useful. DV certs are mostly useless in practice but make tech nerds happy.
I'm getting the impression that this is not universally true. It's true for me. I find the word "unless" helpful when it eliminates double negatives.

But there are enough people on this thread who feel differently that it makes me wonder if maybe we're wrong. If code is meant to be read and understood by all, and if "unless" is confusing to a large number of people, maybe those of us who like it should knock it off.

I do find it more elegant and easier to read, but maybe you and I can process double negatives easier than the anti-unless crowd are able to process "unless" logic.

If that's the case, I'd be willing to sacrifice my preference for "unless" for the greater good.
> That's fine, but being a part of a team sometimes requires sacrifices. It's as true in football as it is in software engineering :-)

It's only fine if this provides something to the team which you could not provide otherwise and in my experience this is not the case usually.
Eh, I'm starting to suspect maybe nothing will replace Twitter. Or that nothing consistent will anyway.

We've got Mastodon, and it's doing a bit better. We had Hive, which did okay til the security issues and shut down. Cohost and Post kinda... exist I suppose? And there are a few more I can't remember.

I've got an account on each one, and about 1/10th of those I follow exist across all of them combined. Maybe most people just don't care about a Twitter replacement and are fine without one.
>>Most people don’t have the ability, patience, wherewithal to self study a topic in depth.

Yup. Plus, it's best suited for certain types of topics, and even then it's tough.

My college had one intro-level Logic course in the Philosophy dept that was entirely self-study. Get the books, study, take a series of tests (limit 1/day), each one as many times as you liked until you passed and moved to the next test. Each test bumped you 1/3 grade (e.g., from C to C+), and you could in theory pass the whole course with an A+ in 21 days into the term, especially by studying ahead of the term.

Reality was that hardly anyone actually ever did that, and this was a competitive Ivy League school. I took the course, prepped ahead, but still not to what I'd hoped, and it took me much longer than the 21 days to get the A+. It was actually a very good course and method of learning, but perhaps one of the things I learned best is that self-paced learning, especially in a rigorous sense, is far harder than it seems before we try it.
macOS on my MacBook is nice enough (it has stupid annoyances like moving windows around on my screens coming out of sleep and not triggering one monitor to come on by itself) but with brew and friends it works.

I have Linux servers available to me that provides the Linux I need and macOS works out of the box with Photoshop and Office and some games, so it's good enough.
Ngrok Raises $50M for Ingress Without Infrastructure
Why Running a CA Is Hard, and Why You Shouldn’t Try Doing It Yourself
Hard line policing is the problem, not MJ/opiates itself.

If you get in as much trouble doing/buying/selling/etc MJ as Fentanyl, you might as well do the latter.

If MJ is legal, many would stick to that.

Same for MJ-to-alcohol: and the alc producers know it, they lobbied fiercly against legal MJ and when it became legal (like in Canada) they were the first to invest heavily in it.
In this particular case, it would actually have been slower. I can't phrase things on Google like I do on the chat; I first have to distill my query down. And when I actually am trying to remember something, it's easier for me to be descriptive, because the keywords Google needs can be the important ones I forgot.

PostgREST is page two of "postgres http server" for me.
Predictions for Journalism 2023: Facebook and the media kiss and make up
>A new panasonic or jinko mono panel installed in india has epbt under 6 months and an eroi around 100.

I certainly haven't made any claims as specific as this without any backup!
The example code in the article left out the lookup table to convert each character into a single bit representation. All the tricky xor and popcount stuff could have been a 26 byte array just as easily and been O(n).
I blew up a 3.3 V AC/DC module this morning. Still not sure why... Must have been a spark. Replaced it with another, and that seemed to work... until just now the Bluetooth beacon it was supposed to power stopped working. I was worried about overshoot from the cheap AC/DC output, but didn't expect it to break on first power-up. Now it's drawing 400 mA instead of 5 mA. I doubt that's all piped to the antenna... I guess that's why I bought more than one module. Pending investigation.

But that was really just procrastinating designing an authorization model for an object database.
Fascinating! I find it slightly easier to understand "unless" than "if not". But only oh-so slightly, and probably not enough to justify making it harder for others to read my code.
Because mass is being converted to energy.
Designs that are not copied from each other.
C++ Weekly – Ep 354 – Can AI and ChatGPT Replace C++ Programmers?
Whatever the US is doing is working great! Annual drug overdose deaths have only quintupled since 2000: https://www.bloomberg.com/news/articles/2022-05-11/u-s-overd.... Almost 40 times higher than Bangladesh with only double the population. Bang up job guys.
I tried to sign up for a tutanota email account the other day through a VPN and when it came back and said "We don't trust your IP, use another connection." rather than being annoyed I was just glad they gave me a straight answer for once. It wasn't the answer I wanted but it sure beat being gaslighted into thinking I was having connection timeouts or browser incompatibilities to waste my time.
I don't write ruby at all, but this is how I write my Java, Kotlin, and Javascript; fail-fast at the top of the method, with the happy path following.

And I'll take it one step further: I see a multi-line branch as a code smell in and of itself. If something in a branch takes multiple statements, I am of the opinion that the body of that branch should probably broken out into a method.

So if we're going off the article title, my code might look something like

val isNotRubyDev = !user.isRubyDev
if(isNotRubyDev) return

// ...read article
Saying this genuinely - thank for this post/info

I have been pondering for a very long time what the best options may be. I feel as if low dose benzos are a great option, but also that unless you’re somewhat affluent, finding a doc willing to prescribe & help you through amphetamines & benzos would be hard. Likely something like 0.5mg klonopin, small dose temazepam, or same for lorazepam. Likely not alprazolam.

0.3mg melatonin used to help my insomnia before I was ever prescribed amphetamines, but somewhere between when I was not prescribed them, started a low dosage of Amitriptyline for nerve pain, & now - 0.3mg-0.5mg melatonin started to make me wake up extremely agitated & have nightmares no matter what (like clockwork) - & the higher dosage gummies, like 3mg to 10mg, gave me a great variety of extremely realistic dreams.

Also spiked my heartrate by roughly 30bpm (aka a lot)

I’m glad that melatonin works for you because it’s quite convenient (well, I think having to take any pills is inconvenient, but I digress) - & also glad you can agree with the perfect dosage aspect/idea.

I have ran into middle of their career-ish psychiatrists who simply say it’s an absolute bullshit, but then mostly the entire generation of younger psychs, younger PharmD’s, a & large amount of internet psych anecdata agreeing. Conveniently, those middle aged psychs didn’t start their career when Vyvanse was even a thing, & all of the younger I mention have always known of it…

I just don’t understand why some docs outright refuse to believe such benign information/lived experiences from their patients, & presume their patient is lying to their face before they’d ever agree with them.

For those wondering of my excessively long posts… currently not on any amphetamines while dealing with other acute medical issues, but most definitely in a situation in which I have great need to distract myself. Long posts help with that, though maybe I should resign to saving them in my notes instead of hitting “reply” :P
I would suspect it's also that crypto tends to attract "government bad" sort of folk with the whole "rebuild some decentralized world" or something, as well as folks whothink "government bad" because they don't want those pesky regulators getting in the way of ponzishop1000 as they can only see the next bull market in their mind.

I think a lot of people are in the second camp, but dress it up as the first. It's funny how tons of people who claim "I'm here for the tech, hodl" get mad whenever somebody shorts their coin or the price goes down
There are a few things about Linux that I miss, most notably decent tiling window managers with multiple display support. XMonad was a dream to use, allowing me to throw windows or entire workspaces around the place with a couple of key presses.

I don't miss them enough to move off macOS though. I'm deep in the Apple ecosystem largely because the integration is miles better than any of the alternatives, I can bounce audio around the house with Airplay, I can start watching some TV on an iPad in the kitchen, then when I've finished cooking throw it over to the TV. If my phone rings I can pick it up on whatever device is closest to me. Apple's integration between devices is about as close to the sci-fi future we were promised as you can get at the moment, and there's no way I want to go and try to replicate a half-arsed alternative on Linux.
Lua, Elixir, Common Lisp, Scheme, Racket, Clojure.

Most statically-typed languages don't let you evaluate 0 as a boolean.

IMO, 0 is a value, and values should be truthy. 0 being falsy is only a wart from C.
Sorry, my question was quite blunt...

I think if they're banning cigarettes that's fine but why not start where it might make a difference: with people who actually smoke. banning 13 year olds from taking up the habit will have a lot less effect than moving people from smoking to vaping and I don't think there is anyone who legitimately cannot do that.
> Digital Ocean had very little to do with their decline.

From my personal experience, Digital Ocean did pull away a lot of indie devs and small businesses away from Rackspace. Those folks did not need most of the features of AWS. They just needed simple cloud servers and maybe some load balancers.

My own small business used Rackspace in 2010 to 2013 ($5k per month op cost). When DO came to our radar, it was dead simple to switch to and cut the cost almost by half.

Another thing I remember about DO was their abundance of community articles (HowTo's and server setup tips, etc...) that were well-maintained and always kept up-to-date with latest linux distros.
You're joking, but I think this is true and often good. The government works for us. The press is there to inform us. An informed citizenry is a vital component for democracy. In my view, government generally shouldn't be keeping secrets.[1] The worse government is at keeping secrets, the happier I am.

[1] Yes, reasonable exceptions apply, including ones relating to privacy, national security, and criminal investigations where an element of surprise is needed.
> Linking to a long form YT video with some gd floating talking head screencasting a Mac, with no text description really just seals the deal.

Fair enough!

> I'd Western Union cash to you Doreen, if it would help, or help you purchase a good meal so you can regroup/recharge.

Very generous of you and you're right, probably more user friendly to the OP. But I can't remember I haven't used WU in a long time.
We have 2 options for dangerous things:
1) Regulate.
2) Criminalize.

If lots of people do it, (1) is better, even though it normalizes the danger, because we get seat belts and pharmaceutical controls and the ability to innovate and discuss changes in public.

If the people involved can be cast as lower moral status / other, then it becomes a problem of "Dealing with THEM", and we get (2). This is correct if the primary activity is a real, moral crime (theft, extortion rackets), which changing consciousness and numbing pain aren't. This is almost NEVER correct in the case of voluntary economic transactions (for which the societal benefits of regulation have proven to be enormous), unless those interactions are inherently theftlike/extortionate/exploitative-involuntary, because it creates a spiral of violence.

So the questions are: Should pain numbing / consciousness altering be the province of organized crime? Should we devote substantial societal resources to a failed project of stopping people from altering consciousness and numbing pain, or change to make that fact less damaging? Should one part of society get to impose the violence-filled option on everyone else?
Atom Bank decide to leave Twitter
When I was hired to work for a bank, the offer had a title of “Vice President.” I almost turned it down because I was worried that they were offering me a management role.
Tim Cook Reveals Apple Has Used Sony Image Sensors for 10 Years
Dead for me. Archive link: https://archive.vn/L53p4
Sometimes you get tired of googling for solutions for random problems.

I installed ubuntu 22 yesterday on a brand new SSD and after a stock install and a couple of basic downloads (Intellij etc), the Settings app stopped launching and disappeared from the power menu after a reboot- as if something had removed it. No, I didn't remove anything.

I had to re-install the package ubuntu-desktop to get it back after googling.

I can't imagine mac or Windows ever having that sort of problem.
> Jetbrains is working on Fleet, a new, lighter editor from JetBrains, and while it seems very promising (it’s quite pretty, well thought out, modern)

Heh, these days I'd consider a program advertising a "modern" UI/UX to be a bug, not a feature. Current trends of making everything flat and hiding functionality sucks.
> I sat out of the cloud hoopla and it cost me opportunities - Now, I am dragging my feet into it to be employable.

This. I work on sensors, signal processing and multi-sensor data and could always get a local prototyping rig. But the cloud got so big that I have to be at least somewhat comfortable with working in it just to stay employable.

Before sharing anything I check that it works in a Jupyter notebook running in a docker hosted on AWS getting data from some cloud bucket. But for real work I switch to Vim on a local machine with a few TBs of sensor data to experiment on and enjoy an order of magnitude speed improvement.

> I look forward to the economically lean years of 2023 and 2024 and HN front page articles about how moving away from Cloud and owning your own server is saving 'millions'.

I think there is a strong business case for this. Probably not fully off-cloud, but streamlining cloud portions for cost efficiency and going away from keeping everything in the cloud "because zero ingress costs". My 2c.
Crimes Against Cloud: An Investigation
It's been taken over by someone making erratic emotionally-driven changes every 10 minutes, firing people with domain knowledge left and right and already under various investigations. Maybe it'll be fine, but it's really up in the air.
I thought ycombinator tried to stay away from political stuff? I've been around for years and that was usually the case. Why is there a popular post about drug addiction and the response from "Washington"? This isn't tech related.

https://news.ycombinator.com/newsguidelines.html#comments

I'll quote the guidelines here:

"Please don't use Hacker News for political or ideological battle. That tramples curiosity."

Most comments here are political. Did I miss a blog post that says to be politicans?
I have a mac and a Linux box. I tend to always use the Linux box for dev these days because I can't get around the Docker-for-mac performance issues.

We run a stack with a bunch of microservices, and there is just no graceful way to develop it on the mac. Everything on Linux is an order of magnitude faster.

I still like the mac for some things, but I would only ever use it as a secondary box in its current state.
There's no lookup table. The example code in the article does the conversion using this expression:

1 << (s[i + j] as u32 - 'a' as u32)
What stops Twitter from becoming a member of the fediverse?

Like others have done in technology, they can become initially equal members, then degrade the others, and finally make it painful to use/participate with other members of the federation. This would force federation members and users to succumb and join the empire as a subject versus equal.
Energy is released in the fusion reaction just like in an H bomb. The "more energy out then in" thing is about the difficulty of creating a fusion reaction that's not a bomb. It takes a large amount of energy, typically more than you're able to release from the reaction.
No, think of it like burning oil. Imagine it took >1 barrel of oil's worth of energy to burn a barrel of oil. That would be inefficient. So, we're trying to find solutions to trigger that burning with less input energy.

They're not creating energy, they're basically releasing energy stored over from the Big Bang. Triggering that release with less input energy than output energy is an engineering problem.
Yes, I understand. I think the last ten years of Ed Tech startups are people from that class losing huge amounts of LP money because they don't understand that this is not how the other 99% of higher education works.