teleren/devto huggingface dataset:
Placeholder Contributor
Tags: hack23contributor
Published: 2023-11-02 17:15:52

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
Do not use AndroidViewModel
Tags: android, architecture, programming
Published: 2023-11-02 16:58:00

Browsing the Google developer documentation for Android, I stumbled upon AndroidViewModel class. Although I use view models, I never heard of it.

Looking at the reference, things became even more strange. It has a reference to the Application class. Its description clearly says: 

> Application context aware ViewModel

And here is the source code:

```
/**
 * Application context aware {@link ViewModel}.
 * <p>
 * Subclasses must have a constructor which accepts {@link Application} as the only parameter.
 * <p>
 */
public class AndroidViewModel extends ViewModel {
    @SuppressLint("StaticFieldLeak")
    private Application mApplication;

    public AndroidViewModel(@NonNull Application application) {
        mApplication = application;
    }

    /**
     * Return the application.
     */
    @SuppressWarnings("TypeParameterUnusedInFormals")
    @NonNull
    public <T extends Application> T getApplication() {
        //noinspection unchecked
        return (T) mApplication;
    }
}
```

Look at this abomination. The constructor needs an instance of Application. The property mApplication even has StaticFieldLeak suppressed.

Like, what? I thought the whole philosophy behind the view models was to isolate business logic from the Android framework.

It's safe to say that the context class is one of the most commonly used classes in the Android world. Junior developers who use view models should avoid making a habit of passing this class around. However, this is not a product of a junior developer. This is an official library.


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

In fact, the official recommendations for Android architecture suggest not using AndroidViewModel. It recommends to move the dependency to the UI or the data layer. Exactly. Here are the top reasons why:

1. Memory leaks
2. Lack of testability
3. Coupling


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

Context is highly coupled with the Android framework and we should always avoid using any Android-specific classes in our view models.

## When you are creating a view model class, the right class to inherit is ViewModel and ViewModel only.

This sparks a question: Why is there an official implementation of such a thing in the first place?

_Disclaimer: The cover image is created with AI._
Pourquoi créer un site web en Suisse ?
Tags: website, programming, development
Published: 2023-11-02 16:51:31

**

## Créer un site web en Suisse 
**
En tant qu'expert en développement web basé en Suisse, j'ai une vaste expérience dans la création de sites web pour diverses entreprises locales. Dans cet article, je vais vous fournir un guide détaillé, pratique et actionnable pour aider les entrepreneurs suisses à créer leur propre site web.

## **Pourquoi créer un site web en Suisse ?**
Avoir un site web est essentiel pour toutes les entreprises, y compris celles basées en Suisse. Un site web bien conçu permet aux entreprises d'étendre leur présence sur internet et d'atteindre une clientèle plus large. En outre, un site web professionnel améliore la crédibilité et l'image de marque de votre entreprise auprès des clients potentiels.

[Créer un site web en Suisse](https://devsurmesure.ch/developpement-web-sur-mesure) présente également des avantages spécifiques. La Suisse est connue pour sa qualité de vie élevée, son infrastructure technologique avancée et sa stabilité économique. Ainsi, avoir un site web localisé en Suisse peut renforcer la confiance des consommateurs locaux et internationaux.

## **Comprendre les réglementations et les lois suisses**
Avant de créer votre site web en Suisse, il est important de se familiariser avec les réglementations suisses en matière de protection des données. La Loi fédérale sur la protection des données (LPD) régit la collecte, le traitement et l'utilisation des données personnelles en Suisse. 
En Savoir Plus:https://devsurmesure.ch/blog/creer-site-web-en-suisse
Bad UI Battels: Developers are competing who create the worst UI
Tags: css, webdev, javascript, programming
Published: 2023-11-02 16:46:03

## Watch Video 

{% youtube dAAj1_lfvZA  %}

---
---

{% twitter 1720115303424913852 %}

---

{% twitter 1720115314913161718 %} 

---

{% twitter  1720115321984721373 %} 

---

{% twitter 1720115330985435356  %}

---

{% twitter  1720115340712292730 %}

---

{% twitter 1720115349411287268  %} 

--- 

{% twitter 1720115357858595232 %} 

---

---

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)
Placeholder Contributor
Published: 2023-11-02 16:40:05

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
Can The Siemens-Microsoft Partnership Bring The AI Revolution To Man-Machine Collaboration?
Tags: news, ai, microsoft, discuss
Published: 2023-11-02 16:39:30


Did you know: Siemens and Microsoft have joined forces to accelerate the spread of AI across several sectors?

Let's dive in to find the latest about this partnership!

