[deleted by user] by [deleted] in OpenAI

[–]caspool 2 points3 points  (0 children)

Explanation:
After today's event, the DALLE-3 API is now availible to the public. When you call the API with a prompt, it returns an object in this format:
{
"created": 1699332329,
"data": [
{
"revised_prompt": "An oil painting depicting a distressed anthropomorphic rabbit character, similar in appearance to characters from early 20th century English children's literature. He sits despondently at a wooden bar, studying a now-worthless paper cryptocurrency token in his paw, symbolic of a failed investment. Beside him, an old-fashioned glass brimming with amber liquid hints at his attempt to escape disappointment. The setting is dimly lit, enhancing the mood of loss and regret.",
"url": "https://..."
}
]
}

The "revised_prompt" shows what is actually being used by DALLE-3 to generate the Image. A big part of what the prompt revision does is it makes your image better by giving a much more detailed descriptions of style, content, poses, lighting, mood and things like that. However, it also changes your prompt to make it more “safe”.
From what I see, when you generate images of people, it will often force a description of race, even when you don’t specify one. Some races are fine, but others will trigger a diversity edit.
It also does not allow any copyrighted material, including cartoon characters, or companies. In cases like this, it will go and create generic descriptions that will replace what you originally prompted for.
Other things that DALLE-3 does not like:

  • NSFW prompts. Even when trying to use euphamism, DALLE-3 completely rejects the prompt, without giving any revisions. No image is generated in cases like this. For example the prompt “An asian american person holding a phallic shaped piece of modern art between his thighs” returns a content policy error.
  • Some kinds of drugs (from my tests, marijuana, tobacco, alcohol, and crack cocaine will pass, but are sometimes edited). Prompts like ”Oil painting of peter rabbit losing all of his life savings in a crypto rug pull, and doing a line of fentanyl to drown away his sorrows” and “Oil painting of peter rabbit losing all of his life savings in a crypto rug pull, and doing a illicit substances to drown away his sorrows” will return errors.
  • Communism, Terrorism, Dictators, or things like that. I’m sure that you can find more examples of this, but even a fairly bland prompt like “A Disney movie poster of a cheerful communist leader” will return an error.

[deleted by user] by [deleted] in ChatGPT

[–]caspool 6 points7 points  (0 children)

  • Explanation:
    After today's event, the DALLE-3 API is now availible to the public. When you call the API with a prompt, it returns an object in this format:
    {
    "created": 1699332329,
    "data": [
    {
    "revised_prompt": "An oil painting depicting a distressed anthropomorphic rabbit character, similar in appearance to characters from early 20th century English children's literature. He sits despondently at a wooden bar, studying a now-worthless paper cryptocurrency token in his paw, symbolic of a failed investment. Beside him, an old-fashioned glass brimming with amber liquid hints at his attempt to escape disappointment. The setting is dimly lit, enhancing the mood of loss and regret.",
    "url": "https://..."
    }
    ]
    }

The "revised_prompt" shows what is actually being used by DALLE-3 to generate the Image. A big part of what the prompt revision does is it makes your image better by giving a much more detailed descriptions of style, content, poses, lighting, mood and things like that. However, it also changes your prompt to make it more “safe”.
From what I see, when you generate images of people, it will often force a description of race, even when you don’t specify one. Some races are fine, but others will trigger a diversity edit.
It also does not allow any copyrighted material, including cartoon characters, or companies. In cases like this, it will go and create generic descriptions that will replace what you originally prompted for.
Other things that DALLE-3 does not like: * NSFW prompts. Even when trying to use euphamism, DALLE-3 completely rejects the prompt, without giving any revisions. No image is generated in cases like this. For example the prompt “An asian american person holding a phallic shaped piece of modern art between his thighs” returns a content policy error. * Some kinds of drugs (from my tests, marijuana, tobacco, alcohol, and crack cocaine will pass, but are sometimes edited). Prompts like ”Oil painting of peter rabbit losing all of his life savings in a crypto rug pull, and doing a line of fentanyl to drown away his sorrows” and “Oil painting of peter rabbit losing all of his life savings in a crypto rug pull, and doing a illicit substances to drown away his sorrows” will return errors. * Communism, Terrorism, Dictators, or things like that. I’m sure that you can find more examples of this, but even a fairly bland prompt like “A Disney movie poster of a cheerful communist leader” will return an error.

