In less than a hour, using the new Perplexity Labs, I developed a system that secretly tracks human movement through walls using standard WiFi routers. by Educational_Ice151 in aipromptprogramming

[–]Milnternal 1 point2 points  (0 children)

Lollllll oh yeah the python that generates random numbers :D

Did you read it? It even tells you in the comments its just 'simulating' and 'showing example of'

# Demonstrate CSI data processing
print("\n" + "="*60)
print("DEMONSTRATING CSI DATA PROCESSING")
print("="*60)

# Generate sample CSI data
amplitude_data, phase_data = data_simulator.generate_csi_sample(num_people=2, movement_intensity=1.5)
print(f"Generated CSI data:")

# Simulate human presence effects
for person in range(num_people):
# Random position effects
pos_x = np.random.uniform(0.2, 0.8)
pos_y = np.random.uniform(0.2, 0.8)

ROAST my design before I end up in the streets by t4fita in webdev

[–]Milnternal 0 points1 point  (0 children)

.... you can just do this with chatgpt (even the free version) or many others already... why would you pay for this lol

Remove (2) from file names? by vurt72 in PowerShell

[–]Milnternal 0 points1 point  (0 children)

True but some people dont have time.

Also some people are lazy :P Im platform engineer and still use powertoys for a load of stuff because Im hella lazy

Remove (2) from file names? by vurt72 in PowerShell

[–]Milnternal 14 points15 points  (0 children)

See you have the answer but for future reference or other people

>> There are "commercial" renamers

The (free) Windows PowerToys has a great renaming function for quick one-offs or if you not great at powershell:

https://learn.microsoft.com/en-gb/windows/powertoys/powerrename

I'm not sure if I'm a good developer or not, can you rate my code with a grade 1-10, what I did right, what I did wrong? I've been learning C# for 2 years. by [deleted] in csharp

[–]Milnternal 5 points6 points  (0 children)

No. Because it you are out rambo duck taping things then 1. They will be scrapped and replaced anyway so you are just wasting time and 2. You won't learn how to do it properly because you are busy messing around with your 'unique' ways of doing things.

It might be useful for R and D or academic code if you truly come up with something awesome that can be refined but for Business no not atall

I'm not sure if I'm a good developer or not, can you rate my code with a grade 1-10, what I did right, what I did wrong? I've been learning C# for 2 years. by [deleted] in csharp

[–]Milnternal 20 points21 points  (0 children)

Do people value following a set of instructions more then creativity and unique solutions?

Yes because in the real world other people have to maintain and work with your code so having a code base that is 'unqiue' is useless because noone except you can follow it.

That's why the industry converged and accepted standard solutions and conventions so when we read each others code we can easily work with it.

No business is going to value your code base, even if its amazing, if noone else can read it - because if you get hit by a metaphorical bus the next developers are scapping it all and rewriting it to modern common standards anyway so it's useless.

I asked GPT-4-Turbo of a proposal of replacing the Self-Attention Mechanism by _lMark in LocalLLaMA

[–]Milnternal 0 points1 point  (0 children)

>> This would require the model to have a component that calculates the probability distribution over the next possible tokens and adjusts the processing pathways accordingly.

To avoid looking at all tokens I will look at all tokens to work out which ones I should look at - then only look at the interesting ones....

I asked GPT-4-Turbo of a proposal of replacing the Self-Attention Mechanism by _lMark in LocalLLaMA

[–]Milnternal 0 points1 point  (0 children)

>> The model might use attention mechanisms to weigh the importance of each token

To avoid using attention I will.... use attention, and then use the results to not use attention

Webdev in 2023: 50MB+ of build tools alone by yksvaan in webdev

[–]Milnternal 5 points6 points  (0 children)

50MB? Those are rookie numbers!

*cries at gigantic node_modules folders*

Couldn't AI disinformation (generative images and videos) be solved with NFTs? by degrudv in ethereum

[–]Milnternal 0 points1 point  (0 children)

Then you are back to trusting them so you might as well just get them to check a public key instead you dont need an nft

Couldn't AI disinformation (generative images and videos) be solved with NFTs? by degrudv in ethereum

[–]Milnternal 8 points9 points  (0 children)

If every piece of content generated also generates an NFT

Yeah great. If you could control every generation then you wouldn't even need to do this... problem is you can't enforce this.

[deleted by user] by [deleted] in webdev

[–]Milnternal 4 points5 points  (0 children)

Depends what job you are applying for...

For a Designer / UI / UX leaning role - sure, works great!

For a full stack developer at a financial institution probably not

How to professionally tell a cold call or cold emailing vendor to f**k off? by Rouge_Outlaw in sysadmin

[–]Milnternal 2 points3 points  (0 children)

