teleren/devto huggingface dataset:
How to cherry-pick a commit from another repository
Tags: git, programming, tutorial, beginners
Published: 2022-10-11 09:26:36

To [cherry-pick](https://git-scm.com/docs/git-cherry-pick) a commit from another repository you have to first add the other repository as a [remote](https://git-scm.com/docs/git-remote/) (a remote is a repository whose branches you are tracking). You have to give the remote a name.

```bash
git remote add <name> https://github.com/example.git
```

Then, you have to fetch the branches of the remote.

```bash
git fetch <name>
```

Now that you are tracking the other repository and have fetched the changes you can list the commits of a specific branch and cherry-pick a commit.

```bash
git log otherRepo/<branch>
git cherry-pick <commit>
```

In case that you don't want to track the remote anymore you can remove it with:

```bash
git remote remove <name>
```

More info about working with remotes [here](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes).

## Resources

- [Git - Cherry-pick](https://git-scm.com/docs/git-cherry-pick)
- [Git - Remote](https://git-scm.com/docs/git-remote/)
- [Git - Working with Remotes](https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes)
Web3 Will Soon Get a New Decentralized Social Network
Tags: web3, socialmedia
Published: 2022-10-11 09:24:46

A decentralized organization called Earth DAO is announcing a social network to address the need for a [Web3 social media website development](https://www.suffescom.com/product/web3-social-media-platform-development/) alternative days after yet another discussion and calls for one.

By methodically altering the incentives, intentions, and internet protocol that social media is based on, the platform is known as the social. The network seeks to address the social conundrum.

Because Web2 social media is a tremendously difficult social and technical problem, we have spent years developing a superior substitute. For newer Web3 technologies like Ethereum, Polkadot, Avalanche, etc., to compete with Web2 social networks at scale, centralization will likely need to be reintroduced into the stack. However, Sukhveer Sanghera, a contributor to Earth DAO, claimed that the Internet Computer Protocol has the most potential to do so in a manner that doesn't.

## Social network development for Web3

Traditional social media businesses have been under fire recently for weakening democracy and exploiting user data for advertising money at the expense of tearing apart society.
The social. The network is made up of a network of DAOs that use protocol revenue for charitable purposes, such as battling climate change.

By holding or producing NFTs in their self-custody wallets, users on the public network will be able to join DAOs on the network. When NFTs are purchased and sold on the marketplace, a percentage of the proceeds will go to whichever DAO the user decides to support.

It is a network that is completely decentralized from the start; there are no central servers, intermediaries, or custodians.

Many of the decentralized social networks that have already come online are often VC-driven money grabs, ironically by the same folks who brought about the problem. Given what we now know about the impact social network technology has on the world, we must take care to set Web3's initial conditions appropriately because, in physics, the initial conditions of a model have a substantial influence on the outcome. What we're actually discussing, according to Sanghera, is where we as a species wind up on Earth, given the rate at which AI is evolving at these corporations.

In order to encourage a better future for reality on Earth, the platform is getting ready for a fair debut without any VC backing.

The first Earth DAO on social. The network will use earnings over and above protocol development expenses to pay towards addressing climate change.

Visit the social. Network to apply and assist in spreading the news on Twitter if you're interested in becoming a part of this grassroots movement.

## The Earth DAO

The goal of the Earth DAO, a decentralized autonomous organization, is to ensure that Web3 technologies are used to improve reality on Earth by upholding the integrity of decentralized financial, social, and governance systems as they are implemented on the Web3 network.
Building efficient crypto trading software with python
Tags: programming, trading, python
Published: 2022-10-11 09:12:05

Hello and welcome to this short list of articles where I will talk about the modern approach to building production-grade trading software with python programming language.

Python is widely used for its simplicity and clean, readable code. More than one million software developers can understand and support the code written in python.

But python is known for some disadvantages, such as speed. You can ignore this disadvantage most of the time as most libraries used for trading purposes use code snippets written in C and are fast enough for most common tasks.


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

We will discuss three main concepts: asynchronous programming, event-driven architecture, and microservices architecture.

As far as our software will use different data sources, API services, and more, we will have to make it asynchronous, so we will not wait for a data lag from any remote services. Asynchronous execution is a must.

The event-driven approach helps us better understand and control what is happening in the system, which works fast. 

Microservices architecture makes it easier to develop and support projects with thousands of lines of code by giving us a chance to focus on a single problem which can be way harder with a monolithic architecture.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dt9qxr2s2vflrfu1swe.jpg)

If you are interested in learning about building crypto trading software, follow this channel for more content.
Vercel OG Image Generation
Tags: javascript, react, nextjs, webdev
Published: 2022-10-11 09:06:24

## New library for generating dynamic social card images.

Vercel OG converts HTML and CSS into images.

The core engine, Satori, can be used in modern browsers, Node.js, and Web Workers. Building on top of the core engine, Vercel OG is able to be used inside Edge environments through WebAssembly to easily create social card images.

By leveraging the React component abstraction, social cards can be co-located with the rest of your frontend codebase. For example, inside a Next.js application:

```
// pages/api/og.jsx

import { ImageResponse } from '@vercel/og'

export const config = {
  runtime: 'experimental-edge',
}

export default function () {
  return new ImageResponse(
    (
      <div
        style={{
          display: 'flex',
          fontSize: 128,
          background: 'white',
          width: '100%',
          height: '100%',
        }}
      >
        Hello, World!
      </div>
    )
  )
}
```

Vercel OG automatically adds the correct Cache-Control headers to ensure the image is cached at the Edge after it’s been generated.

```
'content-type': 'image/png'
'cache-control': 'public, immutable, no-transform, max-age=31536000'
 Caching headers from a generated Vercel OG image.
```

[reference](https://vercel.com/blog/introducing-vercel-og-image-generation-fast-dynamic-social-card-images)
9 things about Formik - Build React Forms without any Tears
Tags: programming, react, javascript, webdev
Published: 2022-10-11 09:02:15

## Under the Hood
If you want to watch instead of read here is the link to the shorts - [Formik introduction shorts (https://youtube.com/shorts/JXrT9IOYDNI)

## 9 things about Formik - Build React forms without any tears. 

1. Provides Components such as **Form**, **FieldArray**, and **Formik** to deal with complex forms and controlled forms
2. Provide different kinds of validations such as **Form Level Validations**, **Field Level Validations**
3. Provide hooks such as **useField**, **useFormik** to deal with validations
4. Compatible with UI libraries such as Material UI, Ant Design, Semantic UI
5. Provide Error component to handle errors precisely
6. Works efficiently with other HTML components such as Radio buttons and checkboxes.
7. Works with React Native and React
8. In-built support with Typescript
9. It’s easy to install just using `yarn add formik`

## Conclusion
That’s for today, until next time, have a good day, people.

[Link to Formik website](https://formik.org/)

Keep developing
Shrey
[iHateReading](ihatereading.in)
Adding Config for SSG
Published: 2022-10-05 06:02:29

# Thoughts

Adding config seemed a lot harder when I first read through how it works. I mean reading a json file, and using its value to run a bunch of command lines doesn't seem too easy. However, as I view my partner's code, I start to realize that there it was a lot easier to do. Parsing the JSON file, and taking its key-value pair as the a condition to run their corresponding command line was a lot easier.

> Problems

I did not run into any problems, aside from the initial reviewing phase of the code. Having to work on another person's repository instead of my previous partner was at first a bit difficult, but overall it didn't really bother me anymore after I read through their content.

> Git

Git can still be a bit confusing once in a while due to its heavy use on CL. I always have to follow a specific routine to make sure that I am able to push my code to my forked file without having any issues. There was one time where I forget to switch branch, and accidentally push my code to main. I do say that the use of branch does help a lot with running my code.
Hacktoberfest 2022 done ✅
Tags: hacktoberfest
Published: 2022-10-11 08:35:23

---
title: Hacktoberfest 2022 done ✅
published: true
description: 
tags: hacktoberfest 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---
In October 2022 i have done #hacktoberfest 

![Hactoberfest2022](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nfz12hp3yyiaj9cbpojn.png)
Budibase Hackathon Update - Over $5K in prizes 🎉
Tags: hackathon, beginners, opensource
Published: 2022-10-11 08:30:22

---
title: Budibase Hackathon Update - Over $5K in prizes 🎉
published: true
description: A quick update on the Budibase hackathon
tags: hackathon, beginners, opensource
# cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/edf0plycdzq9f6c1f4m8.png
---

![Budibase hackathon](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e52xynygg8nfec0b9whk.png)

The Budibase hackathon kicked off on the 1st of October. Since its commencement, the reception from the developer community has been incredible.

So far, hackers have contributed:
- A Spotify component
- Google BigQuery integration
- QR code scanner component
And more.

You can find more contributions within our plugin repository:
https://github.com/Budibase/plugins

In total, there's $5,000 in prizes to be won at the Budibase hackathon. If you are interested, you can find out more using the link below:
https://lu.ma/budibase-virtual-hackathon

Happy hacking!
TimSort Algorithm in C with doubly Linked List
Tags: timsort, c, timpeter, doublylinkedlist
Published: 2022-10-11 08:21:56


###Have you already chosen a sorting #algorithm?

I admit that the exercise is not one of the least, the sorting algorithms, there are dozens of them and everyone has their say.

Having almost all studied, one of the choices that I retain is the algo of #TimSort.

```Timsort is an efficient sorting algorithm for real-world data. Created by Tim Peters and adopted in 2001 as the default sorting algo in the #Python programming language. Timsort first analyzes the list it is trying to sort, then chooses an approach based on the analysis performed.```



The initial array is divided into sub-arrays called #RUN on which insertion sort is applied (insertion sort); and then merge sort on each of its RUNs to return to the initial array.



```NB: The value of RUN may vary depending on the size of the initial array.```



####This algo allows you to have an order #complexity of O(n log n) in a worse case and a complexity of O(n) in a best case.




An implementation in C using the double linked lists that I made of this algo can be found in the [Link](https://github.com/TrakyRichard/tim_sort)

Your feedback is welcome in the comments.
next-export-i18n v2.1.0: support for react v18 and next v12
Tags: javascript, nextjs, webdev, react
Published: 2022-10-11 08:03:27

next-export-i18n v2.1.0: support for react v18 and next v12


Today we released `version 2.1.0` of `next-export-i18n`, the most popular i18n module for Next.js which is fully compatible with `next export`.
Version 2.1.0 adds extended support for react v18 and next v12.

---

Install `next-export-i18n` with `$ npm i next-export-i18n` or get [`next-export-i18n v1.3.0`](https://www.npmjs.com/package/next-export-i18n) from npm.js.

---


## About `next-export-i18n`

**This npm module provides a simple solution for Internationalization (i18n) of projects using `next export`.**

Next.js already has support for internationalized (i18n) routing out-of-the-box. You can provide a list of locales, a default as well as  domain-specific locales and Next.js  automatically handles the routing. It streamlines the touring and locale parsing for nearly all existing l18n library solutions available for Next.js such as `react-intl`, `react-i18next`, `lingui`, `rosetta`, `next-intl`.

Unfortunately, [`Next.js` i18n-routing](https://nextjs.org/docs/advanced-features/i18n-routing) does not supports `next export`.
This means that _none_ of the i18n-libraries (which are utilizing the build in i18n-routing) is able to support fully static sites which are generated with `next export`. 

`next-export-i18n` provides a simple solution for Internationalization (i18n) when you want to generate a truly static website with `next export`.

Read the [Introduction to `next-export-i18n` - next.js: i18n with static sites](https://dev.to/martinkr/next-js-i18n-with-static-sites-2644) for more details.

---

### Sample implementation 

You can also take a look at the example implementation [next-export-i18n-example.vercel.app](https://next-export-i18n-example.vercel.app) and its source code at [github: `https://github.com/martinkr/next-export-i18n-example`](https://github.com/martinkr/next-export-i18n-example).

---


## Links
- [`next-export-i18n` npm module](https://www.npmjs.com/package/next-export-i18n)
- [next.js: i18n with static sites (Introduction)](https://dev.to/martinkr/next-js-i18n-with-static-sites-2644)
- Example implementation: https://next-export-i18n-example.vercel.app
- Github for the npm-module: https://github.com/martinkr/next-export-i18n
- Github for the example: https://github.com/martinkr/next-export-i18n-example

---

Follow me on [Twitter: @martinkr](http://twitter.com/_martinkr) and consider to [buy me a coffee](https://www.buymeacoffee.com/martinkr)

--- 

Photo by [Jerry Zhang](https://unsplash.com/@z734923105?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText") on [Unsplash](https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

---
A Quick 10-Second Programming Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2022-10-11 08:00:12

---
title: "A Quick 10-Second Programming Joke For Today"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259118e11e.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ What's a compiler developer's favorite spice?

___A:___ Parsley.
 -->
We built a tool that automatically generates API Tests
Tags: showdev, api, devops, opensource
Published: 2022-10-11 07:40:53

	
Hi, this is Mish and Sebastian. 
**We are working on Step CI - a fully automated API testing platform for developers.**
{% embed https://stepci.com/ %}

Step CI works programming-language independent and for different API paradigms (REST, GraphQL, XML).

Our CLI and test runner are available on GitHub https://github.com/stepci under the MPLv2 license.

Since our last launch, Step CI is now able to generate automated tests for your API based on your OpenAPI (Swagger) spec. This saves you a lot of time as you never have to write and maintain your tests again!

We would like to invite you to try our tool and give us feedback! Please star us on GitHub, if you like what we are working on!

We are very thankful for your attention and any feedback or suggestions we receive from you :)

Mish and Sebastian from Germany
How to access remote system by telnet server in 2022
Published: 2022-11-27 17:41:23

---
title: How to access remote system by telnet server in 2022
published: true
date: 2022-10-11 07:40:16 UTC
tags: 
canonical_url: https://ashwintelmore.hashnode.dev/how-to-access-remote-system-by-telnet-server-in-2022
---

Via telnet server we can access the any computer remotely. whoever telnet is not good option for the accessing the computer instead of telnet we should use ssh but in this blog we gona talk about telnet

here are the steps

**Requirements**

- A server with Ubuntu 22.04 installed.
- A non-root user with sudo privileges.
- A static IP address 192.168.0.100 configure on your server.

**Remote server configuration** Install Telnet Server By default, the Telnet server package is available in the Ubuntu 20.04 default repository. You can install it by just running the following command:

```
sudo apt install telnetd -y

```

Once the installation is completed, you can check the status of Telnet service using the following command:

sudo systemctl status inetd Telnet is activation in the configuration file

open file /etc/xinetd.d/telnet by running following command

```
vim /etc/xinetd.d/telnet

```

Past following code here

```
service telnet
{
   flags = REUSE
   socket_type = stream
   wait = no
   user = root
   server = /usr/sbin/in.telnetd
   log_on_failure += USERID
   disable = yes
}

```

Restart the telnet

Now, we have to open port23 in the ufw firewall. Execute the below command:

```
ufw allow 23/tcp

```

The next step is to reload the firewall to apply the changes. To reload the firewall, execute the below command:

```
ufw reload

```

Verify that the service is started and running normally on the server. Typically, you can start the telnet service with the following command.

```
/etc/init.d/xinetd restart

```

Test Telnet Connection from Remote System Telnet server is now installed and listening on port 23. Its time to connect the Telnet server from the remote system.

Now, log in to another Ubuntu system and replace ip\_address with your remote system which you want to access run the following command:

```
telnet ip_address

```

Done!
Best Holiday Resort in Turkey
Published: 2022-10-11 07:34:38

Looking to travel to turkey from UK then this post will give you a complete guide on everything you need to know before your trip. Including how to get to turkey and the best time to go.

It also includes advice on how to get around turkey, accommodation and what to expect whilst visiting. So if you are travelling to Turkey from UK, then you can travel via Car, Bus, Train, Air or even by ferry. However, the cheapest and easiest option is to fly via London.

If you Like more details visit my Website Link: [Best Holiday Resort in Turkey](https://holidaytoturkey.uk/best-holiday-resorts-in-turkey/)
PHP Web Development Advantages
Tags: php, webdev, programming
Published: 2022-10-11 07:31:47

## Introduction

One of the most widely used server-side programming languages for creating websites is PHP. Worldwide, PHP is widely used by programmers and developers to build websites and web applications. Regularly, people and businesses hire specialized PHP programmers to meet their web development needs. Because it is far less expensive than in-house development of projects in western and Australian nations, they recruit professional PHP developers.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mp865h5yj78xy9ope48e.png)
Let us explore some of the benefits of PHP web development:

PHP is an open-source programming language that may be downloaded for free via the internet. It has gained popularity among web developers who are constantly on a tight budget thanks to this facility. The [eCommerce website development](https://shop.aalogics.com/services/e-commerce-website-development) is normally done by using PHP language. 

The syntax of PHP is heavily influenced by C++. Since almost all developers are familiar with C++, they can readily comprehend and write the code.

Since the language is thought to be search engine friendly, more people visit the page as a result. Clients' insistence on PHP site development was sparked by a little free advertising. There isn't much convincing to be done because clients hire devoted PHP programmers who are already aware of this. Both clients and developers will benefit from it without a doubt.

It is a very adaptable website, which gives developers a lot of flexibility in terms of making it operate with any technology they choose. Any operating system, including Windows, Mac, and Linux, can run PHP. Despite the fact that PHP is compatible with practically every database server, the MySql database server is thought to be the most suitable database for [PHP web development](https://www.aalogics.com/php-development).

PHP offers incredibly strong database management capabilities that let it manage multiple databases simultaneously.

For PHP, there are several extensions and frameworks that can be used to quickly construct standard functionality like back-end admin, profile administration, content management, etc. Website developers may quickly add the functionality they want to their creations, saving time and money on the overall project's development.

Non-IT organizations should employ specialized PHP developers so they may focus on their core business functions while the PHP specialists take care of all of their web development needs. Better management of the client's core business and successful fulfilment of his IT requirements will follow from this. 

The dedicated hire model of service is proven to be the most helpful in PHP web development projects because the US is home to many skilled PHP developers and companies that can offer top-notch services for affordable prices. Before giving a PHP developer any projects, people and organizations must thoroughly investigate their background and references.
Deploy a storybook via Azure Devops to Azure Static Web App
Published: 2022-10-11 07:27:42

I've spent the morning trying to deploy my static storybook to a Azure Static Web App. I've found a few blog posts about it but they seemed a bit outdated.

Finally i figured out that you could just do everything with the [AzureStaticWebApp](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-static-web-app-v0?view=azure-pipelines) pipeline task.

For me it worked to just add this command to a pipeline.

```yaml
- task: AzureStaticWebApp@0
  inputs:
    app_build_command: 'yarn build-storybook'
    output_location: '/storybook-static'
    skip_app_build: false
    is_static_export: true
    azure_static_web_apps_api_token: '$(deployment-token)'
```
You will need to add a $(deployment-token) variable that you will find on your static web app in Azure, but otherwise that was all i needed, no need to run any custom yarn commands and so on.