teleren/devto huggingface dataset:
Pointers in C Programming
Tags: c, programming, problemsolving, pointers
Published: 2022-11-29 05:03:33

The pointer in C language is a variable which stores the address of another variable.
_If we want to store an address of a variable to another variable then the variable is called pointer._
It is declared along with an asterisk symbol (*). The syntax to declare a pointer is as follows:

`int *p;
`
**Assigning and accessing variable:**

```
 #include <stdio.h>
 int main()
 {
     int a;
     int *p;
     scanf("%d", &a);
     p = &a;
     printf("%p\n", p);
     printf("%d\n", *p);
     return 0;
 }
```

## Different types of pointers
There are four types of pointers, they are:

- Null Pointer
- Void Pointer
- Wild Pointer
- Dangling Pointer



![Four types of Pointer in C:: Md Shah Jalal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/guy5vre89huqv6m6bbti.png)
**Null Pointer:**
A pointer that is not assigned any value but NULL is known as the NULL pointer.
If we don't have any address to be specified in the pointer at the time of declaration, we can assign NULL value. It will give a better approach.
Syntax:

`Int *p = NULL;`

Example:

```
#include<stdio.h>

int main(){
int *p = NULL;

printf(“p=%d”,*p);
}
```

**Void Pointer:**
When a pointer is declared with a void keyword, then it is called a void pointer. To print the value of this pointer, you need to typecast it.

Syntax:
`void *p;`

Example:

```
#include<stdio.h>

int main()

{
   int a=2;
   void *p;

   p= &a;

   printf("After Typecasting, a = %d", *(int *)p);

return 0;
}
```

**Wild Pointer:**
A wild pointer is only declared but not assigned an address of any variable. They are very tricky, and they'll reason segmentation errors.

Example:

```
#include<stdio.h>

int main(){
  int *p;

  printf(“p=%d”,*p);

  return 0;
}
```
**Dangling Pointer:**
A pointer pointing to a memory location that has been deleted (or freed) is called dangling pointer.

```
#include<stdio.h>
#include<stdlib.h>

int main()
{
    int *p=(int *)malloc(sizeof(int));
    *p = 5;
    free(p);
    //now this p is known as dangling pointer.
    printf(“After deallocating its memory *p=%d”,*p);
    return 0;
}
```

**Pointer to Pointer**
A pointer will indirectly point to a variable via another pointer.
Something like this: `pointer of pointer of pointer of pointer of variable`

![Pointer to Pointer:: Md Shah Jalal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/we6ardrb6ucyqo37jj34.png)
Syntax:
`Int **p;`

Example:

```
#include <stdio.h>
 int main()
 {
     int a = 5;
     int *p = &a;
     int **q = &p;
     printf("%d\n", a);
     printf("%p\n", p);
     printf("%p\n", q);
     **q = 7;
     printf("%d\n", a);
     return 0;
 }
```
**Pass by Value and Pass by Reference**
We will pass by reference instead of pass by value.
Example:

```
#include <stdio.h>
int swap(int *x, int *y)
{
    int temp;
    temp = *x;
    *x = *y;
    *y = temp;
    
}
int main()
{
    int x = 5, y = 7;
     printf("Before swapping x=%d , y=%d\n", x, y);
    
    swap(&x, &y);
    printf("After swapping x=%d , y=%d\n", x, y);
return 0;
}
```
HTML Node Templating System
Tags: nodes, templating, html, clones
Published: 2022-11-29 04:39:19

Check out this lightweight, robust HTML node-layout templating system. It enables HTML programmer to more easily control the layout of an arbitrary number of identical HTML sibling nodes, each containing different data, pulled from a hidden table. Designed to minimize effort and reduce keystrokes for the HTML programmer, and protect live HTML from content admins.

https://github.com/johnaweiss/HTML-Micro-Templating

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

This system isn't for templating an entire website or webpage. It's for repeated HTML nodes within a page.

## Benefits

- There's just one copy of the HTML layout to edit.
- Content admins never need to touch the HTML of the node-series. They just edit a plain-text list of records.
- All dynamic assets can be contained within a single HTML file.
- Supports any number of templates, datasets, and insertion-points on the same webpage.
- Optionally, for safer content-management, data can be stored in a separate file from the webpage. (Requires PHP.)
- No database needed.
- Built using vanilla Javascript. No library or framework needed. Extremely lightweight Javascript.
- HTML templates and data can be mixed and switched on the same webpage with the same ease as CSS styles, as long as the fields match up.
- Variable data can be inserted anywhere in the template's HTML, including element metadata.
- Clean, resilient code.

