teleren/devto huggingface dataset:
Avoid damaging your domain reputation with Elite Emailverifier.
Tags: showdev, startup
Published: 2022-06-24 19:42:24

Elite Emailverifier was developed to help marketers deliver emails to the right people. One of our founders, Shashi, faced a real challenge while sending bulk emails to a huge email list. The problem was that most of the emails from the list were either invalid or spammy. This problem leads to a high bounce rate and blocking by email service providers.
We checked for a solution in the market. And there were a few of them who solved this problem. Then why a new product? You may ask. The solutions that were present in the market were expensive, and some were restricted to a certain number of verification.
So, we decided to build a solution https://emailverifier.co/ that is cost-effective, easy to use and secure from the ground up. Our spam-trap checking, MX validation, and email syntax checking ensure your email list is as clean as possible.
With Emailverifier, you can now clean your subscriber email list with a click of a button and at affordable rates.
We are in the launch Phase, and we need your attention in trying our product out.
Happy Emailing:)
Slow JPA execution with micronaut
Published: 2022-06-24 19:29:14

I implemented micronaut data jpa along with hikari pool.
I'm trying to execute a simple jpa select query for which the total execution time is around 400-800ms.
The query method is-
List findAllByCodeAndItemIdAndItemClass(String code, String itemId, String itemClass);

The execution metrics of the above jpa query is as below -
`14:57:55.820 [default-nioEventLoopGroup-1-5] INFO o.h.e.i.StatisticalLoggingSessionEventListener - Session Metrics {
1373200 nanoseconds spent acquiring 1 JDBC connections;
22600 nanoseconds spent releasing 1 JDBC connections;
89600 nanoseconds spent preparing 1 JDBC statements;
402081800 nanoseconds spent executing 1 JDBC statements;
0 nanoseconds spent executing 0 JDBC batches;
0 nanoseconds spent performing 0 L2C puts;
0 nanoseconds spent performing 0 L2C hits;
0 nanoseconds spent performing 0 L2C misses;
0 nanoseconds spent executing 0 flushes (flushing a total of 0 entities and 0 collections);
3600 nanoseconds spent executing 1 partial-flushes (flushing a total of 0 entities and 0 collections)
}
Result Found: 1
====> Execution Time: 410ms`

The plain JDBC call for this query takes around 70-90ms but with micronaut data along with hikari pool the execution time is much greater than the jdbc execution time. We are using Microsoft SQL server database. The related dependencies used in the project are -

```
<parent>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-parent</artifactId>
    <version>3.5.2</version>
  </parent>

  <properties>
    <packaging>jar</packaging>
    <jdk.version>17</jdk.version>
    <release.version>17</release.version>
    <micronaut.version>3.5.2</micronaut.version>
    <micronaut.data.version>3.4.2</micronaut.data.version>
    <micronaut.runtime>netty</micronaut.runtime>
    <exec.mainClass>com.data.Application</exec.mainClass>
  </properties>

<dependency>
      <groupId>io.micronaut.data</groupId>
      <artifactId>micronaut-data-hibernate-jpa</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.sql</groupId>
      <artifactId>micronaut-jdbc-hikari</artifactId>
      <scope>compile</scope>
    </dependency>
	<dependency>
      <groupId>com.microsoft.sqlserver</groupId>
      <artifactId>mssql-jdbc</artifactId>
      <scope>runtime</scope>
    </dependency>
```

Below is my datasource configuration in application.yml -

```
datasources:
  default:
    url: jdbc:sqlserver://xxxxxxxxxxx;databaseName=xxxxxxx;
    username: xxxxxx
    password: xxxxxx
    driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
    dialect: SQL_SERVER

jpa:
  default:
    properties:
      hibernate:
        hbm2ddl:
          auto: none
        generate_statistics: true
        format_sql: true
        show_sql: true

```
Please suggest what optimization can be done or if any additional configuration can be added to achieve better performance and execution time with micronaut data which is currently much greater than the normal jdbc execution time.
Green Data Centers
Published: 2022-06-24 19:25:24

A green data centre employs the latest energy-efficient technology and systems. These data centres eliminate old systems and employ contemporary technology. Below are three green data centre indications and building advice. These are just a few green data centre perks. They should assist you go forward.

