teleren/devto huggingface dataset:
Weekly reading digest #26
Tags: php, symfony, backend, softwareengineering
Published: 2024-02-11 09:00:00

[Three dots in PHP. First-Class Callable Syntax, Variadic function & Argument unpacking](https://jesusvalerareales.com/three-dots-in-php/)

[Common services with PHP applications](https://www.exakat.io/en/common-services-with-php-application/)

[Code to an interface!](https://blog.oussama-mater.tech/code-to-an-interface/)

[Understanding Automated Testing](https://compiler.blog/understanding-automated-testing)

[DbToolsBundle. A set of Symfony Console Commands to interact with your database](https://dbtoolsbundle.readthedocs.io/en/stable/)

[Discover Symfony UX. UI with Stimulus = fewer JS headaches for you](https://symfonystation.mobileatom.net/symfony-ux-stimulus-js-ui)

[Wars of Symfony Runtimes: A Performance Odyssey](https://medium.com/beyn-technology/wars-of-symfony-runtimes-a-performance-odyssey-7b0120e8f9e1)

[Composer 2.7 and CVE-2024-24821: Code execution and possible privilege escalation](https://blog.packagist.com/composer-2-7-and-cve-2024-24821/)

[Supercharging GitHub Actions with Job Summaries](https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/)
How To Connect Database Professionally
Tags: mongodb, errors, javascript, node
Published: 2024-02-11 08:53:00

we are use online MongoDB database

Fist of all we create our connection uri from [monogdb](https://www.mongodb.com/)

1. Go to mongoDB

2. signup & create Project

3. click on connect and copy URI string

![click on connect](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y6qafny9z0msod6w32ys.png)

![my wish is go with comapss](https://i.imgur.com/yVSYojt.png)
![now i copy connection String](https://i.imgur.com/XjDmHka.png)

---


#### Now we are go to our code and see what is good practise to connect server to mongoDB 

Basically we have to approach to connect with database

1. write code in Entry point (index.js)
2. create a seprate file and write code on that

#### write code in Entry point (index.js)

`;(()=>{

   })()`
[Sparta Coding Club] Week 1 - Today I learned
Tags: webdev, javascript, html, css
Published: 2024-02-11 08:50:47

## What Made You Join Sparta Coding Club?
Today marks the end of my first week at Sparta Coding Club, and what a journey it has been! As I reflect on why I decided to join this club, the answer is clear - a passion for coding and the desire to be part of a community that shares the same enthusiasm. Sparta Coding Club seemed like the perfect platform to enhance my coding skills, learn new technologies, and connect with like-minded individuals.

## Key Concepts Learned Today
In this week's sessions, we delved into a variety of key concepts that have expanded my understanding of coding. From mastering the intricacies of HTML and CSS to exploring the power of JavaScript, each lesson has been a building block towards becoming a proficient coder. Understanding the fundamentals is crucial, and the hands-on approach adopted by Sparta Coding Club has made these concepts more accessible and practical.

## What Went Well or Wrong
In this learning journey, I faced both triumphs and challenges. A notable achievement was effectively implementing a responsive design using CSS Grid. Witnessing my webpage seamlessly adapt to various screen sizes brought immense satisfaction. On the other hand, tackling JavaScript debugging presented a hurdle. Yet, the supportive atmosphere cultivated by Sparta Coding Club, with mentor guidance and collaborative learning, turned challenges into valuable learning opportunities.

## What Do You Want to Try Next?
Looking forward, I am eager to dive deeper into JavaScript frameworks, particularly React.js. The potential of building dynamic and interactive user interfaces using React has captured my interest, and I am excited to explore this in the upcoming weeks. Additionally, I plan to participate more actively in the club's coding challenges and collaborative projects, fostering a spirit of teamwork and innovation.

## Your Homework (Page Screenshot or Video Capture)
As part of our homework assignment this week, we were tasked with creating a webpage that incorporated the concepts learned. Here's a screenshot of my accomplishment:


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


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




This exercise not only reinforced the concepts covered in the sessions but also allowed for creative expression in designing a webpage from scratch.

In conclusion, my first week at Sparta Coding Club has been a fulfilling experience, filled with learning, challenges, and a sense of community. I look forward to the weeks ahead, where I will continue to grow as a coder and contribute to the vibrant coding culture at Sparta.

Happy coding!
Find And Close Unlimited Clients By Unlocking Hidden Features Inside AI Open Door With The Unlimited Upgrade
Tags: ai, devops, css, database
Published: 2024-02-11 08:47:48

Congratulations!
In the next 60 seconds, you’re going to receive an email from us with your access details in it.

We understand the challenges you face in reaching out to potential customers and converting them into loyal clients. 

That's why we created AI Open Door, to simplify and automate the entire process, saving you time and effort…

Now picture this: you're on a roll, your business is gaining momentum, and BAM! You hit the lead limit. It's like hitting a brick wall. 

All that momentum comes to a screeching halt, and suddenly you're left in the dust wondering what opportunities just slipped through your fingers. 

Ever felt that frustration? It's not just a buzzkill; it's a business-killer.
Click  link>>https://cutt.ly/swC14t6R
Unlimited & Supercharge Your Business To Get 3X More Profits Faster & Easier
Tags: website, pages, webilo, domain
Published: 2024-02-11 08:22:18

Break Free & Go Limitless- Drive Unlimited Visitors, Get Unlimited Bandwidth, Create Unlimited Subdomains, Add Unlimited Custom Domains, Build Unlimited Website, Pages & Business Cards, Use Unlimited A/B Testing, Unlimited ADA & GDPR Embedding
Feat8
Get UNLIMITED Bandwidth To Give Best User Experience
feat1
Create UNLIMITED Custom Domains Build Your Authority And Credibility
feat1
Use UNLIMITED A/B Testing To Make Variants Of Website & Pages To Find A Winning Performer
feat1
Advanced Analytics For Your Website & Pages To Know Exactly What’s Working For You To Boost Your PROFITS With Virtually NO Extra Efforts
feat2
Duplicate Your Website, Pages & Business Cards In Between Businesses And Projects Or Save As Templates To Reuse Them
feat3
Get Your Subscribers Auto-Registered For Your Webinars With Webinar Platform Integrations
Feat7
Create UNLIMITED Businesses/Subdomains To Keep Each Of Your Own And Your Client’s Business Project Separate
Feat9
Drive UNLIMITED Visitors On Your Website & Pages
Click  link>>https://cutt.ly/wwC1Bu5b
Dive into Tech: My Journey Begins
Tags: webdev, beginners, discuss, community
Published: 2024-02-11 08:18:13

Hey techies! I'm Saksham, launching a thrilling journey across diverse tech realms. 🌈 Ready to explore coding, technologies, and the ever-evolving world of technology with me?

Quick peek into my tech journey - beyond web development, embracing the unknown. 🚀 Excited?
 
Dive into programming languages, different technologies, and more. A broad view enriches understanding and sparks creativity. 🌟
 
Explore my essential tools - from web dev. ⚙️ Let's gear up together!
 
Check out snippets from various projects - web apps, data visualizations, and hardware hacks. 🛠️ Ready for DIY inspiration?
 
Stay in the loop with the latest tech trends shaping the future across different sectors. 📈 Stay ahead of the game!
 
Join our vibrant community celebrating diversity and collaboration. Share your stories, ask questions, and let's explore together. 🤝 Your voice matters!
 
This is just the beginning. What tech topics spark your interest? Your input shapes the direction of this blog as we kick off a tech adventure. 🌟

Get ready for an exhilarating journey through diverse tech terrains. The adventure is calling! 🚀🔥
Pointer 3: (*Function Pointers) ☝️
Published: 2024-02-11 08:07:00

## What are function pointers?
Function pointers are like normal pointers, but they have the capability to point to a function.

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

Here, this is a normal function that gives the sum of two numbers. Now what the function pointer does is store the address of a function.

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

Here, ptr is a pointer function that stores the address of the function add.

## How to declare the pointers in a function?
In the above second example, we can see that before declaring the *ptr function pointer, we used (). We could simply write `*ptr(int,int)= add`. But in C, operator precedence plays a role here, and () precedence is higher than *. So the function will be ptr, which declares an argument with two int types, which will eventually give an error as ptr will act as an int pointer of an integer type. For this, use `(*ptr)(int,int)= add` which will allow the precedence to take `(*ptr)` first. Let us see an example:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kjdfcuwk1secrdgt98xq.png)

## Declaring Array of function pointers
Like a normal [array pointer](https://dev.to/ridwan805/pointer-2-array-pointersand-pointers-arithmetic-5507) , we can also declare the array of a function pointer.

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

If we give input 0–2, then the array of function pointers will work on the cal as it deals with the integer function. And cal is an array that stores the integer functions, and when the input `num` is 3, it reads the `cal2[0]` array of function pointers that deal with the float functions, i.e., the cal2 pointer array stores the float functions.

## Passing function Pointer as Argument in a Function
Like normal data pointers, a function pointer can also be passed as an argument in a function, which will return from a function.

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

Here, `info_int` and `info_char` are two simple functions, where one takes integer parameters and the other takes char/string parameters. The **Overall** function is the pointer function, which is pointing to the functions `info_int` and `info_char` and taking two function parameters, where one is an int type with three integer parameters and the other is a string/char type with two char/string parameters.

**OUTPUT**

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


[**EXAMPLES**](https://github.com/Ridwan805/Pointers/tree/main/3%20Funtion%20pointers)
The Secret Weapon To 10X Your Profits From Your Webilo Subscription
Tags: softwaredevelopment, webdev, agency
Published: 2024-02-11 08:05:01

This Agency upgrade puts you on another level with a click of a button and enables you to tap into the $413 Billion Marketing Industry.

The agency upgrade has everything Super Done for you Website Builder, Digital Business Card Buider, ADA & GDPR Compliance Finder & Fixer & tons of predefine templates & use cases in tons of niches, flexibility to define your own template, a complete business/team management panel to manage your client’s biz, white label license to Webilo, and an agency license to serve unlimited clients from a single dashboard.
Sell-Image
Sell high-in-demand Website Building Services to your clients & Make a Huge Profit Per Month.
Sell-Image
Sell Digital Business Card Building Services  to your clients.
Serve Unlimited Client
Make Your & Your Clients ADA / GDPR Legal Flaws FREE Website
Serve Unlimited Client
Whitelable License
Serve Unlimited Client
Nothing to Upload, Host or Configure
Bussiness Mangement
Serve Unlimited Clients with Agency License
Bussiness Mangement
No Profit Sharing with Anyone
Benefits
Done-For-Your Client & Team Management Panel -Manage all your clients & Team from a single dashboard to have full control.
Benefits
Start your own Software Business Today to get results like Gurus
Benefits
Customized Business Management
Benefits
Get All These Benefits For One Time Price
Benefits
No Recurring / Monthy or Yearly Payment
Benefits
Get Dedicated Customer Support for Your & Your Clients
Click  link>>https://jvz2.com/c/3100259/403516
Mastering Date and Time Operations in PHP with My New PHP Date Formatter Package
Tags: php, composer, dateformatting, webdev
Published: 2024-02-11 07:55:13

🎉 **Exciting News!** 🚀 I'm thrilled to announce the release of our newly developed PHP Date Formatter package! 📅💻

Introducing the PHP Date Formatter Package Documentation:

Github: https://github.com/salamalsam/php-date-formatter.git
Youtube (Demo): https://www.youtube.com/watch?v=b3gCc0uSiYc
📝 **Introduction:**
Our PHP Date Formatter package offers convenient methods for formatting dates, calculating date differences, and handling timestamps in PHP applications.

🛠️ **Installation:**
You can effortlessly install this package via Composer:

```composer require developeraio/date-formatter```

🔧 **Usage:**
Simply instantiate the Date Formatter class and utilize its methods as needed.

🔖 **Key Features**
**-Constructor:** Initialize with default format and timezone settings.
**-formatDateWithTimeStamp:** Format Unix timestamp according to specified format and timezone.
**-formatDate:** Format date string according to specified format and timezone.
**-getDaysDifference:** Calculate number of days between two timestamps.
**-getHoursDifference:** Calculate number of hours between two timestamps.
**-getHoursAndMinutesDifferenceArray:** Calculate hours and minutes difference and return array.
**-getHoursAndMinutesDifferenceString:** Calculate hours and minutes difference and return formatted string.
**-getYearsAndDaysDifferenceArray:** Calculate years and remaining days between two dates and return array.
**-getYearsAndDaysDifferenceString:** Calculate years and remaining days between two dates and return formatted string.

📌 **Conclusion:**
Our PHP Date Formatter package simplifies date and time-related operations in PHP applications. With clear explanations provided in our documentation, users can easily understand the usage and functionality of each method.

Check out the README.md file on GitHub for more details!

#PHP #DateFormatter #PHPDevelopment #OpenSource

Let's empower your PHP applications with efficient date handling! Feel free to give it a try and share your feedback! 🚀🎉
SLA & SLO & SLI
Tags: ibbus, sla, slo, sli
Published: 2024-02-11 07:44:47

𝗦𝗟𝗔: 𝗦𝗲𝗿𝘃𝗶𝗰𝗲 𝗟𝗲𝘃𝗲𝗹 𝗔𝗴𝗿𝗲𝗲𝗺𝗲𝗻𝘁𝘀

What is an SLA?

💢 An SLA (service level agreement) is an agreement between provider and client about measurable metrics like uptime, responsiveness, and responsibilities. 

𝗦𝗟𝗢: 𝗦𝗲𝗿𝘃𝗶𝗰𝗲 𝗟𝗲𝘃𝗲𝗹 𝗢𝗯𝗷𝗲𝗰𝘁𝗶𝘃𝗲𝘀

What is an SLO?

💢 An SLO (service level objective) is an agreement within an SLA about a specific metric like uptime or response time. 

💢 So, if the SLA is the formal agreement between you and your customer, SLOs are the individual promises you are making to that customer. 

💢 SLOs are what set customer expectations and tell IT and DevOps teams what goals they need to hit and measure themselves against.

𝗦𝗟𝗜: 𝗦𝗲𝗿𝘃𝗶𝗰𝗲 𝗟𝗲𝘃𝗲𝗹 𝗜𝗻𝗱𝗶𝗰𝗮𝘁𝗼𝗿

What is an SLI?

💢 An SLI (service level indicator) measures compliance with an SLO (service level objective). 

💢 So, for example, if your SLA specifies that your systems will be available 99.95% of the time, your SLO is likely 99.95% uptime and your SLI is the actual measurement of your uptime. 

💢 Maybe it's 99.96%. Maybe 99.99%. To stay in compliance with your SLA, the SLI will need to meet or exceed the promises made in that document.
Gacor Hari Ini, Situs Judi Slot Online Paling Gacor Hari ini Resmi dan Terpercaya 2024
Published: 2024-02-11 07:40:28


![https://9wsy.short.gy/HBOSLOT188](https://i.postimg.cc/7ZSTM5nf/873667742-Daftar-disini-rud9nh-3.gif)

### 👉 👉  [KLIK DAFTAR DISINI](https://9wsy.short.gy/HBOSLOT188) - HBOSLOT188

### 👉 👉  [KLIK DAFTAR DISINI](https://9wsy.short.gy/HBOSLOT188) - HBOSLOT188


Jika anda sedang mencari situs game slot online gacor terbaik, maka Gacor Hari Ini adalah tempat yang tepat untuk anda. Dengan pilihan permainan yang beragam, Gacor Hari Ini menawarkan pengalaman bermain yang unik untuk semua jenis pemain. Tim Gacor Hari Ini berdedikasi untuk menyediakan game slot Gacor terbaik melebihi ekspektasi Anda. Hadir dengan grafik berkualitas tinggi dan lingkungan yang indah. Juga, Dan berbicara tentang kepercayaan dalam memberikan Gacor Hari Ini situs judi online yang aman dan terjamin.

Sebagai situs judi online, Gacor Hari Ini menawarkan banyak keuntungan kepada para pemain yang terdaftar di situs judi online, baik itu pemain lama maupun pemain baru. Bagi para penjudi yang bermain di slot gacor ini di tawarkan bonus online terbaik seperti uang 100% untuk member baru yang bisa claim kedepannya. Dan tidak asiknya para pemain yang ikut bermain disini, bonus roller gacor hari ini sudah menanti anda yang di dukung dengan pergantian judi anda dan uang slot yang didapatkan setiap minggunya.

Dengan memberikan pelayanan maksimal dan terbaik kita gacor mengakses slot member, proses withdraw dan deposit sangat cepat. Dan pelanggan kami akan setia mendukung permainan anda selama 24 jam nonstop dan akan selalu ada jika anda kesulitan bermain atau berbisnis disini. Setoran minimum Rp 10.000 rendah dan semua pemain Gacor bisa mendapatkannya hari ini. Penarikan minimal Rp 25.000 akan sangat membantu Anda jika ingin menghasilkan uang. Transaksi bisa dilakukan disini melalui banyak bank daerah seperti BCA, Mandiri, BNI, BRI dan E-money seperti OVO, Gopay, LinkAja, Dana.
TweakBox Download for iOS
Published: 2024-02-11 07:36:10

1. Open the Safari browser on your iOS device.
2. Go to the TweakBox website. You can search for it using a search engine.
3. Look for the "[Download](https://tweakbox.in/)" or "Install" button on the website.
4. Tap the button to start the download process.
5. Follow the on-screen instructions to install TweakBox on your iOS device.
6. Once the installation is complete, you may need to trust the app developer in your device settings. To do this, go to "Settings" > "General" > "Device Management" or "Profiles & Device Management." Find the developer profile associated with TweakBox and trust it.
7. After trusting the developer, you should be able to open TweakBox and start downloading third-party apps.

Keep in mind that the steps may vary slightly depending on the version of TweakBox and the iOS version you are using. Also, be cautious about the apps you download, as they may not go through the same security checks as those on the official App Store. Always be aware of the potential risks associated with using third-party app stores.
Navigating the AWS Landscape: Understanding Regions, Availability Zones, and Points of Presence for Optimal Cloud Performance!
Tags: aws, cloudcomputing, cloudpractitioner
Published: 2024-02-11 07:28:14

Amazon Web Services (AWS) operates a global infrastructure that spans multiple geographic regions, availability zones, and points of presence. Let's break down each of these components:

**1) AWS Regions:**
AWS regions are physical locations around the world where AWS clusters data centers. Each region is designed to be completely isolated from other regions, both in terms of network connectivity and power supply. AWS regions are further divided into availability zones. Example : "_US East (Northern Virginia)_," commonly referred to as "_us-east-1_"

> How do you choose an AWS Region?

- Compliance with data government & legal requirements (Data never leaves a region without your explicit permission)

- Proximity to customer (Reduced Latency)

- Available service within a region (New services & new features aren't available in every region)

- Pricing (Varies region to region)

**2) AWS Availability Zones:**
Availability zones are distinct locations within an AWS region that are engineered to be isolated from failures in other availability zones. They are connected through low-latency links, but each availability zone is physically separate, typically housed in different data centers. Deploying applications across multiple availability zones ensures high availability and fault tolerance. It provides redundancy in case of failures within a single zone. For instance, in the AWS US East (Northern Virginia) region (us-east-1), an example of an availability zone could be "us-east-1a". 

**3)AWS Points of Presence (PoPs):**
AWS Points of Presence are edge locations where AWS has infrastructure to improve the performance and availability of services for end-users. These PoPs primarily consist of Amazon CloudFront edge locations, which are used for content delivery network (CDN) services to cache and deliver content closer to users, reducing latency and improving user experience. AWS also operates other types of PoPs for services like AWS Direct Connect, which provides private connectivity between customer data centers and AWS infrastructure.

In summary, AWS regions provide the foundation for AWS services and are comprised of multiple availability zones for fault tolerance and high availability. Points of Presence enhance the performance and availability of AWS services by bringing them closer to end-users through edge locations, primarily for content delivery and network connectivity.
Interview Questions About Promises
Tags: webdev, javascript, programming, beginners
Published: 2024-02-11 06:55:37

~~~~## Q1
**What are Promises?**
In the world of JavaScript, promises are your go-to solution for handling asynchronous operations. But what exactly are promises? Well, think of them as placeholders for values that are not yet known. They represent the eventual completion or failure of an asynchronous operation and allow you to handle its result asynchronously.

Imagine you're waiting for a package delivery. You don't know exactly when it will arrive, but you're certain it will eventually either show up at your doorstep or encounter some delivery issues. Promises work similarly—they represent the future outcome of an operation, be it successful or unsuccessful.

---
**States of Promises**

1. Pending
2. Resolved
3. Rejected

## Q2:Sleep Function


**Synatx**
```
function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms))

}
```
**Solution To Callback hell**
_In order to convert callback based function into promise based  wrap the callback fucntion into promise and [ass] the handlers resolve and reject ,and you can call the resolve function after successfull completion of the asynchronouse operation _

Lets take an example

## Q3
**Callback Function**

```
function getdata(dataid,getnextdata){
  setTimeout(()=>{
    console.log("data",dataid)
    if(getnextdata){
      getnextdata()}

  },2000)
}

```
Promise Function

```
function getdata(dataid, getnextdat) {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      console.log("data", dataid)
      resolve("success")
    }, 2000)
    if (getnextdat) {
      getnextdat()
    }

  })

}
```

## Q4
**Promise Chaining**

```
const fetchPromise = fetch(
  "https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json",
);

fetchPromise.then((response) => {
  const jsonPromise = response.json();
  jsonPromise.then((data) => {
    console.log(data[0].name);
  });
});

```
_Code By MDN WEB DOCS_<u>[How to use Promises]</u>(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)

---
That's It
fOLLOW ME for more <u>[LINKEDIN ACCOUNT]</u>(https://www.linkedin.com/in/syeda-umm-e-kulsoom-259001268/)