teleren/devto huggingface dataset:
✨ read-packages : a simple package that returns the dependencies of a package.json file.
Tags: showdev, javascript, webdev
Published: 2020-10-04 14:11:55

I wrote a simple module that returns the `dependencies` of a `package.json` file.

It has some additional options that you can pass in. Check the project `readme` for more info.

## Installation
```sh
npm install read-packages
```

## Usage
```js
const readPackages = require('read-packages');

(async()=>{
       console.log(await readPackages());
       //=> {dependencies: {foo: '^1.0.0',..}, devDependencies: {bar: '^2.0.0',...}}

       console.log(await readPackages({dir: './some/other/directory'}));
       //=> {dependencies: {...}, devDependencies: {...}}

       console.log(await readPackages({removePrefix: true}));
       //=> {dependencies: {foo: '1.0.0',..}, devDependencies: {bar: '2.0.0',...}}

       console.log(await readPackages({removePrefix: true, flattenPackages: true}));
       //=> {foo: '1.0.0',bar: '2.0.0',...}
})();
```

{% github https://github.com/rocktimsaikia/read-packages %}

[PS: Thought someone might find it a handy tool so I made a quick post. Thanks for reading 🦄 👋]
Cryptocurrency 💰
Tags: security, blockchain, beginners
Published: 2020-10-04 14:03:27

#What is cryptocurrency?
Currency has been an integral part of our lives. Now days everyone is moving towards a digital eco-system, from investment to money transfer, everything is going paperless. newest and most secured addition to digital payment sector is cryptocurrency.
* Cryptocurrency is an internet-based medium of exchange which uses cryptographical functions to conduct financial transactions which works on blockchain technology.
* The most important feature of a cryptocurrency is that it is not controlled by any central authority, the decentralized nature of the blockchain makes cryptocurrencies. 
* Cryptocurrencies can be sent directly between two parties via the use of private and public keys. These transfers can be done with minimal processing fees, allowing users to avoid the fees charged by traditional financial institutions.

#Types of cryptocurrency
Bitcoin is the most popular cryptocurrency created in 2009 by `Satoshi Nakomoto`. It used SHA-256 hashing algorithm to hash transactions.
Another popular cryptocurrencies are as follow:

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

#How it works?
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/hvqwscrc8gfr6f035yal.png)

Consider `Alice` wants to send bitcoins to `Bob`.
**1**.`Alice` first login into the bitcoin wallet using his unique private key.
**2**.After successful login `Alice` sends bitcoins to bob using `Bob’s` public key
**3**.Bitcoins sent by `Alice` then added into `Bob's` wallet without interference of third party and new block of the transaction is created.
**4**.This block of transaction contains information about transaction and hash key of previouse block of transaction.
**5**.This new block of cryptocurrency transaction is then appended to blockchain and gets updated to distributed ledgers.

#Why Cryptocurrency?
**1.We manage our transactions:**
As no other parties involved in transaction of cryptocurrency. This means there’s less opportunity for funds to get diverted elsewhere without your knowing. As a result, this will help reduce and eliminate fraud risk.
**2.We can track our payments at any time:**
Bank transactions get tracked over the few days. But in case of cryptocurrency we can track transactions by the second. This increases security for both the sender and receiver of the transaction.
**3.Transaction costs are affordable:**
Cryptocurrencies like Bitcoin usually have low transaction fees compared to other currencies. Bank probably charges a higher transaction fee than Bitcoin. This is because there is no central authority governing these currencies.
Spam on Dev.to | Hacktoberfest -2020 | ! Stop
Published: 2020-10-04 13:42:37

To find out, go through video

Even in the Read Next section, those spam posts are showing

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

{% youtube 9lEeQpdLaCw %}
Manchester eCommerce SEO
Published: 2020-10-04 13:29:52

