teleren/devto huggingface dataset:
In app Purchase not working in open testing in android.
Tags: android, java
Published: 2021-11-15 06:00:22

Hi,

I have implemented in app purchase in my android app, when I run in debug mode it works fine. but when I upload to open testing it doesn't even open the dialogue box to make the payment. Also, I ran released version apk and attached debugger and found out that the product id is invalid whereas in debug it recognises fine.

thank you
Signing apk with .p12
Tags: android, applicationdevelopment, mobileapps
Published: 2021-11-15 05:46:45

#### Can I release an android apk using .p12 file? I don't have keystore file?

Regarding this question, developing Android applications for more than 7+ years my answer was **NO**.

##### What is .p12 file?

A *P12* file (a file with a .p12 extension) is a type of certificate file (a Personal Information Exchange file). The Packager for iPhone uses this type of certificate to build an iPhone application. You convert the developer certificate you receive from Apple into this form of the certificate. So, a .p12 file is for iOS development.

After answering this question in StackOverflow I got to know you can use .p12 file as well to sign an android apk.
Let's jump to procedure to convert your .p12 file to jks file.

Create an empty JKS store
```keytool -genkey -alias anyname -keystore yourcertificate.jks keytool -delete -alias anyname -keystore yourcertificate.jks```

Import yourcertificate.p12 into yourcertificate.jks

```keytool -importkeystore -srckeystore xxxx.p12 -destkeystore xxxx.jks -srcstoretype pkcs12 -deststoretype jks -srcalias xxxx_alias_name -destalias xxxx_alias_name```

In some cases you might need to define -destkeypass
otherwise jks file won't password on the key and studio may look for password generating an error.
Add Tests to Project
Tags: testing, unittest, pytest
Published: 2021-11-15 05:33:35

### Overview

The job of this week was to manage project complexity through the use of Automated Testing. Writing test cases, from unit test, integration test, to test driven development (TDD), is very important. Without any tests, code will be broken, and no one has any way to know it.

To assure ourselves and others that our software works, we write automated tests. These are programs that automatically run certain inputs through other programs or parts of programs. 

Python tests rarely check types. They check values.

### Pytest for unit testing
Unit tests focus on testing the least amount of code possible in any one test. Pytest uses the `assert` statement to verify results. This makes tests simpler, more readable, and, consequently, easier to maintain. When we run `pytest`, it starts in the current folder and searches for any modules or sub packages with names beginning with the characters `test_`, (Including the _ character.) functions start with `test`, classes start with `Test`, and folder named `tests`.

### SSG (static site generator) project

