teleren/devto huggingface dataset:
Solve the error: redefinition of
Tags: c, cpp
Published: 2023-07-21 08:12:46

Suppose we have such a segment of code:

```
int a[2];
int i=1;
for(int i=0;i<2;i++){
  a[i]=i;
}
```
When we compile and write a piece of code, the compiler may successfully compile the program, or it may display an error message: redefinition of "i".
The situation depends on the type of compiler. Some compilers allow redefining a variable with the same name within a block of code enclosed in curly brackets. For example:

```
int i=1;
if(true){
  int i=3;
}
```
In the above code, the variable i is defined twice, the second time we define i in the if block. But the compiler will still compile the program successfully, because this kind of compiler allows redefinition of variables in a segment of code inside the curly brackets, and the i inside the braces is invisible to the code outside the curly brackets, that is, the value of i outside the braces is still 1 instead of 3.
However, in the case of bad luck, some compilers will not allow us to redefine a variable that has already been defined in a for loop.
Attention please: The symbol for exponentiation is not ^!
Tags: cpp, c
Published: 2023-07-21 08:03:55

When I first used a C program to calculate powers, I used the "^" symbol. 
But the way to calculate a power is to call the `pow() `function. "^" is bitwise exclusive OR operator in C.
Here is the usage of `pow()` function: pow(2,3)=2*2*2=8.
AI + Blockchain: The merger that’s revolutionizing everything!
Tags: ai, blockchain, web3, machinelearning
Published: 2023-07-21 07:59:37

**Artificial intelligence** (AI) and **blockchain** are two incredibly powerful technologies of our time. Each has the potential to transform many industries and change the way we interact economically and socially. By combining them, exciting new opportunities are emerging, with applications benefiting from both the productivity gains of AI and the security and transparency of blockchain.

