skysight-inc/HackerNews huggingface dataset:
Show HN: A VSCode Extension to Automate Putting Your Code Files in a GPT Prompt
You can find it in the VSCode extension marketplace by searching for "Prepare Project for LLM Prompt" or clicking here:

https://marketplace.visualstudio.com/items?itemName=JeffreyE...

I built this because I realized I was wasting a huge amount of time doing it manually. When I'm first starting on a coding project, and there are only a handful of code files (and none of them are particularly long), I like to give the full project code to the LLM in order to check it over or to ask it to modify something or to add a new feature. So I was constantly writing a short preamble to explain that the following was Python code or whatever, and then for each code file, I would include the relative path to the file, followed by a markdown code block (enclosing the code file contents in 2 pairs of ``` characters) with the file contents, with a separator between code files of ---.

I ended up just keeping that prompt in a separate text editor window and whenever I would update any part of the code, I'd manually modify that separate prompt file. It worked, but was still annoyingly manual. With this new extension, you can just open the VSCode command palette, type in "prepare" to find it (short for "Prepare for LLM"), and get a convenient interface for selecting the code files you want to include in your prompt. It remembers your file selections for the next time, and also includes a handy token counting feature that shows how many tokens each code file would use. It then keeps track in the status bar at the bottom of how many remaining tokens you could fit in your prompt (you can update this Max Tokens parameter easily depending on whether you are using regular ChatGPT4 with ~4000 token context window, or another model with smaller or larger context window).

It tries to be smart about caching the token counts and only updating them when the files are changed, and also filtering out non-code files and files that are excluded in your .gitignore file. Anyway, I hope you find it useful, and please let me know if you have any feedback.

Now that I know how to make extensions, I'm planning to make another one next for debugging a single code file with an LLM that would take the code file and then include each line with a "problem" in it (from a linter or something like Rust Analyzer) and the problem description-- another task that I waste tons of time on doing manually.
Obviously, they'd put the most popular flavor way at the back of the store, and the least popular flavors at the front. The store is not in the business of maximizing throughput of customers - quite the opposite, they want customers to spend more time walking and getting lost between shelves, as this maximizes the amount of wares moved.
I guess Cisco's AppDynamic acquisition from a few years ago isn't panning out. Or maybe they're complimentary, who knows?
It's because we have a government of aristocratic bimbos who have blundered through life studying a curriculum of ancient classics and pre-1950s history, with a sprinkling of "GDP is king" economics, which at best prepares them on how to accumulate a power base, but provides no practical knowledge on how to use said power effectively in a modern society.

Our Secretary of State for Science, Innovation and Technology is a woman called Michelle Donelan. She graduated with a BA in history and politics, and her career outside of being a career politician was in marketing, including a time working on Marie Claire magazine and for World Wrestling Entertainment (WWE). How in the world is she qualified for to run the nations tech initiatives? If she was appointed as CEO of a tech company, the stock would sink like a rock over night. Dare I even get started on Michael Gove, who originally wanted the role. Let's compare this to some other comparable countries to the UK:

Canada's Minister of Innovation, Science and Industry; François-Philippe Champagne. Ex Vice-President and Senior Counsel of ABB Group, as well as Strategic Development Director, acting General Counsel, and Chief Ethics Officer and Member of the Group Management Committee of Amec Foster Wheeler.

Taiwan's Minister of Digital Affairs; Audrey Tang. Tang was a child prodigy, reading works of classical literature before the age of five, advanced mathematics before six, and programming before eight, and she began to learn Perl at age 12. On CPAN, Tang initiated over 100 Perl projects between June 2001 and July 2006, including the popular Perl Archive Toolkit (PAR), a cross-platform packaging and deployment tool for Perl 5.

South Korea's Minister of Science and ICT; Lee Jong-ho. Professor of electrical and computer engineering at Seoul National University. He was named Fellow of the Institute of Electrical and Electronics Engineers (IEEE) in 2016 for contributions to development and characterization of bulk multiple-gate field effect transistors.

