teleren/devto huggingface dataset:
setting-up PHP CodeSniffer in PHPStorm
Tags: php, codesniffer
Published: 2020-05-20 11:01:45

I will be sharing one of the essential elements on following Coding Standards when you are working with a team.


PHP Code Sniffer is a tool to detect violations of a defined coding standard such as PSR2. Read more about [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer).

On this Instagram post, I demonstrated how to set-up PHP CodeSniffer in your PHP Storm

{% instagram CAKUFckgKWP %}
What is PHP?
Tags: php, webdev, beginners
Published: 2020-05-20 10:56:12

PHP is probably the most popular scripting language on the web. It is used to enhance web pages. With PHP, you can do things like create username and password login pages, check details from a form, create forums, picture galleries, surveys, and a whole lot more. If you've come across a web page that ends in PHP, then the author has written some programming code to liven up the plain, old HTML.

PHP is known as a server-sided language. That's because the PHP doesn't get executed on your computer, but on the computer you requested the page from. The results are then handed over to you, and displayed in your browser. Other scripting languages you may have heard of are ASP, Python and Perl. (You don't need to know any of these to make a start on PHP. In fact, these tutorials assume that you have no programming experience at all.)

The most popular explanation of just what PHP stands for is "Hypertext Pre-processor". But that would make it HPP, surely? An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools. At least you get the letters "PHP" in the right order!

But PHP is so popular that if you're looking for a career in the web design/web scripting industry then you just have to know it! In these tutorials, we'll get you up and running. And, hopefully, it will be a lot easier than you think.
Height Collector App
Tags: octoguit
Published: 2020-05-20 11:01:26

[Comment]: #  I wanted to make an app that automatically sends notes I have saved in my google drive to the users who enters email and note request in my web app.
So to accomplish that I have made a prototype at first that allows users to enter the email address and height in the form of my web app and they will get an email automatically in their Gmail id mentioning their height. In future, I will be upgrading this prototype to send notes to my friends.
  
[Note]: #githubsdp
I used Heroku from the student developers pack to deploy my web app.

## My Final Project
My project will collect height and email from user and sends an automated email automatically.

## Demo Link
 https://nahib-height.herokuapp.com/

## Link to Code
https://github.com/naseeb0/Height-Collector


## To build this project, I followed different pdfs to learn about python library, modules and figured it how I can accomplish to make this project.


## Additional Thoughts / Feelings / Stories
I know it is a very simple project. I am learning python. I have an idea for improvement in this web app with advanced features that I will be integrating after getting little advanced in python.
Becoming a Storyblok ambassador
Tags: storyblok, jamstack, webdev, vue
Published: 2020-05-20 10:59:10

It's official. I've become a Storyblok ambassador. The announcement was made with an article which I'm super proud of. It's about Dynamic forms using Storyblok and Vuelidate. It is impressive that such a solution is possible. You don't need to worry about form validation when using this approach.

Feel free to check out the [article](https://www.storyblok.com/tp/dynamic-forms-with-storyblok-and-nuxt-js). It explains in detail the setup of the Storyblok components and the Vue component code as well.

To see the end result of the solution available, I made a showcase video of the Storyblok solution preview. You can check it out here below.

{% youtube lA4VvL0ZXIg %}

Stay tuned as many great articles and videos are coming up from me in the topic of Storyblok and Jamstack. We are on the path of making the web faster and safer. 🚀
Trying to identify plagiarism in a text
Tags: octograd2020
Published: 2020-05-20 10:57:43

__"Is it possible to identify which part/sentences of a few paragraphs of text have been plagiarised"__

This problem was proposed to me by an employee of Wikipedia, who I met at a Hacktoberfest meetup in my first year. Back then it seemed so difficult I didn't dare approach it. But then a few months ago, I came across a group of people who identified the authors of the federalists papers, using other works that the potential authors had written. The idea behind it was that people have different styles of writing.
That's when i thought to myself what if i change the initial problem slightly to:

__"Is it possible to identify sentences in a text that break from the style of the rest of the text?"__

If we could identify these sentences then we have prime candidates that we can check for plagiarism.   

In my project I used python and NLTK. I don't have much experience with NLTK so my progress so far hasn't been great. 

I break the text up into  paragraphs, and calculate the following for each one:
1) Average sentence length
2) Counts of the various parts of speech(i.e. number of occurrences of each part of speech)

Then for each of the sentences in the paragraphs I calculate the following:
1) Average world length
2) Number of occurrences of the 'n' most common stop words(with various values of n)

I tried feeding these to a machine learning algorithm but predictably the results were fairly random. 

Going forward I intend to try and improve the features I have.

I recognise that this project is probably not feasible given that the difference between one sentence and the next depends on the subject and not just the grammar, but it has taught  me a lot about working with text data and NLTK so I intend to go forward with it.
Smart Bin
Tags: octograd2020
Published: 2020-05-20 10:47:58