https://github.com/johnaweiss/HTML-Micro-Templating
GitHub Most Used Repositories : Part 2
Tags: github, repository
Published: 2022-11-29 04:38:01

## 30 Seconds of CSS

Short CSS code snippets for all your development needs
![img-1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/psjx740lg7gbb7uxpwe1.png)

## Build your own x

Master programming by recreating your favorite technologies from scratch.

![img-2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/20oknonyc17ytvwuspto.png)

## Awesome

A curated list of awesome frontend development resources.

![img-3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rqajfmuuumhe8edxsid7.png)

## Awesome Web Components

A curated list of awesome Web Components tools, articles and resources.

![img-4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g1lkm9sv71jjd21dc8f1.png)

## You Need to know CSS

💄CSS tricks for web developers~

![img-5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oj3xel07mvgc3uk47b9h.png)

### More Coming Soon...
50 Metrics Every SaaS Company Should Care About
Published: 2022-11-29 04:08:15

Fifty of the essential SaaS metrics are detailed here to help you understand and to be used as an effective aid in improving the performance and growth of the companies to businesses.

This article can guide you through each of the metrics, their relevance, uses, and how to calculate them. But before that, brief info on what SaaS is all about is necessary.

What are SaaS metrics?
SaaS metrics’ sole purpose is to comprehensively analyze the graph of your business for the long term, assessing your ability to grow and sustaining the growth. Analyzing the graph of Sales, marketing strategies, and customer reach provides us with clear parameters of the performance of our business.

Understanding more of these metrics, as a result, helps get a clear idea of the performance and room for improvement.

The SaaS metrics make it easier to track and also forecast revenue generated

