teleren/devto huggingface dataset:
Use pass and rofi to get a fancy password manager
Tags: automation, pass, rofi
Published: 2020-11-05 07:50:22

---
title: Use pass and rofi to get a fancy password manager 
published: true
series: rofi as multitool
tags: automation, pass, rofi
---

I am using pass as my main password manager. It is completely cli based under version control and gpg2 encrypted. But use pass only in the cli makes no sense, when you have browsers or other applications which are asking for a password. To get a more handy usage of pass and autotype function, we have to be a little bit creative. 

rofi is a windows switcher and application launcher which is high configurable. I combined both in one script. To get the auto type feature I am using `xdotool` which should be standard installed on every Linux machine.

Depend on the `rofi.conf` you will get a nice password manager, which is full integrated in your system.

![pass and rofi in action](https://dev-to-uploads.s3.amazonaws.com/i/8mfs311ps0plpw3tniaq.png)

```bash
#!/bin/bash

shopt -s nullglob globstar
 
# switch for autotyping
typeit=0
if [[ $1 == "--type" ]]; then
	typeit=1
	shift
fi

# get all the saved password files
prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )

# shows a list of all password files and saved the selected one in a variable
password=$(printf '%s\n' "${password_files[@]}" | rofi -dmenu "$@" -theme ~/dotfiles/i3/rofi.rasi)
[[ -n $password ]] || exit


# pass -c copied the password in clipboard. The additional output from pass is piped in to /dev/null 
if [[ $typeit -eq 0 ]]; then
    pass show -c "$password" | head -n1  2>/dev/null
else
    # If i want to use autotype i save the user name and the password in to a variable 
    # the actual password files are simple text file. 
    # The password has to be on the first line,
    # because if you using `pass -i` the first line will be replaced with a new password
    
    passw=$(pass show $password | head -n1 )
    uname=$(pass show $password | tail -n1 )
    # xdotool types the username on the active spot (cli or inputfield from a browser)
    xdotool type "$uname"
    # type a TAB (for moving forward in browser input fields)
    xdotool key Tab
    # type the password in the active input
    xdotool type "$passw"
    xdotool key Tab
fi
```

I'm using i3wm as window manager, so I can easily use short keys to activate my password manager. 
 

```
bindsym $mod+p mode "password"
mode "password" {
    bindsym p exec "/home/maren/dotfiles/scripts/passScript.sh"
    bindsym t exec "/home/maren/dotfiles/scripts/passScript.sh --type"

    bindsym Return mode "default"
    bindsym Escape mode "default"
    bindsym $mod+r mode "default"
}
```
My First Hacktoberfest Challenge!
Tags: hacktoberfest
Published: 2020-11-05 07:33:39

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



<!-- 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.  --> 
Hey there! I'm Akhil S Nair, a 2nd-year Btech CSE student, Lpu. 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →
I'm familiar with C++, Python, HTML, CSS. I'm brand new to open source. 

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->
I have completed the hacktoberfest 2020. It was very fun contributing to the opensource project. Got to learn many things.

https://github.com/akhilsnair1047

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

Python Digital Clock - 
https://github.com/shivangdubey/HacktoberFest2020/pull/248 

Sorting in Doubly Linked List CPP -
https://github.com/aniketchaudhari3/hacktoberfest2020/pull/49

Sorting in Doubly Linked List CPP -
https://github.com/thisisshub/HacktoberFest/pull/293

Anagram program CPP -
https://github.com/kaweendras/Data-Structures/pull/24

Course-recommender -
https://github.com/arpancodes/mega-course-recommender/pull/187
JBoss
Tags: jboss
Published: 2020-11-05 05:48:38


What is JBoss?
JBoss Application Server is an open-source platform developed by Red Hat that is used to deploy Java applications and many other software applications. You can design and deploy Java services to fit the size of your business. JBoss / Server and the suite of products are provided under a public license. With a large number of downloads per month, [JBoss](https://tekslate.com/jboss-training) is the industry's most downloaded J2EE-based server.

is JBOSS still in use?
In 2013, JBoss was renamed and is now known as WildFly, but the old name is still widely used, especially by users of older versions, so we will remain JBoss for now.

JBoss features
Clustering

A computer cluster is a group of connected computers that work closely together so that they form many aspects of a single computer. Clusters are typically used to improve performance and / or availability over a single computer, and are typically much more cost-effective than individual computers with comparable speed or availability.

Load balancing

JBoss AS balances the load of the incoming request either by adding new hardware or by installing a software load balancer, eg mod_jk.

Caching

JBoss AS offers a temporary storage area where often accessed data can be stored for quick access. If the data is cached, it can be used in the future to access the cached copy, rather than retrieving or recalculating the original data

Failover

When one server goes down, control is transferred to another server. Heartbeat software is configured in JBoss AS to maintain the session.
Source: [JBoss Tutorial](https://tekslate.com/jboss)
Completing my Hacktoberfest challange  
Tags: hacktoberfest
Published: 2020-11-05 07:25:27


Hacktoberfest 2020
I came to know about Hacktoberfest from a friend and initially, I was reluctant to take part in it as I was very new to open source. But in the end, after a bit of motivation from my friend I decided to give it a go and now I've completed my contributions and because of Hacktoberfest now I'm in love with open source.
I would love to participate next year as well and will surely remain a part of this wonderful community.
Solving Codewars Kata "Multiples of 3 or 5" 6-kyu with JavaScript (4 solutions)
Tags: javascript, codenewbie, 100daysofcode, codewars
Published: 2020-11-05 07:23:36

{% youtube 0ok4vmYYvhc %}

To solve this problem, we'll take 4 different approaches.
Enjoy the video 😀🙏

Blog post: https://losseff.xyz/katas/024-multiples-of-3-or-5/javascript/
Wheels comes to rescue ...
Tags: codekaro, python, pip, installation
Published: 2020-11-05 07:23:20

So, today I was installing psycopg2, building directly from source and encountered an error.

Wheels come to the rescue, hurray !!

```
pip install psycopg2

ERROR: Command errored out with exit status 1: Check the logs for full command output.
```

What to do now ??

Install the .whl file !

```
pip install psycopg2-binary
```
Scraping 25,000 data points from Joe Biden's Instagram using instascrape
Tags: showdev, python, datascience, contributorswanted
Published: 2020-11-05 07:13:06

In this post, I'm going to discuss how I used my open source Instagram scraper to scrape 25,000 data points from Joe Biden's Instagram page. 

<img width="400px" src="https://i.pinimg.com/originals/4f/56/58/4f56588cd246707ec5e4d938d28f8a50.gif">

Combining [_selenium_](https://selenium-python.readthedocs.io/) and _instascrape_, I wrote a quick script that automatically scrolled Joe Biden's Instagram page and scraped the first 500 posts, yielding us almost 25,000 data points to explore (with 49 data points per post) :raised_hands:. 

Let's see what his likes per post looks like with a little [_matplotlib_](https://matplotlib.org/api/pyplot_summary.html) and [scikit-learn](https://scikit-learn.org/stable/) magic :smirk:

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

As expected, we can see steady growth and then a massive spike upwards as election day approached. 

Let's take a look at comments per post now for the heck of it: 

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

There's a ton of different things we can do now that the data is available to us and it's really up to you what you do with it. Using the `to_dict` instance method, I can build a [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html) from all of our data for easy analysis in a clean, expressive format. With a script like the following, we can get every post where Joe Biden used a hashtag. 

```python
dataframe[dataframe.hashtags.str.len() != 0]
```

or say we wanted every post where Joe got more than 1,000,000 likes:

```python
dataframe[dataframe["likes"] > 1000000]
```

...so what are you waiting for? Get out there and start exploring Instagram data programatically! 

If you're interested in reading more about _instascrape_, check out some of my other posts: 

{% link https://dev.to/chrisgreening/exploratory-data-analysis-of-instagram-using-python-1o5c %}
{% link https://dev.to/chrisgreening/downloading-an-instagram-profile-s-recent-photos-using-python-25b2 %}

or better yet, come to the official repo and drop it a star and contribute :heart: 

{% github chris-greening/instascrape %}
How To Choose The Right Email Server Provider: The Decision Process And Expert Advice
Published: 2020-11-05 07:11:46

As businesses grow and evolve, they need to continuously adapt their infrastructure to their needs. Some service providers that are acquiring new customers at a fast pace, or registering spikes in traffic, might be in need of **rapid scaling**. Others might need their tools to be really **flexible** so they could integrate them with legacy platforms. 

And last but not least, as there are more and more people online and cyber-attacks get more frequent and serious, **security** becomes a differentiator between different email server providers.

As a service provider, you need a mail server solution that caters to thousands of domains and hundreds of thousands of mailboxes while helping you:

* build customer loyalty;
* increase subscriber ARPU;
* reduce customer churn;
* lower business costs.

If your current infrastructure is weighing you down and getting in the way of you expanding your business, it might be the time for a change. But what should you be looking for?

[Head over to our blog](https://www.axigen.com/articles/choose-email-server-provider_88.html?utm_source=Devto&utm_medium=Devto&utm_campaign=Choose%20email%20provider) to find out more about:

* who should draft the requirements for a new mail server solution;
* who should do the research;
* who should be involved in the decision process when choosing an email server provider;
* how long does migrating from one provider to another take;
* expert advice from industry professionals who have gone through this process themselves.
4 reasons why digital marketing is important for small businesses

Tags: digitalmarketing, business
Published: 2020-11-05 06:59:18

83% of SMEs (small businesses) believe that digital marketing (DM) is essential for their business. Can you get over that? A simple "no". We are constantly hooked on the internet for one thing or another.  Increasing sales figures is the main objective of SMEs that are now entering DM. Additionally, SMBs also rely on online marketing to improve brand awareness, [lead conversion](https://www.propelguru.com/lead-generation/), and improve website traffic.

**The following post shares 4 important benefits of digital marketing for small businesses:**

**Customers are online**
80% of potential consumers consult online media for information. When we meet a new business or business, the immediate instinct is to look for digital marketing in the web world. Gone are the days when we used to physically visit a store or call it for more information.  Simply put, if your potential customer can't find you online, they will immediately turn to your competitor.

**Connect to the modern "smart" world**
Mobile phones are no longer used for simple calls or SMS. In fact, smartphones are one of the most important tools for browsing the web today. 91% of American adults are in constant contact with their smartphones. When it comes to searching for a product or service, they will naturally prefer to inquire only from their smartphone. If your business is not online, imagine the sheer number of leads you will lose!

**More economical**
The capital crisis is a major problem for most small businesses. And this is where digital marketing is a savior. Online marketing is becoming cheaper than traditional marketing. In fact, some channels are even free. For example, it costs you nothing to create your business page on social media and stay connected with your customers online.

[Digital marketing](https://www.propelguru.com/) also helps you save money. There are many online marketing tools available for free such as free website builder, free email marketing management tools, etc.

**Better return on investment**
On the one hand, DM helps you reach your customers while keeping costs low. On the other hand, it helps you save money for your business. The end result is a better return on investment for your business over time.
Multiple Polygons on google Map
Tags: android, mobile
Published: 2020-11-05 06:59:14

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/tkperc1luqo4ju0i8nbc.jpg)
Working on google maps nowadays for a client of our company. Client's requirement is to show multiple areas in which they are giving services. Each area has a specific store.
The challenge was to make sure the user location must exist within the area.

Once the user selects the area I have to make sure to select the store of that area as well. That was quite challenging for me.

Have you ever worked on Polygon stuff on google map? Share your experience.
Downloading Ubuntu onto Mac VirtualBox
Tags: ubuntu
Published: 2020-11-05 06:54:14

# Prerequisites

Already have VirtualBox installed.

# Procedures

Access the website for Ubuntu and click download: [website for Ubuntu](https://ubuntu.com/download/desktop/thank-you?version=20.04.1&architecture=amd64)

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

The iso file is about 3 GBs.

We will create a new VM once the file is downloaded.

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

We will name the VM Ubuntu-ns3, since I want to install ns3 later.

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

We will allocate 1024MB of memory to the VM.

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

Select create virtual hard disk.

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

Select VDI.

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

Select fixed size for storage on the hard disk.

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

I allocated 40GB for the size. The default is 10GB.

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

Now once we are back on this page, we press start.

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

Select the file we previously downloaded.

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

Follow the orders below.

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

Choose English as your language.

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

Choose normal installation.

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

Choose erase disk and install Ubuntu.

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

Press `continue`.

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

After you choose your location, the following should appear.

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

Wait a few minutes while the OS is being installed.

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

Finally, the welcome page will appear.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ingv2t53mna6pg771hrz.png)
Digital marketing and its importance

Published: 2020-11-05 06:41:36

**what is digital marketing?**

Digital marketing is a broad term that includes advertising, promoting, and building a company's online presence through digital platforms. Some of the digital tactics that are included in 'digital marketing' are digital advertising, [email marketing](https://www.propelguru.com/email-marketing/), content marketing, pay per click, online brochures, etc. Unlike other offline marketing efforts, digital marketing delivers accurate results in real-time. For example, if you place an ad in the newspaper, it is almost impossible to estimate the number of people who saw and paid attention to that page. With digital marketing, you can easily measure your ROI from any aspect of your marketing efforts. 

**Website Traffic:** As stated above, it is very difficult to understand how people interact with your brand through offline marketing. While online marketing helps you identify trends and patterns in how people behave with your brand. So you can come up with better strategies in the future to attract more and more consumers to the website. Not only that, with digital marketing, you get the exact number of people who viewed your website home page in real-time using digital analytics software. These statistics help you decide which digital strategies to continue and which to stop using.

**High visibility in search engines:** Search engine optimization is another powerful digital marketing strategy that offers a variety of benefits to business owners. As mentioned, there is stiff competition between brands in the market. When we search for a service in the search engine, we get hundreds of results. Naturally, we believe in the top five searches because they are the most trusted website links according to Google. So by optimizing your website content through digital marketing strategies, you can reach more buyers online.

**Content performance:** [Online marketing](https://www.propelguru.com/) allows you to estimate the performance of your content. Let's understand this with an example, imagine that you have delivered brochures and posters to another area of the company. The problem is, you don't know how many people opened these posters or threw them in the trash. Now imagine you have the same poster on your website. You can measure exactly how many people clicked on this poster, how many closed it, and the details of who clicked on the poster. This not only indicates how attractive your content is, but it also generates leads for your website.
How to convert Adobe XD to React Native?
Tags: explainlikeimfive, reactnative
Published: 2020-11-05 06:41:16

Hello

Since i'm (almost) a total beginner to mobile development, i wanted to know how to convert an Adobe XD design to React Native.

There are couple tools to do this kind of work, but this tools exports everything as "views", even if it's a button. Sure i can copy styling and recreate the button. But is this the right way?

Is there any post/video/tutorial or something that explains this subject "from zero to pro"? 

Thank you in advance
The Success Full Journey of The Dream Cake Academy
Tags: onlinecakemakingcalsses, onlinecakebakingcourse, cakemaster, cakeartist
Published: 2020-11-05 05:37:17

Who is Ashwini Sarabhai
Ashwini is an award-winning Cake Artist, born and brought up in the lovely city of Mumbai. An electronics engineer, Ashwini worked in the IT sector for a while before she entered the sweet world of Cakes.
In the Cake decorating and Baking field, she is trained by reputed institutes and experts in the industry in the USA. Her Venture “The Dream Cakes Academy” is where she creates designer cakes, conducts
workshops and <a href="https://thedreamcakes.com/">Online cake baking Classes</a>\workshops for Cake Decorating Art. She has been instrumental in training and educating the 1000s of artists.
She has always been an innovator and accordingly came up with India’s first <a href="https://thedreamcakes.com/">Online Cake Making courses</a> which helped many home bakers and artists who were not able to travel for in-person courses and at very economical cost.
She was also instrumental in launching Sugar Magazine, India’s first cake art magazine to showcase and promote the immense talent in India.
Diversifying and making use of her experience and knowledge, she has now entered into the product manufacturing segment and has successfully launched a first of its kind in the world, unique and versatile product named ShineLine. This is a Ready to use a metallic piping gel that aims at making work easy and brilliant for a cake decorator. This has been very well appreciated around the world.
Her creations have been featured in many National and International Magazines, websites, Newspapers, and TV Shows.
She is the proud Ambassador for India and Approved Teacher for the prestigious International Cake Exploration Society (ICES.org) headquartered in the USA.
AWARDS AND ACCOLADES
Winning the runner’s up in Students' wedding cake competition 2006 at the French Pastry School, Chicago, paving the way for Ashwini in the field of Cake Decorating.
Best in Division and Best in Category award at the New England Cake Show (Connecticut Cake Competition) in 2009 boosted her morale.
She has been awarded the Top 10 Cake Artist in India by Cake Masters Magazine, the UK for 2017 and also 2018.
She was also the finalist for 2 consecutive years in the prestigious Cake Masters Magazine Awards 2018 and 2019, aka Cake Oscars, in the Sugar Flowers Category.
She was also a part of the Judging panel for the first-ever Indian Cake Awards 2019.
Recently, she also was a big part of the Incredible India Welcome Display at the Cake International Show in Birmingham, UK. Her work had been highly recognized and appreciated by top artists around the world.

Our Top Baking Courses
<a href="https://thedreamcakes.com/">Online cake making courses for beginners</a>
<a href="https://thedreamcakes.com/">online cake baking classes for beginners</a>
<a href="https://thedreamcakes.com/">online cake baking school for beginners</a>
<a href="https://thedreamcakes.com/">online cake decorating classes</a>
<a href="https://thedreamcakes.com/courses/eggless-baking-101/">eggless cake baking classes online</a>