teleren/devto huggingface dataset:
Compleated HacktoberFest20
Tags: hacktoberfest
Published: 2020-10-17 05:02:00

Finally after soo many up's and down's, I Completed #hacktoberfest2020!
This was my first time experience with #hacktoberfest .
Being a beginner I learned a lot about how to contribute, how to use GIT properly :P (and now i am enjoying it) and importance of #opensource contribution and now a part of open source community.
I came across many good repositories that enhanced my knowledge and taught me a lot.
Thank you DigitalOcean ,DEV Community and GitHub for giving developers such a great platform , it was really helpful.
Completing Hacktoberfest-2020
Tags: hacktoberfest
Published: 2020-10-17 04:55:18

## What I Learned From Hacktoberfest

I participated in Hacktoberfest for the first time. I learned a lot about open-sourcing, made some great contributions. I made contributions on the front-end. I completely re-styled a website for Py-Contributors. I came to knew about many libraries for front-end, many articles and many resources to learn from. Overall, this first experience was a great one and i'll continue to make contributions to open-source.
Hacktober Fest 2020 Journey
Tags: hacktoberfest
Published: 2020-10-17 04:54:22

## What I Learned From Hacktoberfest

<!-- What did you learn that can help others contribute to the project you worked on? What did you learn that can help the users of that project?! -->
## Beginning:

I started participating in hacktoberfest last year. One of my friend told me about this contest for open source contributors and how it encourages new comers to join the community!

## This year:

This year, I contributed in repositories containing data structures, algorithms and leetcode (leetcode.com) solutions.
It will surely help new comers and others who are preparing or interested in DSA and competitive programming.
Temporary Refactoring and Improving Your Code Reading Skills
Published: 2021-07-03 07:27:04

---
title: Temporary Refactoring and Improving Your Code Reading Skills
published: true
date: 2020-10-17 04:52:10 UTC
tags: 
canonical_url: http://bazlur.com/2020/10/temporary-refactoring-and-improving-your-code-reading-skills/
---

