teleren/devto huggingface dataset:
GraalVM 20.3.0 LTS Released
Tags: java, graalvm, polyglot, node
Published: 2020-11-18 05:46:53

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

Today we’re happy to announce the GraalVM 20.3.0 release. This is the final feature release of 2020 and if you’re running GraalVM 20.x we recommend taking a look and updating to 20.3. It is also the first long-term support (LTS) release for GraalVM Enterprise. If you’re running one of the 19.x releases or earlier 20.x releases please consider upgrading to 20.3.0 in the near future.

As with every release, we’re greatly thankful to the wonderful GraalVM community for all the feedback, for the collaboration and the discussions of the issues, for sending pull requests and updates to the docs, and last but not least, for spreading the word about the GraalVM project and how it helps your project. Together we make the GraalVM ecosystem extraordinary!

We want to highlight some of the most notable changes in GraalVM 20.3.0. There are many components in GraalVM and every release brings improvements and fixes to all of them. So for a more detailed list of changes please refer to this post [GraalVM 20.3 is available by Oleg Šelajev](https://link.medium.com/9h4Mh77Dubb)
Elasticsearch Tune for indexing speed
Tags: elasticsearch, rails, ruby
Published: 2020-11-18 05:27:59

### Increase the refresh interval and disable replicas
![Screenshot from 2020-11-18 10-33-54](https://dev-to-uploads.s3.amazonaws.com/i/fjalvefrzfcwom6uxhov.png)

* On some projects, indexing happens at a different pace, not while the application is in use. In my current project, we follow a similar approach. So I'm disabling the refresh interval because we are not going to search while indexing is on. Also, I'll enable replication when all the indexing complete.

```bash
curl --location --request PUT 'localhost:9200/<index>/_settings' \
--header 'Content-Type: application/json' \
--data-raw '{
    "settings": {
        "index": {
            "number_of_replicas": "0",
            "refresh_interval": "600s"
        }
    }
}'
```
### call GET endpoint to confirm the new variables. 

 ![Screenshot from 2020-11-18 10-33-29](https://dev-to-uploads.s3.amazonaws.com/i/7kxl6ntahvr4cpmpdy7w.png)
 
```bash
curl --location --request GET 'localhost:9200/<index>/_settings'
```
* collecting these values initially will be helpful, so you can reset the configurations after indexing is complete.

### bulk insert

![Screenshot from 2020-11-18 10-45-23](https://dev-to-uploads.s3.amazonaws.com/i/gt5vf8sn0gyb90kdljjy.png)
 
* adjust the batch size of the elasticsearch-model `import` function argument.

API: https://rubydoc.info/gems/elasticsearch-model/Elasticsearch/Model/Importing/ClassMethods#import-instance_method

* more tips can be found from here: https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-indexing-speed.html#tune-for-indexing-speed
AWS S3
Tags: aws, devops
Published: 2020-11-18 05:24:14

Topic - AWS Cloud Services


AWS S3 

Day 2

Overview about S3 Bucket

S3 Bucket — Simple Storage Service:

Image for post
sample image for S3 bucket
What is S3

S3 provides any organization or group with secure, durable and high scalable object storage. It is easy to store and retrieve any amount of data from any location, you can store unlimited amount of data. The file size need to be 0 Byte to 5 TB.

Why S3

It is safe and secure to store files in the form of objects.
It is compatible with multiple devices like laptops, mobile devices, etc.
It can be restrict the access from users by attaching the permissions in policy.
It is easy to identify the bucket because they are universal namespace.
The way you can store objects into S3 bucket is by upload the object, when operation is successful it gives you a code of HTTP 200.
Objects inside the S3 files

Key ( Name used to pass the file to identify).
Value ( Address to find the file).
Metadata( Data about data of objects for example raw data).
Version ID ( versioning attached to bucket).
Sub-resources -> Access Control list , Torrents ( kind of access permissions).
Success Rate for S3 buckets standard

Build for 99.99% of availability for S3 platform.
Amazon guarantees (11*9's)% of durability for storage information.
Amazon guarantees 99.9% of availability.
Features

Tiered storage availability — different level of uploading and storing the objects in S3 buckets.
Life cycle management -> which helps to upload the content in S3 bucket to S3 glacier after certain period of time.
S3 encryption helps to encrypt the content from the outside of the world, which means no one can view the content.
MFA — multi factor authentication can be set up for deletion of objects.
Cross-region replication, you can use the same bucket in multiple regions.
S3 Glacier — It is secure , durable and low-cost storage class, the amount of storage charges will less than storage on-premisis. The retrieval period of objects will be from minutes to hours depending on storage.

S3 Glacier deep archive- It is Amazon S3’s lowest-cost storage class where the retrieval period will be 12 hours in acceptable.
Best Online Courses for Data Science in 2021- Complete List of Courses
Tags: datascience, machinelearning, career
Published: 2020-11-18 05:10:25

Are you looking for the **Best Online Courses for Data Science** that will boost your data science career? but confused because of so many courses available online. 

So, don’t worry. Your search will end after reading this article. In this article, I will discuss the **10 Best Online Courses for Data Science** that will give a boost to your data science career. So read this full article, and choose the Best Online Courses for you.

Data Science is one of the most popular fields. Data Science offers a high salary. Everyone is trying to come to the Data Science field.

In the Data Science field, demand is high but supply is low. This is the biggest reason for the high salary in Data Science.

A data scientist requires an in-depth knowledge of **following skills-**

1. Programming Skills
2. Statistics or Probability
3. Machine Learning
4. Multivariate Calculus and Linear Algebra
5. Data wrangling.
6. Data Visualization.
7. Database Management
8. BigData

For Data Scientist, a Ph.D. degree is not mandatory. If you have in-depth knowledge of these skills, you can easily get a job in Data Science Field.

The next question is from **where to learn? and from where to start?**

Right?

So, there are various **courses and books** available which will help you in your data science journey.

Reading books is sometimes difficult. That’s why there are various online courses available. With these courses, you can learn advanced data science skills at your own pace.

After watching various courses, I have found the best 10 Data Science courses for you.

So, let’s see all courses one by one.
**[Click to continue reading...](https://www.mltut.com/best-online-courses-for-data-science-to-become-a-skilled-data-scientist/)**
Adding a Color Picker to the AEM Content Fragment Model Editor
Tags: aem, adobeexperiencemanager, cq, adobe
Published: 2020-11-18 05:09:52

Recently, I wrote one blog related to AEM customization for content fragment models. Content Fragment Models are built with elements from various out-of-the-box data types, including single-line text, multi-line text, number, boolean (only for checkboxes), date/time, enumeration (only for static dropdown values), tags, and content reference.
See the link here
https://blogs.perficient.com/2020/10/20/adding-a-color-picker-to-the-aem-content-fragment-model-editor/
Best BBA Aviation College in Kochi, Thodupuzha, Kerala.
Tags: aviation, logistics, bbaaviation, bbalogistics
Published: 2020-11-18 04:59:30

flywings international, college of management studies has been acknowledged as the best BBA Aviation College in Ernakulm, Thodupuzha Kerala since it helps hundreds of students to get training for BBA Aviation University courses for landing in their dream job and also flywings college has been acknowledged and awarded as the number one Airline academy in Kerala in South India.

Duration
flywings offers training for BBA (Airline & Airport Management). BBA (Airline & Airport Management) is a 3 year/6 Semesters Collaborative U G programme of Alagappa University in Semester pattern mode.

Certification
BBA (Airline & Airport Management) Certificate will be issued by Alagappa University as per the university regulations.

Collaborative programmes are unique introduced as need based skill oriented specialized courses.

Internal Assessment
Internal Assessment is an exclusive feature of Collaborative programmes. 25% marks are awarded on the basis of internal test, assignments, Class test & Seminars conducted by the faculty concerned in our college. Remaining 75% marks will be awarded on the basis of written examination conducted by University at the end of every semester.

Examination
Candidate must complete course duration to appear for the university examination. Examination will be conducted with concurrence of Controller of Examinations as per the Alagappa University regulations.

Result
flywings college student’s secured excellent result in the previous year for University courses and the result of BBA Aviation – 94%. So flywings college is highly recommended institution for Airline studies.

Faculty
flywings College has a team of highly efficient, qualified, competent and committed lecturers in all subjects.

Eligibility
Eligibility for admission to the course is Higher Secondary certificate (10+2) from a recognized board.

Book Your Admission Now :-http://flywingsinternational.org/admission-2020.html

Placements
flywings the top Airline academy provides genuine placement assistances to our students for getting placements in sectors like global aviation and hospitality.

flywings international College is being contacted by prominent airline companies and HR heads for getting talented, enthusiastic professionals candidates to meet their needs and we are proud of our students that they are meeting the need of the airline companies and we are sure that they will make us proud in future too. And we are also proud about our former students who are well placed in different airports, hospitality industries as unavoidable staff.
App de clima con React 16 (API: OpenWeatherMap)
Tags: javascript, frontend, react, webdev
Published: 2020-11-18 04:57:44

Les comparto una pequeña app realizada en React.js y Bootstrap (usando hooks) que consulta una API exxterna para mostrarnos el estado del tiempo por pantalla, la app se ve mas o menos así: 

![img](https://raw.githubusercontent.com/crisdux/4-clima-app-react/main/app.png)

Puedes probar la app en el siguiente [link](https://relaxed-perlman-c621bd.netlify.app/)

Puedes acceder al código fuente alojado en GitHub en el siguiente enlace: 
[https://github.com/crisdux/4-clima-app-react](https://github.com/crisdux/4-clima-app-react)

Cualquier duda puedes dejarla en la caja de comentarios.
How to add changes to previous git commit ?
Tags: beginners, hindi, git
Published: 2020-11-18 07:14:02

---
title: How to add changes to previous git commit ?
published: true
date: 2020-11-18 04:52:00 UTC
tags: #beginners #hindi #git
canonical_url: https://hmble.dev/blog/how-to-add-changes-to-previous-git-commit/
---

 ![Unsplash image](https://source.unsplash.com/YSVI6tLRrz4)
 _Photo by_ [Rod Long](https://source.unsplash.com/YSVI6tLRrz4)

Sooo aapne koi changes commit kiye aur ab aapko us commit me aur changes add karne hai, well lets use magic of git.

```
$ git commit --amend --no-edit
```

## Explanation

This command adds staged changes to previous commit without editing commit message.

> **NOTE :**
> Previous commit me changes amend karne se us commit ka `<sha>` change hota hai.

---
I know this is a short blog but I am trying to keep myself consistent to write a blog each day. I'll be glad if mai aapki help kar paaya to.

Feel free to say hi [@hmbledev](https://twitter.com/hmbledev)
Add/ Delete PDF Page in Java
Tags: java, pdf
Published: 2020-11-18 02:57:05

Sometimes when we receive a PDF document, we may only need some pages of the whole PDF document. Or we may need to insert a new page to add some new contents. In this article, I will demonstrate how to add and delete the PDF page in Java application.

**Tools:**
● [Free Spire.PDF for Java](https://www.e-iceblue.com/Download/pdf-for-java-free.html)
● IntelliJ IDEA

**Installation**
**Method 1:** Download the Free Spire.PDF for Java and unzip it.Then add the Spire.Pdf.jar file to your project as dependency.

**Method 2:** 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.pdf.free</artifactId>
        <version>3.9.0</version>
    </dependency>
</dependencies>
```


**Firstly, the original PDF document is shown as below:**
![](https://dev-to-uploads.s3.amazonaws.com/i/lgrw118owunjosm5qxa7.png)


**Java Code**
```java
import com.spire.pdf.*;
import java.awt.*;
import java.awt.print.*;
import com.spire.pdf.graphics.*;
import java.awt.geom.Rectangle2D;


public class Print {
    public static void main(String[] args) throws PrinterException {

        //Load the PDF document
        PdfDocument pdf = new PdfDocument();
        pdf.loadFromFile("C:\\Users\\Administrator\\Desktop\\The Scarlet Letter.pdf");

        //Delete the second page
        pdf.getPages().removeAt(1);

        //Add a new page to PDF document
        PdfPageBase page = pdf.getPages().add();

        //Draw text string to the newly added page and set the font for it.
        PdfTrueTypeFont font= new PdfTrueTypeFont(new Font("Arial Unicode MS",Font.PLAIN,14),true);
        PdfRGBColor blue = new PdfRGBColor();
        blue.setB((byte) 255);
        PdfSolidBrush brush = new PdfSolidBrush(blue);
        Rectangle2D.Float rctg1 = new Rectangle2D.Float();
        rctg1.setRect(0,70,page.getCanvas().getClientSize().getWidth() / 2,100);
        page.getCanvas().drawString("This is a newly added page ", font, brush, rctg1);

        //Save the document
        pdf.saveToFile("output/Newpage.pdf");

    }
}
```


**Output**
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/yf4xj2njfwki0z0t2q96.png)
On .NET Episode: Microservice Service Discovery with Steeltoe
Tags: dotnet, microservices, webdev, aspnet
Published: 2020-11-18 04:18:03

Service discovery essentially is trying to find an answer to the question of what services are available and how do I get to them. 

In this episode, we chat with Tim Hess and David Dieruf from the Steeltoe team to learn how to setup Service discovery in an ASP.NET Core application with just a few lines of code.

{% youtube ZsVDgEOoSEU %}

If you liked this video and would like to see some more of our .NET content, please subscribe to our [.NET Developers YouTube Channel](https://www.youtube.com/channel/UCvtT19MZW8dq5Wwfu6B0oxw).

#### Useful Links
<ul>
<li><a href="https://steeltoe.io" target="_blank">Steeltoe Homepage</a></li>
<li><a href="https://steeltoe.io/service-discovery" target="_blank">Service Discovery with Steeltoe</a></li>
<li><a href="https://channel9.msdn.com/Shows/On-NET/NET-Microservices-with-Steeltoe" target="_blank">.NET Microservices with&nbsp;Steeltoe</a></li>
<li><a href="https://github.com/steeltoeoss" target="_blank">Steeltoe on GitHub</a></li>
</ul>
Shortened URL as custom URI scheme deep link #discuss
Tags: reactnative, ios, android, discuss
Published: 2020-11-18 04:13:05

## Question:

There is a requirement to open an app's particular screen, based on a deep link in the react-native app.

I had implemented `demo:://app/...` as a custom scheme in `Andoridmanifest.xml` for Android and `info.plist` for iOS.

When I test it with `demo:://app/screen/2`, it deep-link to the app and opens the second screen of the app. 
And this behavior is expected when the app receives `demo:://app/screen/2` from other apps.

**Problem** starts appearing when I try to test the app with `https://tinyurl.com/y4qygctx` instead of  `demo:://app/screen/2`.
**note** - `https://tinyurl.com/y4qygctx` is shortened form of `demo:://app/screen/2`.

Please enlighten solutions based on your experience.
Thank you in advance !!!
Django/Python or Django/React or React/MongoDB 
Tags: react, python, django, database
Published: 2020-11-18 03:44:28

Which do you prefer to use for websites? Django + python, React + Django back? Or....what else? I’m getting to the point of “what should I focus on”,
React hooks, I like, but it seems like there’s a whole lot there to lear, individualy, but vs Django, it’s more strait forward.

Or, how often do you use Django REST framework???
Tools Developers Should Know In 2021
Published: 2020-11-18 03:33:30



# **Tools and Technologies Every Developer Should Know**

#1) GIT🔽
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

<br>

#2) GITHUB🔽

GitHub, Inc. is an American multinational corporation that provides hosting for software development and version control using Git. It offers the distributed version control and source code management (SCM) functionality of Git, plus its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, continuous integration and wikis for every project.[4] Headquartered in California, it has been a subsidiary of Microsoft since 2018.

{% link https://dev.to/ankushsinghgandhi/git-github-cheat-sheet-71b %}

<br>

#3) TERMINAL/CLI🔽

A command-line interface (CLI) processes commands to a computer program in the form of lines of text. The program which handles the interface is called a command-line interpreter or command-line processor. Operating systems implement a command-line interface in a shell for interactive access to operating system functions or services. 

<br>

#4) DEBUGGER🔽

A debugger or debugging tool is a computer program used to test and debug other programs (the "target" program). The main use of a debugger is to run the target program under controlled conditions that permit the programmer to track its operations in progress and monitor changes in it.

<br>

#5) IDE🔽

An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of at least a source code editor, build automation tools and a debugger. Some IDEs, such as NetBeans and Eclipse, contain the necessary compiler, interpreter, or both; others, such as SharpDevelop and Lazarus, do not.

# ❤️ SPONSER ME ON GITHUB ❤️
[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a08qh0s78ncyxcuse3sz.png)](https://github.com/sponsors/AnkushSinghGandhi)


#### My other Blogs
{% link https://dev.to/ankushsinghgandhi/steps-to-master-python-1p06 %}
{% link https://dev.to/ankushsinghgandhi/docker-cheat-sheet-56cc %}
Public or Private Github for recruiters
Tags: portfolio, github, repo, jobhunting
Published: 2020-11-18 03:04:20

Hey Dev Team!

I am just curious. Companies normally ask candidates to post a link to their GitHub accounts so they can take a look at their projects. What if my projects are not public and I would prefer to keep my source code private. What would I need to do? Should I give them temporary access if possible?
A great resource for browser compatibility
Tags: testing, webdev, javascript
Published: 2020-11-18 02:09:09

The [Mozilla Developer Network](https://developer.mozilla.org) is a fantastic resource for finding out about browser compatibility issues especially when you are working with JavaScript.

I was reminded of this when I was trying to get Firefox 78 ESR (extended support release) to format time for me and I realized that it only supports the *timeStyle* option in [version 79 or later](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat).

So, for example, this snippet:

```javascript
const date = new Date();
date.toLocaleTimeString('en', {timeStyle: 'short'});
```

produces different results in Firefox 78 and in Firefox 83.

Firefox 78 result:
![](https://dev-to-uploads.s3.amazonaws.com/i/3cff50ir125ync7conkn.png)
 
Firefox 83 result:
![](https://dev-to-uploads.s3.amazonaws.com/i/5t90tctzcu8pwh0qx9lf.png)

As you can see, Firefox 78 will display seconds, but the newer version will adhere to the short time style and not display that field.
4 Quickest way to center element in CSS
Tags: css, webdev, html, codenewbie
Published: 2020-11-18 02:02:40

Centering element in CSS is hard and confusing for the learning developers. My latest post regarding centering element in CSS by 4 quick ways. We gonna use some CSS property to center them. 

<hr>

### HTML

Let's take an example of HTML that we will center. 
```html
<div class="parent">
	<p class="child">
		I'm Awesome
	</p>
</div>
```

### Let's Center using CSS
 
**1. Flex Property**                         
-> The flex property sets the flexible length on flexible items.
```css
.parent{
       display: flex;
       justify-content: center;
       align-items: center;
  }
```
> Note: If the element is not a flexible item, the flex property has no effect.

<hr>

**2. Position Property**

The position property specifies the type of positioning method used for an element. 

```css
.parent {
       position: absolute;
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%);
 }
```

<hr>

**3. Grid Property**
The grid CSS property is a shorthand property that sets all of the explicit and implicit grid properties in a single declaration.

```css
 .parent {
     height: 100vh;
     display: grid;
     palce-items: center;
 } 
```

<hr>

**4. Margin Property**                                         
The margin property sets the margins for an element. 

```css
.parent {
   height: 100vh;
   display: grid;
 }
.parent .child{
  margin: auto;
  }
```
<hr>
Thanks For Reading ♥
Let me know about this post in the comments. 
Originally here ->  [RAHULISM](https://rahulism.co/center-using-css)