teleren/devto huggingface dataset:
Optimize your AWS dev spend
Tags: aws, saas, cost
Published: 2023-06-04 06:00:56

[ai generated cover image. prompt: clouds and sunshine]

## Cloud costs on the rise

After taking their first steps in the cloud, many software development companies have come to realize that the promise of pay-as-you-go for their development and test workloads is actually quite hard to realize to its fullest extent.

Existing tools such as AWS Instance Schedule or Cloud Custodian can help here; but are they enough to satisfy the needs of your teams?

To realize the highest possible savings from your development and test workloads, you need to be able to easily and reliably turn off or dial down as many of your resources as possible when they are not in use.

For many companies the savings potential here is huge: up-to 70% of the on-demand compute component cost for your dev and test workloads, assuming a 8am to 6pm working schedule on weekdays. 

![Calender outlining typical working hours vs off hours](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8bcvjjkocnkx41xix2l5.png)

## A develoment-team focused look at cost savings

To materialize these savings, a few barriers of entry that can negatively impact your teams productivity are critical to consider:

1. Do you have a tool that is easy to onboard and take into use?
2. Can the developers easily control the schedules of their environments?

## Introducing cloudnap.io - a developer-first cost-savings utility

https://cloudnap.io was created to address this challenge. With a developer-first approach, your teams can stay in control of their environments and their off hours schedules - allowing you to tap into the potential cost savings without impacting your productivity.

ChatOps-based integration with Slack and Teams allows your teams to directly control the scheduling of their resources directly from the chat. Bringing environments up and down for example as part of CI/CD pipelines can be further automated with the provided API.

Signup for our waiting list to be one of the first to benefit from these savings. :)
2/365 days challenge
Published: 2023-06-04 05:37:36

Today was pretty good day challenge went well.currently i'm watching a yt video of 5hr long(by freecodecamps.org)i watched ihr+ and basically what the video it explains the fundamentals of data science and how it works and also i have done python codes anyway it wasn't that great as data science learner i will improve myself in upcoming days,
Thank You
Como gerar CPFs para testes de validação?
Tags: gerarcpf, validacao, whitehat
Published: 2023-06-04 05:18:46

Um problema muito comum que muitos programadores encontram e na hora de conseguir números de CPFs para testar a validação de campos em formulários. 

