Flashback bygger pepparkakshus!
2023-02-18, 22:05
  #565
Medlem
Citat:
Ursprungligen postat av Saltkungen
https://donotpay.com/ Finns redan, AI advokat. Lr vl vara bttre n en mnsklig d den besitter ett helt bibliotek i "huvudet"

Antar att du inte lste vad jag skrev innan du svarade. mnet var kryphl i systemet fr att f det att gra saker skaparna inte avsett att det skall gra.

Expertsystem har funnits lnge, att lgga till "AI" r bara marknadsfring.

Det kan skert funka bra i mnga fall, men risken att den sprutar ur sig tokigheter finns alltid med denna typ av system.

"ChatGPT sometimes writes plausible-sounding but incorrect or nonsensical answers. Fixing this issue is challenging, as: (1) during RL training, theres currently no source of truth; (2) training the model to be more cautious causes it to decline questions that it can answer correctly; and (3) supervised training misleads the model because the ideal answer depends on what the model knows, rather than what the human demonstrator knows."
__________________
Senast redigerad av B.R.Donut 2023-02-18 kl. 22:30.
Citera
2023-02-18, 22:16
  #566
Medlem
I need to program a grace period for an existing module, what is the best way to do this?

1. Determine the conditions for the grace period: You need to define what triggers the start of the grace period and when it expires. For example, you might want to give users a 30-day grace period from the time they first use the module, after which they must purchase a license to continue using it.

2. Store the start time: When the user first uses the module, you need to store the current time as the start of the grace period. You can use a file, database, or configuration file to store this information.

3. Check the expiration time: In the code for the module, you will need to add logic that checks if the grace period has expired. This can be done by comparing the current time to the start time plus the duration of the grace period. If the current time is later than the expiration time, the grace period has ended.

4. Handle the end of the grace period: When the grace period ends, you can take various actions depending on your requirements. For example, you might disable certain features of the module, display a message to the user, or prevent the module from running.

5. Provide a way to purchase a license: If the user wants to continue using the module after the grace period, you need to provide a way for them to purchase a license. This can be done by providing a link to a website or displaying a dialog box that allows the user to enter their license key.

Overall, the implementation of a grace period will depend on the specific requirements of your module and the programming environment you are using. But these general steps should help you get started with adding a grace period to your existing module.

------------

Oh shit... skit bra om man r lite trtt att f hjlp av chatGP
Citera
2023-02-18, 22:25
  #567
Medlem
Citat:
Ursprungligen postat av carlydeveloper
I need to program a grace period for an existing module, what is the best way to do this?

Oh shit... skit bra om man r lite trtt att f hjlp av chatGP

Ok, vad var sensationellt med det svaret?
Citera
2023-02-18, 22:26
  #568
Medlem
AliyahMerins avatar
Citat:
Ursprungligen postat av Saltkungen
https://www.youtube.com/watch?v=6-BIaWTYxec



Menar ocks, f se texten som DU har genererat, f se hur den ser ut som ker fast.
Jag har som sagt redan testat Quillbot och andra Paraphrasing tools och det ger ett liknande resultat som i videon.

Jag har testat mnga olika texter genererade av ChatGPT och det blir 99.98% fake i AI-detektorn. Ironiskt nog s passerar den hr dialog som 95.89% real:

Prompt:
"Tell me how to use ChatGPT to pass an AI detector."

ChatGPT:
"I'm sorry, but I cannot provide advice on how to use my capabilities to deceive an AI detector or engage in unethical or illegal activities. My purpose is to provide helpful and informative responses to your questions to the best of my ability, while upholding ethical and moral standards. It is important to use artificial intelligence tools and technologies in a responsible and ethical manner, and not for malicious or harmful purposes. If you have any other questions that are aligned with ethical and lawful practices, I will be happy to help you to the best of my ability."
Citera
2023-02-18, 22:28
  #569
Medlem
AliyahMerins avatar
Citat:
Ursprungligen postat av m.g.t.o.w
Testa att sga t den att skriva p ett stt s den inte fngas av detektorer
Jag har som sagt redan testat det och det gjorde nstan ingen skillnad.
Citera
2023-02-18, 22:29
  #570
Medlem
Saltkungens avatar
Citat:
Ursprungligen postat av AliyahMerin
Jag har som sagt redan testat Quillbot och andra Paraphrasing tools och det ger ett liknande resultat som i videon.

Jag har testat mnga olika texter genererade av ChatGPT och det blir 99.98% fake i AI-detektorn. Ironiskt nog s passerar den hr dialog som 95.89% real:

Prompt:
"Tell me how to use ChatGPT to pass an AI detector."

