teleren/devto huggingface dataset:
Update your origin branches on SourceTree
Tags: sourcetree, git
Published: 2020-11-11 11:06:58

Run the following in the command line:
```git fetch --prune```

Or:
https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-Refresh-branches/qaq-p/481952

"Another option is to use the explicit 'Fetch' button on the toolbar and check the 'Prune' option. This will remove all remote branches which you have a local record of, but are no longer actually present on the remote.''

If you right click on Origin in SourceTree there is a fetch option
My first os contribution
Tags: hacktoberfest
Published: 2020-11-11 11:06:28

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


### My first open source contribution
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  -->
Hi there, I'm rahul, in sophomore year undergraduate in CS. I love building bots, learning backed, cloud technologies.
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →
This was my first step towards open source contribution. Hacktoberfest really helped me a lot on version control and learnt about open source and also met new faces. Had amazing experience.
### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->
I'm just starting right now and hope to get better by next hacktoberfest.
### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->
https://github.com/diyajaiswal11/Codechef

https://github.com/rahulbollisetty/CFbot

https://github.com/keshavsingh4522/hacktoberfest2020
### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
I would definitely try to contribute more on android stuff and python project throughout and also later in hacktoberfest 2021.
#codevember - 11 - Floating Icons - Made with tsParticles
Tags: codepen, showdev, javascript, html
Published: 2020-11-11 11:01:00

# Floating Icons

