teleren/devto huggingface dataset:
What was your win this week?
Tags: discuss, weeklyretro
Published: 2021-11-19 21:30:51

---
title: What was your win this week?
published: true
description: Got to all your meetings on time? Started a new project? Fixed a tricky bug?
tags: discuss, weeklyretro
cover_image: https://cl.ly/188e843c2985/download/Image%202019-02-15%20at%202.36.37%20PM.png
---

Hey there! 


Looking back on this past week, what was something you were proud of accomplishing?

All wins count — big or small 🎉

Examples of 'wins' include:

- Starting a new project
- Fixing a tricky bug
- Discovering a great new musical artist... or whatever else might spark joy ❤️ 

---

Congrats on your wins — let's take a collective victory lap! 

![Kool & the Gang singing "Celebrate"](https://media.giphy.com/media/igJK985xZj8Cqq0YOW/giphy-downsized-large.gif)
OSD600 - Release 0.3 - Code Reviews
Tags: beginners, opensource, programming
Published: 2021-11-19 21:14:07

## Introduction
Hello all, in this [Release 0.3](https://github.com/Seneca-CDOT/topics-in-open-source-2021/wiki/release-0.3), I was asked to review two codes of either [Telescope](https://github.com/Seneca-CDOT/telescope) or [IPC144](https://github.com/Seneca-ICTOER/IPC144) from other's pull requests.

## First code review
I take a look at [PR#96](https://github.com/Seneca-ICTOER/IPC144/pull/96?fbclid=IwAR0CMuqMnFA8TVPpO2PHZVYiujyWG6gxJvX7Wybk0NyP_I7YqGs61d6rRb4), this pull request is about *Auditting and fixing* `functions-arrays-and-structs.md`. I go through all the changes my classmate has made, and I found that mostly his issues are about *redundant whitespace** ![redundant whitepsace](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aus4pvm78pgetq33ors7.png) and also some spelling mistakes. I review his changes carefully and then ask him to make the changes I requested. ![spelling mistakes](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qzz4gxl50dbnetf07i08.png)

## Second code review
Another pull request I also take a look at is [PR#100](https://github.com/Seneca-ICTOER/IPC144/pull/100?fbclid=IwAR33UH323_cIrLFtv1FZqoOHDipfvt7t4Wtl6aktYO-4smCln0N0FBDa37c). This pull request is about auditing `output-functions.md` there were also others reviewing it too. However, I noticed some issues she is still having such as missing `description` part in *Frontmatter*, and missing backticks to have better visibility. ![missing description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/famif0d1thcwj840umwz.png) ![missing backticks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5komq0othr7eyp3neilc.png) I suggest her to add the `description`, and also adding backticks to `stdio` to make it more clear for readers.

## Wrap up
To be honest, reviewing other's works is more difficult than reviewing mine because we are expecting to get it better with no issues. I think that is also the reason why our professor recommends we should have a couple of reviewers in the same pull request. There is no doubt that Github is so powerful, it allows us to work together, share experience as well as making ourselves better.
5th birthday of ruby on rails BA
Tags: rails, ruby, programming, software
Published: 2021-11-19 20:51:53

It's a birthday! 

Before 5 years we started this site and now we counting more thank 4k aggregated shortcuts for various blogs, tutorials and news from the ruby, ruby on rails programming tech stack.

Also, we collected 4 million page views. Daily we have around 3.5k views. Our facebook page https://www.facebook.com/rubyonrails collected 3.1k followers.

Ruby is still a great programming language and ruby on rails greatest tech stack for fast prototyping and web developing. I am so happy for choosing this direction in my career after 11 years in .Net. Today we are so strong and with future language/framework improvements no doubt we will enjoy our everyday work even more. 

Thank you Matz! Thank you David H.H.

Owner Nezir Zahirovic.
https://rubyonrails.ba/
OSD600 - Release 0.3 - Second Pull Request
Tags: opensource
Published: 2021-11-19 20:25:37

## Introduction
Hello everyone, my name is Dustin. Today I'd like to talk about one of my pull requests in [Telescope](https://github.com/Seneca-CDOT/telescope) project. 

## Progress
Instead of choosing another project to work on, I decided to go with Telescope again because why not?. This is also an external project and can compete with other open source projects. 

My second pull request was about showing the feeds count on a status report webpage, which is up and running [here](https://dev.api.telescope.cdot.systems/v1/status). If you go to the page, you could see total feeds displaying right there below commit count card. 

This issue proposed a lot of problems as this is a completely new feature and nobody has touched the code before. 

First, I ran into a problem with base url so I had to disable a couple lines to get it work properly on my local. After solving that problem, I had another one which I was not able to extract `x-total-count` from header because the posts api didn't expose headers for some reason. In order to get it work, I added `cors: { exposedHeaders: ['X-Total-Count', 'Link'] }` which basically means expose x-total-count in header so that I can access it. 

However, I just saw another potential bug which may happen when someone uses `window.onload()`, which may be resolved by the time you read this blog, but I'll have a discussion with other people to see how they'd like it to be. 

```js
const apiHost = new URL(location).origin;

async function getFeedCount() {
  try {
    const data = await fetch(`${apiHost}/v1/posts/feeds`, {
      method: 'HEAD',
    });
    const feedCount = data.headers.get('x-total-count');
    const feedCountElement = document.getElementById('feeds-count');
    feedCountElement.innerText = feedCount ?? 'N/A';
  } catch (err) {
    console.error(err);
  }
}

window.onload = () => {
  getFeedCount();
};
```

For the last 3 lines, `window.onload()` should be changed to `window.addEventListener('load')` in order that the main `window.onload()` won't be override accidentally.

## Wrap up
This is actually interesting and I've learnt a lot from it. Not only the code I wrote but how an issue, and a pull request on Github will be treated and how to work with Git correctly. Although this is not a big pull request, but I'm proud of what I've done.
Automatically Remove Unused Node Modules with Python
Tags: python, npm, npx, javascript
Published: 2021-11-19 20:12:00

---
title: Automatically Remove Unused Node Modules with Python
published: true
description: Cross-platform solution for cleaning up package.json dependencies.
tags: python,npm,npx,javascript
---

We keep a directory under the root of our projects called `_dev_tools`. 

It consists of Python scripts we can quickly run, usually by pressing the Play button of the [Code Runner](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner) extension in VS Code, to help with project management.

The key is creating tools that work cross-platform on Windows, Mac, and Linux.

Here's our script for removing unused node modules.

```python
import json
from sys import platform
from subprocess import run

div = "=================================="
use_shell = platform == "win32"

print(f"\nFinding unused dependencies\n{div}\n")

cmd = ["npx", "depcheck", "--json"]
depcheck_result = run(cmd, shell=use_shell, capture_output=True, text=True)

unused_dependencies = json.loads(depcheck_result.stdout)["dependencies"]
if len(unused_dependencies) > 0:
    print(f"Found these unused dependencies\n{div}")
    print(*unused_dependencies, sep="\n")

    affirmative_responses = {"y", "yes", "Y", "YES", ""}
    response = input(f"{div}\n\nRemove all? [yes] ").lower() in affirmative_responses

    if response == True:
        cmd = ["yarn", "remove", *unused_dependencies]
        run(cmd, shell=use_shell)

    print(f"\nDone!\n{div}\n")

else:
    print(f"\nDone! - No unused dependencies found.\n{div}\n")
```
Working Collaboratively With Git
Tags: github, git, teamwork, programming
Published: 2021-11-19 19:58:11

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

 During my 1st weeks in Flatiron School I began learning about **Git** for the first time, ever! However, the majority of all the labs and assignments involved working alone. I found myself doing the same simple git commands to fork and clone a GitHub repository, and then push my changes when the assignment was complete. At the beginning of my 3rd week we had our first group project and realized that neither of us were very familiar with working on building a web app together without conflicting changes. This blogpost is written for beginner programmers that want to work collaboratively on a project! It assumes you already have git installed and know the basics of working solo.

###Add collaborators to your repository
  Create a repository on **GitHub** and navigate to Settings/Manage access. Invite people you will be working on the project with.

###Create a new branch name
  In the terminal, navigate to your projects folder. The following ``commands`` will be entered into the terminal.

```git branch new-branch-name```

###Switch to your new branch to being work
```git checkout new-branch-name```

###Don't forget to make regular commits!
  Make regular commits to your branch to back up your work.
```git add .
git commit -m "describe changes"
git push origin new-branch-name```

At any point you can make sure you're in the desired branch with ```git status```

###Merge the branches when ready
When you have completed the work on your branch, merge it into the main branch and push it to the remote repository.
```git checkout main
git merge new-branch-name
git push origin main```

Once each person has done this, the main branch should be up to date with your project!
Highlight of This Month in our Product SCH (Digital Supply Chain Management Solution)
Tags: supplychain, webapplication, eimsolutions, schinfotech
Published: 2021-11-19 19:47:29

*Helping Companies digitally connect with Suppliers, Customers, Factory and Maintenance , eliminating paper works & physical contacts..*


## Highlight Additions  in [SCH](https://eimsolutions.com) this month


These are some of the **Highlight Additions** in our product **[SCH](https://eimsolutions.com)   [Supply Chain Management Solution](https://eimsolutions.com)**, this month...

- 1) **A New [SCH](https://eimsolutions.com) Login Page**
- 2) **A well Designed [SCH](https://eimsolutions.com) Home Page**
- 3) **[SCH](https://eimsolutions.com) Module Gateway Page**
- 4) **A New [SCH](https://eimsolutions.com) Vendor Dashboard**
- 5) **A New [SCH](https://eimsolutions.com) Buyer Dashboard**
- 6) **New [SCH](https://eimsolutions.com) Vendor Hub**
- 7) **[SCH](https://eimsolutions.com) Collaboration Engine**
- 8) **New [SCH](https://eimsolutions.com) Vendor Registration**


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1637339296355/G61e7Nv6G.png)(Login Page)


All these required **continuous effort**, from  [SCH Product Team](www.schinfotech.com), to do the following 
 
- 1) Imagine the UI Design ,
- 3) Imagine the Logic / System Design 
- 3) Discuss and Refine by the Team
- 4) Continuous Development, Review and Testing
- 5) Finally integration with main SCH and testing
- 6) Arranging meetings with Implementation Team, to communicate the new standard, so that they can replicate the same, in other Screens/APIs


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1637338558044/cSxYwP9bI.png)(Buyer Dashboard)