Several elements contribute to a green data centre. It may need more capital for development, deployment, and operations, but these costs are mitigated by energy, waste disposal, water, and environmental benefits. Improved staff productivity is also vital. Green data centres have several characteristics. Each in turn. Consider these signs if you're building a green data centre.

A data centre isn't green until it measures individual IT functions. IT equipment's environmental effect ranges from purchase to life cycle. Cooling systems and equipment are IT categories. Data centre operators may cut operational expenses and expedite their road to net zero using these measures. Data centre operations can alleviate labour shortages and pandemic-related trade slowdowns.

Data centre power supply and distribution hardware use the most energy. Improved system designs and product performance reduce power consumption and carbon emissions. Clean energy cuts emissions. Huawei's natural gas-powered Alestra data centre has an integrated heating and power system. This fuel is cleaner than oil and coal. These are some green data centre indications.

A data centre should reduce power transmission losses and use natural cooling at low temperatures. Research is focused on renewable energy. Low CUE data centres are more energy-efficient. It decreases fossil fuel consumption, which cuts carbon emissions. Data centres utilise more renewable energy. LEED-certified data centres are green, according to Oro et al. (2015).

More:
A more detailed write up about the [green data center topic](https://globalsustainabilityroadmap.com/three-indicators-of-a-green-data-center/). The [European Union's take](https://digital-strategy.ec.europa.eu/en/policies/green-cloud) on it. [Wikipedia](https://en.wikipedia.org/wiki/Green_data_center)'s definition.
Java: The Main Method
Tags: java, basics, main, tutorial
Published: 2022-06-24 19:03:56

---
title: Java: The Main Method
published: true
description: A quick video rundown of the main method in Java.
tags: java, basics, main, tutorial
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

{% embed https://youtu.be/11tNVsj_YRg %}
What is OOP?
Tags: java, objectoriented, tutorial
Published: 2022-06-24 19:03:00

---
title: What is OOP?
published: true
description: A quick video rundown of OOP in Java.
tags: java, objectoriented, tutorial
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

{% embed https://youtu.be/Pl_-wKo6gQM %}
How Does Java Run?
Tags: java, jvm, tutorial, learn
Published: 2022-06-24 18:59:48

---
title: How Does Java Run?
published: true
description: A quick video overview of running a .java file.
tags: java, jvm, tutorial, learn
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

{% embed https://youtu.be/go5b-Qw7PBk %}
GoPaint
Tags: go, github, discuss, showdev
Published: 2022-06-24 18:51:36

Made this project last year when I just started learning Go and still so much proud of this project! Used to work on this all night :D Any kind of feedback is very much appreciated <3  

Link to project - https://github.com/shahfarhadreza/gopaint

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


![Selection Tool in action](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nmz8m4hssyso3fuefv2f.jpg)
Paracetamol.js💊| #152: Explica este código JavaScript
Tags: javascript, webdev, spanish, programming
Published: 2022-06-24 18:30:23

## **<center>Explica el siguiente código JavaScript</center>**
#### <center>**Dificultad:** <mark>Intermedio</mark></center>

```js
function findElement(arr, predicate) {
  for (const [index] of arr.entries()) {
    const value = arr[index];
    if (predicate(value)) {
      return { value, index };
    }
  }
  return { value: undefined, index: -1 };
}

const arreglo = [7, 1, 2];
const { value, index } = findElement(arreglo, x => x % 2 !== 0);
console.log(index, value);
```

A. `0`, `7`
B. `1`, `1`
C. `2`, `2`
D. Ninguna de las anteriores

Respuesta en el primer comentario.

---
Cloud Computing Deployment Models
Tags: cloud, aws, azure
Published: 2022-06-24 18:15:46

The cloud computing deployment models describe

- how it is implemented 
- how it is hosted
- who can assess it

Types of Cloud Deployment models

1. Public Cloud
2. Private Cloud
3. Hybrid Cloud
4. Community Cloud
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlw8u21mwvsdslbzeomb.jpg)
 

# Public Cloud
- It has massive amount of Storage and Storage Resourses
- It is also easily scalable

- It is recommended for developing cloud based application as it has globally distributed.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lvgo3y4e6t3r805594g6.png)
**Feature:**
1. feasiblity
2. scalability
3. accessibility
4. No Setup cost & maintenance 

**Advantage:** It provide on- demand services
**Dis- advantage:** Loss of control, Insucure data.

# Private Cloud
- It is restricted and protected by firewall.
- It can be on premise or hosted in a third party's data center.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qscklbnvgoktccszx1mq.png)
 

**Advantage:** Security and Control- It restricted to accessible valuable resourses.
**Dis- advantage:** It is expensive and lack quick scalability

#Hybrid Cloud
- It is the cobination of public and private cloud.
- It provide seamless interaction between private and public cloud
- This is perfect solution for organisation that need feasibility, cost saving, quick scalabailty feature of public cloud.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/20yir3hm2pwlqxkorr5z.png)
 
     
###Cloud Brusting: 
It is an application develpoment technique in which an application runs in a private cloud or data center and brust into a publid clouyd when the demand for cloud computing capacity spikes
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mmpd7pbxwlsz6hpifcvb.png)
 

