teleren/devto huggingface dataset:
Container With Most Water
Tags: leetcode, algorithms, java
Published: 2022-07-07 22:52:37

**Leetcode Problem:** [Container With Most Water](https://leetcode.com/problems/container-with-most-water/)

**Objective:**

Given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).

Find two lines that together with the x-axis form a container, such that the container contains the most water.

Return the maximum amount of water a container can store.

---
**Pattern: Two Pointer Technique**

---
**Approach:** 

1. Set a left and right pointer. left pointer = 0, right pointer = array.length - 1.
2. Create a maxArea variable to keep track of maximum area between left and right pointers. 
3. Create a width variable to keep track of the width between left and right pointers.
4. Calculate the for the max area, get the shorter pointer and multiple it by the width. 
4. If left < right pointer then increment left pointer and decrement width.
5. If left > right pointer then decrement right pointer and decrement width. 


---
**Big-O Notation:** 

Time Complexity: O(n) 
We have iterate n times for each element. 

Space Complexity: O(1)
We do not use any additional data structures for storage. 

---
**Code:**

```java
class Solution {
    public int maxArea(int[] height) {
        
        int left = 0;
        int right = height.length - 1;
        int maxArea = Integer.MIN_VALUE;
        int width = height.length - 1; 
        
        while(left < right){
            int less = Math.min(height[left], height[right]);
            maxArea = Math.max(maxArea, less * width);
            
            if(height[left] <= height[right]){
                left++;
            } else if (height[left] > height[right]) {
                right--;
            }
 
            width--;
        }
        return maxArea;
    }
}
```
Why Technical Writing?
Tags: writing, community
Published: 2022-07-07 22:27:43

Helping people to understand tech has always been my passion.

Being a developer has made me realize that I can code with any tool if I understand the basic concept of the tool. For instance, most programming language tutorials start with how to print "Hello world!". Then, understanding how "Hello world!" is printed in the next step. This shows that a programmer does not only need to know how to instruct a computer but can understand how the computer carries out the instruction. The more you know the basics the better it will be to understand the advanced concepts.

Technical writing helps users understand a skill or product by providing detail-oriented instructions.
Instruction is detailed information about how something should be done or operated.
Technical writing helps users efficiently use tools and products. 
Technical writing also gives you a better sense of user empathy. When you write, you must pay more attention to what the readers or users of a product feel rather than what you think.
Breakout clone
Tags: javascript, gamedev, beginners, codenewbie
Published: 2022-07-07 22:10:12

I recently start a youtube channel with coding videos for beginners and recreational coding hobbyists.

This current video is from my channel.

You can find more on youtube at:
[https://www.youtube.com/c/CodingAdventures/](https://www.youtube.com/c/CodingAdventures/)
🗞️ A curated list of news around Axway
Tags: api, productivity, news, microservices
Published: 2022-07-07 21:14:33

## ❔ About

Since I'm engaged on API integrations, I started to work on public API Marketplaces with RapidAPI.com.

{% embed https://dev.to/optnc/rapidapi-raises-150-m-to-empower-developers-and-why-and-how-were-in-1dn9 %}

Recently I started to work on opportunities with [`@Axway`](https://twitter.com/Axway) solutions, and then to bookmark some of their own contents... and also related content.

👉 Consider this post as a **set of bookmarks**.

I did it for myself and collborators at [`@opt-nc`](https://dev.to/optnc) but you could also be intersted. If it's the case, just :

1. **Bookmark** the post
2. **Subscribe** the post so you get noticed when I add new content

## 🐦 First post 🚀

Here is the first post (the following ones will be added to the discussion) :

{% twitter 1545052525199364104 %}

Interview link below : 

[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wgp4p236fvxla3vptqea.png)](https://www.bsmart.fr/video/14927-le-grand-entretien-emission-09-juillet-2022)
nginx, consul, mysql high availability
Tags: nginx, consul, mysql
Published: 2022-07-07 22:03:19

昨天晚上睡觉的时候想，可以用nginx为 MySQL 做反向代理，upstream server 只有一个， backup upstream server 则为另一个，这样可以保证只往一个MySQL实例当中写，upstream server 中使用consul提供的域名，由consul提供健康检测，或者用其它机制检测两台MySQL的健康状态，更新 consul kv 存储， consul-template 更新nginx 配置文件
So Fresh and So Data Clean - Event
Tags: datascience, datacleaning, opensource, mlops
Published: 2022-07-07 21:54:23

Join our CEO & Co-founder, Tommy Dang, as he shares our new open-source data preparation platform!

Register: https://home.mlops.community/home/events/so-fresh-and-so-data-clean-2022-07-13

See you live on Wednesday, 7/13 at 9am PST. Hosted by MLOps Community.
X64dbg for beginners
Tags: firstpost, x64dbg, ctf, reverseengginering
Published: 2022-07-07 21:34:43

1. Download x64dbg
2. Using this program for case
https://crackmes.one/crackme/5d63011533c5d46f00e2c305
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qb43gzpdf3esf06sqk8g.png)
3. Open Your x64dbg
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8fkizbv2t3mvzowssl2t.png)
4. Open the file that has been downloaded
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9h671islw2l5d0sgw18k.png)
5. Run until get entry breakpoint
6. Search for string references


to be continued... this article to try first post on dev.to

Flag 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pmng48ni6okgv9bb07kf.png)
Flag : flag{M3x1c4nMl4lw4r3_pl3rro}
How to Train Devs to Disrupt Industries w/ Lessen's CTO Chris Bee
Tags: podcast, devops, management, career
Published: 2022-07-07 21:28:42

