teleren/devto huggingface dataset:
Notes to Myself - First Dev Job Reflections
Tags: career, juniordeveloper
Published: 2020-10-31 20:52:39

- I've spent far more time fixing issues than I have spent time writing original code 
- Bugs are a thing and will always be a thing
- Holy god having a monitor and keyboard is worth the cost
- I guess I'm getting paid to be super uncomfortable all the time now
- There are days I just don't wanna; and that's ok, I have to do it anyway, and if I do it, the suckage goes away after about 20 minutes. 
- I'm reading far more code than I expected: for every line of code I write, I probably read 5-20 lines of other code
- I read way more *english* than I ever thought I would, too
- Not every article you find on the internet about something is helpful
- Once you get past very very basic things in code, the resources become far fewer in between, more full of jargon, and considerably less accurate, overall. 
- I see a lot of plagiarism and its gross. Don't steal other people's code examples or articles w/o attribution, yo.
- Graphs, visuals, pictures, and color-coded anything is my friend. 
- If you can make coding funny and human it takes a lot of the suck out of it when you're struggling
- Asking questions is ok and no one thinks I'm an idiot. 
- I should ask questions sooner than I do. 
- Just cause I'm new, doesn't mean I'm wrong
- Its better to feel stupid in front of other people and figure something out than feel stupid in private and not make progress
- A good team will make or break your experience, cause this job is HARD
- Being physically active is a non-negotiable 
- I'm SO glad I didn't give up
- Getting paid this much is a mental adjustment, it helps to reframe your salary as being compensated for business value-added. (hint---you're adding a lot of business value.) 
- Don't *ever* take side gigs that don't pay a regular developer rate, you won't be taken seriously and you won't be able to do your best work. 
- This is the most fulfilling job I've ever had.
Hacktoberfest 2020 Experience
Tags: hacktoberfest
Published: 2020-11-01 07:26:27

✨Hactoberfest 2020 was an amazing experience! ✨ 


### A brief intro
Hi! I'm Manas Garg and I'm a Stanford Certified Machine Learning Professional and also specialized in Deep Learning. I've interned at various MNCs like Deloitte and KPMG and attended experience programs of Microsoft and JP Morgan & Chase Co. I now own my tech startup. 

### Background

I'm an IBDP Year 1 student and a passionate programmer and love to play guitar and basketball. Along with a strong command of international affairs in my arsenal, I also have a clever thinking and superb oration. Once I put my mind to a task, no impediment can deter me from reaching the goal. 

### Hacktoberfest Progress
I've successfully completed the Hacktoberfest 2020 by making 4 of the mandatory PRs and an additional bonus PR!.

### Contributions
I made advanced open source contributions to the community, all of which can be found on my GitHub profile.


### Reflections
This was my first time at Hacktoberfest and I was more than delighted to be a part of this amazing fest. I would definitely love to participate in this event again in the coming years.

### Kudos!
LFI?
Tags: security
Published: 2020-11-01 07:15:24

An attacker can use Local File Inclusion (LFI) to trick the web application into exposing or running files on the web server. An LFI attack may lead to information disclosure, remote code execution, or even Cross-site Scripting (XSS). Typically, LFI occurs when an application uses the path to a file as input. If the application treats this input as trusted, a local file may be used in the include statement.

Local File Inclusion is very similar to Remote File Inclusion (RFI). However, an attacker using LFI may only include local files (not remote files like in the case of RFI).

The following is an example of PHP code that is vulnerable to LFI
```
/**
* Get the filename from a GET input
* Example - http://example.com/?file=filename.php
*/
$file = $_GET['file'];

/**
* Unsafely include the file
* Example - filename.php
*/
include('directory/' . $file);
```
In the above example, an attacker could make the following request. It tricks the application into executing a PHP script such as a web shell that the attacker managed to upload to the web server. 🤣

```http://example.com/?file=../../uploads/evil.php```

In this example, the file uploaded by the attacker will be included and executed by the user that runs the web application. That would allow an attacker to run any server-side malicious code that they want.

This is a worst-case scenario. An attacker does not always have the ability to upload a malicious file to the application. Even if they did, there is no guarantee that the application will save the file on the same server where the LFI vulnerability exists. Even then, the attacker would still need to know the disk path to the uploaded file.
Directory Traversal

Even without the ability to upload and execute code, a Local File Inclusion vulnerability can be dangerous. An attacker can still perform a Directory Traversal / Path Traversal attack using an LFI vulnerability as follows.

```http://example.com/?file=../../../../etc/passwd```

In the above example, an attacker can get the contents of the /etc/passwd file that contains a list of users on the server. Similarly, an attacker may leverage the Directory Traversal vulnerability to access log files (for example, Apache access.log or error.log), source code, and other sensitive information. This information may then be used to advance an attack.
Finding and Preventing Local File Inclusion (LFI) Vulnerabilities

Fortunately, it’s easy to test if your website or web application is vulnerable to LFI and other vulnerabilities by running an automated web scan using the Acunetix vulnerability scanner, which includes a specialized LFI scanner module. Request a demo and find out more about running LFI scans against your website or web application.

Resources:https://www.acunetix.com/
Docs: https://osandamalith.com/2019/10/12/bypassing-the-webarx-web-application-firewall-waf/
Creating a new React-app with create-react-app
Tags: react, npm, beginners, tutorial
Published: 2020-11-01 06:49:00


After watching react tutorials from [Udemy](https://www.udemy.com) and [Youtube](https://youtube.com) , you have decided to create a boilerplate react app and you are getting into some trouble while using npm package called create-react-app. This tutorial will make sure you solve those issues.


####<u> Step 1:</u>

### Forget all the steps you had done before and start fresh with below steps.

Open Your terminal and type


```mkdir react-app``` 


Then lets get into that folder


<code>cd react-app</code> 




####<u> Step 2:</u>


If you have already done something like



<code>npm install create-react-app react-app</code>



And got some errors, Forget about those errors and do as follows.


In the command line paste these codes one by one 


<code>npm rm -g create-react-app react-app</code>




<code>npm install -g create-react-app </code>




<code>npx create-react-app react-app</code>




If you did not do the above steps earlier simply paste the below code in terminal and you are good to go.


<code>npm install -g create-react-app </code>


The above code need to be used only once globally in your system after that there is no need to install that. We must only use below code after that.




<code>npx create-react-app react-app</code>




And thats it, you have created a new react app.  Congratulations!


####<u> My Personal Experience:</u>

When I first started to learn react and decided to create a react app with create-react-app, I was stuck with creating the react app for almost a day.

After a lot of stackoverflow searching I found these steps to work absolutely fine.

If you are a beginner (and have very slow internet connection), 
From my experience you have to wait atleast 10-30 minutes for each command to execute. I was very impatient at first, then after trying two to three times I finally found how to do it.

You can pin this post and use it whenever you want to create a new react app.


### Thanks For reading!

> #### This is my first blog in dev.to So please give me your feedback in the comments. If you like it please heart it.

###<u>My other React articles:</u> 


- <a href="https://dev.to/gautham495/changing-headers-in-react-with-react-helmet-d0d/edit" target="_blank">Changing Headers in React.js with react-helmet</a>
My First Hacktoberfest...
Tags: hacktoberfest
Published: 2020-11-01 06:41:48

✨My First Hacktoberfest...✨


### Introduction
 This was my first Hacktoberfest and I thoroughly enjoyed it. I exchanged 4 pull requests as per the guidelines and learned how to use GitHub. 
 
### Background
 The idea and inspiration were given by my elder sister who is a software engineer and has been associated with the fest for the past 3 years. I have been taught by her how to proceed with the fest and what all has to be done.

### Progress
 I am a beginner. I like the way GitHub has helped me to get my self introduced to various open-source code over the platform I wish to explore it more and would continue contributing to it.  

### Contributions
 I made a beginner project on CALCULATOR. I initially added square root, factorial, cube root, power functions, and send pull requests for the same. Therefore, I completed 4 pull request successfully.


### Reflections
 Overall, I enjoyed the Hacktoberfest 2020, it was really nice working with the open-source for the first time. I will surely participate again in the coming years. I have learned how to use GitHub successfully and also how to work with open-source. Yes, I have made a few connections while working with the project CALCULATOR @riya-17 @divyagupta-98 @Vyvy-vi. I am looking forward to building some new projects and contribute to Github and take help from GitHub for my upcoming project completion.
Hacktoberfest 2020
Published: 2020-11-01 06:32:00

Contribution: 
These are the link where I contributed in.

1) https://github.com/atyant-yadav/Hacktoberfest2020/pull/561

2)https://github.com/harshitbansal373/hacktoberfest2020/pull/506

