teleren/devto huggingface dataset:
Expanded Vs Flexible in Flutter
Published: 2022-02-25 03:33:48


 


Both Creates a widget that controls how a child of a [Row], [Column], or [Flex] flexes.

If you come from a CSS background, this is related to flexbox

The only difference between Expanded and Flexible is Expanded is Flexible that doesnt have a fit property

Example

Flexible:
`Flexible(
flex: 3,
                fit: FlexFit.tight,)`

Expanded:
`Expanded(
flex: 3
                //fit: FlexFit.tight,)


The fit property in Expanded is commented.

Both use flex the property
Azure DevOps
Tags: beginners, azure, devops, discuss
Published: 2022-02-25 03:25:08


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qvfqu0m5gqyhdqbnlsz3.png)I've build pipeline that produces artifacts and that artifacts have to consumed by other pipeline. I've used resources task and after the finish of build artifacts can be seen as consumed. My question what really happens at the background. Where can I see those artifacts and use them. How consume is different from publish.
Using Fold method in dart
Published: 2022-02-25 03:24:21

The fold method in dart is used for:
Reducing a collection to a single value by iteratively combining each element of the collection with an existing value

Uses [initialValue] as the initial value, then iterates through the elements and updates the value with each element using the [combine] function, as if by:

`var value = initialValue;
for (E element in this) {
  value = combine(value, element);
}
return value;`


The **fold** method in dart just acts like the **reduce** method in javascript

Another example of the fold method in dart :
` double get totalNetSpend {
    return groupedTransactionData.fold(0.0, (sum, item) {
      return sum + (item['amount'] as double);
    });
  }`
GeoNode Advanced Installation in Ubuntu 20.04 Part 1
Tags: webdev, django, linux, gis
Published: 2022-02-25 02:37:17

This is the First steps of the installation of GeoNode in Ubuntu 20.04 using advanced method.

GeoNode is an open-source spatial data infrastructure (SDI) that is open source and used to store and manage geospatial data including sharing it over the web. 

In this tutorial we install and configure the pre-requisites of GeoNode. 


{% youtube Womv095voPQ %}
100 días de código: 76, avanzando con mi aprendizaje de Redux
Tags: spanish, 100daysofcode, webdev, redux
Published: 2022-02-25 02:36:27

¡Hey hey hey!

Estos últimos días he avanzado creando pequeños proyectos para mejorar mi manejo de Redux, he comenzado utilizando solo Javascript para luego crear algunos usando Typescript y creo que ahora estoy listo para integrar Redux a mi proyecto [finance](https://github.com/Darito97/finance).

Aunque el curso que tome sobre Redux me hizo sentir confianza para comenzar a utilizarlo, pronto me di cuenta que no tenia los suficientes conocimientos para desenvolverme utilizándolo en mis proyectos por lo cual tuve que volver a la [documentación de Redux](https://es.redux.js.org/).

Realmente no me molesta volver a tomar la documentación como camino principal puesto que me brinda una forma mas completa de aprender todo detrás de este framework de manejo de estado.

Ahora sigamos con el análisis diario.
### Hoy y estos últimos días
- Me he dedicado a practicar Redux creando algunos proyectos en local que me permitieron aplicar mas los conocimientos adquiridos.
- He practicado Touch Typing y mi manejo de tipos en Typescript.
- He estado revisando propuestas de trabajo para darme cuenta de cuales son las herramientas mas necesarias cuando te conviertes en desarrollador web frontend.

Espero que tengas mucho éxito con tus proyectos y animo con todo lo que vaya pasando en tu día!

Hasta la próxima.

Foto cover de [Kevin Canlas](https://unsplash.com/@kvncnls?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) en [Unsplash](https://unsplash.com/s/photos/dev?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText).
GETTING STARTED WITH NATURAL LANGUAGE PROCESSING
Tags: python, nlp, machinelearning, artificaialintelligence
Published: 2022-02-25 02:22:37

**Introduction**

Natural language processing (NLP) is concerned with enabling computers to interpret, analyze, and approximate the generation of human speech. Typically, this would refer to tasks such as generating responses to questions, translating languages, identifying languages, summarizing documents, understanding the sentiment of text, spell checking, speech recognition, and many other tasks. The field is at the intersection of linguistics, AI, and computer science.

**Roadmap of NLP for Machine Learning**

**1. Pre-processing**   
- Sentence cleaning
- Stop Words
- Regular Expression
- Tokenization
- N-grams (Unigram, Bigram, Trigram)
- Text Normalization
- Stemming
- Lemmatization

[_read more..._ ](https://dev.to/chinhh/text-processing-techniques-in-nlp-1034)

**2. Linguistics**
- Part-of-Speech Tags
- Constituency Parsing
- Dependency Parsing
- Syntactic Parsing
- Semantic Analysis
- Lexical Semantics
- Coreference Resolution
- Chunking
- Entity Extraction/ Named Entity Recognition(NER)
- Named Entity Disambiguation/ Entity Linking
- Knowledge Graphs

**3. Word Embeddings**

**a. Frequency-based Word Embedding**
- One Hot Encoding
- Bag of Words or CountVectorizer()
- TFIDF of TFIDFVectorizer()
- Co-occurrence Matrix, Co-occurrence Vector
- Hashing Vectorizer

**b. Pretrained Word Embedding**
- Word2Vec (by Google): CBOW, Skip-Gram
- GloVe (by Stanford)
- fastText (by Facebook)

**4. Topic Modeling**
- Latent Semantic Analysis (LSA)
- Probabilistic Latent Semantic Analysis (pLSA)
- Latent Dirichlet Allocation (LDA)
- lda2Vec
- Non-Negative Matrix Factorization (NMF)

**5. NLP with Deep Learning**
- Machine Learning (Logistic Regression, SVM, Naïve Bayes)
- Embedding Layer
- Artificial Neural Network
- Deep Neural Network
- Convolution Neural Network
- RNN/LSTM/GRU
- Bi-RNN/Bi-LSTM/Bi-GRU
- Pretrained Language Models: ELMo, ULMFiT
- Sequence-to-Sequence/Encoder-Decoder
- Transformers (attention mechanism)
- Encoder-only Transformers: BERT
- Decoder-only Transformers: GPT
- Transfer Learning

**6. Example Use cases**
- Sentiment Analysis
- Question Answering
- Language Translation
- Text/Intent Classification
- Text Summarization
- Text Similarity
- Text Clustering
- Text Generation
- Chatbots (DialogFlow, RASA, Self-made Bots)

**7. Libraries**
- NLTK
- Spacy
- Gensim

**Conclusion**
Thank you very much for taking time to read this. I would really appreciate any comment in the comment section.
Enjoy🎉
Creating Single Sign on User & Access Management Service
Tags: sideprojects, architecture, microservices, opensource
Published: 2022-02-25 01:24:15

Before we proceed to creating the popular composable microservices. We would want to create a **Single Sign On Users & Access Management** Service. This service will manage users, organizations and serves as Single Sign On Module. This is an mandatory service to get it up and running before we proceed to develop other microservices.

Here is what this service in a nutshell is about:

- SSO serves as single sign on for other service applications (SSO Clients).
- SSO authenticate users on behalf of the SSO Clients.
- It follows the oAUTH framework.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/48swa49xuktr3skm4r78.png)
 
- It will manage organizations and it users.
- SSO Clients can sync organizations and its authorized users from it.
- Implement 2FA Authentication. (Google Authenticator)
- It will handle features like:
1. Forget & Resetting Password
2. Mandatory changing of credentials after a preset period.

Well all this are theory let's see how I actually implemented it:

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

I have implemented this service using **NODEJS with Express, REDIS, MongoDB & Google Authenticator** as cornerstone back-end stack. Front-end I use a **Core UI bootstrap admin** template as base.

The Token is store in the REDIS cache with expiry time of **2** mins.

We will discuss how to implement SSO client in my subsequent posts.
MaTeX
Published: 2022-02-25 02:05:18

I had a little fun in creating a little mate to LaTeX that looks simpler and when compiled, goes to `tex` then `pdf`. 

So why don't we look at some simple latex code and see how it looks like in MaTeX: 

```tex
% Latex Code
\documentclass{article}
\author{Mustafif}
\title{Latex Code}
\date{Feb 24 2022}
\usepackage{listings}

