skysight-inc/HackerNews huggingface dataset:
Show HN: I made a chrome extension to run Python code in ChatGPT
I thought it might be useful to run Python code in ChatGPT, especially when I just want to see the output of a small snippet or code example, so I made a chrome extension to do that!

Here is the source code: https://github.com/xiasongh/jpt
It's known that they can detect implosions from very long distances however this is a tiny submarines so perhaps they are just using it as a training opportunity with no other information.
To be fair, react is < 0.5MB.

create-nextjs-app is installing React, React Router, Webpack, Tailwind, ESLint, Jest, etc.

create-nextjs-app is by design an "everything and the kitchen sink" approach.
<< Don't you need a Mac to run Xcode?

To the best of my understanding, there are ways around it[1].

https://www.baeldung.com/linux/xcode
There's that scene from a TV show where the fire fighters are at a fire, and a car is in front of the fire hydrant. One of the characters calls out "Car!" and they then proceed to smash the windows, and route the fire hose through the car and connect it to the fire hydrant. Throughout the course of the incident, the hydrant leaks and fills the cars interior with water.

If only there was, perhaps, a similar effective, and cathartic response to these things.
Excuse me? I had to pass a written exam and pass a driving test and maneuverability test in order to get my license. It's insane we're allowing these vehicles on public streets without a licensure process in place. We do that for aircraft, why aren't we doing it for self-driving cars?
Why doesn't alcohol have the same warnings as tobacco?
I am working as embedded software developer and VSCode is extremaly fast compared to its first competitor - Eclipse.
Would the implosion have been loud enough?

I mean the thing was a tiny 7x3m cylinder located 700Km from the nearest coast...
Only for macOS.

Would a web-accessible version be possible?
Would SvelteKit be a better comparison then?
Can you put programmers in a production line and expect quasi linear improvements?

No.

Because programmer jobs have a knowledge and creativity bottleneck, that is the hard part to scale, and require workers that have autonomy, can take initiative, and can put together a solution from known part in ways that create solutions for one off problems.

Metaphorically speaking they are not tightening the same bolt type over and over again to the same spec every time. Software is not manufactured, it's largely artisanal.
You are right that it does muddle definitions. However, in this case, it actually helps to squint and see a blurry picture to get a better sense of the bigger picture.

Unless you are buying enough of a company to get access to a board seat, you effectively have zero control over a company. Buying 1 share of Google gets you such an insignificant fraction of a company.

Yes, buying shares is theoretically equivalent to buying an ownership into a fraction of the company.

But that’s not actually a useful model. Asking “do I want to give money to this company that they may choose to never return?” helped me understand a lot of what investing really was much much better.
Maybe there is a term from quantum physics that can be used here metaphorically, but I think you can safely assume that what you said is probabilistically true, and probably true for all other comparable assumptions. It may resolve to be false when examined closely in any one particular instance, but it doesn't change the fact that they are working extremely hard to maintain a fog of mystery around their scope of capabilities.
You do realize Amazon has access to your photos, right?
Previous HN discussion about Dan Ariely’s discredited paper: https://news.ycombinator.com/item?id=28210642
Other than awe for US military capability.

What motivates this idea?

Not only does it explain nothing, it requires additional explanation.
It’s really ok to not share every thought that happens to pop into your head.
Among the reasons I've heard is that a lot of younger workers have struggled with remote, on-boarding them has generally been harder, company culture has probably fragmented some, there can be an energy to people getting together physically, etc. You can disagree with some or all of that but it came from the mouth of a senior exec who I think was genuinely trying to figure out how to get back some in-person advantages without forcing a lot of people back to the office on some schedule.
We should work toward banning most advertisements in most public places really. If you admit that these ads manipulate people into buying or consuming products they might not otherwise buy or consume, it's easy to extend that down to other products as well. Giant roadside billboards, for example, have no place in America.
The Wikipedia article [0] has a nice summary of a few studies. Notably

