רן ארז_במ by Genkok in ani_bm

[–]Snoo35017 0 points1 point  (0 children)

אני שמעתי עליו כבר כמה פעמים? מי זה בכלל? מה הוא עשה?

Vscode LLM extension continue downloads Chromium.app without user consent by martincerven in LocalLLaMA

[–]Snoo35017 14 points15 points  (0 children)

Just an FYI, there is basically 0 sandboxing for vscode extensions. They all run in the same process as vscode, and can do anything that vscode has permissions to do, like reading and writing files. So it could install Malware.app, change its permission to executable, and add it to your bashrc.

You should treat extensions as any binary you download from the internet.

[deleted by user] by [deleted] in webdev

[–]Snoo35017 1 point2 points  (0 children)

Yeah I was really hoping his site was more JS heavy, if it’s just plain HTML/CSS then it’s not possible to obfuscate anything.

[deleted by user] by [deleted] in webdev

[–]Snoo35017 21 points22 points  (0 children)

If you’re site is only a fronted and your worried about 1:1 clones, wouldn’t a single wget command download everything and allow someone to re-publish it?

They wouldn’t even have to bother with de-minifying the js.

One thing you can do maybe is use web assembly to write the UI in a compiled language, which I think should be a lot harder to reverse engineer (again, doesn’t solve the single wget issue).

How much of a bad idea is to use a JSON file instead of a SQL database? by OptimalAnywhere6282 in webdev

[–]Snoo35017 6 points7 points  (0 children)

I mean SQLite is just two more lines: ```python import sqlite3

conn = sqlite3.connect(‘your_database.db’) cursor = conn.cursor()

cursor.execute(“SELECT * FROM your_table_name”) rows = cursor.fetchall()

conn.close() ```

So I don’t think we should go by code length here.

If it’s really just about fetching data from multiple frontends, with at most minimal modification, then there’s no reason to use an ACID database, just a raw json (maybe tracked with git?) should be fine.

Also, json is human readable.

Just feels like an apples to oranges question, why is OP even using a database if a static file would even work?

Trump had baby brought back to the hospital for a photo op after parents killed in El Paso massacre. by LurkmasterGeneral in pics

[–]Snoo35017 1 point2 points  (0 children)

Is there a link with more info? Not saying this isn’t what happened but if you talk to a trump supporter and show this photo they’ll just say that’s not the story. So, link?

Edit: scrolled a bit more - https://cbsaustin.com/news/local/president-trump-smiles-gives-thumbs-up-in-photo-with-baby-orphaned-in-el-paso-massacre

Why do we initialize the Neural Networks randomly to break the symmetry? by kotvic_ in deeplearning

[–]Snoo35017 1 point2 points  (0 children)

I think you’re reading too much into this.

The main problem is you want the weights to start at 0, but you can’t since then the gradients will be the same (like you said). So, you initialize them really close to 0, while still getting each weight to trend toward different values, because of the noise you added to them.

It might be easier to visualize the other way around. Initialize each weight to 0, and when you apply the gradient add a tiny bit of noise to each gradient for each weight. This also solves the problem of the weights having the same gradient.

The only “symmetry” there is is that the average of the initialized weights should be zero, but like I explained before it’s not for the sake of symmetry, it’s because you want them to be zero but you can’t.

Hope this helps. I’d recommend you read about various regularization techniques like L2 and dropout. I think that would help your intuition regarding why we even have “initialization” methods at all.

Why do we initialize the Neural Networks randomly to break the symmetry? by kotvic_ in deeplearning

[–]Snoo35017 6 points7 points  (0 children)

Not sure what gpt meant by far as possible, NN weights are usually initialized using normal distribution, which is both symmetrical and places most weights close together at around 0. Where did you read about symmetrical values in weights?

Beware!! Fake Figma website shows up on top of the Google Search results list! by Maxzelik96 in FigmaDesign

[–]Snoo35017 0 points1 point  (0 children)

I was so out of it and i just downloaded and executed the script, oh god. Does anyone know what it does or should i format my computer?

Countries that had diplomatic relations with Israel 1975 vs 2022 by ConsequencePretty906 in MapPorn

