teleren/devto huggingface dataset:
Why me choose the English?
Published: 2020-11-01 16:30:32

## Thought of the day

> Why me choose the English?

The English text has the greatest 
functionality:

- [x] compactness / :green_heart: `density`

If your native language is another, what you think about this?

## :memo: Github repository into my telegram-group

Today I had incredible fillings when me read about `telegram-bots` & invited one of their into our little community `TPC`.

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

`Wow-effect` will be more later...
After that me Authorized 🤖 [bot](https://t.me/GitHubBot) via OAuth & set `/newintegration` with github repository.

![Снимок экрана 2020-11-01 в 18.46.22](https://dev-to-uploads.s3.amazonaws.com/i/lar3kg51e1auznvl1tvu.jpg)

## 🔕 Begining of the new story

At the :one:st step I could not understand 
> "why the bot does not inform in the chat?" 
Once again I decided to check that my repository is correctly connected to the bot.

And 🏆 ta-dammmn! I got the first notification about the added :new: [issue](https://github.com/vovs03/terraform-bookex/issues/17) to the `repository` on the second try.

![Снимок экрана 2020-11-01 в 18.46.39](https://dev-to-uploads.s3.amazonaws.com/i/4o4iyu21nlqq6scppmko.jpg)

I did all this 🧗‍♀️ in order to inform 🛎 the guys about my progress in learning new technologies such as `Terraform`.

## :link: Links 

- :heart: [Terraform website](https://www.terraform.io)
Animation with GSAP 3
Tags: svelte, svelteboilerplate, smelte, gsap3
Published: 2020-11-01 16:21:59

```
💡 #svelte, #svelte-boilerplate, #smelte, #gsap3, #webpack, #tailwindcss
```
💡 [GSAP 3 Docs](https://greensock.com/docs/v3/GSAP)

### Let's do it.
- [Initial project using svelte-boilerplate template](https://dev.to/dohoannam/hello-world-svelte-boilerplate-smelte-5579)
- Installing gsap

```sh
>_ yarn add gsap
```

- Update `src/App/index.svelte`
```js
<script>
    import Layout from '@Components/Layout';
    import { gsap } from "gsap";
</script>
```

```scss
<style src="./style.scss">

</style>
```

```html
<Layout>
    <div class="container xl mx-auto">
        <div class="flex h-screen justify-center">
            <div class="mx-auto p-3" 
              use:gsap.from={ { duration: 3, opacity: 0, scale: 0.9 } }
            >
                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
            </div>
        </div>
    </div>
</Layout>
```

Let's enjoyed

```sh
>_ yarn start:dev
```
What are the good ways to avoid bugs?
Tags: react, redux, javascript, bugs
Published: 2020-11-01 16:06:09

I have been working as a web developer almost 3 years. Now a days build ui and functionality with react redux. But I am facing a problem that is I am finding bugs with others code but some bugs are avoided by my eyes. Its happening all the times now a days. And its really ashamed for me to raise this kind of issues severally. What are the best ways to resolve this? Hope some professional seniors will see this post and give me an advice.
Why did I decide to study Software Engineering?
Published: 2020-11-01 16:04:40

As an avid gamer and user of the internet in general, software engineering and software development was always something that interested me. I never could find the drive and passion to take action on it though, as I was just going through the motions in life, chasing a degree in Sports Media, I just realized that regular school was not for me. Although I am passionate about Sports Media and being involved in Sports, my family could see that it just was not working out, and egged me on to follow my other passion of gaming and software! They gave me the nudge I needed to begin looking into various programs and that is when I decided on the Flatiron School as my program of choice. Even just going through their "First Mile" module, I can tell that this could be the right career path for me, and something that I can use to find a good, stable job in the future.
Why do you still use Php?
Tags: php
Published: 2020-11-01 16:02:24

It's not that I have anything against PHP. I have been a very avid PHP user myself and I like PHP very much. I have used it to create a lot of websites and applications. 

But is it relevant now to learn for new users considering I only see a very few engagement on framework like Laravel/ WordPress? and other programming languages are gaining popularity on terms of ease, convenience on development and app processing speed?
AWS - Set static value to IntegrationResponses
Tags: aws
Published: 2020-11-01 15:59:49

Write the following in case setting the static value to Integration response in API Gateway.

```yaml
SomeMethod:
  Type: AWS::ApiGateway::Method
  Properties:
    HttpMethod: POST
    ...
    Integration:
      Type: AWS
      IntegrationHttpMethod: POST
      ...
      IntegrationResponses:
        - StatusCode: 200
          SelectionPattern: "status:200"
          ResponseParameters:
            # OK
            method.response.header.X-STATIC-HEADER: "'1'"
            # NG
            method.response.header.X-STATIC-HEADER: 1
            # NG
            method.response.header.X-STATIC-HEADER: "1"

```

###Reference

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html#cfn-apigateway-method-integration-integrationresponse-responseparameters
My experience at Hacktoberfest and my journey to this point in my life
Tags: hacktoberfest, python
Published: 2020-11-01 15:48:47

So, Hacktoberfest is over! It was my first experience participating in this. It is quite logical, last year I didn't even knew this event existed.
I started learning my journey in development in August last year. I had been looking for a change in my career for some years now, and finally, it came. 
In June last year while I was on holidays in Colombia, at the airport I read a tweet from a person telling about her story of how she got into development and how what was a pivot point in her career, all for the best.
I wondered... why not? so I came back to Mendoza decided to get into a bootcamp, that started from zero in August 2019... just what I needed.
From there to here, it was a rollercoaster of emotions, frustration, happiness, excitement, anxiety... 
And I learned that there is an ocean of things to learn and I am adding a drop to that ocean, one line of code at a time... 
I wanted to contribute somehow to an open-source project but how? I do not know that much about python, I am just starting...and then... I heard about the Python English to Spanish translation... It was perfect, I can apply something that I already know! Spanish!
So I got into the Telegram group and started reading messages and learning about the contributing guidelines.
And then... October came, and Hacktoberfest along... That was the final push, that encouraged me to start...
Now, at the end of the month, I learned to work in an open source project, continuous integration, how to try to solve problems and the most important thing... is that there is a great community out there, willing to help you learn, inviting you to come and play as you are...
I am super happy I decided to take part in this. And grateful of all the people to take their time to organize this kinds of events. It makes me think, my life changed for the best when I got into development.
Why you should learn Python in 2021?
Tags: datascience, machinelearning, python, coding
Published: 2020-11-01 15:46:53

It's November 2020, year is ending and world is waiting for dawn of 2021. With that comes the question for Tech Enthusiasts/Software Developers "which new language they should learn in 2021". Python is a great choice for learning as it can used in different kind of applications development across software industry.

#Easy to learn

Python have quite simple syntax and cherry on the top of cake is that external libraries can be easily imported, thus making writing code more easier. Like for doing a task C in most cases require more code as compared to Python.If you’re keen enough to start learning Python then watch following tutorials which are taught by experts from freecodecamp ->

##Beginner Tutorial
{% youtube rfscVS0vtbw %}

##Intermediate Tutorial
{% youtube HGOBQPFzWKo %}

#Number of Application

Python is such a powerful and wide programming language that it can be used in so many domains of technology.

##Web Development

Python can be used for developing websites by using frameworks like Django or Flask. Also with increasing access of internet to the developing parts of world, there will more and more content creators who does not have website developing skills. So by learning Web Development using Python you can offer this as a service on fiverr and make some money.For learning Web Development using Python watch following tutorial ->
{% youtube F5mRW0jo-U4 %}

##Machine Learning

Famously most of highly intellect people is saying that Machine Learning would be next big thing. Owing to this reason a lot of people are trying to break into it. One of most important aspect of Machine Learning is Python either it be building models or doing data visualisations. It can be clearly said that Python is back bone for Machine Learning. **Moreover Python have libraries like Scikit-Learn which abstracts out complexity of implementing functions and enables ML Developer to build meaningful models.**
{% youtube pqNCD_5r0IU %}

##Data Science

Well Data Scientist is sexiest job of the century as per Forbes, moreover there a lot of new job posting coming up every month related to Data Science.

![Data Science Tools](https://dev-to-uploads.s3.amazonaws.com/i/rce72pd7itn23q9ruxrh.png)
  
Watch following tutorial in order to learn how to use Python as a tool for doing Data Science.
{% youtube LHBE6Q9XlzI %}

##More

There are many more applications of Python programming language which makes it quite lucrative to learn. 

Good luck for your Python Journey!!

Check out my blog for such more useful articles ->
https://computersciencehub.io/
Your thoughts on a frontend code generator for headless ecommerce?
Tags: discuss, startup, wordpress
Published: 2020-11-01 15:39:19

Hey guys, I have a question to those who specialise in ecommerce, especially WooCommerce.

### Context

I have been developing a sort of online code editor which organises and simplifies writing reactive web apps. Without self-promo bullshitting, literally with HTML, CSS, and nicely modularised JS, you can write custom apps that you would with React, Vue or Angular. It is just simpler, and it does not require a local environment since it is a multi-tab browser app with a live preview that is made to work smoothly on multiple monitors. 

Anyway, that is a context before I ask the real question. And the question is to help me, and my teammates to determine our roadmap. Bear in mind I am not selling anything to you, just asking for your opinion. OK, here we go!

### Given:

- You could load one of large, flexible templates and tweak it by editing well organised HTML and CSS, and building custom pages by inserting widgets with a single click. All the widgets are fully interactive e.g. after inserting a cart, it just magically works, and it meets the modern web standards e.g. it does not require full page reload when adding a product.
- You have a headless backend with a dashboard that provides features like you have in WooCommerce. And it does not have ridiculous product limits and it is free as long as you host it yourself.
- You could connect to the backend by changing a couple of settings or choose you own API endpoints.
- You could export your project to a static website with minified JS and CSS.
- It provides a great page-load time.
- It is free as long as you do not need premium features.

### Would you consider using this tool instead of WooCommerce or other ecommerce platform?

If you are intrigued by the idea you can visit https://www.glue.codes to test the tool with our existing, rather rough examples.
Using WooCommerce as a headless Online Store
Published: 2020-11-01 15:16:40

- Install WordPress 
  - Watch [this video](https://www.youtube.com/watch?v=cG9kv5-5bPI&t=688s) and stop at step #3. Make sure you select uscentral1, useast1, or uswest1 to take advantage of google's free tier.
   - Enable let's encrypt by running:
     ```
         sudo /opt/bitnami/bncert-tool
     ```
  - Disable the Bitnami banner by running:
    ```
        sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1
        sudo /opt/bitnami/ctlscript.sh restart apache
    ```
  - Configure the server to parse Authorization headers correctly when you make a request from the front end:
    ```
        // Open the htttpd config file by running:        
        sudo nano /opt/bitnami/apps/wordpress/conf/httpd-app.conf

        // Add this to the bottom of the file:
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
        SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

        // Restart the server
        sudo  /opt/bitnami/ctlscript.sh restart apache
    ```

- Install Woo-commerce plugin 
- Go to settings -> Permalinks and change from plain to custom: `/%postname%/`and product base to custom: `/product/`
- Generate your API keys. set them to read/write
- Add products (set up a test CSV file for this)
- Install Axios on your front end we will use this for some basic auth stuff

## Bonus Section: Connect to MySQL DB Remotely

SSH into your VM and run the following command:
```
sudo nano /opt/bitnami/mysql/my.cnf
```
comment out `bind-address=127.0.0.1` and save the file.

Next create a new db user with the following command:

```
mysql -u root -p
# enter password
CREATE USER 'user'@'%' IDENTIFIED BY 'YOUR_PASSWORD';
GRANT ALL PRIVILEGES ON * . * TO 'user'@'%';
FLUSH PRIVILEGES;
The last PR, the fourth PR. Study week done, Studying restarts. Heavy weeks incoming.
Tags: opensource
Published: 2020-11-01 15:14:17

The final post related to Hacktoberfest 2020. (Well, not technically cause I will be posting a blogpost on the entire month of hacktober, an overview after I finish this post, soo get ready for that). The 4th PR, I did something new. I never worked with "optional chaining operator" before. I found an issue in the app called "Tisn", a full fledged social media for introverts. 

The issue mentioned was updating anything you can find into latest JavaScript features. I found few of them and made them the latest feature. Added few more ternary operators to make the clean more cleaner. As the app was super huge and running fine, it was a big thing for me as I was adding something that I was never familiar with before until yesterday, so yeaa, was a huge thing for me. Luckily, I got it to finish and used a pull request, now waiting for reviews from the management.

So far, that's for final week. more to be told on the upcoming blogpost on the overview of my entire hacktoberfest. Study week is done, back to work I guess. I learned lots of new things when I was in break. Like, got my reality checked as I was just thinking and fixing what I did so far in my time in Seneca. Procrastination does not help. I was in super deep thinking when I was in break. Fixed lots of issues and misunderstanding I had with everything (not personal relationships, just understanding of the real world). I came to a decision that I won't be procrastinating  anymore, well I will force myself not to. That's why been super work freak after my break and finishing up assignments and labs all time. Hope I will be able to get myself back interms of grades and knowledge so far this semester. Really looking forward to what I can achieve now. Thank you for reading this post and get ready for an entire month review in few hours. Thank you!

LINK

[4TH PR](https://github.com/Tisn/tisn.app/pull/368)

[4TH Issue](https://github.com/Tisn/tisn.app/issues/232)
Data Structures & Algorithms using Rust: Convert Binary Number in a Linked List to Integer
Tags: rust
Published: 2020-11-01 15:06:44

As part of Data Structures & Algorithms implementation using Rust, let's see how to solve `Convert Binary Number in a Linked List to Integer` problem.

Leetcode problem link: https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/

###### Problem Statement

```rust
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number.

Return the decimal value of the number in the linked list.
```

###### Instructions

```rust
Example 1:

Input: head = [1,0,1]
Output: 5
Explanation: (101) in base 2 = (5) in base 10

Example 2:

Input: head = [0]
Output: 0

Example 3:

Input: head = [1]
Output: 1

Example 4:

Input: head = [1,0,0,1,0,0,1,1,1,0,0,0,0,0,0]
Output: 18880

Example 5:

Input: head = [0,0]
Output: 0
 
Constraints:

The Linked List is not empty.
Number of nodes will not exceed 30.
Each node's value is either 0 or 1.
```
###### Solution

Please find below the solution implemented using Rust

```rust
// Definition for singly-linked list.
// #[derive(PartialEq, Eq, Clone, Debug)]
// pub struct ListNode {
//   pub val: i32,
//   pub next: Option<Box<ListNode>>
// }
// 
// impl ListNode {
//   #[inline]
//   fn new(val: i32) -> Self {
//     ListNode {
//       next: None,
//       val
//     }
//   }
// }
impl Solution {
    pub fn get_decimal_value(head: Option<Box<ListNode>>) -> i32 {
        let mut iter = head.iter();
        let mut v = Vec::new();
        loop {
            let n = iter.next();
            match n {
                Some(x) => {
                    v.push(x.val);
                    iter = x.next.iter();
                },
                None => break
            };
        }
        v.iter().fold(0, |acc, &b| acc*2 + b as i32)
    }
}
```
Please feel free to share your feedback.

Happy reading!!!
What our colleges don't teach us?
Tags: github, computerscience, devops
Published: 2020-11-01 15:03:01

Here is a small list:

1. How to think clearly
2. How to Communicate well & ask the right questions
3. How to have focus & not get distracted
4. How to multi-task & prioritize
5. How to learn fast
6. How to work with all kinds of people
7. How to look at the big picture
8. How to manage emotions
9. How to manage your finances
10. How to remove negativity from our life
11. How to remove our fears & insecurities
12. How to practice abundance in our life
13. How to network
14. How to build your personal brand
15. How to lead yourself
16. How to lead other people
17. How to control your mind
18. How to plan our career & life
19. How to find out what we love to do & what we are good at
20. How to practice gratitude
21. How to forgive & forget
22. How to deal with failure
23. How to develop empathy towards self & others
24. How to heal yourself
25. How to achieve our dreams
Static and Non-static in PHP
Tags: php
Published: 2020-11-01 14:48:54

The difference between static and non static members is only that a non static member is tied to an instance of a class although a static member is tied to the class, and not to a particular instance.
That is, a static member is shared by all instances of a class although a non static member exists for each instance of  class.

<b>The difference between self:: and $this</b>
self:: is for static methods and it references the static methods and properties in the class from which it is called.

$this is for non static methods and references non static methods and properties in the class from which it is called.
3rd PR. Study week, but late posting. 2nd Last work of Hacktober. Exam week is done.
Tags: opensource
Published: 2020-11-01 14:42:48

Hello, it's me again. This post was supposed to be uploaded early this week but got delayed due to personal reasons. I will talk about that later. Anyways, this week I was in charge of something that I thought I won't be using for a while. I was in charge of creating MongoDB models for an app. It was super fun as it's been a while since I created something related to MongoDB, databases in general. I was looking forward to it.


I was in charge of creating a schema for the teachers. So, I added the teachersID first, cause of course lol. Then I things like startDate, payDate, etc. It was a great learning experience and a flashback to my WEB322 classes as I learned MongoDB there. oh, great times. While I was working with this PR, I also got notified of my Final PR for the month of October. So, I was super happy that I will be able to finish off everything assigned so far. So, I rushed it. But as you can see from my date of posting this blog, I am kinda late.  It is because I took a break from everything related to the internet for a while to focus on my health. I got back midway in study week and got bombarded with all these assignments and tests to prepare for, so yep (finished all of them for now). It's great to be back and to work in open-source. 

I'll be posting an overview of the whole PR journey through the month of October and the things I learned in Hacktober2020 in my next posts. Till then, Thank you for your time! Happy Hacking!

Link 

[3RD PR](https://github.com/aloks98/unisys-backend/pull/5)

[3RD ISSUE](https://github.com/aloks98/unisys-backend/issues/1)
Believe In Yourself:
Tags: productivity, devops, computerscience, github
Published: 2020-11-01 14:38:47

Believe In Yourself
Keep Your Priorities Straight
Take Responsibility For Yourself
Create Your Own Future
Focus On What You Want
Learn To Visualize The Outcome Of Your Goals
Never Let Anyone Control Your Destiny For You
Be Creative
Think Big
Control Stress
Be Aggressive And Assertive
Think Positiveiy �
Chart Your Own Course
Set Specific Goals And Review Them Often
Spend Some Time Each Day Improving Your Mind
Review Your Results And Readjust As Necessary
Be Tolerant
Do Everything With Love
Don't Hate
Have Courage
Recognize That Most Of What We Believe About Life Is An Illusion
Be Honest
Work Hard
Believe
Money Is Good And
It Will Come To You
Have Faith
If You Agree To Do It, Enjoy It
Be Strong
Show Affection
Manage Your Time
Dress Right
Learn To Sell Yourself
Take Time Off
Believe In A "Higher Self'
Eat Right
Live Prudently
Seek The Aid Of Others Who Are In Sympathy
With Your Goals
Give Assistance To Others
Keep Motivated
Meditate
Be Optimistic