teleren/devto huggingface dataset:
What dataset do you wish existed but doesn’t?
Tags: datascience, machinelearning, ai
Published: 2023-01-16 14:38:51

I’ve been interested in monetizing some side projects, and I’ve seen some really good small businesses that exist just by providing an api layer over a data set they’ve worked to collected. I’m interested in what people have needed (especially for ml) when they found there wasn’t a rebuilt dataset out there and it stopped them from pursuing a project.
7 pasos para subir imagen a docker hub
Published: 2022-12-18 00:46:21

1. primero es necesario tener una imagen creada en este caso se tiene este script con python
    
    app.py
    
    ```python
    #!/usr/bin/python3
    import time
    
    print("hello world")
    
    time.sleep(200)
    ```
    
    Dockerfile
    
    ```docker
    FROM ubuntu:latest
    
    RUN apt update && apt install -y python3
    
    COPY app.py /app.py
    
    # ENTRYPOINT ["python3"]
    
    CMD ["python3","/app.py"]
    
    # 36:30
    ```
    
2. Despues creamos la imagen en caso de que no se tenga con `docker build -t app-python:latest .`
    
    ```bash
    docker images | grep app
    app-python                            latest              3faf352bcef1   9 minutes ago   136MB
    ```
    
3. ahora si pasamos a agregar la imagen con tag ya que esto es para que docker la use unicamente como lectura → `docker tag app-python:latest marquitobb/app-python:latest`
4. y si hacemos `docker images` podemos vizualizar el tag que agregamos que va a ser la que se usuara
    
    ```bash
    app-python                            latest              3faf352bcef1   15 minutes ago   136MB
    marquitobb/app-python                 latest              3faf352bcef1   15 minutes ago   136MB
    ```
    
5. despues de esto ya tenemos todo listo para subirla, solo para confirmar validamos si tenemos loggeada nuestra cuenta con `docker login`
6. Una vez que si solo faltaria poder hacer push a nuestro repositorio con `docker push marquitobb/app-python:latest`
7. Despues de esto si borramos la imagen con `docker rmi marquitobb/app-python` no tendriamos problemas de recuperarla ya que se quedo en el repo y solo necesitamos hacer `docker pull marquitobb/app-python:latest` para que de nuevo la descargue
Building a Kubernetes CRD
Tags: kubernetes, crd, microservices, devops
Published: 2023-01-16 13:42:06

We have exciting news to share. Today, we are going live with Amnic's tech blog. In this blog, you will understand the role of CRDs and learn the steps to create your own CRD that captures information about the external service dependencies of your microservices. 

Head to our blog to give it a read.
https://blog.amnic.com/building-a-kubernetes-crd/
Understanding IAM
Tags: beginners, aws, iam, security
Published: 2023-01-16 13:41:36

**What is IAM:**
IAM is a web service that enables you to securely manage and access AWS services. It helps you to control who is authenticated and authorized to use the services. It is integrated well with every other AWS service.

IAM service usage is FREE!


Let us take an example of an organization that has different departments such as the software department, legal department, finance department, travel, etc. Each department has persons working for them with specific duties or roles. For example, the software development department will have software professionals, the legal department will have lawyers and the finance department will have finance-related experts, etc.
In this organization software professionals will have access to codebases and servers but are unlikely to access legal documents and financial documents. 
Integrated access management(IAM) is done by creating a specific role i.e. certain type of access is given to the individuals who have a certain role.


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


**Features of IAM:**
- IAM helps to securely manage AWS services and resources.
- It allows us to create principals such as users, groups, and roles to have secure access to the resources.
- IAM allows us to define policies in which we allow /deny access to the resources.
- It supports identity federation for dedicated access to the AWS management console of AWS APIs.
- It provides multi-factor authentication.
- It provides a policy simulator.

 