[ Manchester eCommerce SEO Agency](https://seoreq.com/ecommerce/) That Increase Online Orders
SEO is the most effective way to get customers to e-commerce sites. With effective SEO work, stand in front of customers interest in your product exactly when they search.

Get the Benefits of SEO.
E-commerce SEO Services in Manchester
With our SEO services, your website will rank higher in search results for the shopping keywords. Your target audiences would find your site more easily. We love to apply our knowledge of SEO. We have prepared a package to grow your site.

Keyphrase research to know which keywords are related to your business and growing the number of keywords.

Product Page structure and content audit, product image optimisation.

Meta Tag analysis to fix title and description issues. 

Robots.txt optimisation and GoogleBot crawl tests.

Information architecture and site usability audit.

Category structure, URL, content audit.

Proper URL structure analysis.

Product Markup – HTML Schema Tags.

Heading tags optimisation.

Duplicate content analysis and correction.

Shopping cart funnels analysis and recommendations.

Rich snippets optimisation.

Google Analytics setup and conversion tracking.

A/B Multivariate Testing.


Search engine optimisation has the power to promote your e-commerce store and sell the products.
We're an E-commerce SEO Agency in Manchester.
The number of online orders increase every day and get an opportunity with us to grow your search engine market.


Business Goals
Grow your shop site with e-Commerce SEO.


Shop SEO Services
All eCommerce sites need SEO services.

SEO Meeting

Search Marketing Strategies
We have a lot of experience in marketing and promoting on the search engines.


Let's Meet.
We are very honest and respectful for your business aims.

E-commerce WebSite Design Manchester
We are a strategic technology company that has a lot of experiences in web design. Bring your SEO and Web Design requirements to get success.
Website
15+
Years of
Experience



Industry-related design.
Licensed e-commerce design + WordPress
software infrastructure with numerous SEO features.


Best Features
Home Contact, Product, Category, Basket pages.
Membership system.
Payment with Credit Card, Paypal and Bank Transfer
Social Media integration.
Pagespeed Optimisation.
SSL and high security hosting providing.

Google Compatible
Fully SEO compatible.
Google Analytics Goal Tracking + Google Remarketing.
Facebook Pixel + Remarketing (Track where
orders come from or which ad is performance or
not )
Schema Markup – JSON-LD Structured Data Generator
Published: 2020-10-04 13:25:55

Let’s [mark structured data](https://seoreq.com/schema/) to give Google more information about us like who we are, what are we do, what is our location etc. Use this JSON-LD schema generator. It helps all major web crawlers to get a better knowledge of your site. Fill in your information, get the code and add it to your site.
🚀 Hacker Noon 2.0 published my content 🚀
Tags: javascript, typescript, webdev, writing
Published: 2020-10-04 13:24:07

## It took 1 article rejection and 3 days of wait time to get another article published in **Hacker Noon** ecosystem. 🚀

![Box Piper Dancing](https://media.giphy.com/media/wAxlCmeX1ri1y/giphy.gif)

Hacker Noon has a renowned name in the tech publishing world. 

> A hacker noon is a place where hackers start their afternoons. where 10k+ technologists publish stories & expertise for 4M+ monthly readers.
> <a href="https://twitter.com/hackernoon" target="_blank">Twitter</a>

**Mail from Hacker Noon team**

![Screenshot 2020-10-04 at 19.03.46.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1601818494108/yMGKpL7r9.png)

### It means a lot for Box Piper, who is not even a month old. Writing continuously from the last few weeks and will continue to do so.

**Here's my Story Link: [Design principles to help you become a better developer](https://hackernoon.com/solid-software-design-principles-to-help-you-become-a-better-developer-v13j3woa)**

In brief, this article explained the design principles that every developer should follow for writing high-quality code. I can add more details here but it'll be an injustice to my hacker noon effort. Click on the story link above. 👆

#### Thank you all for reading my articles, and if I'm unknown to you then please go through my profile. I have written some interesting articles.

#### Do subscribe to my newsletter. I'll be sending exclusive content to your inbox.

#### Support my work and [buy me a Coffee](https://ko-fi.com/E1E72C2MM). It'll mean the world to me. 😇

<a href="https://ko-fi.com/E1E72C2MM"><img src="https://cdn.ko-fi.com/cdn/kofi1.png?v=2"/></a>

To read more such interesting topics, follow and read <a href="https://boxpiper.com/">BoxPiper blog</a>.
Annoyance at bots on this site
Published: 2020-10-04 12:49:48

My Dev.to feed is getting spammed with posts containing what seems to be customer care numbers for random companies that I've never even heard of before. I just want to scroll through my feed and enjoy quality posts but instead, 90% of all posts are from these bots among others,

- @rkhan771
- @gdhfhf675765

Mods, please ban these bots for constantly spamming the forum with useless phone numbers.

Thank you,
Dan
Nigerian Flag Animation SVG
Tags: webdev, codequality, discuss, css
Published: 2020-10-04 12:26:21

Hey Guys
This is a flag animation made with html and css to celebrate Nigeria's independence.



github link(full source code): [link](https://github.com/devkizit/Nigerian-Flag-Animation)

twitter : @zitomanna 

instagram : @_kizitogram

UPDATED LINK WHICH IS A BIT RESPONSIVE..

[link](https://infallible-ramanujan-9dc974.netlify.app/)

kindly star and share on github❤❤❤!

[Happy Independence Day To Nigeria _ Naija 2020 - Google Chrome 10_4_2020 12_28_51 PM](https://dev-to-uploads.s3.amazonaws.com/i/gap63psuyzhn7brlwdtr.png)
Day 19 - Landing Page 
Tags: css, html, beginners
Published: 2020-10-04 12:21:45

I took a challenge from [Frontend Mentor](www.frontendmentor.io) to build out a landing page for mobile and desktop screens. Check it out [here](https://josno.github.io/insure-landing-page/)!

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

## What I Learned
The style guides and screenshots provided along with the challenge is a great way to get familiarized with following full wireframes.  I got practice on building overlay backgrounds, layering, and design patterns.

## How This Will Help Me
I typically create my own wireframes for my projects, and enjoy the design process. But this time, it nice to be able to get solid experience in building something and focusing on skills without having to think about design from scratch.


Onto the next challenge!
Why you should try IPFS
Tags: ipfs
Published: 2020-10-04 02:54:57

Today, I will try to convince you to at least try IPFS.

### Integrity built in.

Let me explain the difference between content-based addressing and location-based addressing. This will help you understand how the integrity works:

- Location-based addressing is where a client would know exactly where a file is. 
- Content-based addressing is where a client would ask what the contents of a file is, verifying the contents were not modified using a hash. So, unlike Location-based addressing (HTTP), it has more security.

### Peer-to-Peer file storage

You can say goodbye to those servers hosting your data (such as AWS S3 and Google Drive) and say hello to Peers! What is a peer? Peers can be a client, and a server. They can replace servers if there are enough of them. Why peers instead of s server? If a peer goes down, other peers can give you the data you need. But if a server goes down, that data is gone until the server is back up.

### A programmatic API.

Like many things, it has an API. From running a node (peer) on your web browser ([js-ipfs](https://js.ipfs.io/)) to interacting with nodes hosted on a user's computer (See their docs for their [HTTP API](https://docs.ipfs.io/reference/http/api)).

Those were some things I wanted to talk about because not many people are willing to try IPFS. If you want to learn more about IPFS, you can check out the (many) links below:

- [Awesome IPFS - a awesome list of projects that are made/are using IPFS.](https://awesome.ipfs.io/)
- [ipfs.io - The main website for IPFS](https://ipfs.io/)
- [Install IPFS](https://ipfs.io/#install)
- [IPFS docs - The official docs for IPFS. They have many tutorials on how to deploy websites to IPFS and how to install IPFS](https://docs.ipfs.io/)
- [Get started with IPFS in the browser](https://github.com/ipfs/js-ipfs/tree/master/examples/browser-script-tag)
- [Get started with IPFS in Node.js](https://github.com/ipfs/js-ipfs/tree/master/examples/ipfs-101)
How Java program actually runs? What is Just in time compiler?
Tags: java, devops, codenewbie, firstpost
Published: 2020-10-04 12:05:47

Java is a bit different from other types of compiled and interpreted languages.
First, a java program is compiled from source code to intermediate code called the byte code.
Java compiler does this job and javac command is used to invoke it.

This byte code is portable and can be run on any machine that has a machine specific JVM 
installed on it. Now, JVM when triggered using the java command, will take line by line of this byte code and interpret it to machine code.
Here JIT comes into the picture. Even though it can optionally be disabled, it is a very useful part of JRE.

When JVM is invoked by the java command, the first thing it does is load the .class files at runtime 
and then convert them into machine understandable code using an interpreter.
JIT Compiler when enabled, makes JVM analyze method calls in byte code, and if it sees any repeated code,
JIT compiles it to machine code the first time and replaces all the other occurrences directly with the machine code, hence saving a good amount of time.
Daily Developer Jokes - Sunday, Oct 4, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-10-04 12:00:23

---
title: "Daily Developer Jokes - Sunday, Oct 4, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Sunday%2C%20Oct%204%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258922d1b9.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
I’ve been hearing news about this big boolean.

Huge if true.
 -->
Uhmmm... This is awkward...
Tags: webdev, jokes, showdev
Published: 2020-10-04 11:58:52

To whom of us didn’t it happen? We log in to the online meeting, and while we wait for the last colleague to join / for someone to share their screen / for a friend to fix their mic and camera, there is an _awkward_ silence… The type that really makes you feel remote.

And so, I decided to create a solution: **UHMMM automatically plays elevator music when the conversation goes silent.** A century-old solution to a modern problem. It works on all platforms and with all meeting providers (zoom, meet, teams, etc…)

So… uhmmm… wanna check it out? 
https://uhmmm.app/

Enjoy, and feel free to reach out!
Jonathan
🛒 Screpy available on Appsumo marketplace
Published: 2020-10-04 10:59:17

Screpy has been over a month since it was launched on Appsumo.
Screpy got attention in a short time because there is no other SEO and website analysis tool like Screpy in Appsumo and has a lifetime deal with a 70% discount.

Now you can access Screpy on the [Appsumo marketplace](https://appsumo.com/screpy/).
Why updating dependecy in your project is necessary
Tags: npm, devops, webdev
Published: 2020-10-04 10:40:17

With time, the dependencies and add on libraries improve themselves in terms of security, performance and efficiency. So if you stay with an outdated version that means there can be an issue for using these. I prefer updating dependecy in regular basis. And GitHub dependency bot helps a lot in terms of these issues.

My first PR at hacktober fest is also towards this so that we can understand how important is it to update dependency regularly.
The Weekly Challenge 080
Tags: perl, theweeklychellenge, perlweeklychallenge
Published: 2020-10-04 10:34:38

[Challenge 080](https://perlweeklychallenge.org/blog/perl-weekly-challenge-080/)

# TASK #1 › Smallest Positive Number Bits

This is a relatively straight forward task. Check the input, stuff the values in a `%seen` hash (which is faster than using `any` or `grep`), and then loop from 1 until you find a missing value.

## Minified

Everyone except maintainers loves minified code. This task can also be completed in 24 characters of Perl as per this example:

```
» perl -E '$r=1;$r++while(grep{$r==$_}@ARGV);say$r' 5 2 -2 0
1
```

## Examples

```
» ./ch-1.pl 5 2 -2 0
1

» ./ch-1.pl 1 8 -1
2

» ./ch-1.pl 2 0 -1
1
```

# TASK #2 › Count Candies

Some observations:
 * The original task had an error, but thankfully Mohammad fixed it in a [Tweet](https://twitter.com/PerlWChallenge/status/1310450281583382528?s=20)
 * While the task mentions candidates are ranked, it's probably more accurate to use the analogy of scored. By definition, the highest placed thing is ranked 1 (i.e. 1st). However, from the examples a higher placed candidate has higher value. Therefore I've used the word score throughout this task for that reason.
 * Finally, we call candy [lollies](https://en.wikipedia.org/wiki/Candy), so I'll be using that word too :)

In solving this task, I look at the number of consecutive increases in the score on either side. On the left side, if the candidate's score is higher than the previous score, I add one more candy than the previous candidate. For the right hand side, I count the number of decreasing scores. The number of lollies is the higher of those two figures. 

## Examples

```
» ./ch-2.pl 1 2 2
Result is 4 (1, 2, 1)

» ./ch-2.pl 1 4 3 2
Result is 7 (1, 3, 2, 1)
```
How to get environment variables from a running process in Linux
Tags: linux, software, environment
Published: 2021-02-10 19:49:55

---
title: How to get environment variables from a running process in Linux
published: true
date: 2020-10-04 10:24:57 UTC
tags: Linux,Software,environment,linux
canonical_url: https://bogdancornianu.com/how-to-get-environment-variables-from-a-running-process-in-linux/
---

In Linux, everything is a file. Even running processes are represented as files. You will find all the running processes in `/proc/`, with a separate directory for each process id.

```
ps aux | grep [process name] # to get the process ID
cat /proc/[process ID]/environ | tr '\0' '\n'
```

What the above commands do, is:

- Get the id of a process by name
- print the contents of the “environ” file for that process
- print each environment variable on a new line; `tr` stands for “translate”

The post [How to get environment variables from a running process in Linux](https://bogdancornianu.com/how-to-get-environment-variables-from-a-running-process-in-linux/) appeared first on [Bogdan Cornianu](https://bogdancornianu.com).
3 Easy UX Improvements
Tags: ux, design
Published: 2020-10-03 22:50:43

In this adventure of learning to be a UX designer, there are 3 things I have come across that web administrators can look at, that if done correctly, can improve the user experience of their site.  

##First, Text

The first one I want to focus on is making sure all your text is visible and readable, which includes hyperlinks!  If your color scheme is very monochromatic, you may need to take a look at how your text reads on any part of your site.  If you use images as backgrounds, you probably need to take a look at your text to make sure it people can read it easily.  

Web accessibility standards have given us great guidelines for contrast in text, their general recommendation is 4.5:1.  That varies all with size, but it is a good general rule of thumb.  To check your text, they have a great tool at [WebAIM](https://webaim.org/resources/contrastchecker/) that will tell you your ratio.  

![WebAIM contrast checker](https://dev-to-uploads.s3.amazonaws.com/i/xrsz9dgrkqzxj5m9oyjf.png)

##Second, CTAs

The next maybe not quick, but simple and hugely impactful is making sure your call to action button is easy to find.  Make sure your audience knows how to give you their money, time, email address, whatever it is you would like to get from them.  The best example of this is a recipe blog.  I appreciate the recipe blogs that have a 'skip to recipe' button at the beginning of their post so I can skip directly to the ingredient list and directions, instead of having to scroll through their entire post on how they developed their signature dish.  

Don't make people hunt for the way you want them to act.  If your goal is to get a purchase from your website visitor, a shop now button needs to be one of the first things that draws the attention, but not in an obnoxious way.  If your goal is to create a sales funnel via email marketing, make sure your newsletter opt-in is one of the first bits of information your viewer comes across.

##Most Visited Pages

Take a look at your Google Analytics and find the pages people are visiting the most and the longest.  That can be found under the behavior portion of the analytics.  Make sure that page or pages is also easy for your visitors to access.  It may be a good idea to move them around in your navigation bar so they are quicker to get to.  The behavior flow gives you a great visual picture of how people are clicking around your site and can help focus the user experience improvements.

![GA Behavior](https://dev-to-uploads.s3.amazonaws.com/i/kksdvd6e7t88o81cmf2g.png)

There you go, three easy ways to improve UX on your site.
Popular Docker Interview Questions with RealTime Scenarios for Beginners | Part 3
Tags: devops, docker, linux, kubernetes
Published: 2020-10-04 10:08:22

Following questions are addressed in this video:-

- Are the container logs stored inside a container or in host server ? And what is the location of container logs ?

- 10+ containers are running on my host server. All these containers stop on server reboot or docker engine restart which requires a manually container start. Is there any way to auto restart the containers in this scenario ?

- Developers create multiple test containers in dev server in a day which consumes lot of disk space and manual cleanup is required. Is there any way to automate this cleanup ?

- Is it possible to use restart policy and –rm flag together when starting a container ?

- How does Docker really work behind the scenes?                                           
                         OR
- Where namespace, cgroups and UnionFS is used in docker ?

- I want to clone a github repo but I don’t have git utility installed in my system ,although docker is running in my system and git image is also available. So considering the scenario, how can I clone the repo now ?

{% youtube v9yu1uIYuoA %}