teleren/devto huggingface dataset:
Salesforce Admin Learning - Part 1
Tags: salesforce, admin, cloud, beginners
Published: 2021-02-05 07:51:29

## What is Salesforce?
Salesforce is a customer relationship management solution that brings companies and customers together. It's one integrated CRM platform that gives all your departments — including marketing, sales, commerce, and service — a single, shared view of every customer.

## What is App in Salesforce ?

App is a collection of Tabs that work as unit to provide functionality.
There are two types of Apps
1) Standard Apps - Apps that comes with Salesforce instance byDefault.
2) Custom Apps- Apps that are build to meet the specific business need.

**Note** You can access app from app launcher.

## What is Tab?
Tab is a logical entery point to the object.
Tabs help users to view the information stored in object. It displays objects data and other content.

######steps to create
setup=>quick find type Tabs=>tabs=>Custom Object tabs

#####Types of tabs
1) Custom Object Tabs
2) Web Tabs
3) Visualforce Tabs
4) Lightning Page Tabs

####Tabs Visibility
**1)Default On:** Tab would appear on the top bar along with other visible tabs.
**2)Default Off:**
Tab will be available by clicking on “+” symbol at the end of all visible tabs on top bar.
**3) Tab Hidden:**
If the tab is hidden then it will neither be visible on the top bar nor by clicking on the “+” symbol.

**Note** We can control the Tab visibility based on the APP


## What is Objects?
In relational database, data is stored in tables. Each table comprises of rows and columns.
In salesforce, we use object to store data specific to your organization. Each object contains many fields. Each object can connect each other using realtionship fields.

Database Columns ==> fields 
Database rows ==> records 

There are two types of objects:
##### 1) Standard Objects  
Objects available within Salesforce by default example: Accounts, contacts etc.
##### 2) Custom Objects 
Objects created by us to store information unique to organization.
All custom object name ends with __C
######steps to create
setup=>object Manager =>Create=>Custom Object

**Note** Three field created by default while creating object 
a) CreatedBy
b)LastModifiedBy 
c)Owner


## What is Fields?
Fields store data for a particular object in a record field in the object.
Example- Employee__C is my object and under this i want to store data like name, age, gender for that i will create a field under this object

######steps to create
setup=>object Manager =>Select your object(Employee)=>select Fields & Relationships=>New

**Note** While Creating fields we set Field Level Security which give access to profiles to access the fields (Visible-edit, read-only)
How to add extra space in partition using clonezilla
Tags: clonezilla, diskcloning, clone, computerscience
Published: 2021-02-05 07:51:03

I made a backup of my 120GB SSD (BOOT+WINDOWS+RECOVERY partition) with CLONEZILLA. While I restored the backup on my 500GB SSD I am still getting the Three Partition along with ~300GB unallocated space. Is there a way that instead of getting the unallocated space CLONEZILLA could have added the unused space to the partitions ? Or Is there a manual way to do so.

120GB = BOOT+WINDOWS+RECOVERY

500GB = BOOT + WINDOWS + RECOVERY + Unallocated Space.

Please Help. Anyone.
Find element in array and move it to the 1st position
Tags: javascript
Published: 2021-02-05 07:50:50

Surely there are several way to do it, this is just one of them. Let me know if you know a better way to do it 💪🏻

To find an element into an array and move to be the first, you have to:

- get the index of the founded item using [`findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex)

> 📚 The `findIndex()` method returns the index of the **first** element in the array that satisfies the provided testing function.

```js
const arr = [1, 2, 3, '🐱', 4, 5, 6, 7, 8, 9 , 10]
const itemToFind = '🐱'

const foundIdx = arr.findIndex(el => el == itemToFind) // -> foundIdx = 3
```

- remove the item in that specific position using [`splice()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice)

> 📚 The `splice()` method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place.


```js
arr.splice(foundIdx, 1)

// splice(start[, deleteCount[, item1[, item2[, ...]]]])
// start = foundIdx
// deleteCount = 1 = number of elements in the array to remove from start
```

