teleren/devto huggingface dataset:
VSCode mass extension installation
Tags: discuss
Published: 2020-05-20 11:51:52

---
title: VSCode mass extension installation
published: true
description: What are some ways we can install many VSCode extensions in one go?
tags: discuss
---
How many ways are there to install a couple of public essential VSCode solutions for new members of a development team?

*Note: ideally, the installation will be part of the onboarding process, so using workspaces is not very feasible since it is only restricted to one project.*

---

#### Publish/Use an extension pack on the market place

Make an extension pack + publish it on the marketplace
- https://code.visualstudio.com/blogs/2017/03/07/extension-pack-roundup
- https://www.software.com/src/how-to-create-an-extension-pack-for-visual-studio-code

| Pros | Cons |
| --- | --- |
| user can just search on the market place and install | fully public
requires the team to maintain a VSCode market place account |

#### Run a command

VSCode has a `--install-extension` option on the CLI where you can install extensions with their marketplace id.

example: `code --install-extension dbaeumer.vscode-eslint --install-extension dbaeumer.vscode-eslint`

- https://code.visualstudio.com/docs/editor/command-line#_working-with-extensions

| Pros | Cons |
| --- | --- |
| 0 maintenance of any accounts or code | VSCode needs to exist on the system PATH (i.e. zip versions need extra work) |

---

Let's discuss any other options that exist!
How to find Segmentation Error in C & C++ ? (Using GDB)
Tags: cpp, codequality, computerscience
Published: 2020-05-20 11:48:10

What is Segmentation Error?
– It is the runtime error caused because of the memory access violation. 
For Eg :-Stackoverflow, read violation etc..
We often face this problem when working out with pointers in c++/c.
In this example, we will see how to find the segmentation error in the program. We will find which lines cause the segmentation fault error.
Note:- I have used Linux distro – Ubuntu for this demonstration.
So, Consider the following snippet of C++ Code.


// Segmentation Error Demonstration 
// Author - Rohan Prasad 
 # include <iostream> 
using namespace std; 
  
int main() 
{ 
    int* p = NULL; 
  
    // This lines cause the segmentation  
    // error because of accessing the  
    // unknown memory location. 
    *p = 1; 
   
    cout << *p; 
    return 0; 
} 



How to find that error using gdb?
Let’s say your file name is saved as Program1.cpp. Head our to your terminal (Be in the directory in which this Program1.cpp is available)

Step 1: Compile it.
$ gcc -g Program1.cpp (in my case).
Step 2: Run it.
$ ./a.out (it is Object File)
If it shows Segmentation fault (core dumped) then follow following steps.
Step 3:Debug it
$ gdb ./a.out core
Your output will look like something this:
————————————————————————————

GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./a.out...done.
/home/logarithm/Desktop/Test Case/Miccl/core: No such file or directory.
(gdb)



————————————————————————————
Then just type r and press the enter key .
The output will be something like this showing the erroneous statement.
———————————————————————————–

(gdb) r
Starting program: /home/logarithm/Desktop/Test Case/Miccl/a.out

Program received signal SIGSEGV, Segmentation fault.
0x00005555555547de in main () at Sege.cpp:8
8 *p=1;
(gdb)

————————————————————————————
Then just type r and press the enter key.
The output will be something like this showing the erroneous statement.
———————————————————————————–

(gdb) r
Starting program: /home/logarithm/Desktop/Test Case/Miccl/a.out

Program received signal SIGSEGV, Segmentation fault.
0x00005555555547de in main () at Sege.cpp:8
8 *p=1;
(gdb)
Parade: NU's Event Discovery App
Tags: octograd2020, githubsdp
Published: 2020-05-20 11:46:18

Parade is an event discovery platform for university student organizations. The platform allows student leaders to promote campus events to the student body at large, and provides a convenient, centralized medium for students to discover events that suit their interests.  Parade is a win-win for students and universities. Parade allows students to get more involved and discover events that interest them, while also providing the host university with an excellent platform to track extracurricular involvement and generate involvement "bragging rights" in prospective student marketing material. 