- All these have been Product Team's own **INITIATIVE**,  resulting from multiple thought experiments ( i.e. imagining what's most important , imagining the output , impact , process, benefits  before it is coded ).

- Working on a **VISION**, that forms and reforms everyday, to make our product, **[SCH](https://eimsolutions.com)**,  better, saleable,  scalable, attractive and improve everyday.

- Kudos to my Product Team for implementing wonderful solutions

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1637339351200/jVQVe9-ji.png)(SCH Home Page)


- We are adding 1 more very interesting and ground breaking Feature, in another 2 weeks, which is going to take our product **[SCH](https://eimsolutions.com)** to the next level.. We will reveal it once implemented..

#### Please do subscribe my blog for more updates on various topics on  [Supply Chain Management](https://schinfitech.com) ,  [Technology and Innovation](www.soumyojit.com)  ....

![blog.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1637338700384/8OgN8D40b.png)(My Blog)


Thanks to my wonderful Team ( **Karthikeyan C, Kartik Wakchaure, Maruthu Pandi, Deepan Arunachalam, Kavin Kartik, Balakrishnan R, Animesh** )
UBNTU INSTALLATION
Published: 2021-11-19 19:28:24

so first i made a backup of my windows system. then i dowloaded the ubntu latest version 20.4 from its website.
then i downloaded the Rufus utility,i ran the file once it was downloaded.
then i set the usb,then i inserted the ubntu usb dirve into the system by configure USB booting in the Boot Menu.
my boot menu key was fn + f2.
Once i saw the boot menu, used the arrows to pick the Ubuntu media to boot from. 
next step was to run ubntu which took some time then choose the keyboard layout and clicked continue once it was ready.
Highlight of This Month in our Product SCH ( Digital Supply Chain Management Solution )
Tags: supplychain, webapplication, eimsolutions, schinfotech
Published: 2021-11-19 19:28:22

*Helping Companies digitally connect with Suppliers, Customers, Factory and Maintenance , eliminating paper works & physical contacts..*


## Highlight Additions  in [SCH](https://eimsolutions.com) this month


These are some of the **Highlight Additions** in our product **[SCH](https://eimsolutions.com)   [Supply Chain Management Solution](https://eimsolutions.com)**, this month...

- 1) **A New [SCH](https://eimsolutions.com) Login Page**
- 2) **A well Designed [SCH](https://eimsolutions.com) Home Page**
- 3) **[SCH](https://eimsolutions.com) Module Gateway Page**
- 4) **A New [SCH](https://eimsolutions.com) Vendor Dashboard**
- 5) **A New [SCH](https://eimsolutions.com) Buyer Dashboard**
- 6) **New [SCH](https://eimsolutions.com) Vendor Hub**
- 7) **[SCH](https://eimsolutions.com) Collaboration Engine**
- 8) **New [SCH](https://eimsolutions.com) Vendor Registration**


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1637339296355/G61e7Nv6G.png)(Login Page)


All these required **continuous effort**, from  [SCH Product Team](www.schinfotech.com), to do the following 
 
- 1) Imagine the UI Design ,
- 3) Imagine the Logic / System Design 
- 3) Discuss and Refine by the Team
- 4) Continuous Development, Review and Testing
- 5) Finally integration with main SCH and testing
- 6) Arranging meetings with Implementation Team, to communicate the new standard, so that they can replicate the same, in other Screens/APIs


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1637338558044/cSxYwP9bI.png)(Buyer Dashboard)


