teleren/devto huggingface dataset:
Blogger Vs WordPress: Which one is best in 2021?
Tags: blogging, blogger, wordpress, website
Published: 2021-04-28 16:14:31

Are you confused about which is the best blogging platform in 2021? Then this article is going to be very helpful for you. Through this article, I am going to distinguish between Blogger and WordPress.

You will get to know which platform will be best for you according to your need.

If you don’t have any money for purchasing a domain name and 
<a href="https://www.bloggingfix.com/free-60-day-trial-web-hosting/">hosting plan for your blog</a> then also you can create a blog after reading this article.

So without any further delay. Let’s start the comparison between Blogger and WordPress.

1. Blogger -

Blogger is basically a platform offered by Google which does not require any money for creating a blog. All you need is an Email-id, through your Email you can create a wonderful blog for yourself.

If you create a free blog on the Blogger platform you will get a free subdomain from Blogger that will end with .blogspot.com, but if you want to add a custom domain you can also do it.

Purchase a domain name for your blog and add it to your blogger website. 

If you are a beginner in blogging then I will recommend you to go for Blogger rather than WordPress because most of the begineers struggles for budgets. So in blogger, you do not have to invest in a hosting plan which will save you lots of money.

Advantages of Blogger -

Blogger does not require any investment for a hosting plan.
It is very simple and easy to use. Even a beginner can use Blogger without any problem.
In Blogger you do not have to worry about the speed and performance of your website.

2. WordPress

WordPress is the number 1 CMS (Content Management System) in 2021. Almost 39.5% of all websites are powered by WordPress in 2021, the percentage was 35% in 2020. From this percentage, you can get an idea about the popularity of WordPress CMS.

But if you want to build a professional WordPress website you need some investment for a <a href="https://www.bloggingfix.com/catchy-names-for-websites/">domain name</a> and hosting plan. On average, you need to invest $50 for one year to build a website in WordPress.

Advantages of WordPress -

WordPress is more advanced and it has unlimited features.
You can also create a free blog like Blogger if you create an account on wordpress.com
Search Engine Optimization is more convenient in WordPress.

Conclusion

Both Blogger and WordPress are best for their respective uses.

If you are a beginner then I will recommend you to choose Blogger. On the other hand, if you want to build a professional website go for WordPress.
Scraping external URL metrics using Python and exporting to Prometheus
Tags: prometheus, python, grafana, kubernetes
Published: 2021-04-28 16:05:31

![Grafana Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wddp7l8us6myb4wiqckp.png)

The sample application in **Python** producing **Prometheus** format metrics at the endpoint "**/metrics**", is collected by **Prometheus** and a dashboard in **Grafana** is used to display the metrics. You can build the **Docker** image and deploy the application in **Kubernetes**.

