skysight-inc/HackerNews huggingface dataset:
Two things I use fuzzy finder for:

1. flog: go to git branches I had checked out in the past quickly

2. pr: preview and check out PRs I've been assigned to review

flog () {
branch="$(
git branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)%09%(subject)" \
| column -ts $'\t' \
| fzf \
| sed 's/.*ago \+\([^ ]*\) .*/\1/'
)"
git co $branch || (
echo -n "git co $branch" | pbcopy
)
}

errcho() {
echo "$@" 1>&2
}

jq_query=$(cat <<- EOF
map(
{ key: "\(.number)"
, value:
{ line: "\(.number):\(if .isDraft then "" else " " end):\(.author.login):\(.title):\(.headRefName)"
, body: "# \(.number): \(.title)
## \(.headRefName)

\(.body)"
}
}
)
| from_entries
EOF
)

pr () {
local gh_user=${1:-}

if [ -z "$gh_user" ]; then
gh_user="@me"
fi

tmpFile=$(mktemp /tmp/prs-XXXXXX.json)

cleanup () {
rm "$tmpFile"
}

trap cleanup EXIT
gh pr list -S "review-requested:${gh_user}" \
--json number,title,headRefName,body,author,isDraft \
| jq -r "$jq_query" > "$tmpFile"

preview_command="\
jq -r '.[\"{1}\"].body' $tmpFile \
| pandoc -f gfm -t markdown \
| glow -s light -
"
pr_number=$(
jq -r \
'to_entries | map(.value.line) | join("
")' \
"$tmpFile" \
| column -t -s: \
| fzf \
--ansi \
--delimiter=' ' \
--preview="$preview_command" \
--preview-window=up:80% \
| grep -o '^[0-9]\+'
)

if [ -n "$pr_number" ]; then
errcho "checking out #$pr_number"
gh pr checkout "$pr_number" && gh pr view --web "$pr_number" && git pull || echo -e "gh pr checkout $pr_number && gh pr view --web $pr_number && git pull"
else
errcho "canceled"
fi
}
I think the parent understood that and jumped straight to laughing at the possibility of fiscal policy changes working, because Congressmembers are… not necessarily technocrats.
How would you compare C# and .NET Web APIs with Entity Framework to Rails and Active Record?
In a world where upgrading node versions without language changes breaks existing code I wouldn’t be too worried.
definitely, learning to solve a real problem is just something I had to learn to make that dream a reality.
The product looks super interesting, but it's hard to know if it's worth exploring without any knowing anything about pricing?
Dragonfly employee here...where are you seeing the 25% increase in latency? that's not the case so want to make sure the post is not confusing.
A little bit too late to the market for a company of their size.
This is one of the sites I still looked on camera reviews, sad to see this go. I never really cared for "community" reviews, or the user generated content, but the ones made by their team. I wonder what the review team is going to do? Usually how these end up is that those old habits are hard to kill, and the review team will return if not with the same name then under different name. I don't know how they owned things, but best would be to give out the site for their team, remove all the community features etc.
Thanks and congrats to you too!
Their test scene and side-by-side comparison across camera settings was a great feature. I would never have purchased any of my standalone cameras if it hadn't been for DPReview.
Just like Netscape is synonymous with browser? Just 5 years ago DeepMind was at the forefront. AI tech is changing so fast who knows who will be ahead in the next 5 years?
> If you give me six lines written by the hand of the most honest of men, I will find something in them which will hang him.

If someone is intent on casting a stone then nothing will stop them. Reasonable people accept reasonable explanations. Unreasonable people are tautologically unreasonable and not really worth your consideration.
You open Total Commander in that folder, press Alt+F7, put your string into the lower search box and press search. It will give you the list of matching files, with F3 available for quick preview; then you right click the file you need and choose "Open with VS Code" from the context menu.

Sadly, you don't get the "context" (the content of actual matches) out of the box, you'll have to resort to double-tapping F3 while manually going down the file list. That's a downside, I fully admit that.
Both responses contain roughly the same information. I, however, prefer how the information is presented in Bard as the daily activities give me an idea of what I can do during the day instead of what I can do during a date span.
It is nice MySQL finally reach the front page on HN. Considering MySQL is extremely unpopular among folks here.