Read the full article onlt at [TechDogs](https://www.techdogs.com/tech-news/td-newsdesk/can-the-siemens-microsoft-partnership-bring-the-ai-revolution-to-man-machine-collaboration).
Jim fannin
Published: 2023-10-17 08:12:09

ANATOMY OF A LOSER – 50 REASONS YOU’RE NOT A WINNER

A loser…

Complains about situations, situations and conditions
Whines to every person as a way to concentrate
Puts other people down with a purpose to build himself or herself up
Seldom (if ever) accepts obligation for their actions
Pivots far from complaint and typically moves back
Prepares poorly because of over-self assurance
Evaluates his or her negative performance with emotion and blame
Acts like a sufferer whilst things don’t move their manner
Embellishes the reality even for no apparent motive
Often outright lies for personal gain
**_[Jim fannin](https://www.jimfannin.com/)_**
Acts egocentric
Has an inflated view of themselves
Has their ego run their mouth
Very seldom has compassion for the less fortunate
Always expects to get his or her manner.
Pre-frames performances with mental safety nets as in “I won’t have a chance with the officiating in that ballpark.”
Readily showcases anger or outrage when they're criticized
Tries to get different human beings to shield their approaches
Surrounds themselves with “sure” human beings that usually trust them
Doesn’t research from beyond mistakes
Takes unfair benefit of other human beings
Has language that is boisterous and self-serving
Carries a “holier than although” mindset
Looks down on lesser human beings in stature, economic fame, or social standing
Forces their bodily presence on others
Loves to listen the coolest about themselves
Judges strangers without delay upon assembly
Counts his or her cash obsessively
Takes advantage of the opposite intercourse
Categorically labels groups of human beings apart from himself or herself
Uses surprise value to get attention
Has marital or relationship demanding situations
Overtly stressful of subordinates without seeing or feeling how they sense
Can preserve a grudge
Flip flops on previous opinions to fit the scenario, circumstance or situation
Uses foul and or vulgar language to “surprise and awe” and exhibit strength
Wields sarcasm to protect fragile ego
Seldom asks super questions because they already recognise the solutions
Has a quick interest
Expects to be waited upon
Tries too difficult in pressure situations
Seldom makes non-emotional changes for the duration of a overall performance
Gets off the problem in a conversation to confuse others and deflect further attention faraway from the situation at hand
Procrastinates due to the fact they understand they'll pull it off
Intimidates and frightens “vast others” with remarks such as “No one leaves a dating with me…”
Reacts violently if “big other” tries to cease the non-public dating and gives the impact all buddies and circle of relatives are in critical danger
Constantly showcases his or her accolades, accomplishments and honors
Takes motion at the wrong time
Offers excuses while matters don’t move his or her manner
Oversteps their authority in maximum situations
Looking at quality of Hacktoberfest PRs as a Maintainer
Tags: hacktoberfest23
Published: 2023-11-02 16:28:26

---
title: Looking at quality of Hacktoberfest PRs as a Maintainer
published: true
tags: hacktoberfest23
---

### Intro
Hello, all :wave: I'm Alexander Garcia and one of the maintainers of several open source projects. This is my 3rd year doing a Hacktoberfest

### Project
Our process for reviewing and merging pull requests is about what you'd expect from a normal open source project. Our typical reviewing process checks that all unit tests and E2E tests have passed. That initial review is then followed by a quality and content check. Does the PR follow our guidelines, are there spelling mistakes, what issues does it solve, are the issues reproducible, etc.

### Highs and Lows
Some of the highs and lows are having to review low quality PRs that have not completed those checks. One thing I think is really awesome is that the E2E tests review catches a lot of things that would otherwise go unnoticed especially with platform utilities and helper functions.

### Growth
My skillset remained about the same however I think I am getting more interested in contributing to computer vision projects in the future.

### Maintainer
- https://github.com/department-of-veterans-affairs
Elasticsearch: development environment with ECK (Elastic Cloud on Kubernetes)
Tags: elasticsearch, kubernetes, cloud, automation
Published: 2023-11-02 16:17:24


1. 🚀 Setting Up Elastic Stack Development Environment with ECK
   - Learn how to create a scalable Elastic stack development environment.
   - ECK (Elastic Cloud on Kubernetes) enables easy scalability and deployment.
   - Suitable for running on laptops or cloud providers.

2. 📈 Elastic Stack Evolution and Complexity
   - Elastic stack has evolved from a simple search engine.
   - Now encompasses Observability, Security, and Search solutions.
   - Includes numerous components like Kibana, Beats, Elastic-agent, Logstash, and more.

3. 🛠️ Alternatives for Installing Elastic Stack
   - Explore various installation methods for Elastic stack.
   - Options range from fully automated Elastic Cloud to manual configurations.
   - Avoid using deprecated solutions like Elastic Helm charts.

4. 🤔 Challenges with Previous Solutions
   - Elastic-package, while good for development, has limitations.
   - Lacks the flexibility to choose components and doesn't scale for production.
   - Depends on Docker and Docker-compose, limiting container runtime options.

5. 🌟 Optimal Development Environment with ECK
   - ECK (Elastic Cloud on Kubernetes) is recommended for developers.
   - Runs Elastic stack on a Kubernetes cluster using operators and CRDs.
   - Suitable for both cloud providers and powerful laptops.

Read the full article for a comprehensive understanding: 
https://medium.com/itnext/elasticsearch-development-environment-with-eck-elastic-cloud-on-kubernetes-5be225cd1170

#Elasticsearch #ECK #DevelopmentEnvironment #Kubernetes #Elastic #Scalability
Elasticsearch: development environment with ECK (Elastic Cloud on Kubernetes)
Tags: elasticsearch, kubernetes, cloud, automation
Published: 2023-11-02 16:17:23

![Elastic stack](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yauiyjeazbhrjaqt8i5g.png)


1. 🚀 Setting Up Elastic Stack Development Environment with ECK
   - Learn how to create a scalable Elastic stack development environment.
   - ECK (Elastic Cloud on Kubernetes) enables easy scalability and deployment.
   - Suitable for running on laptops or cloud providers.

2. 📈 Elastic Stack Evolution and Complexity
   - Elastic stack has evolved from a simple search engine.
   - Now encompasses Observability, Security, and Search solutions.
   - Includes numerous components like Kibana, Beats, Elastic-agent, Logstash, and more.

3. 🛠️ Alternatives for Installing Elastic Stack
   - Explore various installation methods for Elastic stack.
   - Options range from fully automated Elastic Cloud to manual configurations.
   - Avoid using deprecated solutions like Elastic Helm charts.

4. 🤔 Challenges with Previous Solutions
   - Elastic-package, while good for development, has limitations.
   - Lacks the flexibility to choose components and doesn't scale for production.
   - Depends on Docker and Docker-compose, limiting container runtime options.

5. 🌟 Optimal Development Environment with ECK
   - ECK (Elastic Cloud on Kubernetes) is recommended for developers.
   - Runs Elastic stack on a Kubernetes cluster using operators and CRDs.
   - Suitable for both cloud providers and powerful laptops.

Read the full article for a comprehensive understanding: 
https://medium.com/itnext/elasticsearch-development-environment-with-eck-elastic-cloud-on-kubernetes-5be225cd1170
Contributing to Open Source
Tags: hacktoberfest23
Published: 2023-11-02 16:10:16

---
title: Contributing to Open Source
published: true
tags: hacktoberfest23
---

### Intro
Hello all, I am a frequent contributer in Open Source. This is my third year contributing to Hacktoberfest. [Check out my Github](https://github.com/asg5704)

### Highs and Lows
I didn't have one big accomplishment but more along the lines of several smaller accomplishments that helps the community and open source projects I contribute to. 

### Growth
I always try to remember that all contributions are valuable even if its not directly related to code. That can include documentation, design, translations, or even discussions and RFCs. While my career goals haven't changed my interests in which projects I contribute have in fact changed. In future Hacktoberfests I hope to contribute to more Aritifical Intelligence projects with a focus on Computer Vision

## PRs for contributor
- https://github.com/department-of-veterans-affairs/vets-website/pull/26185
- https://github.com/department-of-veterans-affairs/vets-website/pull/26257
- https://github.com/department-of-veterans-affairs/vets-website/pull/26282
- https://github.com/department-of-veterans-affairs/vets-website/pull/26350
switching to a career in tech 👩🏼‍💻
Tags: webdev, career, codenewbie, learning
Published: 2023-11-02 14:55:22

My life was a graceful dance of ballet, an art I held close to my heart for as long as I can remember. Then, the pandemic arrived, and with it came an unexpected twist that altered the course of my career. In this blog, I want to share with you the reasons that drew me into the captivating world of technology, and the journey that turned me into a front-end developer.

**What drew me to a career in tech?**

I've been a tech enthusiast for as long as I can remember, eagerly awaiting each new Apple gadget and spending my free time watching "a day in the life of a developer" videos on YouTube. The tech world has always piqued my curiosity, and it's not just about the gadgets; it's the diverse and fulfilling career opportunities that have drawn me in, promising both strength and balance. 

Here are a few points on what drew me to a career in tech:

**1.**The tech world is famous for its hunger for skilled professionals. When it comes to web development, the future looks incredibly bright, with more and more job openings on the horizon. For someone like me who's passionate about pursuing a career in development, this is definitely great news.

**2.**In the tech world, you'll find not only exciting opportunities but also the potential for solid financial rewards. It's comforting to know that many tech roles come with really competitive salaries.


**3.**The tech industry is all in for remote work, offering the freedom to work from anywhere. But what really draws me in is the idea of working from my own laptop, in my own space – there's something uniquely appealing about that. 

**4.**I really appreciate how tech jobs often span the globe, enabling us to collaborate with teams and clients from diverse corners of the world. I find this aspect incredibly cool and utterly fascinating.

**5.**What I like about many tech companies is their dedication to promoting a balanced work-life lifestyle, and to me, that's the dream job scenario. It's not just about the perks; it's a reflection of these companies genuinely caring about their employees' happiness and fulfilment. 

**6.**In the tech world, it's like being in a never-ending school of learning. Technology evolves rapidly, and for developers like us, it's a daily journey of staying up-to-date and soaking in new knowledge. Here, every day feels like a classroom, and we're the eager students.


**7.**Online courses provide fantastic opportunities for learning, and the best part is, they're not only accessible but also budget-friendly. The beauty of it all is that you can even embark on a journey of self-teaching. To me, that's a fantastic perk worth celebrating!

**These points underscore the dynamic and ever-evolving essence of tech careers, rendering it a thrilling and promising domain for individuals with a keen interest in technology and innovation.**

Thank you for reading...in the meantime,

**keep coding!**
How to Bring ChatGPT into Your Laravel Application?
Tags: laravel, chatgpt
Published: 2023-11-02 16:06:40

Recently, I've been seeing a lot of developers trying to integrate ChatGPT into their web application and seem to be confused about it; so I decided to create a package that simplifies the process of integrating ChatGPT into a Laravel application. 

Let's see how it works.

The only thing you need to worry about is the API key from openAI website; apart from that, everything else is taken care of. 

[Click here to generate your own API key.](https://platform.openai.com/account/api-keys)

Ok! Now that you have your API key ready, let's install the package.

```
composer require hesamrad/laravel-chatgpt
```

Then, publish the configuration file:

```
php artisan vendor:publish --provider="HesamRad\LaravelChatGpt\LaravelChatGptServiceProvider" --tag="chatgpt-config"
```

And lastly, head over to your `.env` file and paste your API key so that the package can use it to connect to ChatGPT:

```
CHATGPT_API_KEY="{YOUR-API-KEY}"
```
And you're done! How easy was that? You now have ChatGPT inside your application. 

Wanna try?

There are a couple ways to use the package to connect to ChatGPT. 

### Method #1 - Using built-in routes.
The package comes with a built-in route so you can send a request from anywhere inside your client application; whether it's a separate JavaScript-powered front-end, or anything else.

Simply send a `POST` request to `/api/chatgpt/ask` with a body parameter `question` to get your answer.

### Method #2 - Using global helper function.
There is a `chatgpt()` global helper function which takes one parameter as the question you want to ask. You could use this method anywhere you like.

If you want to use this package inside any controller you could go about it like this:

```php
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use App\Http\Controllers\Controller;

class ImaginaryController extends Controller
{
    /**
     * This method connects to ChatGPT servers
     * and asks the given question.
     *
     * @param  string  $question
     * @return \Illuminate\Http\Response
     */
    public function ImaginaryMethod($question)
    {
        $answer = chatgpt($question);

        return response($answer, Response::HTTP_OK);
    }
}
```

I think this is a very simple but useful package for developers who just want to use ChatGPT without having to deal with its implementation.

I will certainly add more details to the package and update this post; but I would really appreciate it if you'd be so kind to drop a star on its [GitHub repository](https://github.com/hesamzakerirad/laravel-chatgpt). 

Feel free to give me more ideas to implement on this package; I'd love nothing more than to contribute to the open-source community.

Cheers!
PHP environment development
Tags: php, development, mysql
Published: 2023-11-02 16:05:00

I wanted to share with you a tool I recently developed called [ServBay](https://www.servbay.dev).

It's designed to make PHP development easier by integrating multiple versions of PHP, MySQL,MariaDB, PostgreSQL, as well as Redis and Memcached. The reason I created this software was because I couldn't find the specific PHP version I needed in MAMP and XMAMP. Their PHP versions were a bit outdated and didn't include the latest updates. I figured there must be other PHP developers out there facing the same issue, so I decided to build ServBay.

The best part is, you don't need to worry about setting up the environment. Just download and install ServBay, and you can start using it right away. It's also beginner-friendly, perfect for those who are new to PHP development.

The first version is already live, and if anyone is interested, feel free to download and give it a try.

I'm open to any feedback, suggestions, or opinions you may have.

Thank you all for your support.
Conexão do DevC++ com O MySQL Server?
Tags: devc, cpp, studing
Published: 2023-11-02 16:01:57

Olá, sou novo no ramo da programação e estou com algumas dificuldades, em relação a conexão do DevC++ com o MySQL Server, alguém sabe de algum curso ou vídeo aula que possam estar me ajudando, é pra um trabalho na faculdade.