\begin{document}
   \maketitle
   \pagenumbering{arabic}
    \newpage
\end{document}
```

```matex
% Matex code 
documentclass: article
author: Mustafif 
title: Matex Code 
date: Feb 24 2022
import: listings 

document > begin
   maketitle;
   pagenumbering: arabic
   newpage;
document > end
```
You can see the following: 

- Environments are defined as `env > begin ... env > end`
- Elements are defined as `element: value`
- Literals are defined as `name;`

There are still lots to do in terms of the __"compiler"__ with error handling, optimizations, but here's the base of this simpler latex. 

To install, use cargo: 
```shell
$ cargo install matex
# To create new project
$ matex new <name>
# To compile project  
$ cd <name> && matex compile 
# To build pdf for matex file
$ matex build <name>
```

Please comment below what you think of the project, and any suggestions to improve it. In the coming future proper documentation will be added and the project will be added to [mkproj.com](http://mkproj.com) and in `mkpm-cl`
Creating SSO Clients services
Tags: javascript, opensource, architecture, programming
Published: 2022-02-25 01:34:36

Before you can start create the SSO Client, you would have to get SSO service up and running. Do read my post on the SSO User & Access Management Service.

While SSO service takes care of authentication, SSO Client is in charge of authorizations.

Here are some mechanism to manage the authorizations.

1. JWT session key for API calls
2. Role & Policies Management.

**Role & Policies Management**

Here is how I organize my entities and relationship:

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

Here are some of the underlying activities that is going on after the user successfully get AUTHENTICATED from SSO (All these are handle by the IAM service):

- Upon successful login. The Landing Page will do the follow:
- If he is “ROOT” role, no policies will applies.
- If he is of “IAM_USER” role, the server will retrieve the Organizations and its policies if any.  He will then choose the organization he wants to access. The respective organization’s policy will apply. 
- Next he will brought to the home page. The Menu he can access will be calculated and generated to his policies.
- He can switch organization while in the application. 
- In every page access, the **USER ID, PAGE and ENTITIES** will be passed to IAM service to determine the rights for every entities on the page. Default action for each entity is **USE, CREATE, VIEW, UPDATE & DUPLICATE**.

Here are some of the nice features I have implemented:

- Timeout of **5** mins of inactivity.
- After inactivity timeout, a further **20** seconds countdown to automatic logout. User can click continue to restart the timeout counter.
- Prohibits concurrent sessions for same user.

---

> 1. Every time a successful user login, the session key will be store in the local cookie and database at server side.
> 2. It means the latest session key will overwrite the older session key of user. The latest browser login will render the older browser session invalid.
> 3. Every time a page calls a API (attach the session key in cookies),  the API will compare session key to the database session key. If unmatched, means the session is invalid.
> 4. The Page will revoke the session and logout automatically is session key is invalid.

---

- Role and Policy management.
- Audit Logs with retaining policy of at least **360** days.
- User session key that will expire < **8** hours.

I have implemented all these SSO Client services using **NODEJS with Express, REDIS & MongoDB** as cornerstone back-end stack. Front-end I use a **Core UI bootstrap admin template** as base.
No Coding Or Technical Skills 
Tags: webdev, wordpress, bignner
Published: 2022-02-25 01:31:26

Did you know that at over half of websites that use content management systems use an open-source one?

That’s right! Everyone from small bloggers to huge country-sized corporations uses WordPress to manage their content.

The reach of WordPress goes far beyond its affiliated hosting service, WordPress.com.

Since its founding in 2003 WordPress has grown from a blogging tool to a full-on CMS that powers large swaths of the Internet.

But that’s not all… People around the world are making a living through WordPress and there are a lot of opportunities for developers to help businesses build sites with pleasing design and high functionality.

Now, the question is “How you can get started with WordPress and start earning?”

And Here’s the answer, “Simply by acquiring this Brand New ‘WordPress Bible’ HD Video Training Membership that will reveal all the crucial methods to get started with WordPress and website creation”.

Take a Look at what you are going to get inside Inside…

Module #1 – Learning WordPress Basics

Module #2 – Mastering WordPress

Module #3 – Building Landing Pages With Elementor

Module #4 – Building Ecommerce Sites On WordPress

Module #5 – Building Membership Sites On WordPress

Module #6 – Building LMS Sites On WordPress

Module #7 – Make Money With WordPress

We strongly urge you to check out the WordPress Bible Premium Membership on the market:

[==>Get access to this 130+ video training by clicking here](https://tinyurl.com/2p9y9d3z)

Here are just a few reasons why WordPress Bible Premium Membership is intrinsic for any business’ growth and success:

[+] WordPress has a 60.8% market share in the CMS market
[+] WordPress powers 14.7% of the world’s top websites
[+] 500+ sites are built each day using WordPress while only 60-80 per day are built on platforms like Shopify and Squarespace
[+] The WordPress Plugin Directory features 55,000+ plugins
[+] WooCommerce powers 22% of the top 1 million ecommerce sites in the world

And these facts understate the blooming popularity of WordPress.

Surely, by now you are jumping on your seats to get your hands on this Exclusive “WordPress Bible Premium Membership” HD 133 Video Training course…..

So without much ado, let us present A Key to your Success.

==>Book your copy of this Training.. [click here](https://tinyurl.com/2p9y9d3z) 
Sincerely,
All about Laptop repair
Tags: webdev, beginners, alllaptoprepair
Published: 2022-02-25 01:11:42

Knowing something about laptop repair can really be essential. When you own a laptop, and have used it for some time, it is always possible that something may go wrong with the device. As with any mechanical device, the chance of a failure occurring increases with the amount of time you use the device. In the case of a laptop the fault may not always even be mechanical. The software installed on your laptop could become corrupted, or your system could become infected with a virus. 
Any or all of these things could cause a malfunction in your system. That’s when you need reliable people to turn to who specialize in laptop repair. Some of the reasons your laptop could be malfunctioning include actual damage to the LCD screen. LCD screens are delicate objects which can become damage if the laptop is dropped. In case on an accident the LCD can crack or even break into pieces. However this isn’t hard to repair. All that is required is a simple replacement of the LCD, and your system will function as well as ever. 
This sort of simple replacement-repair hardly takes any time at all and you can have your laptop back to work on within twenty four hours or so. If your laptop is dropped, the case of the laptop itself can also become damage. This usually also involves a simple and easy replacement of the case itself. If the keys on your keyboard happen to be sticky they can usually easily be cleaned by a technician. Alternatively, you could probably even do it yourself. Be careful, though, that you don’t void the warranty by mistake. These are all minor issues. 
A more serious problem can occur if you happen to empty a large container of liquid on your laptop, instead. This is admittedly a serious issue. If this happens you need to shut of the power at once, and take the laptop to your dealer or laptop repair specialist. It’s actually quite possible to repair a laptop even after an accident of this sort. And always remember that even if the laptop is not repairable it’s certainly possible that a qualified technician will be able to recover your crucial data from the device. 
These are some of the issues that the average laptop owner may encounter. If you encounter any of these issues, remember that they are common enough problems, and usually easy to handle. Just contact your local dealer or laptop repair specialist and you have your laptop working perfectly again in no time at all.
**[Click Here](https://tinyurl.com/2p8c53ym)**
Day 537 : War
Tags: hiphop, code, coding, lifelongdev
Published: 2022-02-25 01:07:18

_liner notes_:
- Professional : Woke up to the news that yet another country has started to get bombed. Kind of got some work done. I don't understand the people in power of these countries.

- Personal : Hooked up the front end to send chat messages and questions to the database.

![mountainous coast of Kauai, HI, USA](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/63zg05vmwe2aqr8wnvi5.jpg)

Going to try and do some code and not listen to the news. Some people on the news seem happy that the war in Ukraine started. Not like the bombings in Somalia, Sudan, and other countries aren't enough.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube loFDn94oZJ0 %}
use routing in react js easily | react router v6 tutorial 😊👍
Tags: react, javascript, tutorial, beginners
Published: 2022-02-25 00:55:09


{% youtube Zrb0BPMNkOs %}
In this video, I have explained how to easily implement routing feature in your react project with the help of the react-router v6 package

Command:

`npm install react-router-dom`

`import {
  BrowserRouter as Router,
  Routes,
  Route,
  BrowserRouter,
} from "react-router-dom";
`
Niche Website Templates
Tags: bestcareer, beginners
Published: 2022-02-25 00:50:06

Hi,
Does your website look Dull, Tired or just plain Ugly?
Do your visitors think WOW! Or get me the HELL out of here?
Is your site Out of Date, Not Working, or Never Worked Properly?
Today we can fix it, and fix it good.
The solution is a brand new "Mighty Mini Website"
The Mighty Mini Website is a template based website package that
allows you to quickly and easily build a high quality website that
scream a top quality professional look.
It's provided with everything you need to setup a professional looking
website, all files, html, graphics, psds... and it also includes some 
awesome step by step videos showing you how to whip up a top site in minutes.
[Get Your New Website Now!](https://tinyurl.com/5d2jj9px)

Kind Regards
[Harry Tanwar]
API Diff - Compare in seconds two versions of 
your API
Tags: openapi, asyncapi, api, product
Published: 2022-02-25 00:27:28

With [Bump](https://bump.sh), you can easily track changes within your API documentation, between different versions. We wanted to give a glimpse of the magic behind Bump, with a tool that could compare two versions of an API: [API Diff](https://api-diff.io).

[API Diff](https://api-diff.io) provides a one-time check at any time. Think of it like a ‘git diff’ but way more efficient to outline the changes.

If you have any questions, feedback, or comments, let me know — we’d love to have a chat with you about the program and its features.

🚀 API Diff is now live on Product Hunt: https://www.producthunt.com/posts/api-diff
Here's How You Will Get REAL traffic, From Real Humans Back To Your Websites!

Tags: traffizion, software
Published: 2022-02-25 00:19:02

Do you know the one thing you need to generate and drive high-quality Real Human Traffic, who engage with your websites, on a consistent basis? 

A Software that actually works! :D 

We've got 100's of users of this software, who are praising the results they are getting.  

We are talking about, real traffic, real humans, engaging with content, clicking on offers, and creating a passive income for our users
.  
[Click here to learn more.](https://tinyurl.com/2p82hycw) Trafficzion is a software and method getting you real targeted traffic back to your websites .  Doesn't matter what niche you're in.  

Let me explain
Here’s how the Trafficzion works in 2 Steps:

Step 1: Connect your website to the Trafficzion Software
Step 2: Enter your Keywords or Tags

Trafficzion is a software and method promising you ONLY high-quality traffic

Software :  Bringing you Real Humans to any website you set up. 
Method:  Teaching you the secret method to getting the real traffic.
Monetization:  Teaching you how to monetize your websites for a passive income from the Free Targeted Traffic. 
Consistent Traffic which engages with your websites.  Any Niche. 

[Click here to check out this powerful revolutionary software  NOW:](https://tinyurl.com/2p82hycw) 

If you decide to skip this offer then you will pass on free targeted real human traffic, along with some amazing bonuses.

Act now as this is going to be a monthly recurring subscription.  It would be a shame to miss out on this one time off...offer

Regards
[Harry Tanwar]
How to Install Nginx on linux
Tags: nginx, linux, backend, tutorial
Published: 2022-02-25 00:01:47

Hello in this blog post i will show you how you can install Nginx on Linux. Be sure to like this post! Now let's get started!

**What you will need:**

- A machine that runs **Linux** like a raspberry pi

- Some Linux understanding

- Port forwarding

Start by opening your terminal like this

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

And type: 
`sudo apt update && sudo apt upgrade` 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdby92i9zu8jtrtiz534.png)

And when it's done type:
`sudo apt install nginx`
 ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36mljgyor6kjhfyu9cym.png)
 
Now if you wanna add Html and Css go to this directory:
`cd /var/www/html`
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9m24pa16swfsblk0t80o.png)

If you wanna create an html file or any file that you want do:
`touch index.html`

Okay so now when you know how to make files you would probably wanna know how to port forward so other people can visit your website. You'll need to go to your local router's IP like this:
`http://192.168.1.1`

There are great tutorials on YouTube how to port forward. There is a high chance i don't have the same Router as what you have. If you liked this Blog post be sure to Like it and send it to your friend's! stay tuned for more posts like this.