teleren/devto huggingface dataset:
'Goodbye homework!'Elon Musk claims AI programme ChatGPT could allow students to CHEAT thanks to its eerily human-like responses
Tags: ai, chatgpt, openai, programming
Published: 2023-01-06 19:59:25

Could artificial intelligence (AI) put an end to homework forever? Elon Musk certainly thinks so.

That's because the new AI chatbot ChatGPT is reportedly able to quickly produce unique assignments in a style of writing dictated by the user.

As a result, students across the world could use it to do their homework for them without the teacher ever knowing.

The billionaire boss tweeted 'It's a new world. Goodbye homework!' in response to an article about the New York City Department of Education blocking ChatGPT on school devices.
You can't insult me by saying biryani is a tiffin.When AI software ChatGPT apologised for challenging Satya Nadella intelligence
Tags: ai, microsoft, chatgpt, openai
Published: 2023-01-06 19:49:05

How often does your Siri or Alexa apologise to you? While consciousness in robots is only prevalent in science fiction, scientists believe constant development in machine learning will make it a dream come true.

Tech billionaire Satya Nadella's recent conversation with an artificial intelligence (AI) software proves the future ahead looks bright.

Tech billionaire Satya Nadella's recent conversation with an artificial intelligence (AI) software proves the future ahead looks bright.

During his four-day India visit, the Microsoft Executive Chairman and CEO had an interesting interaction with an AI at the Future Ready Technology Summit in Bengaluru on Wednesday.

The 55-year-old tech boss introduced the city crowd to some light-hearted conversations he had with ChatGPT, popular AI-enabled software developed by OpenAI, a company backed by Microsoft.

When he asked ChatGPT to rank the most popular South Indian tiffin options. It replied with the usual suspects such as idli, dosa, vada, uttapam and Pongal. The list also included India's favourite dish - biryani.

Even though Nadella loves biryani, he immediately prompted the chat robot - "I don't think so" - with its flawed option

The tech billionaire said that the software apologised. Then, he politely said, "The last time I checked, it (biryani) was not a South India tiffin. As a Hyderabadi, you (ChatGPT) cannot insult my intelligence by saying biryani is a tiffin."

Nadella didn't stop there. He asked ChatGPT to create a play between idli and dosa where the two dishes argue about who was a better tiffin option. To add literature to the batter, the 'Hit Refresh' author even prompted the software to turn it into a Shakespearean play. "It brought out the best of Shakespeare in South Indian tiffin-genre," he added.


At the event, Nadella also gave a presentation about the cutting-edge AI and cloud innovations that are taking place in India. During his India tour, Nadella thanked Prime Minister Narendra Modi and lauded the government’s Digital India push.

In 2019, Microsoft invested in OpenAI with a funding of $1 billion. The two also formed a multi-year partnership to develop artificial intelligence supercomputing technologies on Microsoft's Azure cloud computing service.
Images & assets in Nuxt 3
Tags: webdev, javascript, beginners, tutorial
Published: 2023-01-06 19:06:26

