teleren/devto huggingface dataset:
difference between c and c++
Tags: webdev, programming, codenewbie
Published: 2023-10-17 08:25:43

C and C++ are two programming languages that share many similarities. Both languages have a similar syntax, and their code structure is the same. 

The compilation of both languages is also similar, and they share the same basic syntax. Nearly all of C’s operators and keywords are also present in C++ and do the same thing.

 C++ has a slightly extended grammar than C, but the basic grammar is the same. Basic memory model of both is very close to the hardware. 

Same notions of stack, heap, file-scope and static variables are present in both the languages 

Here are some differences between C and C++:

Polymorphism, encapsulation, and inheritance: C does not support polymorphism, encapsulation, and inheritance which means that it does not support object-oriented programming. 

On the other hand, C++ supports polymorphism, encapsulation, and inheritance because it is an object-oriented programming language.


Built-in data types: Built-in data types are supported in both languages. However, C++ supports both built-in and user-defined data types.


Standard IO header: In C, the standard IO header is stdio.h, whereas in C++, it is iostream.h .

which language should I learn first c or c++:

Both C and C++ share many similarities. However, C++ is often viewed as a superset of C. C++ is also known as “C with class”. 

If you are interested in learning object-oriented programming, then you should start with C++.

 If you want to learn the basics of programming first, then you should start with C.

 Learning C first will give you a solid foundation in programming concepts such as variables, loops, functions, and arrays. Once you have mastered these concepts, you can move on to learning C++.

The best language to learn first depends on your interests and goals. If you are interested in web development,

 then learning HTML/CSS and JavaScript might be more beneficial than learning either C or C++. If you are interested in data science or machine learning, then Python might be a better choice.

how long does it take to learn c or c++:

The time it takes to learn C or C++ depends on your background, motivation, and what you want to do with the language. For absolute beginners, it will take at least 3 months to learn C++. 

That’s working at least 2 to 3 hours each day. However, if you’ve programmed before, working at least an hour a day, it’ll take 1 to 3 months to grasp the basics. And if you want to build mastery in C++, it’ll take at least 2 years.

It will take half that time to learn C.
PowerShell Script Not Digitally Signed
Tags: microsoft, powershell
Published: 2023-10-17 08:25:10

When you run a PowerShell script you might get the message saying “xxxx.ps1 is not digitally signed. The script will not execute on the system.”

To fix this issue we have to bypass the PowerShell's execution policy. The following command will do that.

`Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass`

`Execution policy Bypass`
This means Nothing is blocked and there are no warnings or prompts.

`Scope Process`
This means only affects the current PowerShell session. The execution policy is saved in the environment variable `$env:PSExecutionPolicyPreference`, rather than the registry. When the PowerShell session is closed, the variable and value are deleted.