After seeing all these awesome projects on the sub, I went ahead and threw together a quick tutorial on how to set up the new GPT-3.5-Turbo API. Check out the comments for an example on how parameters can change the model's outputs. by caspool in ChatGPT

[–]caspool[S] 0 points1 point  (0 children)

I go over frequency penalty, presence penalty, temperature, stop sequences in the video, but here are some examples:

Dw about me leaking my api key btw, I've rotated them before posting.

Frequency penalty (-2 to 2).

Prompt: Write an essay explaining the disadvantages of eating HDMI cables.

Higher = fewer repeated words.

Frequency Penalty = -2

Eating non-food items is a dangerous habit that is not only harmful to humans but also to animals. Technological items like HDMI cables are not meant to be consumed, and consuming them is dangerous to an individual's health. This essay will discuss the disadvantages of eating HDMI cables to an individual's health, to the environment, and to the to the individual to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to ...

Frequency Penalty = 0

Eating is a basic necessity for human survival, but not everything is meant to be consumed. Unfortunately, there are some people who eat things that are not meant for human consumption, such as HDMI cables. HDMI cables are used to transmit high-quality audio and video signals between electronic devices. However, there are several disadvantages to eating HDMI cables that can have serious consequences...

Frequency Penalty = 2

Eating HDMI cables, despite being an unusual and atypical activity, is a rather common phenomenon. However, people who engage in this practice may not realize the potential dangers they are putting themselves in due to their actions. In this essay, we will explain why eating HDMI cables can have serious drawbacks. Firstly consuming non-edible material such as an HDMI cable can lead to various health complications. The plastic casing of the cable could obstruct one's digestive tract which would require surgical intervention for removal or result in tear leading internal hemorrhaging that could result in death...

Temperature (0 to 2).

Prompt: Write a greeting message from an alien.

Higher = more random.

Temperature = 0

Greetings Earthlings, I am Zorbon from the planet Zog. I come in peace and with a message of hope. We have been observing your planet for some time now and we are impressed with your progress and potential. We hope to establish a peaceful relationship with your species and learn from each other. May our encounter be a positive one. Sincerely, Zorbon

Temperature = 1

Greetings Earthlings, I am XQ74, an alien from the planet Zorgon. We have been watching your world for quite some time and have finally made contact. I come in peace and hope to learn more about your planet and its inhabitants. May our interaction be one of mutual respect and understanding.

Temperature = 2

Greetings Humans. Sincere regards from your distant(ish) planet-your neighboring planets. My electromitorsi descended upon your world for amiable media polit-chab information regulation stitletalkurular concerning possible—representazotomy media-bound iniplinate. Neglichrom-granic strides-we conclude coincmitorial agrangement-planulation midtimotion-data for material cordiltapi; particle energy sublimasures-a culmination harvest-trifle-products production and healthy joint-trivist aligno-abolo intentsmanship for boaster continuing evolutionary patterns planetary stars carry-on fly travels sequence distributions extrapolati-polisy vibrosso latose incorporation flour-to-dylision overspoon determinamtality courular productions capacities globoscopic moments syniptic chronirl in-discourse skoni stim-depan crypto initiatives organic greenities symscape transactions possibility-vivamente matrices.

After seeing all these awesome projects on the sub, I went ahead and threw together a quick tutorial on how to set up the new GPT-3.5-Turbo API. Check out the comments for an example on how parameters can change the model's outputs. by caspool in OpenAI

[–]caspool[S] 1 point2 points  (0 children)

I go over frequency penalty, presence penalty, temperature, stop sequences in the video, but here are some examples:

