teleren/devto huggingface dataset:
Gnarly News January 2023
Tags: reactnative, ruby, expo
Published: 2023-01-27 17:17:22

The software development landscape is constantly changing. As a software consultancy, it’s our responsibility to keep our finger on the pulse of the industry. Here are some headlines that caught our attention recently. 

## [React Native 0.71 Released](https://reactnative.dev/blog/2023/01/12/version-071)

We’ve had our eyes on the various release candidates for a few months and we were stoked with the announcement that the latest version of React Native was finally released this month! Our favorite feature, you ask? TypeScript by default. 😍

## [M1 Workers on EAS Build Are Generally Available](https://blog.expo.dev/m1-workers-on-eas-build-dcaa2c1333ad)

This month, Expo announced that M1 workers are generally available for iOS builds which were shown to improve build times by **40%** (though they call out in the article above that your mileage may vary). You can easily switch from Intel to M1 workers by adding or upgrading EAS CLI to >=3.3.0 and setting the `resourceClass` field in your build profiles in` eas.json `to `"m1-medium".`

## [Ruby 3.2.0 Released](https://rubyweekly.com/link/133665/web)

[Last month](https://www.thegnar.com/blog/gnarly-news-december-2022), we shared the first release candidate for Ruby 3.2.0 and then waited patiently for Christmas morning… Alas! Ruby 3.2.0 has been released and it is chock full of performance updates and debugging tools. Check it out! 👆


## Contributors

* [Ethan Fertsch ](https://github.com/efertsch)

_Learn more about how The Gnar [builds software](https://www.thegnar.com/software-development)._
Tech predictions for 2023
Tags: 2023, predictions
Published: 2023-01-10 04:23:54

Now that we're getting into 2023, it's time to pull out my crystal ball, and tell you what's going to happen in 2023.  Ha ha.  

*Here are my tech predictions for 2023:*

**1.** AI will continue to explode, and you will start to see it in a lot more places finally. AI is truly getting democratized.  Google’s TensorFlow and OpenAI are making it as easy as using an API.  Most CEOs are waking up to ChatGPT and finally asking “Uhh, what are we doing about AI?”  Prediction: 75% of consumer apps and business apps will utilize AI in some way.   
- A little sub-prediction: GPT4 will launch in the second half of 2023, some estimates have it at 100 trillion parameters (compared to 175B for GPT3), but who knows.

**2.** We will go through a real recession, and the pain for companies and employees globally will be significant. A lot of layoffs are coming in q1 2022 (many companies didn’t want to layoff people right before the holidays).  Witness Amazon increasing the size of it’s layoffs and Salesforce laying off 10k workers. 

**3.** Semiconductors are becoming the new digital gold.  The market may anticipate a significant decrease in semiconductor equipment spending, however, I expect that the competition for technological leadership, tech autonomy, geopolitical concerns, and lack of supply in various arenas will result in real semi turbulence. 

**4.** AR/VR will hit a real critical mass.  The user base will grow to at least 50M people from 10M currently.  It could go to 200M the year after as Apple enters the market with it’s headset, though Oculus remains the leader. 

Okay, let's check back in a year and see how I did. 
**What do you think?  Which of these do you agree with?  Which ones are dead wrong?**
Markdown link checker: Oh My Github Action #1
Published: 2023-01-27 17:13:12

> Github Action changed the game!
> Continuous Integration has never been so exciting.

In this series, I just want to share my findings about the different Github Action I’m using to empower different projects.

## About the Github Action?

**_Name_**: 404-links
**_Description_**: The only Github Action that will open pull request review when a broken link has been found in one of your markdown documentation.
**_Marketplace_**: https://github.com/marketplace/actions/404-links
**_Maintainer_**: [Olivierodo](https://github.com/olivierodo)

## What I love about It?

Compared to other Markdown link checker, I love the different feature of 404-links:

- Allow whitelist by url or by file
- Enforce https links
- Share a simple summary
- Create Pull Request review using PR comments

## How do I use it?

Currently I’m maintaining the RestQA that has more than 50+ markdowns file. Most of the files has external links (github pr, 3rd party tools), Now i’m happy to know that each link will be check regularly checked in order to provide a good experience while reading our documentation.

## How can you use it?

If your project is using the JAMstack, this 404-links will become super helpful for website that relies on framework like:

- Docusaurus
- Hugo
- Gatsby
- etc…

## What could be improved? How can you contribute?

So far the 404-links Github action is focused on remote links (http and https), that would be great if the Action could also check links to local files.

Don’t forget to support the [404-link Github action](https://github.com/atalent-labs/404-links) by giving them a star ⭐️ on github

---

If you want to get more update about the best way to improve your project through Continuous Integration. Follow me 😁.
Introduction to Blockchain Technology for Developers
Tags: blockchain, web3, cryptocurrency, security
Published: 2023-01-27 17:09:29

Blockchain technology is a revolutionary way of storing and sharing data that is **secure**, **transparent**, and **decentralized**. It is the underlying technology behind cryptocurrencies such as Bitcoin, but its potential uses go far beyond just digital currencies. In this article, we will provide an introduction to blockchain technology for developers and explore some of its key concepts and potential use cases.

At its core, a blockchain is a **decentralized ledger** that records transactions between multiple parties. Each block in the chain contains a list of transactions and a reference to the previous block, creating a chain of blocks that cannot be altered without the consensus of the network. This makes blockchains extremely secure and resistant to tampering or hacking.

One of the key features of blockchain technology is its transparency. All transactions on a blockchain are visible to all participants in the network, making it possible to trace the history of each block and transaction. This allows for greater trust and accountability among participants, and can be used in a wide range of applications, such as supply chain management, voting systems, and more.

Another important aspect of blockchain technology is its decentralization. Unlike traditional systems, where a central authority controls and maintains the ledger, in a blockchain network, each participant has a copy of the ledger and participates in the consensus process to validate transactions. This makes the system more resilient to failure and less vulnerable to attacks.

For developers, one of the most exciting aspects of blockchain technology is its potential for creating **decentralized applications (dApps)**. A dApp is a program that runs on a blockchain and can be used for a variety of purposes, such as creating digital currencies, building marketplaces, and more. Developers can use blockchain platforms such as Ethereum to create and deploy dApps.
How to solve ERROR 1045 (28000): Access denied for user 'root'@'localhost' (MAC)
Tags: beginners, mysql
Published: 2023-01-27 16:58:13


I have not been using MySQL on my laptop for a long time. Today I have to start it, but I forgot the password. And I searched for it on the Internet, I tried a lot of ways to solve it, but I failed.

And then I found an effective solution.


I guess you tried this command before:
```
mysql -u root -p 
```
Next, you tried to remember your password. Unfortunately, it shows like this:
```
Enter password: ***
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
```
Then we are going to solve it step by step.
1. Stop MySQL
Preferences -> Search 'MySQL' in the top right corner (or find it on the panel) -> Click 'Stop MySQL Server'

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

2.Start MySQL Safe Mode
2.1 cd bin directory
```
cd /usr/local/mysql/bin
```
2.2 get permission 
```
sudo su
```
2.3 enter the password of your laptop
```
Password:***
```
2.4 enter this command after sh-3.2#
```
./mysqld_safe --skip-grant-tables &
```
ATTENTION: START A NEW TERMINAL NOW
3. Reset password
3.1 execute the command to skip the verification step
```
mysql -u -root
```
3.2 set the password to null
```
mysql> update user set authentication_string='' where user='root';
```
3.3 refresh permissions 
```
flush privileges;
```
3.4 
```
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'youPassword';" 
```
3.5 exit and login MySQl again
```
exit
```
```
mysql -u root -p 
```

I hope it is helpful for you.
Web Scrapping with ElectroNeek
Tags: programming, tooling, tutorial, community
Published: 2023-01-27 16:55:57

Robotic Process Automation (RPA) is a technology that has revolutionized how businesses automate their processes. RPA has made it easier and faster to automate mundane and repetitive tasks, freeing employees to focus on more meaningful work. One of the most popular RPA tools is web scraping, which is used to extract data from websites. Web scraping is an effective way to quickly gather data from multiple sources, allowing businesses to make better decisions.

Web scraping is the process of using software to extract data from websites. It works by using a web crawler to identify and extract specific pieces of data from a website. The data is then stored in a structured format, such as a CSV or JSON file, which can be used for further analysis.

Before we continue, take a breather and Sign Up for Exclusive Content, Exclusive Posts from our Forum by navigating to. https://forum.electroneek.com

**Let’s continue.**

Web scraping can be used for a variety of purposes, such as collecting product prices, monitoring competitor activity, or gathering customer feedback. It can also be used to automate tedious tasks, such as filling out forms or downloading images.
When using RPA for web scraping, businesses can choose from a variety of tools, such as web crawlers, API integrations, and screen scraping. Web crawlers are automated programs that can be used to extract data from websites. API integrations allow businesses to connect to external data sources and extract data from them. Screen scraping is a technique used to extract data from graphical user interfaces, such as web forms.

Web Scraping is no longer a complicated task. With ElectroNeek, you can automate the scraping process from any website. The ElectroNeek platform can easily scrape data from any website, no matter how large the data is.

To Scrape Data with the ElectroNeek Platform, you can either use:

The Scrape Structured Data Activity on our platform to Scrape data from any website and save this to an Excel table.
The CSS and Xpath Selectors to scrape your data from any website.

Deep dive into the entire process of scraping data with ElectroNeek by following these questions in our community forum.

Post 1:
[How do I scrape data from all pages](https://forum.electroneek.com/t/how-do-i-scrape-data-from-all-pages/1335)


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


**Post 2:**
**[Create data tables from Web Scraping activities](https://forum.electroneek.com/t/electroneek-chrome-browser-automation-creating-data-tables-from-web-scraping-activities/765)?**

Let us know your thoughts in the comment section below.

Sign Up for Exclusive Content, Exclusive Posts from our Forum by navigating to: https://forum.electroneek.com

Happy Automation!!!
How to download a file in Angular .NET
Tags: csharp, dotnet, programming, tutorial
Published: 2023-01-27 16:49:08

In this article, I will show you how to download a file in an Angular project with a .NET 5+ Web Api.

## .NET Side 

You need to create a controller, for example DownloadController, with a DownloadFile Api of HttpGet type. If you want you can send the file name to be downloaded as a parameter for this Api. 

First, transform your file into a byte array or via a memoryStream, then return it in a FileContentResult by passing your byte array, the "application/octet-stream" type and the name of your file.

```

[Route("api/[controller]")]
public class DownloadController : Controller
{

        [HttpGet]
        public async Task<IActionResult> DownloadFile()
        {
            //Set your file path here
            var path = Path.Combine(Directory.GetCurrentDirectory(), "Ressources", "Example.docx");
            //Check if the file exists
            if (!System.IO.File.Exists(path))
                return NotFound();
            //Get Bytes array of your file, you can also to do a MemoryStream
            Byte[] bytes = await System.IO.File.ReadAllBytesAsync(path);

            //Return your FileContentResult
            return File(bytes, "application/octet-stream", "Example.docx");

        }
}

```

## Angular Side 

In your service create a function to call the .Net Api, you need to specify ‘blob’ for the responseType like this :

```
  downloadFile() {
    return this.http.get('http://localhost:5000/api/download/', { responseType: 'blob' });
  }

```
In Angular the best library to download file is file-saver that you can install with : 
npm i file-saver

Write a function in your component to call your service.

```
  download() {
    this.fileService.downloadFile()
      .subscribe(data => saveAs(data, 'Example.docx'));
  }

```
 Then add the import for use file-saver.

```
import { saveAs } from "file-saver";
```

And it works.
Luos packages
Tags: opensource, news, startup, luos
Published: 2023-01-27 16:30:00

🗳️ **Packages** represent blocks of code. They contain independent functionalities which will be run by Luos engine.

Luos separates monolithic code into independent blocks called packages that can communicate with each other using high-level APIs. This helps with development, debugging, and maintainability when the code base grows and facilitates collaboration with other developers.

⏩ [Learn more](https://www.luos.io/docs/luos-technology/packages) about this
Enums in Solidity
Tags: web3, solidity, ethereum, blockchain
Published: 2023-01-27 16:25:13

In Solidity, Enums stand for Enumerable. Enums are user-defined data types that restrict the variable to having only one of the predefined values.

The predefined values present in the enumerated list are called enums. Internally, enums are treated as numbers. Solidity automatically converts the enums to unsigned integers. An enum should have at least one value in the enumerated list. This value cannot be a number (positive or negative) or a boolean value (true or false).

Enums limit the number of possible values for a variable to a small number of predefined options. The values contained within this enumerated list are referred to as enums. It is possible to limit the number of bugs in your code by making use of enums in your code.

As an example, if we were to investigate an application for a fresh juice shop, it would be possible to limit the glass size to three options: small, medium, and big. This would ensure that no one would be able to order a size other than small, medium, or large because of the restriction.

## Enum examples: 
```
pragma solidity ^0.5.0;

contract test {
   enum FreshJuiceSize{ SMALL, MEDIUM, LARGE }
   FreshJuiceSize choice;
   FreshJuiceSize constant defaultChoice = FreshJuiceSize.MEDIUM;

   function setLarge() public {
      choice = FreshJuiceSize.LARGE;
   }
   function getChoice() public view returns (FreshJuiceSize) {
      return choice;
   }
   function getDefaultChoice() public pure returns (uint) {
      return uint(defaultChoice);
   }
}
```

```
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

contract Enum {
    // Enum representing shipping status
    enum Status {
        Pending,
        Shipped,
        Accepted,
        Rejected,
        Canceled
    }

    // Default value is the first element listed in
    // definition of the type, in this case "Pending"
    Status public status;

    // Returns uint
    // Pending  - 0
    // Shipped  - 1
    // Accepted - 2
    // Rejected - 3
    // Canceled - 4
    function get() public view returns (Status) {
        return status;
    }

    // Update status by passing uint into input
    function set(Status _status) public {
        status = _status;
    }

    // You can update to a specific enum like this
    function cancel() public {
        status = Status.Canceled;
    }

    // delete resets the enum to its first value, 0
    function reset() public {
        delete status;
    }
}
```

For more content, follow me on - https://linktr.ee/shlokkumar2303
Participe da Comunidade do WhatsApp do Guia de TI
Tags: novidades, comunidade, desenvolvimento, guiadeti
Published: 2023-01-27 16:33:48

---
title: Participe da Comunidade do WhatsApp do Guia de TI
published: true
date: 2023-01-27 16:25:02 UTC
tags: Novidades,comunidade,desenvolvimento,guiadeti
canonical_url: 
---

![Thumb Comunidade do WhatsApp - Guia de TI](https://guiadeti.com.br/wp-content/uploads/2023/01/Comunidade-Guia-de-TI-1024x676.png "Thumb Comunidade do WhatsApp - Guia de TI")

A Comunidade do WhatsApp é uma nova funcionalidade que permite agrupar vários grupos relacionados sob um guarda-chuva. Isso pode ser útil para comunidades escolares, condomínios, empresas e ONGs, onde um administrador pode enviar avisos para todos os membros, inserir e remover membros, criar novos grupos dentro da comunidade e apagar mensagens ou arquivos de mídia considerados abusivos.

Os usuários também podem decidir quem pode adicioná-los a uma comunidade, denunciar abusos, bloquear contatos e sair da comunidade. A funcionalidade foi anunciada em abril de 2020, mas foi implementada no Brasil após o período eleitoral.

## Participe da Comunidade do WhatsApp

Participe da nossa Comunidade do WhatsApp do [Guia de TI](https://guiadeti.com.br/sobre/) e fique por dentro das últimas tendências e novidades da tecnologia. Com nossa comunidade, você poderá discutir e compartilhar ideias com outros profissionais e especialistas da área. Não perca mais tempo e faça parte agora!

[Clique aqui](https://chat.whatsapp.com/L4fq7ofVeWtJtCylWi0eso) para entrar na Comunidade do Guia de TI

O post [Participe da Comunidade do WhatsApp do Guia de TI](https://guiadeti.com.br/participe-da-comunidade-do-whatsapp-do-guia-de-ti/) apareceu primeiro em [Guia de TI](https://guiadeti.com.br).
Localization state survey 2022
Tags: localization, survey
Published: 2023-01-27 16:21:05

[Localizely](https://localizely.com/) conducted research about the [state of localization for 2022](https://localizely.com/blog/localization-state-survey-2022/). The aim was to detect the current trends in software localization and areas for improvement.

The survey was conducted on 2,024 respondents of various occupations from all over the world.

Below you can find the results of the survey.

### Number of target languages in projects

![Number of target languages](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k3nvsoad2vlzf5n032zh.png)

### 10 most popular target languages

- German (most popular)
- Spanish
- French
- Russian
- Italian
- Arabic
- Portuguese
- Dutch
- Chinese
- Japanese

### Translating for regional languages (e.g. en-US)

![Translating for regional languages](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/amlj32e6i506wqj3y1i1.png)

### Translation tools

![Translation tools](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/71qo3nlipvpah08wn8aw.png)

### Work with a language service provider

![Work with a language service provider](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x2mmow5e8u4cmmtrp206.png)

### Machine Translation usage

![Machine Translation usage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ddzuz2arob5mvv9ntsav.png)

### Is localization prioritized enough in your company?

![Localization priority](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/usr2rsornehooml9893t.png)

### What do you aim to improve in 2023 with regard to localization?

- Quality (level, consistency, ...)
- Simplicity of workflows
- Level of scalability
- Speed
- Efficiency
- Cost

More information can be found in the [original published article](https://localizely.com/blog/localization-state-survey-2022/).
How to Install Cockpit on CentOS 7
Tags: cockpit, centos7, centos8, redhat
Published: 2023-01-27 16:15:50

### Cockpit is available in CentOS 7 and later :

1.Install cockpit :
```
sudo yum install cockpit
```

2.Enable cockpit :
```
sudo systemctl enable --now cockpit
```
3.Open up your web browser and login with root :
```
https://IP_ADDRESS_OF_MACHINE:9090
```

4.it did not work? you can open up the firewall with the following commands :
‍‍‍
```
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload
```

5.Use the following code to connect to virtual machines :

```
sudo apt install cockpit-machines
```
10 Secrets to Skyrocketing Your Career as a Developer!
Tags: webdev, javascript, beginners, programming
Published: 2023-01-27 16:14:44

Are you tired of feeling stagnant in your career as a developer? Want to take your skills to the next level and become a top performer in your field? Look no further! We've compiled a list of 10 secrets that will help you skyrocket your career as a developer.

Continuously learn and stay up to date with the latest technologies: The tech industry is constantly evolving, and to stay competitive, you need to be constantly learning and adapting to new technologies.

Network and make connections: Networking is crucial in any industry, and the tech industry is no exception. Building connections with other developers and industry professionals can open up new opportunities and help you stay informed about the latest trends and developments.

Participate in open-source projects: Participating in open-source projects is a great way to improve your skills, gain recognition in the tech community, and make connections with other developers.

Get certified in your area of expertise: Certifications demonstrate to employers that you have a certain level of knowledge and expertise in a specific technology or programming language.

Build a strong online presence: Having a strong online presence, through a personal website, social media, or a professional blog, can help you stand out and showcase your skills to potential employers.

Learn how to communicate effectively: Being able to communicate effectively with your team and clients is essential for success as a developer.

Practice problem-solving: Developing your problem-solving skills will help you tackle complex coding challenges and come up with innovative solutions.

Take on leadership roles: Taking on leadership roles, such as leading a project or mentoring junior developers, can help you develop valuable skills and demonstrate your ability to take on more responsibility.

Be open to new opportunities: Be open to new opportunities, whether it be learning a new programming language, taking on a different role, or working on a different type of project.

Never stop learning: The tech industry is constantly changing, so never stop learning and expanding your knowledge and skills.

By following these secrets and continuously developing your skills, you'll be well on your way to skyrocketing your career as a developer.