teleren/devto huggingface dataset:
Flutter database inspector storage_view
Tags: flutter, dart, database, sql
Published: 2022-09-12 18:57:49

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bin6khi9b7aw764fi6wt.gif)

## About package

Flutter inspector tool for any database, storage and shared_preferences.
Check and modify database values from UI of application.

It's fast introduction of [storage_view](https://github.com/Frezyx/storage_view) package.

## Motivation
Create one tool to inspect and interact with any database is the main thing of package.

## Getting started

### Add dependency
```yaml
dependencies:
  storage_view: ^0.1.0-dev.1
```

### Add import package
```dart
import 'package:storage_view/storage_view.dart';
```

### Implement driver
The package uses a driver [StorageDriver](https://github.com/Frezyx/storage_view/blob/main/packages/storage_view/lib/src/models/storage_driver.dart) to interact with the database. <br>
In order to connect your database you should use one of available drivers: <br>

- [shared_preferences_storage_view_driver](https://github.com/Frezyx/storage_view/tree/main/packages/shared_preferences_storage_view_driver) that works with [shared_preferences](https://pub.dev/packages/shared_preferences) <br> See [example](https://github.com/Frezyx/storage_view/tree/main/packages/shared_preferences_storage_view_driver/example) for more information
- [flutter_secure_storage_view_driver](https://github.com/Frezyx/storage_view/tree/main/packages/flutter_secure_storage_view_driver) that works with [flutter_secure_storage](https://pub.dev/packages/flutter_secure_storage) <br> See [example](https://github.com/Frezyx/storage_view/tree/main/packages/flutter_secure_storage_view_driver/example) for more information

Or create your own StorageDriver implementation like there:
```dart
class MockStorageDriver implements StorageDriver {
  final _data = <String, dynamic>{
    'test_id' : 'test',
  };

  @override
  FutureOr<Set<String>> getKeys<String>() {
    return _data.keys.toSet() as Set<String>;
  }

  @override
  FutureOr<T?> read<T>(String key) {
    return _data[key] as T;
  }

  @override
  FutureOr<void> write<T>({required String key, required T value}) {
    _data[key] = value;
  }

  @override
  FutureOr<void> delete(String key) {
    _data.remove(key);
  }
}
```

## Additional information
The project is under development and ready for your pull-requests and issues.
Thank you for support!

⛔️ It is very important to get feedback about the project. Therefore, write your opinion in the comments. Will you use this in the future ?

😎 Go to the [GitHub repository page](https://github.com/Frezyx/storage_view)!
Show some ❤️ and star the repo to support the project!
Questions To Ask For One Those Who Loves Coding
Tags: coding, webdev, productivity, writing
Published: 2022-09-12 18:36:39

There are many questions that you should ask a coder before hiring them. These questions can help you to determine the level of expertise and experience of the coder. Here are some questions that you should ask:

- What is your experience with coding?

- What programming languages do you know?

- Do you have any certifications in this field? If so, which ones?

- What is your favorite language to code in?

- How much time do you spend coding on a daily basis?

- Do you have any other skills apart from coding such as design, marketing or sales skills?


The best way to start is to ask about the coder’s experience. What types of projects have they worked on? What were their responsibilities? How many projects have they completed?

If you are interested in the technical side of things, you can ask them about their favorite programming language, what tools and libraries they use, and what tools they recommend for beginners.

If you want to know more about the coder’s personality, you might want to ask how they like to work with other people. Do they prefer working alone or in a team? Do they like sitting at a desk all day or do they prefer working while standing up or walking around? 

A coder is a person who writes computer programs. They are responsible for the design, testing and maintenance of the software application.

The questions you should ask a coder are:

- What languages do you know?

- What is your scariest experience in writing a code?

- What type of programs or applications have you developed in the past?

- Do you have any certifications?

Apart from this, it is not necessary to always ask professional questions and related to the background. But if you wanted to have a couple of good coder friend and wanted to be in their friendship zone, then asking funny and sometime [juicy question](https://www.quoteshacks.com/juicy-questions/) can help you to get much more info about them.

Some of such questions can be:

- Do you have women coder?

- Do you get distracted with a girl smiling over you?

- Have you ever been into love?
VIRTUAL ASSISTANT USING PYTHON (GUI-BASED)
Tags: python, programming, beginners, github
Published: 2022-09-12 18:35:14

**VIRTUAL ASSISTANT USING PYTHON**
THIS IS MY SECOND YEAR (B-TECH CSE) MINI PROJECT  . THIS  PROJECT JUST WORK AS THE AMAZON ALEXA AND GOOGLE ASSISTANT . BUT THE FEATURES ARE LIMITED​ . NO USE OF ANY AI JUST WORKS WITH (IF-ELSE) CONDITION , CAN PERFORM SOME TASKS LIKE (OPENING ANY WEBSITE OR APPLICATION , PLAYING MUSIC , SENDING EMAILS 

**IDEA**
The best thing about this project is that this is GUI based . tkinter is a very famous library for making GUI based projects . at starting I only thought to make this project terminal based means all the output are shown in terminal. than I remember about my childhood project (A GUI TEXT GAME) so I merge both projects which in result turns out to be pretty impressive .

**INTERFACE OF THIS PROJECT**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7norsjhnvrhdjjcaqjxw.jpeg)



**SOME LIBRARIES WHICH ARE USED:-**
1.[random](https://www.geeksforgeeks.org/python-random-module/)
2.[tkinter](https://www.geeksforgeeks.org/python-gui-tkinter/)
3.[Pyaudio](https://pypi.org/project/PyAudio/)
4.[pyttssx3](https://www.geeksforgeeks.org/python-text-to-speech-by-using-pyttsx3/#:~:text=pyttsx3%20is%20a%20text%2Dto,a%20reference%20to%20a%20pyttsx3.)
5.[datetime](https://www.geeksforgeeks.org/python-datetime-module/)
6.[webbrowser](https://www.geeksforgeeks.org/python-launch-a-web-browser-using-webbrowser-module/)
7.[speech recognizer](https://www.geeksforgeeks.org/speech-recognition-in-python-using-google-speech-api/)


**HOW IT WORKS**
1.Making a function which use our system microphone and take our voice as input.
2.Then convert the voice format to text format. 
3.Perform various functions according to that input.
4.Than again convert the text output in voice format.


 
**THIS PPT AND GIT-REPO SUMMARIZED MY PROJECT IN DETAILED**
1.[POWERPOINT PRESENTATION](https://geuac-my.sharepoint.com/:p:/g/personal/suryanshtaragi_cse_20011617_gehu_ac_in/ES99bYzyPj5IuulwGUtdjY8BdOHR1jjG7weHOCq3jWZHuQ?e=bD88oN)
2.[GIT REPO](https://github.com/suryansh-code/MY_ALEXA)

_Thank You_
CHECK THE SEQUENCE (STRICTLY DECREASING THAN INCREASING || STRICTLY DECREASING || STRICTLY INCREASING)
Tags: algorithms, computerscience, github, programming
Published: 2022-09-12 18:33:55

**Check Number sequence**
You are given S, a sequence of n integers i.e. S = s1, s2, ..., sn. Compute if it is possible to split S into two parts : s1, s2, ..., si and si+1, si+2, ….., sn (0 <= i <= n) in such a way that the first part is strictly decreasing while the second is strictly increasing one.
Note : We say that x is strictly larger than y when x > y.
So, a strictly increasing sequence can be 1 4 8. However, 1 4 4 is NOT a strictly increasing sequence.


That is, in the sequence if numbers are decreasing, they can start increasing at one point. And once the sequence of numbers starts increasing, they cannot decrease at any point further.
Sequence made up of only increasing numbers or only decreasing numbers is a valid sequence. So, in both the cases, print true.


You just need to print true/false. No need to split the sequence.
Input format :
Line 1 : Integer 'n'
Line 2 and Onwards : 'n' integers on 'n' lines(single integer on each line)
Output Format :
"true" or "false" (without quotes)
Constraints :
1 <= n <= 10^7
Sample Input 1 :
5
9
8
4
5
6
Sample Output 1 :
true
Sample Input 2 :
3
1
2
3
Sample Output 2 :
true
Sample Input 3 :
3
8
7
7
Sample Output 3 :
false
Explanation for Sample Format 3 :
8 7 7 is not strictly decreasing, so output is false.
Sample Input 4 :
6
8
7
6
5
8
2
Sample Output 4 :
false
Explanation for Sample Input 4 :
The series is :
8 7 6 5 8 2
It is strictly decreasing first (8 7 6 5). Then it's strictly increasing (5 8). But then it starts strictly decreasing again (8 2). Therefore, the output for this test case is 'false'

**SOLUTION**

```
#include<iostream>
using namespace std;

int main() {
	
    int n;
    cin>>n;
    bool a;
    int count=0;
    
    int num[n];
    
    for(int i=0;i<n;i++)
    {
        cin>>num[i];
    }
    
    
    for(int i=0;i<n;i++)
    {
        if(num[i]>num[i+1])
        {
            a=true;
            count++;
        }
        
        else
        {
            a=false;
            break;
        }
    }
	
    for(int i=count;i<n;i++)
    {
        if(num[i]<num[i+1])
        {
            a=true;
            count++;
        }
        
        else
        {
            a=false;
            break;
        }
    }
    
    
    
    for(int i=count;i<n;i++)
    {
        if(num[i]<num[i+1])
        {
            a=true;
            count++;
        }
        
        else
        {
            a=false;
            break;
        }
    }
	
    for(int i=count;i<n;i++)
    {
        if(num[i]>num[i+1])
        {
            a=true;
            count++;
        }
        
        else
        {
            a=false;
            break;
        }
    }
    
    if(a==1)
    {
        cout<<"true";
    }
    else
    {
        cout<<"false";
    }
}
```

> suggest me a better approach to solve this problem
[git](https://github.com/suryansh-code/DATA-STRUCTURE-ALGORITHM---CODING-NINJAS/blob/main/check_sequence.cppurl)
#PowerToys – The best Text Extractor utility for #Windows11
Tags: englishpost, microsoftpowertoys, ocr
Published: 2022-09-12 20:09:16

---
title: #PowerToys – The best Text Extractor utility for #Windows11
published: true
date: 2022-09-12 18:23:40 UTC
tags: EnglishPost,EnglishPost,MicrosoftPowerToys,OCR
canonical_url: 
---

Hi !

I’m a big fan of [Microsoft PowerToys](https://docs.microsoft.com/en-us/windows/powertoys/). The new Text Extractor feature, is one of the most useful features ever ! 😀

Let’s take a simple look about how this works. Just capture of a region of the screen, and the text extractor will extract the text from the image and copy the content to the clipboard.

![Text extractor demo](https://brunocapuano.files.wordpress.com/2022/09/2022-09-12-powertoys-text-extractor-01.gif?w=450)

Super cool ! The main shortcut is [WIN + SHIFT + T], however in the PowerToys settings you can change this, and also, enable or disable this feature!

![power toys text extractor settings](https://brunocapuano.files.wordpress.com/2022/09/power-toys-text-extractor-settings.png?w=962)

I’m saying goodbye to the old days, when I paste the image on OneNote to get the text from there!

Happy coding!

Greetings

El Bruno

More posts in my blog [ElBruno.com](https://www.elbruno.com).

* * *
2 Day in 100DaysOfReact
Tags: react, html, javascript, css
Published: 2022-09-12 17:38:03

This is my 2nd day after weekend on React js small projects 

Copied Page from [Original](https://www.facebook.com/) Facebook Page]

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3yb6w8dmlolmrj7fm741.png)

Copy Created Host -> [Facebook login Page](https://rajkamalkanna.github.io/Facebook-Login-Page/)


Results: 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/46c8qkkh64w2siqo8zj5.png)



Source files -> [Code](https://github.com/Rajkamalkanna/Facebook-Login-Page)
Why ML over Rule-Based Systems
Tags: mlzoomcamp
Published: 2022-09-12 17:24:04

#### 1.2
So, you decided to make your car drive autonomously. You start thinking about the rules that would be you think would be needed.

At a glance, you require to turn the vehicle right, left or keep it straight. You also need to adjust it's speed.

When you go at granular level, you would know that the depending upon road condition, terrain, surronding vehicles, road signs, signals, etc., the vehicle needs to know how much degrees to turn, how much to accelerate. It also needs to follow traffic rules of the region you need it to drive, avoid any possible collision, update the rules depending upon changes in the surroundings. You need to make sure the rules cover all the possible circumstances.

At microscopic level, you need to make more rules. Eventually, managing the number of rules seems impossible task.

With Machine Learning you can avoid this step.
Intro to ML
Tags: mlzoomcamp
Published: 2022-09-12 17:23:32

#### 1.1

Suppose you went to a store or a website to purchase yourself a new smartphone. You are wondering how the price you are going to pay for it compares with the other smartphones. One way of doing that is you list down the **feature(s)** (i.e. specifications of processor, operating system, brand name, camera, etc.) and the **target** prices of some of the smartphones you want to compare, and you try to come up with some **prediction**.

You can do the same thing more effectively using machine learning. You train a machine learning model with the features and the target. Finally, you give features of new smartphone for getting the expected value.
Learning how to generate leads on demand
Published: 2022-09-12 17:04:27

A lead is any individual who shows interest in an organization's item or administration here and there, shape, or structure.

Leads regularly hear from a business or association subsequent to opening correspondence (by submitting individual data for a deal, preliminary, or membership) … rather than getting an irregular cold pitch from somebody who bought their contact data. Leaning about lead generating is extremely easy. You can do so by going over to communityinfluencer and reading about their [techniques for lead generation.](https://communityinfluencer.com/generate-real-estate-leads-on-demand/)

Suppose you take an internet based study to dive more deeply into how to deal with your vehicle. A day or so later, you get an email from the auto organization that made the study about how they could assist you with dealing with your vehicle. This cycle could be undeniably less meddling than if they'd recently called you suddenly without any information on whether you even consideration about vehicle upkeep, correct? This being a lead is like.
Discussion: Is SQL Server still the best database for .NET Developers?
Tags: discuss, dotnet, database
Published: 2022-09-12 17:03:02

---
title: Discussion: Is SQL Server still the best database for .NET Developers?
published: true
description: discussion about using SQL server as a default database for .NET projects
tags: discuss, dotnet, database
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

When I started to work as a software developer we used to use AccessDB and SQL server for desktop applications (This was 14 years ago).

In the last year, I have been using cloud providers and remote databases with SQL server but also with other engine like postgreSQL and mariaDB. 

postgreSQL is a great database because it is full free, opensource and supported by all the cloud providers.

If you have to start a new project right now with .NET and ASP.NET, which database you prefer?
The most frequently used shortcuts and extensions in VSCode in one place
Tags: vscode, productivity, beginners
Published: 2022-09-12 17:00:06

Hey everyone,

Back when I started my self-learning part of programming, I was seeking to find the optimal IDE and concluded that VSCode was the one for me. As I was becoming increasingly familiar with this interface, I started realizing that VSCode offered a vast array of shortcuts. However, while I knew of the existence of such shortcuts, it was unclear which one performed a particular function. As a result, finding our which shortcuts were handy for useful and ultimately incorporating them in my daily use, proved to be an unnecessarily time-consuming task.

To overcome this, I have created VSCheatsheet which uses .gifs to illustrate the function of each shortcut. Each illustration, shows in a simple and straight-forward manner the effect of pressing a particular shortcut.

![Shortcut modal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4tx1qhoj89vjr0kfwf2l.png)


A pop-up with the keys pressed is shown at the exact timing the command is given. A prescription of the keys to be pressed for a function (in each particular operating system) is provided at the bottom of the relevant illustration.

Our team welcomes all constructive feedback and shortcut requests by users to optimize this product and create a value-enhancing experience.

You can have a look on [VSCheatsheet](https://www.vscheatsheet.com/)
Subindo imagens para Harbor
Tags: harbor, devops, docker
Published: 2022-09-12 16:57:38

**Introdução**

Harbor é uma ferramenta simples para armazenar suas imagens docker.

Em nosso exemplo vamos fazer a entrega de um site simples, onde os arquivos estão dentro da pasta `/dist`

**Pré Requisitos**

1. Sua máquina deve ter o Docker instalado, aqui você pode ver [como](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04-pt).

2. Sua aplicação deve ter um [Dockerfile](https://docs.docker.com/engine/reference/builder/) com as configurações necessárias para realizar o build da sua imagem com sucesso.

Por exemplo:

```
FROM httpd:2.4

ENV IP_API=192.0.0.1

COPY ./dist/ /usr/local/apache2/htdocs/
```

**Criando sua imagem**

1. Dentro a pasta do site digite o seguinte comando

```bash
sudo docker build -t {nome-sua-app}:{versao} .
```

por exemplo:
```bash
sudo docker build -t site-sample:0.0.1 .
```

**Criando tag**

Precisamos criar tag para cada versão da nossa aplicação, podemos usar o seguinte comando:

```bash
sudo docker tag {nome-sua-app}:{versao} {url-registry}/{projeto}/{nome-sua-app}:{versao}
```

por exemplo:

```bash
sudo docker tag site-sample:0.0.1 registry.inlinesoft.com.br/test/site-sample:0.0.1
```

**Push para repositório**

Para enviar uma image para o repositório devemos executar o comando `push` seguindo o seguinte template:

```bash
sudo docker push {url-registry}/{projeto}/{nome-sua-app}:{versao}
```

por exemplo:

```bash
sudo docker push site-sample:0.0.1 registry.inlinesoft.com.br/test/site-sample:0.0.1
```

Se tiver dado tudo certo, ao acessar seu registry você verá sua imagem disponível.

Agora é só colocar para rodar no seu servidor.

{% embed https://www.youtube.com/watch?v=LdOzXocLvEY %}
Names fuzzy match in javascript
Tags: javascript, medblocks, abdm, fuzzy
Published: 2022-09-12 16:48:45

I recently came across a requirement in one of the projects where we need to implement fuzzy string match for the user's name field. Now if you do not what a fuzzy match is, you can google to learn in details, but in short it is a technique in computer science of finding strings that match a pattern approximately (rather than exactly). 

For example, if we take names of two people to be Cathryn and Kathryn or Gaurav and Gourav (Indian names), while the exact spelling is different but the sound of two names are similar (or same in some cases). This is an example of phonetic based fuzzy string matching. There are many different algorithms. [Read here](https://towardsdatascience.com/fuzzy-string-matching-algorithms-e0d483c2a9ea)

For practical purposes, you may come across a record dataset with people names where you might have to find people with names matching a given sound. In ours case, where I was integrating [India health stack ABDM APIs](https://abdm.gov.in/abdm) within our application at [Medblocks](https://medblocks.org/), we need to mark names with similar phonetic fuzzy match as same or correct, so if one searched for Gourav in the dataset, the results would also contains records with names such as Gaurav, Gauruv or anything that sounds similar to Gourav. This is particularly useful in scenarios where you might spell (or type) a person's name differently than what he/she has actually in his/her personal ID documents because names are not dictionary objects.

After some research, I found couple of open source libraries in python and javascript for this task and finally decided to go with [Talisman](https://yomguithereal.github.io/talisman/). [NPM package is here](https://www.npmjs.com/package/talisman).

[Here is a quick demo](https://stackblitz.com/edit/names-fuzzy-match-javascript?file=index.js) on how to use this library to implement your fuzzy string match requirements. I've only used two phonetic algorithms `fuzzy-soundex` and `daitch-mokotoff` in the demonstration here but in a real use-case, you might use different and more number of algorithms depending on why do you need a fuzzy string match.
The Cloud & DevOps Journey
Tags: cloud, aws, beginners
Published: 2022-09-12 16:48:33

After a rigorous 4 years at *uni* learning Software Engineering, I decided to pursue a career in the Cloud & DevOps. Not exactly sure how I want to approach this but I have started making some progress. 

I joined the cloud developer nanodegree program at Udacity through ALX as I felt that it would show me what I'm getting myself into😂.

So the real question is, why am I here? I feel like a little blogging will help me solidify what I am learning and at the same time give other people resources that they can use to get started. 

So, whose ready to go on this journey with me?
Fun way to handle node status codes
Tags: javascript, nextjs, node, api
Published: 2022-09-12 14:49:05

So, I was setting up some routes for my API & I had to setup some error fallbacks. And I figured out a fun and dynamic way of doing this, so instead of sending a response message to the endpoint I decided to redirect the user to a dynamic status page. Here's how I did it. (<u>This is for NextJS</u>)

Make a directory in /pages/ called "status", then make a .js file named [code].js & inside that code I use this:
```js
import { useRouter } from "next/router";

export default function NodeStatus() {
  const router = useRouter();
  const { status } = router.query;
  return (
    <div className="node__status__page">
      <img
        src={`https://http.cat/${status}`}
        className="w-full h-full max-w-lg"
      />
    </div>
  );
}
```

Then the way I handle the request depending on what error it is I use this simple line:
```js
res.status(500).redirect(`/status/${res.statusCode}`);
```

I know it's not very beautiful code but I hope someone will see it as useful! ^^ Thank you!
NEAR JS INTRO
Tags: tutorial
Published: 2022-09-12 16:36:30

Useful Links:
https://github.com/near-examples/coin-flip-workshop-js/tree/coin-flip
https://www.youtube.com/watch?v=QYNyC6__pw8

Start
```bash
npm install
```

Deploy
```bash
npx near dev-deploy build/contract.wasm
```

Export env
```bash
export CONTRACT_NAME=dev-1662994042789-50479875102850
```

View examples
```bash
npx near view $CONTRACT_NAME viewGreeting

npx near view $CONTRACT_NAME viewPoints '{"player": "'$CONTRACT_NAME'"}'
```

Write examples
```bash
npx near call $CONTRACT_NAME setGreeting '{"message": "GO TEAM!"}' --accountId $CONTRACT_NAME

npx near call $CONTRACT_NAME flipCoin '{"side": "tails"}' --accountId $CONTRACT_NAME

```

Start new project
```bash
npx create-near-app
```

After a new deploy, it will generate a new CONTRACT_NAME under `neardev/dev-account`
```bash
npm run deploy
```
New
Tags: learning, beginners
Published: 2022-09-12 16:35:13

Hello everyone!

I just want to say ya'll are so smart, because you already know how to do all of this amazing dev stuff! I am just beginning and I am very nervous, but I feel like I can do it because I know computers, and I like to solve things. If anyone has any advise throw it my way! thanks and I'm excited to learn!