teleren/devto huggingface dataset:
Placeholder Contributor
Tags: hack23contributor
Published: 2023-10-23 09:20:06

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->

### Intro
<!-- Share a bit about yourself as a contributor. Is this your first Hacktoberfest, or have you contributed to others? Feel free to embed your GitHub account by using {% embed LINK %} -->

### Highs and Lows
<!-- What were some of your biggest accomplishments or light-bulb moments this month? Did any problems come up that seemed impossible to fix? How did you adapt in those cases?  -->

### Growth
<!-- What was your skillset before Hacktoberfest 2023 and how did it improve? Have your learning or career goals changed since working on these new projects? -->
AWS NLB and Client IP Preservation - How to create Security Group Rules
Published: 2023-10-23 09:08:50

Have you ever created a Network Load Balancer on AWS, its target group and its target, and some security rules attached to it, to end up giving out to your browser because you couldn't reach the target?

It happened to me last week and I interestingly found out about this cool AWS feature named Client IP Preservation. 

Client IP Preservation is a target group feature that allows the traffic from the Network Load Balancer to preserve the client IP. Therefore the traffic to your target will keep the IP from the original client. Disabling this option will overwrite the traffic IP with the NLB private IP (the NLB is likely to have more than one IP, it will override the traffic IP with the IP of the ENI that handles the traffic). 

By default, AWS enables client IP preservation if the Target Group type is one of the following
- EC2 instance (ASG, EC2 instances)
- IP type, protocol UDP or TCP_UDP 

This means that the only case Client IP Preservation is OFF by default is if your target type is IP and the protocol is TCP or TLS. 

But what does this mean? 

It means that you need to remember to allow internet public cidrs in your security group if your target is: one or more EC2 instances or any other target with type IP and protocol UDP or TCP_UDP. 

Instead, if your target is of type IP and the protocol is TCP or TLS, you can simply allow traffic from the NLB private IPs. For example, if you set an ECS cluster as the target of your NLB, its tasks' security group can only contain rules that allow the NLB private IPs.

Is it any better to enable Client IP Preservation?

For target types IP + UDP/TCP_UDP and Instances (except some instance types), you cannot disable Client IP Preservation; you can though enable Client IP Preservation for target type IP + TCP/TLS. You should enable Client IP Preservation considering the following 

- Targets must be in the same VPC as the Network Load Balancer, and traffic must flow directly from the Network Load Balancer to the target;

- Client IP preservation is not supported when using a Gateway Load Balancer endpoint to inspect traffic between the Network Load Balancer and the target;

- Client IP preservation is not supported when a target group contains AWS PrivateLink ENIs or the ENI of another Network Load Balancer.

- Client IP preservation has no effect on traffic converted from IPv6 to IPv4.

- When you specify targets by Application Load Balancer type, the client IP of all incoming traffic is preserved by the Network Load Balancer and is sent to the Application Load Balancer.

I hope this solution proves helpful to you! 
Any feedback is much appreciated! 
Enjoy

Post published also on Virtuability's website [here](https://www.virtuability.com/blog/2023-10-23-aws-nlb-and-client-ip-preservation/).
Why unordered list is used to create navigation on the website not an ordered list?
Tags: webdev, html, website, beginners
Published: 2023-10-23 09:00:32

> **We don't need to follow any order while creating the navigation that's why we use an unordered list instead of an ordered list while creating links in Navigation.**

## Ordered List (`<ol>`)

1. An ordered list is used when you want to display a list of items in a specific numerical or alphabetical order.

2. It is created using the `<ol>` (ordered list) element and contains list items as `<li>` (list item) elements.

3. By default, ordered lists use numbers (1, 2, 3, etc.) to indicate the order, but you can customize the numbering style using CSS.



## Unordered List (`<ul>`)

- An unordered list is used when you want to display a list of items without any specific order or hierarchy. It is often used for creating bulleted lists.

- It is created using the `<ul>` (unordered list) element and contains list items as `<li>` elements.

- By default, unordered lists use bullet points (•) to indicate list items, but you can customize the bullet style using CSS.

**The choice between ordered and unordered lists should be based on the content and the desired presentation of that content on your web page.**

