teleren/devto huggingface dataset:
Dart enhanced enum with custom values
Tags: dart, enum
Published: 2023-01-04 15:55:49



An enum type is **a special data type that enables for a variable to be a set of predefined constants**. It helps to make code readable and easier to understand.

For example, you might use an enum to define the gender of the people, like this:

    enum Gender{
      Male,
      Female,
      Other
    }

Now if you run the following code

    void main() {
      print(Gender.Female.index);          // 1
      print(Gender.Male.index);            // 0
      print(Gender.Male);                  //Gender.Male
      print(Gender.values[2]);             //Gender.Other
    }

We can access *index *of the element defined and element using the *index*.

Now what if we want to define custom value to the element of our enum. What if we want to assign number 1 to Male, 2 to Female and null to Other, and what if we want to return element of enum from the values that we defined for the element?

How can we do so ?

    enum Gender {
      Male(1),
      Female(2),
      Other(null);
      const Gender(this.number);
      final int? number;
      static Gender getByValue(int? i) {
        return Gender.values.firstWhere((element) => element.number == i);
      }
    }
    
    void main() {
      print(Gender.getByValue(1));    //Gender.Male 
      print(Gender.getByValue(2));    //Gender.Female
      print(Gender.getByValue(3));    //Uncaught Error: Bad state: No element
      print(Gender.getByValue(null)); //Gender.Other
      print(Gender.Other.number);     //null
      print(Gender.Female.index);     //1
      print(Gender.values[2]);        //Gender.Other
    }

In the above code snippet, we defined our values to the element of the the enum Gender. So, we can access the element of enum using the values we defined and vice versa. We can also access element using *index* and *values* like before. To use the values we defined, we can use the function *getByValue* that we created and *number* variable we defined.

## Thanks for Reading! ✌️
pyaction 4.14.1 Released
Tags: github, docker, python, showdev
Published: 2023-01-04 15:54:06

## TL;DR