Thus, in this work, first, I refactored the project again to have a `tests` subfolder, and all [other changes to setup](https://github.com/Qiwen-Yu/TextHTMLPress/commit/20c8077da88a1677e623006bbdf16ed939c0168b) a better framework of the whole package for testing. Moreover, the corresponding *contributing.md* was also modified.

Finally, [test cases](https://github.com/Qiwen-Yu/TextHTMLPress/commit/8c864d903654f324f792435fc7d75d7318cf935d) were written to test core functionality of SSG, including `get_title` and generating `.html` from `.txt` files. With the help of unit test cases, the original code was updated to have a better format of html page.
Multiprogramming in operating system.  
Published: 2021-05-04 16:53:42

So In this tech - blog, we will learn about exactly what is the meaning of the term "multiprogramming: multiprocessing: multitasking".


##Multiprogramming :


A process executing in a computer system mainly requires two things i.e. CPU time and I/O time. The CPU time is the time taken by the CPU to execute a process and I/O time is the time taken by the process for I/O operations such as some file operation like read and write. Generally, our computer system wants to execute a number of processes at a time. But it is not possible. You can run only one process at a time in a processor. But this can result in some problems.


#example:

Suppose we have a single processor system and we have 5 processes P1, P2, P3, P4, and P5 that are to be executed by the CPU. Since the CPU can execute only one process at a time, so it starts with the process P1 and after some time of execution of process P1, the process P1 requires some I/O operation. So, it leaves the CPU and starts performing that I/O operation. Now, the CPU will wait for the process P1 to come back for its execution, and the CPU will be in an idle state for that period of time. But at the same time, other processes i.e. P2, P3, P4, and P5 are waiting for their execution. Our CPU is in an idle state and this is a very expensive thing. So, why keep the CPU in the idle state? What we can do is, if the process P1 wants to perform some I/O operation then let the process P1 do the I/O job and at the same time, the CPU will be given to the process P2 and if the process P2 also requires some I/O operation, then the CPU will be given to process P3 and so on. This is called Context Switching. Once the I/O work is done by the processes then the CPU can resume the working of that process(i.e. the Process P1 and P2) and by doing so the CPU will never go into the idle state. This concept of effective CPU utilization is called Multiprogramming.


#Main task is we should not let CPU sit like idle. 

 Thank you : )
Install Emacs 27.2 on openSUSE LEAP 15.3 from a source tarball
Tags: emacs, opensuse
Published: 2021-11-15 05:15:15

---
title: Install Emacs 27.2 on openSUSE LEAP 15.3 from a source tarball
published: true
description: 
tags: emacs,opensuse
---

## Install pre-requisited tools

```
sudo zypper install make gcc automake autoconf libtool aclocal wget
sudo zypper si -d emacs
```

## Download Emacs source tarball

```
wget https://ftp.gnu.org/pub/gnu/emacs/emacs-27.2.tar.gz
```


## Extract and change directory

```
tar xzvf emacs-27.2.tar.gz
cd emacs-27.2
```

## Generate makefiles

```
./configure --prefix=/opt > log
```

## Make

```
make -j `nproc`
```

## Install

```
sudo make install
```

## Add path

Add the line below to ~/.bashrc by nano ~/.bashrc

```
export PATH="/opt/bin:$PATH"
```
OCTOBERFEST AFTERMATH
Tags: hacktoberfest, opensource
Published: 2021-11-15 05:15:05

Truth be told, this Hacktoberfest was my 1st ever HACKOTOBERFEST hackathon but the things I have learnt are way too surprising..I just can't believe it happened.

Thanks alot Hacktoberfest,am rapidly learning more about the strength of Opensource and crazily transfiguring into an opensourcer_haloic 😜😜😜
Headless CMS using Github Issues and Github Actions
Tags: actionshackathon21, github, opensource
Published: 2021-11-15 05:04:35

---
title: Headless CMS using Github Issues and Github Actions
published: true
description: My submission to the GitHub Actions x DEV Hackathon 2021!
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c60dg8rhaqzdugd2vemk.png
tags: actionshackathon21, github, opensource
---

### My Workflow

> Headless CMS using Hugo, Github Issues and Github Actions.

Every time a new issue is created, a new post is created as well.

- _main_ branch holds the content in markdown format. See `content` folder
- _gh-pages_ branch contains the distributable html site.

### Submission Category: 

Maintainer Must-Haves & DIY Deployments


[Instructions]: # (To submit to the GitHub Actions x DEV Hackathon 2021, please fill out all sections.)


[Note]: # (Please make sure the project links to the appropriate GitHub Actions repository, and includes [an open source license](https://choosealicense.com/) and README.)


### Yaml File or Link to Code

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)