- All these have been Product Team's own **INITIATIVE**,  resulting from multiple thought experiments ( i.e. imagining what's most important , imagining the output , impact , process, benefits  before it is coded ).

- Working on a **VISION**, that forms and reforms everyday, to make our product, **[SCH](https://eimsolutions.com)**,  better, saleable,  scalable, attractive and improve everyday.

- Kudos to my Product Team for implementing wonderful solutions

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1637339351200/jVQVe9-ji.png)(SCH Home Page)


- We are adding 1 more very interesting and ground breaking Feature, in another 2 weeks, which is going to take our product **[SCH](https://eimsolutions.com)** to the next level.. We will reveal it once implemented..

#### Please do subscribe my blog for more updates on various topics on  [Supply Chain Management](https://schinfitech.com) ,  [Technology and Innovation](www.soumyojit.com)  ....

![blog.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1637338700384/8OgN8D40b.png)(My Blog)


Thanks to my wonderful Team ( **Karthikeyan C, Kartik Wakchaure, Maruthu Pandi, Deepan Arunachalam, Kavin Kartik, Balakrishnan R, Animesh** )
Open AI Codex - support for other languages
Tags: codex, openai, ruby, rust
Published: 2021-11-19 19:18:19

Latest update to my open ai codex app is support for ruby, rust, go.

http://architectcorner.com/openaikb/

Open AI codex has no support for JavaScript, Go, Perl, PHP, Ruby, Swift, TypeScript, SQL, and even Shell
Code reviews in open source
Published: 2021-11-19 19:16:45

So far, I had contributed code to open source repos, however I had not actually done code reviews. To start with code reviews, I decided to review pull requests in [IPC144](https://github.com/Seneca-ICTOER/IPC144).

I had worked on auditing markdown pages earlier and I decided to review pull requests for it, as there were around 30 issues that needed to be done. I also have a blog post about my audit contribution, [Auditing and fixing markdown for IPC144 notes](https://dev.to/dhillonks/auditing-and-fixing-markdown-for-ipc144-notes-5h06)!

## Review 1: Audit & fix `Information.md`
There had already been a review on the pull request, but they had missed some points, so I started a new review:

#### Images being left aligned
The images should've been centered as per the issue description, however, the code was aligning the images to the left. I left a comment:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3pu8mr7x8pqv1544adig.png)
 
#### Alt text improvement
I also suggested an improvement for the `alt` text for an image, as I felt that it wasn't very descriptive:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z44z13suun85235m3eko.png)

After highlighting these, I **requested changes** and submitted my review.

## Review 2: Audited and fixed expressions.md
This pull request had no reviewers, so I decided to go over it and started a review.

#### Using quotes to highlight operators
There were operators such as `&&` and `||` that were being used in the text. But without the code highlighting, it was hard to read and didn't look good, so I left a comment:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8m10j8kyx0fncos6s8cp.png)

#### Small image not being centered
There was an image which was not being centered horizontally, so:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g2tvu6vq3h0669rdpong.png)

#### Slug format
The slug for FrontMatter was not following the standard set out in a different ticket, so I highlighted it:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ndyjz12nznlt8ard5ro8.png)

After adding these comments, I again **requested changes** and submitted my review.
   
## Takeaways
Doing code reviews in open source was a new experience for me and I found it quite interesting. It is great to have different people review pull requests to identify bugs and problems which ultimately improves the quality of the project.
majhi naukari
Published: 2021-11-19 19:06:50

<p>mazinaukari, majhinaukrimazi nokari.com, mazi naukari.com</p>
<p><a href="https://mkvdc.org/majhi-naukri-in/">Majhi Naukri</a>, Majhinaukri, माझी नोकरी, Sarkari Jobs, The Maharashtra Jobs &amp; vacancies updates about various sarkari jobs are given below. Click on given Links to read the respective advertisement. Majhi Naukri 2021, Government Jobs, Latest Jobs, Current Recruitment, 2021 Jobs, Majhi Naukri 2021, Majhinaukri.co.in, Majha Job, Maza Job, Mazi Naukri, Gov Nokri, Maha NMK, Majhinaukri.in &amp; Details about the mazi naukari.com</p>
Why isn't coverage badge in GitLab updating?
Tags: gitlab, devops, lifehack
Published: 2021-11-19 18:29:32

Sometimes coverage badge is not updating at all and remains at the same value as it was in the past.
Earlier this was an old bug in Gitlab that lead you to this situation. But these days are gone and the bug was fixed. And all articles on the whole internet show you mainly this irrelevant information. So I wrote this article in hopes of adding a piece of valuable information.

If you search in your setup of Gitlab and find a «blocked» pipeline — exactly this type of pipeline is the main reason for coverage score staling.
In earlier versions of Gitlab, it was easy to get stuck in this situation. A single job with the following configuration in your pipeline and your coverage gets pinned at one value:
```YAML
my-job:
    when: manual
```
To fix this you need to add only one line:
```YAML
my-job:
    when: manual
    allow_failure: true
```
And poof, you get lucky, your coverage badge is free of the evil witch curse and updates as it should.

Recently Gitlab guys fixed that behavior. How exactly? Just added default value allow_failure: true for manual pipelines automatically. This is a very good decision, because otherwise, a single manual step may ruin the whole CI/CD prosperity of your project.
But if your think that you are now completely free of this trouble, I may change your opinion.
Just write anything like this:
```YAML
my-job:
    when: manual
    allow_failure: false
```
and poof once again — you are stuck with never-ever updating coverage badge. The fix is obvious — add «true» for allow_failure or strip this line. But I have no answer to a simple question: what we should do if we need manual pipelines with disabled failure option and updatable coverage badge? Probably, this question should be addressed directly to Gitlab.

This may not be so easy to grasp from official documentation, so I decided to write this article. I hope it helped.
Setup your python package within seconds
Tags: python, programming, tutorial, opensource
Published: 2021-11-19 18:27:48

Hello, today I'm going to tell you about a new project/package that I made related to python packages or pypi packages. Before we deep dive I really want y'all to drop a follow on Twitter [Twitter Profile](https://twitter.com/Haider_Ali999)

So many of you while making a python package have suffered the pain of setting up the files and folders. Well not anymore I made a "Open Source" project called "create-pypi-project" what this does is makes creates a folder and creates all the file needed for a pypi package. Not only the files and folders, it also sets their content, no need to go to google and suffer the pain.

**Lets get started**

```
pip install create-pypi-project
```

```
createpypiproject --name helloworld --author Haider
```

`--name` will the name the folder and also name the package so its required

`--author` is also required because it is necessary who published the package.

***Remember to change the details in setup.cfg, like the github repo, author_email and etc***

Soon we will add option in which you can static or dynamic way of setup files

Now you will something like this in your terminal 
```
Hey Pythoneer or Pythonista, are you sure you want to name your project helloworld [y/N]: y
Started creating a Pypi project helloworld
Made a directory named helloworld
Created project.toml
Created setup.cfg
Created README.md
Created LICENSE file with defualt license
You can choose a different license from https://choosealicense.com/
Sucessfully created Pypi project: helloworld
```


Done, this took like 2 or 3 seconds and your project is ready to be developed.

Now you use this anytime you're wanting create a new package :)

Here is the [GitHub Repository](https://github.com/Haider-Ali-Dev/create-pypi-project)

Here is the package link [create-pypi-project](https://pypi.org/project/create-pypi-project/)

Make sure to follow me on Twitter :)