[Comment]: # (All of this is placeholder text. Use this format or any other format of your choosing to best describe your project and experience.)

[Note]: # (If you used the GitHub Student Developer Pack on your project, add the "#githubsdp" tag above. We’d also love to know which services you used and how you used it!)

## A smart dustbin which used twitter api to tweet when a particular dustbin was full. Collaborated with 2 partners for international IoT contest by WIZnet.



## https://github.com/96vksingh/IOT

[Note]: # (Our markdown editor supports pretty embeds. If you're sharing a GitHub repo, try this syntax: `{% github link_to_your_repo %}`)

## It was built using WIZnet board which was coded using embedded C and twitter API for the tweets.


## Won $500 for our team of 3 from WIZnet.


[Final Note]: # (CONGRATULATIONS!!! You are amazing!)
COVID-19 Live Updates WP Plugin
Tags: php, wordpress
Published: 2020-05-20 10:46:29

Everyday I always check the number of Coronavirus cases not just in the UK but also in other countries. The thing about checking it on other websites is that the websites often contain ads, or don’t easily allow me to compare between countries in the format I want.

So I realize why not built my own using covid19API? I decided to build it for WordPress, so I can also share it with others. The plugin wasn’t so complex in terms of coding (was not using WP Plugin Boilerplate) I just used basic PHP OOP, Vanilla JS and some JQuery packages. There is no design, so you can update the styling once you load it on your site.

When people say WordPress Development is dying, they must not have seen the statistics! 35% of the Internet is powered by WordPress, and it is still growing ( 78.9% of websites in the world still use PHP).

So I am sharing this plugin to everyone ( GNU License) and happy for some coders out there to improve it. You can download it on my GitHub –

And you are done!

