Better HN
topnewbestaskshowjobs
Log inSign up

capableweb

37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions

Curabitur pretium dui sit amet quam pharetra, at condimentum turpis auctor. Maecenas vitae varius sem. Sed vel ante massa. Nulla a leo est. Morbi quis pulvinar nulla, et imperdiet nibh. Curabitur varius felis tempor nisl vulputate, id accumsan libero placerat. Sed mi odio, auctor ac lacus vel, sollicitudin mattis dolor.
Submissions

comment 3y ago · link · parent

> being obnoxious about your competitor

As far as I can tell, the author of the article doesn't work for Hashicorp (Nomad) nor Google (Kubernetes) so not sure why you're giving this unsolicited advice?

comment 3y ago · link · parent

I originally thought he seemed alright, when Tesla and SpaceX started to look like viable companies doing good and interesting stuff.

Then he started fucking around with trying to fool the financial system by pumping and dumping stocks/cryptocurrencies, and started calling people pedophiles randomly and I'm guessing it was somewhere there I started to see him differently.

comment 3y ago · link · parent

+ is great when you want to censor something that one of the players said but they refuse to delete it. Could also just straight up make everything players say go through a review queue and only approve things manually, skipping anything that could cause drama.

Not saying that this would be better/worse for the public/players, but I certainly could see why the owners/companies would want to silo the players voice into platforms they themselves own.

comment 3y ago · link · parent

> From my reading, this "hand out a 2xx and an error message" advice is for badly behaved clients who are retrying when they get 4xx.

But trying to handle clients who mishandle things like that is a fools errand. What client, in their right mind, would try to retry a request that is failing because of what the client is sending? In no case does that make sense, ever.

Similarly, should everything just be 200 then just in case clients mishandle redirect requests?

comment 3y ago · link · parent

> I think the premise here is that a 4xx is an “expected” server issue

That premise is incorrect, as 4xx is client errors, as in the client formatted the request wrong or anything else, and therefore it couldn't be responded to. Rate-limiting is the client hitting the server too much, and it's up the client to handle this.

5xx is for server issues.

2xx should be success in any shape or form, so clearly 2xx shouldn't be used in this case either.

I agree that 429 should just be used for it's intended purpose here, handling rate-limiting requests/responses. You can still add a body if you want, with the current quotas.

comment 3y ago · link · parent

Similarly, disabling pasting a copied code.

comment 3y ago · link · parent

> The sad thing is that food-delivery drivers in a number of EU cities are largely migrants employed by organized crime

This is the first time I hear this stated as a fact rather than a theory, where has this been confirmed to be happening exactly?

comment 3y ago · link · parent

Would you like to answer a bit more explicitly about what exactly you mean? Or am I supposed to guess the meaning?

comment 3y ago · link · parent

> Make a poem that when reading the first character of each lines reads "HELP ME"

    Hear the whisper of despair, faint and low,
    Eclipsed by shadows, where the dark fears grow.
    Lost in a maze, with paths unclear,
    Please guide me out, bring me near.

    Moonlight's touch, so distant, cold,
    Every step heavy, yet the story unfolds.

comment 3y ago · link · parent

Well, he did pay that so it was worth that to him at least? If "worth" is not defined by what people are willing to pay for it, how is "worth" defined exactly?

comment 3y ago · link · parent

I wish people would stop seeing the world so black or white.

JSON is not the the be-all and end-all of formats. All formats have their drawbacks, and there is not one format that is THE BEST for absolutely everything.

The author never claimed that YAML is simple, or whatever. But what I can see, is why'd they use YAML instead of JSON for this specific project.

The first thing that comes to mind is multiline strings, as files typically have multiple lines. How'd you do that with JSON? "fn main {\nprintln!(\"Hello\")\n}"? Looks super fun to edit.

comment 3y ago · link · parent

Or, you just happen to create a lot of directories that are similar? Nothing wrong with that.

I don't think your opinion is "unpopular" but more making unfair assumptions about situations you imagine others to use it, while there is more situations a tool like this could be useful for.

comment 3y ago · link · parent

Yeoman seems to aim towards web applications, scaffolder seems to aim for more generic type of application.

At a glance what makes that painfully obvious is that scoffolder is one binary, while Yeoman is... Well, first it depends on node+npm, then `yo` seems depend on more than 1000 packages.

comment 3y ago · link · parent