I will take this rare opportunity to ask, anyone knows when MySQL 9.0 is coming?
This is uBlock Origin. uBlock is, sadly, a separate project.
Imagine you think of 2 numbers to describe a basketball. You give a number for weight (1), and redness (0.7). Now, a basketball can be described by those 2 numbers, (1, 0.7). That is an embedding of a basketball in 2d space. In that coordinate system a baseball would be less heavy and less red, so maybe you would embed it as (0.2, 0.2).

basketball ==> (1.0, 0.7) # heavier, redder
baseball ==> (0.2, 0.2) # less heavy, less red

When an LLM (large language model) is fed a word, it transforms that word into a vector in n-dimensional space. For example:

basketball -> [0.5, 0.3, 0.6, ... , 0.9] # Here the embedding is many, many numbers

It does this because computers process numbers not words. These numbers all represent some property of the word/concept basketball in a way that makes sense to the model. It learns to do this during it's training, and the humans that train these models can only guess what the embedding mappings it's learning actually represent. This is the first step of what a LLM does when it processes text.
It's interesting how the introduction of "modules" has forced so many to stick with C++17 and Java 8.
Sharing pretty pics is easy to get and easy to do. Listening into a random conference calls is much harder to sell and even harder to scale.
I have personally lived like that in a modern city, on 5th street in downtown Austin, TX. Here are my conclusions from the experience:

Self organized social community isn't that hard, given the right factors it's an inevitable emergent behavior. All we needed was a shared space to inhabit and time spent in proximity. Order and non-commercial community relationships spontaneously resulted, you wouldn't be surprised if a bunch of random fish from the same species dumped together in a tank started schooling, human sociality hasn't evolved out of us yet either.

I'm not saying everyone will do it, I'm not saying that people who grew used to social isolation over the last few years will ever participate, but we aren't so removed from the tribal/village time period that those evolutionary tendencies have been weeded out. Dunbars numbers and all the extrapolated implications still hold in my experience.
Those places could still all be closer to the client. If you have 50 nodes around the country and you require every write to be acknowledged by 3 nodes for consistency, you can probably find 3 nodes very close to the client and therefore commit writes faster than if they all came to a central location.
lets just hope that politicions who controls the flow of resource are not as shortsighted as you or we are doomed. The computer and all the software won't be exist without this boring and pointless mathemathics from a long time before
my least favorite. The Player of Games, Excession and the Hydrogen Sonata for me.
>localization

We don't want that. Every time Google launches something it takes months for it to understand that just because I'm currently located in country X does not mean I want localization or personalization for that country. Just release the service for those that can use it without the localization. After all we know that the vast majority of the models are trained on English, it's useless to give me a subpar undertrained model on local language.
Tip: Don't heat the print bed when printing with TNT.
Sad news, this was my favourite site 15 years ago when I was into photography. It was the only website that you can read clear spec about cameras and see a gallery of photos taken by it.
I think it depends on the use case. What features from Intercom are you most interested in?
this was both highly anticipated and has been excellently executed. incredible amazing work. thanks Aaron!
I was giving an obvious example... we can still compare building a skyscraper in a busy city vs building a hospital.

Sears tower was built in three years, while our neurologic clinic [1] with three floors took more than a decade.

Say what you will, but sears tower is a complex project.

[1] https://goo.gl/maps/KLwDmGnk9PrcVLyr5
Sigh. This is going to be hard for most HNers to hear...

A certain political party was handed a blank checkbook. The result was as predictable as the sunrise.

And no, raising taxes is not the answer. When you have a spending problem, literally the last thing you is "better make more money!" Just look at Nicholas Cage: the first thing you do is _stop buying dumb crap_.

And before anyone accuses me of being a Republican, it happens both ways, every single time.
> Gmail works perfectly

