teleren/devto huggingface dataset:
c program for counting numbers
Tags: c
Published: 2024-06-30 09:57:46

**hello everyone i've been writing this program for counting numbers and i want to print it from certain starting point to certain extent**

```
//counting machine
#include<stdio.h>

int main()
{
    int q1,q2,q3,q4,q5,q6,c=0,NOL,st;
    printf("enter the number from where to how much combinations you want: ");
    scanf("%d %d",&st,&NOL);
    q1=q2=q3=q4=q5=q6=0;
    for(q1=0;q1<=60;q1++)
    {
        for(q2=0;q2<=60;q2++)
        {
            for(q3=0;q3<=60;q3++)
            {
                for(q4=0;q4<=60;q4+=2)
                {
                    for(q5=0;q5<=60;q5+=5)
                    {
                        for(q6=0;q6<=60;q6+=5)
                        {
                            c++;
                            if((q1+q2+q3+q4+q5+q6)==60 && c>=st && (q4/2)<=5)
                            {
                                if(c<=NOL)
                                {
                                    printf("%d %d %d %d %d %d \n",q1,q2,q3,q4,q5,q6);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
Cells with Odd Values in a Matrix(LeetCode-easy)
Tags: leetcode, problem, dsa, java
Published: 2024-06-30 09:18:08

#INTRODUCTION

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


We, have given two array one is main array matrix and other is indices[is a 2D array]. Each indices value consist two things one is row value and another is column value, indices[i] = [ri, ci]. And our task is to simply increment by 1 the whole row and whole column. 

**NOTE**: Because indices is 2D array, so we can easily get the row value using row = indices[i][0] , and the column value using col = indices[i][1]

#Examples

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




#Hints


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



---

##Steps

1. Create an array of size m, n
2. Set the row value and col value from indices
3. Increment the whole row and col by 1
4. Check the main matrix values for **ODD** number.
5. Return the counter.


##Java Code

```
class Solution {
    public int oddCells(int m, int n, int[][] indices) {
        int[][] mat = new int[m][n];
        for (int i = 0; i < indices.length; i++) {
            int row = indices[i][0];
            int col = indices[i][1];

            for (int j = 0; j <n; j++) {
                mat[row][j]++;
            }
            for (int j = 0; j <m; j++) {
                mat[j][col]++;
            }
        }

        int count = 0;
        for (int i = 0; i <m; i++) {
            for (int j = 0; j < n; j++) {
                if(mat[i][j] % 2 != 0){
                    count++;
                }
            }
        }
        return count;
    }
}
```


##Output


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ozq3cnhxsvtphi711uzm.png)
hire a golang developer
Tags: webdev, go, freelance
Published: 2024-06-30 09:16:42


**Experienced Golang Developer Seeking New Opportunities**

---

**About Me:**

[Hire A Golang Developer](https://geoffrey.lol)

Proficient Golang developer with 5 years of experience in building, optimizing, and maintaining software applications. Passionate about leveraging Go’s unique features to create robust and scalable solutions.

**Skills and Expertise:**

- **Concurrency and Goroutines:** Extensive experience using Go’s lightweight goroutines to implement concurrent programming patterns, enabling applications to handle thousands of simultaneous operations efficiently.
- **Channels for Communication:** Developed safe and effective communication mechanisms between goroutines using channels, ensuring synchronization and data integrity without the complexities of traditional locking mechanisms.
- **Efficient Memory Management:** Utilized Go’s garbage collector and efficient memory allocation to write high-performance applications with minimal memory overhead, resulting in faster execution times and reduced latency.
- **Standard Library Utilization:** Leveraged Go’s powerful standard library for tasks such as HTTP request handling, JSON parsing, and file I/O operations, minimizing external dependencies and enhancing application stability.
- **Dependency Management:** Maintained clean and reproducible dependency graphs using Go Modules, ensuring reliable builds and simplified version control.

**Key Achievements:**

- **High-Performance Web Services:** Developed RESTful APIs and web services capable of handling high traffic with low latency, thanks to Go’s concurrency model and efficient runtime.
- **Scalable Microservices:** Implemented microservices architecture using Go, Docker, and Kubernetes, facilitating seamless scaling and optimized resource utilization.
- **Database Optimization:** Worked with both SQL and NoSQL databases, optimizing queries and data access patterns to ensure fast and reliable data retrieval and storage.
- **Containerization:** Leveraged Docker to containerize applications, ensuring consistency across development, testing, and production environments.

**Why Go?**

- **Concurrency:** Go’s goroutines and channels make it easier to build highly concurrent applications compared to traditional threading models.
- **Performance:** Go’s efficient memory management and garbage collection result in high-performance applications with minimal latency.
- **Simplicity and Safety:** Go’s syntax and type safety lead to cleaner, more maintainable code, reducing bugs and improving reliability.
- **Ecosystem:** The robust standard library and tooling (such as Go Modules for dependency management) streamline development processes and enhance productivity.

**Looking For:**

Opportunities to apply my Golang expertise in developing high-performance, scalable applications. Eager to join a team that values innovation, collaboration, and continuous improvement.


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

Check out my online resume
[Hire A Golang Developer](https://geoffrey.lol)
what is mining process?
Tags: learning, automation, writing
Published: 2024-06-30 09:13:21

The [process mining](https://samatoos.ir/articles/what-is-mining-process/) is an umbrella term for a combination of data mining and process management techniques that use advanced algorithms, machine learning, and statistical methods to analyze organizations' data.

Process mining is a set of data-driven techniques for analyzing business processes using event data extracted from information systems such as enterprise resource planning (ERP) and customer relationship management (CRM). Process mining enables businesses to identify problems, rework, deviations in their processes and discover opportunities to optimize performance and maximize positive business outcomes.
Process mining applications allow business analysts and managers to:
Understand how business operations are performed by discovering “as-is” process diagrams based on event data from an IT system.
Analyze data to identify friction points in a business process and relate these friction points to key performance indicators.
Understand what contributes to favorable and unfavorable process outcomes, for example, different activities that contribute to orders that are delivered on time versus orders that are delivered late.
Predict the future performance of a process under various scenarios so teams can make better decisions and better prioritize process automation and process improvement efforts.
Node.js Asynchronous Architecture
Tags: node, javascript, webdev
Published: 2024-06-30 08:48:05

Node.js is single threaded and operates asynchronously using the "Single Threaded Event Loop" architecture and handles multiple concurrent clients efficiently without multithreading. Node.js is actually designed to build distributed applications with many nodes and that's the reason why it's called Node. Actually, the main event loop is single threaded but Node.js uses multiple threads in the background to execute asynchronous code.

Node.js is non-blocking which means that all the callbacks or functions are delegated to the event loop and are executed by different threads. This means that when other processes are executing in a concurrent manner, the event loop continues to run as non-JavaScript operations. This way the tasks are executed asynchronously.

Needless to say that Node.js is extremely good at handling multiple requests concurrently using a single thread model. This is called "asynchronous cooperative multitasking".


**Management of asynchronous code in Node.js:**
A lot of times we have dealt with multithreading and preemptive multitasking scenarios but the first time we encountered cooperative multitasking using Node.js was when creating a User Module at the earlier stage of our product creation.

This module deals with managing different user roles and permissions and consolidates the respective entitlement of users of different levels (like Admin and User). We understood that asynchronous code in Node.js can be handled in 3 possible ways:

**1.Callbacks:** Callback is an executable code that is passed as an argument to another code and is expected to execute (or call back) at a specific time. Callbacks make sure that certain code doesn't execute until another code is finished its execution.

**2.Using Async/Await with Promises:** The async/await pattern structures an asynchronous, non-blocking function similar to a synchronous function. It provides opportunities to the program to execute other code while waiting for a long-running asynchronous task to complete. The await keyword within the async function returns a promise value that ensures the current function is completed before calling the subsequent function.

**3.Using Promises:** Promises are abstractions provided that give us a way to express ourselves synchronously when writing asynchronous code. A promise returns a value that is either resolved or the reason why that's not resolved (for example, when a network error occurs). 


A promise can be in any one of the following states:
**States of a Promise**
**Pending:** async operation is incomplete and promise does not have a value yet.

**Fullfilled:** async operation is completed and promise has a value.

**Rejected:** async operation has failed and promise will never get fulfilled.
Seek a business partner that pays well
Published: 2024-06-30 08:56:16

If you can create a large number of Google vocie accounts, please contact me. We also need a large number of other social accounts such as Europe, America, South Korea, Japan, etc., including Facebook, Twitter, LinkedIn, index, etc. We will pay you handsomely, and all accounts will be used for charitable business promotion. Please contact my telegram account @tu2023cc
[DAY 66-68] I built a drum set app using React
Tags: buildinpublic, react, webdev, javascript
Published: 2024-06-30 08:40:55

Hi everyone! Welcome back to another blog where I document the things I learned in web development. I do this because it helps retain the information and concepts as it is some sort of an active recall.

On days 66-68, after completing the first 2 projects in the front end course (the random quote machine and the markdown previewer), I successfully deployed the random quote machine and markdown previewer apps to github pages.

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

After that, I moved on to the 3rd project which is a drum machine.

What I did first is to write the HTML of the app by making div containers for the drum pad buttons, power toggle, display, and volume slider.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6woyie7aqjgwm73va5je.PNG)

Each drum pad button having its own container, I also added the respective audio clips to be played for each button. After that, I made a function to handle presses and also event listeners to handle keydowns so that when I click a drum pad or press the key associated with it, the audio clip will play.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z1u45d6u712m9df5myk0.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/umlai64zr2zhoxmvhvwo.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mh8nd81ejjr8kg9x9ajy.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jzs0qcmvrkfy4pgz5hpg.PNG)

For the power toggle button, I looked up a tutorial on how to make a simple night-mode toggle button using input and label elements and implemented it into my app. I coded all functions in my program so that when the power toggle is set to FALSE, the whole app will not work.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yuly7fos5v1capkz8mr5.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lz8fq3yhm3l0c59znycr.PNG)

For the display container, it pretty much displays the current audio being played as text.

Lastly, for the volume slider, I used an input element with a type attribute of range. I made a function so that whenever the slider is moved up or down, the volume will change correspondingly. I also slightly adjusted its design to match the color palette of the app. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/561v096rrazrq10l6efp.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2h0nodj5rrzxe6xosh6v.PNG)

Anyways, the link for the apps are:
Random Quote Machine: https://thomascansino.github.io/P41-Random-Quote-Machine/
Markdown Previewer: https://thomascansino.github.io/P42-Markdown-Previewer/
Drum Machine: https://thomascansino.github.io/P43-Drum-Machine/

That’s all for now, more updates in my next blog! See you there!
Top Cloud Providers in 2024
Tags: devops, beginners, aws, azure
Published: 2024-06-30 08:25:48

As we move further into the digital age, cloud computing continues to be a cornerstone of technological advancement. The landscape of cloud service providers is evolving rapidly, with new players entering the market and established giants continuously innovating. Here’s a look at the top cloud providers in 2024 and what sets them apart.

## 1. Amazon Web Services (AWS)

### Overview

AWS remains a dominant force in the cloud computing arena. Known for its extensive range of services, AWS provides solutions for everything from compute power and storage to machine learning and artificial intelligence.

### Key Features

- Comprehensive Service Portfolio: AWS offers over 200 fully featured services.
- Global Reach: AWS has the most extensive global infrastructure, with data centers in multiple regions across the world.
- Innovative Technologies: Leading in AI/ML with services like SageMaker, and strong in IoT and serverless computing.

### Popular Services

1. EC2 (Elastic Compute Cloud)
2. S3 (Simple Storage Service)
3. Lambda (Serverless Computing)
4. RDS (Relational Database Service)

## 2. Microsoft Azure

### Overview

Microsoft Azure is a close competitor to AWS, known for its strong integration with Microsoft products and services. It is a favorite among enterprises that rely on Microsoft software.

### Key Features

- Hybrid Cloud Capabilities: Azure’s hybrid cloud approach allows seamless integration with on-premises solutions.
- Enterprise Focus: Strong enterprise solutions with integrations for Office 365, Dynamics 365, and Active Directory.
- AI and Analytics: Robust AI and machine learning offerings with Azure Machine Learning.

### Popular Services

1. Azure Virtual Machines
2. Azure Blob Storage
3. Azure SQL Database
4. Azure Kubernetes Service (AKS)

## 3. Google Cloud Platform (GCP)

### Overview

Google Cloud Platform stands out with its strengths in data analytics, machine learning, and open-source technologies. GCP is increasingly popular among startups and developers.

### Key Features

- Data and Analytics: Best-in-class data analytics tools with BigQuery and strong support for AI/ML.
- Open Source Leadership: Contributions to Kubernetes, TensorFlow, and other open-source projects.
- Performance and Security: High-performance computing capabilities and robust security features.

### Popular Services

1. Google Compute Engine
2. Google Cloud Storage
3. BigQuery
4. Google Kubernetes Engine (GKE)



https://dev.to/devops_den/create-an-aws-s3-bucket-using-terraform-49f9

Explore More About [Cloud Providers
](https://devopsden.io/article/top-cloud-providers-in-2024)

Thank You
Latest Newsletter: Liberalism, Free Speech, and Even More Politics (Issue #170)
Tags: javascript, tech, webdev, discuss
Published: 2024-06-30 08:14:09

---
title: Latest Newsletter: Liberalism, Free Speech, and Even More Politics (Issue #170)
published: true
description: AR & VR, memecoins, macro, digital media publications, liberalism, national debt, history of elections, free speech, state dysfunction, resolving disputes, UK politics, authoritarianism, sad tech
tags: javascript, tech, webdev, discuss
---

Latest Newsletter: Liberalism, Free Speech, and Even More Politics (Issue #170)

AR & VR, memecoins, macro, digital media publications, liberalism, national debt, history of elections, free speech, state dysfunction, resolving disputes, UK politics, authoritarianism, sad tech

https://markjgsmith.substack.com/p/saturday-29th-june-2024-liberalism

Would love to hear any comments and feedback you have.

[@markjgsmith](https://twitter.com/markjgsmith)
100 Days of Code Week 1
Tags: 100daysofcode, webdev, javascript, beginners
Published: 2024-06-30 07:49:45

July 1, 2024

### FSE 1 Web Development Foundations
* Get started with the foundations. By the end of this section, you'll be able to build a stylized and responsive website with HTML and CSS

#### Fundamentals of HTML

* FSE 1.1 Web Dev - Fundamentals of HTML

#### Fundamentals of CSS

* FSE 1.2 Web Dev - Fundamentals of CSS

#### Developing Websites Locally

* FSE 1.3 Web Dev - Developing Websites Locally

#### Deploying Websites

* FSE 1.4 Web Dev - Deploying Websites

#### Improved Styling with CSS

* FSE 1.5 Web Dev - Improved Styling with CSS

#### Making a Website Responsive

* FSE 1.6 Web Dev - Making a Website Responsive

#### Web Development Foundations Review

* FSE 1.7 Web Dev - Review

#### Certification exam, Objective assessments I and II

This first Codecademy FSE Course is Web Development Foundations.
One thing that makes this course special is that I'm swinging to knock this course out this week.

Future weeks will have side quests to enhance the learning experience, like Signal Code to enhance PostgreSQL material in Course 4, but this week's lessons look straightforward, so let's put this one in the books.

One habit I'm emphasizing this week is attention to detail, evidenced in the syllabus above, and the following quote found on a markdown resource that spoke to me: 

![A foolish consistency is the hobgoblin of little minds.
--Ralph Waldo Emerson](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4wc59tfil0uff251qitv.png)

I'm super new here, and to #100DOC, and would like to meet others and hear your stories, so feel free to drop a link or share!

Cross posted: Dev.to `https://dev.to/jacobsternx` and LinkedIn.com `https://www.linkedin.com/in/jacobsternx`
Running Livebook as a Systemd Service for Your User
Tags: livebook, linux, elixir
Published: 2024-06-30 07:32:15

