teleren/devto huggingface dataset:
Why I Built Parquet Data
Published: 2023-07-01 08:57:23

Parquet is my favourite format for storing tabular data.

Parquet compresses well, it has a strong schema, and it's efficient to analyze. These are all things that CSV, the defacto standard for storing tabular data, lacks.

For all of the benefits of Parquet, there are some clear downsides. 

Parquet is a binary format. To see inside a Parquet file you need to either write some code to parse it, or use a specialized [Parquet Viewer](https://www.parquetdata.com/view). 

Without a Parquet Viewer, the easiest way to look inside a Parquet file is to [convert to CSV](https://www.parquetdata.com/convert/parquet/csv) and then open in a regular text editor or [Excel](https://www.parquetdata.com/convert/parquet/excel). 

CSV files are interoperable, they are understood by many kinds of software, but they are harder to analyse than Parquet files. Plus many text editors struggle to load a CSV file bigger than 20MB. It would be great to keep data in Parquet format while doing analysis and debugging.

I built [Parquet Data](https://www.parquetdata.com/) because I love the Parquet format, but had trouble working with it. I made the [Parquet Viewer](https://www.parquetdata.com/view) and [converters](https://www.parquetdata.com/convert) to make it easier to debug some code that I was working on.
LitGrades - AI powered flashcards for students
Tags: webdev, ai, startup, showdev
Published: 2023-07-01 08:37:03

Over the past few months, I've been working on [LitGrades](https://litgrades.com/), an AI powered flashcard generator for students. Here's a brief on LitGrades, and my journey building it...

It was middle of April. My exams were around the corner, and I needed a new way of studying. 10 year old PPTs just weren't making the cut. At the same time, the tech world was exploding with news over just one topic: AI. That's when it clicked. I forgot all about my tests, and just started working on LitGrades. After a weekend of debugging and programming. I was ready to publish LitGrades.

LitGrades uses the OpenAI API to generate flashcards on any topic you can think of. It is offered completely free for everyone. Today, we have over 600+ flashcards and over 500+ users. We've also gotten over 72+ upvotes on Product Hunt since our launch in late April.

ProductHunt Link: [Click Here](https://www.producthunt.com/products/litgrades)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3oo77myqi0v4tsyn1u9k.png)

What are your thoughts on how AI is going to revolutonize the EdTech industry, and how can I improve LitGrades?
#LearnedToday: image of code snippets
Tags: learnedtoday, webdev, javascript, css
Published: 2023-07-01 08:12:00

How do I usually create images of codesnippets?

I use **Carbon** webapp!
1. Browse https://carbon.now.sh
2. Write or paste your code
3. Click the **Export** button

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8iab57tawxvccjutv7fy.png)
Pointzap – The Ultimate Solution for your Business Needs
Tags: webdev, pointzap, beginners
Published: 2023-07-01 07:54:00

In the rapidly evolving landscape of the digital economy, businesses are constantly seeking innovative solutions to attract and retain customers. Pointzap, a groundbreaking platform, has emerged as a game-changer in this regard. Its unique features which we provide to our customers helped  Pointzap in becoming number one with a sizeable margin over our competitors. 

One of the most significant challenges faced by businesses today is customer retention. With countless options available at the fingertips of consumers, loyalty has become a rare commodity. By integrating a complete loyalty program, businesses can now create personalized experiences that keep customers engaged and keen to return. This approach not only enables customer loyalty but also leads to increased revenue and sustainable growth.

Another key feature of Pointzap is its flexible currency conversion system. In today's globalized world, businesses operate across borders, dealing with customers from various countries. Pointzap recognizes this diversity and facilitates seamless transactions by supporting multiple currencies. Customers can easily convert their points or rewards into the cryptocurrency of their choosing, with fast exchange while enhancing user convenience.

Pointzap offers a 24/7 withdrawal facility, ensuring that customers have full control over their rewards and points. Traditional loyalty programs often impose restrictions and limitations on when and how customers can redeem their benefits. However, Pointzap empowers customers to withdraw their rewards at any time of their choosing. This freedom gives a sense of empowerment and trust to the customer and strengthens the bond between businesses and their customers.

Pointzap is revolutionizing customer retention by offering new and trending features and facilities. By prioritizing customer engagement and satisfaction, businesses can build strong and lasting relationships with Pointzap, customers can unlock the full potential of loyalty programs, enhancing revenue, and fostering growth. As the digital economy continues to evolve Pointzap will be the flagbearer for the future.
ChatGPT.js Powerful Client side JavaScript Library For ChatGPT
Tags: chatgpt, javascript, javascriptlibraries, webdev
Published: 2023-07-01 07:35:42

chatgpt.js is a powerful JavaScript library that allows for super easy interaction w/ the ChatGPT DOM.

- Feature-rich
- Object-oriented
- Easy-to-use
- Lightweight (yet optimally performant)

Click on button below to jump into the official website of This Powerful Library 


[Click Here](https://chatgpt.js.org/)
Dependency Injection
Tags: backend, csharp, dotnet, architecture
Published: 2023-07-01 07:30:44

Dependency injection may sound like a very complicated term but the actual meaning is as simple as passing an object/function to the dependent object/function.

In fact many of us might have used dependency injection without knowing what it is actually called.

Some examples of dependency injection are passing required objects as parameter to a constructor or function.

Why actually do we need dependency injection?

Quite often, when we develop something, one class might be dependent on other. It might look simple to handle this at this point of time. But as the design grows, we will end up with so many classes dependent on so many other classes. This increases so much coupling between classes. In future if you decide to change one class then you need to change some parts of code in dependent classes as well. This is time consuming process and can take lot of effort. So here instead of creating object every time we will inject the object whenever required. It decouples one class from other.

The other way Dependency injection is useful is, it allows developers to write unit test cases easily.
Eg: You can write unit tests to the functions by sending already created objects as parameter.

Moreover, It is used in IOC (Inversion of control) design principle which I will be posting about it later.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4tbpfizhxmdsyz4e1iad.jpg)
From where these token comes
Published: 2023-07-01 07:28:04

In the transfer2 function i remove the detect token from sender and my supply also fixed when i send token from this contract to other wallet using transfer2, receiver receive the token but amount not detect from contract, so i have question from where receiver receive the token.


//using this we can display the token details.
    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals,
        uint256 _initialSupply
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
        totalSupply = _initialSupply * 10uint256(decimals);   //* For example, if decimals equals 2, a balance of 505 tokens should
     //* be displayed to a user as 5.05 (505 / 10  2).
        balances[msg.sender] = totalSupply;
        emit Transfer(address(this), msg.sender, totalSupply);
    }
//this will show the balance of token in metamask when we import without it not visible balance.
//spelling must be same.
    function balanceOf(address account) public view returns(uint){
        return balances[account];
    }

    function transfer2(address to, uint256 amount) public returns (bool) {
        require(balances[msg.sender] >= amount,"you dont have anough balance");
        require(to != address(0), "invalid address");

        balances[to] += amount;
        emit Transfer(msg.sender, to, amount);
        return true;

    }
What are your favourite React libraries and tools?
Tags: javascript, react, webdev, programming
Published: 2023-07-01 07:05:20

Here are my top 10 favorite React libraries and tools These are just a few of the many React libraries and tools that currently i am using.

1. **[Material-UI](https://material-ui.com/)**: Material-UI is a popular React library that provides a suite of components that follow the Material Design guidelines. It's a great way to get started with React, as it provides a lot of pre-built components that you can use to build your application.

2. **[Redux](https://redux.js.org/)**: Redux is a state management library that helps you to manage the state of your React applications in a centralized way. It's a great way to keep your state organized and consistent, and it can help you to write more maintainable code.

3. **[React Router](https://reactrouter.com/)**: React Router is a routing library that allows you to create dynamic routes in your React applications. It's a great way to create complex applications with multiple pages, and it can help you to improve the user experience of your application.

4. **[Axios](https://axios-http.com/)**: Axios is a HTTP client library that makes it easy to make HTTP requests from your React applications. It's a great way to interact with APIs, and it can help you to fetch data from the server in a reliable way.

5. **[Lodash](https://lodash.com/)**: Lodash is a utility library that provides a number of functions that can be used to manipulate arrays, objects, and strings. It's a great way to add functionality to your React applications, and it can help you to write more concise and efficient code.

6. **[React Testing Library](https://testing-library.com/docs/react-testing-library/intro/)**: React Testing Library is a testing library that makes it easy to write unit tests for your React applications. It's a great way to ensure that your applications are working correctly, and it can help you to find bugs early in the development process.

7. **[Jest](https://jestjs.io/)**: Jest is a testing framework that makes it easy to write unit tests for your JavaScript applications. It's a great way to ensure that your applications are working correctly, and it can help you to find bugs early in the development process.

8. **[Storybook](https://storybook.js.org/)**: Storybook is a tool that helps you to develop and test your React components in isolation. It's a great way to see how your components look and behave, and it can help you to find bugs in your components early in the development process.

9. **[Webpack](https://webpack.js.org/)**: Webpack is a bundler that helps you to package your React applications for production. It's a great way to optimize your applications for performance, and it can help you to minify and bundle your JavaScript code.

10. **[Create React App](https://create-react-app.dev/)**: Create React App is a CLI tool that helps you to create React applications. It's a great way to get started with React, as it provides a lot of boilerplate code that you can use to build your application.


Comment your favourite below :).
Happy coding :)
Unplugging to Recharge: Have You Tried a Digital Detox Day?
Tags: codenewbie, beginners, discuss, watercooler
Published: 2023-07-01 07:00:00

It's easy to get caught up in (addicted to?) the constant flow of digital information. But have you ever taken a Digital Detox Day, where you consciously disconnect from technology? For those who havem share your experiences! How does it feel to step away from screens and notifications for a day? Does it provide a sense of rejuvenation, mental clarity, or a chance to focus on other activities? Share your insights, tips, and any positive impacts that a digital detox day has had on your life. 

Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more discussions and online camaraderie!

*{% embed* https://dev.to/codenewbieteam *%}*
What's the Best Name for a Coding-inspired Superhero?
Tags: discuss, watercooler
Published: 2023-07-01 07:00:00

If a superhero emerged from the world of coding, what name would best represent their coding prowess and tech-savvy abilities? 

Share your most epic, clever, or hilarious superhero name for our coding-inspired champion!

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
attach certificates to your domain on AWS
Tags: aws, cloudcomputing
Published: 2023-07-01 06:26:49

To attach SSL/TLS certificates to your domain on AWS, you can follow these general steps:

Obtain a valid SSL/TLS certificate: You can obtain a certificate from a trusted certificate authority (CA) or use AWS Certificate Manager (ACM) to provision a free SSL/TLS certificate.

Open the AWS Management Console and navigate to the AWS Certificate Manager (ACM) service.

Click on "Import a certificate" if you have a certificate from a third-party CA or choose "Request a certificate" if you want to provision a certificate using ACM.

If you choose to import a certificate, provide the certificate, private key, and any intermediate certificates during the import process.

If you choose to request a certificate, ACM will guide you through the process of generating a certificate request (CSR) or validating your domain ownership.

Once the certificate is imported or issued, navigate to the AWS service that is hosting your domain. For example:

For Amazon EC2: Go to the EC2 service and select the appropriate EC2 instance or load balancer.
For Amazon CloudFront: Go to the CloudFront service and select the distribution associated with your domain.
For Elastic Load Balancer (ELB): Go to the EC2 service and select your ELB.
Configure the SSL/TLS certificate settings for your service. The exact steps will vary depending on the service you are using, but generally, you need to:

Locate the "Listeners" or "HTTPS" settings section.
Specify the port and protocol for HTTPS.
Select the SSL/TLS certificate from the dropdown or specify the Amazon Resource Name (ARN) of the certificate.
Save the configuration changes.

Once the changes are saved, your domain should be secured with the SSL/TLS certificate you attached. Keep in mind that the specific steps and terminology may vary depending on the AWS service you are using, so consult the official AWS documentation or the service-specific documentation for more detailed instructions
MJGS Newsletter - Offline in a Digital Asset Economy (Issue #121)
Tags: javascript, tech, webdev, discuss
Published: 2023-07-01 05:58:21

---
title: MJGS Newsletter - Offline in a Digital Asset Economy (Issue #121)
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

Offline in a Digital Asset Economy (Issue #121)

It’s full steam ahead with digital asset economies, crypto communities, the future of re-staking and society. It’s wonderful. But also if you are a web developer, good luck when you are offline dude.

https://markjgsmith.substack.com/p/mark-smiths-newsletter-01-07-2023

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
Como dividir inteiros no C#?
Tags: csharp, programming, beginners
Published: 2023-07-01 00:00:01

Pergunta básica que recebo sempre que eu vou explicar operadores matemáticos em C#, como fazer para dividir números inteiros? Isso pois mesmo ao dividir 5 por 2 vai resultar em 2 e não 2.5, mesmo que a variável seja *double.*

```csharp
int numero = 5;
int divisor = 2;
decimal resultado = numero / divisor; 

Console.WriteLine("O resultado é: " + resultado);
// O resultado é: 2
// O correto seria o resultado ser 2.5
```

Por algum motivo bizarro o C# não faz a conta direito se tiver um número inteiro nela. Portanto você precsia converter estes números para decimal para conseguir fazer a conta.

Então poderia fazer algo como `decimal.Parse(numero) / decimal.Parse(divisor)`. Outra maneira é fazer da seguinte forma:`decimal resultado = Decimal.Divide(numero, divisor);`

Existe também o `Double.Divide()` e o `double.parse()` caso você não esteja utilizando o tipo `decimal`.

Essa função `.Divide()` vai basicamente fazer o seguinte: `decimal.Parse(a) + decimal.Parse(b)` que é converter cada item para decimal para então te trazer um valor com casas decimais.
What is API?
Tags: beginners, webdev, testing, css
Published: 2023-07-01 05:23:36


Before we dive into the details of fetching data, let's briefly discuss what an API is. An API acts as an interface that allows different software applications to communicate and interact with each other. It defines a set of rules and protocols that govern how data can be requested, retrieved, and manipulated. APIs can provide access to a wide range of resources, including data, functionalities, and services.
Celebrating the First 100: A Thank You to My Dev.to Community
Tags: beginners, discuss, productivity, career
Published: 2023-07-01 04:59:33

## Introduction

I'm thrilled to announce that we've just hit the first significant milestone in our journey together - 100 followers! I want to take this opportunity to express my sincere gratitude to each and every one of you.

## Journey So Far

It feels like only yesterday when I penned my first post here on Dev.to. I remember the excitement of hitting 'publish' and the nervous anticipation as I waited for people to read what I had to say. Seeing this community grow to 100 followers has been a humbling and rewarding experience.

## Learning and Growing Together

Every comment, every like, and every follow has been a testament to the power of sharing knowledge. I've learned so much from your insightful comments and thoughtful discussions. This two-way exchange of ideas has made us all better developers, and for that, I thank you.

## The Future

While reaching 100 followers is exciting, this is just the beginning. I am eager to share more in the future - from tutorials, to think pieces, to my personal experiences. I hope that my posts continue to provide value and spark meaningful conversations.

## Conclusion

Finally, to my first 100 followers, thank you. Your engagement and support fuel my passion for writing and sharing. Here's to many more exciting milestones ahead. Let's continue to learn, grow, and code together.

Thank you, from the bottom of my heart!

---

If you have any questions or comments, feel free to leave them below!
You can block my tweets at [**RITAV DAS (@dasritav) / Twitter**](https://twitter.com/dasritav)
About me
Tags: about, personal, discuss
Published: 2023-07-01 04:54:21

## hi. nice to see you
👋 Hi, I’m @SchBenedikt
👀 I’m interested in programming & open source softwares
🌱 I’m currently learning how to program a text editor
💞️ I’m looking to collaborate on a own Cloud like NextCloud
📫 I can be reached via our website.
🔗 I joined dev.to to post great guides on his own server and information about the projects on Github.

---
Who are you? What made you decide to join here?
I would appreciate any comments!
STACK (DATA STRUCTURE)
Published: 2023-07-01 04:34:30

1. What is Stack:
Stack is an linear data structure in which both insertion and deletion take's place at one end which is the TOP Of the Stack.

Stack is also known as LIFO
LIFO=LAST IN FIRST OUT.
This state's that the element that is inserted at last will come first out.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i1m02qgw40yzixsp2lc6.png)

It is an example of plate's which indicate's the Stack OPeration LIFO.

There are some Basic operation's which are performed on Stack's
they are :
1.Push()
2.Pop()
3.top()
4.isEmpty()

Push():

Adds an item to stack. If the stack is full,then it is said to be 
OVERFLOW.

Pop():

Remove's an item from the stack.If the stack is empty it is said to be UNDERFLOW.

Top():

Return's top element of stack.

isempty():

Returns True if stack is empty and false if stack is Full.

Basic Implementation of stack using array's in c:

`#include <stdio.h>
#define SIZE 5
int stack[SIZE];
int top = -1;
void push();
void pop();
void display();
int main()
{
    int choice = 0;
    printf("*********Stack operations using array*********\n");
    while (choice != 4)
    {
        printf("-----------------------------------------------\n");
        printf("Choose the stack operation to be performed:\n");
        printf("-----------------------------------------------\n");
        printf("1. Push\n2. Pop\n3. Display\n4. Exit\n");
        printf("Enter your choice: ");
        scanf("%d", &choice);
        switch (choice)
        {
            case 1:
                push();
                break;
            case 2:
                pop();
                break;
            case 3:
                display();
                break;
            case 4:
                printf("Exiting...\n");
                break;
            default:
                printf("Please enter a valid choice.\n");
        }
    }
    return 0;
}
void push()
{
    int val;
    if (top == SIZE - 1)
    {
        printf("Overflow: Stack is full!\n");
    }
    else
    {
        printf("Enter the value to be pushed: ");
        scanf("%d", &val);
        top++;
        stack[top] = val;
    }
}
void pop()
{
    if (top == -1)
    {
        printf("Underflow: Stack is empty!\n");
    }
    else
    {
        top--;
    }
}
void display()
{
    if (top == -1)
    {
        printf("Stack is empty.\n");
    }
    else
    {
       printf("Elements inside the stack are:\n");
        for (int i = top; i >= 0; i--)
        {
            printf("%d\n", stack[i]);
        }
    }
}
`
Complexity analysis:

Push()    O(1)
Pop()     O(1)
isEmpty() O(1)
AWS, Kubernetes, and All Things DevOps
Tags: devops, aws, cloud, opensource
Published: 2023-07-01 03:45:10

I've been away for quite some time. Been busy with a lot of transitions-at home, at work, in life. 

Been working on some projects but I've been posting them in Github as it's easy to manage and consolidate all projects into one single place. I will probably create some write-ups here in Dev.to on some of the interesting projects in my Github repositories, but in the meantime, here are some of the resources:

- [All Things DevOps](https://github.com/joseeden/All-Things-DevOps/blob/master/README.md)

- [All Things Docker and Kubernetes](https://github.com/joseeden/All-Things-Docker-and-Kubernetes/blob/master/README.md)

- [All Things Terraform](https://github.com/joseeden/All-Things-Terraform/blob/master/README.md)

- [Notes - AWS SysOps Administrator Associate (SOA-C01)](https://github.com/joseeden/notes-aws-sysops/blob/master/README.md)

____________________________________________

{% user jeden  %}