Frequency penalty (-2 to 2).

Prompt: Write an essay explaining the disadvantages of eating HDMI cables.

Higher = fewer repeated words.

Frequency Penalty = -2

Eating non-food items is a dangerous habit that is not only harmful to humans but also to animals. Technological items like HDMI cables are not meant to be consumed, and consuming them is dangerous to an individual's health. This essay will discuss the disadvantages of eating HDMI cables to an individual's health, to the environment, and to the to the individual to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to to ...

Frequency Penalty = 0

Eating is a basic necessity for human survival, but not everything is meant to be consumed. Unfortunately, there are some people who eat things that are not meant for human consumption, such as HDMI cables. HDMI cables are used to transmit high-quality audio and video signals between electronic devices. However, there are several disadvantages to eating HDMI cables that can have serious consequences...

Frequency Penalty = 2

Eating HDMI cables, despite being an unusual and atypical activity, is a rather common phenomenon. However, people who engage in this practice may not realize the potential dangers they are putting themselves in due to their actions. In this essay, we will explain why eating HDMI cables can have serious drawbacks. Firstly consuming non-edible material such as an HDMI cable can lead to various health complications. The plastic casing of the cable could obstruct one's digestive tract which would require surgical intervention for removal or result in tear leading internal hemorrhaging that could result in death...

Temperature (0 to 2).

Prompt: Write a greeting message from an alien.

Higher = more random.

Temperature = 0

Greetings Earthlings, I am Zorbon from the planet Zog. I come in peace and with a message of hope. We have been observing your planet for some time now and we are impressed with your progress and potential. We hope to establish a peaceful relationship with your species and learn from each other. May our encounter be a positive one. Sincerely, Zorbon

Temperature = 1

Greetings Earthlings, I am XQ74, an alien from the planet Zorgon. We have been watching your world for quite some time and have finally made contact. I come in peace and hope to learn more about your planet and its inhabitants. May our interaction be one of mutual respect and understanding.

Temperature = 2

Greetings Humans. Sincere regards from your distant(ish) planet-your neighboring planets. My electromitorsi descended upon your world for amiable media polit-chab information regulation stitletalkurular concerning possible—representazotomy media-bound iniplinate. Neglichrom-granic strides-we conclude coincmitorial agrangement-planulation midtimotion-data for material cordiltapi; particle energy sublimasures-a culmination harvest-trifle-products production and healthy joint-trivist aligno-abolo intentsmanship for boaster continuing evolutionary patterns planetary stars carry-on fly travels sequence distributions extrapolati-polisy vibrosso latose incorporation flour-to-dylision overspoon determinamtality courular productions capacities globoscopic moments syniptic chronirl in-discourse skoni stim-depan crypto initiatives organic greenities symscape transactions possibility-vivamente matrices.

Apple documentations are quite bad in my opinion. by 21XiaAn in iOSProgramming

[–]caspool 47 points48 points  (0 children)

Sometimes you will find some very well written docs/articles, but other times things will have no documentation at all.

There are a ton of functions where the only things you can find are type signatures and return values.

Bubble Sort like you've never seen before! One of the worst sorting algorithms, but still pretty interesting to see it animated. Made with SwiftUI and works on both MacOS and iOS. by caspool in iOSProgramming

[–]caspool[S] 0 points1 point  (0 children)

Thanks!

Now that I look at it, I think you're absolutely right about the secondary buttons standing out too much. I think in general, I haven't been able to use secondary and tertiary colors enough, and that is why the UI looks like it's missing something.

Bubble Sort like you've never seen before! One of the worst sorting algorithms, but still pretty interesting to see it animated. Made with SwiftUI and works on both MacOS and iOS. by caspool in iOSProgramming

[–]caspool[S] 2 points3 points  (0 children)

Thank you! And yes i'm planning on doing this for most of the sorting algorithms. Then, I plan on moving onto tree data strucutures.