Livebook is a powerful tool for creating and sharing interactive notebooks with Elixir. To make it even more convenient, you can set it up to run as a systemd service for your user. This ensures that Livebook starts automatically whenever you log in, and runs in the background without requiring root permissions. Here’s a step-by-step guide to help you get started.

## Step 1: Install Livebook

First, ensure you have Livebook installed. You can install it via Elixir’s package manager, mix, by running:

```sh
mix escript.install hex livebook
```

## Step 2: Create a User Systemd Service File

Systemd allows users to manage their own services. User-specific service files are stored in `~/.config/systemd/user/`.

```sh
mkdir -p ~/.config/systemd/user
nano ~/.config/systemd/user/livebook.service
```

## Step 3: Define the Service Configuration

Add the following content to the `livebook.service` file (replace USER and PASSWORD):

```ini
[Unit]
Description=Livebook Service

[Service]
Type=simple
ExecStart=/home/__USER__/.asdf/shims/livebook server
Restart=on-failure
Environment=HOME=%h
Environment=MIX_ENV=prod
Environment=PATH=/home/USER/.asdf/shims:/usr/local/bin:/usr/bin:/bin
Environment=LIVEBOOK_HOME=%h/livemd
Environment=LIVEBOOK_PASSWORD=__PASSWORD__
Environment=LIVEBOOK_PORT=8090
Environment=LIVEBOOK_IFRAME_PORT=8091


[Install]
WantedBy=default.target
```

**Explanation**:
- `ExecStart`: The command to start Livebook. Ensure the path to the Livebook binary is correct.
- `Environment`: Sets necessary environment variables. `%h` will expand to the user’s home directory.

## Step 4: Reload User Systemd Configuration

After creating the service file, reload the systemd user configuration.

```sh
systemctl --user daemon-reload
```

## Step 5: Enable the Service for Your User

Enable the service to start on user login.

```sh
systemctl --user enable livebook.service
```

## Step 6: Start the Service for Your User

Start the Livebook service.

```sh
systemctl --user start livebook.service
```

## Step 7: Check the Service Status

Verify that the service is running.

```sh
systemctl --user status livebook.service
```

## Step 8: Enable User Systemd Services on Boot

Ensure that user services are started automatically at boot. You can enable lingering for your user:

```sh
sudo loginctl enable-linger USER
```

Replace `USER` with your actual username.

## Conclusion

By following these steps, you can set up Livebook to run as a systemd service for your user. This setup ensures that Livebook starts automatically when you log in and runs smoothly in the background. Enjoy your interactive notebooks with the convenience of a managed service!