teleren/devto huggingface dataset:
Finding myself.
Tags: career, growth, junior, ux
Published: 2021-01-13 07:58:25

#First Start 
  Started my journey into software development around this time last year. My first language was **python**; my intentions were all around learning AI (artificial intelligence). The experience was mixed, on some days I was excited about all the syntax and concepts, and on other days I was ready to give up. 

```
print "Hello World"
```

#Trickle down
  After patchy relationships with tutorials and guides, I thought maybe I should try something else. **Figma** was my door to UI/UX design. 

I loved it. Designing was never a route I envisioned at a younger age (because I hated drawing in school) but I did have great respect for those that adored it. For a chance to play with px, strokes and fills, I started to build familiarity. Colours and shapes expanded my curiosity into learning more about graphic design, User experience and design. I had to try Adobe products like Photoshop, Illustrator and After Effects too.

#Settle 
  It is quite difficult to find exactly what to accept as a career path. I am still on a journey to become the best that I can be whether it means learning Java, JavaScript, Python, React and Flutter. 

I am a newbie [designer](https://www.behance.net/namiji) on a learning journey to design and code solutions for others while sharing and collaborating on that journey. 

> “Find your own sweet spot, take your talents and enjoy them, share them and expand them “
-Kofi Awoonor
What online image sharing service do you use?
Tags: discuss, image, sharing
Published: 2021-01-13 07:48:36

---
title: What online image sharing service do you use?
published: true
description: 
tags: discuss, image, sharing
cover_image: https://sg.canon/media/image/2020/02/13/63c176824d024be0830e6405ac834e65_Picture1-1170-300-transparent.png
---
I'm dealing with lots of screenshots often for my blog and looking for a great service where I can store these images online.

For capturing I use ShareX and it supports Imgur (currently use), ImageShack, Flickr, Photobucket, Google Photos, Chevereto, etc...

The main consideration would be available space. Maybe you are aware of some services that offer some generous free plans for this?
What is Artificial Intelligence?
Tags: ai, machinelearning
Published: 2021-01-13 07:39:04

When we first hear about artificial intelligence, it’s robots that have come to our mind. Then what is Artificial intelligence? Artificial intelligence as known as AI enables for robots to learn from experience, to adapt to new experiences, and to perform tasks of human nature.

> “Artificial intelligence, sometimes called machine intelligence, is intelligence demonstrated by machines, in contrast to the natural intelligence displayed by humans.” ~wikipidia

Nowadays, everyone is using a smartphone. Siri in iPhones, google assistant in android is using this artificial intelligence. AI is used to filtering news in the most popularly used application — Facebook. And also google search engine using the same technology for filtering results. Artificial Intelligence is evolving quickly from these things to immense creatures like self-driving cars.

Deep blue was manufactured by IBM, and that is the first computer to win chess in 1996 against the world record holder, Garry Kasper.

Over time AI is capable of learning from errors, make them and move on. That’s how deep blue could win the competition in 1996. In late 2017 the team at Cornell University unveiled AlphaZero, which uses artificial intelligence to play chess, Go(Baduk), shogi(Japanese chess). In each case, it may be beating a world-champion program.

AI is a fully human being who operates without the influence of other humans. A lot of things can be done using AI. Did you know that AI is capable of producing music without human help? Yes, it can!

# How does Artificial Intelligence work?

Data is fed (input) into the computer’s artificial neural network and output data, similar to the human process inside their nervous system. The computer is learning the way to analyze the data through humans at the first stage and then they could do it alone.
In each nation, AI can be used to improve security in slots for parking, expressways, shops etc. In Sri Lanka, there is a company called AI & Vision Technology (Pvt) Ltd that has been working on the equipment that can use AI technology to read number plates on vehicles.

# What is the difference between AI and Machine Learning?

Many people have been facing in toughness in differing artificial intelligence and machine learning. People think as both terms are the same but they are not. ML’s purpose is to allow machines to learn on their own using the data provided and to make precise predictions.

ML is a subset of artificial intelligence, merely a technique for AI realization. Computers have two ways to teach approaches as supervised learning and unsupervised instruction.
‘Teachable machine’ is an application which can use to train the computer to recognize images, sounds etc.

https://teachablemachine.withgoogle.com/

Hope to discuss upcoming blogs on these topics. For further information on the AI and ML:

https://www.geeksforgeeks.org/machine-learning-versus-artificial-intelligence/
How to securely login to MySQL without providing password each time
Tags: linux, mysql, devops
Published: 2021-01-13 07:38:29

# Introduction

Using a long and secure MySQL password is necessary, however having to type that long password every time you run `mysql -u root -p` could be a bit frustrating especially if you want to run some MySQL commands in a script without being prompted for a password.

One way to login to MySQL is to append your password right after the `-p` flag:

```
mysql -u root -pYOUR_PASSWORD
```

However, using a password on the command line interface can be insecure.
This will also be recorded in your bash history.

Here is a better and more secure way on how to do that!

# Prerequisites 
In order to be able to follow along, you will need a Linux server with MySQL installed.

I will be using an Ubuntu Droplet deployed on DigitalOcean. If you wish to follow along you can sign up for DigitalOcean via my referral link below and you will get **$100 free DigitalOcean** credit:

**[https://m.do.co/c/2a9bba940f39](Free $100 DigitalOcean Credit)**

# Configuration of .my.cnf

By configuring the `~/.my.cnf` file in your user's home directory, MySQL would allow you to login without prompting you for a password.

In order to make that change, what you need to do is first create a `.my.cnf` file in your user's home directory:

```
touch ~/.my.cnf
```

After that set secure permissions, so that other regular users could not read the file:

```
chmod 600 ~/.my.cnf
```

Then using your favorite text editor open the file:

```
nano ~/.my.cnf
```

And add the following configuration

```
[client]
user=YOUR_MYSQL_USERNAME
password=YOUR_MYSQL_PASSWORD
```

Make sure to update your MySQL credentials accordingly, then save the file and exit.

After that, if you run just `mysql` you will be authenticated directly with the credentials that you've specified in the `~/.my.cnf` file without being prompted for a password.

# Testing with mysqladmin

As a quick test you could check all of your open SQL connections by running the following command:

```
mysqladmin proc
```

The `mysqladmin` tool would also use the client details from the `~/.my.cnf` file and it would list your current MySQL process list.

Another cool thing that you could try doing is combining this with the `watch` command and kind of monitor your MySQL connections in almost real-time:

```
watch -n1 mysqladmin proc
``` 

To stop the `watch` command just hit `CTRL+C`

# Conclusion
Adding your MySQL client details in your `~/.my.cnf` could be a good way to speed up your workflow and access your MySQL server without typing your password each time.

This is also super handy in case you want to run some MySQL commands via a bash script.

Hope that this helps!
Partnering with ReactJS Development Company
Tags: reactjsdevelopment, reactjssolutions, reactjsdevelopmentcompany
Published: 2021-01-13 07:28:09

On an initial level, business owners make mistakes to find a suitable tech partner to collaborate on building a web-based app for their business, a web app that has to be functional flawlessly on mobile devices.

For that, you need to Partner with an App Development Firm that offers web app development as a [ReactJS Development Company](https://morioh.com/p/5833b71a8fc3) to Build a Mobile Version of a Web App that can be accessed through various platforms.

It improves the accessibilities for different audiences worldwide.

ReactJS is a framework that has been launched by Google itself, and major big firms use the same web development framework for their business web mobile applications because Reactjs is one of the best platforms for a web-based digital product development approach.

It has been nearly 8 years since the React JS language launch in the tech market. Major tech firms, web development freelancers, and tech geeks know why ReactJS is the perfect fit for the web development process and integrates them for better results.

However, major businesses took wrong steps while working on their web development strategy.

The mistake was similar in major cases, incorporating the wrong technology to their digital products and getting failed measurably because of a lack of foundational programming background to support the coding structure and navigation during the real-time sessions.

What was that one mistake that caused them this big loss? They opt for technologies that would not secure the technical development structures and majorly choose one of the ideal and most used mobile-based web development frameworks to digitalize any business.

Although moving forward on your own will not help you in succeeding web development for your business, you need to hire or partner with someone who has on-hand experience in building web-based digital products, who can understand your requirements, and work according to the latest market trends and consumers demands.

Therefore, a perfect and suitable option would be incorporating a react js development company with prior experience in a similar web development approach to your need.

Many will think, why can’t I hire a freelance React JS Developer for the same cause?

The answer is simple.

Hiring a freelancer is also a good option. Still, the values and quality you will get from a React JS Development firm will be significant compared to the freelancer’s project delivery to you. Therefore associating with the right reactjs development partner is vital for impressive results throughout the web development approach.

Article Source: [Partnering with ReactJS Development Company](https://writeonwall.com/partnering-with-reactjs-development-company/)
The Case Sensitivity of the GitHub Actions Runner
Tags: githubactions, github, mdbook
Published: 2021-01-13 07:17:53

## The Problem

> [Bug: Couldn't open SUMMARY.md · Issue #36 · peaceiris/actions-mdbook](https://github.com/peaceiris/actions-mdbook/issues/36)

mdBook can recognize `SUMMARY.md` but cannot `summary.md` on a GitHub Actions runner (Ubuntu VM).

On the other hand, both `SUMMARY.md` and `summary.md` are acceptable on my local macOS machine.


## The Reason

The case-sensitivity between the GitHub Actions runner and my local environment was different.

My local macOS machine has been formatted with case-insensitive mode, so the local building has passed and the remote building failed.

- GitHub Actions Ubuntu: Case sensitive
- My local macOS PC: Case insensitive


## Can we select case-sensitivity of the GitHub Actions VM?

No.

> [MacOSX images with case sensitive APFS filesystem · Issue #865 · actions/virtual-environments](https://github.com/actions/virtual-environments/issues/865)
>
> We can't offer another image at this time since it would affect overall capacity of Mac and be costly to maintain.
How do i convert the following code to transaction in Node.js?
Published: 2021-01-13 07:12:49


I have written this async function which calls bunch of async functions inside which executes INSERT or SELECT statements and each function needs the output from the previous one. There's a lot of of INSERT operation so its taking lot of time.


code --
async writeDataseq(bno, pno, textArr) {
const pageNoTablePacket = await this.writeToPageNoTable(bno, pno);
try {
  let pgId = pageNoTablePacket.insertId;
  if (pgId == 0) {
    pgId = await this.getPgId(bno, pno);
  }

  for (let index = 0; index < textArr.length; index++) {
    let leftWord = null;
    let rightWord = null;
    let word = textArr[index];
    if (index - 1 >= 0) {
      leftWord = textArr[index - 1];
    }
    if (index + 1 < textArr.length) {
      rightWord = textArr[index + 1];
    }
    const wordPacket = await this.writeWordToDb(word);
    let wordId = wordPacket.insertId;
    if (wordId == 0) {
      wordId = await this.getWordId(word);
    }
    const wordInstPacket = await this.writeWordInst(wordId, pgId);
    const wordContextPacket = await this.writeWordContext(
      wordInstId,
      leftWord,
      rightWord
    );
  }
  //every operation finished
  return 'everything done successfully';
} catch (error) {
  throw Error(error);
}
}


I am using Mysql database and am using node-mysql driver. I want to commit everything at once in the end to make it fast. How can I achieve this ?

Thanks in advance.
Enable Rust autocomplete in Neovim
Tags: autocomplete, rust, nvim
Published: 2021-01-13 07:04:12

---
title: Enable Rust autocomplete in Neovim 
published: true
description: 
tags: autocomplete,rust,nvim
//cover_image: https://direct_url_to_image.jpg
---

# Prerequisite

I use Ubuntu 20.04 and I have already install node.js. 
 
# Install neovim

```
apt-get install neovim
```

# Install vimplug

```
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
```

(source: https://github.com/junegunn/vim-plug)

# Setup vimplug

```
nvim $HOME/.config/nvim/init.vim
```

In $HOME/.config/nvim/init.vim

```
call plug#begin(stdpath("data") . '/plugged')

call plug#end()
```

# Install coc.vim

In $HOME/.config/nvim/init.vim

```
call plug#begin(stdpath("data") . '/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
```

In nvim,

```
:PlugInstall
```

# Install rust-analyzer

```
mkdir .local/bin
curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-linux -o ~/.local/bin/rust-analyzer
chmod +x ~/.local/bin/rust-analyzer
```

(source: https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary)

# Install coc-rust-analyzer

In nvim,

```
:CocInstall coc-rust-analyzer
```

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

# Setup coc

In $HOME/.config/nvim/coc-settings.json

```
{"rust-analyzer.server.path": "/home/YOURNAME/.local/bin/rust-analyzer"}                                                                                                         
```

Please replace YOURNAME with your name.

# Open a source code in Rust

It should work.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/h8s8k8e20gc9q0tnr531.png)
State of JavaScript 2020 Results are declared!
Tags: javascript, react, angular, svelte
Published: 2021-01-13 07:00:06

The Most anticipated and popular [State of Javascript 2020](https://2020.stateofjs.com) results are out today.

So Let’s find out, some of the highlights from the survey results.

## Front End Frameworks

React was the winner for the last four years but now, Svelte has taken its place.

React is in 2nd place now.

![Front End Frameworks](https://gist.github.com/myogeshchavan97/aa75611665802aadfd3ba6bfeb0fe59b/raw/010176bfa280e7db8545ea160d7e10d2b578584b/front_end.png)

## Back End Frameworks

Next.js is the winner of 2020 for backend development.

![Backend Frameworks](https://gist.github.com/myogeshchavan97/aa75611665802aadfd3ba6bfeb0fe59b/raw/4a4c11d16ce3d456da18e0d510a755556d6b0839/backend.png)

## Testing

When concerned with Testing, Testing library is the winner here followed by the Jest framework as the second winner.

![Testing](https://gist.github.com/myogeshchavan97/aa75611665802aadfd3ba6bfeb0fe59b/raw/7d4f519cf4dffe67ae833da6e2be75d5738f1093/testing.png)

----


### You can check out full survey results [here](https://2020.stateofjs.com).

[<img src="https://cdn.buymeacoffee.com/buttons/default-yellow.png" >](https://www.buymeacoffee.com/myogeshchavan97)
What Are the Top Challenges Online Food Ordering Software can Address?
Tags: android, ios, mobile, angular
Published: 2021-01-13 06:58:31

Running a takeaway startup or a restaurant in this pandemic age is quite a task. On one hand, you need to maintain the quality of food with taste, and on the other hand, you have to focus on improving customer services. Thankfully, advancing technology lends a helping hand in the form of an online food ordering system to meet these objectives effectively. Such a readymade system also assists you to expand your business while addressing the major challenges.

In this blog, we are going to talk about the key challenges that you can overcome with the help of a readymade restaurant food ordering software.

Challenges that can be overcome by Restaurant online ordering system

Food Quality- Startups, takeaways, and small restaurants find it difficult to manage the ordering processes while offering quality food to their customers. Limited resources and other shortcomings especially during peak hours make it harder for waiters and the kitchen staff to meet the customer’s requirements at times. As a result, food quality is suffered in taste and appearance.

The online food delivery solution addresses this issue with the help of the latest technology blockchain. Blockchain technology is a decentralized ledger in which the kitchen staff can update various items and the process used in preparing them in real-time. The admin or the restaurant manager can access this information for ensuring the food’s quality.

Delivery Network- In a food delivery business, it is of utmost importance that you have a robust delivery network to ensure on-time delivery to your customers. The restaurant food ordering solution not only takes care of the ordering process but also assists in managing the delivery network. You can set targets and incentives carefully to retain delivery agents for a long time to your business.

https://www.suriainternational.com/top-challenges-online-food-ordering-software/
Convert PDF to Word Document using Java
Tags: java, pdftoword, free
Published: 2021-01-13 06:47:55

This article will demonstrate how to convert a PDF to Word document with a 3rd party free Java API.

**Import JAR Dependency** (2 Methods)

● Download the Free API ([Free Spire.PDF for Java](https://www.e-iceblue.com/Download/pdf-for-java-free.html)) and unzip it, then add the Spire.Pdf.jar file to your project as dependency.

● Directly add the jar dependency to maven project by adding the following configurations to the pom.xml.
```xml
<repositories>
        <repository>
            <id>com.e-iceblue</id>
            <name>e-iceblue</name>
            <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
        </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>e-iceblue</groupId>
        <artifactId>spire.pdf.free</artifactId>
        <version>3.9.0</version>
    </dependency>
</dependencies>
```

**The original PDF document is shown as below:**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/17sw19tbiztitt21sxi9.jpg)

**Code Snippet**
```java
import com.spire.pdf.*;

public class ConvertPDF {
    public static void main(String[] args) {

        //Create a PdfDocument object
        PdfDocument doc = new PdfDocument();
        //Load the sample PDF file
        doc.loadFromFile("C:\\Users\\Administrator\\Desktop\\The Scarlet Letter.pdf");

        //Save as .doc file
        doc.saveToFile("output/ToDoc.doc",FileFormat.DOC);

        //Save as. docx file
        doc.saveToFile("output/ToDocx.docx",FileFormat.DOCX);
        doc.close();
    }
}
```

**The output Word document:**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/1x6z30yo1vqvcqzwc5sr.jpg)
How WordPress Web Development Ensures the Creation Of Optimized Websites?
Tags: wordpress, webdev
Published: 2021-01-13 06:40:59

WordPress is a content management system that is in the top priority in terms of popularity and services offered by it. This is a free tool or platform for download & used, which helps in building a very interesting website or blog. For these reasons and exclusive features & open source functionality, WordPress web development has become an important activity that provides maximum benefits. The availability of flexibility and easy support has provided recognition throughout the world to this open source. This acts as a favorable choice for the development of special web solutions.

For WordPress web development services that are very effective, business owners must bring help from professional developers, so they can help them in a better way. Professional developers use the latest techniques or tools for the development of interactive design or themes to increase the value of your business brand in the online market. WordPress has various features and if it is introduced on your website, then he ensures the achievement of a better advantage. With the help of design & artificial templates made, WordPress allows business owners to make modifications in fonts, logos, graphics, etc. In accordance with the requirements.

<h2>What are the various benefits of WordPress?</h2>

Some of the amazing benefits related to the development of WordPress web are as follows: -

Reduction of expenses: WordPress helps in reducing time & money. Do you need to develop a website or blog, both are developed in an easy way without producing large costs.

There is no hassle, only management is simple: Managing WordPress websites is not a typical task to do. Post or content publishing can be made within a minimum time.

Easy accessibility: without additional software requirements, WordPress websites can be accessed anywhere.

Security Increase: Get a security increase with the development of WordPress web when you use the secret admin panel to resolve lost or damaged data problems. It provides easy recovery from damaged data.

Easy installation: Installing WordPress tools or content management systems on your computer is quite easy. Just follow the simple instructions and contents of the required details.

SEO friendly website: higher website rankings must be optimized business benefits. WordPress resolves this problem by building a friendly website SEO.

WordPress Web Development No doubt is a process that adds some extraordinary functionality on the website to improve your business. In this post, you have learned about the importance of WordPress as a strong and open source content management system. The multi-blogging feature of WordPress helps handle multiple blogs. 

For WordPress development, you need amazing <a href="https://www.wpoven.com/blog/managed-wordpress-hosting/">managed wordpress hosting</a> for your website.