You can download or fork it at – [aralovelace/Covid19Report-WP-Plugin](https://github.com/aralovelace/Covid19Report-WP-Plugin)

Here is how it looks like:

{% youtube kFHL5Mh2FIk %}



Credit:

API Data Source: covid19api.com
GPT2 Article Generator
Tags: octograd2020
Published: 2020-05-20 10:31:47

[Comment]: # (All of this is placeholder text. Use this format or any other format of your choosing to best describe your project and experience.)

[Note]: # (If you used the GitHub Student Developer Pack on your project, add the "#githubsdp" tag above. We’d also love to know which services you used and how you used it!)

## My Final Project
I built an application to allow for generating news articles using OpenAI's GPT-2 text generator. The headline is provided by the user and they can optionally provide the start of the article, then it generates the rest of the article. The program has both a command line interface and a GUI, making it easy to use but also making it easier to integrate into other tools.

## Link to Code
https://github.com/DanTm99/gpt2-article-generator
{% github https://github.com/DanTm99/gpt2-article-generator %}

[Note]: # (Our markdown editor supports pretty embeds. If you're sharing a GitHub repo, try this syntax: `{% github link_to_your_repo %}`)

## How I built it (what's the stack? did I run into issues or discover something new along the way?)
I coded the project in Python and used TensorFlow as the models that were the focus on this project were TensorFlow models. In making this I learned how to interact with GPT-2, including further training it and using it to generate text in various ways.

[Final Note]: # (CONGRATULATIONS!!! You are amazing!)
CORONA DETECTOR
Tags: android, reactnative
Published: 2020-05-20 10:45:40

I made this project to aid a little to corona virus pandemic. I used react native to build the web as well as the android app. It was kind of a simple app that takes in input of the Country and shows different cases and parameters related to the virus in that country. I used an API from RAPID-API and integrated it in my app. React-native-paper was used to give a native design to the app.
I also build an app named CORONA detector using Android studio and java for Android OS, that helps an user detect whether he/she is affected by the virus by asking simple questions. The points awarded to  answer each question was taken from the WHO website and a cumulative percentage was taken out.

link to my repo- native app-https://github.com/Hyper-Matrix/COVID-19-NATIVE-APP
-android app- https://github.com/Hyper-Matrix/CORONA-DETECTOR
Eleventy: Loop through a collection from within a layout?
Tags: eleventy, help
Published: 2020-05-20 10:44:24

I have a home page which is made up of sections. Each section is currently pulled into my index.html using partials `{% include sections/_section_01.html -%}` for example. One of my sections has a bunch of cards which is well suited to be a collection.

How do I loop through a collection from within a section?

I may be going about this all wrong, but here is what I am doing currently.

`index.html` is using `layout: 'layouts/base.liquid'`

`layouts/base.liquid` looks as such…
```
{% include partials/_head.html %}
{% include partials/_header.html %}

  {% block content %}
    {{ content | safe }}
  {% endblock content %}
  {% block productContent %}{% endblock productContent %}

{% include partials/_footer.html %}
```
`products.liquid` is my layout for the cards and looks like this…
```
{% block productContent %}
<section aria-label="Product overview">
  <div class="container">
    <div class="columns">
      {% for product in collections.products %}
      <div class="col">
        <h2>{{ product.data.title }}</h2>
        {{ product.data.description }}
      </div>
      <div class="col">
        <figure class="image 5by4">
          <img src="assets/img/{{ product.data.img }}" alt="{{ product.data.imgAlt }}" width="648" height="521">
        </figure>
      </div>
      {% endfor %}
    </div>
  </div>
</section>
{% endblock productContent %}
```
I've tried including a section on my home page which looks at the correct layout. As per the following…
```
Index.html
---
layout: 'layouts/base.liquid'
---
    <main role="main">
      {% include sections/_section_01.html -%}
      {% include sections/_section_02.html -%}
      {% include sections/_section_03.html -%}

      {% include sections/_section_04.md -%}

      {% include sections/_section_05.html -%}
      {% include sections/_section_06.html -%}
      {% include sections/_section_07.html -%}
    </main>
```
```
_section_04.md
---
layout: "layouts/products.liquid"
---
```
I know the above isn't correct as it isn't working, is it just not possible or is there a way to loop through a collection from with a layout?
Corona Virus Cases Reporting
Tags: octograd2020, php, yii2, sql
Published: 2020-05-20 10:41:59

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

## About Project
This is a coursework project on my campus. Through this lecture, we are required to be able to solve a problem that is happening, and specifically related to the current pandemic. 

## Project Description
This is a simple web application that use to help people to make a report about corona virus. This web is built especially to be use on my regional city, Toba. Through this web, people can make a report and can see an update information in Toba. This web is still on development process and soon will be deploy.

## Link Project
I'm sorry for today, but I still cannot share the link.
Internship Portal
Tags: devgrad2020, octograd2020, githubsdp, showdev
Published: 2020-05-20 10:36:01

## Introduction

This isn't my final project but the project which I felt satisfied.

My university is getting good traction lately and was attracting many internship opportunities from all over the world.
It became very hard to manage the offers, shortlisting process, applying process, CV reviews.

So one day I along with a friend and a prof decided to make a portal where professors can list the opportunities, students can apply through them. 
This was the initial version, then it got a huge hit in the campus and students started applying through it. Later we added features like uploading CV, withdrawing from an Internship, Global Dashboard.

I enjoyed the whole journey.


## Link to Code
{% github https://github.com/Rohithgilla12/InternshipPlatform %}

## Screenshots of the application

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4vagl29ulpc85famsaye.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/c2fdbdoksydvu7z2wznr.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/iyqbrxaxmb42v9huenps.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/mil5uda5f3gu8pgb6m2g.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/uqymso62o1219d5416em.png)

## How I built it 
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
Well, those were the days when I slowly started developing my interest in the field of web development.
Python is my go-to language since my freshman year. I choose Django for the project.

## Additional Thoughts / Feelings / Stories
I would like to thank the Github education pack, without which I wouldn't have accomplished it.
I have used the student pack for a domain name, sentry, digital ocean.

Peace ✌🏻,
Rohith Gilla
Me and My Dev life
Tags: devanshk9
Published: 2020-05-20 10:31:00

I am Devansh Khetan I live in India and I love Coding. I am fluent in Python, JavaScript, HTML, and CSS. I see myself as a Front Dev and a graphic designer.
I am Google Code-in 2019-20 Runner-up also with OpenMRS (I know it gives me great pleasure in dev community😂).
#Githubsdp
I use GitHub a lot and believe me It's a great place I also got Github Student Dev pack for free as I am a student and I used Github pages a lot.

## My Final Project
I did many projects with OpenMRS.
Like OpenMRS Android Client development.
You can view on my profile https://github.com/Devanshk9

If you are a New Dev then you should differently learn Git and should participate in GCI. 

[Final Note]: # (DEVS UP!!)
Grande Hospital Clone Website
Tags: 2020devgrad, octograd2020, showdev
Published: 2020-05-20 10:24:38

---
title: Grande Hospital Clone Website
published: true
description: I just graduated from Leeds Beckett University, and this was my final project.
tags: 2020devgrad, octograd2020, showdev
---

## My Final Project
I was planning to design an aesthetically pleasing, interactive and W3C compliant website for Grande Hospital including couple of properly validated forms, contact details, services provided by the Grande hospital and facilities such as E-MIS report. HTML 5, CSS 3, Bootstrap 3, JavaScript and different other JS libraries has been used to add some animation and functionality to the website.

## Demo Link
https://bjupreti.github.io/grande/ 

## Link to Code

`https://github.com/bjupreti/grande`

## Retrospective || Evaluation
I think this website fulfill its basic objectives by giving information about hospital, service provided by the hospital etc. But as technology is growing and becoming more advanced each day there are some other important things that I could’ve inserted in website such as 360 virtual tour of hospital. Also, the website should have supported the Nepali language to require the meet of local market.

When I check this website it was compatible with many browsers i.e. contents were perfectly displayed in every browser. It is because very few modern CSS properties were used and wherever the modern CSS was used browser prefixes was also added. I think this website will not be so hard to use for disabled users too because Accessibility was prioritized while coding for this website and some important attributes were used such as Alt, ARIA to make them easy to access and also captions and transcripts are used in multimedia content.

### Learnings
The most important thing was that I got to learn so many things during this project which are but not limited to:
- Made myself familiar with HTML5, CSS3, Bootstrap, JS, jQuery
- Learned to use Git
- Learned to how to learn(how to google :P)
- Mobile First Approach
and so on.


### Happy Graduation!!
SimpleASM
Tags: octograd2020, githubsdp
Published: 2020-05-20 10:23:21

SimpleASM was created at the end of my first year at Lancaster University. We'd created applications using MIPS assembly, and as a fan of seeing what can be done in browser, I wrote my own "assembly" language that could be interpreted in client-side JavaScript.

I used the GitHub Pro to keep things private at first, and I was using WebStorm, one of the JetBrains IDEs that comes in the Student Developer Pack.

## My Final Project
You can see the running website [here](https://thecoolblackcat.github.io/SimpleASM)

{% github https://github.com/TheCoolBlackCat/SimpleASM %}

## How I built it
The stack involved was just client-side JavaScript, initially served from an NGINX test server, but then moved over to a GitHub pages site (it was static, after all). The big issue I encountered was debugging the code when loops were introduced. Obviously, poor interpretation of a loop could result in the browser freezing, and as I wasn't looking to solve the halting problem, this resulted in a lot of restarted browser sessions!

## Additional Thoughts / Feelings / Stories
It's been great to revisit this project for the git remote graduation this year. I have a lot of fond memories made when I created it, and even though its not my best work, and I could add greatly to it, including a refactor and much better text processing (this was the first time I'd written any sort of interpreter), I'm pleased with what I came up with.

[Final Note]: # (CONGRATULATIONS!!! You are amazing!)
Temple — a server generation tool
Tags: octograd2020
Published: 2020-05-20 10:23:10

Working with [@jaylees14](https://github.com/jaylees14), [@smithwjv](https://github.com/smithwjv) and [@lewiky](https://github.com/lewiky), I built a framework for generating server applications based on a data model.

## Getting started

Our full docs [are available online](https://templeeight.github.io/temple-docs/), including a Getting Started guide.

## Link to Code

{% github TempleEight/temple %}

## How we built it

The generator was written in Scala, and the code generated is currently only in Go, though more languages will be supported soon. This was done with the help of a specification project that we used to practice generating with.

{% github TempleEight/spec-golang no-readme %}

We created our own DSL, _Templefile_, to specify the data input. This is specified fully [in the docs](https://templeeight.github.io/temple-docs/docs/reference/templefile-spec), and its syntax was inspired by struct definitions in various languages such as C and Rust, as well as by CSS.

## Additional Thoughts

Given 12 weeks of development time for four people, I am extremely proud of the work we achieved. We achieved all the aims we set out for the MVP, and it will be exciting to see this develop further as it is open-sourced.
Malicious URL Detector
Tags: devgrad2020, octograd2020
Published: 2020-05-20 10:20:10

## My Final Project

Project to detect Malicious URL'S:

Hello everyone,

## Link to Code
{% github vijay-maripi/Malicious-URL-Detector %}

## How I built it 
I created this project to learn this so-called Machine Learning, Before starting this project, I don't know what is meant by ML, and I'm more interested in cybersecurity and I did my work in this field mostly. Nowadays everyone is using the word called Machine learning and doing courses, projects on that, so this how I got ML word into my mind and I got interested to work on using Machine Learning Techniques. I decided to learn ML while creating a project.

I choose the detection of malicious URL's as a project because the project should be related to both Machine Learning and Cybersecurity then I will get more interest to work on this. Eventually, I learned the concepts and implemented this project using resources like GitHub.

Coming to this project, the aim is mainly to detect whether a given URL is safe or Malicious. I used a random forest classifier and the SVM algorithms to compare the accuracy of detection based on the data set.

If you give a new URL which not present in the dataset, it will automatically collect the features of URL from the internet, so now you can assume this as an online-based learning project.

Malicious URL Detector collects features from the URL like token length, no of dots used in the URL, what are the extensions present in the URL, reach rank, the country rank of the website, etc. 

So after training the dataset (consists of safe and malicious URLs) malicious URL detector can classify the given URL whether malicious or not.

## Additional Thoughts

I learned a lot while building this application using python3.7, In future I'm planning to improve this model and create many projects based on this.