teleren/devto huggingface dataset:
Personal experience learning web-development with CHATGPT
Tags: webdev, tutorial, beginners, productivity
Published: 2023-02-21 21:09:42

As a beginner or learner in web development, using ChatGPT can be beneficial in several ways. ChatGPT is an advanced language model that can help you in many aspects of web development, including:

Understanding complex concepts: ChatGPT can help you understand complex concepts related to web development. You can ask questions related to HTML, CSS, JavaScript, or any other programming language, and ChatGPT can provide you with clear and concise answers.

Finding solutions to problems: If you encounter any problems while developing a website, you can ask ChatGPT for a solution. ChatGPT can provide you with step-by-step instructions on how to solve the problem.

Learning new skills: ChatGPT can help you learn new skills related to web development. You can ask ChatGPT to recommend resources such as books, videos, or tutorials that can help you learn new skills.

Saving time: Using ChatGPT can help you save time. Instead of spending hours searching for answers on the internet, you can ask ChatGPT and get an instant answer.

Improving your coding skills: ChatGPT can help you improve your coding skills by providing you with feedback on your code. You can ask ChatGPT to review your code and suggest improvements.

In addition to these benefits, using ChatGPT can also help you stay up-to-date with the latest trends and technologies in web development. ChatGPT can provide you with information about new frameworks, libraries, and tools that can make your development process more efficient.
Master the Power of Azure OpenAI with Microsoft Learn: Unleash Your Jedi
Tags: microsoftcloud, openai, ai, azure
Published: 2023-02-21 21:06:10

Open AI and Microsoft are two of the most important companies in the technology world. Each has a focus on artificial intelligence and machine learning and have collaborated on numerous projects to advance this field.

Open AI was founded in 2015 by a group of investors and technologists, including Elon Musk and Sam Altman. Its goal is to develop and promote safe and beneficial artificial intelligence for humanity. The nonprofit organization has created some of the most advanced artificial intelligence models in the world, such as GPT-3 (Generative Pre-trained Transformer 3), a machine learning platform that can generate human-like text as if written by a person.

On the other hand, Microsoft is a leading technology company that focuses on creating software and hardware. Founded in 1975 by Bill Gates and Paul Allen, Microsoft is known for its Windows operating system, as well as for its office programs such as Word, Excel, and PowerPoint. In addition, Microsoft has invested in artificial intelligence and machine learning for years and has developed its own platforms and tools, such as Azure Machine Learning and Microsoft Cognitive Services.

Open AI and Microsoft began collaborating in 2016 when Microsoft invested $1 billion in the research company. Since then, Microsoft has started implementing GPT-3 in its solutions, such as Word, PowerPoint, Outlook, Power Apps, Power Automate, Teams, and most recently integrating it with Bing.

![AzureOpenAI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uo86lof060siv3lqnkug.png)
A few days ago, while I was starting my well-deserved vacation (_The cover photo features my daughters on our vacation_), Microsoft announced [the general availability of Azure OpenAI Service](bit.ly/OpenAIPiova). The Azure OpenAI Service provides access to OpenAI's powerful language models via the REST API, including GPT-3, Codex, and Embeddings model series. These models can be easily adapted to specific tasks, such as content generation, summarization, semantic search, and natural language to code translation. Users can access the service through REST APIs, the Python SDK, or the web-based interface in Azure OpenAI Studio.

- 
**I'm sharing the [link](bit.ly/AzureOpenAI-Training-MicrosoftLearn) so you can start exploring this world of Azure OpenAI.** 

- 
**Also, I'm sharing the [link ](bit.ly/azureopenAIDocsPiova)to Microsoft's official documentation.**

Undoubtedly, they have made significant advances in the field of artificial intelligence, and the collaboration between these companies will continue to drive the development and advancement of AI in the future.

Thank you for reading!
KLYNTAR Basics. Part 0: Architecture
Tags: web3, crypto, blockchain, cloud
Published: 2023-02-21 21:05:56

> **_Everything starts at the beginning_**

## **The fun begins…**

The heart of each system is architecture. With this article, we start probably the most interesting cycle of articles in our blog.

In the following sections & articles, you will learn about how KLYNTAR works, its components, architecture, workflows, and so on. We will try to give both a good general idea and dive into some details so that you can easily start studying further sections.

It is also worth warning that KLYNTAR may seem complicated to you initially, but in our world, everything works like that. Computers, economics, physics — all this is difficult to some extent, but only because there are great opportunities behind it.

If you have any difficulty understanding, do not hesitate to ask us questions. We also expect you to actively participate in the development of the project.😀😀😀

Read the article on our Medium blog. It's must-have )