3)https://github.com/harshitbansal373/hacktoberfest2020/pull/507

4)https://github.com/namishkhanna/hacktoberfest2020/pull/270

5)https://github.com/aryasoni98/HacktoberfestPR2020/pull/208
HacktoberFest Vibes: Sharing Knowledge
Tags: hacktoberfest, digitalocean, sharingknowledge
Published: 2020-11-01 06:24:01

✨I love the thought of sharing. This HacktoberFest I spent sharing my knowledge of GitHub with my younger brother and his friends by introducing them to HacktoberFest and encouraging them to contribute to it. Obviously, the goodies did help a little.✨


### Intro
I am a learner who loves to explore new things especially the ones that inspire me. I love reading novels, watching series, listening to music, and last but the most loved one, painting. On my career end, I love programming that is what I am pursuing in my career and I am getting to learn a lot from it. This is my 3rd HacktoberFest and I enjoy it every year with same enthusiasm.

### Progress
I have been a part of it for last two years and always love to be it's part.

### Contributions
To introduce this idea to the younger generation I just started out with a simple calculater code. Which gave them some idea not only about project building but also PRs, Issues and contributions on open source platform.

### Reflections
Overall, My experience was amazing. Thank you :).
My first open-source contribution: Hacktober Fest 2020
Tags: hacktoberfest
Published: 2020-11-01 06:22:23