**IAM Identities:**
An IAM Identity provides access to an AWS account, represents a user, and can be authenticated to perform actions in AWS. Policies determine what actions a user, role, or member of a user group can perform on which AWS resources and under what conditions.
A user group is similar to a user, it is an identity with permission policies that determine what the identity can and cannot do in AWS, but a role does not have any credentials(password or access keys) associated with it.

 
**IAM Users:**
An IAM user is an entity that you create in AWS and represents the person or service that interacts with AWS. The main purpose for IAM users is to give people the ability to sign in to the AWS Management Console for interactive tasks and to make programmatic requests to AWS services using the API or CLI.
A user consists of a name, a password to sign into the AWS Management Console, and up to two access keys that can be used with the API or CLI.
When created, an IAM user is granted permission through membership in a user group that has appropriate permission policies attached(recommended) or by directly attaching policies to the user.

 
**IAM Groups:**
A group is a collection of users, user groups specify permissions for a collection of users, making those permissions easier to manage for the users.
A user group cannot be identified as a Principal, a person, or an application that can request an action or operation on an AWS resource in a resource-based p
Why Laravel 🤔 ??
Published: 2023-01-16 13:29:40

**What is laravel** ?
Laravel is a PHP based web-framework for building
high-end web applications using its significant and
graceful syntaxes. Laravel was developed by Taylor
Otwell in July 2011 and it was released more than five
years after the release of the Codeigniter. It comes with
a strong collection of tools and provides application
architecture.

**How it work**
Laravel use MVC 
MVC is a short form for ‘Model
View Controller’. This illustrates the use of structure
developers when constructing applications. MVC basically is
a software which separates utility/domain/commercial
enterprise in terms of the interface of customers. This is done
by breaking MVC software into the further three parts: first
is the Model, second is the View, and the last one is the
Controller. The model handles basic machine behaviours and
information. It answers to instructions to change the status of
its documents and also to alert observers of periodic systems
when the facts change. This may be a database or a retrieval
device. So, in short, this is the record-management of the
programme or software. View correctly provides the
software's user interface feature and display information into
a form via a model which is sufficient for the interface of the
user. The controller gets the data request from the user and
passes it to the model objects and sees the execution of
appropriate actions.

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

**8 Benefits of Laravel Framework**

- It's quick and simple.
- Security is key.
- Better website performance.
- Great for Traffic-Handling.
- Really Flexible.
- Easy third-party integrations.
- Simple Website Maintenance.
- The cost of a Laravel Site.


**Some Features of Laravel**

- Authentication.
- Innovative Template Engine.
- Effective ORM.
- MVC Architecture Support.
- Secure Migration System.
- Unique Unit-testing.
- Intact Security.
- Libraries and Modular.


**Laravel Packages Which You Can Use to Optimize App**

- Spatie.
- Laravel Debugbar.
- Laravel User Verification.
- Socialite.
- Migration Generator.
Transformer Tabs
Tags: codepen
Published: 2023-01-16 13:24:22

---
title: Transformer Tabs
published: true
tags: codepen
---

<p>RWD n stuff!</p>

<p>One set of semantic HTML. One set of JS.</p>

<p>Tabs that turn into a small-screen-capable tap-to-reveal fully-functional system. </p>

<p>I used to use <code>&amp;lt;select&gt;</code> sometimes for this but that's different markup and different JS and that sucks. Plus this is easier (funner) to style.</p>