Australian Minister for Industry and Science; Edham Husic. Husic worked as a research officer for the member for Chifley, Roger Price. Husic was first elected as a branch organiser in 1997. In 1998, he was elected as vice-president of the Communications Division of the CEPU. From 1999 to 2003, he worked for Integral Energy as a communications manager.

I can do the same peer-to-peer analysis when looking at our agricultural, education, health, and transport secretaries. Our government is criminally incompetent when compared to the majority of other first world countries. It's a fucking embarrassment.
I honestly wonder if this Unum format might actually support surreal numbers. The interval arithmetic and bounds look like they might come in handy.

Maybe all that's needed are functions that can do approximations, conversions, and math on them.

I have to think about it, though it's not my area of expertise, just a curiosity.
Vtiger 8.0
https://www.openfoam.com/
> It's apparently cheaper to buy Splunk than to a buy Splunk license.

Amen :)
When we talk about arrows in terms of functional programming, we really mean Hughes’ Arrows (or Freyd-categories) a generalization of monads. The term arrow represents a level of abstraction over computations, essentially modeling them as objects with inputs and outputs. Hughes' Arrows extend beyond the traditional notion of functors and monads in handling side effects and common computational patterns in a more structured manner.

Arrows are useful because they provide a computation model that can implicitly make use of state without ever exposing that state to the programmer. The programmer can use arrowized computations and combine them to create sophisticated systems.

A strong arrow is an arrow A having an extra structure known as strength. The strength for A is a natural transformation, generally denoted by t, which consumes a pair of objects (X,Y) and gives back an arrow in the category. In a concrete manner, the strength has this form: t_X,Y: X x AY -> A(X x Y), called tensorial strength. The strength obeys some particular coherence conditions. A deeper explanation involves the monoidal structure of a category and how the 'strength' aids in elaborating the combination of values in the arrow context.
Give me three case numbers of cases where former students successfully sued the institution (cases that were dismissed don't count--just because a case was filed does not mean it is meritorious). Those case numbers should make it easy for anyone to find the complete docket of the case on PACER (if it's federal court) or applicable state courts (well, to the degree to which states make their dockets easily accessible).

You made the assertion; it's your job, not my job, to provide evidence for your assertion, and I've put you on notice as to the evidence that is satisfactory. If you can't provide the evidence, I have no reason to believe your assertion.
This description of SBF does evoke a Netflix "I was in a cult" documentary. A larger-than-life leader, with huge vision. I wonder how much of his success was due to his charisma and the ability to steamroll (and sidetrack) people with over-the-top world-changing vision.
Agōgē Week – Stoicism, Physical Fitness, and Asceticism
Looking at things like that link you attached, I assume the people writing about these places have never been or lived there. How is this number even tracked? You could go on down to Pike County and ask the folks there if they live in a "low-income and low-access area" and they'd probably tell you they eat deer. Even in low-income and high-crime areas around Birmingham I don't think anyone would say it's difficult to get food.
CalyxOS has decent Pixel 4a support, in my experience. I bought my 4a last December specifically because it was supported (and the right price on Ebay). Install was pretty straightforward, and they don't have as stringent a support cycle as GrapheneOS, although I did not try installing that one.
Do you know if there's a guide about all the ipv4/6 stuff and optimal internet settings for Mac or more high-level generally?
Historically, Treble predates GKI, created after OEMs disregarded Treble, as Google had the clever idea to leave Treble updates as optional for OEMs.

> Binderized HALs. HALs expressed in HAL interface definition language (HIDL) or Android interface definition language (AIDL). These HALs replace both conventional and legacy HALs used in earlier versions of Android. In a Binderized HAL, the Android framework and HALs communicate with each other using binder inter-process communication (IPC) calls. All devices launching with Android 8.0 or later must support binderized HALs only.

https://source.android.com/docs/core/architecture/hal

GKI only became a thing in Android 12 to fix Treble adoption issues, as you can also easily check, and GSI was introduced in Android 9, after userspace drivers became a requirement in Android 8 as per link above.

https://arstechnica.com/gadgets/2017/05/ars-talks-android-go...