### Background

Hey everyone! I am Yajat Malhotra and this is my first post on Dev. I am a fresher at VIT, Vellore. 

Recently, I got to know about Hactoberfest from my friends. So I immediately signed up for it as I wanted to try it out. 

### Progress and Learnings

Today, 4 out of 6 PRs got matured.

During this fest, I learnt a lot about Git and GitHub. I learnt how to create an issue on a Repo, how to fork it, clone it, commit on it and send a pull request.

### Contributions

I made contributions on very basic Repos as I am still in a learning phase.

1. https://github.com/FOSS-UCSC/FOSSALGO/pull/547
2. https://github.com/wiredfoxterrier/simplejavaprogram/pull/2
3. https://github.com/volt9801/Project-Euler-Solutions/pull/4
4. https://github.com/kaustubhgupta/Hacktoberfest2020_/pull/462
5. https://github.com/volt9801/Project-Euler-Solutions/pull/23
6. https://github.com/Cullyege/Hacktoberfest2020/pull/643


### Reflections
This was my first time participating in an event like this. I would definitely love to participate in such events again. Also, next time I will try to make bigger and better contributions.
This event was a wonderful experience. I totally loved it.

-Yajat
Levels and Methods In Software Testing
Tags: todayilearned, testing, computerscience, beginners
Published: 2020-11-01 06:11:30

Testing Software is a very crucial phase of the whole software development cycle. It is generally done in 4 levels :

1. Unit Testing
2. Integration Testing
3. System Testing
4. Acceptance Testing

Let's discuss each one of them briefly. 

####Unit Testing - 

First level of testing which is done right after coding any module by the developer. It ensures that a module is working fine independently. 

#### Integration Testing - 

Integration Testing is done after unit testing where it is checked whether all modules are working as intended when they are integrated. But sometimes we don't have all the modules completed and integration testing keeps on happening along with the development. So now the question arises what do we do in that case? Well, for that case we have dummy programs which are known as stubs and drivers. Stubs are the called function and drivers are the calling function. 

####System Testing -