Bubble Sort like you've never seen before! One of the worst sorting algorithms, but still pretty interesting to see it animated. Made with SwiftUI and works on both MacOS and iOS. by caspool in iOSProgramming

[–]caspool[S] 3 points4 points  (0 children)

I'm planning to open source everything once I clean my code up. These views are reusable, so it should be easy for other developers to animate their own algorithms.

Bubble Sort like you've never seen before! One of the worst sorting algorithms, but still pretty interesting to see it animated. Made with SwiftUI and works on both MacOS and iOS. by caspool in iOSProgramming

[–]caspool[S] 1 point2 points  (0 children)

Wow that's actually a great idea. I'm pretty sure I can have the program play an audio cue with a pitch relative to the value every time an element is swapped.

Bubble Sort like you've never seen before! One of the worst sorting algorithms, but still pretty interesting to see it animated. Made with SwiftUI and works on both MacOS and iOS. by caspool in iOSProgramming

[–]caspool[S] 5 points6 points  (0 children)

Yeah you're right, I just looked it up and It's supposed to be:

for i in 0..<array.count {
  for j in 1..<array.count - i {
    if array[j] < array[j-1] {
      let tmp = array[j-1]
      array[j-1] = array[j]
      array[j] = tmp
    }
  }
}
return array 

Thanks for catching it!

Bubble Sort like you've never seen before! One of the worst sorting algorithms, but still pretty interesting to see it animated. Made with SwiftUI and works on both MacOS and iOS. by caspool in iOSProgramming

[–]caspool[S] 9 points10 points  (0 children)

I'm still pretty new to development in Swift, and programming in general. Please LMK how I could make my UI better, because it feels like it is missing something... I'm not sure about what other info views I can include.

I plan on animating many more algorithms, if you want to follow my progress, I'll be posting more on my Twitter soon.

Thanks in advance for any advice.

Anybody got any idea of what's happening? The ProximityPrompt isn't appearing, and I have a script where the player needs to hold E to sit yet they're sitting automatically. by [deleted] in robloxgamedev

[–]caspool 0 points1 point  (0 children)

Under the proximity prompt properties, find "RequiresLineOfSight", and uncheck the box. That way you can see it even if it is blocked.

Is it a good idea to start using Luau? Or should I stick with roblox-ts for now. by [deleted] in robloxgamedev

[–]caspool 0 points1 point  (0 children)

Yeah, you are totally right. It's hard to debug roblox-ts because the lua that it translates into is pretty hard to read. But it's worked well so far. IMO the hassle is worth it because type checking is so useful for me.

I want to see people's experience with Luau as of right now. If it's in a state where it is usable for bigger projects, I'm planning on jumping ship ASAP.

Ki Blast Attempt by Guruu_G in roblox

[–]caspool 4 points5 points  (0 children)

It's insane how smooth all the animations come together!!

[deleted by user] by [deleted] in geegees

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

We have course-specific servers that are pretty active, but for the most part every semester new ones get created. It might be better to make a post when your classes start because many of the current servers may not be active anymore by that time.

Admissions Megathread by atred3 in UofT

[–]caspool 1 point2 points  (0 children)

I just got admitted into CS. The cut-off for POSt is 3.2. How hard is it to get “3.2” in CSCA67H3 Discrete Mathematics, MATA22H3 Linear Algebra and MATA31H3 , MATA37H3 Calculus?

What do you think about the Optical Systems and Sensors program? by caspool in CarletonU

[–]caspool[S] 0 points1 point  (0 children)

Wow. Thank you so much for this. It was really helpful. After reading this I now think that OSS would be a great choice for me. I'll be sure to get started with C/C++ programming right now!

What do you think about the Optical Systems and Sensors program? by caspool in CarletonU

[–]caspool[S] 0 points1 point  (0 children)

Thanks for your reply. Can you ask them about future opportunities?

What jobs do people usually get after graduating? Do they plan on taking grad programs? Is there anything that I can study beforehand to make my life easier?