teleren/devto huggingface dataset:
Pursuing an Internship as a Future Software Engineer: My Journey and Aspirations.
Tags: programming, beginners, python, opensource
Published: 2023-07-28 13:00:35


## Introduction:

As I stand at the beginning of my exciting journey, I am determined to secure an internship in software engineering. In this blog post, I will share my aspirations, the skills I have honed, and the ambitions that drive me toward becoming a successful software engineer. With a passion for problem-solving and proficiency in various programming languages, I am ready to take on real-world challenges.

1. Seeking Opportunities: The Internship Quest
Internships are essential stepping stones for young enthusiasts like me, offering a chance to apply theoretical knowledge to real-world projects. I aim to gain practical experience, enhance my skillset, and work alongside experienced professionals to create innovative solutions.


2. The Desire to Contribute: Aspirations in Software Engineering
I aspire to work on cutting-edge technologies and contribute to projects that positively impact society. My interests include developing applications, implementing machine learning algorithms, and utilizing my skills in data analysis.


3. My Toolbox of Skills: C, C++, Python, Machine Learning, R, and Flutter
Equipped with diverse programming languages, including C, C++, Python, Machine Learning, R, and Flutter, I am ready to tackle various software engineering tasks.


4. The Learning Journey: A Quest for Continued Growth
I understand the importance of constant learning and staying updated with industry trends. My dedication to education ensures that I stay ahead in this dynamic landscape.

5. Collaboration and Communication: Essential Interpersonal Skills
Effective communication and teamwork are crucial in software engineering. I value collaborative problem-solving and being a supportive team player.


6. Multilingual Advantage: Fluent in English and Hindi
Being fluent in English and Hindi enables effective communication with diverse audiences, expanding my reach as a software engineer.


## Conclusion:

As I pursue an internship as a software engineer, my passion for problem-solving, diverse skillset, commitment to learning, and excellent interpersonal skills serve as my compass. With dreams of contributing to groundbreaking technologies, I eagerly anticipate the opportunities. As I embark on this path of professional growth, my determination and dedication will lead to a successful career in software engineering.
Laravel Tip ⚡️
Published: 2023-07-28 12:46:04



If you're worried about what actual SQL queries will be executed by the “artisan migrate” command, run the command using the magic --pretend flag!

It will give you a sneak peek at all the SQL statements without actually executing them.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hacgsofe2nr9ngz8hc50.jpeg)
Episode 32 Rails Admin Panels with Motor_Admin
Tags: ruby, rails, tutorial, webdev
Published: 2023-07-28 12:44:50

Motor Admin is a low-code Admin panel and Business intelligence Rails engine. No DSL - configurable from the UI. Rails Admin, Active Admin, Blazer modern alternative.  We will learn how to use it in our Rails Applications.
{% youtube 5R_WFqSatkQ %}
How to setup MSSQL exporter
Tags: devops, monitoring
Published: 2023-07-28 12:43:28