we have compiled a complete guide about 50+ [SaaS Metrics](https://oyestartups.com/blogs/saas-metrics) in OyeStartups blog :)
Top 11 Freelancing Websites for Software Testers& QA. (Even as Manual Tester)
Tags: webdev, beginners, programming, tutorial
Published: 2022-11-29 04:06:02

Do you want to earn some extra cash while working part time as Software Tester. You can get lots of manual and Automation projects on these top 11  freelancing websites for QA.

Here is the link of List ► https://mm.tt/1350598845?t=DtWnnll8X6
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Mastering API Testing Course  ►: https://learnapitesting.com
Join at  ►:  https://learn.thetestingacademy.com
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

{% embed https://youtu.be/NS16TsvKNRI %}

Join Facebook Group :  http://bit.ly/learntesting2019
Website:   https://scrolltest.com
Website:   https://thetestingacademy.com
Twitter: https://twitter.com/itstechmode
🚀 Tools and services I recommend:
Some of the courses that I recommend to become better Automation Tester 🙌🙌

✅Selenium Training and Certification -
https://scrolltest.com/go/edureka

✅Learn Jenkins for QA -
https://bit.ly/learnjenkins-p1

✅Programming Java -
https://bit.ly/learnjava2020-p1

✅Test Automation - 
https://bit.ly/learnautomation2020

✅API Testing - 
https://www.learnapitesting.com

✅Cypress Tutorial with LIVE Projects -
http://cypresstutorial.com
How to get custom post data in WordPress
Tags: wordpress, custompost, php, webdev
Published: 2022-11-29 04:05:16

**Hello, guys do you want to learn how to get custom post type data in WordPress, then you are in the right post today in this article I will share with you a simple and fastest way to get custom post type data with many examples.
**

## A comprehensive guide to obtain custom post type data

### How to get custom post type according cat id

```
<?php

$args = array(
    'posts_per_page' => -1,    
    'post_type' => 'our-work',
    'tax_query' => array(
        array(
            'taxonomy' => 'work_type',
            'field'    => 'id',
            'terms'    => 5, // id of category
        ),
    ),
 );
$the_query = new WP_Query( $args );

if($the_query->have_posts() ) : 
    while ( $the_query->have_posts() ) : 
       $the_query->the_post(); 
    //   for title
       the_title();
    // for content
    echo get_the_content();

    // for post link
    echo get_permalink();
    endwhile; 
    wp_reset_postdata(); 
else: 
endif;

?>
```
## How to get custom post type category name in WordPress

Simple Way to get the list of all categories of my custom post type Our work, I will use the get_terms() function by giving my custom post type’s taxonomy slug, which is ‘work_type‘ in my case.

You can also add multiple taxonomies as an array to the taxonomy parameter.

The most important thing is, ‘hide_empty‘ parameter, make sure it’s set to false. Otherwise, it will not show the categories that have 0 posts.

```
<?php
$terms = get_terms(
         array(
                'taxonomy'   => 'work_type', // Custom Post Type Taxonomy Slug
                'hide_empty' => false,
                'order'         => 'asc'
            )
         );?>
         <ul>
<?php 
foreach ($terms as $term) { ?>
        <li><a href="<?php echo get_term_link($term);?>"><?php echo $term->name;?></a></li>
 <?php   }?>
 
</ul>
```

### [How to get custom post type featured image in WordPress](https://blog.stackfindover.com/how-to-get-custom-post-data-in-wordpress/)
The case for Ruby in end-to-end testing
Tags: selenium, ruby, automation, testing
Published: 2022-11-29 04:04:07

I have been using Ruby for about a decade and am a self-professed "Rubyist". I fully understand when the inventor claimed that Ruby was "made for developer happiness and productivity". I am just happy writing anything in this language.

Selenium WebDriver has other language bindings (Java, JS, Python, C#). Cypress uses JS/TS. Playwright supports bindings _other_ than Ruby :crying_cat_face:. But there is truly something elegant about what Ruby can do for tests. Perhaps I'm vain. Let's look at the below example, where we look to test the required field inputs on Grubhub's login page.

```
feature "Grubhub Login" do

  scenario "Submitting empty fields produces error messages" do
    visit 'https://www.grubhub.com/login'
    click_button 'Sign in'
    page.should have_text 'Email is required'
    page.should have_text 'Password is required'
  end

end
```

This is literally all of it. It practically screams Cucumber/Gherkin or even plain old English that a non-programmer would write! It's not very "noisy looking", with its lack of semi-colons, colons, curly braces, and even parentheses. Just a simple `do-end` block and we have our test.

Here are a few other advantages that I'll rattle off:

- Ease of adoption. For any SDET or tester that is looking to become more involved with coding, Ruby is an easy language to learn quickly. Teams that I have led in my career have progressed in their SDET paths successfully using Ruby as a gateway to a career in coding.
- Object Oriented-ness allows for some powerful design patterns to be used as tests grow in scale and complexity.
- Since everything's an object, we avoid some of the ugliness (subjective, I know) around promises, callbacks, and deep method chaining you might see in Cypress JS tests.
- At the same time while Ruby is an OOP language, the functional programming aspects are all there. Code re-use is very important in building automated tests.
- Dependencies are easy to manage with `bundler`. In a single test suite, we'll have all of our libraries related to WebDriver, DSLs, and even driver executables all ready to go with a simple `bundle install`. Even remote execution and containerization can be packaged all neat and tidy.
- Test reporting is also tightly coupled with the suite through the use of `rspec` as the test runner.

Yes, my bias is showing from miles away. But here, I hope to share the joy that Ruby has brought me that truly makes things easy to read, easy to write, and dare I say it: Fun to develop tests!!
AWS Internship 2022
Tags: internship
Published: 2022-11-29 03:29:46

Summer of 2022, I completed an internship with AWS in Herndon, VA. I was assigned to a Data Lake Accelerator project for one of the government agencies which was very exciting and a great experience.

During my internship, I learned AWS processes, different recoding practices, cloud architecture, and how to code better. In addition, I experienced the corporate culture and engaged with the knowledgeable developers that work for AWS. 

My role responsibilities consisted of deploying data lake infrastructure, automatically build, test, and deploy new or changed versions of the application from the version control system. I utilized AWS CodeCommit and CodePipeline to set up a CI/CD to help automate multiple steps to automate builds, push code to a repository and then deploy to your updated code to AWS. This helps minimize potential mistakes as opposed to running multiple manual steps Automate deployment to different stages (dev, staging, and production). 

I learned AWS CDK and used it to deploy pipelines. The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in familiar programming languages and provision it through AWS CloudFormation. The AWS CDK consists of three major components: The core framework for modeling reusable infrastructure components, A CLI for deploying CDK applications, the AWS Construct Library, a set of high-level components that abstract cloud resources and encapsulate proven defaults. The CDK makes it easy to deploy an application to the AWS Cloud from your workstation by simply running CDK deploy. This is good when you’re doing initial development and testing, but you should deploy production workloads through more reliable, automated pipelines.

At some point of the project, I was instructed to test Glue ETL process and querying data information using Athena. AWS Glue is a serverless data integration service that makes it easy for analytics users to discover, prepare, move, and integrate data from multiple sources. You can use it for analytics, machine learning, and application development. It also includes additional productivity and data ops tooling for authoring, running jobs, and implementing business workflows. 

Athena helps to analyze unstructured, semi-structured, and structured data stored in Amazon S3. Athena integrates with the AWS Glue Data Catalog, which offers a persistent metadata store for your data in Amazon S3. This allows you to create tables and
query data in Athena based on a central metadata store available throughout your Amazon Web Services account.

As part of my internship, I attended daily 1:1 and scheduled team meeting on Jira (project management skills software), gathered with my internship team to discuss other projects of interest. This gave me the opportunity to take in all of the feedback and put it into practice. 

Coming into this internship with zero experience, I definitely feel this internship provided me with the tools I need to grow my career as a solution architect and developer.
Pick and large interface V.S. small interface. Which one is better?
Tags: typescript, help
Published: 2022-11-29 03:08:35

When I use the option 1 to make my business types(`T0`, `T1`, etc...), I found I repeated `Pick<ChannelBaseInfo1, 'channelCode'>` too many. So maybe option 2 is better? Please give me some suggestion. Thanks.


```ts
// Option 1. 
type ChannelBaseInfo1 = {
  channelCode: string;
  channelName: string;
}

// Use Pick utility type
type T0 = Pick<ChannelBaseInfo1, 'channelCode'> & {
  t0: string;
}

type T1 = ChannelBaseInfo1 & {
  t50: string;
}

type T2 = Partial<Pick<ChannelBaseInfo1, 'channelCode'>> & {
  t2: any;
}

// a lots of types using ChannelBaseInfo1 or Pick<ChannelBaseInfo1, 'channelCode'>
// ...
type T100 = Pick<ChannelBaseInfo1, 'channelName'> & {
  t100: string;
}

// Option 2.
type ChannelCode = {
  channelCode: string;
}
type ChannelName = {
  channelName: string;
}
type ChannelBaseInfo2 = ChannelCode & ChannelName;

type T101 = ChannelCode & {
  t101: string;
}

type T102 = ChannelBaseInfo2 & {
  t102: string;
}
type T103 = Partial<ChannelCode> & {
  t103: string;
}
// a lots of types using ChannelBaseInfo2, ChannelCode and ChannelName
// ...
type T200 = ChannelName & {
  t200: string;
}
```

[TypeScript Playground](https://www.typescriptlang.org/play?ssl=10&ssc=2&pln=11&pc=1#code/PTAEHkAcBcEsHsB2oCMA6UAoaBPSBTUAYQAsBDRRfAGwCEyBnfASUQDN4VQBeUAb0yhQAY3KUaReABN8ALlANoAJ1iIA5gG5BIsVWoA5MgFs5C5as2YAvpkwhQAVSagACrGEBrUAFc41WLiguATYeIQAKgAMPK7uHgA8pBR69EysHCgANKAA5KLJEtL4OQB8oABk-NrQkfKKKupaNqEEoOFcvEnidIws7JwVVULQAKy1Zg2WzcERAEwxLmRKcGTU8W6eibo0qX0Z2Xnb1JIypWWVAsOz8hQ4Tbb2ZKDU8NAMoPBsQWHv3gwWxCOu3SA3gSlimy6KV6IKyuXy3ROxRKdjAaHRLQiKEi0V4GwSUJ2MP6cMOBQMxmRg0uQWx43qFnuqIgMAQyFmaExgPJSJiNIReiRdXMjWsXMJFJMfO0ApohhMwsm9xm3O6wP6806R15lQl8vwWi57UiHVVgqK1Oq2JQisZYqN2M1ZqJaQ1luGjttopsKuNAGYFksVmsJUjzkNaZE-V6psyni83h8vjNfv91M6eq6Mh9wfituT1ft4dqiqVmejOb7ZjiYnrKe6gtX6SLY5ggA)
Day 656 : Foundation
Tags: hiphop, code, coding, lifelongdev
Published: 2022-11-29 02:59:44

_liner notes_:
- Saturday : Got to do the radio show at the station this week. There was no basketball game during our time slot. My cohost was also able to make it to the show. It was good to get back to like how it was before. Had a really good time. The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![Radio show episode image of Fred and Lamont Sanford from the TV show "Sanford and Son" in their yard looking to their right with the words Nov 26th 2022, B.R.E.A.M.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ggwe7hpmi3tpwg0dv9ob.jpg)

- Sunday : Did my https://untilit.works cyphers and worked on a new side project. Made some good progress.

- Professional : Today I had a couple of meetings and spent the rest of the day working on a new Web Component.

- Personal : This new quick side project has been a really good opportunity to learn and try out new things. There's some stuff I never had the chance to use before. Building up a good foundation. Going to do an MVP so that I can do a quick lightning talk about it on Wednesday.

![A small seaside boating town in Reine, Norway with large mountains in the distance.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5csv9lec87ctqzokx03p.jpg)

Totally forgot to do this blog post. Had dinner and went straight to working on this side project. Making some good headway. I got everything working for an MVP, just want to do some styling and finish it up tonight. Going to get back to coding. Maybe I'll watch some anime before bed.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube mc37rEWHdow %}
Lib to create docs in NextJS projects
Tags: javascript, nextjs, react, npm
Published: 2022-11-29 02:54:27

i create a Open Source npm package for NextJS projects.
Using this package you can transform any file in /pages/docs
in a custom documentation for your code.
and he package have pre-built components for you use in your docs...

I named this package with doc_docs...

if you want see or use in your project access in:
https://github.com/hernandemonteiro/doc_docs

now i need study for create the markdowns for contributing, code_of_condute...
if you can help me, and see what i can do better, i appreciate it!
FOR YOUR MANAGED SERVICE PROVIDER BUSINESS, HOW TO FIND THE MSP PRICING MODEL
Published: 2022-11-29 02:53:03

Finding the right MSP pricing model for your managed service provider business can be a complex process. MSPs offer a variety of services and often require different levels of commitment from businesses. These commitments can be measured in different ways, such as by subscription or pay-as-you-go models. 


The MSP pricing model that works best for your business will depend on its size, budget, and the types of services you are offering. For example, if you are primarily providing IT support services, then it may make sense to have a tiered structure with low monthly fees but higher upfront costs. This way you can ensure that customers get the help they need without breaking their budgets. 


On the other hand, if you are providing more complex services such as business intelligence or analytics, then you may find it beneficial to have a flat-rate MSP pricing model. This way, customers can be sure that they are getting the same level of service regardless of their subscription length or size. 


When considering MSP pricing models for your MSP business, it is important to consider both customer needs and budget constraints. It is also essential to ensure that the model chosen will provide enough revenue to cover costs and maintain profitability over time. After all, no MSP wants to lose money on its services. 


Finally, when choosing an MSP pricing model, it is critical to conduct thorough research into the different options available and compare them against each other. This will help you determine which MSP pricing model best suits the needs of your MSP business. By doing this, you can ensure that your MSP is able to provide customers with reliable, cost-effective services while still staying profitable. 

When selecting MSP pricing models for your MSP business, it is important to ensure that you are making an informed decision. By following the tips outlined above, you can help make sure that your MSP has a successful and profitable future. 

By following these steps, [MSPs](https://comparecamp.com/how-to-find-the-msp-pricing-model-for-managed-service-provider-business/) can be confident that they have taken all the necessary steps toward finding the right MSP pricing model for their managed service provider business. With careful consideration of customer needs, budget constraints, and long-term profitability, MSPs can ensure their success in the industry.  With proper planning and research into MSP pricing models, MSPs can find a model that works best for their unique situations and businesses.   Ultimately, finding the right MSP pricing model for an MSP business is key to its success and longevity.
Last bug appears squashed - AXI-COBS HDL working
Tags: opensource, fpga, vhdl
Published: 2022-11-29 02:37:39

Check out the cover image - that's a "long test" with three back to back frames of data being sent to the COBS decoder described here: https://github.com/phase4ground/adi_adrv9371_zc706/blob/adrv9371-zc706-dvbs2-integ/design_docs/cobs_decoder/COBS_dec-Entity-Design.md

Notice the AXI signals are all over the place? We designed a randomized-signal torture test in Python to generate test vectors for the simulator.