https://arstechnica.com/gadgets/2021/11/android-12-the-ars-t...
This critique made me learn some new things about both formats, but I actually come out more in support of TOML because of it

Each argument the author gives is a strong preferrence for everything being implicit, ambiguous, free of heavy syntax like quotes for strings and brackets for arrays

That would be a reasonable subjective choice, but when I see the INI exemples used to illustrate, or the slightly out there assertion that a 1 element list is a completely meaningless inhuman concept, I'm not really swayed. Sometimes it almost seems like irony. The exemples are really hard to take at face value..

If anything, this pushes me further away from that. I've done YAML. I've done languages where everything is helpfully implicitly cast, and all the "WTF talks" that result from the weird rules and edge cases.

We know what it's like when DE is a string but NO is a boolean, and only some version numbers are strings while some are floats.

Quoting strings is really not what costs me time and effort. It's weird edge cases and surprises that come back to bite you.
Ouch, that's about the same as two A100s, any idea how it would compare?
OpenAI’s new AI image generator pushes the limits in detail and prompt fidelity
Turns out if you shut the vast majority of the world down by fiat, the economy tanks, and inflation goes up. Who knew ;)
> * It implies that one would be fine with backdoors if they could be made perfectly secure.*

No, it implies that perfect security is impossible. Which is philosophically true.
That person is using it wrong. They are writing the file by hand, violating the spec. Don't write yaml by hand. It is not designed to be used that way.
In my experience it's mixed. Some bugs affect few people on the big platform, but the sheer size of the platform means that the absolute number of people affected is large, and the bad word of mouth then comes from the big platform. Others don't. Sigh. It's mixed.
I don't have the XL, just the 4a, but CalyxOS has been working great for a little over 10 months now.
Splunk is a dead player too. It's a great match.
NFTs Are – Finally – Worthless
Unlike most IDEs, where using more of the tools means better productivity, Agile project management doesn't benefit from more features and capabilities. A memory leak finder or profiler or better lint has no downside.

Not true for project management features like, for example, "velocity" measurements denominated in story points (unitless) over time (seconds). Management metrics bullshit seldom benefits a project. In feature-monster tools like JIRA you have to do a lot of work to un-feature a project and those features are still lurking.
For us the rejection rate is 90+% which is equivalent to down for me.
Ask HN: How do you use Grafana dashboards and alerts as code?
At my $job we have a lot of dashboards crafted manually over time, and now there are also alerts in several dashboards. I wish I could organise them as code, and define alerts also in code such that changing them would need an MR to be approved.
I saw grafanalib, but it appears to make us re do all the dashboards in Python and their API which is not great.

Have you done something like this at your org? Any easy way into this?
Cisco and Splunk have no overlapping business models, do they? What's the strategy behind it?
They are right.

This bill has cross party consensus. The opposition once said it didn't go far enough.

There's nothing you can do. The blob cometh.
Deciding that a mile is low is a top-down analysis. But if you've ever walked a mile to a store to buy groceries, you'll quickly conclude that much further is not really a viable foot journey to buy groceries.
Gah! I meant "Stylus".

The name similarity means I keep getting them confused. Including repeatedly on HN comments.

And yes, I do know the difference: <https://news.ycombinator.com/item?id=36859978>
If we assume this is serious then it falls into a division I see in a lot of areas. Catch errors sooner or Catch errors later. The Catch errors later group tends to take the position that Because I have to catch some errors later anyway I might as well catch all the errors later. The catch errors earlier group tends to take the position that the earlier I can catch the error the easier it is to handle and the safer my code will be.

Neither seems to be able to see valid points in the other's position so it ends up being polarizing.
Try baked tofu. It’s just so tasty and usually comes with much less brine.
You haven't read the spec, I take it. Read the spec, compare it to JSON. It should become apparent what features Yaml has that Json does not.
This is good timing. Currently evaluating email send for a new app.
I find the effect works best for the blue and not at all for red. I wonder if this could be related to chromostereopsis? It could be causing the red grid to appear superimposed above the grey rather than being filtered through it?