- add the item to the 1st position using [`unshift()`](https://developer.mozilla.org/en-us/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift)

> 📚 The `unshift()` method adds one or more elements to the beginning of an array and returns the new length of the array.

```js
arr.unshift(itemToFind)
```

_Output_

```js
console.log(arr)

// (11) ["🐱", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
```

To sum up:

```js
const arr = [1, 2, 3, '🐱', 4, 5, 6, 7, 8, 9 , 10]
const itemToFind = '🐱'

const foundIdx = arr.findIndex(el => el == itemToFind)
arr.splice(foundIdx, 1)
arr.unshift(itemToFind)
```

> 📚 More info
>
> [Moving Element In An Array From Index To Another](https://dev.to/jalal246/moving-element-in-an-array-from-index-to-another-464b)
Insert Superscripts and Subscripts in Word using Java
Tags: java, word, subsuperscript
Published: 2021-02-05 07:42:46

Superscript and subscript are characters that appear slightly above or below your regular text and are often used in mathematical as well as chemical formulas. This article will demonstrate how to insert superscripts and subscripts in a Word document using a 3rd party free API.

**Installation** (2 Methods)
● Download the free API ([Free Spire.Doc for Java](https://www.e-iceblue.com/Download/doc-for-java-free.html)) and unzip it. Then add the Spire.Doc.jar file to your Java application as dependency.

● You can also 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.doc.free</artifactId>
      <version>3.9.0</version>
   </dependency>
</dependencies>
```

**Relevant Code Snippet**
```java
import com.spire.doc.*;
import com.spire.doc.documents.BreakType;
import com.spire.doc.documents.Paragraph;
import com.spire.doc.documents.SubSuperScript;

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

        //Create a Document instance
        Document doc = new Document();
        //Add a section
        Section sec = doc.addSection();

        //Add a paragraph
        Paragraph para = sec.addParagraph();

        //Insert text and set some of the characters as superscript
        para.appendText("A");
        para.appendText("2").getCharacterFormat().setSubSuperScript(SubSuperScript.Super_Script);
        para.appendText("+B");
        para.appendText("2").getCharacterFormat().setSubSuperScript(SubSuperScript.Super_Script);
        para.appendText("=C");
        para.appendText("2").getCharacterFormat().setSubSuperScript(SubSuperScript.Super_Script);

        //Add a line break
        para.appendBreak(BreakType.Line_Break);

       //Insert text and set some of the characters as subscript
        para.appendText("H");
        para.appendText("2").getCharacterFormat().setSubSuperScript(SubSuperScript.Sub_Script);
        para.appendText("O");

        //Save the document
        doc.saveToFile("InsertSubSuperScript.docx", FileFormat.Docx_2013);
        doc.dispose();
    }
}
```

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/5a4yen33a8r8yrc60bfa.png)
API Testing using vREST NG - Getting Help on vREST NG
Tags: testing, api, vrestng, vrestio
Published: 2021-02-05 07:28:28

Watch our next video in the video series "API Testing using vREST NG". This video explains how you may get help from the team and community if you get stuck while using vREST NG.

Video Link: https://youtu.be/9swdCeoDi50

Playlist: https://youtube.com/playlist?list=PLmua155_WrDzt1AbB6iV5Lsw_Z7QrzZZ0

If you found the video helpful then please share it with your friends and colleagues.

From next week, we will start videos related to vREST NG Application, so stay tuned with us.
Is DataCamp Good for Data Science in 2021?
Tags: datascience, machinelearning, analytics, analyst
Published: 2021-02-05 06:30:08

**"Is DataCamp Good for Data Science"?** This is the common question many data science enthusiasts have. Right…? That’s why in this article, I am gonna clear your all doubts regarding DataCamp.
 
This article is my analysis of what is good and bad in DataCamp for data science learners. And **"Is DataCamp Good for Data Science"?**

I hope this article will help you to decide whether you should go and buy DataCamp or not. So, without any further ado, let’s get started-

##**What is DataCamp?**

DataCamp is an **online learning platform specially dedicated to data science.** It is based on self-paced learning and has **interactive courses, projects, and practice assignments** in various programming languages such as **Python, R, Sheets, SQL, and Shell.**

DataCamp is founded by **Belgian data scientists Jonathan Cornelissen, Martijn Theuwissen, and Dieter De Mesmaeker in 2014.**

Now let’s cover the most important question that is- **"Is DataCamp Good for Data Science"?**
**[Click to continue reading...](https://www.mltut.com/is-datacamp-good-for-learning-data-science/#is-datacamp-worth-it-or-not)**
The 4 step problem solving process.
Tags: coding, greece
Published: 2021-02-05 05:52:19

Here are the steps to approach a problem when programming and how to solve it.You need to code slowly, yet effectively with no mistakes. This is the 4 step process:

Think of the problem (Have your ever solved anything familiar, do you see for the first time the problem ?)

Read documentation on things you think you don’t know.

Design on a piece of paper your though process

Start coding , slowly.

## Why you should take this approach ?

Remember it is better to spent 30 minutes thinking and reading docs and 1 hour coding, rather than spent 0 minutes thinking and 45 minutes of coding. That’s why if you take the second approach, you will end up refactoring for another 2 hours afterwards. That is not even the wurst part. If another developer tries to approach the same project one month later he will understand nothing due to lack clean and readable code. 

The only time you may not need to take this approach is when you’ve done in the past the same thing and you know exactly what to do or you have years of experience.

## Here’s an example.

My manager told me to create a registration page that the user needs to provide his information to register.

**What are the things I need to create this page ?**

- I need a form to capture the user data( email, username, password )

- I need to save the data in an object and send them to the API( localhost:2233/user/register )

- I need to validate the two passwords and see if they are the same if not through an error

- I need to capture the error from the form to see if the password is wrong or the email does not exist.

- If the password is correct redirect the user to dashboard and save the session id.

- I need to create loading states for better UX

As you can see I break the process in small parts in chronological order. If needed I can design on paper small wire-frames of what I want.

![wireframing](https://dev-to-uploads.s3.amazonaws.com/i/0i0xcvrhz4ef8hay1346.jpg)

Thanks for reading the article,
hope you have a nice day!

Check me out on:
[Linkedin](https://www.linkedin.com/in/sotiris-kourouklis-8a52349b/)
[Github](https://github.com/AkisKourouklis)
DOM Manipulation in React
Tags: webdev, javascript, react, codenewbie
Published: 2021-02-05 05:46:49


This React series will cover everything and will take you from beginner to intermediate in React and JavaScript. Latest post regarding DOM Manipulation let's know the process...

---

## DOM Manipulation

**DOM Manipulation** is the process by which one can dynamically change the content of the web page. Working with DOM should be fairly easy and quick as it is always tree-structured, traversing the DOM is easy. 

In React, changes are made to the `Virtual DOM` and then synced to the React DOM. This process is call **Reconciliation**. React can figure out which objects have been changed, and this process is called drifting. 

---

### Process of DOM manipulation 

- React will update the Virtual DOM
- The previous state virtual DOM will then be compared with the updated Virtual DOM, to identify what has been changed in the objects. This is done using the **Diffing Algorithm**. 
- The changed objects will get updated on the Real DOM. 

#### Example of Diffing Algorithm

- When the root element is different

  ```react
  // Old version
  <div><Tree/></div>
  
  // New update
  <span><Tree/></span>
  ```

  React will **delete the tree**, and rebuild the entire tree again. 

- When the Attribute is changed in the element

  ```React
  // Old
  <span id="span1" />
  
  //New
  <span id="span2" />
  ```

  Only the difference will be found in the attribute and will be changed accordingly. 

- New child element added at the end

  ```react
  // old
  <ul>
      <li>Child1</li>
      <li>Child2</li>
  </ul>
  
  //New
  <ul>
      <li>Child1</li>
      <li>Child2</li>
      <li>Child3</li>
  </ul>
  ```

  The new element will be added to the end of the list. 

- New element added at the beginning of the list

  ```react
  // Old 
  <ul>
      <li>Child1</li>
      <li>Child2</li>
  </ul>
  
  //New
  <ul>
      <li>Child3</li>
      <li>Child1</li>
      <li>Child2</li>
  </ul>
  ```

As the new element is added to the beginning it will be rebuilding the entire list again. 

---

☕Thanks For Reading | Happy Coding🤨

Get weekly newsletter of amazing articles I posted this week and some offers or announcement. Subscribe from <a href="https://mailchi.mp/9f73b65b9c38/rahulism" target="_blank">Here</a>

<a href="https://www.buymeacoffee.com/rahxuls" target="_blank"> <img src="https://res.cloudinary.com/rahulism1/image/upload/v1608182430/bmc_nbxakd.png"></a>
Transition Challenge 🥊
Tags: css, todayilearned, tutorial, codenewbie
Published: 2021-02-05 05:32:26

Hey coding people, hope you guys doing well in your journey!

This post is a part of our "21 Days of CSS animation post"

In this, I have taken a challenge and made this transition effect. If you guys also interested to use or implement your knowledge you can also take this challenge and please share your codepen link in the comment section :)

{% codepen https://codepen.io/atulcodex/pen/eYBpWaE %}
Tools Every Developer Should Know and Use
Tags: webdev, productivity, career, devjournal
Published: 2021-02-05 05:17:26

`SO FAR SO GOOD` 
I hope your Web Dev journey sounds like that.
Well if `yes`, then I have something that can make good to great and,
if `no`, then don't worry folks these tools will make that good.

I have some fantastic Chrome Extensions and Websites that can make your life way easier as a web developer. I use these tools and they are amazing, secure, and time-saving.

__Note: I highly encourage you to learn basics(HTML, CSS, JS), then move towards using these tools.__

<h2>Websites</h2>
* [Uxwing](https://uxwing.com/): For Free PNG and SVG icons for your projects.
* [Unsplash](https://unsplash.com/): For Wallpapers and Images of different sizes.
* [Jsonplaceholder](https://jsonplaceholder.typicode.com/) : For JSON free API.
* [lighthouse](https://developers.google.com/web/tools/lighthouse/): Lighthouse is an open-source, automated tool for improving the quality of web pages. You can run it against any web page, public, or requiring authentication. It has audits for performance, accessibility, progressive web apps, SEO, and more.
* [Css-tricks](https://css-tricks.com/): Name suggests what it does :) _fantastic css articles_
* [css-box-shadow](https://brumm.af/shadows): Create box shadows in an instant, do check out front-end developers.
* [css-gradient](https://cssgradient.io/): Create gradient real quick and easy.
* [Sharingbuttons.io](https://sharingbuttons.io/): Super fast and easy Social Media Sharing Buttons. No JavaScript. No tracking. Super Helpful.
* [convert CSS to JS](https://css2js.dotenv.dev/): Convert CSS to JS and VICE VERSA.

<h2>Extensions</h2>
* [Wappalyzer](https://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg): Wappalyzer is a technology profiler that shows you what websites are built with. Find out what CMS a website is using, as well as any framework, eCommerce platform, JavaScript libraries, and many more.
* [Adblock](https://chrome.google.com/webstore/detail/adblock-for-youtube/cmedhionkhpnakcndndgjdbohmhepckk): Enough of Cringy and attention deflecting ads.
* [WhatFont](https://chrome.google.com/webstore/detail/whatfont/jabopobgcpjmedljpbcaablpmlmfcogm): The easiest way to identify fonts on web pages.
* [ColorZilla](https://chrome.google.com/webstore/detail/colorzilla/bhlhnicpbhignbdhedgjhgdocnmhomnp): Advanced Eyedropper, Color Picker, Gradient Generator, and other colorful goodies.
* [Imageye - Image downloader](https://chrome.google.com/webstore/detail/image-downloader-imageye/agionbommeaifngbhincahgmoflcikhm): Find and download all images on a web page. The best tool, I use while cloning any website for practice.

If you have any tool to share, then do write it in the comments 
and if you like my work then follow me on
Twitter 😊 [Himanshu](https://twitter.com/Himansh34258296)
Linkedin 😄 [thehimanshutiwari](https://www.linkedin.com/in/thehimanshutiwari/)
Why Rotating Proxies Are The Best Way To Overcome IP Blocks?
Published: 2021-02-05 05:09:05

If you ever been involved in a web scraping project of any size, you would know about the inevitable problem or running into IP blocks.

It is especially true if you are trying to scrape any of the big networks like Amazon, Yelp, Twitter, Craigslist, Instagram, Facebook, etc.

Programmers who are new to web scraping are many times so focussed on getting the scraping XPath selectors or Regex right, and it is so much fun that they have mostly ill-prepared for what's to come next.

None of the IP blocks problems exist at a low scale, so the programmer takes up all the time on getting other things ready. Whereas in our experience of doing hundreds (now thousands after launching Scraper API) of web scraping projects of all sizes, one of the top problems to solve is the inevitable IP blocks.

Some programmers initially have some success with a couple of free proxies they found on the internet. Then they discover the beauty of User-Agent-Spoofing, where they pretend to be a different web browser each time and get past the first hurdle. Then the inevitable happens—a complete IP block of all their IPs.

Investing in a private rotating proxy service like Proxies API can most of the time make the difference between a successful and headache-free web scraping project, which gets the job done consistently.

Plus, with the 1000 free API calls running an offer, you have almost nothing to lose by using our rotating proxy and comparing notes. It only takes one line of integration to its hardly disruptive.


Our rotating proxy server Proxies API provides a simple API that can solve all IP Blocking problems instantly.

With millions of high speed rotating proxies located all over the world,

With our automatic IP rotation

With our automatic User-Agent-String rotation (which simulates requests from different, valid web browsers and web browser versions)

With our automatic CAPTCHA solving technology,

Hundreds of our customers have successfully solved the headache of IP blocks with a simple API.


A simple API can access the whole thing like below in any programming language.
How to handle user variable in a Makefile
Tags: todayilearned, makefile, unix, shell
Published: 2021-02-05 10:14:09

---
title: How to handle user variable in a Makefile
published: true
date: 2021-02-05 05:00:00 UTC
tags: todayIlearned,Makefile,unix,shell
canonical_url: https://10xlearner.com/2021/02/05/how-to-handle-user-variable-in-a-makefile/
---

Hello ! I’m Xavier Jouvenot and in this small post, we are going to see how to handle user variable in a Makefile.

_Self promotion_: You can find other articles on my [website](www.10xlearner.com) 😉

## Problematic

When creating some make commands in your Makefile, you may want to have some parameters accessible to the user, so that he could either pass some inputs to your command, or specify some elements for which you will have set some default value.

There are several ways to do it, but we are going to see the simplest and most powerful solution to me. Hopefully, you will find it convenient too 😉

## Solution

Let’s dive right in the Makefile and see what defining a user variable looks like:

```
VARIABLE ?= DEFAULT_VALUE

command:
    echo "${VARIABLE}"
```

Pretty simple, isn’t it ?! Yet, if you don’t know it exists, you can’t guess it 😆
Everything is done by the operator `?=` which is going to set our `VARIABLE` only if it has not been defined before.

Now, all we need is to pass a value to the variable like that:

```
make foo # uses the default value specified in the Makefile for VARIABLE
make foo VARIABLE= # set VARIABLE to an empty value
make foo VARIABLE=SPECIFIC_VALUE # set VARIABLE to a SPECIFIC_VALUE
```

And voilà now, you know that the operator `?=` exists and how to use it 😉

* * *

Thank you all for reading this article, And until my next article, have a splendid day 😉

## Interesting links

- [Makefile definition on wikipedia](https://en.wikipedia.org/wiki/Makefile)
- [GNU manual – operator ?=](https://www.gnu.org/software/make/manual/make.html#index-_003f_003d)