System Testing is also called an end to end testing. It is performed to ensure whether the integrated code is working fine with the perspective of the user. 

####Acceptance Testing - 

Acceptance Testing is the final stage of the whole testing process and it is done by the end-user where it is ensured that the software is ready for production.

Now let's look at the various methods of testing.

1. Black box testing
2. White box testing
3. Gray box testing

####Black box testing - 
In this, you don't need to have any prior knowledge about the internal structure or implementation of the system. It can be applied to every level of testing (Unit, Integration, System & Acceptance). It is very useful in enhancing the end-user experience.

####White box testing - 
For white box testing, the tester needs to know about the internal structure of the system being tested. It can be done at unit, integration & system levels of testing. 

Simply put, in white box testing we test the actual code while in case of the black box testing, we test the software from a user's point of view.

####Gray box testing - 
Gray box testing is also known as translucent testing. In this, only limited knowledge about the internal structure is known. The objective here is to find out the defects resulted from the bad structure of code.
Firebase Analytics For Android Shouldn't Be This Hard
Tags: android, java, beginners, codenewbie
Published: 2020-11-01 06:09:38


Well, it is not. Let me show you how

<h3>Prerequisites</h3>

- Google Analytics Account https://analytics.google.com/
- Firebase Project https://console.firebase.google.com/ 
- Android Application. I created one using Android Studio.

<h3>Add Firebase to your App</h3>

- On the Firebase console, click on the Android icon to add your App.