Uma das ferramentas que tenho usado bastante nos meus testes é o site [toolsfordevs.com.br/cpf/gn](https://toolsfordevs.com.br/cpf/gn). Nessa ferramenta, posso gerar infinitos números de CPFs válidos para os meus testes, e assim garantir a segurança da minha aplicação.

Recomendo bastante!
Documentação do documento-validacao-br
Published: 2023-06-04 05:00:10

## documento validacao br


## Instalação

`npm install -f documento-validacao-br`

## Como usar o gerador de CPF?


```
import { GerarCPF } from "documento-validacao-br";

const value = (new GerarCPF()).execute()
```



## Como usar o validador de CPF?

```
import { ValidarCPF } from "documento-validacao-br";

const value = (new ValidarCPF()).execute()
```



## Gerar CPF com mascara


```
import { GerarCPF } from "documento-validacao-br";

const mask = 'xxx.xxx.xxx-xx'
const value = (new GerarCPF(mask)).execute()
```




## Usando require


```
const { GerarCPF } = require("documento-validacao-br")

var cpf = new GerarCPF().execute()


```

## Validar CNPJ

```


import { ValidarCNPJ } from "./";

let cnpj = new ValidarCNPJ('000000000000000').execute()

console.log(validate)
```




Todas as ferramentas deste pacote são usados no [toolsfordevs.com.br](https://toolsfordevs.com.br). Acesse para dar uma conferida e um crédito ao projeto.
An animated lesson on CSS will teach you how to use it
Tags: webdev, css, animation, design
Published: 2023-06-04 04:00:49

It's easier to learn something when it is animated.

View the full tweet

{% twitter 1664893968528867330  %}

---

### 1. Flex Order

{% twitter 1616366217438334977 %}

---

### 2. Responsive Layout

{% twitter 1664195600857047041 %}

---

### 3. Box Shadow

{% twitter 1663833601501466624 %}

---

### 4. Display 

{% twitter 1663472076601303041 %}

---
### 5. Z - Index

{% twitter 1663107778431582214 %}

---
---

# Check Our Latest Post 

{% link https://dev.to/jon_snow789/12-tool-for-your-next-project-5hbg %}

---
---

### 6. Transform

{% twitter 1660934642688466946 %}

---

### 7. Flex Wrap 

{% twitter 1660571444672352256 %}

---

### 8. Sticky Position

{% twitter 1662385233701007361 %}

---


---

### Support us

{% youtube P9vXtWh0FsE %}

---

Thanks for Reading ❤️! Check my website [Demo coding](https://democoding.in/) for updates about my latest CSS Animation, CSS Tools, and some cool web dev tips. Let's be friends!

Don't forget to subscribe to our channel : [Demo code](https://www.youtube.com/@democode)

---
Getting Started with Git and GitHub: A simple roadmap
Tags: git, github, beginners, learning
Published: 2023-06-04 03:00:00

This guide will offer a summary on how to get started and learn about Git and Github. 

## TL;DR

Here is the roadmap in a simple image  representation:


![Git and GitHub Roadmap](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o9nu44hz0i4ajz27cxg2.png)


## Roadmap:

1. What is Git and Github
   - Learn what is Git and GitHub.
   - Understand why it is important for developers
   - Install Git locally and create GitHub account.

2. Basic and Useful Git Commands
   - Learn basic Git commands, such as `git init`, `git add`, and `git commit`.
   - Link Git and GitHub together
   - Learn about branches, for example creating and merging branches


3. Collaborate with Git
   - Learn about cloning repositories and forking repositories.
   - Learn about pull requests and how they are used.
   - Practise pulling and pushing changes.


4. Advanced Git and GitHub commands and features
   - Learn advanced Git commands, such as, `git rebase`, and `git reset`.
   - Learn to resolve merge conflicts 
   - Learn about GitHub workflows, actions and codespaces.
   

5. Learn Markdown
   - Everything in GitHub is written in Markdown so it is a good idea to know the basics of how to write in Markdown.
   - Useful rescources for this are: [Markdown Cheatsheet](https://www.markdownguide.org/cheat-sheet/) and [Markdown Editor](https://dillinger.io/)
   


I hope you enjoyed reading this short guide and found the content helpful. If you want more information you can always reach out to me and I will help as best as I can  :smile:.
Base64 and other encodings in SQLite
Tags: database, sql, sqlite
Published: 2023-06-04 02:00:13

You've probably heard about hexadecimal encoding in SQLite:

```sql
select hex('hello');
-- 68656C6C6F

select unhex('68656C6C6F');
-- hello
```

SQLite does not support other encoding algorithms by default. However, you can easily enable them using the `sqlean-crypto` extension (not related to cryptocurrency in any way).

> **Note**. Unlike other DBMS, adding extensions to SQLite is a breeze. Download a file, run one database command — and you are good to go.

`sqlean-crypto` adds two functions:

-   `encode(data, algo)` encodes binary data into a textual representation using the specified algorithm.
-   `decode(text, algo)` decodes binary data from a textual representation using the specified algorithm.

Supported algorithms: `base32`, `base64`, `base85`, `hex` and `url`.

[Base32](https://en.wikipedia.org/wiki/Base32) uses 32 human-readable characters to represent binary data:

```sql
select encode('hello', 'base32');
-- NBSWY3DP

select decode('NBSWY3DP', 'base32');
-- hello
```

[Base64](https://en.wikipedia.org/wiki/Base64) uses 64 printable characters:

```sql
select encode('hello', 'base64');
-- aGVsbG8=

select decode('aGVsbG8=', 'base64');
-- hello
```

[Base85](https://en.wikipedia.org/wiki/Ascii85) (aka Ascii85) uses 85 printable characters:

```sql
select encode('hello', 'base85');
-- BOu!rDZ

select decode('BOu!rDZ', 'base85');
-- hello
```

[Hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) uses 16 characters (0-9 and A-F):

```sql
select encode('hello', 'hex');
-- 68656c6c6f

select decode('68656c6c6f', 'hex');
-- hello
```

[URL encoding](https://en.wikipedia.org/wiki/URL_encoding) replaces non-alphanumeric characters in a string with their corresponding percent-encoded values:

```sql
select encode('hel lo!', 'url');
-- hel%20lo%21

select decode('hel%20lo%21', 'url');
-- hel lo!
```

## Installation and Usage

1. Download the [latest release](https://github.com/nalgeon/sqlean/releases/latest)

2. Use with SQLite command-line interface:

```
sqlite> .load ./crypto
sqlite> select encode('hello', 'base64');
```

See [How to Install an Extension](https://github.com/nalgeon/sqlean/blob/main/docs/install.md) for usage with IDE, Python, etc.

See [Extension Documentation](https://github.com/nalgeon/sqlean/blob/main/docs/crypto.md) for reference.

_Follow [**@ohmypy**](https://twitter.com/ohmypy) on Twitter to keep up with new posts_
Rethinking Project Management Tools: Our Switch from Trello to MS Planner
Tags: riskmanagement, productivitytips, msplanner
Published: 2023-06-04 01:40:55

Several years ago, I worked at a company where we relied heavily on Trello for team management. At the time, there was a significant lack of organization in the tool's usage, with team members accessing it via personal user accounts. As the usage of the tool expanded with the addition of new projects, we did see a beneficial increase in effective communication. However, this expansion also brought to light several significant risks.

The first alarm bell rang when an owner of a critical board was on the verge of leaving the organization. This situation made us realize that several contractors, some of whom were no longer engaged with us, still had access. In some cases, these contractors were operating their own boards. We also discovered that some bug tickets contained data that should not have been stored outside the organization's secured systems. Moreover, personal accounts did not adhere to our organization's password management standards. This lack of compliance posed a risk of potential breaches, especially if these passwords were reused on other platforms that could be compromised.

Given these risks, we devised a solution with the following steps:

1. We identified all active boards and determined their specific purposes.

2. We chose Microsoft Planner as our new project management tool, given its similar functionality to Trello and its integration with our Teams application.

3. We informed the person responsible for Teams within the organization about our plans, highlighting the potential risk reassessment and the need for additional training and support.

4. We designed a decommissioning plan to archive data and reach out to current and past owners to delete their content.

5. We exported the boards to JSON files for future reference, handing them over to the MS Teams application owner for safekeeping.

6. We selected a migration tool, in this case, apps4.pro, to facilitate the transition from Trello to MS Planner.
Upon completion of the migration, we communicated the outcome to all stakeholders.
7. We updated our onboarding materials on the company wiki, noting the switch to MS Planner from Trello and summarizing the reasons behind the change.

Following our successful migration to MS Planner, we noticed substantial improvements. It was simpler to integrate with our internal applications, leading to a noticeable boost in productivity. The increased tool usage resulted in reduced cost per user, enhancing overall efficiency.

While Trello is undoubtedly a valuable tool, it requires careful management to prevent inadvertent exposure of the organization to potential risks. If organizational policies are implemented in the tool's usage, it can be better aligned with the company's risk appetite. With careful planning and a strategic approach, we were able to navigate these challenges and ensure a smooth transition to a more secure, productive project management system.
JavaScript String Methods | JavaScript #12
Tags: javascript, beginners, programming, react
Published: 2023-06-04 01:07:22

// let name = "Sage"
// console.log(name.length)

// escape sequence Character will be counted as per alphabat 
// other escape sequence Character are as follow 
//  \n --> Newline 
//  \t --> Tab
//  \r --> Carring Return 

// console.log(name.toUpperCase())
// console.log(name.toLowerCase())

// Index (Rember Index counting will start from 0)

// console.log(name.slice(2, 4))
// console.log(name.slice(2,)) 

// if you give only 1 argument in slice method than from 1st argument it will go till the end 

// Replace Method will replace the alphabat or paticular word from it place and put another one 

// console.log(name.replace("age","vsk")) 
// let friend = "Shiv"
// console.log(name.concat(" is a friend of ",friend, " ok"))

// let friend2 = "  Hanuman  "
// console.log(friend2.trim())

let name = "John"
for(let i=0; i<(name.length); i++) {
  console.log(name[i]
}[](https://replit.com/@SkSage/JavaScript-String-Methods-14#index.js)
100 Days Coding Challenge - Day 15: FreeCodeCamp JavaScript Algorithms and Data Structures
Tags: webdev, javascript, programming, 100daysofcode
Published: 2023-06-04 01:03:32

## Day 15

I finish the Basic Data Structures and now I'm in Basic Data Structures :D

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

plus, I finish CSS and JavaScript course on Udemy with YouAccel 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8p4hfrgssgwhii4wczsq.png)
There is an App for That (But Shouldn't Be)
Tags: opinion, apple, ios
Published: 2023-07-25 16:25:18

---
title: There is an App for That (But Shouldn't Be)
published: true
date: 2023-06-04 00:00:00 UTC
tags: opinion,apple,ios
canonical_url: https://goulet.dev/posts/app-for-that/
---

I wish there were fewer low-touch apps on the App Store, and more high-quality mobile sites on the open web.

I saw an advertisement on ADP's website for their benefits mobile app. With that app you can compare plan options, add dependents, and select benefits during open enrollment. All things you would do once a year (maybe a few times if you have some life changes in a given year).

So why download an app that you will use once a year? Why does a company make an app with such presumably small usage? Is it so they can say "We have an app in the App Store"?

Ditch the burden of building and maintaining a native app. Make your existing website responsive/mobile-friendly and your users will be better served for it.
3 Unexpected Things You Can Do with Python – Number 2 Will Surprise You!
Tags: python, programming, humour
Published: 2023-06-03 23:34:49

Are you ready to go on a journey that slithers you into the thrilling depths of Python? Good. Brace yourself, as we're about to Pythonize your day. It's time to add a touch of "scale" and humor to your programming experience!

### 1. Creating Your Own Flappy Bird Game

Yes, you read that right. With Python, you don’t need wings to fly. You just need to...code your own Flappy Bird game! You might think, "I'm just a humble Pythonista. How can I possibly ascend to such game-designing greatness?" But have no fear, Python's pygame module is here.

The `pygame` module provides all the tools you need to create a basic version of this beloved, yet infuriating, mobile game. With just a few hundred lines of code, you could be procrastinating your actual coding work by piloting a pixelated bird through a perilous world of pipes. The birds are chirping, "Embrace your inner game developer and soar above the clouds!" - or they would, if they weren't so busy trying not to crash into the pipes!

### 2. Communicating with NASA's API

Hold on to your socks, Pythonistas, because they're about to be blown clean off! Did you know you can use Python to reach for the stars...literally? Using NASA’s API, you can pull data about meteorological conditions on Mars, images from the Mars Rovers, and information about asteroids hurtling towards Earth. We bet you didn't see this one coming!

To top it all off, you don’t even need a spaceship or a degree in Astrophysics. A bit of Python and a NASA API key (which, unlike a trip to the moon, is free) is all you need to start your space adventure. Imagine, you could be telling your friends, "BRB, just checking the weather on Mars." Now that's a conversation starter!

### 3. Automating Your Coffee Machine

Are you tired of making your own coffee? Why not let Python do it for you? Using Python and a bit of Internet of Things (IoT) magic, you can wake up to the smell of fresh coffee every morning.

With the help of Python libraries like `RPi.GPIO`, you can interface your Raspberry Pi with your coffee maker and tell it when to brew your coffee. Add a dash of `pytz` for time zone management and `python-crontab` for job scheduling, and you’ve got yourself an automated barista. Never again will you suffer from the dread of the early-morning, coffee-less code debug. You could say, we're "brewing" up some automation goodness. Puns intended!

And there you have it, folks! Three surprising ways to use Python that are as delightful and fun as finding a hidden easter egg in your favorite game. Now go forth and explore these lesser-known facets of Python. Just remember to come back down to Earth if you're reaching for the stars with NASA’s API. Don’t forget us when you're famous!
Strategies and Opportunities in Difficult Times in the Data Area!
Tags: money, beginners, discuss, opensource
Published: 2023-06-03 23:15:18

Hello,

This is a post on Medium where I will observe various strategies and concepts that have been adopted in the face of the current situation of many layoffs and reduced investments in the sector; we will discover how to really make a difference by generating incredible results and looking at cost issues at the same time?

To know more:

https://jlgjosue.medium.com/strategies-and-opportunities-in-difficult-times-in-the-data-area-8447a753e9c0 

Thanks for reading; share this post, please! :)
5 Python Libraries That Will Surprise You! (Just like that plot twist in your favorite soap opera)
Tags: python, programming
Published: 2023-06-03 23:14:14

Ladies, gents, and code-loving cephalopods, get ready for a thrilling, chortle-inducing, caffeine-spilling journey through the Pythonic wilderness. There, we'll stumble upon five surprising Python libraries that will leave you so startled, you'll drop your rubber ducky right into your morning brew.

## 1. Antigravity: Float like a Butterfly, Code like a Bee

Ever wished you could fly while debugging an especially tricky code? Well, Python's built-in 'antigravity' library has got you covered, though not in the way you might think. No capes or superpowers here, I'm afraid. Just pure, undiluted geek humor. 

This tongue-in-cheek library literally opens up a web browser and takes you to the xkcd comic strip about "Python" and "antigravity". If you're feeling low while coding, just `import antigravity` and uplift your spirits. Who said coders couldn't have a sense of humor?

## 2. Astronaut: One Small Step for Code, One Giant Leap for Coder-kind

Say hello to `astronaut`, a library that does nothing related to space or, indeed, astronauts. I know, right? What a plot twist! What this cheeky library does is return the word 'astronaut' whenever you print its name. That's it! That's the library! Python programmers, ladies and gentlemen, coming up with libraries that are out of this world... literally.

## 3. this: The Secret of Life, the Universe, and Everything...in Python

I'm going to be super cryptic now. There's a library called 'this'. What does it do? Well, that's a secret. You'll have to import it to find out. Go ahead, type `import this` and prepare to be enlightened. Don't forget to carry your towel, Hitchhiker!

## 4. Coffee: Perks Up Your Python

For all caffeine addicts and sleep-deprived coders out there, the `coffee` library has just one thing to say: "I understand you." Here's a library that makes no pretense of being anything useful. It just serves up some virtual coffee when you ask for it. It won't boost your productivity, but hey, it's the thought that counts!

## 5. Python_does_not_exist: The Cake is a Lie!

You'd think a Python library named `python_does_not_exist` doesn't exist, right? Wrong! This library not only exists, but it also does nothing! A zen-like reminder that existence is futile? Or maybe it's Python's way of paying homage to the infamous "The cake is a lie" meme from Portal? We may never know...

So, there you have it. Five Python libraries that are more about tickling your funny bone than changing your code. Remember, Pythonistas, coding doesn't always have to be about slogging through complex algorithms and debugging sessions. Sometimes, it's about cracking a smile and laughing at an absurd library name or a silly output. After all, coding should be fun, right? Keep laughing and keep coding!
Atomic Design: A Methodology for Building Design Systems
Tags: design, designsystem, ui, ux
Published: 2023-06-03 23:04:02

## Introduction

Atomic Design is a methodology for creating design systems that recognizes the need to develop thoughtful design systems, rather than creating simple collections of web pages. In this approach, interfaces are made up of smaller components that can be broken down into fundamental building blocks and worked up from there.

## The Five Levels of Atomic Design

There are five distinct levels in Atomic Design: Atoms, Molecules, Organisms, Templates, and Pages. 

- Atoms are the basic building blocks of matter and are applied to web interfaces as HTML tags, such as a form label, an input, or a button.
- Molecules are groups of atoms bonded together and are the smallest fundamental units of a compound.
- Organisms are groups of molecules joined together to form a relatively complex, distinct section of an interface.
- Templates consist mostly of groups of organisms stitched together to form pages.
- Pages are specific instances of templates.

## Benefits of Atomic Design

Using Atomic Design to create design systems has several benefits. First, it provides a clear methodology for developing thoughtful design systems, rather than just creating simple collections of web pages. This approach allows interfaces to be made up of smaller components that can be broken down into fundamental building blocks and worked up from there.

Second, Atomic Design gives clients and team members the ability to appreciate the concept of design systems by actually seeing the steps laid out in front of them. This can lead to better communication and understanding of the design process.

Third, Atomic Design promotes consistency and scalability by creating standalone, portable, reusable components. By building up from molecules to organisms, we can create systems that are easier to maintain and update over time.


## Using Pattern Lab

In order to apply this methodology in your work, you can use a tool called [Pattern Lab](https://patternlab.io/), created by Brad Frost and Dave Olsen. Pattern Lab is a tool to create atomic design systems.

## Conclusion

Atomic Design is a powerful approach to creating design systems that can help you build better, more consistent, and scalable interfaces. By breaking down interfaces into smaller components, we can create systems that are easier to maintain and update over time.

**_Source:_**
https://bradfrost.com/blog/post/atomic-web-design/