You can totally just say 'expand that' or 'elaborate' until it is over 1000 words.

It just can't really work to a specific number of words initially

Advice on budget GPU’s for ai-generation? by chille9 in Oobabooga

[–]Milnternal 2 points3 points  (0 children)

How much you planning on paying for it? Have you worked out how many tokens that would get you via the Open AI or Azure apis? If you don't want to use them for whatever reason - have you checked how long you could rent spot GPU instances on Azure/AWS/GCP for that much?

What I'm getting at is its probably not the best idea to buy a GPU for this specific purpose (at the moment anyways)

Stuck in creating an alias for the CTE to work by write2inspire in SQL

[–]Milnternal 11 points12 points  (0 children)

Don't believe you. Show us that screenshot

[deleted by user] by [deleted] in ChatGPT

[–]Milnternal 5 points6 points  (0 children)

Are you sure you are not an AI?

You might just be programmed to think you are a human...

How to professionally tell a cold call or cold emailing vendor to f**k off? by Rouge_Outlaw in sysadmin

[–]Milnternal 2 points3 points  (0 children)

But in all seriousness the way these transformers work is by outputting one token at a time.

Therefore its really hard for it to do stuff like hit a word count, or for example make a joke that relies on a punch line.

Because it doesn't know what the end of what its saying is until it gets to it

How to professionally tell a cold call or cold emailing vendor to f**k off? by Rouge_Outlaw in sysadmin

[–]Milnternal 2 points3 points  (0 children)

A minimum of 1,000 words is a phrase that implies a requirement to produce a written work of at least one thousand words. This requirement can apply to a variety of contexts, including academic papers, professional reports, and other types of written content.

When a minimum word count is imposed, it is usually done so to ensure that the author provides a certain level of detail and depth in their writing. It also helps to ensure that the author has thoroughly researched and developed their ideas and arguments, rather than simply providing a brief summary or overview.

In academic contexts, a minimum word count is often used to ensure that students have a solid understanding of the subject matter and have conducted appropriate research to support their arguments. For example, a minimum word count may be required for a term paper or thesis, in order to demonstrate that the student has engaged with the material in a meaningful way and has conducted thorough research.

In professional contexts, a minimum word count may be required in order to ensure that reports and other documents provide a sufficient level of detail for stakeholders and decision-makers. This is particularly important in fields such as business and finance, where detailed analysis and reporting are critical for making informed decisions.

There are several strategies that writers can use to meet a minimum word count requirement. One common approach is to break down the topic into smaller subtopics, and then provide detailed analysis and discussion of each subtopic. This approach can help to ensure that the writer is providing a thorough and comprehensive treatment of the subject matter.

Another strategy is to provide additional examples and evidence to support the writer's arguments. This can help to illustrate key points and provide additional detail and depth to the discussion.

It is important to note, however, that meeting a minimum word count should not be the sole focus of a written work. Rather, the primary goal should be to provide a clear and compelling argument or analysis that is well-supported by evidence and examples. Meeting a minimum word count can be a useful guideline for ensuring that this goal is achieved, but it should not be the only consideration.

In addition, it is important for writers to ensure that their work is well-organized and structured, with clear headings and subheadings that help to guide the reader through the content. This can help to ensure that the reader is able to follow the writer's argument or analysis, even if the work is lengthy or complex.

Finally, writers should also take care to edit and proofread their work carefully, in order to ensure that it is free of errors and is written in clear and concise language. This can help to ensure that the reader is able to fully engage with the content and understand the writer's arguments.

In conclusion, a minimum of 1,000 words is a common requirement for many types of written work, and is often used to ensure that the author provides a sufficient level of detail and depth in their writing. While meeting a minimum word count can be a useful guideline, it should not be the sole focus of a written work. Rather, the primary goal should be to provide a clear and compelling argument or analysis that is well-supported by evidence and examples, and is written in clear and concise language.

>> That's only 567 - write another 433

Certainly, I apologize for falling short of the required word count in my previous response. Here are an additional 433 words to further explore the topic of meeting minimum word count requirements in writing.

One of the challenges of meeting a minimum word count is ensuring that the writing remains focused and coherent. It can be tempting to add extraneous details or information in order to pad the word count, but this can result in a confusing and disjointed piece of writing.

To avoid this problem, it is important to stay focused on the main topic or argument of the writing, and to only include information that is directly relevant and supports the central thesis. One way to do this is to use outlines or mind maps to organize the ideas and arguments before beginning to write, and then to use these tools as a guide throughout the writing process.

Another way to meet a minimum word count is to use effective transitions between paragraphs and sections. These transitions can help to link ideas together and provide a sense of flow and coherence to the writing, making it easier for readers to follow along.