Not all dev orgs work in all situations. Especially if your dev org is looking to completely reshape and disrupt an entire industry.

That’s why we were so excited to talk to Chris Bee, CTO of Lessen.

Lessen is looking to change the way property owners hire vetted professionals for renovation, maintenance and turn services. That means so much of what their programmers are building hasn’t been built before.

Chris opened up about how the company trains and empowers developers to design and build things customers didn’t know they wanted. He also goes in depth about how to bring those new ideas to market when it can seem like the ground is shifting every minute.

{% spotify spotify:episode:3IFPsrJrAxv1y2Zy8lmfJe %}

## Episode Highlights Include:
* (1:35) Growing opportunity to solve less obvious problems
* (6:32) Engineering ride-alongs
* (13:53) Choosing a market to disrupt
* (23:13) [Chris'](https://www.chrisbee.com/writings) Discover/Design/Develop/Deploy model
* (29:27) Phased approach to building products and features
* (36:35) Having engineers talk to customers & vendors

## Engineering Insights before anyone else....
*The Weekly Interruption is a newsletter designed for engineering leaders, by engineering leaders. We get it. You're busy. So are we. That's why our newsletter is light, informative and oftentimes irreverent. No BS or fluff. Each week we deliver actionable advice to help make you - whether you're a CTO, VP of Engineering, team lead or IC  - a better leader.*

*It's also the best way to stay up-to-date on all things Dev Interrupted - from our podcast, to trending articles, [Interact](https://devinterrupted.com/event/interact/) & our [community Discord.](https://discord.com/invite/devinterrupted)* 

### [Get interrupted.](https://devinterrupted.com/subscribe/)

![Weekly Interruption](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jj1owca0068hk9f2gd11.png)
July 7th, 2022: What did you learn this week?
Tags: discuss, weeklyretro, weeklylearn
Published: 2022-07-07 20:53:14

It's that time of the week again. So wonderful devs, what did you learn this week? It could be programming tips, career advice etc.

![Image of the brain](https://media.giphy.com/media/ojmB7lOn3VUU8/giphy.gif)

Feel free to comment with what you learnt and/or reference your TIL post to give it some more exposure.

{%tag todayilearned %}

Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Brett Jordan</a> on <a href="https://unsplash.com/s/photos/learn?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Pokemon Simulator Beginner Game Project
Tags: python
Published: 2022-07-07 20:36:48

This is my first "game" I've made it's basically just a turn based pokemon battle game you can play with a friend. 

I'm sure there's things I could've done better and it's nothing too special but as part of my course I was told to make a blog post so here it is.

Of course feedback is always appreciated.

https://github.com/iamkevf/pokemon-python-vsc
Monads explained to my team — Part 2: Endofunctors
Tags: ruby, functional
Published: 2022-07-07 20:33:51

After talking about what monoids are in Part 1, and discovering that it was just a smart word for very simple things, let's discover the marvellous world of functors in this second part!

  
## Fancy words for simple concepts
Developers uses functors everyday unknowingly, so let's figure out what this is all about.

  
## `#map`

We all know `#map`, a method that we use and love as Rubyists.
It allows us to take a structure of any kind (in terms of Ruby, an `Enumerable`), and from within this structure, apply the same function to each of its elements.

```ruby
savings_in_€ = [24.30, 350.90, -105.00]

#Brexit!
savings_in_£ = savings_in_€.map { |amount| (amount * 0.85).round(2) }
#=> [20.66, 298.27, -89.25]

savings_in_£.map { |amount| "£#{amount}" }
#=> ["£20.66", "£298.27", "£-89.25"]
```

  
## The rules of `#map`

Of course, `#map` could be called anything else — the important part of this method is not its name, but the fact that it must follow some rules to be considered a real `map`!

Those are the two rules:
* Rule of identity
```ruby
any_array.map { |x| x } == any_array
```

* Rule of composition
```ruby
def multiply_by_two(x) = 2 * x
def add_three(x) = x + 3

a = [2, 5, 7].map { |x| multiply_by_two(add_three(x)) }
b = [2, 5, 7].map { |x| add_three(x) }
             .map { |x| multiply_by_two(x) }

a == b # [10, 16, 20]
```
  
## So, what about Functors?

A functor is:
* a structure that is `mapable`
* that is polymorphic (ie that can contain any type)

In Ruby, it means that:
* Arrays are functors
    * ✅ can map internal elements
    * ✅ respect map rules from above
* Hashes are not functors
    * ✅ can map internal elements
    * ❌ does not respect map rules

  
## And Endofunctors, then?

An endofunctor is a functor whose `#map` function will return a structure with the same type.

In Ruby, it means that Arrays are endofunctors
    * ✅ takes an `Array`, and returns an `Array`

  
## As a Rubyist, why do I care?

Functors, and more particularly endofunctors, allow for function composition and make it safe to chain any number of mapping:

```ruby
Array.map { |x| x * 17 }
     .map { |x| x / 3 }
     .map(&:round)
     .map(&:to_s)
```

  
## Ok, but for God's sake, what's the relevance with Monads?

Well, obviously, it's the definition of a monad!

![A monad is just a monoid in the category of endfunctors](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xv1z46c77exyckl5g21a.png)
 
But that's for the next article!
Is stepping down, a step down?
Tags: devjournal
Published: 2022-07-07 20:21:18

While there are dream jobs and great jobs, sometimes you get opportunities to grow somewhere else before you are "qualified" to chase those dream jobs when they appear. - However, what to do when the time comes? We never truly feel completely secure in what we do (unless you have fantastic experience and have been doing this since you were born), and our heart pumps faster... you know how it works.

In my opinion, we should ALWAYS strive for better, and from my point of view, sometimes, better doesn't always mean the one paying more in a bigger company with your own office and whatnot. - better, is one where you will be able to obtain experience where not many arrive or chose to follow. It means unique tools. It means maybe taking a lower level job for a "long run" reward. - This is something I enjoy doing. Perhaps I am wrong, but we'll only know when we go through it.
Rate my UI and UX
Tags: webdev, css, showdev, community
Published: 2022-07-07 20:12:32

Well hello again everyone!

My project, The TinkerTechLab has been slowly improving over the past few months, and I would love some more feedback on the project!

Last time I did this, I got some amazing suggestions and ideas that were implemented in one way or another.

So if you have some extra time (Even if its just 5 seconds), I would love to know your first impression, and any suggestions you may have!

(Oh, and for you dark mode people, that feature is coming soon, so don't worry!)

URL: [Tinkertechlab.com](https://tinkertechlab.com)
YouTube: [The TinkerTechLab - YouTube](https://www.youtube.com/channel/UCUEsZhAnRquTgbQrz9RGDUw)

<small>Oh, and check out [tinkertechlab.com/advertising](https://tinkertechlab.com/advertising) as well :)</small>
Top Node.js Projects to Sharpen Your Skills and Build Your Node.js Portfolio
Published: 2022-07-07 20:03:30

<!-- wp:paragraph -->
<p>Node.JS is a part of the famous MEAN stack used for web development purposes. An open-sourced server environment, Node is written on JavaScript and helps developers generate dynamically populated web pages and even communicate to the database and make any changes if required.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Node.JS is extremely fast, scalable, and lightweight – making it the perfect backend technology for today’s use cases. Its efficiency can be attributed to the frameworks’ non-blocking I/O characteristics, which makes it easily handle data-heavy workloads of different web applications.  </p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Read More: <strong><a href="https://www.google.com/url?sa=t&amp;source=web&amp;rct=j&amp;url=https://www.codelivly.com/nodejs-project-for-beginners/&amp;ved=2ahUKEwjejZSnyOf4AhWMnNgFHXU3CJUQtwJ6BAhFEAE&amp;usg=AOvVaw1LC_Y25wyupI6_tdH89kg1" target="_blank" rel="noreferrer noopener">Top Node.js Projects to Sharpen Your Skills and Build Your Node.js Portfolio </a></strong></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 id="h-5-skills-that-node-js-projects-can-help-you-practice">5 Skills That Node.js Projects Can Help You Practice</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In any project you work on, your priority should always be to keep getting better at what you do. This means honing the key skills that allow you to build high-performing apps. As you take on some of the Node.js projects below, these are the skills that you should be focusing on:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><strong>Full Stack Web Development. </strong>The projects below give you a chance to work on your front end and backend development skills. In the most advanced levels, you will rely on your knowledge of servers, databases, frameworks, and user interface (UI) design to build websites and mobile apps that function optimally.</li><li><strong>Database Management. </strong>All websites and mobile apps deal with data in one way or another. With Node.js, you can ensure that databases store, provide, and secure information correctly.</li><li><strong>RESTful API. </strong>Creating an <a href="https://careerkarma.com/blog/what-is-an-api/">API</a> is an essential part of the development process. Some of the projects on this list will challenge you to build stable RESTful APIs, an important skill that will help you succeed in this industry.</li><li><strong>Problem Solving Skills. </strong>As you work on some of the projects on this list, you will encounter plenty of problems that you will have to solve using your ingenuity and creativity as well as your analytical skills.</li><li><strong>App Security. </strong>For some of the apps you create, you will have to come up with security measures and protocols to safeguard critical data.</li></ul>
<!-- /wp:list -->
How to apply for AWS Community Builder Program?
Tags: awscommunitybuilder, awscloud, awsurdu, awscommunitypakistan
Published: 2022-07-07 19:24:28

**What is AWS Community Builder Program?**

The AWS Community Builders Program(CB) is a officially organized by AWS. The program supports AWS enthusiasts and other community members by providing:

- Technical mentorship
- Service reviews
- Exclusive networking opportunities
- AWS Branded Swags and more...

**Criteria:**

Anyone who is meeting below mention criteria can apply

- Any individual who is 18 years or older and passionate about building on AWS.
- AWS Community Builders program seeks applicants from all regions, demographics, and underrepresented communities.
- The AWS Community Builders program is for technical builders who create community contributions such as written/video content (blog posts, videos, webinars, tutorials, etc.) or organize technical communities that help other AWS builders to learn and build on AWS.

**Categories:**
 
You have to priorities two categories among these 

- Machine Learning
- Mobile and Web Apps
- Storage
- Containers
- Developer Tools
- Management, Governance and Migration
- Serverless
- Gravitron / Arm Development
- Data (Databases, Analytics, Blockchain)
- Security, Identity & Compliance
- Game Tech
- Networking and Content Delivery

**What you will get after becoming a CB?**

- AWS community builder branded Swag!
- AWS Promotional Credits
- Online training academy subscription
- Certification Exam Voucher
- AWS User Groups / Community help
- Mentoring / Coaching / Career Opportunities
- Exclusive Events 
- AWS Service Previews
- 3rd Party Benefits
- Network of like minded people

**How to apply - video tutorial**
[How to apply for an AWS Community Builder Program?](https://www.youtube.com/watch?v=R2BP09M-zuY&t=6s&ab_channel=EasyCloudComputing)
Data cleaning webinar: 07/13/2022 at 9:00AM PST
Tags: opensource, datascience
Published: 2022-07-07 19:11:13

Join our CEO & Co-founder, Tommy, as he reveals our new open-source data preparation tool!

Register: https://home.mlops.community/home/events/so-fresh-and-so-data-clean-2022-07-13

See you live next Wednesday, 07/13/2022 at 9:00 AM PST
Creative Marketing Ideas for Your Small Business
Published: 2022-07-07 19:08:24

It's not always easy for your small business to come up with [creative business growth ideas](https://thetechnostudiouk.com/digital-marketing-promotion-ideas/), especially with everything you need to keep in mind on a daily basis. That's why we've put together this list of ideas to help you create the next best marketing campaign for your brand. In this guide, we've rounded up 4 of the most creative marketing ideas for your business marketing plan, arranged in categories for easy navigation.

**Content Marketing and Social Media Idea**s

The first and most prevalent part is social media and content. Social media marketing and content marketing are two areas that get you very creative. Practically there is no limit to what you can do.

**Video Marketing Ideas**

Here are the video marketing ideas. If you've been following the videos - as you should - you've already tried some of them. But don't worry, we're sure there are some you haven't tried yet. As you expand your video marketing strategy, remember to create vertical videos for social media too!

Use Visme to create these videos for your creative marketing. You have the option to use templates in horizontal, square, and vertical formats as well as blank panels to work from scratch.

**Marketing and Communication Ideas**

Dealing with people is at the core of every marketing strategy, but in some cases it's even more direct. This section deals with marketing ideas related to communication between you and your customers. To be truly successful with these techniques, remember to be honest, unique, and original. Stay in touch with your brand messages throughout the process.

At your fingertips for many of these creative marketing ideas. Use our editor to create graphics for them, provide templates for collaborators, and easily link them to branding guidelines.

**Practical marketing ideas**

Last but not least, there is a category that goes beyond general digital marketing ideas and steps outside the box. Some of these ideas are simple and small, others are detailed and complex. Choose the option that fits your budget, but you might be surprised at how easy some of these things are.
JavaScript - Funções parte 3
Published: 2022-07-07 18:56:28

Vídeo novo!!! Canal crescendo!!!

Gostaria de agradecer todo mundo que está acompanhando essa série de tutoriais! Valeu mesmo.

Nesse vídeo continuo com o tema funções só que focado no conceito de parâmetros.

{% youtube ttBpec6VvuY %}
Why Coaching is a Great Learning and Work Resource for Developers
Published: 2022-07-07 18:33:29


Passionate software developers never stop learning and collaborating. The curiosity that comes with being a developer means solving problems quickly and more creatively and it means constant adaptation to new tech.

At some point in time, most developers will make a move into a more formal leadership role. It’s a tough transition, wondering if you can stay technical as a leader. And leaders are faced with new problems…..problems that involve sorting out conflict between staff, managing those who are under performing or can’t keep up with the pace of work, and trying to influence executives. 

Coaching is a problem-solving tool. It supports leaders who are looking for support to solve process problems within an organization and resolve personnel problems within their team which improves your day-to-day experience at work. 

**Some areas where coaching supports developers who are leaders are:
**
- Providing them with a time and space to discuss leadership challenges with a thinking partner who is objective
- Reduces the loneliness that comes with being alone at the top of team
- Rely less on your manager to develop solution
- Enhance your skills as a communicator which can elevate your career and your staff’s careers.
Code Challenge solve 🐝
Tags: css, html, design, challenge
Published: 2022-07-07 18:22:37

How to create this style css auto fech background image colour  

Reference link

https://www.bing.com/
@smpnjn @shrihari @shahriarwebdev 
@cssweekly  @htmlcodex  @htmlcss  @danilhtml
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/shmjf9p1dvac5z77353v.png)