Parade is student-centric, and solves problems with accessibility and availability that other existing platforms are not built to solve.

Our stack included:

**Mobile Client (iOS/Android)**
- React Native
- Apollo (GraphQL)

**Backend**
- Mongo DB
- Node.js/Express
- GraphQL 

**Hosted on**
AWS (**Lambda** for hosting node API, **S3** for photos, **API Gateway**)
mlab
Mailgun (Email)


Over the years of development I published several dev blogs featuring tutorials of skills i'd learned. Here are several of them:

https://joshspicer.com/parade-push-notifications
https://joshspicer.com/parade-linking
https://joshspicer.com/lambda-graphql

Check out our (Github Pages) website at **https://parade.events/**

The App is LIVE on iOS & Android (although you need a @northeastern email)
https://parade.events/ios
https://parade.events/android

And our Github organization **https://github.com/parade-events**




[Final Note]: # (CONGRATULATIONS!!! You are amazing!)
My Final Year Project
Tags: octograd2020
Published: 2020-05-20 11:46:00

[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!)

## Purvey.it
A compact CMS for small business
## Demo Link
Not yet completed, still in work
## Link to Code
`{% https://github.com/ravibalg-aj/Purvey.it %}`
[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
Using MERN stack,
React is so cool and powerful,
And with Material-UI v4, OMG their components are damn beautiful


[Final Note]: # (CONGRATULATIONS!!! You are amazing!)
Shopping Suggestion WebApp
Tags: octograd2020, githubsdp, node, javascript
Published: 2020-05-20 11:36:31

[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!)

## Shopping Suggestion Web APP
It is the Shopping Suggestion web App it will search the products on passing the search keyword to the search bar of the web app and then the web scrapping is done on the selected or supported website for selecting the product according to the keywords.
## Demo Link
 https://shopifyeasetest.herokuapp.com/
## Link to Code
{% github https://github.com/dilipkary/internshop %}
[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 built it using the following stack 
#### Nodjes 
#### ExpressJs
#### Javascript
#### CSS and HTML
#### EJS templating
#### Puppeteer
a Node library which provides a high-level API to control headless Chrome or Chromium over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome or Chromium.
Most things that you can do manually in the browser can be done using Puppeteer! Here are a few examples to get you started:
Generate screenshots and PDFs of pages.
Crawl a SPA (Single-Page Application) and generate pre-rendered content (i.e. "SSR" (Server-Side Rendering)).
Automate form submission, UI testing, keyboard input, etc.
Create an up-to-date, automated testing environment. Run your tests directly in the latest version of Chrome using the latest JavaScript and browser features.
Capture a timeline trace of your site to help diagnose performance issues.
Test Chrome Extensions.
I Used this package for the scraping the data from other eCommerce websites.
I run into many issues but I get ride-off it by dedication towards my work.
sometimes I didn't get the correct data from the scrapper.
I resolve all problems and finally made a core function where I can pass any number of websites data and able to add more websites and scrappers to it.
## Additional Thoughts / Feelings / Stories
I faced many problems in starting this project but after my dedication to work till late night to develop a core program to scrap the data from the website makes it possible. And it worth for me to do so and I completed my project after a month successfully.
And finally, it pays off to me as i succeeded in creating a web scraper web app which can able to scrape data from e-commerce websites and give abetter result at a single place 
[Final Note]: # (CONGRATULATIONS!!! You are amazing!)
Telegram PDF Bot
Tags: octograd2020
Published: 2020-05-20 11:35:25

## My Final Project

I created a PDF utility bot on Telegram that can:

- Crop, decrypt, encrypt, merge, preview, rename, rotate, scale and split a PDF file
- Compare text differences of two PDF files
- Create a PDF file from text messages
- Add watermark to a PDF file
- Add a text layer to a PDF file to make it searchable
- Extract text from a PDF file
- Extract images in a PDF file and convert a PDF file into images
- Beautify and convert photos into a PDF file
- Convert a web page into a PDF file

## Demo Link

https://t.me/pdfbot 

## Link to Code

{% github https://github.com/zeshuaro/telegram-pdf-bot %}

## How I built it

I built it with Python along with some Python packages for manipulating PDF files. I also used Docker and Travis CI to deploy and host the bot on Heroku. And lastly, I used Datastore on Google Cloud Platform to store the bot usage statistics.

## Additional Thoughts / Feelings / Stories

This was an interesting project as I have been receiving feedback from users to either fix bugs or implement new features. The bot has over 10,000 users and has processed over 65,000 tasks. Last year, one of the users also offered to help translate the bot into Italian. With the help of the users, the bot now supports 11 languages.
A couple of thoughts from the Python survey results - 2019
Tags: python
Published: 2020-05-20 11:35:09

*the screenshots and data come from [Python Developers Survey 2019 Results](https://www.jetbrains.com/lp/python-developers-survey-2019)*

* Python's usage in data analysis is more or less the same as last year but its usage for web development is decreasing.

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

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

* Flask usage share is strong! I thought Django was much more used. Interesting how their communities have roughly the same size (though Django is much more popular for prototypes I guess). This would be unthinkable in Ruby land. I believe Rails has much higher usage share by Ruby web developers.

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

A special mention to that 26% (!!) of people who do web development in Python with no frameworks.
TheShoppeeStore
Tags: octograd2020
Published: 2020-05-20 11:34:54

## My Final Project
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/mvyfqg54mvu02fso8sq2.png)

Shoppee.com is a young and vibrant e-shopping platform that aims to provide good quality branded products. Shoppee.com caters to the fashion needs of men, women, and kids across footwear, apparel, jewelry, and accessories. 
We strive to achieve the highest level of “Customer Satisfaction” possible.


## Demo Link
http://theshoppee.herokuapp.com


## How I built it 
Stack:
------- Backend:
-------------Django
-------------Python
--------Front End:
-------------HTML
-------------CSS
-------------JavaScript

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qxcfwvsb7e1q9dwhcbtl.png)
## Additional Thoughts
The building of the project has given me a precise knowledge about how Django is used to develop a website, how it connects to the database to access the data and how the data and web pages are modified to provide the user with a shopping cart application
Give Thanks Grad Project
Published: 2020-05-20 11:33:09


#My Project
With COVID-19 out there, nothing is the same anymore. Expressing gratitude towards people that are putting their lives at risk to take care of others, deliver your food, teach your children, is something not to be forgotten during these challenging times.

Myself, along with my friend Kaushik Mahorker and Kamesh Vedula, wanted to spread more positivity to recognize and appreciate the frontline workers that have been essential during the pandemic. To do that, we ended up creating GiveThanksNow, where people can leave messages of gratitude and encouragement to our heroes on the frontlines, be it a simple thank you or something even more than that.

####Website: [Give Thanks Now](http://givethanksnow.org/)


Stack: HTML/CSS, Bootstrap, JS, Firebase
We wanted to make it simple and decided to use Bootstrap, HTML/CSS, JS, and Firebase to get our MVP out there and ready to use. We are constantly looking for ways to further improve the website and add more features to show our appreciation for the members of the frontline.

Issues that came up: After we launched the site, we realized our Firebase was not as protected from getting injected than we thought and we ended up fixing the issue within an hour by looking further into the Firebase rules and documentation and ensuring someone can't attack us again.
Holistic Office
Tags: octograd2020, githubsdp
Published: 2020-05-20 11:32:50

Holistic Office is basically a bootlegged version of Epic Systems. It is a patient electronic health record (EHR) management and inventory management system for small to mid-sized independent clinics, and also my graduate school project for CSCI-577: Software Engineering. With a team of 8 graduate students, my main role in the project is the software architect, designing everything from infrastructure to software packages. We decided to have the site conform to FHIR data handling standards to allow for interoperability with other EHR software.

Client Module
• Language: TypeScript
• Styling: Sass Stylesheets
• Framework: Angular, ng-fhir
• Server: Node.js
• Deployment: S3 Storage + CloudFront CDN

Server Module
• Language: Java 8
• Frameworks: Spring Boot, HAPI-FHIR, JPA
• Server: Tomcat (embedded)
• DB: AWS Aurora DB
• Deployment: Elastic Beanstalk

E2E Test Module
• Language: JavaScript
• Framework: Cypress.io
• Server: Node.js

Serverless Code
• Language: Python
• Framework: AWS Lambda

Infrastructure
• Version Control System: GitHub
• CI/CD: AWS CodePipeline w/ AWS CodeBuild
• Authentication: AWS Cognito
• Security: AWS VPC
• CDN: AWS CloudFront
• DNS Routing: AWS Route 53
Notify via email when an event occurs in a website
Tags: python, octograd2020
Published: 2020-05-20 11:22:29


Ever wanted to know as soon as 
- a product comes into stock?
- tickets are available for any event?

I think most of us have had those questions. After reading this, you'll know how to implement answers for the above questions/similar questions.

[This](https://github.com/rohitbabugaddeti/swiggy6-notifier) implementation had paved ways to find answers to the above questions.

The project mentioned above was built in last summer(2019 April) during the IPL season. What is IPL? [check here](https://en.wikipedia.org/wiki/Indian_Premier_League).

The main objective of this project is to notify the user when someone hits a SIX in the IPL match. With few modifications, you can build a system to notify yourself when an event occurs in a website.

Diving into how I did it, the first and core concept I should discuss about is [Web Scraping](https://en.wikipedia.org/wiki/Web_scraping). Web Scraping allows you to get data from websites even if the website owner is not providing any API kind of thing. I used Python language in this project and will be talking about python packages throughout this post. Python has web scraping libraries like *BeautifulSoup, Scrapy* etc. I used *BeautifulSoup* here because it is simple and fits our need. 

BeautifulSoup consists of powerful parsers that can parse response objects into traversable objects. It also has several inbuilt methods to filter out the data extracted from the website. We can achieve a lot of things using them. 

So, you first need to make a request to the website you wanted to scrape using its URL. This can be done with packages like *urllib, urllib3, requests* etc. You'll get a HttpResponse object from the server of the website you requested. Now you have to pass that response object to *BeautifulSoup* class specifying which parser to use. It will give a parsed *bs4* object accordingly.

Now, you have to check for the required data from the parsed object using builtin methods or regular expressions.

You'll want to notify after checking for the data. To notify the user via email, you need two packages: *smtplib, email*.

*email* is used to frame email object which we will be using in *sendmail* method of *smtplib*.

Using threads to send notifications can prevent the pausing of main activity.
Build A LAMP Server With Ansible
Tags: ansible, php, apache, mysql
Published: 2020-05-20 11:18:30

---
title: Build A LAMP Server With Ansible
description: Open source scripts to build a Linux/Apache/PHP/MySQL server with Ansible
tags:
    - Ansible
    - PHP
    - Apache
    - MySQL
published: true
---
Setting up a PHP server has always been a pain. After setting up the 149th server manually using the excellent Digital Ocean
[community tutorials](https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04-quickstart), it was time to automate the process.

I started with the Digital Ocean [Ansible playbooks](https://github.com/do-community/ansible-playbooks). Then I added some steps from [My First 5 Minutes On A Server](https://plusbryan.com/my-first-5-minutes-on-a-server-or-essential-security-for-linux-servers).

I wanted Ubuntu 20.04 support so I used [multipass](https://multipass.run/) to bring up an Ubuntu VM in no time. Since it uses the macOS native hypervisor there was nothing more to install.

Now that things were looking up I decided to open source my efforts and [made a project](https://github.com/dilantha/ansible-lamp) out of it. 

PHP is installed via the [Sury packages](https://deb.sury.org/) so they are up to date than the native repos.

Originally posted on [my blog](https://dilantha.4lk.co/posts/build-a-lamp-server-with-ansible/).
My Master Thesis
Tags: octograd2020
Published: 2020-05-20 11:18:28

[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!)

## Human activity and emotion recognition from RGB videos using deep learning


## [Demo of the project](https://youtu.be/C1PsTutNbCw)
 

## [GitHub repo](https://github.com/arnabdeypolimi/Image-classification-PyTorch-MLflow)

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

In this Project, I have proposed a new methodology to recognize human
activities and emotions based on RGB videos, which take advantage of the
recent breakthrough made in the field of deep learning. This method uses an
image classification approach to recognize human activities and emotions.
We can divide this problem into two sub-problems: activity recognition, and
emotion recognition. We have used the transfer learning technique for both
problems. Human activity and emotion recognition gained popularity in
recent years because of the wide use of digital cameras in daily life and their
potential for human-computer interaction, and robotics applications.
In this work, a solution is proposed requiring only the use of RGB video
instead of RGB-D videos to recognize human activity and emotion. This
work shows a different approach based on the conversion of RGB video data
into 2D images and image classification. From a stream of RGB videos, a
two-dimensional skeleton of 17 joints for each detected body part is extracted
with a DNN-based human pose estimator called PoseNet. Then, skeleton
data are encoded into red, green, and blue channels of an image. A different
way of encoding data was studied and compared.
We used different state-of-the-art deep neural network architectures to classify human activities and compared them. Based on related works, we have
chosen to use image classification models: SqueezeNet, AlexNet, DenseNet,
ResNet, VGG, Inception, and retrained them to perform action recognition.
For all the experiments for activity recognition, the NTU RGB+D database
was used. The highest accuracy was obtained with ResNet 88.19%, which
outperformed all the previous works.
The second part of the problem is the detection of facial expressions from
RGB videos. Based on the previous study, we have used image classification
techniques based on deep learning. Before doing classification, we have
applied the OpenCV face detection function to recognize faces in the wild.
Cropped image of the face used as an input to our retrained VGG16 emotion
detection model based on deep neural network. The highest accuracy is
obtained with VGG16 (85.06%) which is comparable to any other state of the
art approaches.



## It was an amazing experience 


[Final Note]: # (CONGRATULATIONS!!! You are amazing!)
Traffic Management System
Tags: octograd2020
Published: 2020-05-20 11:14:28

#githubsdp 
# Created a project on Smart Traffic Management System that will automatically manipulate the Traffic light time according to the traffic intensity.

## My Final Project


## Demo Link
 

## Link to Code https://github.com/chandresh189189189/Traffic-management


## Technology Stack
```
Embedded C
Arduino
Python
```


## Presented the project in University hackathon and was runner up
intro speech!
Published: 2020-05-20 11:11:43

Hola amigos! 
This is my first blogpost and i am happy to share this with you!
I would like to introduce myself in this post.
I am Kanika Gupta. I'm pursuing computer science honours as well as German honours from DU. 
I'm a writer cum poet by passion. 📝📝
bibliophile || potterhead || BTS lover
I love binge watching k-dramas as well as trying out new technologies 😁😁
Thank you and would be looking forward for your support!!
[Final Year Project]
Tags: octograd2020, githubsdp
Published: 2020-05-20 11:03:04

[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!)

## Fun eSchool
This is an online platform for kids. This project is currently under development. I will love to get ideas about the features of an online platform from you.

## Link to Code
Github: https://github.com/touhidulShawan/funEschool

[Final Note]: # (CONGRATULATIONS!!! You are amazing!)