{% codepen https://codepen.io/chriscoyier/pen/nBPggM %}
Những Lí Do Nên Chọn Sử Dụng Viên Uống Adonai?
Tags: vienuongadonai, adonai
Published: 2023-01-16 13:23:07

Những Lí Do Nên Chọn Sử Dụng Viên Uống Adonai? 
Link: https://adonai.vn/vien-uong-adonai/

Một làn da trắng là biểu tượng vẻ đẹp đối với rất nhiều phụ nữ, đặc biệt là ở các nước châu Á. Ngày nay, việc sở hữu một làn da trắng sáng đã không còn là mơ ước quá xa vời. Ngoài các sản phẩm giúp nuôi dưỡng da từ bên ngoài, thì còn có viên uống trắng da Adonai. Một sản phẩm hiện đang được rất nhiều chị em phái đẹp ưa chuộng, tin dùng bởi công dụng làm đẹp da, cải thiện màu da trắng sáng một cách nhanh chóng, an toàn mà không mất nhiều thời gian. Tuy nhiên, vẫn còn rất nhiều người chưa thật sự tin về công dụng và hiệu quả mà viên uống trắng da mang lại. Bài viết dưới đây sẽ bật mí cho bạn những lí do bạn nên chọn viên uống Adonai nhé!

—————

ADONAI BEAUTY SKIN – NÂNG TẦM NHAN SẮC PHỤ NỮ VIỆT

Hotline: 0982 069 039

Fanpage: Viên Uống Trắng Da – Adonai Beauty Skin
Sự Thật Về Công Dụng Làm Trắng Viên Uống Trắng Da Adonai
Tags: adonai, vienuongtrangda
Published: 2023-01-16 13:21:19

Sự Thật Về Công Dụng Làm Trắng Viên Uống Trắng Da Adonai
Link: https://adonai.vn/vien-uong-trang-da-adonai/

Viên uống trắng da Adonai hiện tại đang “làm mưa làm gió” ngoài thị trường được rất nhiều chị em phụ nữ tin dùng và sử dụng phương pháp làm đẹp này mỗi ngày. Tuy nhiên, vẫn còn rất nhiều người chưa thật sự tin về công dụng và hiệu quả mang lại. Hãy cùng nhà Adonai Beauty Skin tìm hiểu xem viên uống này có thật sự hiệu quả không nhé!

—————

ADONAI BEAUTY SKIN – NÂNG TẦM NHAN SẮC PHỤ NỮ VIỆT

Hotline: 0982 069 039

Fanpage: Viên Uống Trắng Da – Adonai Beauty Skin
macOS Tip: How-To Get The Home And End Keys On A Windows Keyboard To Work
Tags: macos, tutorial, programming, productivity
Published: 2023-01-16 13:17:56

- [Introduction](#introduction)
- [Solution](#solution)
- [Conclusion](#conclusion)

## Introduction

Whilst macOS does allow the use of non-Macintosh layout keyboards to be used, some of the keys don't work as intended in some applications. For myself, the main two are the home and end keys. In some applications, such as VS Code, they work as expected (so to the beginning or end of a line) but in another applications, such as Apple's Pages they may not work.

To resolve this, the key bindings can be adjusted to make them respond as they would on Windows or Linux.

This article will provide a step-by-step guide on how to get them to work.

## Solution


1. In Finder, press SHIFT+CMD+g to open up the *Go to Folder* prompt.

2. Type in `~/Library` and press enter.
3. When the new Finder window appears, scroll down until you see a folder named `KeyBindings`. If the folder does not exist, create it.
4. Open a text editor, such as VS Code.
5. Create a new file and save it into the KeyBindings folder with a file name of `DefaultKeyBinding.dict`.
6. In the file, paste in the below: ``` shell
    {
    /* Remap Home / End keys to be correct */
    "\UF729" = "moveToBeginningOfLine:"; /* Home */
    "\UF72B" = "moveToEndOfLine:"; /* End */
    "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
    "$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
    "^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */
    "^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */
    "$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */
    "$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End */
    }
```
7. Save the file and exit the text editor.
8. Reboot the Mac and log back in.
9.  Open up the *Pages* application.
10. Create a new file, type some text and use the home and end keys. They should now work as they do on Windows or Linux.

## Conclusion

I hope you found this useful. Thank you for reading and have a nice day.
How do you check logs of a docker container?
Tags: docker, springboot
Published: 2023-01-16 13:17:45

This blog shares an example on how to view logs of a docker container or continuously stream it by using a spring boot application which logs a random string every one second.


[https://belowthemalt.com/2023/01/16/how-do-i-check-logs-of-a-docker-container/](https://belowthemalt.com/2023/01/16/how-do-i-check-logs-of-a-docker-container/
)
Hardwood Floor Cleaners - 4 Tips For Having Shiny New Floors
Tags: mop
Published: 2023-01-16 13:17:39

Is there anything preferable in your home over gorgeous new hardwood floors? The glow and character they add is difficult to beat. Yet, what happens when they need cleaned? Normally, hardwood floor cleaners are the arrangement, however you really want to realize a couple of significant hints first to forestall harming the surface.

1. Be certain you utilize the right floor cleaner for your specific floor. Not these items are made for a wide range of deck. Some are exceptionally intended for explicit sorts, and you should be certain you know this forthright or you could cause serious harm.

2. What are the floor producers guidelines with respect to hardwood floor cleaners? It's basic to know this in light of the fact that a colorful wood may not utilize only any sort of more clean. By following their proposals you will not need to stress over doing some unacceptable thing.

3. Do you have the right sort of mop? Indeed, this might appear to be senseless to some, yet the right mop can decrease the time spent cleaning your floors. Similarly, some unacceptable sort of mop can leave you working any more time than you should be.

4. Look into utilizing the freshest "green" cleaners. Most business floor cleaning items are made of unforgiving synthetic compounds that can eat into the surface after some time. The most recent eco-accommodating items utilize all-regular fixings that won't hurt wood surfaces.

As a matter of fact, I would go similarly as suggesting you combine your own fixings as one to clean your hardwood floor. A basic blend of vinegar and warm water is by and large all you want to take care of business.

Empty it into a splash jug and shower it straightforwardly on the mop head, not the floor. Then go over your floor with the mop and it ought to make it completely clean once more.

These are only a couple of ways to utilize hardwood floor cleaners the correct way and capitalizing on your endeavors. I have a lot more tips underneath that can assist with keeping your floors looking sparkling and lovely.

Being a housewife or simply a working woman, you must be in dire need of a process to make your cleaning much easier. Well, Best Spray Mops. For more info click here. **[https://topspraymop.com/best-mop-for-laminate-floors/](https://topspraymop.com/best-mop-for-laminate-floors/)**
Managing Multiple Environments With Terraform
Tags: terraform, cloud, cloudnative
Published: 2023-01-16 13:14:12

Managing Multiple Environments With Terraform


If you want to manage multiple environments with Terraform e.g., Dev, Stage, and Prod, you can use either:
- workspaces or
- git branches (dev, stage, prod)

But there's a third. Just before that:

1. Workspaces seem good at first:
- native to terraform, no new tool to learn; simply create and switch workspaces on the same terraform config codebase:
> terraform workspace new <env-name>
> terraform workspace list
> terraform workspace select <env-name>

- this means code maintenance is a breeze, with no code duplication

However, when it comes to using a remote backend. It might be a mess. With older versions of terraform, you could only use a single backend for all workspaces. Not exactly sure if this is the case for the latest terraform version.

Also, code (terraform module) versioning could pose a challenge. How do you promote module versions from dev to staging to prod workspace without breaking prod (since it's just one codebase right?). Variables you may say, unfortunately, variables cannot be used everywhere. Scary!

2. Using git branches solves the problem of versioning, since you can have a version in the dev branch, another in the staging branch, and another in the prod (main) branch.

However, as the codebase grows, maintenance becomes a nightmare. Too error-prone and bug-welcoming

The third option is Terragrunt, which captures the best of both worlds and adds a bonus of concurrency: terraform apply on multiple environments at the same time.

This lovely blog post series from Yevgeniy Brikman was a delightful and thought-provoking one for me. https://blog.gruntwork.io/how-to-manage-multiple-environments-with-terraform-32c7bc5d692

Have you worked with Terraform environments before? What are your thoughts?

Read the thoughts of others on the original LinkedIn and Twitter posts:

LinkedIn: https://www.linkedin.com/posts/ileriayoadebiyi_how-to-manage-multiple-environments-with-activity-7019665054975287296-4ORD
Twitter: https://twitter.com/Ileriayooo/status/1613901213744914432

Cheers!
What is the best solution to host a simple JSON
Tags: jason, webdev
Published: 2023-01-16 13:08:03

There are several free options available for hosting a simple JSON file and fetching it. Some popular options include:

GitHub: You can create a repository on GitHub and store your JSON file there. You can then use the GitHub API to fetch the JSON data.

Firebase: Firebase offers a free plan that allows you to store and retrieve JSON data. You can use the Firebase Realtime Database to store your JSON data, and use the Firebase SDK to fetch the data from your app.

AWS S3: Amazon S3 is a cloud storage service that allows you to store and retrieve files. You can use the S3 service to store your JSON file and then use the S3 API to fetch the data.

Heroku: Heroku is a platform as a service (PaaS) that allows you to deploy web applications. You can use Heroku to deploy a simple web application that serves your [Digital Marketing](https://inshopsolution.com/category/digital-marketing/).

JSONbin.io: JSONbin.io is a free, open-source platform to store and fetch JSON files, no need for authentication and easy to use, you can create a bin and store and fetch data from it.

All of these options are free to use, but they may have limitations, such as the amount of storage or data transfer. You should check the specific usage limits and costs of each service before choosing the one that best fits your needs.
CMake cheat sheet!
Tags: cpp, cmake
Published: 2023-01-16 13:05:18

---
title: CMake cheat sheet!
published: true
description: This is just a reminder of some commands I often use and why not share it if it can help someone.
tags: [cpp, cmake]
---

## Article::Article
This is just a reminder of some commands I often use and why not share it if it can help someone.

## The basics
### Generate
Generate the project into path_to_build_directory (the base CMakeLists.txt must is in the current path)
```bash
cmake -B path_to_build_directory
```
### Build
Build the project in path_to_build_directory
```bash
cmake --build path_to_build_directory
```
### Test
Launch the tests with the root in path_to_build_directory
```bash
ctest --test-dir path_to_build_directory
```

## Common stuff
### Toolchain integration
```bash
cmake -DCMAKE_TOOLCHAIN_FILE=path_to_the_toolchain .
```
### Specify the generator
```bash
# Example with Ninja
cmake -GNinja .
```
### Override an option/variable
Now MY_VAR will have the value : ON (ON/OFF can be used for boolean value with CMake)
```bash
cmake -DMY_VAR=ON
```

## Vcpkg
On all example there is an env variable named __VCPKG_ROOT__ with path where you can find vcpkg.
### Simple use of vcpkg
#### With Powershell
The quotes are meaningful
```bash
cmake -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" .
```
#### With  Bash
```bash
cmake -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" .
```

### Specify additionnal toolchain
```bash
cmake -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=my_path_to_my_other_toolchain .
```

### Specify the triplet
With the triplet for emscripten
```bash
cmake -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=wasm32-emscripten .
```

### Use Both
```bash
cmake -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=my_path_to_my_other_toolchain -DVCPKG_TARGET_TRIPLET=wasm32-emscripten .
```

## An example with emscripten for one of my projects
```bash
cmake -GNinja -B em_build -DCMAKE_TOOLCHAIN_FILE="$env:HOMEPATH/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE="$env:EMSCRIPTEN_UPSTREAM_ROOT/emscripten/cmake/Modules/Platform:Emscripten.cmake" -DEMSCRIPTEN=ON
```

## Article::~Article
I hope theses commands will improve your daily life with cmake, or you can just use an IDE that launch the build by just pressing ctrl+b.

## Sources
* [https://cmake.org/cmake/help/latest/](https://cmake.org/cmake/help/latest/)
* [https://vcpkg.io/en/docs/users/buildsystems/cmake-integration.html](https://vcpkg.io/en/docs/users/buildsystems/cmake-integration.html)
#TestCulture 🦅 Episode 21 – Good reasons to implement test automation
Tags: testing, agile, beginners, devops
Published: 2023-01-16 12:56:47

Testing ensures that the application works properly. While manual testing has its advantages, automating some tests can provide better coverage. Here are some good reasons to automate some of your tests.

1️⃣ The speed of testing is increased.
Test automation speeds up testing. Work that takes manual testers hours to achieve becomes a faster task.

2️⃣ High percentage test coverage.
Manual tests hardly cover all the use cases of an application. Automation increases test coverage and verifies that the application works across different combinations of operating systems and browsers. Automation helps testers write and execute highly detailed test scripts that test complex use cases.

3️⃣ Low risk of human error.
Test automation minimizes the risk of human error, because the monotony of the job is eliminated.

4️⃣ Reuse an already created test suite.
Creating a test suite takes time, but it is useful in the long run. Once an automated test suite is in place, it's easy to replicate on a new project.

5️⃣ Accelerate bug fixes.
Feedback happens faster, so it's quicker to report errors to developers. This allows the product to be released quickly and with the highest possible quality.

----
📚 𝕊𝕠𝕦𝕣𝕔𝕖𝕤:

🦅 https://agilitest.com/challenges/test-coverage

🦅 https://agilitest.com/blog/should-we-automate-our-exploratory-tests

🦅 https://agilitest.com/blog/when-should-you-automate-software-tests
----
[Thread on Twitter.](https://twitter.com/agilitest/status/1562817192449953792?s=20&t=KrlTHFivNBVlnmrXtY6PJA)