teleren/devto huggingface dataset:
Completed My Hacktoberfest Challenge
Tags: hack23contributor
Published: 2023-10-27 15:46:07

These are My 4 Contributions on Hacktoberfest that are :-

1.[First Contribution](https://github.com/Aditya-devp/Contributershub/pull/107)

2.[Second Contribution](https://github.com/pawarspeaks/TechNexus/pull/17)

3.[Third Contribution](https://github.com/pawarspeaks/TechNexus/pull/23)

4.[Fourth Contribution](https://github.com/Aditya-devp/Contributershub/pull/124)

I have ensured that my GitHub Account matches my HacktoberFest Profile.
C# - Dependency Injection and Inversion of Control (IoC) Containers
Tags: csharp, programming, tutorial, opensource
Published: 2023-10-27 15:30:00

Dependency Injection (DI) and Inversion of Control (IoC) are design principles that promote the separation of concerns and improve the testability, maintainability, and flexibility of your code. C# offers various IoC containers and DI frameworks that facilitate managing object dependencies.

Here's an example using the popular IoC container called Autofac:

```csharp
using System;
using Autofac;

public class Program
{
    public static void Main()
    {
        // Create a container builder
        var containerBuilder = new ContainerBuilder();

        // Register dependencies with the container
        containerBuilder.RegisterType<Logger>().As<ILogger>();
        containerBuilder.RegisterType<EmailService>().As<IMailService>();

        // Build the container
        var container = containerBuilder.Build();

        // Resolve and use dependencies
        using (var scope = container.BeginLifetimeScope())
        {
            var logger = scope.Resolve<ILogger>();
            var mailService = scope.Resolve<IMailService>();

            var app = new Application(logger, mailService);
            app.Run();
        }
    }
}

public interface ILogger
{
    void Log(string message);
}

public class Logger : ILogger
{
    public void Log(string message)
    {
        Console.WriteLine($"Logging: {message}");
    }
}

public interface IMailService
{
    void SendMail(string to, string subject, string body);
}

public class EmailService : IMailService
{
    public void SendMail(string to, string subject, string body)
    {
        Console.WriteLine($"Sending email to {to}, Subject: {subject}, Body: {body}");
    }
}

public class Application
{
    private readonly ILogger _logger;
    private readonly IMailService _mailService;

    public Application(ILogger logger, IMailService mailService)
    {
        _logger = logger;
        _mailService = mailService;
    }

    public void Run()
    {
        _logger.Log("Application started.");
        _mailService.SendMail("user@example.com", "Hello", "Welcome to our app!");
        _logger.Log("Application finished.");
    }
}
```

In this example:

- We use Autofac to create a container that manages the dependencies for the `Application` class.
- We register `Logger` and `EmailService` as implementations for the `ILogger` and `IMailService` interfaces.
- In the `Application` class, we inject the dependencies through its constructor.
- We resolve the dependencies within a container scope and use them to run the application.

IoC containers like Autofac simplify the management of dependencies in complex applications, promoting modularity and testability. They also support various features like object lifetime management and automatic resolution of dependencies, making it easier to build scalable and maintainable applications.
The Vision of One or the Vision of Many: A Dilemma in the Age of Innovation(Elon Musk or Jack Dorsey)
Tags: decentralization, centralized, systems
Published: 2023-10-27 15:29:46

Imagine a solar system with a single star and many planets, each with its own orbit, rotation, and characteristics. Now imagine another solar system with multiple stars and fewer planets, each influenced by the gravitational forces of different stars. Which solar system is more stable, more diverse, and more conducive to life?

This is the metaphor that comes to my mind when I think about the vision of one versus the vision of many in the world of technology and innovation. Should we follow the lead of a single visionary who has a clear and ambitious plan for the future, or should we embrace the diversity and creativity of many visionaries who have different perspectives and goals?

A few years ago, if you had asked me this question, I would have told you that I believe in the vision of many. I would have argued that from chaos comes order, and that the vision of many creates chaos that fosters innovation and adaptation. I would have associated Jack Dorsey with the vision of many, not from his role as the CEO of Twitter, but from his involvement in Bitcoin, Nostr, and Primal, projects that aim to decentralize and democratize various aspects of society.

But lately, I have been conflicted by the impressive achievements of Elon Musk, who epitomizes the vision of one. He has a grand vision for humanity that spans across multiple domains, such as space exploration, electric vehicles, renewable energy, neural interfaces, and artificial intelligence. He has demonstrated his ability to execute his vision with remarkable speed and efficiency, creating companies that disrupt and dominate their respective industries.

Can the vision of one and the vision of many coexist and complement each other, or are they incompatible and competitive? While I have not lived long enough to witness the long-term outcomes of these two approaches, I can see from a distance that both have their merits and drawbacks. The vision of one can provide direction, focus, and scale, but it can also entail risk, rigidity, and monopoly. The vision of many can offer diversity, creativity, and resilience, but it can also result in fragmentation, confusion, and conflict.

What does this mean for the computing systems of the future? Which approach has more advantages over the other, or should we reframe the question and look at how each approach has been implemented? Does this mean that centralized systems are not all that bad, or that decentralized systems are not all that good? Time will tell.
Como Pegar Valor Dinamicamente de Input no React ⚛️
Tags: react, reactjsdevelopment, beginners
Published: 2023-10-27 15:27:52

Beeem vindes ao meu primeiro post!!! Queria dizer para vocês que estou muito empolgado para compartilhar ideias bacanas, ou até mesmo maturar o básico através da escrita. _Ok, Mas Cristian, seu primeiro post vai ser desse conteúdo simplão ?! — Sim._ 💋💋

Sem mais delongas e explicações desnecessárias, bora de conteúdo.

---

## Input Básico de Texto
Geralmente a aplicação de input faz sentido em formulários, pois bem, vamos começar olhando a declaração de input básico do nosso querido HTML.


![Code lines](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ry4922a4zvn2e0scivhu.png)

## Armazenando Valor do Input de Texto
Quando estamos lidando com componentes, toda a informação é guardada no estado do componente. Podemos usar o ilustríssimo hook `useState` para acompanhar cada valor de entrada.


![Code lines](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcqjhcl00rckbl9l2bzw.png)

Chegando à magia _Reactlista_, vamos gerenciar o valor do input adicionando o atributo value ao nosso componente e linkando com a nossa variável `inputValue` .


![Code lines](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/exgus08wz8c2pjqzujza.png)

O valor inicial do input é definido pelo estado do componente `inputValue`, que por sua vez, é gerenciado pelo hook `useState` _— Show ! Só copiar e colar ?! NOP_. Ao rodar no StackBlitz da vida, já temos a saudosa mensagem:


> Warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.

Que interessante né, se a gente quiser ter um componente **mu-tá-vel**, temos que usar concomitante o atributo `onChange`, do contrário, deveríamos ter declarado `defaultValue` para termos o componente apenas como um campo de leitura. Ou seja, o próprio console avisa sobre as 💩 que estamos fazendo.

## Verificando a dinaminicidade do Input de Texto
Vamos adicionar o atributo `onChange` no nosso componente chamando a função `handleChange`.


![Code lines](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n8q98s47m5whde01p2t3.png)

_Now_, vamos criar a função `handleChange` .


![Code lines](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/47rahmt7kj7b3x4mzbpv.png)

Quando o usuário altera o valor do input, o evento `onChange` é disparado e chama a função `handleChange`, que atualiza o estado do componente com o novo valor do input. Dessa forma, o valor do input sempre estará sincronizado com o estado do componente! 💥

---

Finalizamos nosso post , mas antes de ir, o código está [aqui](https://stackblitz.com/edit/react-ts-z67kkc?file=index.tsx), e se gostou e fez sentido, não se esqueça de reagir e comentar, isso me motiva muito!

💻 GitHub: [cristianmeelo](https://github.com/cristianmeelo)
💼 LinkedIn: [Cristian Melo](https://www.linkedin.com/in/cristian-melo/)
Embracing Challenges: My Journey as a Passionate Developer with Disabilities
Tags: webdev, javascript, programming, html
Published: 2023-10-27 15:25:11



Introduction: In this blog post, I will share my personal journey as an aspiring web developer with severe disabilities and a deep passion for coding. Despite the challenges I face, I am determined to pursue a career as a web developer and constantly strive to improve my skills.


Overcoming Adversity: I will discuss the unique challenges I encounter as a person with severe disabilities and how I have found solace and purpose in the world of coding.

Embracing the Passion: I will explore my unwavering passion for coding and how it has become a driving force in my life, pushing me to overcome obstacles and pursue a career as a web developer.

The Pursuit of Web Development: I will delve into my specific interest in web development and the reasons why I have chosen this field to channel my creativity and problem-solving skills.

The Ongoing Journey: I will candidly share the difficulties I have faced while learning Object-Oriented Programming (OOP) in JavaScript and how it has been a significant challenge for me. I will express my desire for guidance and support in this area.

Seeking Guidance: I will express my eagerness to find mentors or individuals who can provide guidance and support in my journey as a web developer, particularly in understanding and mastering OOP concepts in JavaScript.

Conclusion: In conclusion, this blog post serves as a testament to my unwavering determination and passion for web development despite my severe disabilities. I hope that by sharing my story, I can connect with others who may be facing similar challenges and find the support and guidance they need to succeed in their own coding journeys.
Arduino PRO Introduces Portenta Hat Carrier, Providing A Modular SBC Offering To Bridge The Arduino And Raspberry Pi Ecosystems
Tags: webdev, ai, news, opensource
Published: 2023-10-27 15:23:05

Arduino, a prominent name in open-source hardware, has introduced the Portenta Hat Carrier, expanding its Arduino PRO range. This new hardware component is designed to transform the Portenta X8 into an industrial Single Board Computer (SBC) compatible with Raspberry Pi® Hats. It is also compatible with Portenta H7 and Portenta C33 systems on modules. The Portenta Hat Carrier simplifies the expansion of Portenta modules to include various peripherals, such as Raspberry Pi® HATs compatible with the Model B 40-pin header, Ethernet, microSD, and USB support.

This versatile tool is well-suited for both prototyping and scaling up, featuring dedicated JTAG pins for quick debugging, an onboard CAN transceiver, additional analog I/Os, and a PWM fan connector. Arduino's Portenta Hat Carrier is tailored to meet the needs of professional users implementing Raspberry Pi® technology in commercial solutions.

Massimo Banzi, Arduino’s co-founder, chairman, and CMO, highlighted how the Portenta Hat Carrier bridges the gap between the Arduino and Raspberry Pi® ecosystems, providing a modular platform for a wide range of applications. It facilitates Linux prototyping using Raspberry Pi® Hats and can be applied to various industrial applications, from robotics and intelligent sorting to vehicle monitoring and smart sensing.

The Portenta Hat Carrier is available for purchase through the Arduino Store and major distributors, priced at €39 / US$45. This addition to Arduino's hardware lineup offers a valuable tool for developers and professionals seeking seamless integration and versatility in their projects.

Click [here ](https://www.techdogs.com/tech-news/business-wire/arduino-pro-introduces-portenta-hat-carrier-providing-a-modular-sbc-offering-to-bridge-the-arduino-and-raspberry-pi-ecosystems)to read the full news article!


Like what you read? Head to the **[TechDogs](https://www.techdogs.com/)** homepage to find the latest tech content infused with drama and entertainment. We've got [News,](https://www.techdogs.com/resource/tech-news)  [Articles](https://www.techdogs.com/resource/td-articles), White Papers, Case Studies, Reports, [Videos](https://www.youtube.com/@techdogs_inc) and [Events](https://www.techdogs.com/resource/events) - the complete lot to help you Know Your World of Technology.
The Complete Guide to Time Series Models
Published: 2023-10-27 15:21:28

Time series models are a category of statistical and machine learning models that are used to analyze and make predictions based on data that is collected or recorded over time. As the name suggests, it involves working on time (years, days, hours, minutes) based data, to derive hidden insights to make informed decision making. It has a natural temporal ordering, making it unique compared to cross-sectional data. Characteristics include trend, seasonality, and autocorrelation. The models are widely employed in various domains, including finance, economics, climate science, and more.

**What is a Time Series?**
A time series is a sequence of data points collected at regular time intervals. Time series assist in providing insights and predictions to inform decision-making. Examples of time series includes stationary series, random walks.

**Components of Time Series**

Time series data consists of the following components:
**Trend:**

This is the general tendency of data to grow or decline over a long period of time that is the long-term or downward movement in data.

**Seasonality:**

Seasonality is characterized by repetitive patterns or cycles at fixed intervals. It occurs due to rhythmic forces which occur in a regular & periodic manner.

**Cyclical Variations:**

These are movements in a time series that are not attributed to a regular movement. There is no fixed interval, uncertainty in movement and its pattern.

**Irregular Variations:**

These are unexpected situations/events/scenarios and spikes in a short time span.

**Types of Time Series Models**

**Autoregressive (AR) model**. AR models use the previous values of the time series to predict the current value. For example, an AR model for daily stock prices might use the closing prices from the previous day, the previous week, and the previous month to predict the closing price for today.

**Moving average (MA) model.** MA models use the previous errors to predict the current value. For example, an MA model for daily stock prices might use the errors from the previous day, the previous week, and the previous month to predict the error for today.

**Autoregressive integrated moving average (ARIMA) model.** ARIMA models are used to model non-stationary time series data, which is data that has a trend or seasonality.
 Seasonal autoregressive integrated moving average (SARIMA) model. SARIMA models are like ARIMA models, but they also account for seasonality in the data.

**Conclusion**


Time series models are powerful tools for analyzing and forecasting time-ordered data. Selecting the right model and understanding the components of the data, are critical for accurate predictions. With the appropriate model and evaluation techniques, you can make informed decisions based on historical data trends and patterns.
The Complete Guide to Time Series Models
Published: 2023-10-27 15:21:24

Time series models are a category of statistical and machine learning models that are used to analyze and make predictions based on data that is collected or recorded over time. As the name suggests, it involves working on time (years, days, hours, minutes) based data, to derive hidden insights to make informed decision making. It has a natural temporal ordering, making it unique compared to cross-sectional data. Characteristics include trend, seasonality, and autocorrelation. The models are widely employed in various domains, including finance, economics, climate science, and more.

**What is a Time Series?**
A time series is a sequence of data points collected at regular time intervals. Time series assist in providing insights and predictions to inform decision-making. Examples of time series includes stationary series, random walks.

**Components of Time Series**

Time series data consists of the following components:
**Trend:**

This is the general tendency of data to grow or decline over a long period of time that is the long-term or downward movement in data.

**Seasonality:**

Seasonality is characterized by repetitive patterns or cycles at fixed intervals. It occurs due to rhythmic forces which occur in a regular & periodic manner.

**Cyclical Variations:**

These are movements in a time series that are not attributed to a regular movement. There is no fixed interval, uncertainty in movement and its pattern.

**Irregular Variations:**

These are unexpected situations/events/scenarios and spikes in a short time span.

**Types of Time Series Models**

**Autoregressive (AR) model**. AR models use the previous values of the time series to predict the current value. For example, an AR model for daily stock prices might use the closing prices from the previous day, the previous week, and the previous month to predict the closing price for today.

**Moving average (MA) model.** MA models use the previous errors to predict the current value. For example, an MA model for daily stock prices might use the errors from the previous day, the previous week, and the previous month to predict the error for today.

**Autoregressive integrated moving average (ARIMA) model.** ARIMA models are used to model non-stationary time series data, which is data that has a trend or seasonality.
 Seasonal autoregressive integrated moving average (SARIMA) model. SARIMA models are like ARIMA models, but they also account for seasonality in the data.

**Conclusion**


Time series models are powerful tools for analyzing and forecasting time-ordered data. Selecting the right model and understanding the components of the data, are critical for accurate predictions. With the appropriate model and evaluation techniques, you can make informed decisions based on historical data trends and patterns.
Podcast: Eliminate The Overhead In Your Data Integration With The Open Source dlt Library
Tags: podcast, dataengineering, dlt, opensource
Published: 2023-10-27 15:19:34

Resharing the episode we did on Tobias Macey's data engineering podcast.

https://www.dataengineeringpodcast.com/dlt-data-integration-library-episode-390

dlt is an open-source Python library that allows you to load data from various and often messy data sources into well-structured, live datasets. 

It simplifies the process of data extraction, normalization, and loading, and can be easily integrated into your Python scripts. 

It's user-friendly, scalable, and can run wherever Python runs, making it a powerful tool for both beginners and senior professionals. 

You can install it with pip install dlt. For more details, check out the [Introduction to dlt.](https://dlthub.com/docs/intro)
Introduction To Web Remarketing
Tags: webdev, beginners, tutorial, productivity
Published: 2023-10-27 15:12:51

Imagine walking into a physical store, eyeing a snazzy purple shirt, and deciding not to buy it. The next day, you're in the park, reading a book, and a photo of that exact shirt lands in your lap with a message, "Did you forget something?" Creepy, right? This eerie scenario is similar to how online retargeting works. 

It's a digital marketing tactic that uses cookies to remind you of products or websites you've previously visited. Essentially, it's the internet's way of saying, "Hey, remember that purple shirt?" It's a clever strategy that keeps products you've shown interest in fresh in your mind, making you more likely to revisit and, ultimately, make a purchase.

**What Is Digital Remarketing?**

Remarketing, or retargeting, is like a digital wizard that keeps products you've shown interest in following you around the web. Imagine visiting a shoe paradise like Zappos, gazing at a stunning pair of boots, and then exiting without a purchase. Suddenly, those boots pop up everywhere you go online – on your local news site, in your Gmail inbox, and even on your social media feed. It might feel a bit like magic, but it's all about technology and clever advertising tactics. This digital marketing sorcery reminds you of what caught your eye, enticing you to make that purchase you can't resist. But where did this enchanting online practice begin, and how does it work its spell? Let's dive into the fascinating world of web remarketing.

**Web Remarketing — A Brief History**

Remarketing, a relatively recent addition to the marketing world, can be traced back to the inception of the third-party cookie in **1994** by Lou Montulli, a Netscape engineer. In **1998**, Doubleclick introduced retargeting, later acquired by Google. By **2010**, Google launched its version, coining the term "remarketing." It initially focused on the display network, eventually expanding to the search network and YouTube in **2013**. Facebook joined the retargeting arena with FBX targeting in the same year. Today, remarketing is a standard practice in digital marketing, with various advertising and social media platforms seamlessly incorporating it into their targeting strategies.

Click [here](https://www.techdogs.com/td-articles/curtain-raisers/introduction-to-web-remarketing) to read - 

1. How Does Web Remarketing Work?
2. Why Do We Need Remarketing?
3. The Future Of Web Retargeting



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wbub7oo90qxm0hpfnybe.png)
[Image Source
](https://www.socialmediatoday.com/news/100-remarketing-stats-to-guide-your-paid-advertising-strategy-in-2020-info/569899/)
Terraform for Active Directory Testing: A Practical Example
Tags: aws, terraform, activedirectory, devops
Published: 2023-12-14 01:22:55

---
title: Terraform for Active Directory Testing: A Practical Example
published: true
date: 2023-10-27 15:12:26 UTC
tags: AWS,Terraform,activedirectory,devops
canonical_url: https://blog.shellnetsecurity.com/2023/10/654/terraform/terraform-for-active-directory-testing-a-practical-example/
---

In my current job, I’m one of the local resident Active Directory experts. Granted my knowledge is a little dated on the subject but I can still get around enough as needed. In order to perform testing, we need to spin up test environments for Active Directory and don’t want to maintain a long lived ... [Read more](https://blog.shellnetsecurity.com/2023/10/654/terraform/terraform-for-active-directory-testing-a-practical-example/ "Terraform for Active Directory Testing: A Practical Example")

The post [Terraform for Active Directory Testing: A Practical Example](https://blog.shellnetsecurity.com/2023/10/654/terraform/terraform-for-active-directory-testing-a-practical-example/) appeared first on [My Battles With Technology](https://blog.shellnetsecurity.com).