**Made with [tsParticles](https://github.com/matteobruni/tsparticles)**

{% codepen https://codepen.io/matteobruni/pen/NWrEOzQ %}

Checkout more samples on CodePen [here](https://codepen.io/collection/DPOage)
Fun With Regular Expressions
Published: 2020-11-11 10:17:49

Following [PEP 440](https://www.python.org/dev/peps/pep-0440/#public-version-identifiers), it's important to check the semantics of a release version before publishing to [PyPi](https://pypi.org/). So I thought to myself, here's a good way to practice my "regular expression skills".

The **required pattern**:

```
[N!]N(.N)*[{a|b|rc}N][.postN][.devN]
```

**Using a regular expression** to check if a release version matches this pattern:


```bash
^[0-9]+(\.[0-9]*)*(\.[0-9]+(a|b|rc)|(\.post)|(\.dev))*[0-9]+$
```


### Explaining The Regular Expression

We'll go over it bit by bit

- `^[0-9]+` - String must **start** `^` with at least one or more `+` digits `[0-9]`. Matching patterns: `0`, `23`, `200`
- `(...)*` - This group `()` can repeat zero to infinite times `*`
- `\.[0-9]*` - The previous group must start with `.` (`\` backslash escapes `.`), and zero to infinite number `*` of digits `[0-9]`. Matching patterns: `.`, `.1`, `.23`
- `(...)*` - This group `()` can repeat zero to infinite times `*`
- `\.[0-9]+(a|b|rc)` or `\.post` or `\.dev` - The previous group must match **one** of the following patterns: `.1a`,  `.1b`, `.1rc`, `.post`, `.dev`
- `[0-9]+$` - String must **end** (`$`) with at least one digit. Matching patterns: `3`, `03`, `92`

### Matching Patterns

[PyPa - Packaging and distributing projects](https://packaging.python.org/guides/distributing-packages-using-setuptools/#choosing-a-versioning-scheme)

```bash
1.2.0.dev1  # Development release
1.2.0a1     # Alpha Release
1.2.0b1     # Beta Release
1.2.0rc1    # Release Candidate
1.2.0       # Final Release
1.2.0.post1 # Post Release
15.10       # Date based release
23          # Serial release
```

### Thoughts

- Why have I used `[0-9]` instead of `\d`? - I found out the hard way that some versions of Bash don't support `\d`, so sticking with `[0-9]` is better
- Initially, I used `(?<=[0-9])` at the end of the string, instead of `[0-9]+$`. And again, I found out the hard way that [positive lookbehind](https://www.regular-expressions.info/lookaround.html#lookbehind) is not supported in some versions of Bash. Also, it's better to keep it simple, using positive lookahead might look weird to future you


## References

- [Online example](https://regexr.com/5fb9q) - Including tests

- [version_validation.sh](https://github.com/unfor19/python-project/blob/master/scripts/version_validation.sh) - Bash script to validate a release version

---
Originally published at [unfor19/python-project](https://github.com/unfor19/python-project/wiki/publish-to-pypi) on November 11, 2020
Golang or Ruby
Published: 2020-11-11 10:17:43

Link: https://blog.joshsoftware.com/2020/11/05/golang-or-ruby/

Ruby and Go are very popular programming languages and they stand out among the hundreds of the programming languages people are using nowadays. They are simple, easy to use, and available on most Operating Systems by default.

But are they the same? What are the differences? In this post we will give you a general
introduction to Ruby and Go, as well as the difference between the two programming
languages.
Incentivize by architectural design
Tags: architecture
Published: 2020-11-11 10:17:27

When a building architect designs a building, they think about what the user will see. They think about the distance. They know these things going to affect human behavior.

For example, everyone understands that you incentivize your employee to live healthier if you place healthy food inside an office shared space. Everyone understands that employee will talk their boss more often if the boss keep his room door open.

It is the same for software architecture.

Let say you design a programming language that you can inherit a class with a single `:` character, and you can do class composition by writing 4-5 lines of code.

What kind of incentive did you create?

That's why we need to keep shouting **Composition over inheritance**, and it will never become a habit on a large scale.

I know that a mediocre architect designs everything by the book, and a great architect designs a building based on human incentive and behavior.

Great software architects don't just follow best practices. 

Great software architects understand human incentives and human behavior. They love it.

Those architectural patterns out there, MVC Pattern, Strategy pattern, Factory pattern, Reactive programming, etc., create a specific way of thinking and specific incentive.

We should not choose any of them because they are cool, but we should choose any of them because we want to incentivize a specific way of solving a problem.

We should talk less and less about what is good architecture, and more about what kind of incentive does this architecture create?

Sadly, only few software engineer I met in my career talking about software architecture and design patterns in these terms. And I have an enjoyable conversation with all of them.
The Power of Study Groups
Tags: productivity
Published: 2020-11-11 10:03:25

Undoubtedly, the Covid-19 crisis has changed students’ habits a lot. Old habits, such as hanging out, drinking beers, watching movies and even studying together have almost torn apart since most countries are experiencing the second Coronavirus wave.

As a student, I decided to take advantage of the time gained from the situation to work on myself, my skills and my academic performance. Especially when the University’s workload increases, keeping yourself disciplined and focused on your goals becomes even harder.

During these times, working in a study group is really helpful. Working as a team with your fellow students helps you maintain your focus and motivation. Even the days you don’t feel like studying, although you need to, your team encourages you to keep on completing your tasks.
Also, the whole team gets the advantage of each individual’s strengths. Usually, students tend to like some courses more than others. Using this, team members help each other and save valuable time and effort from browsing through course’s notes in Elearning platform.

Choosing the right platform that best suits your needs is crucial. My group prefers Google Meet. We consider it as the most stable and user-friendly free video calling software right now. Occasionally, we also use Skype, Zoom, Messenger or Discord.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/enlzh67lywsav792c7bu.jpg)

I need additionally to mention the socialising part of group studying. Social distancing will last for some more months at least, socialising even virtually, is crucial for student’s mental health. As shown in the pie chart, communicating with your teammates for extracurricular activities is a main part of this, helping students to keep their social life balanced. Also, after completing your coursework you can work on your hobbies, such as side projects or gaming.

To conclude, although this chart seems to be very descriptive: the small percentage of “actually studying” time is so efficient that it is worth giving a try to make a study group.

The article is also published on Medium {% medium https://menelaoskotoglou.medium.com/the-power-of-study-groups-e1312b6b193d %}
SQL: DDL Basic command examples
Tags: sql, database
Published: 2020-11-11 10:00:50

[-linkedin: supriyakolhe123-]
[-link to the below queries: 
      https://github.com/supriya2371997/SQL/blob/main/DDL
-]

1---> ALTER, CREATE, RENAME TABLE
CREATE DATABASE DDL;
USE DDL;

CREATE TABLE Alter_Example
(
id INT,
name VARCHAR(5),
date DATE,
PRIMARY KEY (id, name)
);

INSERT INTO Alter_Example VALUES(1,'sejal','1997-07-23');
INSERT INTO Alter_Example VALUES(2,'sup','1997-07-22');
INSERT INTO Alter_Example VALUES(3,'sunny','1997-07-21');

SELECT* FROM Alter_Example;
add column in the existing table

ALTER TABLE Alter_Example add age INT,
user_location VARCHAR(10);

DROP existing column
ALTER TABLE Alter_Example DROP COLUMN age;

alter column datatype
ALTER TABLE Alter_Example ALTER COLUMN DATE DATETIME;

add CHECK CONSTRAINT USING ALTER: 2 ways
1. without allocating name: dropping CONSTRAINT isn't possible. fOR that TABLE must be dropped
2. allocating name: recommended becaUSE dropping constraint is possible without dropping the table

ALTER TABLE Alter_Example add CHECK (age>18 AND age <40);
ALTER TABLE Alter_Example add age INT CONSTRAINT cs_age CHECK (age>18 AND age<40);

date format: yyyy-mm-dd

DROP CONSTRAINT
ALTER TABLE Alter_Example DROP CONSTRAINT cs_age;

rename table
sp_rename 'Alter_Example','Alter_Empl';
sp_rename 'Alter_Example.name','first_name','COLUMN';
OR
sp_rename 'Alter_Example.name','first_name';

ALTER TABLE Employee_old RENAME TO Employee_current;

2---> TRUNCATE, DROP, DELETE*
remove data but the structure stays intact
TRUNCATE TABLE temp;

Delete data AND TABLE structure
DROP TABLE temp;

Delete data AND TABLE structure
DROP TABLE temp;
How would I change my ringtone for WhatsApp? 
Tags: ringtones, whatsapp
Published: 2020-11-11 09:56:05

On iPhone, its absolutely impossible to choose any ringtone however those which are accessible inside WhatsApp. You can change the ringtone for when the application is shut by means of WhatsApp Settings > Notifications. Here you can pick distinctive ringtones for messages, bunch messages and WhatsApp Calls. 
Download free ringtones here: https://kostenloseklingeltone.de/
![kostenloseklingeltone](https://dev-to-uploads.s3.amazonaws.com/i/e40ovj3z6e3lp275ur14.png)
With iOS 10, iOS 11 and iOS 12 and outsider call combination, the ringtone utilized for WhatsApp voice calls is the ringtone set in the contact data inside the telephone's Contacts application. 

To set a custom ringtone for WhatsApp voice approaches iOS 10, iOS 11 and iOS 12: 

1. Go to your iPhone Contacts application. 

2. Tap the reach you wish to choose a custom ringtone for. 

3. Tap Edit on the upper right corner of the screen. 

4. Pick a ringtone. 

5. Restart your iPhone. 

Note: Custom warning sounds for messages can be set in WhatsApp Settings > Notifications. 

Significant: Due to a bug in iOS 10, your warning sounds may not appropriately play until you restart your iPhone (press and hold the force and home catches for 10 seconds).
Google Contest - To Land The Job In Google.
Tags: google, computerscience, programming, contributorswanted
Published: 2020-11-11 09:41:10

####**Google Kickstart :**####
Kick Start is a global online coding competition organized by the google every year. Consisting of three-hour rounds of a variety of algorithmic challenges designed by Google engineers. In 2019 there will be total 8 rounds conducted by google. Kickstart has been going on since 2016. This program checks candidates data structure, algorithms and problem solving skills. If you are good enough in this you will going to be rock in competition.
Top participants of the contest may be invited for the google interview round.

To know more about kickstart head over here.
https://codingcompetitions.withgoogle.com/kickstart
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ioy61fbac1lv5pfrsnjk.png)

####**Google Hashcode :**####
Hashcode is a team programming competition for student and professionals. The team will be of 2 to 5 members.
This contest has also been going on since 2016. There are total 2 rounds organized per year, one in february and second in april. Top teams can get the opportunity for the final round at google office. 

To know more about Hashcode head over here.
https://codingcompetitions.withgoogle.com/hashcode/ 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/kb8msoxen9bovsysoqek.png)
####**Google Code jam :**####
Code Jam is Google's longest running global coding competition, where programmers of all levels put their skills to the test. Competitors work their way through a series of online algorithmic puzzles to earn a spot at the World Finals, all for a chance to win the championship title and $15,000.

To know more about code jam head over here.
https://codingcompetitions.withgoogle.com/codejam
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/x50axy71iro8921lc7ft.png) 

####**Google summer of code :**####
Google summer of code short abbreviation for Gsoc is the international annual program held by the google. This is the open source contribution program where the coders from all around the world contribute to the projects of various organizations that has been selected by google. The coders who got selected in this program and after successful completion of the program, they will get the very well stipend ([different stipend for different countries](https://developers.google.com/open-source/gsoc/help/student-stipends)).Cracking the Gsoc will be the plus point for your resume to stand out of the crowd and it will also help you to land job in google. 

To know more about Gsoc. Head over here.
https://summerofcode.withgoogle.com/
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/retqxebyngd1vzv87pyn.jpeg)
What is the difference between firstChild and firstElementChild in Javascript?
Tags: javascript
Published: 2020-11-11 09:37:22


The difference between firstChild and firstElementChild can sometimes be confusing.
firstChild considers both text and comment between html tags as child whereas firstElementChild does not.

The text also includes empty space which can be missed out..

Here is an example demo:
https://fullstackdeveloper.guru/2020/11/11/what-is-the-difference-between-firstchild-and-firstchildelement-in-javascript/
Whatsapp clone with MERN stack (Mongodb, Express, React, Node)
Tags: javascript, node, showdev
Published: 2020-11-11 09:22:09

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4ts8pv47ihka4frhwr6r.png)
Hello developers, I've recently created a web-based [Whatsapp Clone](https://github.com/kimlimjustin/whatsapp-clone) and I'm looking for comments as I'm beginner to the MERN stack. Any comments will be appreciated. Thanks.

Code: https://github.com/kimlimjustin/whatsapp-clone
Jenkins Disk Space Usage
Tags: ci, cd, devops, jenkins
Published: 2020-11-11 09:16:33

I'm working on a project, part time, in my spare time.  As part of that project I have Jenkins for continual building when I publish anything into the master branch in git.  I've not done much for a month or so, but logged in to it today to be given a lovely warning that the disk space is nearly full.

I logged into the server to find out there was zero disk space left (I know, I need monitoring on it!).  After clearing down all of the old builds (most were for testing the configuration of the build job anyway) and a few obvious log files, I'd cleared up a huge 400MB.  Nothing on a 50GB disk.

After spotting a jenkins folder within /var/logs, I checked that out.  Two files over 20G in size for logs.  Less than ideal!  One of them was easy enough to remove, but the active log file would show as removed, but not free the disk space.  A quick restart of the jenkins service sorted that out.

Now to check the logging settings of jenkins to see what we can limit!

---

This post was originally written before I migrated to GitLab CI pipelines. It's just a useful snippet of information for anyone using Jenkins.

Photo by [Nick van der Ende](https://unsplash.com/@nkend?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/computer-disk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText)
【Giải Mã】Những Thông Tin Bạn Chưa Biết Về Lập Trình Mobile
Published: 2020-11-11 09:16:01

Với sự phát triển của các thiết bị di động thông minh, xu hướng phát triển và cạnh tranh của nghề lập trình mobile cũng tăng cao.Xem chi tiết tại: http://nghelaptrinh.net/lap-trinh-mobile/
个人收款自动化
Published: 2020-11-11 08:24:32

## 问题
网上商城如果要开通支付功能，一般需要对接第三方支付系统，比如支付宝、微信支付等等，但是会被第三方收费，如果是个人开发者，订单量很小，一般不划算。

但是不对接第三方API，那么只能采用个人收款方式，比如个人收款二维码。但是这样的话，就不会得到第三方的付款回调通知，只能自行解决。

## 解决方案

第一步，自己写个订单系统，订单的状态转换（从已创建到已付款）人工实现。比如让用户付款后，发送截图给你，你核对后人工将订单状态改为已付款。

第二步，将这一步自动化。这里挑战很大，怎么知道收到的款项对应哪个订单呢？https://github.com/yioMe/nodejs_wx_aipay_api 解决了这个问题。
- 截获收款二维码的生成，给每个订单一定的范围内的随机减免
- 安装客户端 APP，监听支付宝/微信的收款（到账语音通知），转发通知到订单系统，根据金额关联到订单，实现自动状态流转。

## 免费方案

https://github.com/yioMe/nodejs_wx_aipay_api 开源的只是服务器端的订单系统而已，但是个人收款自动化的难点在于客户端监听方面，而这个监听 APP 并没有开源，而是收费下载的，因此如果要免费方案，还得自己实现这个监听 APP。
ASP.NET CORE Là Gì- Sự Khác Nhau Giữa ASP.NET CORE & ASP.NET 
Published: 2020-11-11 09:03:15

Asp.Net Core là gì? Sự khác nhau giữa Asp.Net Core và Asp.Net là gì? Nếu bạn cũng đang có chung những thắc mắc này như chúng tôi thì hãy cùng nhau khám phá.Xem chi tiết tại: http://laptrinhvacongnghe.com/asp-net-core-la-gi/
Flippy Discount The Best Discounts, Offers and Deals Store Online.
Published: 2020-11-11 09:02:46

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/simw6cpsnxtsfq7aja1j.jpg)
Save more with <a href="https://flippydiscount.com/">FlippyDiscount</a>, or Deal Finder to find the best coupons, promo codes, promotional deals and cash back offers to save on seafood, mobile accessories, apparels & accessories vehicles spare-parts, home décor, travel and much more.
Agile estimation: points vs t-shirts
Tags: agile, video
Published: 2020-11-14 20:57:23

---
title: Agile estimation: points vs t-shirts
published: true
date: 2020-11-11 08:59:24 UTC
tags: Agile,Video
canonical_url: https://www.notonlycode.org/agile-estimation-points-vs-t-shirts/
cover_image: https://www.notonlycode.org/content/images/2020/11/tshirt-sizes-thumbnail.jpg
---

In this video I'm talking about Agile software development and in particular about how t-shirt size estimation compares to story points estimation.Estimating software delivery tends to be tiring, mundane and thankless task - we always feel we're not accurate enougn, we always feel we should do better, yet we never can reach certain level of accuracy.I think it's normal and instead of pushing for perfect estimations we schould focus more on other, more important things. In order to facilitate the estimation and free ourselves from comparing numbers and calculating velocity, we can use t-shirt size estimation, which boils down to fixed, non-numerical scale. That simple change, removing numbers in order to focus more on team's feeling, can have a very positive impact!

{% youtube 6XoSbUjQQpM %}

🎥 Video timeline  
[0:00](https://www.youtube.com/watch?v=6XoSbUjQQpM&t=0s) Intro  
[0:45](https://www.youtube.com/watch?v=6XoSbUjQQpM&t=45s) Why points estimation is not that great?  
[3:05](https://www.youtube.com/watch?v=6XoSbUjQQpM&t=185s) How t-shirt size estimation can be better?  
[6:50](https://www.youtube.com/watch?v=6XoSbUjQQpM&t=410s) What are problems with t-shirt sizes?  
[8:00](https://www.youtube.com/watch?v=6XoSbUjQQpM&t=480s) Outro
How to Terminate Legacy Code without Getting Stuck
Tags: productivity, learning, legacycode, webdev
Published: 2020-11-11 08:14:31

You can keep reading here or [jump to my blog](https://odone.io/posts/2020-11-11-how-to-terminate-legacy-code-without-getting-stuck.html) to get the full experience, including the wonderful pink, blue and white palette.

---


Legacy and greenfield projects are two different beasts. Both require coding, but different rules apply. Failing to make the mental switch is an excellent recipe for getting stuck.

Some developers are perfectionists. But all of us have a minimum level of decency. We would never push bad code according to our definition of quality and skills.

Having an eye for good code is great in greenfield situations where the lack of constraints allows crafting software with finesse.

However, legacy code sits way below our minimum decency level and would require too much work to rewrite. **We cannot undo months of accrued technical debt in a few days**. And we shouldn't even try.

In this situation, we should embrace the *inversion principle*. Instead of trying to reach success, we should strive to avoid failure. Rather than repaying all the technical debt, we should **just make it less awful**.

Legacy code is not created all the same. Some never change and should be left alone. Some require multiple interventions. Don't try to make it perfect; just make it less awful for the next round of changes.

You will be back.

![I'll be back](https://odone.io/images/ill-be-back.gif)


---

Get the latest content via email from me personally. Reply with your thoughts. Let's learn from each other. Subscribe to my [PinkLetter](https://odone.io#newsletter)!