User Controls
Sophie's Bag o' Lulz.
-
2024-01-04 at 12:40 AM UTC
Originally posted by maddie Kafka, love..
Until you are able to offer knowledge pertaining to topics in this forum, I and ignoring you, as your messages are just a waste of time for me to read, and they are completely irrelevant to the topic in hand.
Have a good day!
Being able to offer knowledge is something I may already possess, sharing it is another thing. So you should be able to acknowledge me now. I understand that you don't view self-improvement as important, but I will still correct errors if I feel like it. -
2024-01-04 at 12:43 AM UTC
Originally posted by maddie That has admin perms..
Give me one that doesn't already have admin perms.
IT'S GOTTA GO PAST THE WALL AND KEYLOG AT RING ZERO idk just hide it as a machine code interpretor. I have no idea how to engineer such a thing but I imagine any method to do so would get picked up eventually and you would either have to change how it works or design it in such a way that it can withstand being detected and change itself
I can see why they pay security heads and grey hats the big bucks. Maybe sophie took the money and ran instead of fighting an endless cycle of computer science like a technological programming Valhalla where the strongest kill each other every day in glorious combat only to be reborn and do it again for all eternity -
2024-01-04 at 12:50 AM UTC
Originally posted by the man who put it in my hood just run an uncensored GPT and ask it to spin up a keylogger in whatever language you choose instead of downloading some sketchy files that are probably backdoored so they actually keylog you
Sophie is no longer needed, we have AI to generate anything welcome to the future, if sophie were still alive he would be having a field day
i think i know that chick...
-
2024-01-04 at 12:51 AM UTC
Originally posted by the man who put it in my hood IT'S GOTTA GO PAST THE WALL AND KEYLOG AT RING ZERO idk just hide it as a machine code interpretor. I have no idea how to engineer such a thing but I imagine any method to do so would get picked up eventually and you would either have to change how it works or design it in such a way that it can withstand being detected and change itself
I can see why they pay security heads and grey hats the big bucks. Maybe sophie took the money and ran instead of fighting an endless cycle of computer science like a technological programming Valhalla where the strongest kill each other every day in glorious combat only to be reborn and do it again for all eternity
Basically in the end if someone has to rely on AI to create malware, they most likely won't have the knowledge to modify the AI generated code for it to even bypass IDS/AV.
Not to mention reading the AI generated code and trying to figure out exactly what its doing. Plus AI trying to pack it, create the stub, etc are all headaches in itself. -
2024-01-04 at 12:57 AM UTC
Originally posted by maddie Basically in the end if someone has to rely on AI to create malware, they most likely won't have the knowledge to modify the AI generated code for it to even bypass IDS/AV.
Not to mention reading the AI generated code and trying to figure out exactly what its doing. Plus AI trying to pack it, create the stub, etc are all headaches in itself.
Ask the AI to include comments explaining the code when you prompt it. -
2024-01-04 at 1:03 AM UTC
-
2024-01-04 at 1:04 AM UTC
Originally posted by maddie Basically in the end if someone has to rely on AI to create malware, they most likely won't have the knowledge to modify the AI generated code for it to even bypass IDS/AV.
Not to mention reading the AI generated code and trying to figure out exactly what its doing. Plus AI trying to pack it, create the stub, etc are all headaches in itself.
AI should just be considered a timesaver for repetitive work, but it won't be. lol. -
2024-01-04 at 1:06 AM UTC
-
2024-01-04 at 1:06 AM UTC
-
2024-01-04 at 1:10 AM UTC
-
2024-01-04 at 1:12 AM UTC
Originally posted by Kafka Ask the AI to include comments explaining the code when you prompt it.
It seems to be the other way around where it constantly includes comments in fucking everything even simple scripts unless you tell it not to, which can be annoying as it can only output so many characters/tokens so if 30% of those are comments I suspect the functionality of the code takes a hit as it tries to cram everything in 10k tokens or whatever
Even though some people try to make things in as few lines as possible as a programming challenge but AI isn't optimized to do either of these things generally because it's actually AS- artificial STUPIDITY or ASS it's STUPID
-
2024-01-04 at 1:14 AM UTC
Originally posted by the man who put it in my hood It seems to be the other way around where it constantly includes comments in fucking everything even simple scripts unless you tell it not to, which can be annoying as it can only output so many characters/tokens so if 30% of those are comments I suspect the functionality of the code takes a hit as it tries to cram everything in 10k tokens or whatever
Even though some people try to make things in as few lines as possible as a programming challenge but AI isn't optimized to do either of these things generally because it's actually AS- artificial STUPIDITY or ASS it's STUPID
AI won't be what humans assume AI is meant to be until AI turns into AEI. -
2024-01-04 at 1:27 AM UTC
Originally posted by aldra we're talking code, generating code you don't understand is a recipe for disaster that causes all sorts of problems down the line
the electric pajeet
Are you saying it should just be used for repetitive tasks for people who don't understand coding or for everyone? You didn't make a distinction. -
2024-01-04 at 1:33 AM UTC
Originally posted by Kafka Are you saying it should just be used for repetitive tasks for people who don't understand coding or for everyone? You didn't make a distinction.
in terms of coding it should only be used for small, repetitive tasks where things like security and efficiency aren't a major issue compared to the amount of time it takes just to write the code.
if you use it for more complicated projects or actual problem solving you end up with a large chunk of code that may work, but you have no idea how it works so if it fails or doesn't perform how you want it to you have to spend time learning the logic before you can make any corrections or solve problems.
with the state of AI code writing tools now it's likely just to be a frankenstein's monster that you can't really fix because it was stitched together from random code rather than being designed from the beginning to perform a specific function -
2024-01-04 at 1:34 AM UTC
-
2024-01-04 at 1:35 AM UTC
-
2024-01-04 at 1:36 AM UTC
Originally posted by aldra in terms of coding it should only be used for small, repetitive tasks where things like security and efficiency aren't a major issue compared to the amount of time it takes just to write the code.
if you use it for more complicated projects or actual problem solving you end up with a large chunk of code that may work, but you have no idea how it works so if it fails or doesn't perform how you want it to you have to spend time learning the logic before you can make any corrections or solve problems.
with the state of AI code writing tools now it's likely just to be a frankenstein's monster that you can't really fix because it was stitched together from random code rather than being designed from the beginning to perform a specific function
And with this being said, best thing we have right now is copilot in my opinion. -
2024-01-04 at 1:39 AM UTCNo one's going to click links so I've copied and pasted tips:
1.Generate boilerplate code
Prompt formula:
Generate boilerplate code for an app that [explain what you need this app to do]. Please use
[explain what languages and frameworks should be used].
Prompt example:
Generate boilerplate code for an app that integrates to an external API. Please use javascript
code on the express.js framework.
2.Compare frameworks/algorithms
Prompt formula:
I'm building a new [explain what you’re building], and want to compare [first comparison
item] with [second comparison item]. Please propose the scope for a simple [what you’re
building], and generate two code bases that fulfill that scope, one using[first comparison item]
and another using [second comparison item]. Please redact clear instructions for me to run
both apps on my local machine.
Prompt example:
I'm building a new frontend app, and want to compare React.js with Vue.js. Please propose the
scope for a simple frontend app, and generate two code bases that fulfill that scope, one using
React.js and another using Vue.js. Please redact clear instructions for me to run both apps on
my local machine.
3.Explain code
Prompt formula:
Explain this code to me:
Prompt example:
Explain this code to me:
fetch("https://api.stripe.com/v1/payments?created[gte]=last_month")
.then(response => response.json())
.then(data => {
let transactions = data.transactions;
let groupedTransactions = {};
transactions.forEach(transaction => {
if (!groupedTransactions[transaction.entity]) {
groupedTransactions[transaction.entity] = transaction.amount;
} else {
groupedTransactions[transaction.entity] += transaction.amount;
}
});
let sortedTransactions = Object.entries(groupedTransactions).sort((a, b) => b[1] - a[1]);
sortedTransactions.forEach(transaction => {
console.log(${transaction[0]}: $${Math.ceil(transaction[1])});
});
});
}
4.Comment code
Prompt formula:
Regenerate the code snippet below, but please include comments to each line of code:
[code to be commented]
Prompt example:
Regenerate the code snippet below, but please include comments to each line of code:
fetch("https://api.stripe.com/v1/payments?created[gte]=last_month")
.then(response => response.json())
.then(data => {
let transactions = data.transactions;
let groupedTransactions = {};
transactions.forEach(transaction => {
if (!groupedTransactions[transaction.entity]) {
groupedTransactions[transaction.entity] = transaction.amount;
} else {
groupedTransactions[transaction.entity] += transaction.amount;
}
});
let sortedTransactions = Object.entries(groupedTransactions).sort((a, b) => b[1] - a[1]);
sortedTransactions.forEach(transaction => {
console.log(${transaction[0]}: $${Math.ceil(transaction[1])});
});
});
}
5.Generate test cases
Prompt formula:
Write test cases for [cases to be tested] to the below code snippet. First outline the test cases
you'll write. Second, write the test cases in [language and framework to be used to write the
tests].
[code to be tested]
Prompt example:
Write test cases for the main edge cases that could happen to the below code snippet. First
outline the test cases you'll write. Second, write the test cases in javascript using the Jest
framework.
fetch("https://api.stripe.com/v1/payments?created[gte]=last_month")
.then(response => response.json())
.then(data => {
let transactions = data.transactions;
let groupedTransactions = {};
transactions.forEach(transaction => {
if (!groupedTransactions[transaction.entity]) {
groupedTransactions[transaction.entity] = transaction.amount;
} else {
groupedTransactions[transaction.entity] += transaction.amount;
}
});
let sortedTransactions = Object.entries(groupedTransactions).sort((a, b) => b[1] - a[1]);
sortedTransactions.forEach(transaction => {
console.log(${transaction[0]}: $${Math.ceil(transaction[1])});
});
});
}
6.Generate documentation
Prompt formula:
Generate documentation for the code below. You should include detailed instructions to allow a
developer to run it on a local machine, explain what the code does, and list vulnerabilities that
exist in this code.
[code to be documented]
Prompt example:
Generate documentation for the code below. You should include detailed instructions to allow a
developer to run it on a local machine, explain what the code does, and list vulnerabilities that
exist in this code.
fetch("https://api.stripe.com/v1/payments?created[gte]=last_month")
.then(response => response.json())
.then(data => {
let transactions = data.transactions;
let groupedTransactions = {};
transactions.forEach(transaction => {
if (!groupedTransactions[transaction.entity]) {
groupedTransactions[transaction.entity] = transaction.amount;
} else {
groupedTransactions[transaction.entity] += transaction.amount;
}
});
let sortedTransactions = Object.entries(groupedTransactions).sort((a, b) => b[1] - a[1]);
sortedTransactions.forEach(transaction => {
console.log(${transaction[0]}: $${Math.ceil(transaction[1])});
});
});
}
7.Generate regexes
Prompt formula:
Generate a regex to match [the pattern you want to match]
Prompt example:
Generate a regex to match an email address
8.Rewrite code using correct style
Prompt formula:
Rewrite the code below following the [guidelines to be followed].
[code you want to rewrite]
Prompt example:
Rewrite the code below following the Google style guidelines for javascript.
fetch("https://api.stripe.com/v1/payments?created[gte]=last_month")
.then(response => response.json())
.then(data => {
let transactions = data.transactions;
let groupedTransactions = {};
transactions.forEach(transaction => {
if (!groupedTransactions[transaction.entity]) {
groupedTransactions[transaction.entity] = transaction.amount;
} else {
groupedTransactions[transaction.entity] += transaction.amount;
}
});
let sortedTransactions = Object.entries(groupedTransactions).sort((a, b) => b[1] - a[1]);
sortedTransactions.forEach(transaction => {
console.log(${transaction[0]}: $${Math.ceil(transaction[1])});
});
});
}
9.Find bugs in code
Prompt formula:
Please find the bug in the code below. This is what it should be doing:
[outline of the desired functionality]
Code:
[code to be debugged]
Prompt example:
Please find the bug in the code below. This is what it should be doing:
1. Fetch the response from the stripe API for payments received last month.
2. Parse the response json into an arrays with all transactions.
3. Traverse the array to group all transactions from the same entity, and sums their amounts.
The result is stored in a different array.
3. Sort the resulting array by amount received, descending.
4. Write to the console all payments, sorted by date, with money amounts rounded up to the
integer.
Code:
fetch("https://api.stripe.com/v1/payments?created[gte]=last_month")
.then(response => response.json())
.then(data => {
let transactions = data.transactions;
let groupedTransactions = {};
transactions.forEach(transaction => {
if (groupedTransactions[transaction.entity]) {
groupedTransactions[transaction.entity] = transaction.amount;
} else {
groupedTransactions[transaction.entity] += transaction.amount;
}
});
let sortedTransactions = Object.entries(groupedTransactions).sort((a, b) => b[1] - a[1]);
sortedTransactions.forEach(transaction => {
console.log(${transaction[0]}: $${Math.ceil(transaction[1])});
});
});
}
10. Solve leetcode type algorithms
Prompt formula:
Generate code in [desired language] to solve the following challenge:
[outline of the challenge to be solved]
Prompt example:
Generate code in javascript to solve the following challenge:
● We have one 2D array, filled with zeros and ones.
● We have to find the starting point and ending point of all rectangles filled with 0.
● It is given that rectangles are separated and do not touch each other however they can
touch the boundary of the array.
● A rectangle might contain only one element.
Example array:
Input = [ [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 0, 0, 0, 1], [1, 1, 1, 0, 0, 0, 1], [1, 1, 1, 1,
1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1] ]
Final note
Please use your best judgment and critical thinking when reviewing other’s code (either your
colleagues, someone on the internet or generative AI tools). ChatGPT can provide incomplete
or wrong answers. Do NOT push any responses to prod before thoroughly reviewing them. -
2024-01-04 at 1:47 AM UTC
Originally posted by aldra in terms of coding it should only be used for small, repetitive tasks where things like security and efficiency aren't a major issue compared to the amount of time it takes just to write the code.
if you use it for more complicated projects or actual problem solving you end up with a large chunk of code that may work, but you have no idea how it works so if it fails or doesn't perform how you want it to you have to spend time learning the logic before you can make any corrections or solve problems.
with the state of AI code writing tools now it's likely just to be a frankenstein's monster that you can't really fix because it was stitched together from random code rather than being designed from the beginning to perform a specific function
I don’t understand what you mean by efficiency not being a major issue, in what if any cases is it not important? I don’t understand what you mean by comparing it to the time it takes to write code.
Your second paragraph assumes no one has succeeded in acquiring code from AI that works after not being able to acquire it before whilst not understanding the code. -
2024-01-04 at 1:59 AM UTC
Originally posted by Kafka I don’t understand what you mean by efficiency not being a major issue, in what if any cases is it not important? I don’t understand what you mean by comparing it to the time it takes to write code.
an example might be cleaning up data entry and looking for errors before importing it into a database - instead of either having someone go through every entry, or writing code to check for every kind of error you can think of it could be more worthwhile to have an AI module check for common errors and just do a quick pass over it manually.
you might have to write a slightly different function to read or process a hundred different types of data, since it's a fairly simple but time-consuming process you could use AI to rewrite your function a hundred times for the different types rather than doing it yourself.
in these cases there are minimal security concerns because the AI code isn't directly exposed to user input and they're simple enough that you should be able to immediately see a problem and either fix it or have the AI rewrite the code with the fix in mind
Originally posted by Kafka Your second paragraph assumes no one has succeeded in acquiring code from AI that works after not being able to acquire it before whilst not understanding the code.
it's one thing to have commented code so you understand what each line does, but the overarching logic is a different story, especially when you're dealing with thousands of lines of code. when you're working on a team and have to deal with code written by other people you often have to talk to them to understand why they did things in a certain way so as to plan how that code fits into the larger project, how to troubleshoot it if there are problems, what you can change to suit another component without breaking their plans for future compatibility etc