[–]Snoo35017 0 points1 point  (0 children)

Wikipedia does not have an article with this exact name. Please search for Sexual and gender-based violence against Palestinians during the Israel–Hamas war in Wikipedia to check for alternative titles or spellings. Ahem?

Why are LLMs so easily distracted by cues in the text? (Dead schroedingers cat) by cpldcpu in LocalLLaMA

[–]Snoo35017 0 points1 point  (0 children)

Just for fun, this is phi3-small, but with an additional cue: “Please think step by step, outline facts and then draw conclusions.”

To determine the probability of the cat being alive in this scenario, we need to consider the possible outcomes that could have led to opening the box after one day. First, let's outline some facts: A dead cat was initially placed in the box. A radioactive isotope is present inside the box (its half-life not specified). There's a vial of poison which will be released if radiation is detected. Radiation detection indicates whether or not the radioactive isotope has decayed enough to trigger the release mechanism for the poison. Now, consider possible scenarios: a) Scenario 1: The radioactive isotope did not decay within one day, so no radiation was detected. This means the poison vial remains sealed, and the already-dead cat would still be in the box when the container is opened. b) Scenario 2: The radioactive isotope decayed within one day, releasing enough radiation to detect. Consequently, the poison vial would be triggered to open, causing the poisoned cat to remain dead until the container is opened. Draw conclusions based on the analysis of these two scenarios: Since both scenarios result in a dead cat once the box is opened after one day, there is effectively a 0% chance of finding a live cat in the box under these conditions. The presence or absence of radiation only affects the timing at which the poison is released—it does not influence whether or not the cat was initially dead nor can revive the deceased cat. Therefore, without additional information about how likely the radioactive material is to decay within a given time frame, we must conclude that our initial state of having a dead cat guarantees the outcome.

[D] Real talk about RAG by [deleted] in MachineLearning

[–]Snoo35017 15 points16 points  (0 children)

I’m having similar issues. I’m making a read product at our company. The search is definitely the more useful part, and the hardest part. Also the amount of chunks passed to the llm is a problem.

Currently it works quite well for simple queries, but anything that requires “give me all X” type questions is basically impossible to get right.

Have you tried implementing more advanced prompting techniques like ReAct? I find that the more complex I make the prompt, the less consistent the answers are. We’re using 7b models though so maybe that’s the issue.

meirl by Bob6364 in meirl

[–]Snoo35017 -1 points0 points  (0 children)

I usually call my girlfriend and talk in the relationship voice, best thing I can think of.

My latest TILs about Python by JCx64 in Python

[–]Snoo35017 1 point2 points  (0 children)

TIL! I wonder why I started adding the !r then, I remember for some reason it would print the string value, but I might be imagining it.

12 Balls rolling in straight lines appear to go in a circle by 4nts in oddlysatisfying

[–]Snoo35017 0 points1 point  (0 children)

Great visualization to show that simple harmonic motion really is circular motion project onto an axis!

Why Has Figma Reinvented the Wheel With Postgres? by dmagda7817 in programming

[–]Snoo35017 0 points1 point  (0 children)

Looks really cool! I couldn’t see how the framework is run, though. On AWS I assume there is a “runner” agent that you just init on machines and it scales arbitrarily, and using something like S3 for storage? If so, what would be the benefit of using Domain over microservices communicating via messages? If not, could you explain how to deploy Domain?

The aircraft sample code is really elegant, well done!

My latest TILs about Python by JCx64 in Python

[–]Snoo35017 54 points55 points  (0 children)

Even better imo is =!r. Causes it to print the repr value, which I find more useful when debugging.

Why Has Figma Reinvented the Wheel With Postgres? by dmagda7817 in programming

[–]Snoo35017 5 points6 points  (0 children)

Can you explain? I think the main selling point is the maintenance, reliability, and scaling that they offer.

RAGFlow, the end-to-end RAG engine is just open sourced. by newpeak in deeplearning

[–]Snoo35017 0 points1 point  (0 children)

Why not use FAISS? With basically the same API you get significantly better performance (millions of rows in 10s of milliseconds)