**Advantage:** Best of both cloud nad cost saving.
**Dis- advantage:** As data is shared between private and public so there may ben potential performance and security risk.  

# Community Cloud
- It is a cloud infrastructure in which multiple organizations share resources and services based on common requirements.
- It is owned, managed, and operated by one or more organizations in the community, a third party, or a combination of them.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rtd8nrdq0kzgu20e0e8b.png)
 
**Advantage:** 
- Cost effective,
- Security: Community cloud is more secure than the public cloud but less secure than the private cloud.
- Sharing infrastructure

**Dis- Advantage:**
- Slow adoption to data
- The fixed amount of data storage and bandwidth is shared among all community members
Язык программирования Си. Глава(Chapter) 17
Published: 2022-06-24 18:03:36

TBA

```c
((a))(){}c(int(b)){}b(b)int(b);{}(d)(d)int(d);{long;}int e(e)int(e);{}void*NULL=0;;;;char(str)[0]="\
";int(main)(int argc){.1+.2==.3;{}int;3;00000.3+9.4l+.5e+2;*(int*)NULL;*"A";'A'+9;&main;(~8)+1==-8;}
```
Just Finished my 1st #100daysOfCode Challenge
Tags: javascript, ruby, react, sql
Published: 2022-06-24 18:03:04

124 days ago I started #100daysOfCode challenge. With the help of a goal tracker app I have been able to track my daily progress - the screenshot above. 
I only missed to code for only 24 days and those are the days that I felt like not touching my laptop and needed to rest. 
But it has been a great journey of learning alot.

## Achievements
What I learned in those 100 days:

- JavaScript

- React

- Tailwind css

- Ruby

- SQLite

- Creating Backend API using Ruby, SQLite, Active record, Sinatra 

I won't say I am a pro in these Languages but I can create a small to medium project, and ofcourse I'm still continuing to master them. And I'm proud of my progress.

## Next step
I will restart the challenge and within those 100 days this is what I'm planning to do:

- Rails Framework

- PostgreSql db

- Continue expanding my knowledge in the languages that I have been learning. 

Wishing myself a good luck!
Язык программирования Си. Глава(Chapter) 9
Tags: c, russian
Published: 2022-06-24 17:55:29

1. Функция, её ANSI прототип(prototype) или сигнатура(signature) или объявление(declaration), которое всегда предшествует вызову(call) и определению(definition)

2. Формальные параметры(formal parameters), фактические аргументы(actual arguments), локальные переменные(local variables), тип(type) и возвращаемое значение(return value) оператором return функции

3. Драйвер(тестировщик функций), вызывающая(calling) и вызываемая(called) функция

4. Стили объявления функций и различие void foo(); и void foo(void); в C

5. Стандартный способ для определения функции с переменным количеством параметров в stdarg.h

6. Рекурсия, противоположный порядок(reversal), подобная циклу хвостовая(tail) или концевая(end) рекурсия и двойная(double) рекурсия

7. Компиляция многофайловых программ: cc file1.c file2.c file3.o в UNIX, gcc file1.o file2.c в Linux, подобно UNIX в DOS(.obj вместо .o), размещение прототипов и констант в заголовочном файле, а определения в исходных файлах в IDE

8. Отличие #include <header.h> от #include "header.h"("локальный" поиск, например в текущей рабочей папке(current working directory))

9. Указатели(pointers), оператор *(разыменование(indirection) или снятие косвенности(dereferencing)) и &(адрес значения переменной)

10. Передача(Transmission) аргументов функции по значению(value) и по адресу(address), без ссылочных значений(no reference variables), как в C++

