teleren/devto huggingface dataset:
How to start contributing in open-source.
Tags: opensource, php, career
Published: 2023-02-02 20:52:20

---
title: How to start contributing in open-source.
published: true
date: 2023-03-02 00:00:00 UTC
tags: opensource,php,career
canonical_url: https://diar.dev/blog/how-to-contribute-in-opensource
---

This article is meant to tell you how easy it is to start contributing on public repositories and get feedback from people with a lot of experience.
How to remove unwanted files in a commit but keep it locally
Tags: git, productivity
Published: 2023-02-01 23:15:49

When I was working, I accidentally put package.lock.json and yarn.lock.json in a commit, I just notice this mistake in the last minutes before I submit merge request.

How I can away with this situation

```js
// remove package.lock.json and yarn.lock.json from git

git rm —-cached package-lock.json
git rm —-cached yarn-lock.json 

git add . 

git commit 

git push 
```

The ‘—-cached’ is the magic, In simple explanation I keep package.lock and yarn.lock in my computer because I still need those file, but I removed it from the staging area so it won’t appeared.

Update:

You can also remove multiple files at once by listing them all in the command like this:

```js

git rm <file_name_1> <file_name_2> <file_name_3> --cached

git rm —-cached package-lock.json yarn-lock.json
```
JSTools Weekly - 2023#4
Tags: javascript, webdev, opensource, typescript
Published: 2023-02-01 22:52:04