[https://github.com/himadriganguly/sample_external_url](https://github.com/himadriganguly/sample_external_url)
Build an AirBnb Clone using Schemas and Types - with Sanity.io and Next.js! (video)
Tags: nextjs, tutorial, sanityio, schema
Published: 2021-04-28 15:59:26

In this video I show you how to build an AirBnB Clone, as well as manage all your data visually. We are going to build a backend for the app that defines the relationships between our data thanks to Schemas and Types, and add data using Sanity Studio ( http://bit.ly/sanity-studio ).

### Topics we will be touching on:
- Schemas
- Types
- Content Management Systems
- Geolocation
- Google Maps API
- Clustering Markers
- Next.js
- ServerSideProps
- Sanity SDK
- React Hooks

and much more!

0:00 - Introduction
2:39 - Getting started with Sanity
11:43 - Creating our Sanity Schemas
24:55 - Creating PropertyImage Type
30:15 - Creating Review Schema
34:44 - Creating Traveller Schema
35:50 - Creating Person Schema
42:28 - Adding Data to our Sanity Studio
52:17 - Getting Started with Next.js
56:00 - Connecting our Sanity App to our Next app
1:00:20 - Querying our Data with GROQ
1:03:57 - Building our Next.js pages
1:24:23 - Styling with CSS and Google Fonts
1:31:10 - Adding in our images
1:43:25 - Adding in our AirBnB property information styling
1:46:45 - Adding in Review information
1:54:25 - Adding in Location information
2:06:01 - Adding Links with Next.js
2:07:15 - Building our AirBnB’s home page
2:17:40 - Building our NavBar component
2:21:30 - Adding our AirBnB logo
2:23:35 - Adding a Cluster Map
2:30:25 - Conclusion

{% youtube mx1dbMzd3tU %}

### The code for my GitHub can be found here: 
- https://github.com/kubowania/airbnb-sanity-backend
- https://github.com/kubowania/airbnb-sanity-frontend

### Google Maps API info can be found here: 
- https://developers.google.com/maps

If you get stuck, the Sanity community I was talking about can be found here on the Sanity Exchange (https://www.sanity.io/exchange) and the Sanity Slack Community (https://slack.sanity.io/).
____

In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-top-tool

If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow

Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips

You can also find me on:
Twitter: https://twitter.com/ania_kubow
Instagram: https://www.instagram.com/aniakubow
Learn Python
Published: 2021-04-28 15:52:04

## Official Beginner's Guide: 
https://wiki.python.org/moin/BeginnersGuide

## Official Tutorial:
 https://docs.python.org/3/tutorial/

## Shortcuts:
* [Python wiki for Non programmers](https://wiki.python.org/moin/BeginnersGuide/NonProgrammers)
* [Python wiki for Programmers](https://wiki.python.org/moin/BeginnersGuide/Programmers)

## Videos:
- PyCon (2015 - current)
- [Python Euro](https://www.youtube.com/user/PythonItalia)

## Learn Python:

- https://automatetheboringstuff.com/ *(for complete beginners to programming)*

- https://learnxinyminutes.com/docs/python3/ *(for people who know programming already)*

- https://docs.python.org/3/tutorial/ * (official tutorial)*

- http://python.swaroopch.com/ *(useful book)*

- http://www.codeabbey.com/ *(exercises for beginners)*

## *For a longer and opensource list of python resources* - 

https://github.com/bitsacm/Slack-Stock-DAG/blob/master/python.md

-----------------------------------------------------------------
Orignaly written by
{% user zircoz %}
at https://pastebin.com/wCBsXwgt
Difference between annotation-config and component-scan
Tags: spring, annotationconfig, componentscan
Published: 2021-04-28 15:50:55

https://grokonez.com/spring-framework/difference-between-annotation-config-and-component-scan

Difference between annotation-config and component-scan

<strong>annotation-config</strong> and <strong>component-scan</strong> are important basic concepts of <strong>Spring Core</strong>.
This tutorial helps you understand how to use them and difference between them.

<!--more-->
<div id="tuttoc" class="jsa-toc"></div>

<div id="tutcontents">
<h2>I. Overview</h2>
<strong>&#60;context:annotation-config&#62;</strong> activates all annotations in beans which are already registered in the application context. Those beans could be defined with XML or by package scanning.

<strong>&#60;context:component-scan&#62;</strong> not only does everything that <strong>annotation-config</strong> does, but also registers the java classes as a bean which are annotated with @Component, @Service ,@Repository...
<h2>II. Usage</h2>
Now begin with hierarchy that we want to create in our application:
-|Bean <strong>Name</strong>
-|Bean <strong>Address</strong>
-|Bean <strong>Customer</strong>
------|injected Bean <strong>Name</strong>
------|injected Bean <strong>Address</strong>
<h3>1. Full Beans in XML</h3>
The java class for Bean are:
<pre><code class="language-java">
public class Name{ //... }
public class Address{ //... }

public class Customer {
	private Name name;
	private Address address;

	public Customer() //...
	public void setName(Name name) //setter injection...
	public void setAddress(Address address) //setter injection...
}
</code></pre>

More at:

https://grokonez.com/spring-framework/difference-between-annotation-config-and-component-scan

Difference between annotation-config and component-scan
Inject Properties using @Value Annotations vs Environment vs @ConfigurationProperties
Tags: springboot, configurationproperties, annotation
Published: 2021-04-28 15:43:58

https://grokonez.com/spring-framework/inject-properties-using-value-annotations-vs-environment-vs-configurationproperties

Inject Properties using @Value Annotations vs Environment vs @ConfigurationProperties

@Value Annotations vs Environment vs @ConfigurationProperties.

Spring provides some ways to inject properties from properties file. We have learned how to use them in 3 articles:
- <a href="https://grokonez.com/spring-framework/spring-core/inject-properties-from-properties-file-using-value-annotation">@Value Annotation</a>
- <a href="https://grokonez.com/spring-framework/spring-core/inject-properties-from-properties-file-using-spring-environment">Environment</a>
- <a href="https://grokonez.com/spring-framework/spring-core/inject-properties-from-properties-file-using-configurationproperties-annotation">@ConfigurationProperties</a>

This tutorial helps you have a comparison view covering those solutions.

<!--more-->
<div id="tuttoc" class="jsa-toc"></div>

<div id="tutcontents">
<h2>1. @Value Annotation</h2>
We can get property value anywhere by using <strong>@Value</strong>, we can inject default value, List/Arrays, special types (DateTime, Pattern), value that should be treated as null easily with just one line added. So it is very easy to implement.
<pre><code class="language-java">
@DateTimeFormat(pattern="yy/MM/dd HH:mm")
@Value("${config.time.key}")
private LocalDateTime time;
</pre>
But to be sure that this is possible, <strong>PropertySourcesPlaceholderConfigurer</strong> must exist in the application contexts that placeholders resolution is required.
<pre class="lang:java nums:false">
	public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
//		return new PropertySourcesPlaceholderConfigurer();
		
		PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
//		configurer.setLocation(new ClassPathResource("myapp.properties"));
		
		configurer.setIgnoreUnresolvablePlaceholders(true);
		configurer.setNullValue("This is NULL");
		
		return configurer;
	}
</code></pre>
This approach also has another disadvantage that it makes each class which uses <strong>@Value</strong> depends on one or more property name. If we wanna change any property, we have to update all files which referenced it, or if we wanna find where it is used, we must make a text searching.
<h2>2. Environment</h2>
To work with <strong>Environment</strong>, we use <strong>@Autowired</strong>:

More at:

https://grokonez.com/spring-framework/inject-properties-using-value-annotations-vs-environment-vs-configurationproperties

Inject Properties using @Value Annotations vs Environment vs @ConfigurationProperties
one-on-one.tech - a business networking website
Tags: showdev, django, webdev
Published: 2021-04-28 15:42:12

Hi community! Excited to share my side project one-on-one.tech which I built during the last few months. It is still in MVP phase but ready to show a first version.

It’s a website/app which helps professionals to improve business networking by having one-on-one meetings with other professionals who match their interests.

Link: https://one-on-one.tech/

Technology used:
* Django
* HTML/CSS/JS
* Simple Service Worker for PWA
* Runs on Heroku

Any feedback is highly appreciated! &#128640;

Let me know if you are interessted in a technical deep dive.
Ultimate Tech Jobs
Tags: github, codenewbie, showdev, beginners
Published: 2021-04-28 15:32:55

Hi

The below is my github repository which lists of all the available famous job sites, 

I will be updating the repository frequently

Use it & share it to someone who needs this 👇

[Ultimate Tech Jobs](https://github.com/dhanushnehru/Ultimate-Tech-Jobs)

For more technology related information connect with me

[Twitter](https://twitter.com/Dhanush_Nehru)
How to use Spring Factory Method to create Spring Bean
Tags: springboot, springfactory, springbean
Published: 2021-04-28 15:30:49

https://grokonez.com/spring-framework/spring-core/use-spring-factory-method-create-spring-bean

How to use Spring Factory Method to create Spring Bean

Spring Framework provides Spring Factory Method mechanics to create Beans from static(non-static) method of a Factory Class in XML config files. In the tutorial, JavaSampleApproach will introduce Spring Factory Method with sample codes.

Related Posts:
- <a href="https://grokonez.com/spring-framework/how-to-inject-collection-in-spring">How to inject Collection in Spring</a>
- <a href="https://grokonez.com/spring-framework/inject-properties-from-properties-file-using-spring-environment">Inject Properties from Properties File using Spring Environment</a>

<!--more-->
<div id="tuttoc" class="jsa-toc"></div>

<div id="tutcontents">
<h2>0. Preparation</h2>
Create a POJO bean class & 2 factory classes with static & non-static factory methods for the tutorial:

<em>SampleBean.java</em>
<pre><code class="language-java">
package com.javasampleapproach.factory;

public class SampleBean {
	private String message;
	
	public SampleBean(String message){
		this.message = message;
	}
	
	public void hello() {  
        System.out.println("Message = " + message);  
    }
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
}</code></pre>

<em>StaticMethodFactory.java</em>

More at:

https://grokonez.com/spring-framework/spring-core/use-spring-factory-method-create-spring-bean

How to use Spring Factory Method to create Spring Bean
Best Lead Generation Tools (For Busy Dev)
Tags: beginners, webdev
Published: 2021-04-28 15:30:01

Lead generation falls into several categories of tools depending on who your target market is. For instance, there are tools for data collection, email marketing tools, landing page tools, live chat, contests, and social media tools all available for lead generation.

Every developer has not had management skills. If one has lacked these skills, the performance of the daily activities will be haphazard. So you must use some tools so that you can keep everything well organized. If you want to keep your works well organized, you can use the tools.

These tools also provide **API access**. So you can automate many things from your app/web.

## 1. [LeadPages](https://bit.ly/332FTIh)

![Leadpages](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r338e61x71btkv9pvp5e.jpg)

Leadpages is an online tool that you can use to collect email subscribers. Mainly a landing page falls into two categories: to capture leads that enable you to market to people in the future, or. to "warm-up" potential customers to the product you're trying to sell to them before sending them further into your sales funnel.

**LeadPages offers 15 days of free pro access for new users.** If you haven't used LeadPages before then [click here](https://bit.ly/332FTIh) to try.

## 2. [Instapage](https://bit.ly/32YzA8G)

![Instapage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0iso49jpuzsvofg9d1p6.jpg)

Instapage is the leader in post-click automation and helps digital advertisers create more relevant and impactful advertising by unifying the post-click stage of the advertising funnel. With Instapage, marketers can maximize conversions by creating, personalizing, and optimizing post-click landing pages at scale, and automatically connecting ads with relevant post-click pages.

## 3. [Moosend](https://bit.ly/3eSAnxN)

![MOOSEND](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ixjh60f2t8anrns7gtgp.jpg) 

Moosend is your number one Email Marketing Service Provider and Lead generation tool, equipping you with world-class features to step up your marketing game. With our platform, you can dive into the world of email marketing and create the most responsive newsletters to amaze your subscribers.

**Moosend offers unlimited days of free pro access (up to 1000 subs) for new users.** If you haven't used Moosend before then [click here](https://bit.ly/3eSAnxN) to try.

## Conclusion

If your main purpose is lead generation then [LeadPages](https://bit.ly/332FTIh) is the best tool for you but if you want extra features (Email marketing) then [Moosend](https://bit.ly/3eSAnxN) is the best tool for you because Moosend provides a lead generation tool with all email marketing tools.
Create a MERN app from a CSV
Tags: aptugo, react, node, mern
Published: 2021-04-28 15:19:35

Hello, so a new player is in town: Aptugo. And I would love to show you how it changes the paradigm on software development.

It takes literally less than 2 minutes to have a CRUD application from a CSV up and working built on MERN (MongoDB Express React Node)

**Step 1:** Open Aptugo

If you haven't got a copy yet, just head to their website (https://www.aptugo.com) and send a contact inquiry asking for a trial. Chances are that in less than 1 hour you'll have it up and running.

**Step 2:** Create a new App

Set any name, you don't need instructions for this :)

**Step 3:** Drop a CSV

Make sure you choose the right option (it changes, but usually says: "process the CSV as data")

![Drop CSV into Aptugo](https://crm.aptugo.com/img/Screen%20Shot%202021-04-28%20at%2012.07.33%20PM.png)

It will ask for the table name to save this into. Keep in mind it will create your API, reducers, etc related to this name. I went with "companies"

**Step 4:** Move companies inside the dashboard

In order for the link to magically appear in the sidebar. Trivial step, but otherwise this tutorial would be way too short:

![Move Companies inside Dashboard](https://crm.aptugo.com/img/Screen%20Shot%202021-04-28%20at%2012.12.28%20PM.png)

It is just a drag-n-drop in the Pages section.

**Step 4:** Save and Build

Hit the SAVE button, then the BUILD button next to it.

Done. Head to your builds folder and you'll have your application ready to run as shown (first time it builds it takes one minute or two as it automatically performs the npm install for us as well)

![Basic Application up and running in 30 secs!](https://crm.aptugo.com/img/Screen%20Shot%202021-04-28%20at%2012.16.22%20PM.png)

And that's it! I would say it is like create-react-app but also creates the back-end for us, and the redux store... but it is much more than that!
Spring IoC Container
Tags: springboot, springioc, container
Published: 2021-04-28 15:18:27

https://grokonez.com/spring-framework/spring-ioc-container

Spring IoC Container


At the Core of Spring Framework, <strong>Spring IoC</strong> (Inversion of Control) is implemented using the <strong>Dependency Injection</strong> design pattern. The Spring IoC Container creates, configures and connects the objects (which are called <strong>Beans</strong>), then manage their life cycle.

This tutorial introduce principle of Spring IoC and a simple example using Containers to you.

<!--more-->
<div id="tuttoc" class="jsa-toc"></div>

<div id="tutcontents">
<h2>I. Technology</h2>
- Java 1.8
- Maven 3.3.9
- Spring Tool Suite – Version 3.8.1.RELEASE
- Spring Boot: 1.4.0.RELEASE
<h2>II. Overview</h2>
<h3>1. Container &amp; Dependency Injection</h3>
The container helps inject the dependencies. Let's see an example:
We want to provide a <strong>CustomerService</strong> with 2 implementations of <strong>CustomerPackage</strong>: <strong>BasicPackage</strong> and <strong>BusinessPackage</strong>.
<img class="alignnone size-full wp-image-1293" src="https://grokonez.com/wp-content/uploads/2016/09/IoC-coupled.jpg" alt="ioc-coupled" width="750" height="302" />
This is content of <strong>CustomerService.java</strong>

<pre><code class="language-java">
public class CustomerService {
	private CustomerPackage customerPackage = new BasicPackage(); //or new BusinessPackage()

	public String callSupport() {
		return customerPackage.support();
	}
}
</code></pre>

Because we create a <strong>CustomerPackage</strong> instance in the class <strong>CustomerService</strong>, it is tightly coupled. So if we want to change <strong>BasicPackage</strong> to <strong>BusinessPackage</strong>, we need to modify:

<pre><code class="language-java">
private CustomerPackage customerPackage = new BusinessPackage();
</code></pre>

To avoid this kind of coupling, Spring Framework has a strong container to manage components. Instead of hard coding by creating new instance inside, we have the container inject the dependencies, by using setter injection or constructor injection.
Content of <strong>CustomerService.java</strong> after using <strong>Dependency Injection</strong>

More at:

https://grokonez.com/spring-framework/spring-ioc-container

Spring IoC Container