I was talking to a friend of mine, [Scott](http://keepcalmandrefactor.com/), over Slack about reading code! Specifically, how to improve your code reading skills.

I asked him what he usually does when he reads source code. What he said is interesting:

He does a temporary refactoring. That’s it.

He usually takes a long method that can be separated out and then he turns it into a separate method.

For example- `readEmployeeDataFromDatabase()`

This method can be broken into multiple methods, and he does that. He keeps doing that until he gets a sense for what the intent of the larger method is about. Then he takes a few notes on what the method does and rolls back the changes.

He also mentioned that he does not do any unit testing because this refactoring is only temporary, and used just to understand the code!

I believe this could be a great way towards improving **code reading skills**. Although what he suggested isn’t really true refactoring, it can help you to understand the code you are reading.
Spring AOP
Tags: aop, spring, java
Published: 2020-10-17 04:51:03

Aspect-Oriented Programming (AOP) enables the modularization of generic functionalities that are needed in many places (join points) like logging, security, caching, error handling, etc.

Spring AOP uses dynamic proxies (enhanced classes that stand in place of the originals) for aspect weaving (combining aspects with the code). An aspect is a java class that contains pointcuts (expressions that select one or more join points) and advice (code to be executed at each selected join point).

For example, let's implement an aspect for logging. First, we need to enable the use of the @Aspect annotation by adding the @EnableAspectJAutoProxy annotation in the @Configuration (see [Spring Configuration](https://dev.to/eidher/dependency-injection-using-spring-ckk)) class (with its respective @ComponentScan to the packages with the aspects). Now we can create the @Aspect:

```java
@Aspect
@Component
public class LoggingAspect {
 
	private Logger logger = Logger.getLogger(getClass());

	@Before("execution(public * package_name.*(..))")
	public void log() {
          logger.info("Logging from aspect");
	}
}
```

We can receive the JoinPoint (or its subinterface ProceedingJoinPoint) as a parameter in the methods and to get some properties (see [JoinPoint interface](https://www.eclipse.org/aspectj/doc/released/runtime-api/org/aspectj/lang/JoinPoint.html)). And not only to use the @Before annotation over the methods, but to use other annotations from the [org.aspectj.lang.annotation](https://www.eclipse.org/aspectj/doc/next/aspectj5rt-api/org/aspectj/lang/annotation/package-summary.html) package as @Around, @After, @AfterReturning, and @AfterThrowing, followed by the context about the intercepted point using AspectJ's pointcut expression language (wildcard asterisk matches once, two points match zero or more) for selecting where to apply the advice (see [AspectJ Documentation](https://www.eclipse.org/aspectj/docs.php)).

Take into account: 
* If a @Before advice throws an exception, the target will not be called.
* You can only advise non-private methods.
* You can only apply aspects to Spring Beans.
Completed Hacktoberfest
Tags: hacktoberfest
Published: 2020-10-17 04:49:47

As an undergraduate, the opportunity of contributing to the open-source is the best experience you gain can develop your documentation skills and coding skills. Been versatile in computer science and helping each other with what you know with your colleagues are some soft skills that I learned as well.

Thanks to the Hacktoberfest, It influences us to do so, and hope to continue this momentum in the future as well.

Projects that I contribute,

1. SAG4X/DSA - Data structures and algorithms repository 
2. SAG4X/buzzword_elevate - which was quite a creative repository to create tools for buzzwords uses in computer science like prefix/postfix notation checker, gcd finder, etc
3. datacamp - which is a machine learning and data science algorithm hub with python for students
Joomla + MySql + phpMyAdmin in Docker
Tags: joomla, docker, mysql, devops
Published: 2020-10-17 03:39:38

### MYSQL
First step open the terminal and download MySql Docker Image:
```
docker pull mysql
```
After we can start our instance, we will named it test-mysql, root as user and 12345678 as password.

After we must to create a “volumes”, a local folder from the host on the container to store the database files.
```
docker run --name test-mysql -v /Your/LocalPath/Desktop/mysql-nginx/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=12345678 -d mysql
```
By default, our mysql should be run on port 3306.

### phpMyAdmin
Download phpMyAdmin Docker Image
```
docker pull phpmyadmin/phpmyadmin
```
Now we start the instance, naming it test-phpmyadmin and link it to the database mysql test-mysql that we have created before, and run it on the port 8084.
```
docker run --name test-phpmyadmin -d --link test-mysql:db -p 8084:80 phpmyadmin/phpmyadmin
```
Now, if we connect with our browser at the address http://localhost:8084 we should have phpMyAdmin login page, and we can access with username: root and password: 12345678

![image-title-here](/img/2018-10-04-Joomla-MySql-phpMyAdmin-in-Docker/phpmyadmin-login.png){:class="img-fluid"}

### Joomla
Ok, now it’s the turn of Joomla, as already done before, we must download the image:
```
docker pull joomla
```
Now we start the instance on the port 8080 with the name of test-joomla, link it at the database and create a volumes.
```
docker run --name test-joomla --link test-mysql:db -e JOOMLA_DB_HOST=db:3306 -e JOOMLA_DB_USER=root -e JOOMLA_DB_PASSWORD=12345678 -v /your/local/path/Desktop/joomla-docker/joomla_www:/var/www/html -p 80:80 -d joomla
```
if it’s all correct, at the address [http://localhost](http://localhost) we should find our joomla installation.
Completed Hacktoberfest2020
Tags: hacktoberfest
Published: 2020-10-17 04:48:32

![Hacktoberfest2020](https://dev-to-uploads.s3.amazonaws.com/i/gu2o3ng7t311e25xil6n.PNG)

## What I Learned From Hacktoberfest

It was a great experience with Hacktoberfest2020. This is my first time I'm contributing to Hacktoberfest2020. I got to learn about different git features and have created a public repository with Hacktoberfest Topic to help community.
It was a great and really exciting journey with Hacktoberfest2020.
First time joining hacktoberfest
Tags: hacktoberfest
Published: 2020-10-17 04:45:08

## What I Learned From Hacktoberfest

<!-- What did you learn that can help others contribute to the project you worked on? What did you learn that can help the users of that project?! -->
I learnt how to create issues, how to work as a team and solve problems. It was an interesting and fun first experience. I enjoyed it.
Scraping Multiple Pages with Scrapy

Published: 2020-10-17 04:42:53

Scrapy is one of the easiest tools that you can use to scrape and also spider a website with effortless ease.

Today lets see how we can solve one of the most common design patterns while scraping any large scale projects like scraping article list or blog posts. Typically, the number of items shown on a single page is limited to 10 or 20 and you will want to pull out all the pages as automatically as possible.

We will take the example of the CopyBlogger blog and see if we can run through all the pages without much sweat. We will do this and do it using a powerful tool like Scrapy because once we have this basic infrastructure, we will be able to build almost anything on top of it.

You can see that there are about 10 posts on each page and then there are about 329 pages in total.

First, we need to install scrapy if you haven't already

Once installed, we will add a simple file with some barebones code like so...

Let's examine this code before we proceed...

The allowed_domains array restricts all further crawling to the domain paths specified here.

start_urls is the list of URLs to crawl... for us, in this example, we only need one URL.

The LOG_LEVEL settings make the scrapy output less verbose so it is not confusing.

The def parse(self, response): function is called by scrapy after every successful URL crawl. Here is where we can write our code to extract the data we want.

Now let's see what we can write in the parse function...

For this let's find the CSS patterns that we can use as selectors for finding the next page link on any page.

We will not use the page links titled 1,2,3 for this. It makes more sense to find the link inside the 'Next Page' button. It should then ALWAYS lead us to the next page reliably.
HACKTOBER FEST 20' Completed..
Tags: hacktoberfest
Published: 2020-10-17 04:40:19

This year Contribution to hacktoberfest was my first Hacktober contribution. The journey was great! It was more of learning than contributing, amidst the process, learnt about opensource, github contributions, making PRs and getting them merged. Most importantly the issues arised were a complete guide to enter into open source, each issue was interesting and i learned a lot. So overall road involved learning, researching, and coding and finally contributing. 
I would like to thank Dev, DigitalOcean and Intel to give this opportunity and hope to contribute again the following year.
Completed Hacktoberfest 2020
Tags: hacktoberfest
Published: 2020-10-17 04:38:14

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

## What I Learned From Hacktoberfest

It was a great first-time experience at Hacktoberfest, I explored new repositiories and overall learned more about the quality contributions on Github.
What I Learned From Hacktoberfest
Tags: hacktoberfest
Published: 2020-10-17 04:31:35

## What I Learned From Hacktoberfest

I completed Hacktoberfest 2020 challenge by making 4 contributions to Github repositories and all of those 4 PRs got accepted.
I learned from Hacktoberfest that open source is actually powering the software of the world. The best part of open source is that any developer can contribute which makes it exciting to have all those unique ideas together.

It was a great experience to contribute to open-source.
My HacktoberFest Experience
Tags: hacktoberfest
Published: 2020-10-17 04:24:51

## What I Learned From Hacktoberfest
Hactoberfest is a great program for beginners out there who want to contribute to open source. The thing which excited me most about completing this program is the reward, which is either a tee shirt or a tree. I mean, this decision is in your hands that what you want to choose for yourself as a reward. To be honest, for myself I chose the tee shirt but next time I will surely contribute in planting a tree in HactoberFest forest. Although, you can complete hactoberfest by just creating minimum of four pull requests, but I highly encourage you to create more and more and more pull requests. But make sure that your pull request doesn't have changes like fixing a typo or removing an extra white space, try to fix bugs or add new features. The more you do, the more you will learn. I myself created 12 pull requests. I could have created more but I was busy learning React and React Native. Open source is like meditation, once you start doing it, it is the best thing you can do.

So this is it. I'm not a very good writer but I tried my best to express my views about hactoberfest. Thanks hacktoberfest to make me love open source.
Hactoberfest2020
Tags: github, hacktoberfest2020, digitalocean
Published: 2020-10-17 04:29:28

Completed #hacktoberfest2020!
This was my first time experience with #hacktoberfest.
Being a beginner I learned a lot about how to contribute and the importance of #opensource contribution.
I came across many good repositories that enhanced my knowledge and taught me a lot.
Thank you DigitalOcean, GitHub, and DEV Community for giving developers such a great platform, it was really helpful.
Taboverflow
Tags: chromeextension, javascript, taboverflow, management
Published: 2020-10-17 04:26:06

I am proud to launch our new product <b>Taboverflow</b>.
Features: 
    Save tabs in a bi-hierarchial tree structure.
    Share tabs with other users in a click.
    Sort tabs in real-time using our trained Neural Network model.
    The privacy of your data is maintained by such a strong encryption algorithm that even us developers cannot view your data.

Visit: <b>taboverflow.web.app</b> to enable the extension.
Atypical but fun
Tags: hacktoberfest, opensource
Published: 2020-10-17 04:21:48

---
title: Atypical but fun 
published: true
tags: hacktoberfest, opensource 
---
<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

## [Overwolf Modern React Boilerplate] Overview 
OMRB is a free and open source opinionated boilerplate based on React that helps developers create fast, modular and modern overwolf app with Internationalization and some hooks that abstract the way to get game data in real time.

<!-- Describe/Introduce your project. Make sure to make this as friendly as possible for new contributors! Are there specific issues you're hoping contributors can help tackle? Share them here too! -->

<!-- Tip: add the #contributorswanted tag to this post and try using our GitHub Liquid Tag -->

## My Hacktoberfest Experience

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been? Which PR are you on?  -->

this year was pretty atypical because there was a mess with PR out of the rules but the hacktoberfest team solved it quickly, but the experience was very good.


## What I Learned From Hacktoberfest

<!-- What did you learn that can help others contribute to the project you worked on? What did you learn that can help the users of that project?! -->

I've learned that good documentation is the key to improving the contribution.
Completed Hactoberfest20'
Tags: hacktoberfest, opensource, github, webdev
Published: 2020-10-17 04:20:17

Completed #hacktoberfest2020!
This was my first time experience with #hacktoberfest .
Being a beginner I learned a lot about how to contribute and importance of #opensource  contribution.
I came across many good repositories that enhanced my knowledge and taught me a lot.
Thank you DigitalOcean , GitHub and DEV Community for giving developers such a great platform , it was really helpful.
My First Hacktoberfest! 🎃
Tags: hacktoberfest
Published: 2020-10-17 04:01:27

Today I just completed✅ my first #hacktoberfest successfully✨, all my PRs were accepted💯.   
It was a great experience😋 contributing to open-source🙌 platform and now I look forward for more open-source contributing✌.  

## What I Learned From Hacktoberfest
I learned how to contribute and work as a group and in a community. 
Distributing tasks and working together on same project, helps in fast and effective development of any project.

[My Github Profile](https://github.com/sachuverma)
Plant a tree with #hacktoberfest 2020
Tags: hacktoberfest
Published: 2020-10-17 03:59:46

## What I Learned From HacktoberFest
HacktoberFest is a great way to start with the Open Source contribution. The best thing which I learned from this is helping others but at the same time not flooding any repo just for the sake of a valid pull request in the HackotoberFest. The another thing which I got is that It is a good way to contribute towards the nature as we have the chance to choose to plant a tree. of course, I too chose to plant a tree instead of getting the t-shirt. Maybe I would get a t-shirt for some other thing such as hackathon or anything but I am sure I would rarely get such opportunity to contribute as an award of contribution. Thank You DigitalOcean. All the Best to everyone. Live, love, laugh and have a nice day!<!-- What did you learn that can help others contribute to the project you worked on? What did you learn that can help the users of that project?! -->
First year participating in Hacktoberfest!
Tags: hacktoberfest
Published: 2020-10-17 03:56:39

![Congratulations screenshot](https://dev-to-uploads.s3.amazonaws.com/i/4hle1kblbm07c6kmre5w.png)

It was an awesome experience. My contributions were small 
but I had the opportunity to discover new and interesting projects.

### Contributing to Poliastro

This was my highlight of the event, and even though it was a docs contribution, i got the chance to experience part of the workflow of a well-structured repo.

{% github poliastro/poliastro no-readme %}

Poliastro is not an easy repo, but after searching a bit i found an issue that i could actually tackle (the _only_ one, actually).

{% github https://github.com/poliastro/poliastro/issues/986 %}

After a bit of research (mostly visiting the [SfePy](https://github.com/sfepy/sfepy) repo to see how they did it, as i already had a bit of experience with [Sphinx](https://www.sphinx-doc.org/en/master/)) i decided that it was a good fit for me, as it was not difficult, and it was a "feature" that would make the docs appearance a bit nicer.

**I could actually add a bit of value to the project!**

{% github https://github.com/poliastro/poliastro/pull/1023 %}

Yes, it is not a hard PR. Yes, it is a docs contribution, but this was _my_ contribution to a really interesting project, and i hope it is not the only one, even though i know nothing about astrodynamics.
Hactoberfest 2020 completed....
Tags: hacktoberfest
Published: 2020-10-17 03:46:16

## What I Learned From Hacktoberfest

This was my first time experience with hactoberfest.
Being a beginner I learned a lot.
I come across many good repositories that enhanced my knowledge and taught me a lot. Contributing to them gained my experience and was a great achievement.  

<!-- What did you learn that can help others contribute to the project you worked on? What did you learn that can help the users of that project?! -->
What Is Open Source
Published: 2020-10-17 03:42:02

In this article, I will tell you what is open-source software...

Well, Open source is a term that originally referred to **open-source software** (OSS). Open-source software is the code that is designed to be accessible to anyone and anyone can see and modify the code as they like.

Operating Systems Like Linux and websites like freecodecamp.org and RedHat are fantastic examples of open-source.

Open-source software is developed in a collaborative way, relying on peer review and feedback.

Open Source Software is a cheaper and easy way because don't have to hire a developer or do all the work yourself, and it is developed by communities rather than a single author.

People make open source software so that they can find new ways to implement different things in code and can learn new coding skills.

**Note: This Was Just A Small Explanation of what is open source**
Install Minikube and Kubernetes on ubuntu 18
Tags: docker, kubernetes, ubuntu, linux
Published: 2020-10-17 03:38:59

Minikube is a tool that allow you to run Kubernetes locally, running a single-node Kubernetes cluster inside a VM on your local machine.It's the ideal tool for move the firsts step into the wide world of Kubernetes.

### Install Minikube:
Before to install minikube you need to install an Hypervisor, in my case i will install [Virtualbox](https://www.virtualbox.org/wiki/Linux_Downloads).

download and install with curl:
```
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.30.0/minikube-linux-amd64 && chmod +x minikube && sudo cp minikube /usr/local/bin/ && rm minikube
```

### Install kubectl
kubectl is the Kubernetes command-line tool to deploy and manage applications on Kubernetes.
```
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
```
Make the kubectl binary executable.
```
chmod +x ./kubectl
```
Move into the path:
```
sudo mv ./kubectl /usr/local/bin/kubectl
```

### Test minikube and Kubectl:
start minikube:
```
minikube start
```
check if minikube running:
```
minikube status
```
create a pods on minikube with kubectl:
```
kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080
```

expose the pods:
```
kubectl expose deployment hello-minikube --type=NodePort
```

get the url:
```
minikube service hello-minikube --url
```

stop minikube:
```
minikube stop
```
Confident vibes, and bubbling tea ideas from Open Source Contributions - Making the most out of it!
Tags: hacktoberfest
Published: 2020-10-17 03:38:51

### What I Learned From Hacktoberfest

![DigitalOcean Parrot](https://dev-to-uploads.s3.amazonaws.com/i/dotvqqbn8jk3x76j46ou.png)

I'm glad to be a part of the Hacktoberfest 2020, and kudos to the fact that I could learn so much more about GitHub, web development, programming languages, how codes are approved/merged and most importantly how we all could be of help by contributing code and more to amazing repositories. I agree that I have become a lot more confident - looking forward to 2021's edition, thanks DigitalOcean!

I contributed some 8085 Assembly language programs, simple Python and Turtle design codes, Scilab plots, GitHub workflows, a cloud haiku, fixed a broken link for a website and added a term to Dev glossary! This was my first Hacktoberfest. I hope I can strive harder and become a better skilled developer by the next edition.

I used to wonder, can I even contribute something that can be useful "enough"? Then repo issues and alongside ideas came pouring in. And it unleashed the developer side in me. I didn't think I could win a tee, but all I wanted for this fest was that at least my PRs get merged sometime later and if not - that I received some feedback on what I could do better. It's like this fest whispered in my ears, "Never stop believing in what you are capable of." 

So my take is - give it your all. Give shape to your ideas by using code in JS/CSS/HTML/PHP, or inhale some inspiration from YouTube videos or W3Schools courses on your favourite framework. But remember, baby steps each day. You have my luck!