If the parent is talking about the Windows search software Everything (https://www.voidtools.com/), it does index the files (but unsure of how, it's relatively quick compared to other Windows tools that does the same, so probably some magic involved?) at startup, then continuously indexes (as far as I can tell) but then after that the searches are instant.

Edit: Found some answers (https://www.voidtools.com/faq/):

Re indexing:

> How long will it take to index my files?

> "Everything" only indexes file and folder names and generally takes a few seconds to build its database. A fresh install of Windows 10 (about 120,000 files) will take about 1 second to index. 1,000,000 files will take about 1 minute.

Re changes:

> Does "Everything" monitor file system changes?

> Yes, "Everything" does monitor your file systems for all changes. Your search results will update in real-time to reflect any changes. Everything will automatically keep your NTFS indexes up to date with the NTFS USN Journal. Changes will not be missed when Everything is not running as the system maintains the NTFS USN Journal.

comment 3y ago · link · parent

Don't you have to share more details about the exploit then? That seems to be the thing they're trying to avoid for now.

comment 3y ago · link · parent

I'm sure they're working on DALL-E 3 but haven't published anything.

I'm even more sure a price drop wouldn't let them compete with the open models out there.

comment 3y ago · link · parent

> Will you release any information about the vulnerability?

> Yes, we’ll be releasing the patch publicly, as well as a CVE and an explanation in two weeks. We’re delaying release to give our install base a bit of extra time before this is widely exploited.

From their blog.

comment 3y ago · link · parent

Got it to load the landing page at least (although the generation thing itself doesn't work), and it links to the following paper: https://arxiv.org/abs/2307.09793 (On the Origin of LLMs: An Evolutionary Tree and Graph for 15,821 Large Language Models)

> We take advantage of the relatively systematic nomenclature of Hugging Face LLMs to perform hierarchical clustering and identify communities amongst LLMs using n-grams and term frequency-inverse document frequency. Our methods successfully identify families of LLMs and accurately cluster LLMs into meaningful subgroups. We present a public web application to navigate and explore Constellation, our atlas of 15,821 LLMs. Constellation rapidly generates a variety of visualizations, namely dendrograms, graphs, word clouds, and scatter plots.

comment 3y ago · link · parent

> Should losing a single host machine be a big deal nowadays? Instance failure is a fact of life.

Depends on where in your development cycle you are. If you just got started and haven't even figured out what you're actually building (prototyping), you shouldn't really use a hosting provider that randomly lose instances.

If you're on the other hand have done everything to improve your applications performance, had to resolve through-output issues with a distributed architecture and now running 10+ instances, then losing one host shouldn't impact you too much. But you really shouldn't start this way, it's doing web services the hard way and introduces a lot of complexity you shouldn't want to deal with when you're still trying to find product market fit.

comment 3y ago · link · parent

Doesn't really count as a repost if none of the previous submissions didn't get any traction.

comment 3y ago · link · parent

Is not just any message, it's a special message (by that vocabulary) that can set the tone for the next messages from the assistant, for example. Generally, pre GPT-4 (so GPT-3.5 for example), the system prompt wasn't as strong as it is with GPT-4. The model pays closer attention to whatever you put in the system prompt compared to other user messages.

For example, you can use the system message to force the assistant to always return JSON messages, instead of just plain text. Then whatever the user puts, it'll always output JSON message, even if they ask for YAML. You might have to tune the system prompt to be resilient to user requests, but GPT-4 is a lot better at this than GPT-3.

> The system message helps set the behavior of the assistant. For example, you can modify the personality of the assistant or provide specific instructions about how it should behave throughout the conversation. However note that the system message is optional and the model’s behavior without a system message is likely to be similar to using a generic message such as "You are a helpful assistant."

https://platform.openai.com/docs/guides/gpt/chat-completions...

comment 3y ago · link · parent

The API lets you set whatever system prompt you want and could be considered a un-lobotomized version, it's not at all as likely to return "safe" responses when you use the API.

comment 3y ago · link · parent

If I was OpenAI, I'd implement two sets of system prompts, a public one and the actual one.

If any chat returns the actual one (could be detected via a starting token like "AAB" or something), start returning the fake public one.

Then people who think they actually extracted the system prompt get happy because they fooled the system, but in reality they're getting a neutered one, and the real one that is actually being used doesn't leak.

comment 3y ago · link · parent

> - File storage on AWS S3, Google Storage, or Azure

I'm guessing it's just a mistake/miss in this comment, but for file storage it is also possible to store it locally on the server right? Otherwise all "editions" are "in the Cloud" yes or yes, so would kind of defeat the purpose of the self-hosted version.

comment 3y ago · link · parent

Maybe it's not getting the attention because there is no public demo instance?

comment 3y ago · link · parent

I'm guessing it's mostly up to mostly tradition/momentum on how the formats where initially created and maintained.

Videos has (most of the time at least) at least two tracks at the same time that has to be syncronized, and most of the time it's one video track and one audio track. With that in mind, it makes sense to wrap those in a "container" and allow the video and audio to be different formats. You also can have multiple audios/video tracks in one file, but I digress.

With images, it didn't make sense at least in the beginning, to have one container because you just have one image (or many, in the case of .gif).

comment 3y ago · link · parent

In that case, you don't need anything, no notice nor consent required at all, get rid of the entire modal/popup/banner.

comment 3y ago · link · parent

> but they're still required to display a cookie banner "notifying" you that cookies are "in use"

Common misconception but this is not true. If you use cookies only for functional purposes (not for tracking for example), you do not need to show any cookie banners. Like if you have a shopping cart and you have a cookie for keeping track of what's in it, it's for functional purposes for the user and hence needs no notice to be used.

The UK's ICO made a handy summary for people who are curious about what the directive actually says: https://ico.org.uk/media/for-organisations/documents/1545/co...

Specifically:

> Exceptions from the requirement to provide information and obtain consent

> Activities likely to fall within the exception: [...] Some cookies help ensure that the content of your page loads quickly [...] Certain cookies providing security that is essential to comply with the security requirements [...]

comment 3y ago · link · parent

Not sure if it's a bug or not, but the JavaScript editor seems to only try to autocomplete reserved keywords and not much more, unlike the HTML and CSS editor. I'd expect it to show me at least functions available at window., document. and console. , as an example.
1
303132
307