> Язык программирования Си 6 издание. Стивен Прата
> C Primer Plus 6th edition. Stephen Prata
Язык программирования Си. Глава(Chapter) 8
Tags: c, russian
Published: 2022-06-24 17:54:55

1. Буферы: полностью(c 512 или 4096 байтaми) и построчно(line-buffered) буферизированный ввод-вывод и небуферизированный(unbuffered) или прямой(direct) ввод-вывод

2. getch() и getche()(с эхо выводом) в conio.h из IBM PC для небуферизированного ввода и ioctl() в Unix для указания желаемого типа ввода 

3. setbuf() и setvbuf() в ANSI C для контроля буферизацией предоставляемoй системой

4. Файл, поток ввода и вывода(I/O stream), низкоуровневый ввод-вывод(low-level I/O) и стандартный пакет ввода-вывода(standart I/O package)

5. Процесс открытия файла становится процессом ассоциирования потока с файлом, а чтение и запись осуществляются через поток. Ввод с клавиатуры и вывод на экран трактуется как два файла, автоматически открываемыми каждой программой на C, где ввод-вывод осуществляется через соответствующие унифицированные потоки stdin и stdout(стр. 298)

6. Симуляция EOF(обычно -1) с клавиатурного ввода <Ctrl+D> в Unix и Linux или <Ctrl+Z> в DOS

7. Перенаправление(Redirection) ввода-вывода с исполняемой(executable) программы в файл через командную строку операционной системы(операции <, >, >>, |): main.exe < inputfile.txt, main.exe>outputfile.txt и main.exe < inputfile.txt > outputfile.txt или main.exe >outputfile.txt <inputfile.txt

8. Команды командной строки для вывода списка и чтения файлов: ls и cat в Unix и Linux, dir и type(DOS) или more в Windows(который имитирует старую среду командной строки DOS)

> Язык программирования Си 6 издание. Стивен Прата
> C Primer Plus 6th edition. Stephen Prata
Язык программирования Си. Глава(Chapter) 7
Tags: c, russian
Published: 2022-06-24 17:54:31

1. Операторы ветвления(branching) или выбора(selection): if, else, ?:(ternary), continue(работает внутри switch, если внешний оператор - цикл), break, switch(используется с целочисленными значениями), case(множество меток или Multiple Labels), default(не обязателен), goto(обычно нежелателен, поэтому заменяется)

2. Образование пар(paring) else и if, вложенные(nested) операторы if и флаги

3. Функционально подобные(function-like) макросы препроцессора getchar() и putchar() в stdio.h

4. Семейство функций и макросов для обработки символов: isalnum(), isalpha(), isdigit(), islower(), isupper(), isspace(), ispunct(), tolower(), toupper() в ctype.h

5. Логические операции(являются точкой следования) !, &&, || или not, and, or в iso646.h и порядок(слева направо) и правило(прекращение вычисления, если элемент превращает всё выражение в ложное или истинное) их вычисления

> Язык программирования Си 6 издание. Стивен Прата
> C Primer Plus 6th edition. Stephen Prata
Язык программирования Си. Глава(Chapter) 6
Tags: c, russian
Published: 2022-06-24 17:54:01

**1.** Условный цикл с предусловием(_Entry-Condition Loop_) `while`, с постусловием(_Exit-Condition Loop_) `do while` и гибкий цикл `for`комбинирующий инициализацию(_Initialization_), условие(_Condition_) и итерацию(_Iteration_).
Отличие цикла с предусловием и с постусловием в том, что в случае, когда условие изначально, с самого первого раза оказывается ложным цикл с предусловием опускает выполнение тела, в то время как цикл с постусловием выполнит тело хотя бы один раз так как проверяет условие после выполнения тела.
```c
while(0) printf("Hello!"); //Hello won't be printed
do printf("Hi!"); while(0); //Hi will be printed
```

**2.** Неопределённый или зависящий от переменной цикл(_Indefinite Loop_), цикл со счётчиком(_Counting Loop_), бесконечный цикл(_Infinite Loop_) и вложенные циклы(_Nested Loops_).
```c
while (count < strlen(str)) { statements } //indefinite loop
while (count < num) { statements; count++; } //counting loop
do { statements } while (true); //infinite loop
for (;;) { statements } //also an infinite loop

//nested loops
for (int i = 0; i < n; i++) //outer loop
    for (int j = 0; j < n; j++) //inner loop
        statements;
```

