teleren/devto huggingface dataset:
25 berufliches Vorwärtskommen: Ein gerader Berufsweg – Das Ende.
Tags: deutsch, career, austausch, 1min
Published: 2023-04-01 09:43:06

Moin Moin,

gibt es eine Vorgehensweise, durch die man sicherstellen kann, dass man [einen geraden Berufsweg→](https://dev.to/amustafa16421/22-berufliches-vorwartskommen-ein-gerader-berufsweg-der-anfang-552f) gegangen sein wird? Auch hier denke ich, dass es eine Vorgehensweise gibt und möchte diese mit dir teilen.

Irgendwann kommt das Ende. Dies muss nicht unbedingt durch hohes Alter, oder ein negatives Ereignis erreicht werden. Es kann auch sein, dass man sich nach mehreren Jahrzehnten dazu entscheidet, etwas anderem nachzugehen.

Daher hilft folgendes, nachdem man einen [guten Karrierestart hingelegt→](https://dev.to/amustafa16421/24-berufliches-vorwartskommen-ein-gerader-berufsweg-starte-jetzt-und-gut-1b0c) hat:
> Beginne mit dem Ende im Sinn.

Angenommen dein Karriere-Ende wird gut werden:
Was wirst du aufbauend auf deiner [ursprünglichen Neugierde→](https://dev.to/amustafa16421/22-berufliches-vorwartskommen-ein-gerader-berufsweg-der-anfang-552f) umgesetzt, gelernt, erforscht und weitergegeben haben?

Beste Grüße,
Mustafa
Thuc don tai nha
Published: 2023-04-01 09:39:23

Nếu bạn đang bận rộn với công việc riêng hoặc việc gia đình nhưng lại muốn tổ chức một bữa tiệc đặc biệt tại nhà để tạo ra những kỷ niệm đáng nhớ với bạn bè và gia đình. Bạn có thể sử dụng dịch vụ nấu tiệc tại nhà Tp HCM của Đặt Tiệc Việt để tận hưởng một bữa tiệc thật đặc biệt.

Đặt Tiệc Việt sẽ giúp bạn tổ chức một bữa [tiệc tại nhà thực đơn ngon](https://dattiecviet.vn/thuc-don-tai-nha/) và vui vẻ mà không phải lo lắng về việc nấu nướng và chuẩn bị. 
View web: [https://dattiecviet.vn/thuc-don-tai-nha/](https://dattiecviet.vn/thuc-don-tai-nha/)
Cho thue ban ghe
Tags: chothueghe, chothueban
Published: 2023-04-01 09:37:58

[Cho thuê bàn ghế](https://chothuebangheviet.com/) quận Bình Thạnh, tp Thủ Đức hay các nơi tại TpHCM, quý khách liên hệ hotline 0979 956 385, công ty Đặt Tiệc Việt sẽ giao bàn ghế tận nơi.

Bình Thạnh là một quận nội thành thuộc thành phố Hồ Chí Minh, Việt Nam. Quận Bình Thạnh là điểm đầu mối giữa quốc lộ 1A và 13, nơi có bến xe Miền Đông, là cửa ngõ con tuyến đường sắt Bắc – Nam vào thành phố này. Quận Bình Thạnh được chia thành 20 phường gồm: 1, 2, 3, 5, 6, 7, 11, 12, 13, 14, 15, 17, 19, 21, 22, 24, 25, 26, 27, 28. Trong đó, phường 14 là trung tâm của quận.

Xem website: [https://chothuebangheviet.com/](https://chothuebangheviet.com/)
Dat Tiec Sinh Nhat
Published: 2023-04-01 09:34:16

Đặt Tiệc Việt là đơn vị cung cấp dịch vụ nấu tiệc chuyên nghiệp và tận tâm nhất hiện nay. Với đội ngũ nhân viên được đào tạo kỹ lưỡng, Đặt Tiệc Việt cam kết mang đến cho khách hàng những trải nghiệm tuyệt vời nhất trong bữa tiệc của mình. Bên cạnh đó, công ty luôn lựa chọn nguyên liệu tươi ngon và chất lượng cao để chế biến các món ăn, đảm bảo độ ngon và an toàn thực phẩm cho thực khách.

Xem dịch vụ đặt tiệc sinh nhật: [https://dattiecviet.vn/dat-tiec-sinh-nhat/](https://dattiecviet.vn/dat-tiec-sinh-nhat/)
CMake basic - find_packet
Published: 2023-04-01 08:47:40

# Refer to [Find_package](https://stackoverflow.com/questions/20746936/what-use-is-find-package-when-you-need-to-specify-cmake-module-path)  
The command `find_package` has two modes:
- Module mode
- Config mode

# Module mode

This command finds `Find<package>.cmake` file located withing our project.

```
CMakeLists.txt
cmake/FindFoo.cmake
cmake/FindBoo.cmake
```

```
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(Foo REQUIRED) # FOO_INCLUDE_DIR, FOO_LIBRARIES
find_package(Boo REQUIRED) # BOO_INCLUDE_DIR, BOO_LIBRARIES
```
....
How to test task scheduling in Laravel
Tags: laravel, tdd, php
Published: 2023-04-01 08:43:16

I want to say my own experience about how to test task scheduling in Laravel. There is a task scheduler in Laravel that you can write your task in a callback function and it is completely explained in the [docs](https://laravel.com/docs/10.x/scheduling). When it comes to testing it is possible to work with some sort of [time traveling](https://laravel.com/docs/9.x/mocking#interacting-with-time) but I'm not sure about that.

The way that I do is that I write my task in a [command](https://laravel.com/docs/10.x/artisan) and as we know a command is a regular class of PHP and we can write tests for that to be sure that is working correctly. But for task scheduling, in order to be sure that the task will be run on the specific time intervals, we have to trust to the core task schedulers of servers maybe :)

So test your own task correct and test it and trust to on to run your task is every interval. 

Tell your opinion please.
Sprinters vs marathonians
Tags: discuss
Published: 2023-04-01 08:21:34


It's amazing, but developers are different!   And I don’t mean different programming languages or stacks. I mean a programming philosophies.

Some programmers, let’s call them “sprinters”, write code that just works. This is the only internal acceptance criterion.

Others , let’s call them “marathonians”,write code not only to make it work, but also to be able to maintain it for years.

The main difference is that “sprinters” don't write tests and actually don't care about coding style. The “marathonians” are obsessed with coding style and tests writing to the point where sparks fly,  keeping in the mind SOLID and other dev tricks.

The “marathonians” don't like “sprinters” - they write sloppy code, "just to get it done". 

The  “sprinters” don't like the “marathonians” - they are doing tons of “useless“ work, “art for the sake of art”.

At first sight, long-term maintenance-focused programmers do things the best way. However, they often come at a higher cost and spend more time on coding.

Who knows? Maybe for short-term, low-budget projects, we should act more like "sprinters"?



![Clean code or fast written code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rxj0ka1mpci047kqadig.jpg)
BigNumbers
Published: 2023-04-01 07:54:22

_BigNumber is an object which safely allows mathematical operations on numbers of any magnitude_
uint256 has a range from 0 to (2^256) - 1. Therefore, the maximum number that can be held by the uint256 datatype is astronomically large.
Specifically, the maximum value for uint256 is:
115792089237316195423570985008687907853269984665640564039457584007913129639935

In _Javascript's number data type has a significantly smaller upper limit.
Specifically, the maximum value of a numeric type that Javascript can hold is just_ (9007199254740991);

If that number is greater than Javascript's maximum numeric value, which is quite definitely possible, then what happens?
Javascript can not support that. Therefore, we have to use a special type called a BigNumber.
ibraries used for interacting with Ethereum nodes - ethers.js and web3.js - both come with support for BigNumbers.

BigNumber is a custom class library, written in Javascript, that introduces it's own functions for mathematical functions - add, sub, mul, div, etc. BigNumber has a significantly larger capacity for numbers than what Javascript can natively support.
nodejs to python and vice-versa
Tags: backend, python, node, flask
Published: 2023-04-01 07:46:54

Hi all

This is my first content.

In local server,

(data)MySQL ---> (Node.js) ---> Python(process) => working

 Im stuck in reverse flow i.e., I cant send the processed values from python back to database.

What will be the issues?

Kindly help me resolve it

Thank you
This week’s newsletter is out! (01-04-2023) - World Says No
Tags: javascript, tech, webdev, discuss
Published: 2023-04-01 07:07:49

---
title: This week’s newsletter is out! (01-04-2023) - World Says No
published: true
description: Another week of great javascript, tech and web development links.
tags: javascript, tech, webdev, discuss
---

World Says No

https://markjgsmith.substack.com/p/mark-smiths-newsletter-01-04-2023

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
Important Announcement: All Code Must Now Be Written in Pig Latin
Tags: discuss, beginners, codenewbie
Published: 2023-04-01 07:00:00

It’s a somewhat of a tradition in the tech industry to use April Fools’ Day as an opportunity to showcase our unique sense of humor and creativity 🥸 Many companies have a history of playing elaborate pranks on their users and customers with fake product announcements, humorous updates to existing products, new features, and temporary changes to brand assets. Some of the jokes are funny, some are clever, some are…oof. 

So tell us: do you have any successful (or failed) stories to share about past April Fools’ mischief that you’ve participated in, witnessed, or been on the receiving end of? Tell us about it. 

Thank you for your cooperation and we look forward to seeing your Pig Latin code in action!
NFTCar NFTs: A Groundbreaking Solution to Zero Carbon Footprint
Tags: nft, bnbchain, climatechange, carbonreduction
Published: 2023-04-01 06:34:04

NFTCar offers an innovative approach to achieve zero carbon footprint by generating NFTs through the purchase and scrapping of high-pollution cars. This unique solution ensures 100% verifiable carbon reduction, as the carbon footprint of each car is analyzed based on its age, mileage, and average fuel consumption. The generated NFTs are then linked to a specific car through its VIN number, providing transparency and traceability. To learn more about NFTCar's solution and stay updated on its launch, visit their website at [NFTCar website](https://www.nftcar.io) and join their newsletter. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q62btlu0dy7fx4xz5cjs.png)

Let's work towards a sustainable future. Share your thoughts on NFTCar's solution in the comments below!
How to use react-to-print in react.js
Tags: react, frontend, javascript
Published: 2023-04-01 05:43:58

**Hi**, y'all this is probably the simplest way to go when you're trying to add a download page functionality in react.

In this article, I'll be showing you how to implement pdf downloads from your react project using either class or functional components.

## Installations

I assume you have your react project installed.

Now go ahead and add the packages

```
yarn add react-to-print
```

or

```
npm i react-to-print
```

### Using functional components

Now we can go to our App.js component or any file you intend to use and import your package like so.

```javascript
import React, { useRef } from 'react';
import ReactToPrint from 'react-to-print';

const App = () => {
  const componentRef = useRef();

  return (
    <div>
      <div ref={componentRef}>This contains all the files you intend to export[download]</div>
      <ReactToPrint
        trigger={() => <button>Print this out!</button>}
        content={() => componentRef.current}
      />
    </div>
  );
};
export default App;
```

Voila! However, you might want to be passing the component from another file, then you'll have to pass the ref as a prop.

### Using class component

Following the same method as the first approach, go to your desired file and follow the technique below.

```javascript
import React from "react";
import ReactToPrint from "react-to-print";

class App extends React.Component {
  render() {

    return (
      <div>
        <div ref={(refer) => (this.componentRef = refer)}>Export my HTMl component to a PDF File</div>

        <ReactToPrint
          content={() => this.componentRef}
          trigger={() => (
            <button className="btn btn-primary">Print to PDF!</button>
          )}
        />
      </div>
    );
  }
}

export default Appp;
```

Note when using an external file you'll just have to pass the ref directly into the component you're calling like so `<ImportedComponent ref={(response) => (this.componentRef = response)} />` and yeah you're all good to go.

You're welcome.
Overview of the AZ-120 Exam
Tags: programming
Published: 2023-04-01 05:42:30

**[AZ-120 Exam](https://www.valid4sure.com/AZ-120-exam-answers.html)** for workers with knowledge of Azure for SAP Workloads is the Microsoft AZ-120 exam. This test examines someone's capacity for designing and implementing SAP systems on Azure, as well as their knowledge of SAP NetWeaver, S/4HANA, and HANA.

Exam Format and Structure

The exam's structure combines drag-and-drop exercises, case studies, and multiple-choice questions. The applicant will need to prove their expertise in the following fields:

Using Azure to Plan and Deploy SAP Workloads

The applicant will need to show that they are informed about network and security issues, high availability, and disaster recovery when it comes to deploying and configuring Azure for SAP workloads.

Setting Up and Taking Care of Azure for SAP Workloads

The candidate will need to give proof they know how to set up and handle Azure for SAP workloads, including how to use tools like Azure Backup and Azure Monitor.

SAP Workloads Monitoring and Azure Performance

The applicant will need to show that they are aware of how to use Azure Advisor, Azure Cost Management, and other optimization tools while monitoring and optimizing Azure for SAP workloads.

SAP Workloads Monitoring and Azure Optimization

The applicant will need to show that they are aware of how to use Azure Advisor, Azure Cost Management, and other optimization tools while monitoring and optimizing Azure for SAP workloads.

Azure Security for SAP Workloads

The applicant will need to show that they are familiar with the use of Azure Security Center, Azure Active Directory, and other security tools in securing Azure for SAP workloads.
Resources for Studying for the AZ-120 Exam

Microsoft advises candidates to be familiar with Azure services and solutions, as well as SAP applications and systems, in order to be well-prepared for the AZ-120 exam. Additionally, they advise following the **[Valid4sur](https://www.valid4sure.com/)** for Azure for SAP Workloads, which offers practical labs and other materials.
Top React Data Fetching Libraries
Tags: react, webdev, javascript, beginners
Published: 2023-04-01 05:35:26


Fetching data in React using XMLHttpRequest and Fetch API is fine but require a lot of boilerplate codes. Using a data fetching library is preferred as following solutions will simplify the logic of data fetching in your project with tons of amazing built-in features.

## Popular libraries

[Axios](https://axios-http.com/) ([99k](https://github.com/axios/axios) ⭐) -> A promise-based isomorphic HTTP client which can run in the browser and NodeJS with the same codebase. On the server-side it uses the native NodeJS [http](http://nodejs.org/api/http.html) module, while on the browser it uses XMLHttpRequests.

[React Query](https://react-query.tanstack.com/) ([33k](https://github.com/tanstack/query) ⭐) -> A library handles fetching, caching, background updates and stale data out of the box with zero-configuration. It is backend agnostic so you can use React Query with literally any asynchronous data fetching client.

[SWR](https://swr.vercel.app/) ([26k](https://github.com/vercel/swr) ⭐) -> A React Hooks library for data fetching, created by Next.js team, lightweight, and backend agnostic.

[Apollo Client](https://www.apollographql.com/docs/react/) ([18k](https://github.com/apollographql/apollo-client) ⭐) -> A comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL. Use it to fetch, cache, and modify application data, all while automatically updating your UI.

[Relay](https://relay.dev/) ([17k](https://github.com/facebook/relay) ⭐) -> The production-ready GraphQL client for React, developed by Facebook, was designed to be performant from the ground up, built upon locally declaring data dependencies for components.

[urql](https://formidable.com/open-source/urql/docs/) ([8k](https://github.com/urql-graphql/urql) ⭐) -> A highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

[RTK Query](https://redux-toolkit.js.org/rtk-query/) ([9k](https://github.com/reduxjs/redux-toolkit) ⭐) -> An optional addon included in the Redux Toolkit package, and its functionality is built on top of the other APIs in Redux Toolkit.

## Data fetching

Web applications normally need to fetch data from a server in order to display it. They also usually need to make updates to that data, send those updates to the server, and keep the cached data on the client in sync with the data on the server. This is made more complicated by the need to implement other behaviors used in today's applications:

- Tracking loading state in order to show UI spinners
- Avoiding duplicate requests for the same data
- Optimistic updates to make the UI feel faster
- Managing cache lifetimes as the user interacts with the UI

## Common features

- Transport and protocol agnostic (REST, GraphQL, etc)
- Caching, refetching, polling, realtime
- Pagination, load more, infinite scrolling
- Requests and responses interception
- Revalidation on focus, network recovery
- Performance optimizations
- Request cancellation
L'italie bannit ChatGPT
Tags: chatgpt, openai, italie
Published: 2023-04-01 05:32:56

La semaine a été difficile pour OpenAI, alors que les appels à la réglementation de l’intelligence artificielle se font de plus en plus pressants


L'Italie est devenue le premier pays occidental à bloquer le chatbot avancé ChatGPT. 
L'autorité italienne de protection des données a déclaré qu'il y avait des préoccupations en matière de confidentialité liées au modèle, créé par la start-up américaine OpenAI et soutenu par Microsoft. 

Les autorités italiennes ont déclaré qu'elles bloquerait le chatbot d'OpenAI et enquêtaient également sur sa conformité au Règlement général sur la protection des données. Le RGPD régit la manière dont nous pouvons utiliser, traiter et stocker les données personnelles.

Les autorité italienne de protection des données ont déclaré qu'OpenAI disposait de 20 jours pour dire comment il répondrait aux préoccupations, sous peine d'une amende de 20 millions d'euros (21,7 millions de dollars) ou jusqu'à 4% des revenus annuels.
CMake Basic 2
Published: 2023-04-01 05:13:00

# The first line  
```CMake
cmake_minimum_required(VERSION 3.25)

# range supported

cmake_minimum_required(VERSION 3.7...3.26)

if(${CMAKE_VERSION} VERSION_LESS 3.12)
    cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()
```
If the CMake versions is less than 3.12, the if block will be true, and the policy will be set to the current CMake version. if CMake is 3.12 or higher, the if block is false but the new syntax in `cmake_minimum_required` will be respected.


# Setting a project

```
project(MyProject VERSION 1.0
                  DESCRIPTION "Very nice project"
                  LANGUAGES CXX)
```

# Making an executable

```
add_executable(one two.cpp three.h)
```

- one: is the name of executable file which is generated
- one: is the name of the CMake target created
- two.cpp three.h : is the source files  

# Making a library  
```
add_library(one STATIC two.cpp three.h)
```

Library type: STATIC, SHARED and MODULE.

# Targets are your friend

```
# include directory

target_include_directories(one PUBLIC include)
                           target name
                                 policy?
                                       directory
```

PUBLIC -> for a library, it lets CMake know that any targets that link to this target must also need that include directory.  
PRIVATE -> only affect the current target  
INTERFACE -> only needed for dependencies ?!  


## We can then chain targets  
```
add_library(another STATIC another.cpp another.h)
target_link_libraries(another PUBLIC one)
```
Cmake basic
Published: 2023-04-01 04:58:02


# Some basic syntax

## Build a project

```
$ mkdir build
$ cmake -S . -B build
$ cmake --build build
```

## Install  
```
$ cmake --build build --target install
$ cmake -v # verbose build
```

## Picking a compiler

```
$ CC=clang CXX=clang++ cmake ...
```

## Picking a generator  
```
$ cmake -G"mytool"
```
React vs Angular: Which Framework is Better for Your Project?
Published: 2023-04-01 04:53:45

React and Angular are two of the most popular front-end frameworks in use today. Both frameworks have their own strengths and weaknesses, so it’s important to choose the right one for your project.

In this article, we’ll take a look at the key differences between React and Angular, and help you decide which framework is right for you.

Key Differences Between React vs Angular

There are a number of key differences between React and Angular. Here are some of the most important ones:

Data binding: React uses one-way data binding, while Angular uses two-way data binding. One-way data binding means that changes to the data in a component only affect the UI in that component. Two-way data binding means that changes to the data in a component can also affect the UI in other components.
Routing: React does not have built-in routing, while Angular does. Routing allows you to create different pages in your application. React developers typically use a third-party routing library, such as React Router.

Which Framework is Right for You?
So, which framework is right for you? It depends on your project’s needs. If you’re building a small, simple application, React might be a good choice. If you’re building a large, complex application, Angular might be a better option.

Read more article about this topic click [here ](https://techzpad.com/react-vs-angular)
Rikvip - Cổng game hút khách số 1 thị trường Việt Nam
Published: 2023-04-01 04:26:11

https://playrik.site/ Rikvip là cổng game luôn khiến nhiều người chơi cảm thấy hưng phấn✔️ Sân chơi đa dạng cho các game thủ thử sức và trải nghiệm✔️✔️✔️
https://app.bountysource.com/people/115273-playrik-site
https://penzu.com/p/d63c4b0e
https://peatix.com/user/16661491
https://matters.news/@playriksite
704. Leetcode Solution in cpp
Tags: cpp
Published: 2023-04-01 03:48:33

```cpp
class Solution {
public:
    int bSearch(vector<int>& nums, int target, int start, int end){
        if(end < start) return -1;
        int mid = (start+end)/2;
        // cout << mid << endl;
        if(nums[mid] == target){
            return mid;
        }else if(target < nums[mid]){
            return bSearch(nums, target, start, mid-1);
        }else{
            return bSearch(nums, target, mid+1, end);
        }
    }
    
    int search(vector<int>& nums, int target) {
        return bSearch(nums, target, 0, nums.size()-1);
    }
};

```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/binary-search/
I made 3D Snake
Tags: gamedev, graphics, c
Published: 2023-04-01 02:21:31

Hello everyone! In my last few posts I've shown off some websites that I've built, but honestly JavaScript is overrated and I wanted to dive back into some lower level stuff. I had worked with C and SDL2 before, but I was still quite a beginner at graphics and the C language itself.

To start things off, I started learning OpenGL from [this wonderful website](https://learnopengl.com/Getting-started/OpenGL). After setting up the project infrastructure on the 10th of March, I went through all the "Getting Started" tutorials. This just covers the basics of OpenGL and after re-reading the tutorial sections a few times, I decided to create my own project. I wanted to make a classic game, but in 3D, so I chose to make Snake. The game took 4 days in total to make and is composed of ~900 lines of C code.

Here's a screenshot of the game:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/200tn6s2kzdijm8x5lkb.png)

If you want to try out the game yourself or inspect the code, you can do that here at the Github repository: 
{% embed https://github.com/STCollier/Snake %}

Let me know what you think!