{% embed https://www.youtube.com/watch?v=tWQ2LWplmDc %}

In Nuxt.js, the assets directory is a folder for storing assets such as fonts, images, or other files that you want to be processed by webpack. These files will be processed by webpack and made available to be used in your application.

The public directory, on the other hand, is meant to be a place for storing static files that should not be processed by webpack. These files will be directly copied into the output directory without being processed. This can be useful for storing files such as favicons or images that you want to include in your application, but don't want to go through the asset pipeline.

One important thing to note is that the public directory has a higher priority when it comes to file resolution. This means that if a file with the same name exists in both the public and assets directories, the file in the public directory will be used.

In terms of how these files are used in your Nuxt.js application, both the assets and public directories can be accessed through the ~ alias. For example, if you have an image file located at assets/images/my-image.png, you can reference it in your application like this: <img src="~/assets/images/my-image.png" />. Similarly, if you have a file located at public/my-file.txt, you can reference it like this: <a href="~/my-file.txt">Download my file</a>.

In summary, the main difference between the assets and public directories in Nuxt.js is that the assets directory is meant for files that should be processed by webpack, while the public directory is meant for static files that should not be processed and should just be copied as-is into the output directory.

Guillaume Duhan
Scraping product detail page into a separeted process is not optime for me
Tags: help, symfony
Published: 2023-01-06 19:05:13

Hi, I'm using symfony/panther to scrape the entire catalog of an online store where product cards are displayed at a rate of 30 per page. The detail is that for each product I must also scrap the product details page to obtain other data that is not present on the catalog page. My initial idea was to scrap each one of the catalog pages, store the present products and send for each one of them to a message queue (with symfony messenger) the id of the product stored in the local database and the url of the product detail page, to process the detail page from a separate worker and update the record in my local database.
I currently have more than 20,000 products registered in the local database and the same number of messages stored in the message queue ready to process (one message for each product). My problem is that by analyzing a bit I think that in this way I would incur a waste of time when processing each of the messages because a panther client would have to be initialized (with the chrome driver) for each message.
What other option can I have?
1. Do take a screenshot of your entire screen
Tags: productivity, it, career
Published: 2023-01-06 19:02:58

## 52 dos and don’ts on how to get things done by the IT department

> From more than 10 years of experience working in and with IT, I've created a list of 52 dos and don’ts that can make your work with IT much more productive and enjoyable 🥰
> These dos and don’ts are not about managing an IT department, but about how you can get things done by the IT department.
> **A new dos and don’ts every week in 2023 🎉🥳**

## Week 1. Do take a screenshot of your entire screen
When you are creating a bug report, do take a screenshot of your entire screen.

I know it from myself, when I want to show an error, I take a screenshot of the error, and not the whole screen.

However, the whole screen offers so many pieces of information that will help the developer fix your issue.

### Important information that are given when taking a screenshot of the entire screen:

- Settings in the program you are in
- The operation system
- Your browser
- Time and date
- Other programs you might have open at the same time

```
Originally posted on: https://datamaverick.co/blog/52-dos-and-donts-on-how-to-get-things-done-by-the-it-department/1-do-take-a-screenshot-of-your-entire-screen
```
Get started on the command line with Oh-My-Zsh
Tags: beginners, tutorial, linux
Published: 2023-01-06 18:20:37

{% embed https://youtu.be/qwl7JePZb38 %}

This is my first tutorial video Raw & uncut! From a fresh install of Ubuntu 22.04 I show you how I setup my system for Full Stack Web Development.

# Beginner Ubuntu Setup for Full-Stack Development

Ahnii! I'm Russell Jones. I'm going to show you how to setup Ubuntu to get started developing what you want, on any stack you want. 

This is the combination of software I've come to use day-to-day over 22 years in the field. I'm open to suggestions on alternatives. 

Inspiration for series by roadmap.sh

Consider this the initial commit. First hop.

## Who Are You

You are a budding developer new to Linux.

## Requirements

* Internet connection
* Ubuntu 22.04 LTS installed & updated

## Install software

### oh-my-zsh
Useful Maven commands
Tags: webdev, devops, testing, java
Published: 2023-01-06 18:09:36

## Important Maven commands.

• **mvn clean** – This command is used to clean the project’s target directory.

• **mvn compile** – This command is used to compile the source code of the project.

• **mvn package** – This command is used to package the project into a JAR file.

• **mvn install** – This command is used to install the package into the local repository.

• **mvn deploy** – This command is used to deploy the package to a remote repository.

• **mvn test** – This command is used to run the unit tests of the project.

• **mvn verify** – This command is used to run the integration tests of the project.

• **mvn site** – This command is used to generate the project’s site documentation.

• **mvn help:effective-pom** – This command is used to display the effective POM of the project.

• **mvn help:describe** – This command is used to display the details of a mojo.

• **mvn archetype:generate** – This command is used to generate a project from an archetype.

• **mvn help:active-profiles** – This command is used to list the active profiles in the project.

• **mvn dependency:tree** – This command is used to display the project's dependency tree.

• **mvn help:plugin** – This command is used to display information about a specific plugin.

• **mvn help:system** – This command is used to display information about the system.

• **mvn help:effective-settings** – This command is used to display the effective settings of the project.

• **mvn help:describe** – This command is used to display information about a specific mojo.

• **mvn clean test** – This command is used to clean the project and then run the unit tests.

• **mvn site:run** – This command is used to generate the project’s site documentation and launch a web server to view it.

• **mvn help:all-profiles** – This command is used to list all the profiles in the project.

• **mvn dependency:analyze** – This command is used to analyze the project’s dependencies.

• **mvn help:system-properties** – This command is used to display system properties that can be used in the project.

• **mvn help:evaluate** – This command is used to evaluate an expression in the project’s POM.

• **mvn help:descriptor** – This command is used to display the project descriptor.

• **mvn help:active-profiles** – This command is used to list the active profiles in the project.

• **mvn help:plugin-prefix** – This command is used to display the list of available plugin prefixes.
Day 5/#100DaysOfCode
Tags: 100daysofcode, beginners
Published: 2023-01-06 18:06:23

Day 5 | 100

On day five I continued to study design/UI and wrote some very ugly and very horrid looking webpages! They will improve as I do, but they were horrible and as such I must continue onward and keep studying design principles, Scrimba has a design course, which I will take as soon as possible! 

I continued to also think on ideas and play a bit with Scratch for the Week 0 assignment for CS50! It did not go well... :( 

And the **big thing** -- I dipped by toes in React again, more this time, I understand what JSX is and why its a thing! Very exciting. 

To day 6 ...
Gateway to API greatness: the benefits of an API Gateway
Tags: api, awsapigateway, backend, softwareengineering
Published: 2023-01-07 09:24:34

---
title: Gateway to API greatness: the benefits of an API Gateway
published: true
date: 2023-01-06 18:03:29 UTC
tags: API,AWSAPIGateway,Backend,SoftwareEngineering
canonical_url: https://techdevblog.io/gateway-to-api-greatness-the-benefits-of-an-api-gateway/
---

## Definition
 ![Gateway to API greatness: the benefits of an API Gateway](https://techdevblog.io/content/images/2023/01/image_0-8.png)

An API Gateway is a software layer that sits between your back-end services and your API clients. Its job is to act as a reverse proxy, routing requests from clients to the appropriate backend service and then returning the service's response back to the client.

## Benefits

One of the main benefits of using an API Gateway is that it can abstract away the underlying complexities of your back-end services. This can make it easier for developers to build and consume APIs, since they don't need to worry about the specifics of each service.

API Gateways also provide a number of other benefits, including:

- Load balancing: An API Gateway can distribute incoming requests across multiple back-end servers, helping to improve the scalability and reliability of your API.
- Caching: An API Gateway can cache the responses from your back-end services, reducing the load on those services and improving the performance of your API.
- Security: An API Gateway can enforce security measures such as authentication and rate limiting, helping to protect your back-end services from malicious attacks.
- Monitoring: An API Gateway can provide detailed logs and metrics on the traffic flowing through it, making it easier to monitor the health and performance of your API.

## Vendors & products

There are many API Gateway products and vendors to choose from, each with their own unique set of features and pricing plans. Here are a few popular options:

- [AWS API Gateway](https://aws.amazon.com/api-gateway/): This is a fully managed service from Amazon Web Services that makes it easy to create, publish, maintain, and secure APIs.
- [Kong](https://konghq.com/products/api-gateway-platform): This is an open-source API Gateway built on top of NGINX, with a number of plugins available for extending its functionality.
- [Apigee](https://cloud.google.com/apigee): This is a cloud-based API Gateway from Google that provides a range of features for designing, securing, and scaling APIs.
- [Tyk](https://tyk.io): This is another open-source API Gateway that offers a number of features for managing and monitoring APIs, including support for microservices architectures.

## Conclusion

Whether you're building a new API or looking to improve the performance of an existing one, an API Gateway can be a valuable tool in your toolkit. So why not give one a try today and see how it can benefit your API!

<!--kg-card-end: markdown-->
Infrastructure as Code Security [Security Zines]
Tags: infrastructureascode, cloud, security, beginners
Published: 2023-01-06 17:53:55

> [With great power comes great responsibility](https://en.wikipedia.org/wiki/With_great_power_comes_great_responsibility) Uncle Ben

This famous phrase is just as relevant in the realm of technology as it is in superhero comics. And when it comes to the power of infrastructure-as-code (IaC), the responsibility to secure it is particularly great.

In his latest [Security Zines](https://securityzines.com/), Rohit Sehgal illustrates where and how things could go wrong if no guardrails are correctly set up to protect the cloud infrastructure of a company. Misconfigured systems and resources are the leading cause of security failures.

[![](https://blog.gitguardian.com/content/images/2022/12/GitGuardian_IaCSecurity_SecurityZines.png)](https://www.gitguardian.com/files/infrastructure-as-code-security-zine)

As a refresher, IaC allows organizations to define and manage their infrastructure using code, rather than manually configuring resources. This can greatly improve efficiency, automation, and consistency in managing infrastructure. However, it also introduces new security risks if not properly implemented and managed.

As with any powerful technology, it's crucial to approach IaC with a strong understanding of its potential risks and how to mitigate them.

## Learn how to detect Terraform misconfigurations with ggshield

The GitGuardian's CLI, [ggshield](https://github.com/GitGuardian/ggshield), was recently updated to support IaC misconfigurations scanning: it's as easy as  `ggshield iac scan path_to_iac_main_folder`.

To get started with IaC Scanning, you only need a GitGuardian account! This feature is free for all GitGuardian customers at the moment.

Get started with this new feature here:

[Introducing Infrastructure as Code Security Scanning](https://blog.gitguardian.com/introducing-infrastructure-as-code-security/)

Or learn the best practices for infrastructure-as-code here:

[Infrastructure as Code Security: Security Tools](https://blog.gitguardian.com/security-in-infrastructure-as-code-with-terraform/)

[9 Extraordinary Terraform Best Practices That Will Rock Your Infrastructure](https://blog.gitguardian.com/9-extraordinary-terraform-best-practices/)

Finally,  check out our [public documentation](https://docs.gitguardian.com/ggshield-docs/reference/iac/scan) for more information on IaC security scanning capabilities.

🙌 Security Zines is a project led by Rohit Sehgal, Staff Security Engineer at Ethoslife. Check out his work at [securityzines.com/#comics](https://securityzines.com/#comics) and give him a follow on Twitter [@sec\_r0](https://twitter.com/sec_r0) to see what he comes up with next!
Deployment in Kubernetes
Tags: tutorial, kubernetes, devops, beginners
Published: 2023-01-06 17:49:26

**What is Deployment in Kubernetes?**
Deployment basically is a higher level Kubernetes object which is used to manage POD's and their version. 

**Creating a deployment**
There are basically two methods to create a deployment: 
1. Imperative
2. Declarative
We are going to learn about Declarative method.
Attached below is the snippet for creating a deployment in k8s.

```
apiVersion: apps/v1
kind: Deployment
metadata:
  name: <Name Of Deployment that you want to assign>
  labels: <Labels that you want to attach with deployment>
spec:
  replicas: <Defines the total number of pods expected to run>
  selector: <Selects the pods to control on the basis of 
             selector.Matchlabel is the mostly used type>
    matchLabels:
      <labelkey>: <labelvalue>
  template: <Template is basically a defined structure for 
             containers running inside the pod>
    metadata:
      labels: <if needed>
      name: <if needed>
    spec:
      containers: <Values assigned is in the form of list>
        - name: <Name of container that you want to give>
          image: <Image of container>
          ports: <port num. on which its expected to listen
                  This value is also given in form of list>
            - containerPort:    
```
So what is happening above? 
We have created an kubernetes object whose kind is deployment. Name of this deployment can be defined at .metadata.name and labels can be attached to this deployment at .metadata.labels .
Once the deployment is created, it generates a replicaset (rs) which is responsible to create the declared number of pods. Now, after defining replicas, we have declared selectors. So, what's the use of selector?   
A selector is used to basically select the pods that needs to be controlled via deployment which we are creating. Now the selection of pods is done on the basis of labels i.e. labels mentioned in matchlabels and that .metadata.label should be same, else it might can be cause of misbehavior or Error.
.spec.template is supposed to be a defined structure for the pod following which the pod('s) will spin up. 
.spec.template.spec defines the container/'s . Value if container is given in the form of list.

How to run this file?
```
kubectl apply -f deployment.yml      
```
How to see deployments?
```
kubectl get deployments
```
How to delete a specific deployment?
```
kubectl delete deployment <name_of_deployment>
```
Being a Developer Advocate: Week 16
Tags: devrel, learninpublic
Published: 2023-01-06 17:44:26

Happy new year to everyone!

I started the new year with a deep dive into DevRel-Metrics. If you want to check out all the sources I used, check out the links at the end of the post.

## DevRel Metrics - North Stars and Keystones
DevRel metrics are the thing everybody struggles with in our profession. One part of the problem is, that not every company is the same. What is an accepted metric at one place might not be in another company!

So to start with I set myself the goal to get a solid grip for the basics and use the things that I think will help me to show value and see which initiatives drive the most impact.

### North Star / Keystone
Other people can explain it better than me ;-)

Sean Falconer defines it as a single measurement predictive of your company’s or product’s long-term success. And it should somehow map to the overall company goals.

Tera Viago says that a North Star Metric is your company metric. And “In the end it is all about money and customer satisfaction”!

So my goal was to tie all my metrics to the company metrics _somehow_. This basically means you should try to attach a monetary value to them. I know, I know we DevRel do not want to do this. But you have to measure something management understands and if anybody can communicate to many different audiences, we are the ones!

## What Should we Measure Anyway
After research was done (took me 20 hours) I settled on the Keystone Framework from Kim Maida. It resonated the most with me.

Basically you have four areas you measure:

* Reach
* Awareness
* Engagement
* DevRel Qualified Leads

I added two more categories:

* Internal Impact (For DX Audits and Product Feedback)
* Direct Impact (When DevRel Content directly leads to an improvement in the North Star metric)

I am in the process of writing a lengthy blog post about it. In there will also be my thinking on how OKRs fit with all of this. Also your company stage plays a role in what is important to measure.

## Where to Measure?
With all the metrics ready to be measured I had to find out where to measure them.

Unfortunately there seems to be no tool, that captures all the metrics. So for now I have to check three tools to get everything :-/

But meanwhile I got to play around with [Orbit](https://orbit.love/). It is a community growth platform. It already fell in love with it as it gives you so much information about your community out of the box.

## Links
* Sean Falconer: https://thefalc.com/2020/12/devrel-metrics-and-why-they-matter/
* Tera Viago: https://www.youtube.com/watch?
v=KXGXfbQfrrI&ab_channel=DevRel
* Measuring DevRel by swix: https://www.swyx.io/measuring-devrel
* DevRel Qualified Leads: https://www.marythengvall.com/blog/2019/12/14/devrel-qualified-leads-repurposing-a-common-business-metrics-to-prove-value
* Internal Impact: https://theworst.dev/developer-advocates-guide-to-addressing-product-friction
* https://theworst.dev/developer-advocates-guide-to-metrics-and-reporting
* The Keystone Framework: https://maida.kim/how-to-measure-the-value-of-developer-relations