{% github https://github.com/oscarnevarezleal/gh-cms %}


### Additional Resources / Info

[live demo](https://oscarnevarezleal.github.io/gh-cms)

Create a new post by submitting a [new issue](https://github.com/oscarnevarezleal/gh-cms/issues)

#### Tech

- Hugo
- Github Actions

#### Github actions

- actions/checkout@v2
- peaceiris/actions-hugo@v2
- stefanzweifel/git-auto-commit-action@v4
- oscarnevarezleal/ngrok-tunneling-action@dev
My week three experience as an intern at TaskForce4.0
Tags: database, sql
Published: 2021-11-15 04:59:02

### Introduction
I wish I had had such an experience before back in 2017. and you must be asking yourselves why I said this? back in 2017 was the year I truly focused on practicing software development. So guys in this article I will talk about entity relationship diagram and team culture as well as communication.

Yeah being a back-end developer is not an easy task if you don't have a team and a good working environment such as the one at [Codeofafrica](https://www.codeofafrica.com/EN) and [Awesomity](https://awesomity.rw/) lab. In 2017 I used to learn something from the internet and think of the project to implement and all I could do was to go straight and start coding the project but this is a hell of time-wasting. during the development, I could come across my excitement and start doing things I never have done like implementing meaningless features, repeating myself over and over, Ohhhhh poor boy. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pobi2bmu42nsfn7uz5ox.png)
Having a better understanding of the project is the primary need before you start working on any project. After event storming our project, we ended up with the diagram commonly known as an entity-relationship diagram that defines the entities, attributes of each entity, types of each attribute, and relationships among entities. this at the end is what we call the data center of the project. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dg1pu75vsvi1oj316b76.jpeg)
People have different cultures and different behaviors from which in a blick of an eye someone's behavior can ruin the team. So it is good to have a common culture, shared values within the team to better drive the team toward victory. the fact that at Taskforce we don't only code and do more stuff of software development, we do also engage in team culture building to learn and keep good spirits in the team. This was the fun part of this week.
Build Responsive Dashboard Using JavaScript HTML CSS
Tags: javascript, beginners, html
Published: 2021-11-15 04:49:47

## Using HTML CSS & JavaScript, we can create a professional looking responsive dashboard admin page.
This **responsive dashboard** will have sidebar for all the menus & a interface for detailed view. The sidebar will be hidden in smaller devices & will have a toggle menu bar to enable the sidebar. Pretty cool right?

**Lets create a responsive eye catching dashboard using HTML CSS & JS.**
{% youtube g6HqL18plx4 %}

More JavaScript?
### Ecommerce Product Search Engine Using JavaScript.
{% youtube ZFUOC-y4i0s %}

### Responsive Testimonials Slider With JavaScript.
{% youtube 5cO5Xf4QVPY %}

**Previous Posts:**
{% embed https://dev.to/fahimulkabir/build-7-pages-complete-responsive-educational-website-using-html-css-javascript-353o %}
{% embed https://dev.to/fahimulkabir/9-responsive-website-tutorials-with-html-css-javascript-bootstrap-step-by-step-56ng %}
{% embed https://dev.to/fahimulkabir/how-to-make-a-website-with-bootstrap-step-by-step-bootstrap-tutorial-1i5d %}

**Feel free to visit my YouTube channel:
[@Tech2etc](www.youtube.com/tech2etc)**

**Follow me on Instagram where I'm sharing lots of useful resources!
[@fahimulkabir.chowdhury](https://www.instagram.com/fahimulkabir.chowdhury/) 😉**
Top 3 stock images source for developers and designers
Tags: stockimage, imageresource, unsplash
Published: 2021-11-16 15:29:01

---
title: Top 3 stock images source for developers and designers
published: true
date: 2021-11-15 04:00:00 UTC
tags: #stockimage #imageresource #unsplash
canonical_url: https://postsrc.com/posts/top-3-stock-images-source-for-developers-and-designers
---

Stock Images is very important and it's used for many things from Designing, Web user interface assets, and many others. Below are the top 3 places where you can get these stock images for free and in high definition. You can use it in most of your projects for free with an exception which is to include and add credit when using the image.

The list below goes from the most popular one but regardless of that, all of them have many high-quality photos.  

[This post was originally published at PostSrc 🔥🔥🔥](https://postsrc.com/). If you like this kind of tutorial, I would really appreciate it if you give it a visit.

[![Unsplash Homepage](https://postsrc.com/storage/jo6ZSyTER7BHNIgAdVmckIkXam2lB8IEu9wG2l9y.png)<figcaption>Unsplash Homepage</figcaption>](https://postsrc.com/storage/jo6ZSyTER7BHNIgAdVmckIkXam2lB8IEu9wG2l9y.png)

[**Unsplash**](https://unsplash.com)

Unsplash has been around for some years and it's by far the largest collection of free stock images that's available on the internet. You can search almost anything or search it by category. It's also very convenient that they allow us to manipulate the image before downloading which means the image can be optimized before even downloading it.  

[![Pexels Homepage](https://postsrc.com/storage/gnUZ7jPGJxNwjrUny60WOlWfP9CETgCfj9rATAGz.png)<figcaption>Pexels Homepage</figcaption>](https://postsrc.com/storage/gnUZ7jPGJxNwjrUny60WOlWfP9CETgCfj9rATAGz.png)

[**Pexels**](https://www.pexels.com)

The second on the list is Pexels, Which also provides many free stock images like Unsplash but it's just another platform. One thing that Pexels has is advanced image filtering and one of them is filter by color.  

[![Pixabay Homepage](https://postsrc.com/storage/5B5U8oILkdinSIcE8eZtzFq59NaVaB3XIqoiBt8U.png)<figcaption>Pixabay Homepage</figcaption>](https://postsrc.com/storage/5B5U8oILkdinSIcE8eZtzFq59NaVaB3XIqoiBt8U.png)

[**Pixabay**](https://pixabay.com)

The last on the list is Pixabay and this is pretty much like Unsplash and Pexels. They have more than 1.8 million high-quality stock images.

  
Do mix and match these sources and make sure to credit the image to their owner if you are using it. Do let us know which other stock images collection in the comment below.
Install old Erlang and Elixir version with asdf
Tags: asdf, elixir, erlang
Published: 2021-11-15 03:34:44

Last weekend, I installed old Erlang and Elixir version on my Mac and faced some issues that took me some time to research and resolve. I think I should share my experience here to help you saving your time if you encounter the same issues as me.
Firstly, what is asdf and how to install multiple versions of Erlang and Elixir using asdf. I read some posts that are really helpful but this one seems to be the best: https://thinkingelixir.com/install-elixir-using-asdf/

In summary, you need to do the following steps:
1. Install asdf (using homebrew, zsh plugin...).
1. Add erlang plugin to asdf. Asdf uses plugins to manage libraries.
1. Install the desired erlang version. Asdf will checkout erlang code and build this library on your machine. Problems come from here, I will explain on [the issues section](#issues) below.
1. Add elixir plugin to asdf.
1. Install the desired elixir version.
    > Notice that each Elixir release has multiple versions compiled with different major versions of Erlang/OTP. To maximize compatibility between Elixir and the Erlang runtime, choose a `1-otp-XY` version that matches the major version of the runtime you installed in the previous step. For example:
    ```
    asdf install elixir 1.11.2-otp-23
    ```
1. Set global (used for your whole computer) and local (used for specific directory) version.

## Issues
1. When building erlang on your machine, you may encounter errors showing that cannot run some `make` commands. These issues are caused by the newest `autoconf` library version, a dependency of asdf. To solve this, please remove `autoconf` and then install it manually as the instruction in this link https://github.com/asdf-vm/asdf-erlang/issues/195#issuecomment-815999279
1. Cannot compile project after downgrading Elixir and Erlang. With this issue, please do some cleanups and then recompile the project:
    ```
    rm -rf _build
    mix deps.clean --all
    mix clean
    mix deps.get
    mix compile
    ```
1. ElixirLS does not working. In my case, the newest ElixirLS version is 0.8.1, is not compatible with the installed Elixir version 1.10.3. So what I did is downgrade the ElixirLS to version 0.7.0:
    ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vr12h3b8a3xwg4v22ehc.png)

Good luck!
How To Check Email Already Exist Or Not In Laravel
Tags: laravel, php, email, webdev
Published: 2021-11-15 03:23:16

In this post we will see how to check email already exist or not in laravel. when user register with duplicate or exist email id at that time it is very difficult to maintain data or records in database so we will check email exist or not using email already exist validation in laravel, if email already register with same email id then we will display error message to user like email already exists.

Here I have created controller and added below code in my controller for how to check if email already exists in database in laravel.
Drawing an animated 3D store front with CSS
Tags: css, html, webdev, codepen
Published: 2021-11-15 02:50:37

---
title: Drawing an animated 3D store front with CSS
published: true
description: Drawing an animated 3D store front with CSS (with video and demo)
tags: css,html,webdev,codepen
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i3c0x6k0j0vg1mo5b1te.png
---

This past few weeks, I have been playing with 3D CSS and creating animated 3D demos (like this [paper plane](https://codepen.io/alvaromontoro/full/vYJjNOB) or a [single element dice](https://codepen.io/alvaromontoro/full/dyzggdp)). This weekend I started coding a [3D version of a store](https://codepen.io/alvaromontoro/pen/rNzZgLg) and completed the outline. There are still many parts missing in the interior, but the exterior is (kind of) complete:

> This demo is a fork of the original linked above, so it doesn't change as I add more things to the original demo.

{% codepen https://codepen.io/alvaromontoro/pen/dyzgrdd %}

Some decorations on the wall will be interesting, and furniture (on twitter I got some interesting suggestions: maybe a counter and a table with chairs? an arcade machine? some posters?) I will be working on that soon. 

I have been recording the whole process in order to share it later on [my Youtube channel](https://www.youtube.com/c/AlvaroMontoroCSS). The demo is still incomplete, but here's a time-lapse of the progress so far:

{% youtube 7Ggk7N5a7-Q %}
Easy use of F-Strings with Python.
Published: 2021-11-15 01:48:12

#F-Strings#
Here, I am going to jump straight  to printing out strings with Python. Take a look at this code using place holder format method. 

```python
    first_name = 'sam'
    last_name = 'sonter'

    intro = "My name is {} {}".format (first_name,last_name)
    print(intro)

    output:  My name is sam sonter
```

 

Python can also allow us to use the F-String to get same output. Check this out.

```python
    first_name = 'sam'
    last_name = 'sonter'

    intro = f"My name is {first_name} {last_name}" 
    print(intro)
   
    output:  My name is sam sonter
```

I got rid of the **format** method and introduced the **F** string. I now put the variables inside the placeholders making the block of code easier to understand.

Now, I am going to use a dictionary in the next example.

```python
    person = {'name': 'Sam', 'height': 188}
    sentence = "My name is {} I am {} cm tall".format(person['name'],person['age'])

    print(sentence)
``` 
The next example is pretty much the same with the first one except here we are using a dictionary. Now, let's use the **F** string.

```python
    person = {'name': 'Sam', 'height': 188}
    sentence = f"My name is {person['name']} I am {person['height']} cm tall"

    print(sentence)
```
    
Many people might make syntax errors by using the wrong quotes. If you pay attention you can see i used double **"**  outside my statement and single **'** inside the statement to avoid syntax errors. 

  That is it for this article, thanks for reading and I hope you find this useful.
*Sam Sonter*
Recommend A  Coding Podcast
Tags: podcast
Published: 2021-11-15 00:41:55

Being a newbie to coding, I recently dived into the coding podcast hole. There are technology and terminologies that I don't understand or need more information about, but it's hard to read or find that information. I believe that podcasts about coding will help and guide me in the tech field. Below are some of the podcasts that I am current or have listened to:

###CodeNewbie
CodeNewbie has been my favorite coding podcast so far. The podcast focuses on guest's coding journey. 

#####How to transition into development after over a decade in your field (S17:E6)
I found this episode to be pretty relatable. I've been in my field for over 5 years now and I'm trying to make the switch over to tech. Hearing a nurse talk about graduating from a bootcamp and entering the tech field gave me hope and I ended the episode with new insight and advice. 

#####What you should know about frontend development (S16:E8)
While looking for a job, I'm debating whether I want a frontend, backend, or full-stack position. Listening to this episode gave me some insight on what a frontend developer does, which was very enlightening.

#####What failing technical interviews can teach you (S16:E6)
As someone who is actively applying for jobs right now, but I haven't had an interview yet, I'm nervous as heck about my first tech interview. Listening to someone with a CS degree and background talk about failing interviews and struggling really helped me get some "peace of mind." Tech interviews aren't easy, even for CS majors, so I shouldn't stress TOO much.

###Learn to Code in One Month
Learn to Code in One Month is a podcast for beginners who want to learn to code, but don’t know where to start. 

#####Front-end vs Back-end Developers | What's the difference?
Similar to the CodeNewbie episode, "What you should know about frontend development", this episode allowed me to get some insights on frontend vs backend developing. 

#####How I Got Hired at GitHub, Interview Tips, and Salary Negotiation with Joel Califa
This episode did not give me a lot of tips or insights, but I did thoroughly enjoyed the episode. The episode allowed me to hear a journey that wasn't similar to mine at all. It gave me more perspective about the tech field.

###Recommendations?
I just dipped my feet in the coding podcast water, so I would love any recommendations for another coding podcast. I still have a lot to learn and podcasts are a great way to do that. Please comment below some of your favorite podcasts!