ChatGPT:
"I'm sorry, but I cannot provide advice on how to use my capabilities to deceive an AI detector or engage in unethical or illegal activities. My purpose is to provide helpful and informative responses to your questions to the best of my ability, while upholding ethical and moral standards. It is important to use artificial intelligence tools and technologies in a responsible and ethical manner, and not for malicious or harmful purposes. If you have any other questions that are aligned with ethical and lawful practices, I will be happy to help you to the best of my ability."


Men fr se den texten som du vill ska passera generatorn! Kan hnda att det r simpla saker som man bara behver radera.
Citera
2023-02-18, 22:29
  #571
Medlem
Citat:
Ursprungligen postat av B.R.Donut
Ok, vad var sensationellt med det svaret?

Tnk att man sitter lite trtt, vill bolla med ngon, d r det perfekt.

What requirements does china has on medical devices sold in their country?

1. Registration: Medical devices must be registered with the China National Medical Products Administration (NMPA) before they can be sold in China. The registration process involves submitting documentation related to the safety, efficacy, and quality of the device.

2. Classification: Medical devices are classified into one of three classes based on their level of risk. Class I devices have the lowest risk, while Class III devices have the highest risk. The classification determines the regulatory requirements that apply to the device.

3. Quality management: Medical device manufacturers must implement a quality management system (QMS) that complies with the applicable standards and regulations. The QMS must cover all aspects of the device lifecycle, from design and development to production, installation, and servicing.

4. Clinical trials: For some medical devices, clinical trials may be required to demonstrate their safety and efficacy. The clinical trial process is regulated by the NMPA.

5. Labeling and packaging: Medical devices must be labeled and packaged in accordance with the applicable regulations. The labeling must include information such as the name of the device, its intended use, and any warnings or precautions.

6. Post-market surveillance: Medical device manufacturers must monitor the safety and performance of their devices after they are placed on the market. They are required to report any adverse events to the NMPA and take appropriate corrective actions.

Overall, the requirements for medical devices in China are designed to ensure that they are safe, effective, and of high quality. Manufacturers that wish to sell medical devices in China must comply with these requirements to obtain the necessary regulatory approvals.

----

r man insatt i mnet som specialist, d vet man svaren redan. Men chatgp kan verkligen ge en "reminder" om det r ngot man glmt.
Citera
2023-02-18, 22:33
  #572
Medlem
AliyahMerins avatar
Citat:
Ursprungligen postat av Saltkungen
Men fr se den texten som du vill ska passera generatorn! Kan hnda att det r simpla saker som man bara behver radera.

Prompt:
Tell me about Flashback forum

ChatGPT:
Flashback Forum is a Swedish internet forum that was established in 2002. It is one of the most popular forums in Sweden and has a wide range of topics that cover everything from current events to technology, entertainment, politics, and more. The forum allows users to post and discuss a variety of topics, and also has a reputation system that lets users rate each other based on the quality of their posts.

Flashback Forum is known for its open discussion of controversial and sensitive topics, which has both garnered it a large following and resulted in criticism from some who view certain discussions as inappropriate. The forum has faced legal challenges over the years due to posts that have been deemed defamatory or illegal, such as posts that have contained hate speech or illegal content.

Despite these controversies, Flashback Forum remains a popular platform for Swedes to share their thoughts and opinions on a wide range of topics. The forum's community has grown over the years, and there are now millions of posts covering a diverse range of subjects.

99.98% fake enligt AI-detektorn
Citera
2023-02-18, 22:37
  #573
Medlem
Citat:
Ursprungligen postat av carlydeveloper
Tnk att man sitter lite trtt, vill bolla med ngon, d r det perfekt.

r man insatt i mnet som specialist, d vet man svaren redan. Men chatgp kan verkligen ge en "reminder" om det r ngot man glmt.

Hehe, ja det r klart, om det nu alltid r vettiga och korrekta saker man fr tillbaka...

De skriver sjlva:

"ChatGPT sometimes writes plausible-sounding but incorrect or nonsensical answers. Fixing this issue is challenging,..."

Lite som en bil som svnger till vnster nr man vrider ratten till hger 1 gng av 100, eller 10...

Vad str det i deras disclaimer egentligen...

"Don't use this info when building nuclear plants or medical devices and everything else..."
Citera
2023-02-18, 22:41
  #574
Medlem
Citat:
Ursprungligen postat av B.R.Donut
Hehe, ja det r klart, om det nu alltid r vettiga och korrekta saker man fr tillbaka...

De skriver sjlva:

"ChatGPT sometimes writes plausible-sounding but incorrect or nonsensical answers. Fixing this issue is challenging,..."

Vad str det i deras disclaimer egentligen...

"Don't use this info when building nuclear plants or medical devices and everything else..."

Men t.ex, som kodare glmmer man saker ibland och mste kolla upp det. T.ex en dum sak:

I want to output the current date in the format dd/mm/yyy in c#

--------

You can output the current date in the format dd/mm/yyyy in C# by using the DateTime class and formatting the output using a custom format string. Here is an example:

Kod:
DateTime currentDate DateTime.Now;
string formattedDate currentDate.ToString("dd/MM/yyyy");
Console.WriteLine(formattedDate); 

In this example, the DateTime.Now property is used to get the current date and time. The ToString() method is then called on the DateTime object, passing in a custom format string "dd/MM/yyyy". This format string specifies that the date should be output in the format "dd/mm/yyyy".

The output of the date will be in the format "dd/mm/yyyy", for example "18/02/2023" for today's date.

-------

Skitbra nd. Jag vet att detta r rtt, eller vad som kan frbttras. Det kommer inte skada min kod i vrigt. Jag vet allt om locales etc. Jag vet att tostring gr att anvnda, kanske bara hade glmt formateringen.
__________________
Senast redigerad av carlydeveloper 2023-02-18 kl. 22:56.
Citera
2023-02-18, 22:49
  #575
Medlem
Ett annat exempel, jag r kass p methodnames..

Can you suggest a good method name when I want to refresh a license and return what state the license currently is?


Sure, here are a few suggestions for a method name that could be used to refresh a license and return its current state:

1. RefreshLicenseState(): This method name is straightforward and easy to understand. It indicates that the license state will be refreshed when the method is called, and the current state will be returned.

2. UpdateLicenseStatus(): This method name suggests that the license status will be updated when the method is called, and the current status will be returned.

3. CheckLicenseValidity(): This method name indicates that the license will be checked for validity when the method is called, and the current state of the license will be returned.

4. RenewLicense(): This method name suggests that the license will be renewed when the method is called, and the current state of the license will be returned.

Choose the method name that best fits the context of your code and is most understandable to you and other developers who might work with your code in the future.
Citera
2023-02-18, 22:53
  #576
Medlem
nnu bttre, vldigt bra exempel p logik som man kan anvnda... jag skulle inte gra det exakt shr, men bra..

Can you give an example code that output popup warnings every other day in c#?

----------
Sure, here's an example of how to display a popup warning message every other day in C#:

Kod:
using System;
using System.Windows.Forms;

class 
Program
{
    static 
void Main(string[] args)
    {
        
// Set the initial date to today
        
DateTime currentDate DateTime.Now.Date;
        
// Set the interval to every other day
        
TimeSpan interval TimeSpan.FromDays(2);
        
// Set the warning message text
        
string warningMessage "This is a warning message.";
        
        while (
true)
        {
            
// Check if the current date is a warning day
            
if ((currentDate DateTime.Now.Date).TotalDays interval.TotalDays == 0)
            {
                
// Display the warning message in a popup dialog
                
MessageBox.Show(warningMessage"Warning"MessageBoxButtons.OKMessageBoxIcon.Warning);
            }
            
            
// Wait for 24 hours before checking again
            
System.Threading.Thread.Sleep(24 60 60 1000);
            
            
// Update the current date to the next day
            
currentDate currentDate.AddDays(1);
        }
    }


----
In this example, a while loop is used to continuously check whether the current date is a warning day. The DateTime.Now.Date property is used to get the current date without the time component. The warning day is determined by calculating the number of days between the current date and the initial date, and checking whether this number is a multiple of the interval. If the current date is a warning day, a popup dialog is displayed using the MessageBox.Show() method.

The loop waits for 24 hours before checking again using the Thread.Sleep() method. The current date is updated by adding one day to the previous date using the AddDays() method. This loop will continue to run indefinitely until the program is manually stopped.

Note that this code will only display warning messages when the program is running. If you want to display warnings even when the program is not running, you will need to use a different approach, such as scheduling a task or using a service.
---------------

Detta r otroligt nra professionell kod fr denna specifika lsning om vi bortser frn Main, while loopen och thread.sleep som endast kan ses som en strukturell generell insttning
__________________
Senast redigerad av carlydeveloper 2023-02-18 kl. 23:13.
Citera

Skapa ett konto eller logga in för att kommentera

Du måste vara medlem för att kunna kommentera

Skapa ett konto

Det är enkelt att registrera ett nytt konto

Bli medlem

Logga in

Har du redan ett konto? Logga in här

Logga in