> Data from the National Highway Traffic and Safety Administration (NHTSA) showed that in Texas, the fatality rate in alcohol-related accidents in dry counties was 6.8 per 10,000 people over a five-year period. That was three times the rate in wet counties: 1.9 per 10,000.[18][19] A study in Arkansas came to a similar conclusion - that accident rates were higher in dry counties than in wet

[0] https://en.wikipedia.org/wiki/Dry_county
Fundamentally I don’t understand how a new technology can claim to make everything more efficient but at the same time grow the economy. Shouldn’t we have loss of jobs and reduction in consumption and GDP if we become way more efficient?
I had the same experience. While I understood React principles, I never quite got how to built large things with it.

Svelte clicked after like 3 hours.

Also it's more "fun" than React ever was.
Time for Zero Tolerance, if one of these do it seize it, and levy the robotaxi company and whomever built it with Huge Fines. Not "oh that will just be another expense", make it that those fines pierce the corporate veil and get to the executives and the millionaire shareholders. And now that I think of it, if there are any passengers, arrest them. That way they can sue the RoboTaxi company too.
At least the story is more compelling than the Chinese spy balloon.
> And told them why

I didn't tell them directly since I knew I was being targeted. But I left breadcrumbs of truth within the team so that next time, someone else identifies this same pattern and calls them out again.
> rss-bridge: Can generate feeds for a ton of different sites. I use it for Twitch feeds.

Now that sounds handy. Extensible, too.
Hetzner Cloud is building S3-compatible object storage
Too many business/econ types have difficulty envisioning what new tech may be good for. Be it early computers, or the internet, or now this, they seem to be bottom-line people with little imagination or vision.
You won’t even lose your license for killing people or multiple DUIs
Yep, this is a problem that people have been working on in the Mechanical Drafting world for well over a hundred years.