https://en.wikipedia.org/wiki/Chromostereopsis
What people do in a controlled environment is usually not what they actually do "in the field".

If you ask "do you want 5 flavors of coke or 3?" people will say of course 5 is better. It's not necessary true in real world.
Sorry you're right of course I messed up the service name.
> with horrible sales and business team

I was in one of these meetings with like 20 engineers on how amazing this thing was. We knew that because we already used it it quite extensively. The very extremely hyper sales rep kept ducking out of the meeting every 5 mins. I recognized it for what it was. He was ducking out to do bumps of coke so he could be more pumped to sell us more stuff.
But that’s very much not what you responded to, nor is it even similar. What you responded to was “real men don’t cry.”

Whatever you were trying to add was within that context, thus my reply. “Real men don’t cry” is not well-intentioned, nor is it just a poorly worded version of good advice.
I have been using the new renderer since it was available as a hidden beta feature. Parts of rendering feel smoother but it's painful to watch how streets are redrawn.

I also live in a very densely mapped area, which definitely affects rendering performance. Very remote places / not well mapped areas (South America, Laos, Eastern-Europe) render somewhat better, but nothing comparable to Organic maps or StreetComplete
Richard Hipp – SQLite [the Databaseology Lectures – CMU Fall 2015]
What makes you say Splunk is a dead player?

Not arguing with you, it's genuine curiosity on my part.
The entire point of this is that you can use UberEats to buy a $6 pack of 8 hot dogs instead of a single hot dog for $2 at the gas station, if you want hot dogs.
> Much of the world views India as a corrupt, low-trust society

Not really sure if much of the world shares your opinion.

> Despite all of the advantages India enjoyed it has a GDP per capita below Congo.

Congo-Brazzavile, which has GDP per capita slightly above India, is a petrocracy with only a 5 million people. DR Congo, which may be comparable, has GDP per capita four times lower than in India. Applying the same logic, I can say that US is more corrupt and low-trust because Qatar has higher GDP per capita.

> An economy with a strong scam and corruption basis will always falter.

If 7% average annual GDP growth for the last twenty years is now considered "faltering", I don't know what to say.

> Even if you think this is some sort of poetic justice tax[1] on ugly Westerners

I haven't stated that it is my opinion.
At least in the case of restaurants, markups come from the stores; it can vary widely from place to place. Uber takes a cut, so they either let it cut into their profits and make it up on the extra volume, or they mark it up to compensate.
It's a strong effort, but not as cerebral as the classics, "Twitter Acquires Magic Pony" https://news.ycombinator.com/item?id=11937756 and "Salesforce Signs Definitive Agreement to Acquire Slack" https://www.youtube.com/watch?v=Qt9MP70ODNw .
SumoLogic is equally dead and a way inferior product. It's owned by a PE now, the same that owns New Relic so expect some action there.
You can make good workflows on Jira, yes.

That doesn't fix the horrible UX, sluggishness, confusing options, forms that present a lot of useless fields but don't give you the option to present other, more useful ones, ... I could go on.