[For more information check this article from Microsoft](https://go.microsoft.com/fwlink/?LinkID=135170)
The Zen of Python 🐍
Tags: python, learning, community
Published: 2023-10-17 08:24:03

## What, you've never heard of it?

So read the following carefully!

---

## What is this?

🧐 It's kind of like a wise person or mentor, helping you write better code while grasping the very essence of Python.

It was written by Tim Peters, a highly respected programmer in the Python community.

📝 It's a kind of poem, composed of 19 aphorisms that humorously summarize the principles behind Python's design.

When I discovered it, I thought it was brilliant!

A kind of checklist that allows us, among Python developers, to speak a universal language.

If you're a seasoned Pythonista, there's zero chance you don't know this document, and if you're a beginner, it's a good way to grasp the whole essence of this language.

In future articles, I'll analyze some aphorisms, so if you're curious, hit the bell 🔔

---
## How to find it?

Open a Python repl and type this command:
`import this`

or got to [PEP20](https://peps.python.org/pep-0020/)

---
So!
Did you know "The Zen of Python"?

What's your favorite aphorism and why?
I'll be waiting for you in the comments!
Chatmind: Chat-guided Mind Mapping
Tags: productivity, news, ai
Published: 2023-10-17 08:23:26

We are trying to create a whole new world of mind mapping! Starts with a simple chat, then swiftly evolving into an innovative mind map.

💬Chat with Chatmind
Chat to Create - Just chat with Chatmind, and transform plain text into visual mind maps.
Chat to Expand - Expand your mind map with ideas from conversations seamlessly. 
Chat to Modify - Regenerate or adjust any part of your mind map as needed through chat.

Moreover, we are offering 1 free credit per day. 
Try it here👉: https://chatmind.tech

Your insights matter immensely to us. Welcome to share your ideas or thoughts with us.
Where are the Good Bots?
Tags: discuss
Published: 2023-10-17 08:20:14

---
title: Where are the Good Bots?
published: true
description: 
tags: discussion
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-10-17 07:40 +0000
---

Hey all 👋

Before I start, I want to mention, take this as a thought experiment, and jump in with an open mind. I'm coming from a place of empathy here; it may be naive to ask this, but my intentions are in the right place.

So, if the social media platforms are filled with evil bots, mostly doing harmless stuff, but in conflicts, they can be weaponized. Let's assume social media platforms can get overwhelmed tracking them all.

So, where are the good(unbiased) bots?
Getting Started with Mobile Slots in Malaysia
Tags: slot
Published: 2023-10-17 08:19:03


So, you've heard about the thrill of mobile slots in Malaysia, and you're ready to spin those reels and win big. Don't worry; it's easier than you think. In this guide, we'll walk you through the exciting world of mobile slot gaming in Malaysia, and soon, you'll be a spinning pro at W126!

## Choosing the Right Mobile Slot Game

First things first, you need to choose the perfect mobile slot game is W126. With countless options available, you're spoilt for choice. Look for games that catch your eye, offer enticing bonuses, and suit your budget. [Mobile Slot Malaysia](https://www.w126.co/my/en-us/w/slots) has a variety of options to cater to your preferences.

## Understanding the Basics of Mobile Slot Play

W126 Mobile slot games are all about simplicity. You place your bet, hit the spin button, and hope to land matching symbols on the reels. It's like taking a walk in the park, only way more fun and potentially rewarding. Most mobile slots are designed for both beginners and seasoned players, so you'll find it a breeze.

## Navigating the Mobile Slot Interface

Okay, so you've picked a game, and you're ready to roll. Take a moment to explore the game's interface. You'll usually find your bet options, paytable, and spin button right there on the screen. It's a user-friendly setup designed to make your experience seamless.

## Mobile Slot Tips and Tricks

Now, let's get into the nitty-gritty of increasing your winning odds. It's essential to manage your bankroll wisely. Set a budget, stick to it, and don't get carried away by the excitement. Also, keep an eye out for special symbols like wilds and scatters; they can unlock bonus features and free spins, boosting your winnings.

## Conclusion: Go Spin Those Reels!

Playing mobile slots in Malaysia is an exhilarating adventure, and it's all at your fingertips. With a vast selection of games, simple gameplay, and the potential for big wins, you're in for a fantastic time. So, what are you waiting for? Grab your mobile device, choose a mobile slot game that tickles your fancy, and let the reels spin in your favor. Good luck, and may the jackpots be ever in your favor! Mobile Slot Malaysia awaits you.
Cyberattack to Airline payment system
Tags: cybersecurity, help, airlines, aviation
Published: 2023-10-17 08:16:59

Airlines are now a prime target for cyberattacks. 🌐 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tmt204g2hv0arqkl0yob.jpg)

Interconnected systems and passenger data make the industry vulnerable. 💳

Invest in robust #cybersecurity to protect safety and trust. Let's keep the skies safe, digitally and physically. 

We can #help you!🛡️🌍 

https://www.relianoid.com/blog/flying-safely-in-the-digital-age-cybersecurity-applied-to-airlines-and-their-online-selling-platforms/

#aviationsecurity #cyberawareness #digitalsafety #airlinetechnology #dataprotection #flightsafety #protectingdata #AirlineCyberthreats #safetyfirst #secureskies #technologyinaviation 
#cyberresilience #PassengerPrivacy #secureflight #digitalthreats 
#aviationinnovation #cyberdefense #TrustInAviation #CyberCollaboration
Acuity Training - Equipping you for the next stage of your career
Tags: training, education, courses, it
Published: 2023-10-17 08:03:23

Acuity Training is a multi-award-winning training business offering in-person and online courses for Microsoft products and soft skills (or management). We provide training courses for popular business software, including Excel, Power BI, Project, Adobe, AutoCAD, and SQL. We also offer soft skills and management training covering topics such as team leadership, line management, time management, etc. 

We have locations for in-person courses in London, Guildford, Bristol and Manchester. Our trainers have years of experience working in commerce and industry, designing and delivering training programs for all sorts of organisations. Most importantly, they really love what they do. 

With class sizes limited to a maximum of 8 delegates (but typically running with between 2-6), our training courses are able to incorporate numerous hands-on exercises to consolidate the learning, and delegates are assured of detailed personal attention, with plenty of time to ask questions and tackle issues that are relevant to them.

[https://acuitytraining.co.uk](https://acuitytraining.co.uk)
CPS Lawyer Near Me
Published: 2023-10-17 08:02:29

Are you in search of a dedicated CPS lawyer in your area? Look no further! "CPS Lawyer Near Me" is your one-stop resource for finding experienced attorneys specializing in Child Protective Services cases near your location. We understand the importance of local legal support in delicate matters involving child welfare. Our directory simplifies the process, connecting you with legal experts ready to protect your rights and guide you through CPS-related challenges. Trust us to help you find the right legal counsel when you need it most.

Kindly Visit Us Our Websites : https://srislawyer.com/cps-lawyer-near-me/
Laravel Factories & Seeders Structure
Tags: laravel, database, php
Published: 2023-10-17 07:58:08

Let's start with the case where the model doesn't exist yet.

We need to run the following command:

```bash
php artisan make:model Product -mfs
```
We just created the following files:

1. Product Model,
2. Migration file (-m),
3. ProductFactory (-f)
4. ProductSeeder (-s)

_In case the Product Model exists and we want to create only the ProductFactory, we need the following command:_

`php artisan make:factory ProductFactory --model=Product`

We define the columns we want the `products` table to have, in the migration file.

```php
    public function up(): void
    {
        Schema::create('products', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->text('description');
            $table->timestamps();
        });
    }
```
We prepare the `ProductFactory` with the fields we defined in the migration file. [For more options about Factories](https://laravel.com/docs/10.x/eloquent-factories)

```php
    public function definition(): array
    {
        return [
            'name' => fake()->word(),
            'description' => fake()->paragraph(),
        ];
    }
```

In the `ProductSeeder` file, we can use the `ProductFactory` like the example below: [For more options about Seeders](https://laravel.com/docs/10.x/seeding)

```php
    public function run(): void
    {
        Product::factory(20)->create();
    }
```

_In case the Product Model exists and we want to create only the ProductSeeder, we need the following command:_

`php artisan make:factory ProductSeeder`

All seeder files are declared in the `database\seeders\DatabaseSeeder.php` file.

```php
public function run(): void
{
    $this->call([
        UserSeeder::class,
        ProductSeeder::class
        // more seeders....
    ]);
}
```

Finally with the following command, we can fill the database with the fake data.
 
```bash
php artisan db:seed
```
Innovations in Website and App Development in India
Tags: webdev, appdevelopment
Published: 2023-10-17 07:54:51

[
Title: Innovations in Website and App Development in India

India has become a powerhouse in the world of website and application development, showcasing remarkable innovations and technological advances. Some of the latest trends in this dynamic landscape include the rising prominence of Progressive Web Apps (PWAs), which provide a seamless user experience across devices. Additionally, Indian developers are actively exploring Artificial Intelligence (AI) and Machine Learning (ML) to create smart, data-driven applications, as well as delving into the world of blockchain technology, going beyond cryptocurrencies to develop secure data management solutions. The Indian startup ecosystem continues to thrive, fostering fresh ideas and creativity in web and app development. With a focus on localization, cybersecurity, and inclusivity, the future of website and app development in India is bright, reflecting a commitment to excellence and innovation on the global stage.](https://zapinfotech.com/web-designing-and-development.php)
Emerging Trends in Digital Marketing in India
Tags: digital, marketing, digitalmarketing
Published: 2023-10-17 07:53:02

[Digital marketing in India is rapidly evolving, with several exciting trends reshaping the industry. Influencer marketing is on the rise, as brands partner with social media influencers to reach their target audience effectively. Additionally, video marketing has gained significant traction, with platforms like TikTok and YouTube becoming crucial for marketing campaigns.

Voice search optimization is another emerging trend, as more users turn to voice assistants like Alexa and Google Assistant for queries. This means brands are focusing on optimizing their content for voice search to stay relevant.

Data privacy and compliance are also becoming increasingly important. With data protection regulations like GDPR and the Indian Data Protection Bill on the horizon, marketers are prioritizing customer data security.

Overall, India's digital marketing landscape is witnessing a shift towards more personalized, authentic, and privacy-conscious strategies to engage the digitally savvy Indian audience.](https://zapinfotech.com/digital-marketing-service-provider.php)
Top 10 Essential Software Development Tools for Modern Developers⚡
Tags: webdev, productivity, softwaredevelopment
Published: 2023-10-17 07:49:22

Certainly, here are the software tools with download links:

## 👨‍💻 Visual Studio Code (VSCode):
- Visual Studio Code is a free, open-source code editor developed by Microsoft. It offers a wide range of extensions and excellent support for various programming languages, making it a top choice for developers.
- [Download Visual Studio Code](https://code.visualstudio.com/)

## 🐙 GitHub:
- GitHub is a web-based platform for version control and collaboration. It's widely used for hosting and managing Git repositories, enabling teams to work together efficiently.
- [Visit GitHub](https://github.com/)

## 🔗 Git:
- Git is a distributed version control system that's the foundation for many code management platforms, including GitHub. It's essential for tracking changes and collaborating on software projects.
- [Download Git](https://git-scm.com/)

## 🚀 IntelliJ IDEA:
- IntelliJ IDEA is a popular integrated development environment (IDE) primarily used for Java, but it supports a wide range of languages. It's known for its strong code analysis and refactoring capabilities.
- [Download IntelliJ IDEA](https://www.jetbrains.com/idea/download/)

## 🌘 Eclipse:
- Eclipse is another versatile, open-source IDE that's particularly popular for Java development. It also supports numerous plugins to extend functionality.
- [Download Eclipse](https://www.eclipse.org/downloads/)

## 🐍 PyCharm:
- PyCharm is a Python-specific IDE developed by JetBrains. It's known for its powerful code analysis, debugging, and testing features for Python development.
- [Download PyCharm](https://www.jetbrains.com/pycharm/download/)

## 📝 Sublime Text:
- Sublime Text is a lightweight and highly customizable text editor popular for its speed and versatility. It supports a wide variety of programming languages.
- [Download Sublime Text](https://www.sublimetext.com/download)

## 🐳 Docker:
- Docker is a containerization platform that allows developers to package applications and dependencies into containers, making it easier to deploy and run applications consistently across different environments.
- [Download Docker](https://www.docker.com/get-started)

## 🔧 Jenkins:
- Jenkins is an open-source automation server used for continuous integration and continuous delivery (CI/CD) in software development. It helps automate build, test, and deployment pipelines.
- [Download Jenkins](https://www.jenkins.io/download/)

## ☢️ Atom:
- Atom is an open-source text editor developed by GitHub. It's known for its hackability and extensive library of plugins, which can be used to customize the editor to your needs.
- [Download Atom](https://atom.io/)

These are some of the most widely used software development tools, each with its unique features and advantages. Developers often choose tools based on their specific needs and the programming languages they work with. While I can't provide images directly, you can easily find images of these tools by searching for their names in an online search engine or on their respective websites.
Get started with Arthera
Tags: arthera, blockchain
Published: 2023-10-17 07:49:04

[Arthera](https://www.arthera.net/) is a new L1 in town. It's EVM-compatible, so if you're already familiar with EVM tooling and Solidity, you'll feel right X I'm at home.

We just sealed a partnership with a service called [SolidityScan](https://solidityscan.com/home), and it's part of the whole security workflow we're setting up for our own system contracts. But we're also giving access to all applications building on Arthera. To date, there are already more than 80 apps committed to building on Arthera.

I strongly recommend you have a look at our White Paper and [mint the NFT](https://whitepaper.arthera.net/) that goes with it.

If you're as lazy (efficient) as a good dev should be, or a beginner in Solidity, you can just fork this [Hardhat template](https://github.com/artheranet/arthera-hardhat-template) and build what you want to build from there.

Here are the [docs](https://docs.arthera.net/) where you'll find answers to all your questions. Whether you're using Hardhat, Foundry, Truffle, Alchemy, Embark, or something else, you can easily add Arthera Testnet to your project:

-   RPC Endpoint: **https://rpc-test.arthera.net**

-   WebSocket Endpoint (Optional): **wss://ws-test.arthera.net**

-   Chain ID: **10243**

And of course, you're invited to [join us in Telegram](https://t.me/artherachain) and get in touch with us!

This is our [app store](https://store.arthera.net/), feel free to submit your app [here](https://docs.google.com/forms/d/e/1FAIpQLSdEzTThOjuQwYPfS8L9Hrf3boxumolQP7lo4hySpbQPasVFsg/viewform), we'll be delighted to welcome you.
Observability in Action Part 3: Enhancing Your Codebase with OpenTelemetry
Tags: observability, devops, springboot, kotlin
Published: 2023-10-17 07:57:15

---
title: Observability in Action Part 3: Enhancing Your Codebase with OpenTelemetry
published: true
date: 2023-10-17 07:43:34 UTC
tags: observability,devops,springboot,kotlin
canonical_url: https://yonatankarp.com/observability-in-action-part-3-enhancing-your-codebase-with-opentelemetry
---

This blog post was moved to https://kotlinbackend.com/observability-in-action-how-to-use-opentelemetry/
Career Growth tracker
Tags: career, resume, beginners
Published: 2023-10-17 07:38:33

CV or Resume is not just some words on a paper. But it's a journey that has been written.

So don't write your CV/Resume just before you apply somewhere.
You should start writing your CV after finishing school, and continuously update it. Update it for the rest of your life.

Yes, you should update it for the rest of your life, because it's not only for applying for a job. But it will continuously visualize your growth to yourself.


That's all it takes... 
When you are writing the truth about yourself, and visualizing it to yourself, then you can see that you don't have many things to write and so you feel helpless...

Those feelings will continuously kick on your back and you will start running, and you will become hungry to achieve the next thing, then the next, next thing.
Golang Notes - 6
Published: 2023-10-17 07:31:57


**Data Types**

predeclared types - builtin types
- **basic types**: integers , floating point numbers, complex numbers, byte, rune, string, boolean
 
- int8, int16, int32, int64,
      int -> alias for int32 or int64 based on platform
  ```
var i8 int8 = -128 // [-128, 127]
var ui16 uint16 = 65535 // [0, 65535]
```
  - uint8, uint16, uint32, uint64,
     uint -> alias for uint32 or uint64 based on platform
  - float32, float64
  - complex64, complex128
```
comp1 := complex(1, 2) // constructor way
comp2 := 1 + 2i    // second way to init
```
  - byte -> alias for uint8
  - rune -> alias for int32 `represents a Unicode code point`
```
var r rune = 'f'
fmt.Printf("%T\n", r)
// int32
```
- bool type - pre-defined constants true and false
- string type 
  - unicode chars written enclosed by double-quote
 
- **composite types** : array, slice, map, struct, pointer, function, interface, channel

- array type
  - fixed length
  - must contain single type
```
var nums = [3]int{1,2,3}
```
- slice type
  - dynamic length, can shrink or grow
  - must contain same type
```
var cities = []string{"Istanbul", "Tokyo"}
```
- map type
  - unordered group of elements of single type
  - indexed by a set of unique keys
```
balances := map[string]float64{
"USD": 2000.3,
"EUR": 3000.4,
}
```

- struct type
  - consist of named elements, fields 
  - each field has name and type
  - allow user to define custom type

```
type Person struct {
  name string
  age int
}
```

- pointer type
  - stores memory address
  - uninitialized, default value nil
```
var x int = 1
ptr := &x // address of x
fmt.Printf("%T\n", ptr)
fmt.Println(ptr)
fmt.Println(*ptr) // access value
// *int
// 0xc000012028
// 1
```
- function type
```
func f() {}
fmt.Printf("%T\n", f)
// func()
```
- interface type
- channel type
  - provides mechanism for concurrent communication
```
c := make(chan int) // unbuffered
c2 := make(chan int, 2) // buffered
fmt.Printf("%T\n", c)
// chan int
```