[-] comfy@lemmy.ml 1 points 2 days ago

Thanks. Lots of the documentation was difficult to parse for a beginner so your explanation of those features is very helpful.

[-] comfy@lemmy.ml 1 points 2 days ago

The site hasn't been designed yet, so I can use whatever database is most appropriate. I'm only familiar with SQL and MongoDB so far, but this project shouldn't be a complicated design so I'm open to alternatives.

I can definitely add a field for that, and I suppose I could use even a lightweight langauge model (or hypothetically even a static thesaurus dataset) to populate it automatically, allowing for manual overrides by a user in case it suggests something irrelevant.

9
submitted 2 days ago* (last edited 2 days ago) by comfy@lemmy.ml to c/webdev@programming.dev

I want to build a small site which acts as a broad, searchable FAQ for a certain topic.

Consider I have the FAQ:

What is the approximate mass of Earth?

It's 5.9722 × 10^24 kilograms, wow!

I want the user to have a chance at finding this FAQ by asking How heavy is our planet

Looking at this basically, the two similar questions have only one shared word, "is", which is an extremely common word. So using something really simple like word comparison or even stemming/lemmatization alone won't help.

On the very other end of the spectrum, a search engine's AI feature can interpret this effectively, rephrase the question and give a similar answer. So, what strategies are are in-between these two extremes?

  1. A few people will be adding questions to the site regularly.

  2. If possible, no external services, just self-hosting on an affordable server.

  3. Simpler and lighter solutions are preferred.

Are any of the features in OpenSearch (ElasticSearch/Lucene fork) able to do this? Is it overkill?

Since the site will have new questions to match regularly, will a solution require the repeated, wasteful retraining of NLP models to to create weights? Or is training so efficient for small-scale text datasets that it's responsible and reasonable to do on a cheap low-end server?


edit: Just spitballing here, I could try a solution which does the bulk work at insert-time rather than runtime, by asking a general pre-trained language model to rephrase the question many different ways, or generate keywords, then use those responses to generate tags for a basic keyword search to match. This would avoid making a heavy search function or retraining any model on the server.

Example result:

GPT-4o mini

Here’s a list of synonyms for the keywords in "What is the approximate mass of Earth?" formatted as an array of strings:

json

[
  "weight",
  "heaviness",
  "bulk",
  "load",
  "volume",
  "estimated",
  "rough",
  "approximal",
  "near",
  "close to",
  "planet Earth",
  "the globe",
  "the world",
  "Terra",
  "our planet"
]

[-] comfy@lemmy.ml 13 points 4 days ago

Somewhat relevant are the Subvertisers for London (as well as similar groups all over the world):

[-] comfy@lemmy.ml 15 points 4 days ago

Another word for “marketing” or “advertisement” is Manipulation.

Don't worry they've solved that, it's called 🩷 𝐼𝓃𝒻𝓁𝓊𝑒𝓃𝒸𝒾𝓃𝑔 😎. That's much less ominous! They just influence!

[-] comfy@lemmy.ml 4 points 6 days ago

Actual answer: be a professional penetration tester

Former jewel thief Larry Lawton robs Executive Cigar, Florida, skip the first 1:20 if you want

[-] comfy@lemmy.ml 3 points 6 days ago

Remember to put it back after you're done with it, so someone else can use it later.

13
submitted 1 week ago by comfy@lemmy.ml to c/anime@hexbear.net

The linked page has clips posted in a 2015 thread, along with links to the full détourned Aiura episodes most of the clips are from.

Fifteen are from Aiura, three are from The Devil Is a Part-Timer!, and one is from Eden of the East.

The how-to guide (although, being a decade later, there are probably now improved ways to do this)


Bonus: Inspired by those, a nukechan user made three Shrek 2 détournement clips:

86
26
submitted 3 weeks ago* (last edited 3 weeks ago) by comfy@lemmy.ml to c/asklemmy@lemmy.ml

PSA is a public service announcement, an awareness campaign.

It could be as simple as teaching everyone to walk on the same side of the footpath in each direction, to demonstrating how quickly a fire spreads and ways to prevent and react.

78
submitted 1 month ago* (last edited 1 month ago) by comfy@lemmy.ml to c/piracy@lemmy.dbzer0.com

I'm asking this out of curiosity; I don't need to host anything that can't already be done in the West


Lots of countries have very relaxed or non-existent enforcement of torrent filesharing. That's not what I'm asking.

I'm asking about what place one could openly host every known commercial pop song and every Hollywood film without any worry about being shutdown or sued.

For a reference, according to a one-minute check of Wikipedia, the only countries which haven't ratified the Berne Convention or the TRIPS Agreement in any way are Eritrea, Kosovo, Palau and Palestine. While joining these agreements doesn't imply they're enforced, it gives an idea of how widely governments do agree to intellectual property rights.

~~how much would it cost to launch an independent server into orbit?~~

45
submitted 1 month ago by comfy@lemmy.ml to c/asklemmy@lemmy.ml

I'm going to have access to a 3D printer for a few days. I know two friends who've used them, but it's only been for art and figurines, or professional purposes.

Are there any other cases you can think of where a custom-printed item is better than the myriad of mass-produced plastic items?

99
submitted 2 months ago by comfy@lemmy.ml to c/asklemmy@lemmy.ml

What is something you can sense that few-if-any people you know can sense? Literal answers only.

3
submitted 2 months ago by comfy@lemmy.ml to c/askscience@lemmy.world