{% embed https://klyntar.medium.com/klyntar-basics-part-0-architecture-%EF%B8%8F-fb948f89d73f %}
Restricting users to specific AWS region
Tags: aws, cloud, awscommunity, 100daysofcloud
Published: 2023-02-21 21:00:01

[52/100] #100DaysOfCloud Today, I created a Service Control policy to restrict users to specific regions.

Service control policies (SCPs) are a type of organization policy that you can use to manage permissions in your organization. SCPs offer central control over the maximum available permissions for all accounts in your organization. SCPs help you to ensure your accounts stay within your organization’s access control guidelines. SCPs are available only in an organization that has all features enabled. SCPs aren't available if your organization has enabled only the consolidated billing features. 

SCPs are similar to AWS Identity and Access Management (IAM) permission policies and use almost the same syntax. However, an SCP never grants permissions. Instead, SCPs are JSON policies that specify the maximum permissions for the affected accounts.

You can try do it by yourself by following the steps from the link below: [GitHub](https://github.com/aaditunni/100DaysOfCloud/blob/main/Journey/052/Readme.md)
What other teams did on Disaster Map in first 72 hours
Tags: opensource, engineering, programming, devops
Published: 2023-02-21 20:50:21

- An application was developed on the first day in the field of artificial intelligence that converts text from a screenshot and extracts address, phone, and name information from this text and saves it to a database. **EasyOCR** was used to convert text and the **OpenAI DaVinci model** was trained to extract the address. On the third day, a model training was started using this model on a tweet that meets their needs. This model would be able to distinguish their needs.
- The legal team tried to support "Açık Yazılım Ağı" by preparing necessary legal texts for the personal data to be processed during this process, informing team members voluntarily about the risks that may be encountered, **and providing legal advice.** This was necessary due to the nature of the work done in terms of personal data.
- Test teams channeled our human resources to certain projects and tasks according to needs and requirements and made people who volunteered to lead responsible for planning. Afterwards, they started testing and created high-level requirements by documenting them. **They detailed the errors in an Excel document, prioritized them, and moved them to GitHub, i.e. development teams.**
- Moderation teams quickly directed incoming people on the server to relevant teams and channels to contribute, improved role settings to enable each team to work faster and more stable. Additionally, they constantly monitored and cleared spam and harmful messages on the server. **Afterwards, they kept active communication with teams and solved communication issues such as informing and announcements.**
- As the Cloud & Infra & DevOps team, they preferred cloud solutions together with the urgency of the process. They **dockerized** the projects and **created CI&CD pipelines** for production deployment to cloud environments that would be **multi-cloud providers** and **technology-independent** to provide the best support to **1000-person development teams both horizontally and vertically scalable**. Thus, codes prepared independently by teams in terms of technology and human resources were deployed live on the relevant branches. They also resolved maintenance and zero downtime efforts by choosing serverless solutions for dependent databases, monitoring, cache, and streaming solutions in cloud environments. **All working systems were designed as serverless and HA (high available)**.
- With the realization of application ideas, social media teams started marketing and communication activities to reach more people. Different sub-working groups were formed and organized quickly, from the design of the Açık Yazılım Ağı corporate identity to the preparation of content for social media accounts, collaboration with NGOs, and communication with influencers. Communication regarding applications and the community was done by these teams.
JavaScript Tutorial Series: Looping through Arrays and Objects
Published: 2023-02-21 20:17:12

In previous articles we discussed objects, loops and arrays and how to use them. In this post we'll explore how to use loops with objects and arrays.

If you need a refresher about arrays objects and loops, check out my articles linked below.

- [JavaScript Tutorial Series: Arrays](https://dev.to/fullstackjo/javascript-tutorial-series-arrays-4d1b)

- [JavaScript Tutorial Series: Objects](https://dev.to/fullstackjo/javascript-tutorial-series-objects-4ei2)

- [JavaScript Tutorial Series: Loops](https://dev.to/fullstackjo/javascript-tutorial-series-loops-h58)

## Loops & Arrays
As we already know, arrays are capable of storing multiple values in a single variable. The "for" loop can be used to iterate through an array. 

Let's look at an example.

```JavaScript
let animals = ["cat", "duck", "penguin"];

for (let i = 0; i < animals.length; i++) {
  console.log(animals[i]);
}
```

Output

```JavaScript
"cat"
"duck"
"penguin"
```

Let's break down this block of code.

The "for" loop in this example iterates through each element of the array by iterating over the three values that make up the "animals" array. 

The "for" loop has three parts: initialization (set `i` = 0), condition (`i` animals.length), and updating the initial value by incrementing it (`i++`). 
The variable `i` refers to the index of the current element in the array in "for" loops which is used to iterate over arrays. 
The loop will continue as long as the condition is true. Within the loop, we use the console.log() function to print each element of the array.

## For ... in loop
The `for ... in` loop allows you to iterate over an object's properties. It works by looping through all of an object's properties while carrying out the same set of instructions for each property.

Let's look at an example. 

```JavaScript
let Person = {firstName: "Jane", lastName: "Doe", age: 20};

for (let key in Person) {
  console.log(key + ": " + Person[key]);
}
```

Output

```JavaScript
"firstName: Jane"
"lastName: Doe"
"age: 20"
```
Let's break down this example.

- `for (let key in myObject)` introduces the loop by creating a new variable called "key" and initializing it to the first key in the object. We can tell that we are iterating through the keys in an object by using the keyword `in`.

- `console.log(key + ": " + myObject[key]);` runs for each key found in the object. The current key and its associated value are printed to the console using the console.log() function. The bracket notation (e.g., myObject[key]) is used to access the value of the current key.

- The same set of instructions are carried out by the loop repeatedly for each key in the object as it iterates over each key in turn.
Social links for customers in Prestashop
Tags: webdev, prestashop, php, ecommerce
Published: 2023-02-21 20:13:21

## PrestaShop 1.7 Module

This is a module for PrestaShop, an open-source eCommerce platform, that adds extra fields to the customer registration and account pages. The module adds fields for social media account information and preferred communication method.

The module is licensed under the Academic Free License (AFL 3.0) and was developed by vallka. The module's version is 1.0.0, and it is compatible with PrestaShop 1.7 and above.

The module installs a new database table named extra_customer_fields to store the additional information. The module also registers several hooks to integrate with the customer registration and account pages. The additionalCustomerFormFields hook adds the extra fields to the customer registration form. The validateCustomerFormFields hook validates the extra fields before saving them to the database. The actionObjectCustomerUpdateAfter and actionObjectCustomerAddAfter hooks update and add the extra fields to the database when a customer is updated or added. Finally, the actionCustomerFormBuilderModifier hook modifies the customer account form to include the extra fields.

The module has two methods for reading and writing the extra field values: readModuleValues and writeModuleValues. The readModuleValues method reads the extra field values from the database for a given customer ID, and the writeModuleValues method writes the extra field values to the database for a given customer ID.

Here is the link to [GitHub](https://github.com/vallka/extracustomerfields) - feel free to use!
Linux's Most Important Logs
Published: 2023-02-21 19:10:58

## Most directories may be categorized into one of four categories:

1. Application Logs
2. Event Logs
3. Service Logs
4. System Logs

**-  /var/log/syslog or /var/log/messages:**

general alerts and data concerning the system. In essence, this log records all system-wide activity information. Note that activity for Ubuntu and other Debian-based systems is saved in syslog, but activity for Redhat-based systems, such as CentOS or Rhel, is stored in messages.

**- /var/log/syslog or /var/log/messages:**

general messages, as well as system-related information. Essentially, this log stores all activity data across the global system. Note that activity for Redhat-based systems, such as CentOS or Rhel, is stored in messages, while activity for Ubuntu and other Debian-based systems is stored in Syslog.

**- /var/log/auth.log or /var/log/secure:**

store authentication logs, including both successful and failed logins and authentication methods. Again, the system type dictates where authentication logs are stored; Debian/Ubuntu information is stored in /var/log/auth.log, while Red Hat and CentrOS information is stored in /var/log/secure.

**- /var/log/boot.log:**

a repository of all information related to booting and any messages logged during startup.

**- /var/log/maillog or var/log/mail.log:**

stores all logs related to mail servers, useful when you need information about postfix, smtpd, or any email-related services running on your server.

**- /var/log/kern:**

stores kernel logs and warning data. This log is valuable for troubleshooting custom kernels as well.

**- /var/log/dmesg:**

messages relating to device drivers. The command "dmesg" can be used to view messages in this file.

**- /var/log/faillog:**

This file contains information on all failed login attempts, which is useful for gaining insights on attempted security breaches, such as those attempting to hack login credentials as well as brute-force attacks.

**- /var/log/cron:**

stores all Crond-related messages (cron jobs), such as when the cron daemon initiated a job, related failure messages, etc.

**- /var/log/yum.log:**

if you install packages using the yum command, this log stores all related information, which can be useful in determining whether a package and all components were correctly installed.

**- /var/log/httpd/:**

a directory containing error_log and access_log files of the Apache httpd daemon. The error_log contains all errors encountered by httpd. These errors include memory issues and other system-related errors. access_log contains a record of all requests received over HTTP.

**- /var/log/mysqld.log or /var/log/mysql.log:**

MySQL log file that logs all debug, failure and success messages.
🚀 Boost Your Frontend Development with Mock APIs 🎉
Tags: mockapi, productivity, frontend, mockserver
Published: 2023-02-21 19:39:50

When we're developing the frontend of an application, it's ideal to have a fully functional API. However, in the real world, this is not always the case, especially if we're working on a project that's constantly changing. In such cases, using a mock API allows us to work independently and without being tied to the backend's development speed.

###🔍 How can this improve your performance?
Using a mock API enables us to test cases quickly and easily that are not the happy path, such as error responses, handling different status codes, and slow response times.

###💸 Save on resources
Using a mock API is fast and has a very low cost, or no cost at all. We don't need to have a typical development server to work on the frontend.

###👨‍💻 Improve code quality
With a mock API, we can simulate scenarios that might be difficult to recreate with the real API. This allows us to detect and fix problems in the frontend code before they cause issues in production. Additionally, using a mock API allows us to refactor code more easily and improve its quality.

###🛠️ What do I use?
As a professional, I use [Mockfly](https://mockfly.dev/), which allows for collaborative projects and saves time by not having to mock every response individually. Moreover, it has a Chrome extension that enables us to view website requests, filter and select those relevant to our project, and makes it easier to keep the mock API synchronized with changes made in production or to mock a project in a matter of minutes with real data. It also allows the use of faker in the response, making it easier to visualize real data and how the implemented design behaves.

For personal projects, instead of using the typical Pokemon or Star Wars API, we can create our own with relevant data to our project in no time.

---

###🔧 Example of use
_Creating a project_
![Create project](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r4cjqua1poqdrx734r8t.png)

---

_Empty project_
![Project created - mockfly ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ycem415khoq0wpo7jgyj.png)

---

_Using the chrome extension_
![Chrome extension - mockfly](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rqvx1d5bj63zzc4t1rq.png)

---

_Copying the private key to synchronise with the project_
![Copy private key - mockfly](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xboyxjcc0cy96mmeikjy.png)

---

_Sending a request to the project_
![Sending data to project - mockfly](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i20p0mzt1lbcxdz2t1ng.png)

---

_New request created with chrome extension_
![Project with mock data - mockfly](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jigg6zjeze3kv9imkmeu.png)

---

###🎓 Conclusion
Using mock APIs in frontend development can greatly improve our productivity, save resources, and improve code quality. Give it a try and see the results! 🚀
Heey Devs
Tags: introduction, blog, posts, devs
Published: 2023-02-21 19:32:19

Boas vindas aos leitores,

Como alunos de tecnologia e trabalhadores da área assim como nossos pseudônimos estamos aqui para desenvolver um blog e criar um comunidade de programadores mais unidas e sanar desde de dúvidas comuns com posts focados para iniciantes a conteúdos mais underground na programação, conceitos para a comunidade debater e acontecimentos que rolaram conosco sendo muitos deles engraçados e inacreditáveis  somos uma dupla de autores e neste momento optamos por utilizar o pseudônimo de  Estagiário mal remunerado e Suporte cansado para não causarmos problemas aos envolvidos por expor algumas histórias e conhecimentos de extremo valor então saibam aproveitar. Nossas publicações são lançadas às terças, quintas e sábados, sempre por volta das 17 horas para você leitor sempre terminar o expediente de trabalho bem informado com conteúdo fresquinho, então já marca no calendário para não deixar essa passar.

Se está se perguntando quem somos nós aqui vai um resuminho abaixo para nos conhecerem.

O Suporte Cansado é senhor do conhecimento underground de programação e um dos maiores defensores do PHP Seus assuntos favoritos são arquitetura de software, design de linguagens de programação, front-end, programação funcional e programação orientada a objetos. Este é responsável pelos posts de quinta-feira sobre conhecimento técnico avançado, conhecimentos mais obscuros da internet como a origem de vários conceitos, icebergs, e tutoriais.  

O Estagiário mal remunerado é um dos melhores analistas que existe, falastrão, um gestor ótimo de equipes, negociador nato e na hora de programar ele foge do código  mais do que diabo foge da cruz ( Não que ele não saiba programar ele só prefere ser feliz, ao menos é o que ele diz), ele está responsável pelos posts de iniciantes sempre enviados às terças-feiras com listas e conteúdos pra você que tem interesse em conhecer mais de tecnologia ou ficar mais por dentro dos novos assuntos.

O Dev Tiltado é o senhor mau humor, aquele que te ajuda mas está sempre com a cara amarrada, sendo grosso e direto, maior defensor de Java que já existiu, ama orientação a objetos, odeia coisas feita de maneira errada ou com preguiça demais (vulgo Gambiarras). Ele está responsável pelos posts de livres de sábado.

E ambos juntam suas ideias e pontos de vistas únicos para criar os posts de sábado, sempre testando conteúdos novos, gerando embates na comunidade, textos de relatos absurdos e um pouco de comédia com conhecimento de tecnologia para alegrar seu fim de semana.

Esperamos que gostem, acompanhem o conteúdo e que nossos posts possam os entreter, além, é claro, de agregar mais conhecimento no seu dia a dia.

// Ass: O Estagiário mal Remunerado, o Suporte Cansado e o Dev Tiltado.