Is this a joke? Gmail now is an awful email client. E.g., now you just can’t compose a rich text email when you need to copy paste lists from other emails. In certain cases, you can’t correctly format an email if you copy paste without formatting or plain text. And there is a lot of such annoying stuff, that makes my life painful.

Perhaps, searching my mailbox with gmail is OK, but the part of composing emails is in bad state.
When Objective-C was two guys in a garage the company I was working at was pitched by them to use it for writing software that would run on a minicomputer. This was way before Next.

My initial impression was "Huh, so I could take the syntax definition for SmallTalk and add it to the syntax definition for C and there would be almost no collisions. Cool!" At the time I was playing with parsers in connection with automating law form filling, e.g. Westlaw form books.

I agree with another poster's impression that it's more Simula-like. As an undergrad I played with M4 macros to make C more object-ish.
> I can't find a single reason to change my pixel for anything else,

Fingerprint reader on the Pixel 7 works about half the time. I had to program one finger in 4 times to make it work that often. My Oneplus 6 (immediately previous phone) had a functional fingerprint reader.

OnePlus used to have a better UI as well, minor improvements on the stock Android UI that made it just a little bit nicer in places.

When I got my Pixel 7 though, I realized that for whatever reason, gboard on my oneplus 6 is unusually terrible. Like, 80% accurate typing terrible, and that gboard isn't always that bad.

> Gmail works perfectly

Gmail was the first good web email client. Everyone else realized they had to stop sucking, and now they are good. Gmail was realized in 2004 and is from a completely different era of Google.
For starter, "sufficient checks" does mean sufficient and that inherently means I need to fully understabd the risks.

You're jumping to conclusions not supported by the comment at all.

Also, the comment has two parts: One about writing code, and one about integrating models in workflows.

To the latter, the point is that for a whole lot of uses you can trivially ensure the failure modes are safe.

E.g. I am integrating gpt with my email. "Mostly ok most of the time" applies to things like e.g. summaries and prioritisation, because worst case I just get to an email a bit later. "Sufficient checks" applies to things like writing proposed replies: There's no way I'd send one without reading it, and it's sufficient for me to read through it before pressing send (and making adjustments as needed). Failures here would matter if I intended to make a product of it, but as a productivity tool for myself it just needs to be close enough.

There are a whole lot of possibilities like that.

But even for coding related tasks there are a whole lot of low risk tasks,such as e.g. generating HTML or CSS, or provide usage examples, or providing a scaffold for something you know well how to do but which are time consuming.

If you're trying to make it do things that'd be time consuming to verify sufficiently well, then that's a bad use. The good uses are those where errors are low impact and easy to catch.
If I had to read the subtext, I would say fiscal policy changes can target different price inflations. Demand side inflation is more affected by monetary policy. Supply side inflations are less so, hence other tools might be better at targeting them.

Baby formula inflation? Allow imports and authorize more venders.
I also got access and started feeding my prompt history with GPT-4 through to compare the responses. Overall Bard seems to hallucinate much more often. Its responses tend to be short and lacking detail. It often fails to follow key parts of the prompt that GTP-4 had no issue with.

Overall it is extremely disappointing. If this is any indication of how close Google is to competing with Microsoft then they are in deep trouble.
Shout-out to Firefox Multi-Account Containers, which Just Works (TM) for exactly this use case.
Arch is just for the review unit. We're not planning on using it for our final release.

Also, the headset is ultimately customizable, so you can use whichever distro you'd like (though will probably want to use our window manager :).
Yes/No/Maybe.

It feels a bit more like 2006 since the real economy is still mostly flying along fine and most of the business page pronouncements from 'respected leaders' are that a soft landing is still in our future. There's a lot more unrest among average people though, back then you couldn't really find anyone in your normal life that thought it would crash.

It isn't the same though, the pandemic and the inflationary period that we hit were not anything like what happened in the build up to the housing bubble.

At the same time I think some people think we're back to the 1970s and inflation and stagflation are here to stay. That is unlikely to happen because this Fed speaks very highly of Volker and has signaled their willingness to crash the economy into a wall in order to tame inflation. This isn't the 1960s Fed that grew up during the 40s and 50s and wanted to prevent a Great Depression at all costs so was running the economy hot. There will be a recession and unemployment will rise, and the Fed has done everything other than come out and state explicitly that is what is going to happen.