According to a [report by Spherical Insights](https://www.sphericalinsights.com/reports/blockchain-ai-market), the intersection of blockchain and AI is set to become a billion-dollar industry over the next decade. However, despite this potential, their integration remains relatively under-exploited. This leaves room for more research and exploration as both fields move towards more widespread adoption.

I believe that if we are to be major players in **web3** and meet the challenges facing our continent, it’s essential to look at the opportunities that these emerging technologies can offer.

---
If you like the article and would like to support me, make sure to:

📑 View more content on my [dev.to](https://dev.to/sethlawson) Profile

🔔 Follow Me: [LinkedIn](https://linkedin.com/in/sethlawson)| [GitHub](https://github.com/SethLawson07) | [Twitter](https://twitter.com/0xSethLawson)

🚀 Help me in reaching to a wider audience by sharing my content with your friends and colleagues.
ReactJS Coding and TechTalking, come join :D
Tags: react, javascript, frontend, csharp
Published: 2023-07-21 07:54:36

Programming a real company app with reactjs, using microfroentds and typescript C#, javascript, html, css, net core, kubernetes.

Worked for more than 6 tech companies, including AbInbev, Banco Safra e Dell Computers. For now i own a fintech and i am also building a new startup.

[Live](https://www.youtube.com/watch?v=CBXo3sjPUHw)
[Digest] Java, Kotlin, Spring, Cloud, and More - Episode 5
Tags: digest, java, cloud, spring
Published: 2023-07-21 07:53:16

Hi everyone! Here is what I found interesting this week:

📦 [Our adventures with GraalVM — The good, the bad and the ugly](https://blog.valensas.com/our-adventures-with-graalvm-the-good-the-bad-and-the-ugly-cbf6d6e7f0d9): the migration of Kotlin + Spring Boot 3 apps to GraalVM - smaller docker image, faster application startup, better performance. But everything comes with a cost.

💾 [InfluxDB 3.0: System Architecture](https://www.influxdata.com/blog/influxdb-3-0-system-architecture/): what's under the hood of InfluxDB (time series database).

🚀 [Reactive database access on the JVM](https://blog.frankel.ch/reactive-database-access/): the three ways to access a database reactively: Spring Data R2DBC, Hibernate Reactive, and jOOQ Reactive.

🌱 [Enhanced Testcontainers and Development-Time Containers Support in Spring Boot 3.1](https://www.infoq.com/news/2023/07/enhanced-testcontainers-support): with Spring Boot 3.1 we can use testcontainers not only for tests but for development work as well!

📡 [Technology Radar](https://www.thoughtworks.com/radar): a nice thing about where technologies, tools, platforms, and languages are heading.

---

*Dream your code, code your dream.*
Solve the error "header files not found. no such file or directory".
Tags: c, cpp, header
Published: 2023-07-21 07:26:44

When we write a C/C++ program, we often need to use third-party header files (that is, unofficial header files different from stdio.h).
We need to use `#include` to include the header files to be used, and then compile the program. If the compiler displays an error message: header files not found. no such file or directory, how to solve this error?

![header files not found](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2e8mwvz8hbp7xsth5koz.png)

Since the compiler tells us it can't find the file, we need to know where the compiler looks for the header file.
The compiler will first look for the header file in the folder where the source program is located. If there is no header file in this folder, the compiler will look for it in the default include folder (the default include folder is usually near the folder where the compiler program is located).
If the compiler still cannot find the header file in the include folder, then you need to manually set the path of the header file so that the compiler can find the header file according to the path.
Best Data Science Course in Pune - Skillslash
Published: 2023-07-21 07:19:49

Are you considering entering the field of data science but are hesitant because you lack the necessary experience or training?
There is no doubt that [Skillslash](https://skillslash.com) is reliable and will guide you in the right direction. It would be an understatement to say Skillslash is one of the top data science institutes in pune. Its innovative approach to online education has made it a world leader.

Our comprehensive curriculum covers Python, R, Machine Learning, Deep Learning, Tableau, and many more relevant data science tools. Thus, we aim to provide our students with everything they need to complete their data science training in pune. This will enable them to get employed by some of India's top companies and startups.

We offer a convenient online alternative if you are too busy with work or school to attend regular classroom sessions. Due to its rapid growth, broad connections with leading AI firms and startups, and world-class teaching delivered by pioneers in the field, Skillslash consistently ranks among the most popular [data science courses in pune](https://skillslash.com/data-science-course-in-pune).

We recently launched an entirely online data science course in pune designed specifically for working professionals. This opportunity is best suited to those with at least a year's worth of corporate experience. Students can thrive in a distance learning environment because they can study at their own pace and around their other commitments. Classes are offered during the week and on weekends to accommodate busy professionals.

The skills of a candidate are now more relevant to hiring managers than their educational background. Due to the fact that students have the opportunity to learn from some of the country's leading professors, work with some of the most well-known names in AI, solve real-world problems, and gain valuable project experience in just two years, this program is significantly more valuable than a traditional three-year degree.

We charge a total of INR 1,09,999 (plus GST) as our [data science course fees in pune](https://skillslash.com/data-science-course-in-pune)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rx2dl13uyi26jaamd9l7.png)
Visit Our Website:- https://skillslash.com/data-science-course-in-pune
For any questions or comments, please contact us at info@skillslash.com.
Phone: 8391-911-911
Postgresql for loop
Tags: postgres, sql
Published: 2023-07-21 07:18:45

Postgres에서 날짜 목록을 생성한 후 테이블에 하나씩 넣기 위해 loop를 돌리려면 이렇게 하면 된다.

```sql
do $$
declare
  dates date;
begin
  for dates in SELECT generate_series('2023-07-01'::DATE, '2023-07-31'::DATE, '1 day'::interval)::DATE loop
    insert into my_table(user_id, date, type) values ('my_user_id',dates, 'OFF');
  end loop;
end;
$$;
```
Best Data Science Course in 2023 - Skillslash
Tags: datascience, datasciencecourse, learning, python
Published: 2023-07-21 07:16:42

Would you be interested in a career in data science, but hesitant to pursue it because you lack the necessary skills and experience?

[Skillslash](https://skillslash.com) is a reliable and knowledgeable company that will guide you in the right direction. Among the top [data science course](https://skillslash.com/data-science-course), Skillslash is without a doubt the most reputable. It has become a world leader in online education due to its innovative approach.

Python, R, Machine Learning, Deep Learning, Tableau, and many other relevant data science tools are covered in our comprehensive curriculum. To ensure that our students get employment with some of India's top companies and startups, we provide them with everything they need to complete their data science training.

We offer a convenient online alternative if you are too busy with work or school to attend regular classroom sessions. Due to its rapid growth, broad connections with leading AI firms and startups, and world-class teaching delivered by pioneers in the field, Skillslash consistently ranks among the most popular data science courses.

We recently launched an entirely online data science course designed specifically for working professionals. This opportunity is best suited to those with at least a year's worth of corporate experience. Students can thrive in a distance learning environment because they can study at their own pace and around their other commitments. Classes are offered during the week and on weekends to accommodate busy professionals.

The skills of a candidate are now more crucial to hiring managers than their educational background. Due to the fact that students have the opportunity to learn from some of the country's most respected professors, work with some of the most well-known names in AI, solve real-world problems, and gain valuable project experience in just two years, this program is significantly more valuable than a traditional three-year degree.

We charge a total of INR 1,49,999 (plus GST) as our data science course.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mtg0gyqdf9v95mxp5oyn.png)
For any questions or comments, please contact us at info@skillslash.com.
Phone: 8391-911-911
Visit Website :- [https://skillslash.com/data-science-course](https://skillslash.com/data-science-course)
The Reality of Dream Jobs + Bad Advice w/ J.D. Hillen
Tags: career, motivation
Published: 2023-07-21 07:02:46

Today we’re putting our successes on the back burner and talking about the internet’s favorite subject— failure. Not so much the ones about people falling or a warehouse guy experiencing the world's most unfortunate domino situation, but we’re talking about the failure that stems from taking bad advice (we’ve all been there… or we’re still there) and what it feels like when your dream job turns out to be a flop.

**To check out J.D.’s Cannibal Corpse t-shirt, click here:**
[YouTube Link](https://www.youtube.com/watch?v=qu4-Z7sKyLw)

**To get straight to the fails:**

The problem with advice is the only difference between good advice and bad advice is perspective. Maybe you had a mentor or a professor that told you, “If you want to make money, you should go into (insert their opinion here).” And now here you are, years later, hating your job and realizing what they said might’ve been good for them but wasn’t the right move for you. The good news is, we’ve all taken bad advice. Even better news, you can still move forward from there because of your gained perspective.

Take caution in the advice you give to people. There’s weight in what you say, and you never know what someone may adopt as their own. I mean look at the name of this podcast— guidance counselors are one of the biggest offenders when it comes to giving bad advice to impressionable people. But the 2.0 updated version— we’re just here to give practical and tactical advice you can actually use. Don’t worry.

Are dream jobs real? I’d say about as real as Sasquatch or Santa to a six-year-old. It depends more on your definition of real. The reality of a dream job sometimes strays from the picture you had in your head.  Of course, there are varying degrees of this— whether it’s something simple like your day-to-day is a little more of a grind than you expected or you get the surprise of all of your coworkers thriving off drama, caffeine and making your every waking moment difficult. Like recognizing bad advice, this can be a hard reality to face. FYI, this reality can sometimes take years, weeks or a layoff before you get the epiphany. Don’t forget, if you’re unhappy with your workplace take a breather before storming into your boss’ office and quitting. Is it the job itself that’s the problem for you or is it more of an industry issue? Every job comes with its negatives, but you have to put them in context.
Adaptability & Flexibility: Key Coding Qualities?
Tags: codenewbie, beginners, discuss, career
Published: 2023-07-21 07:00:00

_This week, we're diving into the essential qualities that define exceptional coders. Share your practical tips, inspiring stories, and invaluable insights to help our newbies cultivate these qualities and unlock their full coding potential. Together, let's empower the next generation of coding superstars. Today's quality is:_ 

**Adaptability and Flexibility**

> How do you handle situations when requirements or project scope changes unexpectedly? Any tips for staying adaptable and flexible in coding projects?

> Share an example of a time when you had to quickly adapt to changes in a coding project. How did you manage it, and what did you learn from the experience?


Follow the [CodeNewbie Org](https://dev.to/codenewbieteam) and [#codenewbie](https://dev.to/t/codenewbie) for more discussions and online camaraderie!

*{% embed* https://dev.to/codenewbieteam *%}*
Transformative "Aha!" Moments: How Did They Change Your Coding Approach?
Tags: discuss
Published: 2023-07-21 07:00:00

Hey there, fellow coders! We've all had those incredible "Aha!" moments in our coding journey that completely changed the game. 😮 Share the most significant breakthrough you experienced and how it had a profound impact on your approach to coding. 

Follow the DEVteam for more discussions and online camaraderie!

{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
Sobha Neopolis present its luxury feature.
Tags: sobhaneopolis, sobhagroup
Published: 2023-07-21 06:59:56

As a high-end residential community created by a reputable developer, this project exhibits flawless architecture, exquisite interiors, immaculate grounds, and an impressive selection of facilities, features, and amenities. [Sobha Neopolis Panathur](https://www.sobhaneopolis.net.in/blog/sobha-royal-crest.html) provides an exceptional living experience in a prime suburban setting while providing the benefits of community living at an affordable price. It also satisfies all resident needs and wants.
Week-note; starting 17 July 2023
Tags: weeknote
Published: 2023-07-21 06:43:20

Another week, and even more coursework content has gone by.  Alongside combing up to the 1/2 way point for the  Agile Coaching Lab course I'm also about 1/2 way though the Flow Framework Advisor certification which has been pretty interesting.

ACL-wise, we've been covering the Clean Language practice and more generally the idea of powerful questions; how do we ask and prompt in a way that juices as much info out of our clients as possible while also ensuring they self reflect and feel held.  It reminds me of the "are we in solution mode or listening mode" view that I've experienced before.  We've got a short workshop to run next week on Concrete Practice which I'm looking forward to co-running,
It's actually been quite nice to have a course on the go alongside the ACL, some of the content we've covered on mentoring skills and teaching techniques have prompted me to think about ways to convey some of the Flow concepts to clients that links to what they already know about their organisation and current practices.

Also combined with existing work commitments has been a real test of my time management skills, which are feeling a bit bruised.
Work-wise I'm shadowing and helping prep for a Flow Framework workshop for a pretty sizeable group of 30 people.  I enjoy being challenged to facilitate back things that I've learned and it also keeps me honest in making sure I really understand stuff and have'n't just gamed the course to pass the exam!

Other work bits:
- Hacking away at automating some of our annual leave process via a Typescript AWS lambda; yes, node_modules is the heaviest object in the universe.
- Nice Friday Zoom drinks session that's prompted me to try writing a little more
- Looking forward to our monthly get together next week

Away from work but at the same keyboard:
- Like every Vim user in existence, the next config will be the best one; I'm rewriting my Fennel nvim setup and it's taking approx. 400% longer than expected
- Back to Tai Chi practice for a new term and a new form
- Will I ever be done with visa applications?  Who knows; it's currently been "in transit" from NZ to Aus for 3 days, which is amazing given it's a 3 hour flight.
- Booked up for Taste Martinborough 🍷

Look after yourselves.
The 5 Best Business Automation Tools for Online Businesses in 2023
Tags: productivity, ai
Published: 2023-07-21 06:24:03


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mkxiixsfrhls2b2elb33.png)
In 2023, automating tasks is vital for streamlining online businesses. Discover the top 5 user-friendly tools:

1. Mailchimp: Simplify email marketing with Mailchimp's automated campaigns, personalized messages, and customer segmentation.
2. Hootsuite: Manage social media effortlessly using Hootsuite's scheduling, monitoring, and reporting features for various platforms.
3. Shopify: Automate your e-commerce store with Shopify's inventory management, order processing, and customer support tools.
4. Zapier: Connect and automate apps without coding, enabling seamless data transfer and task automation.
5. HubSpot: Enhance customer relationship management with HubSpot's automation for marketing, sales, and customer service.

By incorporating these business automation tools, you can save time, improve efficiency, and focus on [growing your online business](https://mediabooth.com.au/seo-gold-coast/) in 2023.
Do you think 0N1 Force has a chance of being a blue chip again?
Tags: nft, discuss, web3, blockchain
Published: 2023-07-21 06:08:19

Today, I'm initiating a discussion with the title, "Do you think 0N1 Force has a chance of being a blue chip again?" The intent is to gather various viewpoints and insights concerning this NFT project. How do you perceive its potential for reclaiming its previous status as a blue chip? What indicators or developments in the project do you think would need to occur for this shift to happen?
how many time normally component render in reactjs
Tags: webdev, react, javascript, beginners
Published: 2023-07-21 06:02:19

In ReactJS, the number of times a component renders depends on various factors, including the component's state changes, updates to its props, and changes in the parent component's state or props. The goal of React's rendering process is to efficiently update the user interface and avoid unnecessary re-renders.

Here are some key points to consider regarding how many times a component typically renders:

1. Initial Render: When a component is first mounted (added to the DOM), it undergoes an initial render. This happens only once during the component's lifecycle.

2. State Changes: When the component's state changes due to calls to `setState` or state-setting hooks (e.g., `useState`, `useReducer`), React triggers a re-render to update the UI with the new state.

3. Prop Changes: If a parent component passes new props to a child component, the child component may re-render to reflect the changes in its UI. However, React performs a diffing algorithm to optimize rendering, and it will only update the parts of the UI that have changed.

4. Parent Component Re-renders: If a parent component re-renders (due to its own state or prop changes), all its child components will also re-render, even if their own props or state haven't changed. This is because React re-renders the entire component tree.

5. Use of React.memo: Components can use the `React.memo` higher-order component or the `useMemo` hook to memoize their output and prevent unnecessary re-renders when their props or state haven't changed.

6. Rendering Optimization: React employs various optimization techniques, such as virtual DOM and reconciliation algorithms, to minimize the number of actual DOM updates and re-renders.

In general, React aims to minimize re-renders by performing a virtual DOM comparison between the previous and current component states. This comparison helps identify which parts of the DOM need updating and optimizes rendering to avoid excessive DOM manipulations.

It's important to note that the exact number of renders can vary based on the complexity of the component's UI, its usage of state and props, and how the component's parent components interact with it. Developers can further optimize rendering by using React's built-in optimizations and adopting best practices for managing state and props effectively.
API Testing With Cypress
Tags: testing, qa, api, automation
Published: 2023-07-21 05:24:47

Is it possible to test everything using a single tool? Seems like a dream, but I would say it is almost possible with Cypress, a JavaScript frontend testing framework. Cypress is primarily designed for end-to-end testing of web applications, which includes both the frontend user interface (UI) and the backend API interactions.

[Please follow the link for more detail](https://dzone.com/articles/api-testing-with-cypress)

With Cypress, you can write tests that cover the entire application flow, from interacting with the UI elements to making API requests and validating the responses. This makes Cypress a versatile tool that allows you to test the integration between the UI and the API.