I am a Web Developer & enjoy working on challenging projects, which is what makes this job so rewarding. You can reach out to my [My Portfolio Site](https://gauravweb.dev/). I hope this article will helpful
Weekly Roundup 023 (Oct 16): 🔥Hot Topics🔥 in #workplace, #sharepoint, and #powerplatform
Tags: roundup, sharepoint, powerplatform, workplace
Published: 2023-10-23 08:45:25

Hey fellow developers! It's @jaloplo, here to give you the latest scoop on what's been happening in the [#workplace](https://dev.to/t/workplace), [#sharepoint](https://dev.to/t/sharepoint), and [#powerplatform](https://dev.to/t/powerplatform) communities. 😎

## [#workplace](https://dev.to/t/workplace)

- [The Future is Remote: The Pros, Cons, and Solutions to Working from Home](https://dev.to/one-beyond/the-future-is-remote-the-pros-cons-and-solutions-to-working-from-home-c4k) by [Pablo Eliseo](https://dev.to/pabloelisseo)
- [Web Designers, Architects, and More: 5 Use Cases of Bing Chat Enterprise](https://dev.to/jaloplo/web-designers-architects-and-more-5-use-cases-of-bing-chat-enterprise-2n3d) by [Jaime López](https://dev.to/jaloplo)
- [The Power of Video Marketing: How Schools Can Use Videos to Connect with Students and Parents](https://dev.to/anmartina33/the-power-of-video-marketing-how-schools-can-use-videos-to-connect-with-students-and-parents-1g46) by [Anne Martina Shaw](https://dev.to/anmartina33)
- [Amazing tools that you must use to improve your work flow](https://dev.to/mp-link/tools-that-might-help-you-in-your-workflow-45pi) by [Martin Pacheco](https://dev.to/mp-link)

## [#sharepoint](https://dev.to/t/sharepoint)

- [Why SharePoint Is the Right Platform for Intranet Development?](https://dev.to/cloudstakes/why-sharepoint-is-the-right-platform-for-intranet-development-1o7n) by [CloudStakes Technology](https://dev.to/cloudstakes)

## [#powerplatform ](https://dev.to/t/powerplatform)

- [Power Platform - More Autopilot than Copilot](https://dev.to/wyattdave/power-platform-more-autopilot-than-copilot-24lh) by [david wyatt](https://dev.to/wyattdave)
- [COPILOT, my Precious: Steering the Ship with Gandalf as Your First Mate](https://dev.to/balagmadhu/copilot-my-precious-steering-the-ship-with-gandalf-as-your-first-mate-4mja) by [Bala Madhusoodhanan](https://dev.to/balagmadhu)

That's all for this week's roundup! Thanks for tuning in, and remember to keep the discussions lively and informative in our tags. 💬 If you have any suggestions for future topics, feel free to drop them in the comments below. See you next week! 👋
Combination of String
Tags: string, combination, algorithms, beginners
Published: 2023-10-23 08:40:10

A Combination of string could be described as the collection of the characters which it contains. 

Unlike permutations, two combinations are considered to be the same if they contain the same characters, but may be in a different order. Give an algorithm that prints all possible combinations of the characters in a string. For example, “ac” and “ab” are different combinations from the input string “abc”, but “ab” is the same as “ba”.


> The solution is achieved by generating n!/r! (n – r)! strings, each of length between 1 and n where n is the length of the given input string.

As, mathematically, to find `r` combinations of the string with `n` characters in  given by `nCr`.

So, if finding all the possible combination of the string we then have to go for
`nC0 + nC1 + nC2 + ... + nCn`

Also, from solving the above additon we have 
> nC0 + nC1 + nC2 + ... + nCn = 2<sup>n</sup>

That means the total number of combinations of the string would be 2<sup>n</sup>.

With this in mind you can represent each of the character within the string as a binary equivalent from 0 to 2<sup>n</sup> (exculding 2<sup>n</sup>, as we consider 0, as net there are 2<sup>n</sup> combinations).

*For Example:*

Take a String s = "ABC"

here n = 3,

So number of combinations are from zero (0) to 2<sup>3</sup> (ie, 8)



number  | binary equivalent | String 
------  | ------            | ----
0       | 000               | ""
1       | 001               | "C"
2       | 010               | "B"
3       | 011               | "BC"
4       | 100               | "A"
5       | 101               | "AC"
6       | 110               | "AB"
7       | 111               | "ABC"


# Show me the Code

Here is the Code to do this.

```
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class CombinationOfString {
    public static void main(String[] args) {
        final Scanner sc = new Scanner(System.in);
        System.out.println("Enter a String");
        final String s = sc.next();
        final List<String> combinations = new ArrayList<>();

        findCombinations(s, 0, new StringBuilder(""), combinations);

        System.out.println(combinations.stream().collect(Collectors.joining(" ")));
    }

    private static void findCombinations(String s, int startIndex, StringBuilder runner, List<String> combinations) {
        for (int i = startIndex; i < s.length(); i++) {
            // Add Character to end
            runner.append(s.charAt(i));

            // Save the combination
            combinations.add(runner.toString());

            // Take current info of runner and string and start from the next index
            findCombinations(s, i+1, runner, combinations);

            // Remove Character from the end
            runner.setLength(runner.length() - 1);
        }
    }
}
```
SUNDARAM Case Bound A4 Note Book Single Lined 384 Pages (NA, Pack of 3)
Tags: sundaram, notebook
Published: 2023-10-23 08:37:10

The [Sundaram](https://www.flipkart.com/sundaram-case-bound-a4-note-book-single-lined-384-pages/p/itm53178f0325705?pid=DIAGQSKPFGSGTPCD) premium quality Notebook comes with attractive cover designs, containing 384 Pages in all. It is of cm in size. It is a [Single Lined Book](https://www.sundaramgroups.in/) and is center stitched with case binding. The excellent cut and finish ensure the pages are in perfect alignment without any folded corners. The superior binding strength and wrapper lamination make them as durable as ever. Made from superior FSC certified quality pulp and paper, the pages are whiter, brighter and smoother. These books are recyclable which are preferred and loved by everyone. The cover design of the book is subject to change, it depends on stock availability.

https://www.sundaramgroups.in/
Enhancing Cloud Security with Multi-Factor Authentication (MFA)
Tags: devops, aws, security, cloud
Published: 2023-10-23 08:30:15

Multi-Factor Authentication (MFA) is a critical component of modern cloud security. This comprehensive guide will walk you through the steps of enabling MFA for various cloud platforms and services. By the end of this article, you’ll have a solid understanding of MFA’s importance and how to implement it to protect your cloud assets.

## **Understanding Multi-Factor Authentication**

- **What is MFA?:** An introduction to the concept of Multi-Factor Authentication and its importance in cloud security.
- **Why MFA Matters:** A discussion of the risks associated with single-factor authentication and how MFA mitigates them.

Enable MFA for Popular Cloud Providers:
- AWS
- GCP
- Azure

Checkout the detailed Steps to Enable MFA for Popular Cloud Providers [here](https://codesolutionshub.com/2023/10/16/enhancing-cloud-security-with-multi-factor-authentication-mfa/)
Shared vCard for free-ish
Tags: career
Published: 2023-11-20 16:39:49

---
title: Shared vCard for free-ish
published: true
date: 2023-10-23 08:25:15 UTC
canonical_url: https://jjasghar.github.io/blog/2023/10/23/shared-vcard-for-free-ish/
tags: career
---

I was at a conference and ran out of business cards. For a Developer Advocate like me in certain countries, this is a big problem. I normally had only a handful of minutes to impress and convince a developer that I knew what I’m talking about and am a worthy person to follow up with in the future.

I noticed in this country; people do the NFC tap or QR code exchange of contacts when business cards aren’t available. It got me curious about what options were out there, and I discovered I could quickly build a free-ish version quite easily.

I did mine with an iPhone, but assuming Android can export the `vcf`file, this should work great.

First off, you need to find you contact in the Contacts App. You should find a “Share Contact” button at the bottom, select the specific contact info you want to share (you can even do Note too!), and “Save it files.” This will put it in you iCloud file share, and move over to your laptop.

Grab the file from your iCloud share (`your name.vcf`) and copy it to someplace on your laptop. I suggest changing the file name to something without a `" "` in it, like `jj_asghar.vcf`. Now you need a place to put this file “permanently” online. I have a domain attached to a GitHub repository [https://jjasghar.me](https://jjasghar.me) that I host a simple HTML “shortcut” website, which was a logical place to post this `.vcf` file.

After getting the file added to my repository, I now have a “permanent” link to [https://jjasghar.me/jj\_vcard.vcf](https://jjasghar.me/jj_vcard.vcf).

And now all I had to do was create a QRcode to it:

```
qrencode https://jjasghar.me/jj_vcard.vcf -o ~/Downloads/jjasghar_vcard_github.png

```

And if I wanted a “tap” share contact, I put that same link into an NFC tag or programmable card, and BOOM done! (this is where the “ish” comes into play; you need to purchase these)

FYI: People think you need to program the vCard into the QRcode or NFC, but it’s not; it’s actually a web link to a hosted place. Leveraging something like GitHub for this now you don’t need to pay the monthly or subscription cost for the exact same sharing tech.
API Prototypes with dbb: A little more than a prototype
Tags: elixir, phoenix, dbb, swaggerui
Published: 2023-10-23 08:21:20

---
title: API Prototypes with dbb: A little more than a prototype
published: true
description: Added features to dbb and future plans
tags: elixir, phoenix, dbb, swaggerui
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-09-27 05:39 +0000
---

[First Post](https://dev.to/nicolkill/api-prototypes-with-dbb-and-my-first-attemp-to-join-to-opensource-world-1icm) to know the basic about `dbb`

## Introduction

In the last post i added the basics about [dbb](https://github.com/nicolkill/dbb) and since the date, i added a little bit of features, trying to make more helpful and automated so, here it's the changes

### Schema file validation

Now you the system wouln't start if your schema file hasn't the right format, this ensure all it's rightly configured in your file, not a great thing

### Webhooks

Before this, the API was just a simple CRUD without any other kind of trick, now this changes all, because you can define, in any call to a specific action a webhook call to any endpoint, with the data in the body

```json
{
  "schemas": [
    {
      "name": "table_name",
      "fields": {
        "some_field": "string"
      },
      "hooks": [
        {
          "events": ["index", "create", "update"],
          "url": "https://some.site/some/hook",
          "method": "get",
          "headers": {
            "key": "value"
          }
        }
      ]
    }
  ]
}
```

You can specify your webhook auth in case that it's needed

### New Datatypes

Now you can define in your schema the UUID's and Datetimes (Or Date and Time)

```json
{
  "schemas": [
    {
      "name": "table_name",
      "fields": {
        "date_field": "date",
        "time_field": "time",
        "datetime_field": "datetime"
      }
    }
  ]
}
```

### Swagger UI

Now automatically deploys an endpoint with [swaggerui](https://swagger.io/tools/swagger-ui) to play with your new API directly from browser

To access you need open `http://your_instance_url/api_docs/v1`

## Next steps

The next steps it's work in a admin panel that shows the records of the schema tables, possible triggers like webhooks and all related stuff related to the model specs and records, maybe more datatypes, a API call that not triggers hooks, possible auth for the admin panel, im planning this part so all it's possible

**Summary**

- Admin panel
  - Data from tables
  - Triggers (hooks)
- API call that no triggers hooks
- More datatypes
Placeholder Contributor
Tags: hack23contributor
Published: 2023-10-23 08:18:45

Intro
Hey there! I'm excited to share my experience as a contributor in Hacktoberfest 2023. This wasn my first Hacktoberfest. You can check out my GitHub contributions on my GitHub profile:**abhishekpaul77**.

Highs and Lows
Throughout this Hacktoberfest, I had several high points and a few challenging moments. One of my biggest accomplishments was successfully completing four pull requests to open-source projects. It was incredibly satisfying to see my code merged into these projects, knowing that I was contributing to the open-source community.

However, there were times when I encountered issues that seemed almost impossible to fix. I faced a particularly tricky bug in one of the projects I was working on. It took a lot of time and effort to identify the root cause, but I persevered and eventually found a solution. This experience taught me the importance of patience and tenacity in problem-solving.

Growth
Before Hacktoberfest 2023, I had a good understanding of the technologies and programming languages I regularly worked with. However, this event pushed me to explore new languages, libraries, and tools. I had the opportunity to work with different programming languages and gain a deeper understanding of version control systems.

My skillset has significantly improved, and I feel more confident in my ability to contribute to a wider range of projects. Hacktoberfest 2023 has also influenced my career goals, making me more interested in open-source development and community-driven projects. I've realized the importance of collaboration, and I intend to continue contributing to open-source projects even beyond Hacktoberfest.

Overall, this Hacktoberfest was a valuable learning experience, and I'm looking forward to contributing more to the open-source community in the future.
Your Expense Entry Sidekick: The 'Irona' of Automation
Tags: powerautomate, powerfuldevs, powerplatform, ai
Published: 2023-10-23 08:17:27

**Intro**:
Like many of you, I travel a lot for work, to meet my team and attend conferences around the world. I enjoy meeting new people, learning new things, and exploring new places. With multiple hops in one trip, keeping track of receipts and payments bills might be bit of a challenge. We could all use a little assistance, **Richie Rich** had **Irona**, the loyal robot maid, to help with household chores, we have our very own 'Expense Entry Irona' to assist in streamlining the way we manage expenses.

**Conceptual Architecture View**:
The Idea here is leverage the receipt processor AI builder for any new document synced with a specific one drive. The below concept is based on when a file gets dropped in one drive, power automate would trigger a pre-built AI builder to capture the pre-canned Receipts meta data and writes into a sharepoint list.


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

Example workflow would be as below:

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

**Demo**:
The test receipt used is as below

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

And the automation in action

![Rcpt Demo](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExeGlkYnptazhrbXNkMTI4aWp2ZHgybTFtZGg5c2NhOTZuMDNucTJteCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/LzY5ldGHss54RytYBM/giphy.gif)


**Closing Thoughts**:
With the magic of Power Automate, we've created a flow that calls upon the Receipt Processing AI Builder, our 'Expense Entry Irona,' to capture and organize expense data effortlessly. No more sifting through piles of receipts and manual data entry; our trusty AI assistant is here to make the process as smooth as a well-oiled machine.


**Reference**:
[Receipt Processing](https://learn.microsoft.com/en-us/ai-builder/flow-receipt-processing)
Things to Know Before Open a Demat Account Free
Published: 2023-10-23 08:03:55

Your shares and other securities are stored electronically in the demat account under custody. Because it will store all of your money in electronic form, running a demat account is a significant financial choice. Here are 8 fundamental things you should know even before opening an account. If you wish to trade stocks, a demat account is a requirement. The equivalent of a bank account in the stock world is a demat account. Your shares are held in custody by the demat account much like your cash is in a bank account. What things should you think about before opening your demat? When you [open demat account free](https://globecapital.com/open-a-account/), should I have any questions? What precautions should I take while creating a demat account? Let's concentrate on some essential information concerning demat accounts.[Read More;](https://globecapital.substack.com/p/things-to-know-before-open-a-demat?r=2lqmsw&utm_campaign=post&utm_medium=web)
SOP Writing Services: Shaping Your Academic and Professional Journey
Published: 2023-10-23 08:00:24

In the competitive realms of academics and careers, a Statement of Purpose (SOP) is your ticket to success. An SOP is not just a document; it's your narrative, your aspirations, and your unique journey. This is where "SOP Writing Services" play a pivotal role. Our [Online SOP Writing Services](https://www.assignmenthelpcanada.ca/sop-writing/) go beyond words; we are storytellers and collaborators in your journey. We understand the art of transforming your experiences and goals into a compelling narrative that captures the attention of admissions committees and employers.
Checking out Appwrite for first time
Tags: learning, hacktoberfest
Published: 2023-10-23 07:56:09

As a person who is not the most tech savvy, my first impression of Appwrite is that it will be quite easy to learn. Dare I even say, beginner friendly? This October I decided, with some persuasion, to attend a virtual hackathon. Due to a compulsion to complete challenges and obtain achievements, I have learned more in the last week about programming than I have in months of classes. 

The initial setting up of my project was very simple. Appwrite seems to guide you through the process, which is very much appreciated. I do love the layout of the website. Everything appears to be clearly laid out and labeled, adding ease to a process that many find overwhelming. There is a "details" button at the bottom every page that redirects you to a page with further instructions, which is nice. On a completely aesthetic node, the site is cool looking. On dark mode the background is black with bright orange and pink accents. The font is thick and white for ease of readability. 

Again, not having much experience, I believe that this is a space that all levels of developers will find appealing. People with more experience may think its a great time saver and those will less experience will call it a life saver.