Jira is a terrible tool.
I wish they had the storage servers in the US :(
Sorry to disappoint, but I made the blog, not the map!
Atlassian has been doing this for years, killing the server versions to force people into cloud and revenue, etc.

If you’re on their products I feel for you son, but if you’re starting out I’d avoid anything Atlassin infected.
That is a very tiny fraction of the game market.
>Large companies vacuuming up government benefits is an issue that needs to be examined and watchdogged.

Are you equally upset at Walmart or Safeway "vacuuming up government benefits"?
Man, I wish I didn't need DTDs. Unfortunately, the USAF TMCR says I do. Verbatim. TO-00-5-3.

Yeah, in retrospect Billion Laughs was a bit of a cheap shot. It is, however, hilarious. And no one ever put forward any sort of mitigation or fix, for decades[1]. Meanwhile, in the YAML dev world open issues . .

if (refDepth > maxRefCount && node.kind === Yaml.Kind.ANCHOR_REF) {

I don't really have a dog in the YAML fight - apart from Asciidoctor-pdf template files[1] - but the YML people are patching, and the XML people didn't, for a very long time.

Why is that? I'm going to go back to the basic notion of XML as the Everything for Everything, which was encouraged by its design pattern insistence on fake semantics. YML has, no doubt, a big ol' dose of the same sickness, but with a lot less overhead, and it makes maintenance easier.

Keep in mind, we're now debating "How YML is perhaps just as bad as XML"

[1] This has resulted in a lot of software and IETM files (even whole devices) getting pulled from USN vessels in theatre; there's more than a few vulnerabilities that ride on the SGML/DTD Billion Laughs. Bunch of other ancient file formats getting the same treatment, something we in the industry saw coming since 2007. Just a ticking bomb until you fight a peer.
Thoughts and prayers to the people who will be tasked to consolidate the portfolio.
It's a perfectly reasonable serialization format and works fine as such. It does not work well as a configuration format, because humans are not supposed to write it by hand.
Ideally you have a product you worked on on the App Store or equivalent. Excellent if you have some of the code with you (to the degree you are allowed to).

Both of these things lead to natural points of conversations with your interviewer.

"Have any problems with concurrency with you approach?"

"Any user feedback that caused you to make changes to the app?"

etc....
So....was it a lab leak?
Thank you for your comment. Your comment should be the topmost as it offers a necessary correction. I liked the story so much that I favorited it and wanted the story to be true. It made me sad initially to know that the story is not true. But I am happier now since I that I know accurate information. Thanks much.
DIY Chatbots Unleash Large Language Models’ Repressed Sexuality
Totally love the fast pans, were you can see the surrounding forest for a frame or two..
Floating nuclear power plants are very intriguing. You get extremely reliable cooling, decouple from high G earthquake accelerations, and, most importantly, can build in a fully serialized shipyard based manufacturing facility, tackling the major cost issues of nuclear in general.

The first one the US ran was the MH-1A Sturgis, built out of a converted liberty ship. It powered part of the Panama Canal for a while. [1]

The big story, which is nearly forgotten, is that Westinghouse and Newport News jointly developed large floating nuclear plants as Offshore Power Systems. They installed the world's largest gantry crane on Blount Island in Jacksonville, FL at their nuclear reactor mass production gigafactory and got an actual manufacturing license from the NRC to build the first 8 units. [2]

I consider this one of the most promising ways to get nuclear power's ducks in a row, enabling it to mass produce reactors at a pace relevant more relevant for a rapid global energy transition. And starting out with a relief ship is a very appropriate way to kick this off again.

NPR's Science Friday covered that story back in 2020 [3]

[1] https://en.wikipedia.org/wiki/MH-1A

[2] https://whatisnuclear.com/offshore-nuclear-plants.html

[3] https://www.sciencefriday.com/segments/floating-nuclear-powe...
America makes a lot of food and has the capacity to make more than we do. Food is not a scarce resource, we could give it away for free to every citizen with only small changes to the five-year central plan (the Farm Bill).
> “and Google both use OSM data as well”

Pretty sure Google doesn't use OSM
No they should be 3rd class citizens.

We live in the most wealthiest nation in the world. You have illegal aliens coming here with no wealth and no access to welfare who manage to not only survive but also send money back to their families.

Giving people with crippling financial education/management problems and worse access to luxuries via welfare checks is to put it politely (so that señor Dang wont ban-ish me) very silly.

Its like giving free clean needles to addicts (oh wait), you're explicitly enabling and implicitly encouraging their dysfunction.

I'm not a huge fan of welfare in its current form but if we are gonna do this and by this I mean steal money from the best capital allocators in society and give it to those that can't help themselves, at the very least it should come with a lot strings attached:
1. Heavily discourage dysfunction with penalties.
2. Heavily encourage KPIs such as reduced discretionary spending and improved efficiency.

I can dive deeper into what would strings look like here but I think you guys get the gist of it. Giving checks to these people without any strings, is in my opinion the worst of both worlds. You're giving them just enough comfort to continue suffering in their current station in life.
So they will compete against AppDynamics for the same customers... Fun times.