The latest issues of our weekly newsletter called [JSTools Weekly](https://jstools.substack.com/) just released.

⭐TOP new javascript releases in this issue:


![TOP new javascript releases in this issue](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/301g7gfm4mf8eq3adud1.png)

[See more new javascript releases](https://jstools.substack.com/p/2023-topjstools-4)


🔥HOT javascript tools in this issue:

![HOT javascript tools in this issue](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/245f0furhk8c16i8fqph.png)

[See more hot javascript tools](https://jstools.substack.com/p/2023-hotjstools-4)


✨NEW javascript tools in this issue:

![NEW javascript tools in this issue](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6rc7ogqj3f4piji5l9zc.png)

[See more new javascript tools
](https://jstools.substack.com/p/2023-newjstools-4)
Why basic programming is a pre-req for VetsWhoCode
Tags: beginners
Published: 2023-02-01 22:49:52

This [BYU article](https://livecode.byu.edu/programmingconcepts/ControlStruct.php) shows that there are three basic programming concepts:

1. **Sequence of commands** (The right commands in the right order)
2. **Conditional Structures** (Do certain things based on a true or false, yes or no decision)
3. **Looping structures** (A list of instructions to do more than once)

They further explain the programming strategies of **top-down design** and **pseudo code**. These concepts are required to understand to begin a journey of programming. 

Basic programming courses can be found all over the internet for free (W3 Schools, Odin Project, Free Code Camp, Net Ninja, etc...). Vets Who Code could create their own basic programming course. By having that knowledge as a part of the pre-work we can assume several characteristics of our candidates. These applicants will have demonstrated the ability to find information on the internet and translate it into runnable code. Furthermore, this is prerequisite knowledge for teaching javascript syntax. We have run into instructors teaching "here's how to loop in Javascript" and students going "okay". Then when they go to enact a loop, they don't understand what the point of it is resulting in their projects not incorporating those concepts. It has led to quite a bit of confusion.

We hope that with this format of the pre-work, we'll be able to have clearer goals when it comes to programming in the boot camp.
3 Profound Mistakes Young Consultants Should Avoid at the Beginning of Their Career
Tags: career, beginners, writing
Published: 2023-02-01 22:39:26

There are three common mistakes that young consultants make that hurt their careers.

I also did them, and after noticing and correcting them, I was able to have much more impact every single they.

So here they are, so you can avoid them:

---

## Mistake #1: Helping out everywhere and not being able to finish it

Too often, young professionals choose to take on every task that comes their way.

They think that it helps them become more established within the company and perform better. But in the end, they only end up overwhelmed and unable to finish everything they agreed to do. Instead, young professionals should only take on as much workload as they can handle. This will lead to them being able to finish all the work, meet the expectations, and establish that they will finish what they started.

This will build rapport faster with their manager rather than taking on all the tasks they can get and not finishing them.

## Mistake #2: Only focusing on your project and not trying to help grow your company

A good Consultant helps the company by fulfilling the projects.

But a great consultant helps by growing the business.

Don’t get it confused: fulfilling the project is good, but it’s far from what makes the most difference. Therefore always look for opportunities to help the business grow. For example, you can create templates you and your colleagues can reuse or actively share your knowledge.

Always try to identify and point out opportunities; this is the best way to grow your niche within a company.

## Mistake #3: Only working and not having enough time to unwind

We all think we can work all day long.

We all think we have unlimited time and energy to fulfill work and our private life.

But the truth is, we don't.

This is why it's important to set healthy boundaries between work and your private life. You should try to have a healthy balance between them and give yourself enough time to unwind. So try to do something completely different in your spare time that has nothing to do with work.

Achieving this balance will not only allow you for a fulfilled private life, but it will also improve your performance at work.
About Eleme Creative Community Skills BootCamp 1.0
Published: 2023-02-01 22:31:53



![Eleme Skills BootCamp 1.0](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vutqcqn76rc1z9ajas53.jpeg)

Eleme Skillbooth Bootcamp is a flagship skills launchpad series to mainstream globally relevant skills in Eleme’s enterprising and willing youths, giving them a competitive advantage in the global talent market.

Eleme Creative Community is a not-for-profit organization that initiates, implements and promotes impactful skills transfer to enshrine and accelerate talent development, entrepreneurship, creativity, social enterprise and socio-economic growth within Eleme Local Government Area and environ.
📢 Fairphone on endoflife.date ♻️
Tags: mobile, opensource, api, greenit
Published: 2023-02-01 22:29:34

## 🗞️ Announcements

### 📢 Android 12

This week, [Fairphone](https://www.fairphone.com/) (_"Designed to last, with fair and recycled materials. "_) has announced that :

> "[Android 12](https://endoflife.date/android) is now available for the [Fairphone 4](https://shop.fairphone.com/en/buy-fairphone-4)! "

{% twitter 1620708623797174273 %}

In the mean time, you could ask yourself : 

> "what is the telephone with the lowest environmental footprint ?"

👉 Well, this post helps answer the question, from an interoperable, Open Data API-driven point of view.

## 🍾 `Fairphone` now on `endoflife.date`

Since today, Fairphone is also avaibale on [`endoflife.date`](https://endoflife.date/fairphone):

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

{% github https://github.com/endoflife-date/endoflife.date/issues/2338 %}

## 💡 Why it matters (in less than `10'`)

Below discover all the opportunities it opens for everyone:

{% youtube https://youtu.be/9KCmB0nMnTA %}

## 📑 Resources

- [Fairphone on `endoflife.date`](https://endoflife.date/fairphone)
- [[Request - Product] leaves Fairphone repeat ](https://github.com/endoflife-date/endoflife.date/issues/2338)
- [[NewProduct] Pull Request Fairphone](https://github.com/endoflife-date/endoflife.date/pull/2339)
- [Fairphone and Open Source](https://www.fairphone.com/en/open-source/)
- [Fairphone Icon](https://github.com/simple-icons/simple-icons/issues/8262) on https://simpleicons.org/
- [Aluminium Stewardship Initiative](https://aluminium-stewardship.org/)
Day 686 : First of the month
Tags: hiphop, code, coding, lifelongdev
Published: 2023-02-01 22:25:14

_liner notes_:
- Professional : Had a bunch of back to back meetings today. So I pretty much was occupied with that, but I was able to update a repo and test it out. Going to double check it tomorrow morning and then do a pull request.

- Personal : Last night I went through a bunch of tracks for the radio show and worked on the layout for the admin section of my side project. Not a bad night.


![Field of red flowers with hills and trees in the distance under a setting sun in Blankenburg, Germany](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q4ekfbxdf0y3bcmbf6iy.jpg)

It's the first of the month. That's when I pay all my bills, so going to do that after I eat dinner. Then I'll go through more tracks for the radio show. Trying to get ahead. Then I want to start coding up the admin section of the side project. That way I can start to add the data that will be displayed on the site. I'm out. Still haven't watched "You People"! haha

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube 4j_cOsgRY7w %}
🚀 20 Engineering Blogs from Product companies (Meta, Uber, Stripe)
Tags: programming, career, cloud, computerscience
Published: 2023-02-01 22:09:34

🚀 20 Engineering Blogs from Product companies like Facebook, Uber, Netflix, Stripe that have inspired and helped me raise the bar on building great products. 

Highly recommended for Software Engineers, Architects, Engineering Manager and Product Manages.

### Join Me

Follow me on [#TheEngineeringBolt](https://engineeringbolt.com), [Twitter](https://twitter.com/alexrashkov) and [Linkedin](https://www.linkedin.com/in/alexrashkov) for more Career, Leadership and Growth advice.

### Engineering Blogs

🌐 [Meta Engineering Blog](https://code.fb.com)

🌐 [Instagram Engineering Blog](https://instagram-engineering.com)

🌐 [Uber Engineering Blog](https://eng.uber.com)

🌐 [AirBnb Engineering Blog](https://medium.com/airbnb-engineering)

🌐 [Netflix Engineering Blog](https://medium.com/netflix-techblog) 

🌐 [Linkedin Engineering Blog](https://engineering.linkedin.com/blog)

🌐 [Spotify Engineering Blog](https://engineering.atspotify.com)

🌐 [Stripe Engineering Blog](https://stripe.com/blog/engineering) 

🌐 [Snap Engineering Blog](https://eng.snap.com/blog)

🌐 [Instacart Engineering Blog](https://tech.instacart.com)

🌐 [Etsy Engineering Blog](https://etsy.com/codeascraft)

🌐 [Canva Engineering Blog](https://canvatechblog.com)

🌐 [Miro Engineering Blog](https://medium.com/miro-engineering)

🌐 [Lyft Engineering Blog](https://eng.lyft.com)

🌐 [Twitter Engineering Blog](https://blog.twitter.com/engineering)

🌐 [Myntra Engineering Blog](https://tech.myntra.com)

🌐 [Flipkart Engineering Blog](https://blog.flipkart.tech)

🌐 [Tinder Engineering Blog](https://medium.com/tinder)

🌐 [Pinterest Engineering Blog](https://medium.com/@Pinterest_Engineering)

🌐 [Slack Engineering Blog](https://slack.engineering)

### Join Me

Follow me on [#TheEngineeringBolt](https://engineeringbolt.com), [Twitter](https://twitter.com/alexrashkov) and [Linkedin](https://www.linkedin.com/in/alexrashkov) for more Career, Leadership and Growth advice.

<a href="https://engineeringbolt.substack.com/embed" target="_blank" title="Subscribe to Engineering Bolt ⚡ Newsletter">![Subscribe to Engineering Bolt ⚡ Newsletter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3u2srkrj6arwrs0nclfs.png)</a>
Fixed Domain Redirect to Iplogger
Published: 2023-02-01 21:52:03

When we enable Cloudflare on the [blackexpo.id domain](https://blackexpo.id/), we get a 301 redirect to " iplogger.com/XXXXXX " on every request, this happens not only on blackexpo.id but also on many of our other websites, though not all.

For example, from computer A using Windows , we get this redirect, but from computer B using Mac OS we don't. This is unprecedented, it started on 01 january 2023. Anyone know what could happen?

When Do Redirects Occur?
This only happens when your website user/visitor agent is using Windows operating system . If you use another user agent (even the same browser on a different platform ), everything works correctly.

What Causes a 301 Redirect to iplogger.com?
We have done all the testing and checking. We thought the problem was in the Computer that had been infiltrated with malware, but it wasn't. But on the side of the Cloudflare account that has been controlled by someone else via the API .

**[How to Fix Domain Redirect to iplogger](https://blog.mycoding.id/2023/02/domain-redirect-otomatis-ke.html)**
1. Go to dashboard Cloudflare and choose your website
2. Di sidebar, pilih "Redirect rules" di menu "Rules".
3. If there are rules / " Rules " that you don't recognize, delete those Rules .
4. To see the details, click "Edit".

Avoid Domain Redirects to iplogger.com
Here's how to avoid " Domain Redirect to iplogger.com " or " Redirect to NewUpdaters.zip Download link " (cdn,discordapp,com/attachments/XXXXXX/NewUpdaters.zip). Only with a few stages of this security account that has been compromised will be much more secure. If you observe suspicious activity in your Cloudflare account, secure your account with these steps.

1. Remove Suspicious Redirect Rules
2. Change your password
3. Revoke an active account session
4. Enable Two Factor Authentication (2FA)
5. Change API Key and API Token

We suggest changing the password and using 2-factor authentication. Then delete all active sessions other than your device . And delete all Rules that you didn't create in Cloudflare's Redirect rules settings . Finally, review the audit logs : To access the logs on the Cloudflare dashboard, login to the Cloudflare dashboard, go to Manage Account > Audit Logs. I hope this helps.

Readmore Fixed Automatic **[Domain Redirect 301 to Malware Iplogger](https://blog.mycoding.id/2023/02/domain-redirect-otomatis-ke.html)**
Setting tmp Folder Using express-fileupload before Deploying to Cyclic.sh
Tags: webdev, tutorial, express, deployment
Published: 2023-02-01 21:16:18

<pre>Error: EROFS: read-only file system, '/var/task/tmp/tmp...'</pre>

You are here because you probably just finished a file upload feature that runs well locally but on deploying it to [cyclic.sh](https://cyclic.sh), you encountered the error above.

Don't fret, there are 2 key things to know about this error:
1. You can only write to a `tmp` folder which must be in the root folder of your project directory.
2. Cyclic.sh tries to navigate the `tmp` folder relative to the current working directory which is not the root folder of your project. Hence, it appends `/var/task/` to the `tmp` directory itself.

The simple solution is to set the value of one of the parameters in your express-fileupload package as shown below. I would assume you have installed both `express-fileupload` and `express`, if not, run the following command:
<pre> npm install express-fileupload express</pre>

```javascript
// The Solution
const express = require('express');
const fileupload = require('express-fileupload');

app.use(fileupload({
    useTempFiles: true,
    tempFileDir: "/tmp",
}))
```

It is important that you set the value of the `tempFileDir` property to be `\tmp`. This way, cyclic.sh is able to navigate the `tmp` folder relative to the root directory. You can read more on [express-fileupload](https://www.npmjs.com/package/express-fileupload).

I hope this helped. Thanks for reading.
Adding Credly badges to AWS re:Post if email addresses do not match
Tags: aws, credly
Published: 2023-02-01 21:19:26

---
title: Adding Credly badges to AWS re:Post if email addresses do not match
published: true
date: 2023-02-01 21:14:39 UTC
tags: AWS,Credly
canonical_url: https://julianmichel.dev/2023/02/01/adding-credly-badges-to-aws-repost-if-email-addresses-do-not-match/
---

You can add your AWS certifications to AWS re:Post to show them on your profile and earn reputation points. In my case, I couldn’t add all certificates because some of them were issued when I was using an old email address. Each Credly badge contains an email address that will not be changed even if you change the email in your Credly profile.

When I tried to add the certificates, AWS re:Post showed the following error:

> Could not verify recipient, your verified email address in re:Post must match the email address attached to the Credly certificate that you are importing

Solution: The [AWS Training and Certification](https://support.aws.amazon.com/#/contacts/aws-training) support team had to reissue the certificates under my new email. After that, I was able to add the AWS certificates to my AWS re:Post profile. They replied with the solution:

> I’ve reissued your badges under your preferred email …. You should now be able to add them under the portal as needed.

I also contacted the Credly support team. They cannot change the (internal) email of the badges. So contact AWS Training and Certification if you have the same problem.
JavaScript Closures: Understanding the Power Behind the Scenes 🧐
Tags: javascript, beginners, programming, tutorial
Published: 2023-02-01 20:56:23



Closures are one of the most powerful features of JavaScript, but they can also be a source of confusion for many developers. In a nutshell, a closure is a function that remembers values in the enclosing scope, even after the parent function has closed.

This allows us to create functions that have a private scope, and to maintain state and encapsulation in our code. Closures have some pretty neat use cases such as implementing private variables and methods, event handling, async operations. They're also fundamental to functional programming, used for implementing higher-order functions, currying and can also be used for performance optimization techniques such as memoization.

### Creating OOP with closures:

```js
function createPerson(name, age) {
  let person = { name, age };

  return {
    getName: function() {
      return person.name;
    },
    getAge: function() {
      return person.age;
    },
    setName: function(newName) {
      person.name = newName;
    },
    setAge: function(newAge) {
      person.age = newAge;
    }
  };
}

const person = createPerson("John Doe", 30);
console.log(person.getName()); // John Doe
console.log(person.getAge()); // 30
person.setName("Jane Doe");
person.setAge(32);
console.log(person.getName()); // Jane Doe
console.log(person.getAge()); // 32
```

In this example, we use a closure to create a createPerson function that returns an object with private state (the person object) and public methods for accessing and modifying that state (getName, getAge, setName, and setAge). This allows us to create objects with a defined interface and private state, just like in traditional OOP.

Closures provide a powerful and flexible way to implement many things in JavaScript, and they are widely used in many libraries and frameworks. If you're not already familiar with closures, I highly recommend taking the time to learn and understand this important concept. 💡
Desktop Dev looking to move to web development
Tags: career, webdev
Published: 2023-02-01 20:41:58

Hello. 
I have spent 10 years in C#/VB desktop development for different companies. My goal is to move to web dev. I learned the basics of HTML, CSS, JS and made some CRUD apps in MVC (.Net). After trying an assessment I found my web knowledge lacking and the world has moved to .Net CORE, angular, typescript etc. Is there a good path to quickly ramp up on employable web skills?  PS: .Net CORE looks like rocket science compared to .Net! Thanks!
Unlocking the Power of Apache Kafka: An In-Depth Look at the Leading Streaming Platform
Tags: kafka, eventstreaming, opensource
Published: 2023-02-01 20:35:05

Apache Kafka is a popular open-source streaming platform that enables organizations to handle high-volume, high-throughput, and real-time data streams. In this blog, we will explore the features, benefits, and use cases of Apache Kafka and why it has become one of the most widely adopted technologies for data streaming.

Apache Kafka was developed by the Apache Software Foundation and was initially released in 2011. It is written in Scala and Java, and it runs on a cluster of servers, making it highly scalable and fault-tolerant. Kafka is designed to handle massive amounts of data, making it an ideal solution for use cases that involve real-time data processing and analysis.

One of the main benefits of Apache Kafka is its ability to handle high-volume data streams in real-time. It uses a publish-subscribe model, where producers write data to topics and consumers read from these topics. This allows for real-time processing and analysis of large amounts of data, making it possible to extract valuable insights in near real-time.

Another important feature of Apache Kafka is its high throughput. It is designed to handle millions of events per second, making it an ideal solution for organizations that need to process large amounts of data quickly. This high throughput is achieved through horizontal scaling, where additional servers can be added to the cluster as needed to handle increased loads.

Apache Kafka also offers strong durability guarantees. It writes data to disk and replicates it across multiple servers, ensuring that data is not lost even in the event of a single server failure. This makes it a reliable solution for mission-critical data streaming applications.

Apache Kafka has many use cases in various industries, including finance, healthcare, retail, and e-commerce. In finance, for example, Apache Kafka can be used to process real-time market data and perform real-time risk management. In healthcare, it can be used to stream real-time patient data for analysis and decision making. In retail, it can be used to stream real-time customer data to perform real-time analysis and provide personalized recommendations.

In conclusion, Apache Kafka is a highly scalable, high-throughput, and real-time streaming platform that offers strong durability guarantees. It is widely adopted by organizations of all sizes and industries, making it a valuable tool for data streaming and real-time data analysis. Whether you are a startup or an established enterprise, Apache Kafka can help you handle large amounts of data in real-time, extract valuable insights, and make informed decisions.