I'm also surprised we don't see the utilization of some GD&T style language to specify design intent. (https://www.gdandtbasics.com/gdt-symbols/)

For the problem of:

"I have a design I would like produced. Please make it like this please."

I couldn't imagine giving a machinist or welder a drawing containing no annotations. (This would be something an intern does once and the shop calls them up to tell ask them questions about what they actually need for 45min. Probably sending them back to rework it)

Pulling from the mechanical world:

* make 3d models (equivalent to HTML/CSS components)
* put 3d models into an assembly (HTML components together on the page)
* make variations of the assembly to show range of motion (variations on user activity)
* make "drawings" that contain components that are broken down to the smallest practical level (this would map to: modal, tables)
** in software these are usually managed similarly to Spreadsheet tabs
** this would contain a reference to the 3d parts + dimensional annotations. This means updating the assembly/part geometry automatically updates the drawing
* anytime significant changes are made, issue new "Revisions" of those "drawings" are committed, issued, and then sent to the shop
* 3d modeling software has change management systems so you'll automatically know if your proposed changes to a 3d part will break a drawing or assembly that depends on it
I switch between Visual Studio, Xcode and VSCode pretty much each day for C/C++ development, and out of those VSCode is by far the slickest to use (and also the most flexible). I'm also not exactly a newbie, having started to code in the mid-80s. I also tried out all the IntelliJ IDEs, and for those I cannot understand how people can put up with the UI sluggishness :)

Also: even Vim (which I often use for quick text editing tasks on the terminal) can get embarrassingly slow on large files if you start installing extensions.
Hell, given the way things were going prepandemic, cubes would be an improvement on most offices
* McKinsey told AT&T that cellphones would be a niche market in the year 2000 with only 900,000 subscribers. The firm’s estimations were off by 108 million.

* In the 1990s McKinsey advised SwissAir on the controversial “hunter strategy”. The major expansion program failed miserably and the airline was forced to declare bankruptcy in 2001. Other notable clients who ended up bankrupt include Kmart and General Motors.

* McKinsey & Company gave the go-ahead for the infamous $350 billion merger between Time Warner (TWX) and AOL. Looking back, the merger is viewed as one of the greatest company disasters of all time.

https://www.equities.com/news/a-look-at-mckinsey-company-s-b...

Not that I want this to prevent them from whipping up some serious executive FOMO over AI. Ive got bills to pay.
This seems to be an issue that only affects me, but I have no idea why: the discord mobile app more often than not takes multiple minutes to connect to their servers and load new content.
>Sometimes it's faster to fix the code where the bug is, rather than trying to recreate it in your cushy dev environment

Sometimes, but with single powerful IDE solutions from companies like jetbrains, setting up a "cushy" environment is barely any work.

>Sometimes that means driving somewhere and working through at 9600 baud over an RS-232 cable. Do this a couple times and you'll find that vi is quite usable--you just have to want it to be.

Of course if your network connections completely fail you have to use the serial console to fix it. There's no going around that. But the majority of developers don't even need to do this or don't even know what you're talking about as they only interact with cloud services nowadays.

Additionally a "cushy" environment doesn't preclude you from using serial console or using vim to do edits everywhere. VI in this sense is barely useable, it's basically the baseline necessity. You need it when all else fails. But it's not good to have it as your daily driver.
Terminal includes everything than IDE or web browser can, I would say.
Only in-memory access is restricted and even that might not be the case, if you run root user on terminal.
And my advice to developers who are considering joining a small business or consulting firm:

- Don’t work for someone who has one customer that dominates their revenue.

That company will always control the requirements, even if those requirements make the application a chore to get working for other customers. Also if there is ever a problem with how that customer is treating you personally, the company always always has to preserve the revenue from that customer. They will throw you under the bus.

I did two contracting gigs in a row that were unpleasant. The first told me a pack of lies about advanced project management and architecture being their focus. The work was identical to any contract I’ve ever done, but the feeling of betrayal soured the entire experience. If they did anything to advocate for their employees, I didn’t see it. The consequence of that is that it knocked my confidence, and I took an FTE position which was definitely “settling” and I’ve stayed at that position for far too long (though COVID played a role, I can’t fully blame COVID).

It’s probably better if you work someplace that gets less than 30% of its revenue from any one customer, but 75% from its top 4. There are diminishing returns being pulled in many directions at once, yes, but there are serious dangers of being railroaded by an offer you can’t refuse.
Enhanced content management for your headless CMS
Emacs’ TRAMP works well (it’s been available since at least '99, and has been built-in for as long as I can remember), and supports most everything (ssh, ftp, docker, whatever you can get at with rclone, ...). It also works fine with dired (the built-in file manager), eshell, whatever.

The mostly-single-threaded nature of Emacs gets in the way sometimes.
> put somebody into a strange and sketchy city like Amsterdam and some of them will get into trouble

Funny you say that because I couldn't have wished for a better trip than roaming Amsterdam with my friends when I tried mushrooms all those years ago. The canals, the architecture.. it was a fairy tale, I remember it dearly.
This doesn't seem like that big of an issue unless you're cheap. Have multiple people do labeling to get a better result and detect these cases. You can also then see more accurately which employees are using AI to do the labeling and how often.

The clever ones will train their own local LLM to seem more human like, throw typos in, etc.
Don't make SaaS systems then?
If I Know what's good for me, why am I sabotaging myself?
If in my brain and body lives only one person, how can I desire great things for myself while also actually sabotaging myself in the way?

Ex: I want to read a book, I know it that's a good thing, but I procrastinate and end up not reading anything while also being fully aware that that's bad?

This is not a question about proscrationation, rather about the different selfs (mind, brain, heart, inner voice, whatever) and how to deal with them.

Scientific material and studies much appreciated.
The chef profession has officially been replaced adding 19b to the economy. /s
Now I can experience existential dread over multiple processing cores! 4x the dread in 1/2 the time!
We also have a doom emacs discourse[1]

[1] https://discourse.doomemacs.org/
I think their point was that you absolutely should not trust politicians, policy makers, Youtube/Reddit moderators, etc. They're the ones using phrases like "trust the science". Fauci is a scientist but he's also a a part of the government and maybe even had something to hide. The stupid things he said on a highly public stage shouldn't be taken with the same level of consideration as things said in long-form scientific discussions. If he used that phrase in one of those, he'd have been immediately called out. The fact he was willing to use that phrase so often should bring into question how rigorous his long-form scientific discussions actually were, but those discussions are done the way they are because it helps minimize people saying stupid, emotionally driven, things and/or distracting from the truth everyone in the conversation is supposed to be seeking.
!!!

VSCode as fast as IntelliJ, Eclipse, PyCharm, Visual Studio.

(And anyone upset about Electron install sizes has clearly never used any of the above.)
How the US tackled tobacco should be a case study in how to eliminate usage of a dangerous substance.

Until vapes came along, smoking tobacco essentially became taboo to most of the people I knew when I was in high school and college (only a few years ago).
The MDN Playground: Bring your code to life
I could listen to stories like this all day long.
Show HN: A bin-pack algorithm implementation in Clojure with a visualizer
I loved Permutation City and his short story collection, Axiomatic and really liked Distress. However, I stopped reading Diaspora 30% in. If it hasn't click yet, should I still keep reading?
Just lose your license? If I did one of those, I might get sued. If I did more than one, I might wind up in jail. (What charge? Reckless endangerment, if nothing greater.)
I think you missed the point, which wasn't about marriages per se -- it was about skewed samples.
The key here to me is they use it for periscopes. An important function, to be sure, but no one is dying if the periscope controller fails. That isn't the same for the controller on the submarine where it controls lateral movement, which is critically important when going near a shipwreck or other hazards.
They are indeed -- and it will avoid similarly costly stuff on anything you .gitignore.
Or the same nutrition information and ingredients labeling as all other drink items?

Lobbyists are the answer to both questions.
I am also diagnosed and I have an alright time. Here are my reccs:

1. Set your own notification preferences to @mentions only. Tell your friends they need to tag you for anything urgent or you won't see it until later. For bigger servers where you might want to get notified from a news channel, just set preferences on that channel or see if there is an optional notification role available. I check the backlog on my favorite channels only once or twice a day and they do not bother me out of band, ever.

2. Review your list of servers and leave any that abuse @everyone or that you have not actually checked into for awhile. This is user behavior, not the platform.

3. just speedclick all the fucking tutorials once and they will not come back.
In what world would it be needed to prove the value proposition of "users can see which open brackets are associated with which close brackets"? Thus just seems blindingly obvious to me and probably anyone who's spent more than 40 hours writing code.

> It's silly to be bashing it as a "slow" Electron app when it's measurably way faster than XCode

One of my favorite mis-applications of opportunity cost from the perspective of developing features, and one I see constantly in market-brain types: the comparison is not on competing offerings but on whether the feature is present or not.
> And how will it achieve this? By eliminating jobs of course.

For now, probably only white collar workers. It’s probably good if those jobs go away.

Then, we need to think how to compensate those people. Capital is not evenly distributed so no compensation will just drive profits and this will not end up in the pockets of most people.

I'd say the employer has to keep paying salaries for some time to let people acquire new skills.
Are you joking? Name any jurisdiction in America where you can lose your license for parking in front of a firehouse. There are no points for that in California.
Also, Figma.
The sub had 7 redundant ways to surface (drop weights / ballast), several of which work without power, and one of which triggers automatically after ~20 hrs of exposure to seawater.

The only way it wouldn't have already surfaced on day 1 is if it got stuck on something (and lost power, unlikely), or it imploded.
VS Code has stopped opening for me for certain codebases. And to be honest, these codebases aren't even that large.

I also have 0 extensions installed :(

VS Code used to be my quick and dirty IDE when I didn't want to open something heavier, but it's gotten so much more painful than even a couple of years ago.
This was likely the cause of the vast majority of methanol poisonings during the prohibition. You have to use exotic, hard to break down carbohydrates in your beer, wine, or mash (the pre-distillation fermented product), like tree bark, to end up with significant quantities of methanol.

Most of the methanol poisonings were from poorly "re"natured fuel alcohol.
Last Universal Common Ancestor
> UUIDs belong where you can't afford that simplicity. Where you e.g. cannot coordinate the creation of your primary keys. Or where you cannot allow them to be predictable. There you pay the price.

You often don't realize you you have non-simple needs until your application is reasonably mature, and in production. If you already picked integer keys, you now either forever deal with the issues caused by not using UUIDs, or you deal with the unknown-but-non-zero pain of converting to UUIDs.
Why do COMB UUIDs not have this problem? Do they not contain a timestamp?
Quite the opposite, it's a perfect negotiating spot - you would see if the company gives a fuck fast. Surely, you should be in a position to fire the company, but it's not limited to 4k monitors.
If existential thoughts bring you that close to insanity, you should seek therapy and medical help.
In my experience actual reality is somewhat different – at least at large Internet apps companies.

In high-functioning successful team, everyone is spending significant time in

1. discovery – learning things about the constantly evolving product/functional domain and the tech, and

2. ideation – figuring out what's important and how to solve it,

3. and some non-trivial amount of time in large team collaboration related activities.

But the problem is these activities (and their taxonomies) are not made explicit – their purpose is not explicitly stated; instead people participate in packaged rituals that are supposed to produce results. But because they do it without understanding it, they could feel like a cog in the machine.

But there's also another big part of the reality – those who work themselves too hard and get themselves burnt out are also chasing personal career promotion goals and not succeeding at it.

Then, there are some who don't even have that objective but have a broken work habit and get burnt out.

Of course there are other things at the worst end of the spectrum – bad manager, bad CEO, bad business, bad co-workers, bad vendor-partners etc – that can make things toxic and they get burnt out.
Nope. Just tried that. It only uses Email.
That’s conspiracy thinking. The absence of your question being addressed doesn’t mean it’s plausible. The ocean is generally a noisy place, and the activities of a small submerged vehicle likely won’t raise notice without active listening.
Current LLM outputs already kind of reek of reddit-style responses, at least to me. Is a hivemind really any different than an AI making its own data?
What did you try? I was the same, also in my 30s, did some online stat and calc classes, passed those classes, and I don't think I learned much. If I did, I've already forgotten it I'm afraid.
Musk picks Vegas for Zuckerberg ‘cage match’ challenge
Ask HN: Lost Sub Titan, Fail-Safes and Rescue SPoFs
in software performance & scalability there is typically one thing that is the bottleneck

in an electro-mechanical system (at least where life is on the line) engineers try to design to avoid having any single-point-of-failure (SPoF), and to make it "fail safe" if power is lost

the Titan drama has made me think that a sub design should put a higher priority on oxygen supply (and life support in general) inside it. however small/civilian the model. because TIME to rescue is your biggest friend and enemy

thoughts?
>However, alcohol/nicotine etc. don’t change your modality of thought processes or your underlying perspectives on life.

Go to a couple of AA meetings and say that again.
This is exactly what happened to the argentinian sub in 2017

https://en.wikipedia.org/wiki/Disappearance_of_ARA_San_Juan

>On 23 November the Argentine Navy said an event consistent with an explosion had been detected, on the day the submarine lost communications, by CTBTO seismic anomaly listening posts on Ascension Island and Crozet Islands

>The organization had been asked to analyse data from the search area by the Argentine government on the week of the disappearance, but no leads had materialised until 22 November when the CTBTO informed the government.

>The Navy added that it received information on the explosion on the afternoon of 22 November, adding that it would have concentrated search efforts in that area had it known sooner.