teleren/devto huggingface dataset:
Packaging nanime in Fedora COPR
Tags: uncategorized, anime, copr, fedora
Published: 2020-02-03 22:25:57

---
title: Packaging nanime in Fedora COPR
published: true
date: 2020-01-16 08:59:37 UTC
tags: Uncategorized,anime,copr,fedora
canonical_url: https://i3.ninja/packaging-nanime-in-fedora-copr/
---

Over the last summer of 2015, I’ve been watching anime as an enjoyable entertainment. To watch anime, it forces me to watch video by streaming “on browser”. I found it is very annoying since video player provided by video streaming services is very awful.

Recently, I created [nanime](https://copr.fedorainfracloud.org/coprs/didiksupriadi41/nanime/). I named it “nanime” because it currently only serves anime links from [nanime.yt](https://nanime.yt) and since there are no other programs using it. This program will fetch videos of each anime episodes, provided the anime URL from [nanime.yt](https://nanime.yt) is given.

In this article, I’ll cover and share how I…

- Created the RPM SPEC file
- Built the package in COPR
- Found mistakes

## Creating RPM SPEC file

I read about rpm packaging in [Fedora Packaging Guidelines](https://docs.fedoraproject.org/en-US/packaging-guidelines/). It’s a good guide, though I end up reading [rpm-packaging-guide](https://rpm-packaging-guide.github.io/rpm-packaging-guide.pdf) since it has PDF version. The reason is only because I have my phone everywhere so that I can easily read PDF without opening my browser.

Since nanime is implemented with bash, I can easily implement the SPEC file. Anyway, it’s a very simple application at the first place.

## Building package

First, I create the source package from SPEC file

```
rpmbuild -bs ~/rpmbuild/SPECS/nanime.spec
```

And then, I create the binary package

```
rpmbuild -bb ~/rpmbuild/SPECS/nanime.spec
```

Actually, I can also create both of them simultaneously

```
rpmbuild -ba ~/rpmbuild/SPECS/nanime.spec
```

Lastly, I can build my package in COPR service

```
copr-cli build nanime ~/rpmbuild/SRPMS/nanime-0.1-1.fc31.src.rpm
```

## Finding mistakes

### Fixing bugs

I didn’t test my code thoroughly before building the project in COPR causing a very hurtful slap on my face.

### Signing package

Even though adding GPG sign to a package is not a must, It’s a good thing to do and nothing to lose anyway. [rpm-packaging-guide](https://rpm-packaging-guide.github.io/rpm-packaging-guide.pdf) also gives a good case where Signed-package is very useful.
MystiQ Video Converter
Tags: video, converter, qt5, ffmpeg
Published: 2020-01-16 06:39:25

![Application screenshot](https://camo.githubusercontent.com/0d0302b940cd8665c5085696ea0a5c60c60be219/687474703a2f2f6d79737469712e73776c782e696e666f2f6d79737469712e706e67)
MystiQ is a multiplatform open source qt5/ffmpeg based video converter that can be found in https://github.com/llamaret/mystiq. 
We are looking for help on packaging for every platform as possible, and also translating. Code, comments and feedback are also welcome.
Ex AWS Engineers published an eBook about good parts of AWS
Tags: aws, azure, devops, books
Published: 2020-01-16 07:39:25

Daniel Vassallo and Josh Pschorr, ex AWS engineers with 15 years of combined experience recently published an eBook, [The Good Parts Of AWS](https://topitguy.com/AWSGoodParts), in such a short span of time, over 1540 copies of the eBook are already sold. 

Through this book, the authors want to make you realize about the AWS features you would be foolish not to use. The features for which you need not to look at external alternatives. Learn about 150 services and features the AWS platform offers.

Both Daniel and Josh have worked with AWS right from the time when AWS offered just 3 services and had no web console. 

So, do you already know about this book? If yes, let me know what you think. And, if you haven't read the book yet, consider looking at it today..
Top Programming Languages 2020 For Android App Development
Tags: android
Published: 2020-01-16 07:23:43

Technology has made our lives easier with several forms of implementation in different fields still, beginners in coding are always wondering which language they should invest learning/ working to get better learning experience.

With several <a href="https://codersera.com/blog/top-programming-languages-2020-for-android-app-development">programming languages for android app development</a> available to software programmers, picking an ideal one for a job can be quite tricky as we are living in an undeniably portable first world.

Android has the most gadgets, however, iOS has an increasingly rewarding business sector. What this implies for engineers is that there is a lot of interest to produce for the two stages, and you can’t generally turn out badly practising in any case.

Also, old programming languages become obsolete while new programming languages are launched, but they never gain traction. Practical knowledge of more than one language has helped data scientists, senior developers, and driverless vehicle engineers to excel in their profession.

It is an obvious fact that there are two major biological systems for versatile application development: Android and iOS.

Here is a <a href="https://www.computer.org/publications/tech-news/trends/programming-languages-you-should-learn-in-2020">list of Top programming languages for development 2020.</a>

<H2>FAQ:-What is required for mobile app development?</h2>
The Hard Skills: What to Learn
Java. The most basic building block of Android development is the programming language Java. …
SQL. …
Android Software Development Kit (SDK) and Android Studio. …
XML. …
Perseverance. …
Collaborativeness. …
Thirst for Knowledge.
Why do mobile apps crash?
Tags: ios, android, crashes, productivity
Published: 2020-01-16 04:29:36

Here are some of the common reasons why mobile apps crash.

1. Memory usage going beyond permissible levels. Solution is to ensure object reuse as much as possible. For example Table Cells can be reused to ensure the content that needs to be displayed at a given point in time is in the memory.

2. Memory leaks (stale objects hanging around). Make sure you use lists and static objects with care.

3. Unhandled exceptions. Make sure anticipated exceptions are handled properly.

4. Trying to access non-existent memory location. Make sure you have clear understanding of life time of the objects you create.

Well, how much ever testing you do it’s very difficult to cover all possible scenarios. This is much true in the case of mobile apps as they run in a variety of devices. Use tools like Crashlytics (Firebase Crashlytics | Crash Reporting to help you prioritize and fix stability issues faster (https://firebase.google.com/products/crashlytics) - for crashes), Finotes (Detect memory leaks, crashes, ANR, bugs in Android & iOS apps (https://finotes.com) - for crashes, memory leaks, memory usage issues, ANR, http issues), New Relic (New Relic | Deliver more perfect software (https://newrelic.com) - crashes, http issues) to capture bugs in live mobile apps so that you get to know them as and when it happens.
I made a Nuxt template for Nhost! 
Tags: templates, hasura, nuxt, graphql
Published: 2020-01-16 07:22:09

---
title: I made a Nuxt template for Nhost! 
published: true
description: 
tags: templates, hasura, nuxt, graphql
---

If you haven't heard, [Nhost](https://nhost.io/) is a really cool preconfigured Hasura instance, with authentication / file storage built in!

Think Firebase on GraphQL, with the plus of all being open source.

So if you're looking for the next backend for your [Nuxt](https://nuxtjs.org/) project, give Nhost a try!

You can use my template to get started:

{% github MarcelloTheArcane/nhost-template %}
Aware about one fraud ( new freelancer )
Tags: fraud, aware
Published: 2020-01-16 07:03:56

---
title: Aware about one fraud ( new freelancer )
published: true
description:In this blog. I will aware new freelancer. 
tags: fraud , aware
---

Hello, I told you one thing that happened with me. One day, I bid on one project that provided by "clara002". 

<b>She told me</b> 

"I have checked ur profile. Its very good and impressive. I think if i would award u this project u will do it very honestly & sincerely". 

<b>I told him</b> 

"okay i would provide good work".

<b>She told me</b> 

"hey thanks for showing interest as you know well its very hard to find job with new freelancer account. In this deal you got review plus profit
review helps your profile to boost up your freelancer carrier. I need some positive review with 5 star from you to my profile and gives you same. I am seller of reviewed account. I have to show big projects and financial transactions to buyer for good prize. we start with small amount for trust and go for big.the details of deal mentioned below

please read carefully before start"  

<b>I told her</b>

 "Okay please provide details about work".

<b>She told me </b>

"
first deal 5000 INR 
you got 4500 INR after fees
payback amount 2250 INR

payback mode paytm and google pay or upi

you have to payback after release in your freelancer wallet

(after that successful deal we go for bigger as much as you are ready)

the amount goes bigger for 2nd deal once we complete this first deal.

thanks

make sure when i release fund in your freelancer account after that you have to pay back half  by paytm 
after that we move for 5 star review "

<b>I told him again</b> 

" Please provide details of project"


<b>She told me</b>   

"
i dont need any work from your side

just provide positive review with 5 star

half is yours in every deal

and send half money back what you got finally
"


Note: If Someone gives you these type of project then don't take these project.
because they will only fraud with you. you will not get any type of money.

<h2> Please aware these type of fraud and help to share this more. That who is new freelancer.  " BE the person not a victim of fraud " </h2>
Connect to postgresdatabase with JAVA
Tags: java, postgres, oop, sql
Published: 2020-01-16 06:48:07

Feel free to put variables and dbConnection() in another class.


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/*
* Need library Postgresql -> installed in library 
* Simple connection to postgres
* https://www.tutorialspoint.com/postgresql/postgresql_java.htm
*/

public class DatabaseConnection {

    Connection connection;
    String url = "jdbc:postgresql://localhost:5432/databasename";
    String user = "username";
    String password = "yourpassword";

    public static void main(String[] args) throws ClassNotFoundException {
        DatabaseConnection db = new DatabaseConnection();
        db.dbConnection();
    }

    public Connection dbConnection() {
        try {
            Class.forName("org.postgresql.Driver");
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(DatabaseConnection.class.getName()).log(Level.SEVERE, null, ex);
        }

        try {
            DriverManager.getConnection(url, user, password);
            JOptionPane.showMessageDialog(null, "connected");

        } catch (SQLException ex) {
            Logger.getLogger(DatabaseConnection.class.getName()).log(Level.SEVERE, null, ex);
            JOptionPane.showMessageDialog(null, "Failed to connect");
        }
        return connection;
    }

}
Stories of Form - First story
Tags: finalform, react, reactnative, code
Published: 2020-01-16 06:47:51

## Table Of Contents

* [Most Simple Form](#chapter-1)
* [Various Field Types](#chapter-2)


## Most simple form <a name="chapter-1"></a>
A form has 1 main feature is collecting data from users. To achieve that, a form should have at least 2 abilities:
- Displaying input fields
- Collecting inputted data

The most simple form should be declared like bellow:

```js
import React from "react";
import { Form, Field } from "react-final-form";

export default function SimpleForm() {
  const handleSubmitData = values => {
    console.log("form values", values);
  };
  return (
    <Form onSubmit={handleSubmitData}>
      {formProps => {
        const { handleSubmit } = formProps;
        return (
          <form onSubmit={handleSubmit}>
            <Field name="name" component="input" />
            <button type="submit">Submit</button>
          </form>
        );
      }}
    </Form>
  );
}
```

- Input fields are represented by `<Field>` component
- When users submit the form, all inputted data are collected and passed to the `handleSubmitData` function in `values` parameter

*Note*

At the first look, `final-form` syntax seems confused because of `Form` and `form`, `handleSubmit` vs `onSubmit`... but I think we can survive with it.

## Various Field Types <a name="chapter-2"></a>

The next request for a Form library is the ability of represents various field types: text field, text area, checkbox, select,...

`final-form` gives you this power by providing **4** ways to render a field.

#### Rendering with native component

```js
<Field component="input" name="age" />
```

#### Rendering with custom React component

```js

const InputField = ({ input, meta, label }) => {
  return (
    <label for={input.name}>
      {label}
      <input type="text" id={input.name} {...input} />
    </label>
  );
};

<Field name="lastName" component={InputField} label="Last Name" />
```

#### Rendering with the `render` method

```js
<Field
    name="hometown"
    render={({ input, meta }) => {
    return (
        <div>
        <label for="hometown">Home Town</label>
        <input id="hometown" type="text" {...input} />
        </div>
    );
    }}
/>             

```

#### Rendering with the `children` element

```js
<Field name="gender">
    {({ input, meta }) => {
    return (
        <select name={input.name} {...input}>
        <option value="F">Female</option>
        <option value="M">Male</option>
        </select>
    );
    }}
</Field>

```


[Next story: Stories of Form - Validation](https://dev.to/ducva/stories-of-form-validation-i4o)
Open-Source UI library for Flutter
Tags: flutter, opensource, javascript
Published: 2020-01-16 06:25:14

Hey everyone,

We launch our Flutter open-source library. Check more details on GitHub repo https://github.com/ionicfirebaseapp/getwidget

And kindly share your feedback to us to updates our library.

If you would like to read details about the GetFlutter component and how to start then you can check out our documentation here https://docs.getwidget.dev/
Learn Free Excel Course to grow your career
Tags: freeexcelcourse, freeexcelcourseonline, bestexcelcourse, freeexcelcourseforbeginners
Published: 2020-01-16 05:23:47

Excel was primarily used to organize data. It is very important for a company to analyze the data to perform the valuation of the company. Before the advent of any other software, MS Excel was the hero and an only tool to help in organizing data to perform analysis.
We live in an era now where data has grown extensively. With the growth in the amount of data, its organization and proper analysis also became most important. Thus, the knowledge of Excel and the scope of Excel tricks and tips grew abundantly.
You can access your files anytime from anywhere in the world. This helps in providing comfort in working with MS Excel. You can access your files from laptops, tablets and even mobile phones.
Thus, this <a href="https://yodalearning.com/courses/free-excel-course-online/">Free Excel Course</a> is the best solution for all your data-related problems. It even helps you in learning important uses of Power Point too. Thus this Free Excel Online Course is great to enroll in.
What the benefit immutable on the state management?
Tags: javascript, typescript, react, discuss
Published: 2020-01-16 05:16:18

---
title: What the benefit immutable on the state management?
published: true
description: 
tags: #javascript #typescript #react #discuss
---

Many React forks has interested immutable like Immer but I don't understand what the benefit immutable on the state management.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/ky2iic4ncmfg4t9bvkh9.png)

Application state is fundamentally mutable for handle user interaction etc.

I guess some forks using immutable solution without technical reason like cargo cult.
But I want to know those certainly use cases, so I'm glad to feel free comment your usage if any immutable solution user read this article! 🤗
Algorithms & Data Structures: Resource Pack
Tags: beginners, computerscience, opensource, programming
Published: 2020-01-16 04:43:20


So this time I am sharing a valuable resource for those who are willing to work with algorithms and data structures.

Many of us are already known to this one, but for the sake of beginners and those who have not yet explored it:

##[The Algorithms on GitHub](https://github.com/TheAlgorithms)

**These algorithms are implemented in more than 15 languages.**

You can use these repos to learn the concepts easily. I found these to be most optimized and well documented.

Also, those who love to work in open source world can contribute to these helpful resources.

My favourite one, with more than 20K stars is:

{% github https://github.com/TheAlgorithms/Java %}

Cheers 🥂
Good Monitoring Answers Questions
Tags: devops, management, productivity, codequality
Published: 2020-01-16 04:34:35

I recently had to do a proposal for our Kubernetes monitoring solution. Kubernetes is a tricky beast, especially with Prometheus because there is *so much information*. I was daunted by the amount of effort and understanding I'd need to begin on the task, and it took me a few days to actually open the ticket.

After reading through a lot of articles on Kubernetes monitoring, I knew the answer to my question wasn't going to be a simple one. As I stared at the space above my monitor, pondering the question, a thought struck me. It was simple, but what if I just wrote down all the questions I needed answered by my monitoring and *then* got all the appropriate metrics. In every job I've ever had, it's always been "monitor x, y, and z", but never "tell me when this isn't working properly."

I started off my question chain as follows:
1. Can my pods be scheduled?
2. Are there nodes available to schedule pods?
3. Are there resources available on my nodes?
4. Are my pods running as expected?

If I can answer each of these questions in the affirmative, then I can generally expect that a service is running correctly. Likewise if I ask questions for each layer (hardware, control plane, nodes, services, ingress, etc) and those answers are in the negative, I can understand cascading dependencies on my compute, advising customers and mitigating an outage as much as possible.

Actually getting the metrics to answer these questions was super easy. I just opened up the Kubernetes Dashboard and checked the places where I could check if I was manually fixing the issues. Then, I simply noted them and created Prometheus Alarms for them. It's that easy.

Have a good process, and good results will follow.
Probabilistic Programming Using TensorFlow Probability
Tags: python, machinelearning, tutorial, beginners
Published: 2020-01-16 03:29:48

## What is Probabilistic Programming

TensorFlow Probability (TFP) is a Python library built on TensorFlow that makes it easy to combine probabilistic models and deep learning on modern hardware (TPU, GPU). It's for data scientists, statisticians, ML researchers, and practitioners who want to encode domain knowledge to understand data and make predictions. 

Probabilistic programming allows us to encode domain knowledge to understand data and make predictions. TensorFlow Probability (TFP) is a Python library built on TensorFlow that makes it easy to combine probabilistic models and Deep Learning. With TensorFlow 2.0, TFP can be very easily integrated into your code with very few changes and the best part - it even works with tf.keras!

This talk will teach you when, why and how to use TensorFlow probability.

{% youtube -5Sy0exrtXY %}
What is the deepest number of ssh tunnels you have gone to?
Tags: watercooler
Published: 2020-01-16 01:50:09

At work, to do any manual inspection in the "backend" server for one of my projects I have to ssh into the "frontend" server first.


```sh
home~$: ssh -A paul@frontend
frontend~$: ssh backend
backend~$: |
```

This is only two layers deep, but it made me wonder how far people have had to go in their day-to-day work in order to work with their projects.

So, what's the deepest number of ssh tunnels you have gone up to? Why did you have to do it?
JS in CSS
Tags: javascript, css, webdev, tutorial
Published: 2020-01-16 01:49:33

While everyone is talking about CSS in JS, what if we look at how to do JS in CSS? Because yes it is possible! Is that a good idea? Jean-François is not sure about that, but why not come and relax on this technical and fun session.

{% youtube 6FsG-oLj3kg %}
JavaScript vs C++ vs WebAssembly: Speed, Speed, Speed
Tags: javascript, webassembly, webdev, c
Published: 2020-01-16 01:45:15

In Node.js, we can use WebAssembly modules and native C++ addons. If your app has performance critical parts, should you stay in JavaScript? Or write a native C++ addon? Or use WebAssembly? Let’s have a look at how these options compare performance wise and which one is best for different workloads. So the next time you need to optimize for speed, you know your options.

What’s happening under the hood at the compiler level in JavaScript? In this keynote session, Franziska Hinkelmann talks about JavaScript compilers specifically and see how modern JS performance compares to C++ performance. Then, see where WebAssembly fits into this performance story. The concepts that Franziska Hinkelmann will show you are fundamental JS concepts and they apply no matter what framework you are using – so doesn’t matter if you are using Angular, Node.js or anything else.

Moreover, as we go through this journey, the questions like how can dynamically typed JS be so fast, when it became faster than before will be answered as well.

Franziska Hinkelmann spoke at CovalenceConf 2019 about how JavaScript stacks up against C++ and WebAssembly, what kind of code is actually fast, and the performance considerations one should account for when building apps with web technologies.

{% youtube zhO-gRTRD9Q %}
Write a test case in 6 minutes | QA Assessment for beginners (video)
Tags: qa, career, testing, webdev
Published: 2020-01-16 01:36:57

---
title: Write a test case in 6 minutes | QA Assessment for beginners (video)
published: true
description: In this six minute video you'll learn how to write a basic test case. 
tags: qa, career, testing, webdev
---

In this video, my guest is full-stack QA engineer Rachel Nicole. 

Today she's demonstrating how to write a simple test case. She also explains what a test case is, the components of test cases and why you would want to use them. You'll learn how to write a simple test case for a basic login function. 

Thank you Rachel Nicole for sharing your knowledge! 

[![Write a test case in 6 minutes || QA Assessment for beginners](https://i.ibb.co/10h1Q63/https-i-ytimg-com-vi-6-Mv-EKux-JNk-maxresdefault.jpg)](https://youtu.be/6Mv-EKuxJNk "Write a test case in 6 minutes || QA Assessment for beginners")