teleren/devto huggingface dataset:
Difference Between Function and Action in Dynamics World
Tags: dynamics365, dataverse
Published: 2021-05-07 06:45:47

I always forget which ones which and this does matter when we are coding against Xrm.WebAPI (JS). Also, it is a terrific interview question. 
 

##Function 

Functions are reusable blocks of code that do not have any side effects. Meaning after the execution of a function no record will be updated. `WhoAmI` is an example of a function. You would call the function with a `GET` and this is a very important feature of a function. Also to my understanding, you cannot create a custom function. Meaning all the functions are defined by MS. The list of all the functions are to be found [here] (https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/functions?view=dynamics-ce-odata-9) 

 

##Action 

Actions are blocks of reusable code that can or cannot have any side effects. (confusing much??). You can create custom actions and all the actions are called with a `POST`. An action can be bound to an entity and it is then called a *bound action*. An action can also be global and does not depend on any table and naturally, these are called *unbound action*. 

 

Both actions and functions are considered to be full-scale SDK message. Meaning you can register a plugin at various stages of action.  

 

 

More details can be found here, 

* [Functions](https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/use-web-api-functions)

* [Actions](https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/use-web-api-actions#unbound-actions)
Django - A python framework | 6 hours Course
Tags: python, django
Published: 2021-05-07 06:33:24

Django is the most famous Python web framework for perfectionists with deadlines.
Let's learn Django by creating a Bookstore app with user authentication, file uploading, reviews on books and many more features

{% youtube aY43fUGlB7E %}

🌟Django has many features 🌟

Ridiculously fast.
Fully loaded.
Reassuringly secure.
Exceedingly scalable.
Incredibly versatile.
Source code - https://github.com/bitfumes/django-course

🌟 Course Contents 🌟
⏳ (00:00:00) Intro and What we will Learn
⏳ (00:05:15) Install and Setup
⏳ (00:11:52) Start New Project
⏳ (00:18:42) File Structure
⏳ (00:25:52) Start New App
⏳ (00:33:10) Register App & URL
⏳ (00:44:47) Using Template
⏳ (00:51:49) Load Data from JSON file
⏳ (00:58:37) Design using Tailwindcss
⏳ (01:02:40) Dynamic Routing
⏳ (01:09:34) Template Filter and Tags
⏳ (01:16:19) Database Migration & Model
⏳ (01:26:56) Migration Update
⏳ (01:31:17) Query Filter & Create
⏳ (01:39:43) Show Data from Database
⏳ (01:44:39) Intro to Django Admin
⏳ (01:50:37) Django Admin CRUD
⏳ (01:58:42) Handle Not Found 404
⏳ (02:05:47) Form CSRF Token
⏳ (02:12:08) Store New Review
⏳ (02:23:37) Order by Review & Link Book
⏳ (02:31:21) Generic List View
⏳ (02:41:11) Generic Detail View
⏳ (02:46:41) Relationship in Django
⏳ (02:58:02) Template Inheritance
⏳ (03:05:56) Many to Many Relationship
⏳ (03:19:07) Query Many to Many Relationship
⏳ (03:26:29) Authentication Intro
⏳ (03:33:42) Login and Redirect User
⏳ (03:41:23) Using Middleware
⏳ (03:49:02) Logout a User
⏳ (03:58:50) Restrict user on template
⏳ (04:04:38) Connect user with Review
⏳ (04:14:02) Reset Password
⏳ (04:24:16) Email SMTP settings
⏳ (04:37:33) Image upload for Book
⏳ (04:48:21) Store image for Review
⏳ (04:55:54) Working with Django Forms
⏳ (05:05:55) Upload File with model form
⏳ (05:17:35) Prepare Django for deployment
⏳ (05:30:53) Deploy Django to Heroku
Why should property firms digitize their lease data?

Published: 2021-05-07 06:30:13

No company is safe from digital disruption, and also the property business is not an exception. Property has been a late adoptive parent of digitization compared to different industries like banking, retail and health care. However, there are varied applications like Real Estate Automated Document Processing software ( https://nuvento.com/intelligent-document-processing-software/ ), virtual tours, machine-controlled transactions and personalized services wherever digital technologies enhance the house shopping for expertise, whereas rising operational potency for property agents.

Why is digital transformation important in real estate?

To remain competitive in inflated competition, land firms ought to explore new structuring choices, improve operational performance and optimize portfolios to induce the most ROI. Reasons, why digital transformation is critical for land businesses, are:

Change in client behaviour and expectations: The approach individuals rummage around for property is dynamic. They like mobile or internet searches instead of hiring land brokers. And customers more and more initiate contact with brokers online. Therefore, the absence of a robust online presence means losing the possibility to attach with interested patrons and sellers.

Technology change: With the implementation of digital technologies like automation, firms will improve their operational efficiencies.

What are the key digital transformation trends/ technologies in real estate?


Business intelligence and a rise in information volumes.

The future of realty mobile application development is difficult to imagine while not business intelligence. Besides, flourishing app development shouldn't be separated from information that usually tends to grow at Associate in Nursing exponential rate. 

Virtual and augmented reality.

Another vast reality technology trend is computer games (VR.) With the introduction of VR/AR, the important estate is claimed to enter the third synthesis introducing the evolution of its technology, that allows a rise within the potency of physical spaces' management. Patrons are expected to use VR technology to look at homes benefitting from a spatial visual image while not even attending the chosen property.

Artificial intelligence algorithms assistance.

AI is another technological advancement to require an advantage within the realty race. Not solely are patrons and tenants turning into additional knowledgeable. However, additionally, the technology itself helps them. AI algorithms are a tool for matching deals with customers and increasing the financial gain potential for investors.

Smart homes.

Real estate and the Internet of things form, not surprisingly, a happy combination. Being a system of sensor-equipped devices, it gathers, analyzes, and uses digital information. Consequently, the effective use of knowledge is currently a universally competitive advantage. Not solely the important estate trade and multiple classes of economic reality will get pleasure from it. Victimization IoT scepters the ensuing intelligent building market in realty.
How to Get IP Address Information Using Python [2021]
Tags: python, ip, address, location
Published: 2021-05-07 06:29:47

An IP Address is a numeric label used by the Internet Series Provider (ISP) to identify you when you surf the Internet. It serves two main functions, host or network interface identification and location addressing. The IPv4 address consists of 32 bits. However, due to the rapid spread of the Internet, the 128-bit IPv6 address system was introduced.

The IP address obtained using the socket module is a static address. When you retrieve data over the Internet, it is obtained through the ISP. But that address is not open to the Internet. This is because when a request is made to provide a web page to the ISP, they will retrieve it from the Internet and deliver it to you. It will then give you another public address. It’s a dynamic address. Websites identify you by that address. Location cannot be obtained correctly from this Dynamic IP Address. It then shows you the approximate location of your ISP. In this section, we will introduce you to a new Third Party API. But there are a number of things you need to keep in mind. No one can hide on the internet. No matter how many tricks you use like VPN, Proxy Chain, it can only delay finding out about you. Because all these systems were made by man. Therefore, do not act in a way that harms anyone’s privacy. [Read More](https://ilabacademy.blogspot.com/2021/05/how-to-get-ip-address-location-using-python.html)
Sphere.js creating http servers for beginners
Tags: http
Published: 2021-05-07 06:28:10

## What is Sphere.js?
Sphere.js is designed to create these simple http servers. So what is an http server? An HTTP server is a small and simple server that can be created in node.js. In Node.js, you can do this mainly through http, express.js and socket.io. It takes a lot of time to learn these. However, sphere.js is not like that. This framework is mainly recommended for beginners.
## Using sphere.js
Let’s download this framework first and we will do this using github cli: `gh repo clone Jahongir2007/sphere.js`
Creating simple http server in Sphere.js:
```js
const sphere = require("./sphere"); // importing sphere.js
const app = sphere; // creating sphere application
app.options({ // creating http server
   head: 200, // server head
   send: "Hello, world!", // getting text for http server
   listen: 8000 // listening http server
});
```
Run this:
```
node test.js
```
The result:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3sb2ms0de8phgw3w5yms.png)
Python if else
Published: 2021-05-07 06:24:57

There comes situations in real life when we need to make some decisions and based on these decisions, we decide what should we do next. Similar situations arises in programming also where we need to make some decisions and based on these decisions we will execute the next block of code.

Decision making statements in programming languages decides the direction of flow of program execution. Decision making statements available in python are:

    if statement
    if..else statements
    nested if statements
    if-elif ladder
    Short Hand if statement
    Short Hand if-else statement
if statement

if statement is the most simple decision making statement. It is used to decide whether a certain statement or block of statements will be executed or not i.e if a certain condition is true then a block of statement is executed otherwise not.

Syntax:
if condition:           
   # Statements to execute if
   # condition is true

Here, condition after evaluation will be either true or false. if statement accepts boolean values – if the value is true then it will execute the block of statements below it otherwise not. We can use condition with bracket ‘(‘ ‘)’ also.
Flowchart:-
![if-statement](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ba8w5bti785x81jeadoc.jpg)

# python program to illustrate If statement
  
i = 10
if (i > 15):
   print ("10 is less than 15")
print ("I am Not in if")

Output:

I am Not in if

if- else


if (condition):
    # Executes this block if
    # condition is true
else:
    # Executes this block if
    # condition is false
Flow Chart:-


 ![if-else](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/efzhxl0vbszjllrcpn95.jpg)
Angular : How to run Angular CLI using localhost over https?
Tags: webdev, angular, node
Published: 2021-05-07 06:17:52

The easiest method you can find is to install browser-sync as a dev dependency.
```
npm install browser-sync --save-dev
```
This will install a self-signed certificate and key for localhost, which you can now point to when adding the --ssl
switches.

Open your package.json in root folder of your angular project and change the start script to the following:

```
ng serve --ssl true --ssl-key /node_modules/browser-sync/lib/server/certs/server.key --ssl-cert /node_modules/browser-sync/lib/server/certs/server.crt
```
Now, when you call ng start NPM will run ng serve with the additional SSL switches, and serve your site under HTTPS (e.g. https://localhost:4200).

<a href="https://www.buymeacoffee.com/rkycom" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>

With all that being said, I highly recommend you keep learning!

Thank you for reading this article. Please feel free to connect with me on [LinkedIn](https://www.linkedin.com/in/www-rajeshkumaryadav-com/) and [Twitter](https://twitter.com/rky_com).
INTERNET OF THINGS (IoT)
Tags: iot
Published: 2021-05-07 06:00:55

The Internet of things (IoT) describes the network of physical objects or “things” that are embedded with sensors, software, electronics, and other technologies to connect and exchange data with other devices and systems over the Internet.![WhatsApp Image 2021-05-07 at 11.26.01](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sr5ewzars5eger8l08wl.jpeg)

#THE FLAVOUR OF THE INTERNET OF THINGS 

The alarm rings. As you open your eyes blearily, you see that it's five minutes later than your usual wake-up time. The clock has checked the train times online, and your train must be delayed, so it lets you sleep in a little longer.

In your kitchen, a blinking light reminds you it's time to take your tablets. If you forget, the medicine bottle cap goes online and emails your doctor to let her know.

On your way out of the house, you catch a glow in the corner of your eye. Your umbrella handle is lit up, which means that it has checked the BBC weather reports and predicts rain. You sigh and pick it up.


#THE STRUCTURE OF IOT 

The IoT can be viewed as a gigantic network consisting of networks of devices and computers connected through a series of intermediate technologies where numerous technologies like wireless connections may act as enablers of this connectivity.

#What does it mean to "connect an object to the Internet"? "sensors" and "actuators"

![WhatsApp Image 2021-05-07 at 11.40.22](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9y9rlbcfg4r25laf96ds.jpeg)
 ![WhatsApp Image 2021-05-07 at 11.42.44](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l60y0hj814es68zirkpa.jpeg)

#AN EQUATION FOR THE INTERNET OF THINGS :
          

Physical Object + Controller, Sensors, and Actuators +Internet = Internet of Things(IoT) 

##ENCHANTED OBJECTS

. The best known of Arthur C. Clarke's "three laws of prediction" states "Any sufficiently advanced technology is indistinguishable from magic".

• Enchanted objects are everyday things that talk to us or each other, and in some ways make our lives better, delight us, and give an emotional connection.

Enchanted Objects are ordinary things, made extraordinary.

• Enchanted Objects are ordinary things, augmented, connected.

#ACCORDING TO DAVID ROSE :

"Enchanted objects start as ordinary things- a pen, a shoe, a table, a wallet, a light bulb, etc., The ordinary things are then augmented and enhanced through the use of emerging technologies such as sensors, actuators, wireless connection, and embedded processing - so that it becomes extraordinary".

![WhatsApp Image 2021-05-07 at 11.53.48](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vc2vxunsm8n6vqdt76nc.jpeg)
Brute Force Tool 🔓 WordPress , Joomla , DruPal , OpenCart , Magento
Tags: performance, perl
Published: 2021-05-07 05:45:12

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rjswiau1dqsplfssewn.png)

Simple brute force script
[1] WordPress (Auto Detect Username)
[2] Joomla
[3] DruPal
[4] OpenCart (Coming Soon)
[5] Magento
[6] All (Auto Detect CMS)

Usage
Short Form	Long Form	Description
-l	         --list	         websites list
-p	         --passwords	 Passwords list


Example
perl bprute.pl -l list.txt -p passwords.txt

Installation Linux
git clone https://github.com/penucuriCode/bprute.git
cd bprute
perl bprute.pl -l list.txt -p passwords.txt

 
Installation Android
Download Termux

cpan install LWP::UserAgent
cpan install HTTP::Request
git clone https://github.com/penucuriCode/bprute
cd bprute
perl bprute.pl -l list.txt -p passwords.txt 


Installation Windows
Download Perl
Download bprute
Extract bprute into Desktop
Open CMD and type the following commands:
cd Desktop/bprute-master/
perl bprute.pl -l list.txt -p passwords.txt


Current version is 2.1 What's New
• speed up
• Bug fixes
How can you improve your code quality?
Tags: codereview, codequality, programming, codenewbie
Published: 2021-05-07 05:38:19

When producing good software, the quality of code exhibited during the process of coding plays a huge role in determining the end product. Sole developers, teams, and managers who are hired are expected to keep up certain simple disciplines and use dedicated tools where suitable to improve their code quality.

In this article, we are going to look at a few points a developer or one in charge of managing the end product would put into consideration to ensure good code quality.

First, we start by defining what good quality code is. If it can be read and understood at once, has minimal bugs, follows standard code rules, and successfully does what it has been built to do, then that code is of good quality.

Things like code reviews, tools, testing, management, code styles, and standards, among others, make the foundation for a developer to count on if he/she is thinking of an excellent product. For example, a software engineer manager (the management) responsible for checking the code quality could come up with organizational systematic measures to encourage the developers to maintain quality code.

Learn more: https://duecode.io/blog/how-can-i-improve-my-code-quality/
Express JS Hello World
Tags: express, node, npm, javascript
Published: 2021-05-07 05:21:36

#Install NodeJS
First thing we need to do is prepare an environnement for Express to run.
 We are going to [install NodeJS](https://nodejs.org/en/download/) and follow the installation instructions.
![Web capture_7-5-2021_2217_nodejs.org](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kb3sxu4jc7rh9hh1f8r5.jpeg)

#Set up a workspace and start a project
Once we have installed Node.js and Node Package Manager (NPM) which comes preinstalled with it on our machine, let's open up a terminal window (or CMD, on Windows) in the desired folder or use the following command to create a folder and use it as a workspace:

```shell
mkdir ./hello_world
```
```shell 
cd ./hello_world
```

Now, we are ready to start our first application, to do that, type in the following command:
```shell
npm init -y
```
What it basically does is create a file named `package.json` that contains all the information about our project and its dependencies.
Just in case you're still wondering what NPM is, here's a brief definition:
> npm is the pre-installed package manager for the Node.js server platform. It installs Node.js programs from the npm registry, organizing the installation and management of third-party Node.js programs

#Install Express
Next, we need to install express module using NPM via the command:
```shell
npm install express --save
```

Now all we need is to create our main script, we'll be naming it `index.js` since that's the default name (other conventional names can be `app.js` or `server.js`).

We can create a new empty file from the terminal using the following command:
```shell
touch index.js
```

Let's open our newly created file in any IDE or text editor (`Notepad`, `Notepad++`, `Atom` ...) but I would recommend using a sophisticated IDE like `VS Code` and let's type in the following lines in order:
```JSX
const express = require('express');
```
The first line would tell our app to import the module we are using (express).
```JSX
const app = express();
```
This second line let us define express as a function

After that we need to define something called "a route" to the root of our website that will let us send an HTTP request to our server and GET a response that says `Hello World!`:
```JSX
app.get('/', (req, res) => {
  res.send('Hello World!');
});
```

Last thing we need to do is instruct our app to be listening on a port, for example port 3000:
```JSX
app.listen(3000)
```

#Run the server app
Now let's head back to our terminal window and type in the following command which will compile our code and start our server.
```shell
node ./index.js
```

#Check if it works
Finally, we can load [http://localhost:3000/](http://localhost:3000/) in a browser to see the result.

![Hello World Screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/02e946etr2y67u925f6p.png)

#Final words
Don't hesitate to leave any questions you may have for me in the comments. I'll be pleased to reply.
Effective Estimation by Uncle Bob
Tags: estimation, scrum, agile, estimate
Published: 2021-05-07 05:20:23

After sharing my frustration about project estimate on twitter

{% twitter 1389199967533809667 %}

My friend @cherif_b has shared with me a good presentation Effective Estimation presented by @unclebob in YOW! Conferences
 
{% twitter 1389630399924539393 %}

Here you will find a summary according my understanding, let's go...

The estimate should have three characteristics:


-	To be honest is the hardest, you have to be able to communicate the bad news for the top management even if they don’t like the information. Because your image is at stake, if you are honest, you will be trustworthy, and this is the best thing in the relationship between the company and you.


-	You must be accurate: I will finish the project or task at the end of the universe, yes, it’s accurate, but you have to give something logical and acceptable.


-	Don’t be precise. Imagine you said: “it will get it done in two days, from now it’s 10 AM, It will be done by tomorrow at 04 PM”, so if you can’t achieve your task, it will be hard to convince them, they lose the trust they give you.

As you see it’s very hard to estimate and anyone can say it’s easy so…
 

Uncle Bob suggested to give a range for an estimate, you have to give an interval estimate, now you can get a good estimate applying these 3 principal characteristics of Effective estimation.


![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lhe82d6vcuf9kkv6hu5x.jpeg)
AI AND CLOUD
Published: 2021-05-07 05:09:16

AI and the cloud go together in today’s technological ventures like peas and carrots. Digital assistants like Apple Siri, Google Home and Amazon Alexa have penetrated every aspect of our lives, from industries to communities and even our homes. Tasks such as ordering online, using a household fixture/appliance, making an appointment, listening to music, asking a question, and even communicating with someone over text or calling them directly can now be done using digital assistants that were created using artificial intelligence methods and cloud resources.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3zbsbtmq0k757snqa28n.png)

For businesses, cloud computing has offered, and continues to offer the ability to scale operations in an effective and efficient manner. Computing resources can be replicated with a click of a button to scale up or down as needed. Extra memory and faster processors can be added quickly; large amounts of data (i.e., gigabytes, petabytes and even higher) can be used in a single database by simply provisioning more memory; new software can be tested and used throughout an organization more efficiently; and so much more.

Cloud services such as IBM Cloud Computing, Amazon Web Services, Google Cloud, and Microsoft Azure all provide pre-trained and ready to use machine learning, deep learning and other artificial intelligence models, algorithms and services for businesses to use in their data analytics process. This gives even small businesses the ability to access powerful models that have been trained on millions and even billions of rows of data at a fraction of the cost. This way you can start off on a cloud based service until an on-premise based AI workstation, server or cluster makes more financial sense and allows you to keep your data under your full control.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gy9jhhtori0gvwywzf50.jpg)