A short note for setting up MSSQL monitoring using [Prometheus](https://github.com/prometheus-operator/prometheus-operator) and [Prometheus MSSQL Exporter](https://github.com/awaragi/prometheus-mssql-exporter).

First, create a new database user.

```sql
CREATE LOGIN MSSQLExporter WITH PASSWORD = ‘<PASSWORD>’;
CREATE USER MSSQLExporter FOR LOGIN MSSQLExporter;
GRANT VIEW ANY DEFINITION TO MSSQLExporter;
GRANT VIEW SERVER STATE TO MSSQLExporter;
```


Then, create a deployment manifest.

```yaml
# mssql-exporter.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: mssql-exporter
  labels:
    app.kubernetes.io/name: mssql-exporter
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: mssql-exporter
  template:
    metadata:
      labels:
        app.kubernetes.io/name: mssql-exporter
    spec:
      containers:
        - name: mssql-exporter
          image: awaragi/prometheus-mssql-exporter:v1.3.0
          ports:
            - containerPort: 4000
          env:
            - name: USERNAME
              value: "MSSQLExporter"
            - name: PASSWORD
              valueFrom:
                secretKeyRef:
                  name: mssql-exporter
                  key: MSSQL_EXPORTER_PASSWORD
            - name: SERVER
              value: mssql.example.local
            - name: PORT
              value: "1433"
---
apiVersion: v1
kind: Service
metadata:
  name: mssql-exporter
  labels:
    app.kubernetes.io/name: mssql-exporter
spec:
  type: ClusterIP
  ports:
    - port: 4000
      targetPort: 4000
      protocol: TCP
  selector:
    app.kubernetes.io/name: mssql-exporter
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: mssql-exporter
  labels:
    app.kubernetes.io/name: mssql-exporter
spec:
  endpoints:
    - targetPort: 4000
  namespaceSelector:
    matchNames:
      - mssql
  selector:
    matchLabels:
      app.kubernetes.io/name: mssql-exporter

```

Finally, apply.

```
kubectl apply -f mssql-exporter.yaml
```
They said discipline beat motivation, they are wrong
Tags: beginners, learning, programming
Published: 2023-07-28 12:36:29

I see this advice so often on the internet, it is time to say something. 
It is true that sometimes we have just to sit down and do the work. 
But it is equally important knowing how to get your motivation back and constant when you do something hard. 

Have you ever tried building something difficult? Yet you could not bring your mind to it no matter how harshly you want to double down and just be disciplined about it?

I have been here so many times before, the science of motivation and action is more complicated than pure discipline. 

You need to visualize your end game, hence gaining back your motivation even how tiny the initial spark is, and act on it.

Something that helps me tremendously to get back on my track.

Sit down and write all of my goals on a piece of paper or on my Bear note.

This act brings the goals closer and more vivid in my mind. 

Then I could come back to the hard task at hand.
WordPress website vs php website
Tags: beginners
Published: 2023-07-28 12:26:46

When it comes to building a website, there are many options available. Two popular choices are [WordPress](https://wordpress.org/) and PHP. WordPress is a content management system that makes creating and managing a website easy, while PHP is a [programming language](https://www.simplilearn.com/best-programming-languages-start-learning-today-article) used to build dynamic web applications. 


WordPress is an excellent choice for those who want to create a website quickly and easily. It is user-friendly and has a wide range of templates and themes available. WordPress also has a large community of developers who create plugins that can add additional functionality to your website. 

On the other hand, PHP is a more powerful and flexible option. It allows you to build custom web applications that can handle complex tasks. PHP is also faster than WordPress because it doesn't need to load all the plugins and themes that WordPress uses. 

Ultimately, the choice between WordPress and PHP depends on your needs and goals. WordPress may be the better option if you want a simple website that you can manage yourself. PHP may be the way to go if you need a more complex website with custom functionality.

Although web design companies offer both sorts of websites, [some marketing agencies](https://panamarketing.ir/english/) mostly do that by WordPress. So It also depends where do you work.
Who's looking for open source contributors? (week 52)
Tags: discuss, opensource, contributorswanted, codenewbie
Published: 2023-07-28 12:00:00

---
title: Who's looking for open source contributors? (week 52)
series: Looking for Contributors
published: true
description: Discover which open source projects are actively seeking contributors. Learn how you can make a meaningful contribution to the open source community and gain valuable experience. Find out who's looking for open source contributors now.
tags: discuss, opensource, contributorswanted, codenewbie
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2023-07-28 12:00 +0000
---
Open Source is driven by the strength of community. Whether you're a fresh face or a seasoned pro, we're here to inspire, support, and uplift both new and existing contributors, while supporting maintainers every step of the way.

## Tell us about your project
_Promote your project by providing a link to the repo. Everyone who posted in previous weeks is welcome back this week, as always 😄_

Open Source should be a welcoming space for contributors. The README is the front door of your project. If you'd like to check out an example of a README, here's our [OpenSauced/insights README](https://github.com/open-sauced/insights).

If you submit please have the following in your repo to make it welcoming and helpful for contributors:

1. README.md
2. CONTRIBUTING.md

Feel free to drop your issues and repos in the [OpenSauced Discord](https://discord.gg/opensauced) #:eyes:-looking-for-contributors channel at any time! 

If you're new to open source, and you're not sure where to start, check out our [Intro to Open Source course](https://github.com/open-sauced/intro). 

Finally, consider reading the [Best Practices for Maintainers](https://opensource.guide/best-practices/).

Just a note to say, we've restarted this post from something Ben was doing for a while :star-struck: 

Together we can build a culture of open collaboration, innovation, and excellence for all!
[Digest] Java, Kotlin, Spring, Cloud, and More - Episode 6
Tags: digest, java, cloud, spring
Published: 2023-07-28 11:57:20

Hey folks, here is what I have for you this week:

🌱 [New in Spring 6.1: RestClient](https://spring.io/blog/2023/07/13/new-in-spring-6-1-restclient): Spring 6.1 introduces brand new synchronous HTTP client - `RestClient` that offers the fluent API of `WebClient` with the infrastructure of `RestTemplate`.

🛠️ [Enforcing Your Architecture with ArchUnit](https://reflectoring.io/enforce-architecture-with-arch-unit/): how we can write tests for the application architecture using ArchUnit and in which scenarios it could be useful.

⚙️ [Improving Performance with HTTP Streaming](https://medium.com/airbnb-engineering/improving-performance-with-http-streaming-ba9e72c66408): how Airbnb moved to HTTP streaming, improved performance and what challenges they faced.

🚀 [6 Best Practices for Backend Design in Distributed System](https://www.multiplayer.app/blog/6-best-practices-for-backend-design-in-distributed-system/): known best practices for building distributed systems that are always beneficial to refresh in memory and compare with the current development process and system's state.

💡 [Building a Startup from Scratch: My Mistakes as CTO](https://egor-romanov.medium.com/building-a-startup-from-scratch-my-mistakes-as-cto-b20b463e0058): if you are running a startup, maybe you don't need microservices from the very beginning and worth having a look at alternatives like [Supabase](https://supabase.com/).

---

*Dream your code, code your dream.*
Splash Screen API with Compose
Tags: android, kotlin, programming, ux
Published: 2023-07-28 11:50:03


![Rainbow icon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/08hus0od7rbn4nk4l0xl.gif)

Hello, amazing person of the internet! Hope you're doing well.

The **first impressions are crucial**. Creating a captivating user experience from the moment an app is launched has become a top priority. Users expect seamless, engaging interactions right from the start, and this is where the Splash Screen API, combined with the cutting-edge Jetpack Compose, takes center stage.

&nbsp;

## Implementation

First things first, we need to implement the splash screen API in our dependencies, within the gradle(Module:app):

{% embed https://gist.github.com/MariaLuiza-CS/a4c30d7512335db53d612668226fcfc7 %}

&nbsp;

## Theme

Now, let's create the style for our splash screen. To do that, go to your values and create the splash resource:

{% embed https://gist.github.com/MariaLuiza-CS/67777b275471f74a5f6ef09c0c39d995 %}

> You can name the style's name as you prefer, but the parent's name must be "Theme.SplashScreen".

{% embed https://gist.github.com/MariaLuiza-CS/d43e47320947540b149b7ee289cf1102 %}

> - windowSplashScreenBackground = background screen.
> - windowSplashScreenAnimatedIcon = the splash screen icon.
> - postSplashScreenTheme = the theme aftesplash screen.

Within your manifest, navigate to the activity tag and invoke the custom theme:

{% embed https://gist.github.com/MariaLuiza-CS/1130ad97a7d7d393fd3088d3c4918240 %}

&nbsp;

## Calling

Head to our Main Activity to display our splash screen. Simply call the installSplashScreen() function:

{% embed https://gist.github.com/MariaLuiza-CS/88b03fc62ef6e6647687287a4d839695 %}

That's it! You now have a splash screen.

![Splash Screen print](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxh2ghtpdwtf8zfdgj1k.png)

&nbsp;

## Blank Screen

If you encounter an issue with a blank screen while using this API, don't worry. After calling the splash screen and proceeding to the next screen, you might experience a blank screen. To resolve this, simply call the setKeepOnScreenCondition{} function:

{% embed https://gist.github.com/MariaLuiza-CS/0477f9bbbe3eb75330e4bd4361998eca %}

&nbsp;

## Conclusion

Gone are the days of static and mundane splash screens that merely act as loading indicators. With Jetpack Compose, a revolutionary toolkit for building native Android UIs, and the introduction of the Splash Screen API, developers now have the tools to transform their app's launch sequence into an immersive and visually appealing experience.

All the code and exemple [it is on this repository](https://github.com/MariaLuiza-CS/SplashScreenAPI).

Happy coding ❤

---

Please let me know what you think in the comments…

Connect with me 👇

[Linkedin](https://www.linkedin.com/in/marialuiza-cs/)

[GitHub](https://github.com/MariaLuiza-CS)

[Instagram](https://www.instagram.com/luiza.android)

[Medium](https://medium.com/@MariaLuiza-CS)

![Firebase icon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mid7n79w14jywcdcjy97.gif)
Difference Between Coding And Programming
Published: 2023-07-28 11:46:24

Regarding software development, "coding" and "programming" are often interchangeable. However, there are some critical differences between the two.

Coding refers to the act of writing code in a specific programming language. It involves translating ideas into a language that a computer can understand. This can include writing scripts, creating functions, and building algorithms.

On the other hand, programming is a broader term that encompasses the entire process of creating software. This includes everything from planning and designing to testing and debugging. It involves writing code and understanding the problem that needs to be solved, defining requirements, and creating a plan to reach the desired outcome.

One way to think of the difference between coding and programming is to compare them to building construction. Coding would be like laying bricks and mortar, while programming is like the entire construction process, including designing the blueprint, planning the layout, and ensuring structural integrity.

While coding is an essential part of programming, it is just one piece of the puzzle. Programming requires a deeper understanding of the problem being solved and the ability to think creatively and strategically to find the best solution.

In conclusion, coding and programming are related but distinct processes. Coding involves writing code in a specific language, while programming encompasses the entire process of creating software. Both skills are essential for software development, but programming requires broader knowledge and skills.

**Many people use the terms "coding" and "programming" interchangeably regarding [web development](https://panamarketing.ir/english/web-design/).** However, there are some critical differences between the two. Coding refers to writing code or instructions in a specific programming language. It's a more straightforward and essential process that involves translating human ideas into machine-readable code. On the other hand, programming is a more complex process involving designing, testing, and debugging software. It requires a deeper understanding of algorithms, data structures, and other computer science concepts. Both coding and programming are essential skills for web developers, but it's important to understand the differences and choose the right approach for each project.
Run Concurrent Tasks With a Limit Using Pure JavaScript
Tags: javascript
Published: 2023-07-28 11:38:19

In his article [Maxim Orlov](https://maximorlov.com/parallel-tasks-with-pure-javascript/#concurrency-limit-using-iterators) shows an astonishing way to implement concurent tasks in Javascript

It's all based on the fact that iterators objects are consumed when they are iterated, through a loop for example.

So if you run multiple loops an the same iterator, you are assured that an item will be retrieved only once

Here is a demo [ConurentTastUsingIterators](https://flems.io/#0=N4IgZglgNgpgziAXAbVAOwIYFsZJAOgAsAXLKEAGhAGMB7NYmBvEAXwvW10QICsEqdBk2J4wAVzTViEegAIAJjCgYAngAoscAJRzgAHTRy5AJxjFxJo2hgB3OQAUTtLBDgx16s3AowTJ3QBeAD49Q2Njd2IAFQgcWnFiOS94CjktbXC5Vky0VkNDDDhVKTkJKRl5BVoAdVoTAGt1CEYTDGJ63QMjMvrjdSE4JIA3DChxGDlaMDkWv3bOsJ7jDFsMFsVlNXUARgAGA9yIuUHaWHwoWgBzdVHxmCPsw3y0Q0GkubaOkzlAuQBBfxqfBgZxYdQAcgwACNqEowFdCBAIdp8HcJnB1NoANwFNAAenxcgASpI5EUStQ5MQig04HJbC1COSTvRqJYzFJVHIoHENtM5ABmN70IYM+oNPz0v42eyAtoaQWoyBQKDNVoLAL4LAYAAO6mqdUaOLxhLkNXWSUkMig5NV1Np9IwZkU9BghicLjcMHwYygAGVzMRYAp1LYJVLUcRCExPEFQqdzpcbhCACJugCEKJxcjYHBAmBweHw1DgAho9EYzB4bAAulRC9wQABJDXfOAAYTZlhEbCAA):

```js
function delay(ms) {
  return new Promise((res,err) => {
    setTimeout (res, ms)
  })
}

async function doWork(iterator) {
  for  (const value of iterator) {
    await delay(1000)
    console.log(value)
  }
}

const iterator = Array.from('abcdefghi').values();

// Run async tasks with a concurrency limit of 3
const workers = new Array(3).fill(iterator).map(doWork);

// Wait until all tasks are done
Promise.allSettled(workers).then(() => console.log('Done!')); 

```
How to handle dynamically 404 Not Found page and status code 404 using reactjs and Nodejs? without using nextjs or other library
Tags: react, node, express
Published: 2023-07-28 11:32:32

how send an actual 404 status code on not found pages?
when hit the URL Its redirect to custom 404 not found page If doesn't match any of the defined routes but status code show still 200. So How we can handle status code also dynamically in react application. 

How to handle with server-side rendering tools that the status code for this page should be 404 when pre-rendering the React application?

using Nodejs we can easily handle status code also but how ?
finally() method in JavaScript
Tags: finally, javascript, programming, tutorial
Published: 2023-07-28 11:27:18

`finally` is a method utilized within the `try-catch` construct in JavaScript. It executes after the `try` and `catch` blocks, regardless of whether the promise has been **fulfilled or rejected**. This function's primary role is to perform necessary cleanup tasks and convey a message to the user. A common use case might be to inform the user, 'Your request has been processed', indicating that the operation has concluded, irrespective of its success or failure.

***Another best way to understand is***
When you have a chunk of code that might cause a problem (an error), you wrap it in a `try` block. If something goes wrong, instead of breaking everything, the program jumps to the `catch` block where you can decide what to do.

But what if you want to do something whether or not there was a problem? Maybe you need to clean up, like putting away toys after playtime. Or maybe you want to let the user know that your program is done with its job.

That's where `finally` comes in. No matter what happens in `try` and `catch`, whether there was an error or not, the code in `finally` will run. It's like saying "no matter what, let's clean up before we go."

Here is a simple example:

```js
try {
    // Code that might go wrong
    console.log("Let's try to do something.");
    throw new Error('Oops! Something went wrong.'); // This line creates an error on purpose
} catch (error) {
    // What to do if there's an error
    console.log('We caught an error: ', error);
} finally {
    // This code runs no matter what
    console.log('Finally, this runs no matter what happens above.');
}
```

In this example, we try to do something that causes an error. When the error happens, we move to "catch" and handle the error. But no matter what, we then move to "finally", and it logs a message saying 'Finally, this runs no matter what happens above

Thank you for reading. I encourage you to follow me on Twitter where I regularly share content about JavaScript and React, as well as contribute to open-source projects. I am currently seeking a remote job or internship.

Twitter: https://twitter.com/Diwakar_766

GitHub: https://github.com/DIWAKARKASHYAP

Portfolio: https://diwakar-portfolio.vercel.app/
why figma units look bigger in react app ?
Tags: react, figma, webdev, javascript
Published: 2023-07-28 11:15:15


I have a Figma designed by someone, but when i developed the navbar with the same units, the navbar elements looked odd and bigger than how they look in the design presentation.
note that the desktop frame size in Figma is set to 1720px and the navbar links font is set to 24px ( Cairo font ): 

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

while my screen size is 1366px
I dont't want to change the pixels myself visually, I just want to do this professionally and find a way to adabt the figma frame units so they look just good. how to proceed with this please?

SCREENSHOT OF MY SCREEN (navbar)

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

SCREENSHOT OF THE DESIGN 

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