I just released [pyaction](https://github.com/cicirello/pyaction) 4.14.1, a [Docker container with Python, git, and the GitHub CLI](https://dev.to/cicirello/pyaction-a-docker-container-with-python-git-and-the-github-cli-930).


## Changelog 4.14.1 - 2023-01-04
  
### Changed
* Bumped GitHub CLI to 2.21.2.


## Current Version List

This latest release of pyaction includes:
* Python 3.11.1
* [GitHub CLI 2.21.2](https://github.com/cli/cli/releases/tag/v2.21.2)
* git 2.30.2
* curl 7.74.0
* gpg 2.2.27



## More Information

For more information, see my earlier post about pyaction here on DEV, as well as pyaction's GitHub repository.

{% link https://dev.to/cicirello/pyaction-a-docker-container-with-python-git-and-the-github-cli-930 %}

{% github cicirello/pyaction %}



## Where You Can Find Me

Follow me here on DEV:

{% user cicirello %}

Follow me on GitHub:

{% github cicirello/cicirello %}

Or visit my website:

{% embed https://www.cicirello.org/ %}
VerifyMe y Techind Group establecen una relación estratégica para abordar la autenticación de productos
Published: 2023-01-04 15:41:02

VerifyMe, Inc. (OTCQB:VRME), proveedor de soluciones de tecnología digital especializado en la prevención de la falsificación, la autenticación, la serialización, la extracción de datos, el seguimiento y la localización, las características de las etiquetas, los embalajes y los productos, se complace en anunciar que ha establecido una relación estratégica con Techind Engineers & Consultants-Impex ("Techind"), parte de Gohar Group, de la India
Techind tiene experiencia en la serialización y el rastreo, habiendo vendido e instalado más de 100 sistemas de serialización de líneas de producción para 10 clientes de la industria farmacéutica en los últimos años.

VerifyMe y Techind trabajarán conjuntamente para proporcionar la solución de serialización y seguimiento VeriPASTM a la amplia gama de industrias y clientes de Techind, con especial atención a la industria farmacéutica. Otras áreas de proyectos de Techind incluyen: Biotecnología, Alimentos Procesados, Productos Químicos y Envases Aliados hasta la etapa terciaria, sobre una base de llave en mano. Con más de 35 años de presencia en el mercado, Techind se ha ganado su posición, confianza y buena voluntad en la región.

El director general de Techind, A.J.S. Gohar, declaró: "Tenemos experiencia en la serialización y el seguimiento y rastreo en los últimos 9 años, ya que nuestros clientes han solicitado soluciones de autenticación de productos y protección de marcas. VerifyMe's VeriPASTM es una actualización de lo que hacíamos anteriormente y algo con lo que creemos que nuestros clientes actuales pueden integrarse y que los nuevos clientes desearán".

https://www.imperiofinanciero.mx/
https://www.informativocidadao.com/
EAE Business School, en el TOP 5 de escuelas españolas en el ranking de América Economía
Published: 2023-01-04 15:40:28

EAE Business School ha sido destacada entre las cinco mejores escuelas españolas, junto con IESE, ESADE, IE y ESIC- en el ranking de la prestigiosa revista latinoamericana, América Economía. En esta edición, EAE se posiciona en el top 30 y sube respecto al año anterior en las categorías de experiencial multicultural, en el poder de Red en Latinoamérica, en foco en la innovación y en su posicionamiento internacional. Además, EAE es la segunda escuela española con mayor porcentaje de mujeres entre sus estudiantes de MBA.

El ranking está liderado por Stanford Graduate School of Business, seguida de IESE Business School, Harvard Business School, London Business School y Haas School of Business.

El ranking se configura a partir de la evaluación de cinco dimensiones de los programas de MBA de tiempo completo: Experiencia Multicultural y Diversidad (22,5%), el Potencial de Redes para Latinoamericanos (15%); Selectividad del estudiante (27,5%); Foco en Innovación (10%); Posicionamiento Internacional (25%); puntuación alcanzada en rankings: The Economist, Financial Times y QS.

EAE Business School es un centro de formación superior de ámbito internacional fundado en 1958 y especializado en management. A lo largo de sus más de 60 años de historia han confiado en EAE directivos y profesionales de más de 100 nacionalidades de los cinco continentes.

https://www.imperiofinanciero.mx/
https://www.informativocidadao.com/
Medical Billing & Credentialing Services
Tags: medical, healthcare, medicalbilli
Published: 2023-01-04 15:38:29


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

Medical billing, coding & credentialing services by [MedICD](https://medicd.com/) are not just another billing solution to outsource medical billing and transcribe patient data into billing codes. An expert team of medical billers and coders at MedICD ensures timely preparation of the claims and expedite the overall process to ensure that medical practices get maximum reimbursements in less time.
Learn Test Driven Development With Django Part 15 User Profile Update
Tags: python, django, testing, tdd
Published: 2023-01-04 15:33:00

In this video, we'll go through the process of creating a view for updating user profiles in Django using Test Driven Development (TDD). We'll start by writing tests for the view, and then use those tests to guide the development of the view and its associated form. Along the way, we'll also explore how to set user profile pictures using Gravatar, a third-party service that allows users to create avatars based on their email addresses. By the end of this video, you'll have a solid understanding of how to use TDD to build user profile functionality in Django, and how to leverage third-party services like Gravatar to enhance your application.

{%youtube bSTISaMvNnY%}
Clean Code Made Simple
Tags: webdev, programming, beginners, tutorial
Published: 2023-01-04 15:32:27

## Introduction
As a developer, you know the importance of writing code that is easy to read, understand, and maintain. Not only does clean code save time and frustration for yourself, but it also benefits your team and the overall success of a project.

But what exactly is clean code, and how can you achieve it?
## What is it?
Clean code is code that is well-organized, easy to follow, and written with best practices in mind. It is free of redundancies, clutter, and confusing syntax. It is also properly commented and documented, making it easier for others to understand and work with.

There are many benefits to writing clean code. For one, it saves time and energy in the long run. Imagine having to wade through hundreds of lines of disorganized, hard-to-follow code. It would take much longer to understand and make changes to the code, leading to decreased productivity and possibly even errors. On the other hand, clean code is easy to read and understand, making it faster and easier to work with.

Clean code also makes it easier to collaborate with others. When code is easy to understand, team members can more easily pick up where others left off, and new team members can quickly get up to speed. This leads to a smoother workflow and better overall project success.
 
## But how can you improve your coding skills and achieve clean code? 
One helpful resource is our free eBook, "[Clean Code Made Simple.](https://ahmedonour.gumroad.com/l/CleanCodeMadeSimple)" This quick guide covers best practices for writing clean code, and includes practical examples and exercises to help you put your new skills into practice.

Don't let messy, hard-to-follow code hold you back any longer. Start writing clean code and improve your development experience with "[Clean Code Made Simple.](https://ahmedonour.gumroad.com/l/CleanCodeMadeSimple)"
### [Download the free eBook](https://ahmedonour.gumroad.com/l/CleanCodeMadeSimple)

![Clean Code Made Simple](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2f0cdm7vqy3tvlm0qe9l.jpg)
2022 Rewind feat. StackOverflow Dev Survey 🚀🔥
Tags: programming, javascript, webdev, beginners
Published: 2023-01-04 15:14:03

#Developer Type
Most of the Respondents regard themselves as Full-stack, back-end, front-end, or desktop developers. Almost 9% classify themselves as this Cloud Infrastructure Developer.

#Popular Programming, Scripting, and Markup languages
2022 marks JavaScript’s tenth year in a row as the most commonly used programming language.

But, it’s a different picture for those learning to code. HTML/CSS, Javascript and Python are almost tied as the most popular languages for people learning to code.

![survey img](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fld5qjav5w2g4yvig6mu.png)

#Web frameworks and technologies 
Node.js and React.js are the two most common web technologies used by Professional Developers and those learning to code.

![survey img](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oyoaf1xjzzhxn9ndqdq5.png)
Best practices when submitting your Cumulocity IoT feature idea with Aha!
Tags: iot, cumulocity, feedback, features
Published: 2023-01-30 13:20:53

---
title: Best practices when submitting your Cumulocity IoT feature idea with Aha!
published: true
date: 2023-01-04 15:02:25 UTC
tags: iot, cumulocity, feedback, features
canonical_url: https://tech.forums.softwareag.com/t/best-practices-when-submitting-your-cumulocity-iot-feature-idea-with-aha/267879
---

Software AG Product Managers and other team members primarily use [Aha!](https://cumulocityiot.ideas.aha.io/ideas/new) to collaborate and coordinate the development of new product features.

## When submitting a product idea, it is better to answer Why not What or How

It is generally more effective to focus on the “why” behind a product feature idea rather than just the “what” and “how.”. This is because understanding the motivation behind an idea can help to inform the development process and ensure that the product is aligned with the needs and goals of the users.

For example, rather than simply describing what the feature does and how it works, it can be more effective to explain why this feature is needed and how it will solve a particular problem or address a specific need. This helps the Product Manager to create a clear vision for the product and ensure that Software AG team designs and develops it in a way that meets the needs of the target audience.

[![IMG_80A29C74FBFC-1](https://aws1.discourse-cdn.com/techcommunity/optimized/3X/c/5/c5ad65edbb83b5214c704a2fc32b2ee7418cf3c2_2_648x500.jpeg)](https://aws1.discourse-cdn.com/techcommunity/original/3X/c/5/c5ad65edbb83b5214c704a2fc32b2ee7418cf3c2.jpeg "IMG\_80A29C74FBFC-1")

In summary, answering the “why” behind a product idea can help to provide context and meaning, and can ultimately lead to a more successful and impactful product.

## Do not expect that all features will be implemented

It is important to understand that not all features or ideas will necessarily be implemented in the product. There are often constraints on resources, time, and budget that can impact which ideas will be picked up.

Ultimately, the product team makes decisions about which features to implement based on a variety of factors, including the overall strategy of the product. However, Software AG Product Managers strive to create the best value proposition with Cumulocity IoT and consider Aha! an important communication channel with the users.


[Read full topic](https://tech.forums.softwareag.com/t/best-practices-when-submitting-your-cumulocity-iot-feature-idea-with-aha/267879)
CORS for babies 👶
Tags: security, webdev, beginners
Published: 2023-01-04 14:55:05

Imagine that you have a special toy chest in your bedroom. The toy chest has lots of fun toys inside, and you only want to share them with your friends. You can use CORS to specify which friends are allowed to play with the toys in your toy chest.

For example, you might want to allow your best friend to play with the toys in your toy chest, but not your little brother. CORS helps you to control who is allowed to access the toys in your toy chest.

This is like having a special lock on the toy chest that only opens for your friends who have been given a special key. CORS helps to keep your website's resources safe and private, just like how a toy chest helps you to keep your toys organized and safe.
Gradient Texts with Tailwind CSS
Tags: html, css, tailwindcss, ux
Published: 2023-01-04 14:44:55

Gradients are great. Right?
And when it comes to Tailwind CSS it's also great. Right!

So lets make a nice gradient header with Tailwind 🎯

At the example below, I made a simple `<h1>` with Tailwind codes only.

Please open the pen in full mode or [just click here](https://codepen.io/altug/pen/KKBgQyX?editors=1000) to see it larger (for desktops).

{% codepen https://codepen.io/altug/pen/KKBgQyX %}

### Lets Breat It Down

**max-w-screen-md** 👉 width of the h1 
**mt-8** 👉 margin-top: 2rem 
**mx-auto** 👉 margin-left: auto; margin-right: auto to center the h1 
**text-center** 👉 text-align: center 
**text-7xl**  👉 font-size: 4.5rem 
**font-bold**  👉  font-weight: bold 
**bg-clip-text**  👉  crop the element’s background to match the shape of the text
**text-transparent** 👉 making text transparent to clip-text work on gradient
**bg-gradient-to-r**  👉  the gradient from left to right 
**from-orange-600**   👉  starting color 
**to-purple-600**   👉  end color 

I 💙 Tailwind CSS
Como fazer um DAST pelo portal
Tags: veracode, beginners, tutorial, security
Published: 2023-01-04 14:43:21

Acessamos o [portal da Veracode](https://web.analysiscenter.veracode.com/), clicamos em "**Scans & Analysis**" e em "**Dynamic Analysis**".
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3453vm1a69gg2c4p5fu8.png) 

No canto superior direito, clicamos no botão "**Scan Web Applications**"
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l1wtk0z4kccv2l13pzad.png)

Na primeira tela configuramos os identificadores da nossa análise, como o nome, quais URLs vão ser analisadas e quem pode acessar os resultados:
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fvop3v0bmitwuk8qz9pn.png)

Descendo um pouco a tela chegamos em "**Organization Information**", onde podemos colocar informações adicionais ao scan. 
No final da tela, precisamos clicar no Checkbox da seção "**Scanning Certification**", confirmando que temos permissão para fazer a análise no endereço informado. Depois clicamos no botão "Configure".
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qhccygql9oa71cvh4fy2.png)

Na tela de configuração, podemos usar as seções "**Dynamic Analysis Blocklist**" e "**Dynamic Analysis User Agent**" para definir o que vai ser aplicado para todas as URLs. 
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/35f3m5vucb45b2dj8bxi.png)

Na seção "**Dynamic Analysis Configuration**" em cada uma das URLs, no canto direito, temos um botão de edição representado por um lápis. Clicando nele podemos editar uma série de itens particulares desse endereço e seus subdomínios, como autenticação, limites e se vai ser preciso configurar o [ISM](https://docs.veracode.com/r/Internal_Scanning_Management) para analisar um ambiente disponível em uma intranet.
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ti0g3oeibtovbfhatvno.png)

Depois de todas as personalizações, clicamos no botão "Schedule"
Nessa seção podemos definir se a análise vai ser feita uma vez ou de forma recorrente, fora as opções de salvar para depois ou apenas validar se o é possível fazer por meio do **Prescan**
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jf3itu2bij01dtuzpmmm.png)

Caso exista alguma necessidade de pausar o scan, temos a opção de "**Pause and Resume**". Um exemplo de uso, é um ambiente que só fica ligado em horário comercial, onde podemos colocar para o scan exatamente a janela em que o site vai ficar disponível. 

Por fim clicamos em "**Review and Submit**" para poder revisar as configurações, caso esteja tudo bem, basta clicar em "**Submit**"
![](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t7y1p9loxlic14bgpydx.png)

Pronto, agora é só aguardar os resultados.
Starting over is never easy...
Tags: beginners, codenewbie
Published: 2023-01-04 14:42:38

But sometimes, it's what needs to be done. I started my journey to becoming a Dev at the beginning of 2021, when I felt like my life was going nowhere. I worked hard despite my personal situations and mental health being against me. I still remember hearing a senior Dev say, "I'm not a person that cries, but I cried every day learning JavaScript". I thought to myself, "well _great_, all it takes for my waterworks to turn on is to see a sad doggy".

Still I persevered! I struggled for a year until I learned the basics of functions and thought I was ready for the big leagues! I polished my resume and LinkedIn brighter than any diamond. I cranked out application after application. Messaged recruiter after recruiter. Was ghosted and ghosted. Then one day... Success! I set foot in the big leagues as a Jr Automation Engineer! Riding that high is a feeling I'll never forget. (Yes, I cried)

Then I learned _real_ quick that knowing basic functions and barely knowing built-in methods was nowhere near enough. Hats off to my previous employer because I could tell they truly wanted me to go far. Sadly we just couldn't get our directions to line up like we wanted and had to part ways.

Still... I persevere! I won't let that drop me. Not after the taste of glory I had. Not after seeing some fruit from my hard work. So here I am, starting over. I'm now enrolled in a bootcamp and learning from some truly awesome people. Starting over never felt so right.
Lioc Editorial ayuda a afrontar la crisis al lado de los emprendedores Tomás Gracia y Sergio Veintemilla
Published: 2023-01-04 14:42:28

En esta formación de siete días patrocinada por Lioc Editorial, los participantes encontrarán las claves para ganar posicionamiento frente a la crisis provocada por el coronavirus, superar las creencias limitantes, encontrar clientes, convertirse en un experto en ventas, vencer los miedos, dominar el arte de la persuasión y aumentar los ingresos.

Y es que la ayuda a los emprendedores y empresarios para ganar posicionamiento, abrir nuevos mercados, multiplicar la facturación y obtener reconocimiento es la razón de ser de Lioc Editorial desde sus orígenes, forma parte de su ADN. Sus raíces se remontan al año 1992, cuando -impulsados por la pasión por el conocimiento -sus fundadores crearon una máquina que permitiera imprimir a color a precios de blanco y negro, para que centros de formación de toda España pudieran disponer de manuales de alta calidad. Pero había un obstáculo: la documentación no estaba en soporte informático, sino que cada profesor la tenía recopilada de manera artesanal, en forma de apuntes y recortes. Así que trabajaron en pruebas para pasar todo este conocimiento al soporte digital, y a partir de ahí pudieron empezar a publicar miles de manuales y libros de disciplinas muy diferentes: arquitectura, aeronáutica, mecánica, energía solar, reiki...

El siguiente paso fue cuando el mercado de la formación empezó a entrar en el mundo online y, para dar un mayor servicio a los centros formativos y ayudar a difundir sus cursos digitales, se introdujeron en el mundo del marketing.

https://www.imperiofinanciero.mx/
https://www.informativocidadao.com/
AirBit Club "Un empuje para la economía mundial"
Published: 2023-01-04 14:40:32

Mientras que la mayoría de las industrias se han visto sumamente afectadas, otras han crecido durante este período de tiempo. Específicamente, los negocios digitales, los cuales han aportado significativamente a la economía mundial. El motivo por el cual estos negocios han podido sobrevivir y crecer en este tiempo es porque no requieren de contacto humano, y cuando el mundo está completamente paralizado, estos negocios suplen la demanda que todavía existe por insumos básicos, entretenimiento y comercio.

Es evidente que los beneficios de la digitalización son aparentes y necesarios. Es por ello por lo que la economía y los activos digitales han sido de gran ayuda para durante la pandemia. Por ejemplo, los activos o monedas digitales como Bitcoin hacen posible el intercambio y el comercio sin la necesidad de terceros, y los negocios como AirBit Club permiten generar ingresos en activos digitales para estabilizar la economía de muchas personas afectadas por la recesión económica actual.

Según la Organización Internacional de Trabajo, solo entre abril y junio se perderán 195 millones puestos de trabajo. No obstante, AirBit Club ofrece la posibilidad de emprender un negocio propio a más de dos millones de personas y los números van en aumento. Sin olvidar que cuentan con presencia en más de 160 países y que han diseñado opciones más económicas de ingreso con el objetivo de llegar y apoyar a la mayor cantidad de familias posibles.

https://www.imperiofinanciero.mx/
https://www.informativocidadao.com/