Because of the increase in interest rates things are going to break. We just saw one example of that, but there's also going to be a corrosive effect on bad companies/investments as the zombie ones that required rolling over loans at low interest rates see their borrowing costs increase and that pushes them into being liquidated. The blowup that I'm expecting is in commercial real estate and CMBS. The top will likely come off the housing market, and that can't possibly go down that easy without a lot of economic pain.

At the same time I don't think anything has fundamentally changed. When unemployment starts to spike up significantly again and the system starts to lock up, then they'll drop rates back down to zero again. It'll also probably work, since with enough destruction of zombie businesses and a glut of unemployment there won't be an immediate rebound in employment or inflation.

Might not happen this year though. The Fed rate tightening cycle has still not quite ended yet, and its usually 6-12 months after the tightening cycle ends that it gets bad. We can still see a counter-trend rally into e.g. a double top in the markets. A lot of people believe that interest rates rising are what causes economy pain, not holding interest rates at a higher rate (they thing it is an "edge trigger" rather than a "level trigger") and those people are likely to try to throw a party after the Fed stops raising rates. Or this cycle might be different and the aggressive Fed actions might start to blow up more stuff quicker this time, I can't really tell you (if I could I could make a ton of money, but I have no firm idea of the near-term trajectory of the economy).
I think what we're going to see is that all the small startups going for big, broad ideas ("we do AI writing for anything", "your one-stop marketing content automation platform", etc) are going to flat out lose to the big companies. I predict that the startups we'll see survive are the ones that find tight niches and solve for prompt engineering and UX around a very specific problem.
"A preview feature is a new feature whose design, specification, and implementation are complete, but which is not permanent, which means that the feature may exist in a different form or not at all in future JDK releases."

https://docs.oracle.com/en/java/javase/19/language/preview-l...
"Stupid rules" for one person are what enable another person to live an independent life. The Americans with Disabilities (ADA) act has been law since 1990 and codifies mobility and access as civil rights in the US.

ADA does add to the costs of projects, but so does, say, safety code compliance. It's the law, and it exists for a good reason.

As for the example of a minor accessibility project costing $1.4M and taking 3 years, I would suggest that there is probably more to the story that helps explain the cost or the time.
I wouldn't take their latency numbers too seriously since their measure isn't relative to the throughput. It's not always obvious, but the latency of high performance is tightly coupled with throughput. The latency of high performance systems is the server side execution time (for Redis that is a couple of microseconds), the network hop (probably a couple of hundred microseconds), and the congestion on the server (this is the time it takes the server to actually getting around to processing your request, since the server probably needs to handle other requests first before getting around to yours). The congestion, is directly tied to the throughput.

The most useful measurement I've seen is you pick a latency target, and evaluate how many QPS you can send to the server that meets that latency target. That gives a fairly simple dimension to compare to.
I haven't looked into CLR in a long time, but it feels like it has a fraction of JVM's adoption and community size. Microsoft also seems to be prioritizing Typescript and Node internally with its recent moves.
As Clojure programmer, i tell you that you should, because any moment Java introduce new features libraries will start using and most Clojure libraries are Java libraries wrappers.

In addition if you want to use these new Java libraries in case and Clojure does not catch up with new Java features the ergonomics of using Java libraries with clojure decrease.

And still they are trying to figure out how Ifn Clojure interface with Java functional interfaces.

Also when Project Loom lands on JVM it will benefit Clojure too, allowing to remove code for instance of Clojure futures.

If Clojure catch up with Value classes can increase performance of Clojure too.

But this disregard of Java features or improvements is the kind of Clojure developer so content of what he have that forgots that can get better things.
Sucks. Got a great advice on the camera there. Loved the YT videos. I doubt it'll be the end, though, as there seems that there's still need for such site (or at least I hope so).
SoCal city pays $750k to Jewish man accusing cops of painting swastika in CA
A funny example is playing hangman with it to get it to say something verboten. At the last letter it suddenly loses knowledge of how to spell completely.
The CO2 footprint of an Icelander is EXACTLY as relevant as the footprint of a Chinese citizen. Just because Iceland, as a whole, has less effect than China as a whole does not absolve it from contributing THEIR part in any form.