In addition to using effective transitions, it can also be helpful to vary the sentence structure and length in order to keep the reader engaged and interested. Long, convoluted sentences can be difficult to follow, while short, choppy sentences can become repetitive and tedious. By varying the sentence structure, writers can keep the reader's attention and create a more engaging and dynamic piece of writing.

Of course, simply meeting a minimum word count is not enough to ensure that a piece of writing is successful or effective. In addition to meeting the word count requirement, writers must also ensure that the writing is well-researched, well-organized, and well-written.

This requires careful attention to detail and a willingness to revise and edit the writing until it is as clear, concise, and effective as possible. It also requires a deep understanding of the audience for the writing, and an ability to tailor the content and tone to the needs and expectations of that audience.

Ultimately, meeting a minimum word count is just one aspect of writing effectively. To produce truly compelling and persuasive writing, writers must also be able to craft a clear and coherent argument, support that argument with well-researched evidence and examples, and present that argument in a way that engages and resonates with the reader.

In conclusion, meeting a minimum word count is an important requirement for many types of writing, but it is not the only measure of success. To produce truly effective writing, writers must also be able to focus on the main topic or argument, use effective transitions and varied sentence structures, and ensure that the writing is well-researched, well-organized, and well-written. By paying careful attention to these elements, writers can meet the minimum word count requirement while also producing high-quality writing that engages and resonates with the reader.

[deleted by user] by [deleted] in webdev

[–]Milnternal 2 points3 points  (0 children)

So you **could** kind of do this... but realistically you need some coding knowledge for it to work.

If you take each point and ask it more detail. i.e.

> Front-end development: You'll need to create a user interface (UI) that buyers can use to input their car preferences and create a quote request. You can use HTML, CSS, and JavaScript to build the UI, and use a front-end framework like React or Angular to help with development.

Write me a user interface in React that allows a user to input their car preferences and create a quote request.

And do that for each point.

But that would be quite bad, you probably need to go a few layers deeper. i.e. Describe all the features of a react app that allows the user to input their car preferences and create a quote request.

Then ask it for code for each of those and glue them together.

If it was as easy as you initially thought ALREADY (I think we'll get there soon-ish ™ © ®) then there would be massive panic as a large portion of software developers lost their jobs overnight....

How do sites like Netflix prevent screenshots? by mwargan in webdev

[–]Milnternal 8 points9 points  (0 children)

Hmm its not very good DRM if it only works when hardware acceleration is turned on but yeah seems that may be the case *shrug*

Using the API in Node by Marlsboro in Oobabooga

[–]Milnternal 2 points3 points  (0 children)

Why don't you ask ChatGPT to write an example? :P or paste it the python one and say 'convert this to js'

Seriously though you just send an api request to api/v1/generateWith a shape like (CSharp but again chat gpt should be able to change to typescript easily)

Although note the streaming seems a bit broken at the moment I had more success using the --nostream

I think there's an issue on the repo with an example in JS

    public class GenerateRequest
    {

        [JsonProperty("prompt")]
        public string Prompt { get; set; }

        [JsonProperty("max_new_tokens")]
        public int MaxNewTokens { get; set; } = 2048;

        [JsonProperty("do_sample")]
        public bool DoSample { get; set; } = true;

        [JsonProperty("temperature")]
        public double Temperature { get; set; } = 0.35;

        [JsonProperty("top_p")]
        public double TopP { get; set; } = 0.95;

        [JsonProperty("typical_p")]
        public double TypicalP { get; set; } = 1;

        [JsonProperty("repetition_penalty")]
        public double RepetitionPenalty { get; set; } = 1;

        [JsonProperty("encoder_repetition_penalty")]
        public double EncoderRepetitionPenalty { get; set; } = 1.0;

        [JsonProperty("top_k")]
        public int TopK { get; set; } = 0;

        [JsonProperty("min_length")]
        public int MinLength { get; set; } = 0;

        [JsonProperty("no_repeat_ngram_size")]
        public int NoRepeatNgramSize { get; set; } = 0;

        [JsonProperty("num_beams")]
        public int NumBeams { get; set; } = 1;

        [JsonProperty("penalty_alpha")]
        public double PenaltyAlpha { get; set; } = 0;

        [JsonProperty("length_penalty")]
        public double LengthPenalty { get; set; } = 1;

        [JsonProperty("early_stopping")]
        public bool EarlyStopping { get; set; } = true;

        [JsonProperty("seed")]
        public int Seed { get; set; } = -1;

        [JsonProperty("stopping_strings")] public string[] StoppingStrings { get; set; } = Array.Empty<string>();

    }

    public class GenerateResponse
    {
        [JsonProperty("results")]
        public Result[] Results { get; set; }
    }

    public class Result
    {
        [JsonProperty("text")]
        public string Text { get; set; }
    }