We want to DIY some unique marker inspired artwork. The "DNA art" from companies online involves sending a DNA sample, and we have privacy concerns about that, and we'd rather not fork out thousands of dollars for DNA sequencing devices just for this. We can resort to a fingerprint for inspiration if there's nothing more interesting available and affordable to us, but we'd like to explore our options first.

The DNA sequence artworks they're talking about are ones like this, but it doesn't necessarily have to look anything like these:

19
submitted 3 months ago by comfy@lemmy.ml to c/asklemmy@lemmy.ml

Zohran Mamdani famously won the New York mayoral election, along with news of some other social democrat, and in at least one case socialist, politicians being elected to various levels of governance in the past weeks.

However, there will obviously be a broad range of reaction from the owning class (including but not limited to possible capital strikes). On top of that, since Mamdani ran as a Democrat, there is a very real threat of the Democratic Party establishment forcing Mamdani into compromise, for example, by state Dems threatening not to approve Mamdani's tax increases on the rich.

We've already seen some possible signs of Mamdani moderating stances on police and Zionism, and we've already seen other recent DSA politicians like AOC compromising, so this threat of Democratic Party pressure could be imminent if Mamdani (and the Dems) aren't held accountable by citizens and their power structures (including unions and other interest groups).

What power do citizens have to hold these social politicians to their word? How much power do existing structures like the DSA and worker unions have?

54
submitted 4 months ago* (last edited 4 months ago) by comfy@lemmy.ml to c/asklemmy@lemmy.ml

Most people reading this are probably very familiar with buying things between $0-1000 USD (such as everyday food and everyday clothing, perhaps weekly rent). Some of us will have experience buying more expensive items, like a car ($10,000s), or maybe even a house ($100,000s or even $1,000,000s). Some of you might want to object to those numbers I listed, they obviously will vary wildly in different markets, but I want to now ask about much more expensive things.

What is the cost of some items that few-if-any Lemmy users can afford? What can the absurdly rich buy that we can't? How much does it cost them?

You must give a money value with some evidence, no just knee-jerking and saying something vague like "elections" - instead find articles disclosing how much manipulation campaigns cost a political party.

1
submitted 5 months ago by comfy@lemmy.ml to c/chapotraphouse@hexbear.net

(daily reminder that elections won't save us)

7
submitted 5 months ago by comfy@lemmy.ml to c/greentext@sh.itjust.works

It would explain a lot.

[-] comfy@lemmy.ml 88 points 6 months ago

Programming is one of those skills and industries that is accessible enough that basically anyone can do it, but you will run into trouble later if you're doing anything serious without learning how to do it well. There are hundreds or thousands of ways to make something work, but if it's an unmaintainable mess or you don't even understand how it works, then we end up with our financial institutions running COBOL in 2025. Good luck when regulations change. Have fun when your operating system becomes unsupported and you have to replace the underlying dependencies. Hope your boss doesn't sue when they have to hire people to rewrite your hackjob.

And these were all already problems before AI code came onto the scene. We had the programming equivalent of script kiddies, people who would blindly copy and paste code from web searches without even reading the date or the comments saying "this is bad and this is why". But this probably makes it even easier to do, and possibly harder to spot. Combine this with how many universities don't even focus on lower-level languages so you get plenty of people who can't understand how to fix any of the trickier errors in their code. And that's not to say everyone has to be able to, but it's a problem when so few are able to. So these programmers are unlikely to know if the code has problems so long as it passes their tests, and unlikely to know how to fix those problems when they become clear.

Automation tools are good ideas for assisting and detecting possible mistakes. They're not good at generating that much code. In fact, that amount of code in that amount of time is suspicious, hinting that it's unlikely to be well-designed, maintainable or efficient.

[-] comfy@lemmy.ml 116 points 7 months ago

hey i want to be your mayor but ill just fuken leave the whole state if that other guy wins

What a dedicated and loyal representative of the people!

[-] comfy@lemmy.ml 129 points 1 year ago

Headlines are being headlines, I get it, but Fry was repeating a joke:

“I heard a very good joke yesterday,” the QI host, 67, told Stig Abell on Times Radio on Thursday.

“Someone said, ‘Musk is not a Nazi... Nazis made really good cars,’” he went on, before bursting out laughing.

[-] comfy@lemmy.ml 85 points 1 year ago* (last edited 1 year ago)

The Wikipedia page on East German jokes has a few Trabant jokes.

  • What's the best feature of a Trabant? – There's a heater at the back to keep your hands warm when you're pushing it.

  • A new Trabi has been launched with two exhaust pipes – so you can use it as a wheelbarrow.

  • How do you double the value of a Trabant? – Fill it with gas.

  • The back page of the Trabant manual contains the local bus schedule.

  • Four men were seen carrying a Trabant. Somebody asks them why? Was it broken? They reply: "No, nothing wrong with it, we’re just in a hurry."

  • How do you catch a Trabi? – Place a piece of chewing gum on the road.

[-] comfy@lemmy.ml 93 points 1 year ago

IMO, the worst thing about "Minetest" is that it sounded like it was just a test creation, a prototype or experiment. It's certainly well beyond that now. The announcement introduction mentions people associate it with being a Minecraft clone or alpha release, but even further, to me the name initially gave me the impression it was [still] someone's small hobby project. 'Luanti' is much better.

[-] comfy@lemmy.ml 150 points 2 years ago

pls no more punchlines in the title!

view more: next ›

comfy

joined 3 years ago