**3.** Функции `fabs()`, `pow()` и `sqrt()` в `math.h`.
```c
//definition of absolute value using functions
printf("%d", fabs(num) == sqrt(pow(num, 2))); 
```

**4.** Зарезервированный идентификатор типа `_Bool` и заголовочный файл `stdbool.h` с определёнными ключевыми словами `bool` вместо `_Bool`, `true` и `false`. Истина(_Truth_) в Си, то есть значение `true` — это любое ненулевое значение, а ложь — любое нулевое значение `0`, `'\0'` или `NULL`.


**5.** Дополнительные операторы:
- Относительные операторы(_Relational Operators_): `<`, `>`, `<=`, `>=`, `==`, `!=`(`not_eq` в `iso646.h`).
- Операторы составного присваивания(_Compound Assignment Operators_): `+=`, `-=`, `*=`, `/=`, `%=`, `<<=`, `>>=`, `^=`, `&=`, `|=`.
- Оператор запятая(_Comma Operator_) является точкой следования(_Sequence Point_).

**6.** Хранение смежных(_Contiguous_) массивов и индекс(_Subscript_) или смещение(_Offset_) массива.

7. Функции с возвращаемым значением(Functions with Return Values) и предварительное объявление(_Forward Declaration_) в заголовочных файлах(_Header File_).

8. Представление программы в виде псевдокода(_Pseudocode_).

> Язык программирования Си 6 издание. Стивен Прата
> C Primer Plus 6th edition. Stephen Prata
Язык программирования Си. Глава(Chapter) 4
Tags: c, russian
Published: 2022-06-24 17:52:39

**1.** Массивы(_Arrays_), Символьные строки(_Character String_) и нулевой символ(_Null Character_) '\0'.
![Computer memory](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b6n7x8fbxe25mxq1hur3.png)

**2.** Библиотека `string.h` и одна из её функций `strlen()`.
```c
char str[10] = "Hello!";
printf("%zu", strlen(str));
```

**3.** Символические константы(_Symbolic Constants_), то есть неизменяемые переменные(_Immutable Variables_) и модификатор(_Modifier_) `const`; а также директива препроцессора с подстановкой во время компиляции(_Compile-time Substitution_) `#define`.
```c
#define PI 3.14159 //symbollic constant
const double g = 9.81; //also symbollic constant
double rad = 180 / PI; //this line after preprocessing turns into the next line
double rad = 180 / 3.14159; //this line with substitution is then compiled
```

**4.** Зависящие от реализации(_Implementation-dependent_) типы с описывающими их символическими константами в `limits.h`: `ULLONG_MAX`, `CHAR_BIT`, `USHRT_MIN`, `SCHAR_MIN`; и `float.h`: `FLT_EPSILON`, `FLT_MANT_DIG`, `DBL_DIG`.

**5.** Возвращаемое значение(_Return Value_) функций `printf()` — количество успешно выведенных символов; и `scanf()` — количество успешно введённых аргументов.
```c
int output = printf("Hello!\n");
printf("%d\n", output); //seven sucessfully printed characters
int input = scanf("%d", &input);
printf("%d", input); //either zero or one successfull input
```

**6.** Проблема несоответствия типа преобразований(_Mismatched Conversions_).
![Mismatched Conversions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r2rgyog02ib71t4ztigm.png)

**7.** Обработка ввода функцией scanf(): пробельные символы(_Whitespaces_) — все введённые Enter, Space и Tab; и чтение с потока ввода(_Input_) — временного файла откуда всё выводится на консоль.
```c
int n1, n2, n3;
char c1, c2, c3;
    
//unsuccessfull input of c1, always assigned with '\n'
scanf("%d", &n1); //number entered then Enter pressed
scanf("%c", &c1); //after '\n' was assigned to c1
printf("First input: %d%c\n", n1, c1);
    
//successfull input only with ',' otherwise c2 is not assigned with any character
scanf("%d,%c", &n2, &c2); //after number expected ','
printf("Second input: %d,%c\n", n2, c2);
    
//successfull input of c3 in all cases 
scanf("%d", &n3); //number entered then Enter pressed
scanf(" %c", &c3); //all whitespaces are ignored
printf("Third input: %d %c\n", n3, c3);
```

> Язык программирования Си 6 издание. Стивен Прата
> C Primer Plus 6th edition. Stephen Prata