![Screen Shot 2020-10-31 at 7.41.00 PM](https://i.imgur.com/44Eiume.png)

- Enter your App package name and a nickname. Then click on the (Register app) button.

![Screen Shot 2020-10-31 at 7.53.27 PM](https://i.imgur.com/dIoBviT.png)

- Download the config file and add it to your project as per the screen below

![Screen Shot 2020-10-31 at 8.08.10 PM](https://i.imgur.com/ruXhXpQ.png)

- Follow the instructions in step 3 to update the gradle files.

![Screen Shot 2020-10-31 at 8.22.24 PM](https://i.imgur.com/v3c9ry5.png)

- Now our app is ready for Firebase Integration.


<h3>Use the Analytics SDK on your App </h3>

- Declare the FirebaseAnalytics object at the top of MainActivity.

```java
private FirebaseAnalytics mFirebaseAnalytics;
```

- Initialize it in the onCreate() method

```java
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
```

- Run the App and check the Firebase Dashboard

![Screen Shot 2020-10-31 at 8.50.33 PM](https://i.imgur.com/FNfbRBB.png)


- Add a button to your activity,  update the onCreate as below to log the click event of the button

```java
Button button = findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                mFirebaseAnalytics.logEvent("button_clicked", null);
            }
        });
```

- Run the App and click on the button. Then check the Firebase Dashboard for the event.

- Check the Logcat tab, and you will find the logged event.

![Screen Shot 2020-10-31 at 9.59.35 PM](https://i.imgur.com/b4m4eGx.png)


That's it... I told you it is easy.

Check the code <a href="https://github.com/offlineprogrammer/AndroidAnalyticsTest">here</a>

> Follow me on <a href="https://twitter.com/MohammedMalaka">Twitter</a> for more tips about #coding, #learning, #technology, #Java, #JavaScript, #Autism, #Parenting...etc.

> Check my Apps on <a href="https://bit.ly/3h05gQ7">Google Play</a>

> <span>Cover image <a href="https://unsplash.com/@lukechesser?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Luke Chesser</a></span>
The grand end of Hacktober Fest 2020
Tags: hacktoberfest
Published: 2020-11-01 05:52:35

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


## The fun filled October !

Hacktoberfest is a month-long celebration of open source software run by DigitalOcean in partnership with GitHub Intel and Dev.to . Hacktoberfest is open to everyone whether you’re a developer, student learning to code, event host, or company of any size, you can help drive growth of open source and make positive contributions to an ever-growing community. All backgrounds and skill levels are encouraged to complete the challenge.

## The happiness !!

Hactoberfest is great opportunity for developers and FOSS enthusiasts to showcase their skills , moreover its a great opportunity for newbie coders to get exposed to the open source tech-world.

This was my first time participation in the Hacktoberfest and I'm super excited !!

See you all at the HacktoberFest next year! Till then happy Hacking </>.
Hacking for Conservation
Tags: hacktoberfest
Published: 2020-11-01 05:41:56



*Former Zookeeper developing technological solutions for critical conservation problems facing our world.*

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

I completed my first Hacktoberfest by contributing to an IoT solution for helping zoos improve animal care and conservation efforts with innovative technology.  As a former zookeeper who evolved into a software engineer, I have very unique insight from both perspectives, which is helping our team to innovate solutions that don't yet exist or are otherwise unobtainable for non-profit zoological institutions due to prohibitive costs and logistics.

Since I was a young child, I've always loved animals and wanted to be a zookeeper when I grew up.  So I earned two Bachelor of Science degrees in Psychology (with a focus on Animal Behavior) and Zoo Science to achieve that dream.  I also learned web development in college and loved it, so I did that on the side as a fun hobby.  Then a couple of years ago I competed for and won a Grow with Google Developer Scholarship for the Front-End Web Developer Nanodegree from Udacity.  This led to my career transition from zoology to software engineering.

Now my ultimate goal is to combine my passions, previous experience, and new skills to develop technological solutions for critical conservation problems facing our world. 🌎🌍🌏♻️

*Know of any conservation efforts that would benefit from incorporating technology?  Please reach out!*

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

<!--
### [Intro Heading]

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. 

### Background

 Are you brand new to open source? What about coding in general? Tell us about how you got here 

### Progress

 Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been? 

### 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! 

### 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? 
-->
Day 1 - Moment.js vs JS Date
Tags: react, javascript, npm, css
Published: 2020-11-01 05:28:15

Whew! I am finishing up quite late. A byproduct of starting this dang coding challenge and announcing it at 6 pm. I'll try to get it done early tomorrow.

Here is the github link: https://github.com/jwhubert91/100daysofreact/tree/master/day-1-clock
Try for yourself:
https://100-react-projects-day-1-clock.netlify.app/

##Summary
For the first project I created a simple clock that shows the user their localized time using the npm package [Moment.js](https://www.npmjs.com/package/moment). Moment is technically deprecated though it's a part of so many JS projects and tutorials that I felt it would be good practice to use it, and compare it to using the native JS Date object. Overall I feel that the JS Date object is more intuitive but Moment is more extensible.

##React Notes
This project used a simple directory structure with just 3 functional React components. It used the default create-react-app styling. If I were doing this in production I'd probably make time available to application-wide state and pass it down to the components through props.

##Other Takeaways
1. Everything always takes longer than you think it is going to, especially with coding.
2. Styling, in particular, can take a while but is totally worth it even though it can seem like an unnecessary flourish at times.
3. I'm left wondering whether we really need to use the `$ npx create-react-app` command to create any ol' React project. I might want to create and upload my own barebones React starter to Github since create-react-app is so unnecessarily large for some simple web projects. A great mini-project for some future busy day.
4. Speaking of large files. What's the best architecture to quickly set up hosting for React projects? I used netlify for this one. In the future I'll want to try Heroku and eventually S3.

Day 1 is done! Time to Tweet this blog post and share it on Linkedin. Looking forward to tomorrow when hopefully I'll publish a todo app using React and sessionStorage.

P.S. - Here's my Twitter ;)
https://twitter.com/jwhubert91
Hacktoberfest 2020
Published: 2020-11-01 05:23:46

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


#About Myself
Iam an intermediate Android Developer and a 2nd year computer science student.



### Progress

I completed the first 4 PRs in the first 2 days. But still i wanted to contribute more so i made 8 more PRs in the next 10 days. 

### Contributions

Most of my contributions were related to Android projects in which i added some of my own activities and fixed the bugs.


### Reflections
This was the first time i had participated in Hacktoberfest and it was a great experience. I always wanted to contribute to open source. Thank You Digital Ocean and other sponsors for this incredible opportunity. Iam looking forward to participate in GSOC 2021.