teleren/devto huggingface dataset:
How to pass string value as request body to the post method of third party API
Tags: go, httppost, post
Published: 2022-12-19 11:42:34

`` postBody, _ := json.Marshal(map[string]string{      
    "www://xyz.org/file.txt",           
   })
   requestBody := bytes.NewBuffer(postBody)
resp, err := http.Post(("--POST API call--", "application/json", requestBody )`
______________________________________________________________
So if requestBody will fetch POST API call then, it should be allow to pass as a parameter with content body.

but its creating issue as below I have attached Postman snap where we can get to know content body is passing as null which should be like value of "www://xyz.org/file.txt"

normally POST call having requestBody body like below
-------------------------------------------------------------
postBody, _ := json.Marshal(map[string]string{
      "Key1":  "Value1",
      "key2": "Value2",
   })
--------------------------------------------------------------
**But in my case as below ** whichever file path I am calling that pass as a default web url value without key

--------------------------------------------------------------
 postBody, _ := json.Marshal(map[string]string{
       "www://xyz.org/file.txt",--------> // here no key available, only value as a string value
   })
--------------------------------------------------------------`
c ++ 6-dars
Tags: programming
Published: 2022-12-19 11:20:47

``` cpp
#include <iostream>
using namespace std ;

int main5() {

// kutubxona <cmathh>
  
float a;
  cin >> a;

  cout << round(a);

return 0;
}

int main4() {
int son;
  cin >> son;

  char a = char (son);
  cout << son << endl;
  cout << a;
  
return 0;
}

int main3() {
  
int a = 65;
  
  char b = 'z';
  
  cout << char (a);
  cout << endl << int (b);
  
return 0;
}

int main2() {

// bool => boolean

  bool a = true;

  cout << (10<5);
  
return 0;
}

int main1() {
  
int a = 10;
float b = 10.5;
double c = 10.252153515136;
string d = "ikkichilar";
//char => character (belgi);
  
char belgi = 65;
int son = 'A';
// int son = 3
  
cout << belgi << " " << son;

return 0;
}
```
@dawroun
ReductStore v1.2.0 Released
Tags: news, database, opensource, reductstore
Published: 2022-12-19 11:10:02


Hello, everyone!

We're excited to announce the release
of [ReductStore v1.2.0](https://github.com/reductstore/reductstore/releases/tag/v1.2.0). In this update, we've made some
important changes to
improve the way tokens and buckets are managed. Specifically, when you create a new token, the database will now check
to ensure that the buckets specified in the token's permissions actually exist. This will help prevent errors and ensure
that users have the proper access to the appropriate buckets.

We've also added a new endpoint, `GET /api/v1/me`, which allows users to retrieve their current permissions. This can be
useful for checking what actions a user is allowed to perform, or for debugging purposes.

In addition to these changes, we've made a few updates to the branding of the project. As you may know, ReductStore was
previously known as Reduct Storage. We decided to rename the project to ReductStore in order to have a shorter name and
a cool domain (https://reduct.store).

We hope these updates will improve your experience with ReductStore. As always, if you have any questions or feedback,
don't hesitate to reach out in [Discord](https://discord.gg/NQbPeGgzdR) or by opening a discussion
on [GitHub](https://github.com/reductstore/reductstore/discussions).

Thank you for using [ReductStore](https://reduct.store)!
Boot Camp week 3...
Tags: beginners, css
Published: 2022-12-19 10:50:03

I am now approaching week three of boot camp, it has been so intense with full time work as well I have not had chance to post. So here is my experience so far.

This week we are learning CSS and I have to say that my head is full of boxes and confusion with a roller coaster of frustration and elation(when I finally get it right).
We have been:

- Working on flex boxes

- playing about with structures and grids

- Adding media queries

I have had lots of issues getting my head round flex box but have managed to set up a structure that meets the needs of my wire frame.
The only issue that I am having is finding the code that will connect my nav bar to my headings and go to a specific section on a page.

We will be starting UX/UI and bootstrap next.
If you could automate one process what would you automate?
Tags: discuss, automation, productivity
Published: 2022-12-19 10:44:00

---
title: If you could automate one process what would you automate?
published: true
description: 
tags: discuss, automation, #productivity
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dhbcpr384yfrtg2halz.png
# Use a ratio of 100:42 for best results.
published_at: 2022-12-19 10:44 +0000
---

I don't know about you, but it never feels like there's enough time in the day, and it definitely feels like there are tasks that I procrastinate working on because they don't exactly get me excited. Maybe you feel that way too. What would you automate in your life--real or imaginary?
(Exchange Social Media) Monday Social
Tags: facebook, youtube, creator
Published: 2022-12-19 10:15:36

##  Happy Monday!!!

 
Let's expand our networks follow me and comment below your Github, Twitter, and Linkedin. 

I'll follow back!!

https://github.com/dangolbeeker
https://twitter.com/scott_beeker
https://linkedin.com/in/realscottbeeker
Add Quotes to your Unquoted JSON Objects
Tags: javascript, tips, webdev, productivity
Published: 2022-12-19 10:09:26

In this article, we will not discuss what JSON or Javascript objects are; or their differences in syntax or usage, many articles have already covered them.

One thing to keep in mind is that, according to specification JSON property names must be double-quoted.

```
// Example: JavaScript Object
{
    id: "TF_CE8TUEPX2LA",
    status: "PENDING",
    failureReason: null,
    language: "en",
    createdAt: 1669797871000,
    updatedAt: 1669797872000,
    completedAt: null,
    depositInitiatedAt: null,
    cancelledAt: null,
    ...
}

// Example: JSON Object
{
    "id": "TF_CE8TUEPX2LA",
    "status": "PENDING",
    "failureReason": null,
    "language": "en",
    "createdAt": 1669797871000,
    "updatedAt": 1669797872000,
    "completedAt": null,
    "depositInitiatedAt": null,
    "cancelledAt": null,
    ...
}
```
The requirement to convert a JavaScript object into a JSON object frequently arises while developing websites. Often one needs to utilize a valid JSON object, for instance, when testing an endpoint with a JSON payload over an HTTP client like Postman or Insomnia.

There is no doubt that your IDE allows you to pick numerous keys and add double quotes to the beginning and end of each key, but imagine if you had 200~300 keys! 🤯

Additionally, you could perform the conversion using the `JSON.stringify()` method, but who wants that? Right?🥱

I'm not sure if you know this, but you can use the Console tool from Google Chrome DevTools to quickly convert Javascript Object to JSON Object.

Here are the steps..

1. Copy Unquoted JSON Object on clipboard
2. Navigate to Chrome Console Tab
3. Paste Unquoted JSON Object on console
4. Hit Enter
5. Right-Click on the result object to see options
6. Use Copy object option to copy your valid JSON Object and go break the internet!

![Copy Object on Chrome Console](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ax3uhch4o0isyfg8pcqz.png)

More tips such as this one that helps you move quickly are shared every month on our [Blog](https://dev.to/clickpesa). Make sure you take a look at them.
How to use jest test.each function
Tags: javascript, testing, jest, typescript
Published: 2022-12-19 10:00:44


Let's test with Jest the following `isInfiniteDate` function, which checks whether the **given** date is "infinite" in the given context:

```typescript
export const isInfiniteDate = (input: string): boolean => {
    const maximumDatePossible = '9999-12-31';
    return new Date(input).getTime() === new Date(maximumDatePossible).getTime();
};
```

For sure, we want to test different dates with the same expected result, either **true** or **false**

To avoid "duplication" of same test with different data, you can use `test.each(table)(name, fn, timeout)` function, to which you can pass an `Array` of Arrays with the arguments that are passed into the test `fn` for each row.

```typescript
describe('isInfiniteDate > ', () => {
    test.each([
        [null, false],
        [undefined, false],
        ['AXON', false],
        ['2021-31-31', false],
        ['2021-12-12', false],
        ['9999-12-31', true],
    ])('given input date %p , it should return %p ', (input, expected) => {
        expect(isInfiniteDate(input)).toEqual(expected);
    });
});
```

- `name` is the `String` title of the test block -  See the [referenced link](https://jestjs.io/docs/api#testeachtablename-fn-timeout) for the different formatting options
- optionally, you can provide a timeout (in milliseconds) for specifying how long to wait for each row before aborting. The default timeout is 5 seconds.

> This is the equivalent of [@ParameterizedTest](https://junit.org/junit5/docs/current/user-guide/#writing-tests-parameterized-tests) in Java

<span style="font-size: 0.9rem">
  <strong>Reference - </strong>
  <a href="https://jestjs.io/docs/api#testeachtablename-fn-timeout" target="_blank" style="font-weight: lighter">
     https://jestjs.io/docs/api#testeachtablename-fn-timeout
  </a>
</span>

<hr/>


> Shared with :heart: from [**Codever**](https://www.codever.dev/snippets/639852fc3b43b9521ecfe046/details). Use :point_right: [**copy to mine**](https://www.codever.dev/snippets/639852fc3b43b9521ecfe046/details) functionality to add it to your personal snippets collection. 
> 
> **Codever** is open source on [Github](https://github.com/codeverland)⭐🙏
ChatGPT Google,Bing,DuckDuckGo Search Chrome extension
Tags: chatgpt, openapi
Published: 2022-12-19 09:51:18


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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0em1nr4lnaut1fkyj16a.gif)

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

Try Now: [https://chrome.google.com/webstore/detail/chatgpt-for-search-engine/feeonheemodpkdckaljcjogdncpiiban?hl=en-GB&authuser=0](https://chrome.google.com/webstore/detail/chatgpt-for-search-engine/feeonheemodpkdckaljcjogdncpiiban?hl=en-GB&authuser=0)
Why you should adopt Makefile in all of your projects
Tags: softwareengineering, bestpractice
Published: 2022-12-19 09:48:28

GNU Make. A software that is, most likely, older than you. It’s so simple, so standard, and so ignored. I’m here to provide a case in favor of make and Makefiles.
What is make and Makefile?

Before I even start to build my case, I need to explain to you what is make and Makefile.

## What is make and Makefile?

make - is a build automation tool. It is written in C and was first released in April 1976. On Linux, make is usually available as part of the build tools dependencies that includes stuff like gcc - the C compiler etc. On Ubuntu, it's under build-essentials; on Arch Linux, under base-devel. MacOS users can install it with brew. And on Windows... I honestly have to clue what is going-on on Windows.

But make does not work by itself. It needs instructions. And those instructions are stored in a Makefile.

---

_I believe in owning my content, in the same way I own my computer or my car. Therefore, if you want to continue reading this article, for free, you can follow [this link](https://www.yieldcode.blog/post/why-you-should-adpot-makefile-in-all-of-your-projects) to my personal blog._
An AWS Community Builders Holiday story
Tags: aws, awscommunity, cbchristmas2022
Published: 2022-12-19 09:30:38

This is the Avinash Dalvi edition of an AWS Community Builders holiday story; check out the other posts from my fellow AWS Community Builders on why they love the programme and learn more about them as well!

## What surprises you most about the Community Builders Program?

The best part of community builders is learn together and grow together mindset. All of the community builders that I talked to or met have the same mindset. Passionate and like minded builders

## What’s your background and your experience with AWS?

I work as a full-stack developer. I used AWS for official and personal work. I am passionate about using and exploring AWS. I've been using AWS since 2014 and have never felt the need to look elsewhere.  Words alone cannot express how AWS innovates. I have built some open source utilities for AWS usage. 

## What’s the biggest benefit you see from the program?
Learning about others, such as what they are learning and how they are learning, is called peer learning. SWAG is a superb thing. Also, we get the chance to share early feedback about beta products, which is a good part of the program.

## What’s the next swag item that you would like to get?
I believe I have the majority of the swag. I'm still curious to see what happens next. Jason and his team are constantly on the lookout for the best swag. However, some soft toys (teddy bears or other similar items) have the words "Learn Together, Build Together!" written on them by AWS Community Builders.

## What are you eating for dinner today? Share the recipe!
Today we are preparing our famous Indian dish ( Maharashtra special), Misal Pav.

![maxresdefault.jpeg](https://cdn.hashnode.com/res/hashnode/image/upload/v1631299700243/cn8f4cYRQL.jpeg)
https://hebbarskitchen.com/spicy-maharashtrian-misal-pav-recipe/


## Do you have anything else to say about the community builders programme in 2022?

I have grown professionally and personally because of the AWS Community Builder program. This is a fantastic idea.I got to know more about AWS compared to earlier. I started my public speaking journey just because of this program. I am looking forward to more great collaborations in 2023!
The AWS team, led by Jason, Lily, Taylor, Ernesto, Shafraz, and others, is simply amazing, devoting a significant amount of time to making the programme work for us – THANK YOU!


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zkkqzo5eunplemz1f7c4.gif)
System design template
Published: 2022-12-20 09:14:50

---
title: System design template
published: true
date: 2022-12-19 09:12:56 UTC
tags: 
canonical_url: https://blog.amr-hassan.xyz/system-design-template
---

Most of the time I forget things in my system design interview or waste some time listing things, so I created the below template to help me with that and fasten the process a bit, feel free to use it and please let me know if you have some suggestions

{% embed 
https://gist.github.com/amrHassanAbdallah/63493d37ebb0cf393c487b84a738d328  %}
15 best low-code platforms & how to use them
Tags: lowcode, programming, javascript, webdev
Published: 2022-12-19 09:03:00

Did you know that most large companies have already adopted multiple low-code tools by the end of 2021?

Why?

- Low-code tools improve their productivity
- As companies struggle to hire developers, they are turning to tools that do not require coding knowledge.
- As a result, businesses that can't hire developers can still create apps using low-code platforms.

## ***What is the impact of low-code on the software industry?***

[Gartner](https://www.gartner.com/en/newsroom/press-releases/2021-02-15-gartner-forecasts-worldwide-low-code-development-technologies-market-to-grow-23-percent-in-2021) predicted that the global market for low-code development technologies would grow by 23% this year alone. It is expected that low-code will grow even further in 2022.

Also, [Market Research Future](https://www.marketresearchfuture.com/reports/low-code-development-platform-market-5355) estimates that by 2027 the market will reach USD 73,820.4 million, increasing 26.5% year after year.

## **What is Low-code?**

Low-code represents the ability to develop applications quickly and cost-effectively is one of the most significant benefits of low-code development platforms.

Rather than writing traditional computer programs, low-code development platforms allow IT and business professionals to develop business application software through graphical UI. 

Instead of coding, UI components can be dragged and dropped to create apps visually. As part of the process, all of the project's components, such as front-end code and back-end configuration files, are automatically generated.

Apps can be SaaS, web-based products, or mobile applications developed with third-party toolkits. The toolkits enable app ideas to be developed, designed, and commercialized within a short time. With this method, you can build fast, fully-functional applications using just a few lines of code.

## ***Why is low-code so popular?***

- Business acceleration through digital technology
- An increasing number of APIs
- Digital conversion in the IT

## **Low-Code Application Features**

- ****Drag-and-drop interfaces****
- ****Mobile-friendly, out of the box****
- ****Declarative Tools****
- ****Visual modeling****
- ****Reusability****
- ****Security****
- ****Scalability****

## **15 best low-code platforms**

I found #15lowcodetools that have the greatest impact on the software industry.

Here’s the list 👇🏻

@***RETOOL***

@***ZAPIER***

@***PRONTOFORMS***

@***FIGMA***

@***IFTTT***

Continue reading on [https://thebcms.com/blog/best-low-code-platforms-and-how-to-use-them](https://thebcms.com/blog/best-low-code-platforms-and-how-to-use-them)
Getting Started with the PDF Viewer Component in Angular
Tags: webdev, angular
Published: 2022-12-19 08:43:09

See how easily you can create and configure the Syncfusion Angular PDF Viewer. This video explains how to load, view, review, and print PDF files using the Syncfusion Angular PDF Viewer component. You will see how to load a PDF file initially, hide the toolbar, enable navigation, and make bookmarks in a PDF file. Also, you will learn how to load and unload a PDF document dynamically.

Product overview: https://www.syncfusion.com/angular-components/angular-pdf-viewer

Document: https://ej2.syncfusion.com/angular/documentation/pdfviewer/getting-started/

{% youtube r8IPr_nTiHo %}
Follow @VerisimilitudeX On GitHub!
Tags: github, opensource, verisimilitude11
Published: 2022-12-19 08:34:51

Hey dev.to community!

If you're interested in keeping up with my projects and code repositories, be sure to follow me on GitHub at https://github.com/VerisimilitudeX. I'll be sharing updates, new projects, and any other cool things I'm working on.

From new app releases to experimental projects, you can find it all on my GitHub profile. So if you want to stay in the loop and see what I'm working on, be sure to hit that follow button.

Thanks for being a part of this amazing community, and I can't wait to connect with you on GitHub!

Best,
Piyush Acharya
1971. Leetcode Solution in javascript
Tags: javascript
Published: 2022-12-19 08:31:29

```javascript
/**
 * @param {number} n
 * @param {number[][]} edges
 * @param {number} source
 * @param {number} destination
 * @return {boolean}
 */
const validPath = function(n, edges, start, end) {
  const graph = {}
  for(const [u, v] of edges) {
    if(graph[u] == null) graph[u] = new Set()
    if(graph[v] == null) graph[v] = new Set()
    graph[u].add(v)
    graph[v].add(u)
  }
  const q = [start], visited = new Set()
  visited.add(start)
  while(q.length) {
    const cur = q.shift()
    if(cur === end) return true
    for(const next of graph[cur]) {
      if(visited.has(next)) continue
      q.push(next)
      visited.add(next)
    }
  }

  return false
};
```
#leetcode 
#challenge 
Here is the link for the problem:
https://leetcode.com/problems/find-if-path-exists-in-graph/
VSCode + ChatGPT = Auto Unit Test
Tags: chatgpt, vscode, typescript, ai
Published: 2022-12-19 08:31:24

I've created an extension for `VSCode` that uses `ChatGPT` to automatically generate unit tests for you.

With this extension, all you have to do is select a function in your code and the extension will do the rest. It uses `ChatGPT`, a powerful language model, to analyze your function and generate appropriate test cases for it.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/992tsbh45wyfjh37n04h.jpeg)

Not only does this save you time and effort in writing unit tests, it also ensures that your tests are thorough and comprehensive.

The extension is easy to use and integrates seamlessly into `VSCode`, so you can start using it right away.

So next time you're struggling to write unit tests, give this extension a try. It will make your life easier and help you write better code.

Usage:
To generate a unit test, open a TypeScript file in Visual Studio Code and run the `"Generate Unit Tests"` command (Ctrl+Shift+P and then type "Generate Unit Tests"). This will prompt you for input and then generate a unit test based on that input using `ChatGPT`.

Repository: https://github.com/mariuszmalek/autotest-chatgpt-vscode
4 Biggest Challenges of Data Analytics in Marketing
Tags: analytics, datascience, marketing
Published: 2022-12-19 08:29:22

Marketing teams nowadays collect plenty of customer data. However, the data itself is useless unless it is analyzed the right way. Marketing data analytics is what helps businesses get customer insights and make data-driven decisions. 

Every year marketing specialists need to aggregate more and more data, and therefore analyzing it becomes more difficult. Read on to find out 4 biggest challenges of modern marketing data analytics.

## Problem of identifying and tracking meaningful analytics

This is one of the toughest challenges for marketers. The metric identification process must begin with something other than looking at whatever metrics are available or just following existing marketing processes. Instead, this process has to start with understanding the strategic objectives marketing is pursuing. There is often no easy, direct path to getting the best metrics for an analytics process. Marketers might find themselves juggling different sets of data, blending and calculating numbers to arrive at something that truly indicates how a process is performing. 

## Resources deficiency

Businesses need more resources to utilize data analytics properly. Staffing up employees who are trained in analytics will take priority. In addition, marketing data analytics requires time and money, but many businesses do not have the budget or staff to dedicate to data analytics, which can limit its usefulness.

## Abundance of marketing data

The modern marketing landscape is diverse and complex. Most channels are digital, and campaigns produce content people consume across many devices. While this sheer volume of data is good, marketers find themselves overwhelmed in a data overload situation. 

## Lack of expertise

Many marketing organizations need more skills to use data analytics effectively. Marketing data analytics requires a specific set of skills, including statistical analysis, data visualization, and technical skills. Understanding the customers and products well is also important. These skills and knowledge are necessary to make sense of the data and glean actionable insights.

## How to overcome these challenges?

Despite its difficulty, marketing data analytics is a powerful tool that can help you improve your marketing strategy. Thankfully, as the challenges of marketing analytics rise, so too are the BI tools that make marketing analytics more effortless to manage. [Click here](https://blog.coupler.io/marketing-data-analytics/) to learn how to use marketing data analytics in practice.