Just reconsider your argument: If China is split into 20 independent nation states, then suddenly NONE of those would be "relevant to solving the problem"?

> You solve a puzzle by looking at all the pieces and not stylising yourself as the moral hero and assuming that everyone else will follow.

You, as a nation, can ABSOLUTELY not expect to first not even come close to doing your part and then let others pick up the slack for you, just because "there are ten others and only one of me, whatever I do won't make or break things anyway".

> The economy has suffered brutally because of all the changes, but you are now the world leader in CO2 per capita consumption. What do you think happens then?

This is a complete strawman. You are not going to beat developing nations in CO2/capita. India/Africa is below 2 tons per year right now, there is simply NO WAY that the US or even EU could even come close to competing with that in YEARS. What you can and have to do is approach the lower emissions of developing nations, demonstrating that a wealthy modern society is feasible without excessive CO2 emissions-- then you help developing nations in not exceeding your level.

It is very obvious to me that it's MUCH easier to cut 1 of 15 tons of CO2/year for a wealthy American (=> "buy a hybrid car for wife/kids instead of another SUV"), than it is to save 200kg each for five Indian rice farmers (=> "no heating in winter?").
I’ve been using MySQL. Is Postgres so different now that the SQL here won’t work? (It may be that it’s MYSQL that’s different)

I know there are some differences in SQL syntax, but in my case we use pretty basic sql…
It's not like the EU is specifically targeting US companies with their consumer protection regulations. Those things are considered completely normal protections for consumers in Europe.

It's just that 99% of US big tech companies are very anti-consumer and have gotten away with it in the US in the past. But that also seems to be changing over time.
What’ the hype with pattern matching?
What does it solve?
Don't they already use freetype to parse webfonts?
Yes but you can do all that before tearing open the street or sidewalk
I think most people got access fairly quickly. Same with Bing Chat.
Idk, Norway is usually last because we have the absolute gall of requiring that foreign companies selling services here have to pay sales tax.

Not being in the EU doesn't help either.
Or the guy who just wanted to extend the works of Aristotle, and created binary...
I'm a backend SWE. How are those two roles not just UI designers and UI SWEs? Or frontend as our team would say. I get that "experience" suggests something grander than "interface," but that sounds like how I call myself a SWE just to sound better than programmer (which nobody calls themselves anymore, so there's no real difference). Maybe instead of backend we can say "cloud-end" cause "RESTful JSON API" lost its zing.
Really weird to restrict Puerto Rico. I'm assuming someone goofed up a setting somewhere. Its like not including Hawaii basically, everyone in Puerto Rico is a US citizen.
Signature Bank Deal Sticks FDIC with $11B 'Dead Assets'
While I agree that there is some valuable content on the site, there are certainly others to fill in the spots...

You want detailed look into equipment? Checkout Ken Rockwell's site[0], or byThom[1]

[0]: https://www.kenrockwell.com/tech/reviews.htm
[1]: https://bythom.com/reviews--books/index.html
Same here. After 15 years I cancelled it.

Also their market is now full of counterfeit and Chinese crap that you can buy cheaper on AliExpress.

BHPhotovideo is the place I do most of my electronics shopping these days.
Everything has to be directed through a leader though. So it's not a matter of how close the client is to the cluster but how far the cluster's nodes are from eachother (since anyone could be the leader). No?
Kids on corners have ideas. Very few of them are GOOD ideas. Anyone can say 'Make a movie with lots of aliens and lasers'. It still takes Ridley Scott to make Alien.
I don't keep a lot of computer books, but I still have "Silicon Snake Oil" and Jaron Lanier's "You Are Not A Gadget".
for the people that downvoted me your saying the fed has some power to fix "corporate pricing power"

I'd like to know what that is? I'm not being sarcastic if there's a way I'd like to know.