teleren/devto huggingface dataset:
Getting the Respect Your Work Deserves: A Live Workshop w/ Engineering Coach Lena Reinhard
Tags: career, leadership, podcast, womenintech
Published: 2022-06-16 22:26:33

The last thing anyone who does great work should be doing is having to take time out from doing great work to promote it to their higher-ups. Unfortunately, until the person you report to achieves omnipotence, you’re going to have to make sure their perception of your work lines up with the quality.

In fact, when we asked our community what issue they would want professional coaching on, it was this: How to improve the impression of your work.

With the help of the great [Lena Reinhard](https://lenareinhard.com/), engineering & executive coach, we’re giving a practical solution to this problem.

Designed as a real-time workshop where you should be thinking about the questions and answering them yourself, this was a game-changing conversation for us and hopefully a game-changing way for your work to get the respect it deserves.

{% spotify spotify:episode:3COlLDxL6YGgcenjtye0dx %}
### Episode Highlights Include:
* (6:51) How others perceive your work
* (15:59) Subtle ways perception is created
* (19:12) Perceptions within our control
* (26:48) Live workshop starts
* (37:18) Coaching lesson takeaways
* (50:05) Why visibility matters in a distributed org

### 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/)***

![The Weekly Interruption by Dev Interrupted](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x828fxo5iuyor5t5r4ap.png)
Day 575 : Make It Clear
Tags: code, coding, hiphop, lifelongdev
Published: 2022-06-16 22:15:55

_liner notes_:
- Professional : The lightning talk I recorded while in Atlanta for a conference, got played at another conference happening in Amsterdam this morning. I hung out in the Discord room if anyone had any questions. Then I had a few meetings and worked on my tutorial video. Pretty much it. haha.

- Personal : Finally got the animation transition working the way I want with Svelte. I think I had to actually remove the element so that it could "transform" into the new element. Still kind of cloudy on the reasoning, but it works! I'm sure the more I work on the project, it will make it clear. Next, I'll work on the navigation. I want it to be able to be navigated with a keyboard. Thinking of having it work like tabs where you can press the arrows to go between events and then hit tab when you want to dive deeper into a specific event. I watched an episode of an anime series called "Spy x Family". Seems cool. I'll check it out more.

![Looking up at a mountain range in Gilgit Baltistan, Pakistan with a house on a mountaintop with a snow covered mountain in the distance.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbqkym8pwxx7rqmujpoc.jpg)

Going to do some more work on my tutorial video. Listen to some tracks for the radio show. Work on the navigation for my side project. Also, I've been watching a person on YouTube that was playing this decision based game. A lot of the characters didn't survive when they played it initially, but then they started watching a movie mode where everyone survives. I think they are going to finish watching it tonight. I may have that on in the background while I work on stuff. I always like to watch people play a game instead of playing it myself. haha I think it's because while they are playing, I can work on something and when they are done, I'm done. I'm the type of person that if I play a game, I'll keep playing the game. haha I may watch the new episode of "Ms Marvel".  

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube lC2m86jpbYs %}
A simple RPG game - Part 2- a new look for my project.
Tags: javascript, css, html
Published: 2022-06-16 18:05:46

In the last article, I described the idea for my **RPG game**. However, I'm not entirely satisfied with the result, that's why I want to improve it by rewriting it, giving more functionalities, refreshing visualization(look and feel) and spending more time on good code practices(eg.: functions naming, splitting into modules/classes, etc).

I decided on **pixel art**, because this type of art seems to be simple and suitable for the type of game I'm creating. Besides, I like it :-)

You can see the new graphics below. I used different **color palettes** and I am finally satisfied with the overall result. Let me know what you think.

![RPG game](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n3t2ztafaz42tecu04ja.png)

Next steps would be to design a few different game levels and how users can interact with it.

That's it for now. Just a short update. I will keep you posted on my progress on the project.


If you have any **suggestions**, please write a comment.

Thanks for reading!
Static Code analysis in Laravel with Larastan
Tags: webdev, laravel, tutorial
Published: 2022-06-16 22:04:58

---
title: Static Code analysis in Laravel with Larastan
published: true
description: 
tags: webdev, laravel, tutorial
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---


`PHPStan` focuses on finding errors in your code. It catches whole classes of bugs even before you write tests for the code.

- Adds static typing to Laravel to improve developer productivity and code quality
- Supports most of Laravel's beautiful magic
- Discovers bugs in your code

![larastan logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rgco3nwppailrwq9tr8.png)
 
 

Larastan is a `phpstan/phpstan` wrapper for Laravel. Discover bugs in your code without running it. 

## Installation

```sh
composer require nunomaduro/larastan:^2.0 --dev
```

## Configure

```sh
touch phpstan.neon
```

```yaml
includes:
    - ./vendor/nunomaduro/larastan/extension.neon

parameters:

    paths:
        - app

    # The level 9 is the highest level
    level: 5

    ignoreErrors:

    excludePaths:
        - ./*/*/FileToBeExcluded.php

    checkMissingIterableValueType: false
```

## Add `format` script

Update `composer.json`, add a `format` script 

```json
"scripts": {
  "analyse": "vendor/bin/phpstan analyse",
    "post-autoload-dump": [
        "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
        "@php artisan package:discover --ansi"
    ],
}
```

## More 

### Ignoring errors
Ignoring a specific error can be done either with a php comment or in the configuration file:

```php
// @phpstan-ignore-next-line
$test->badMethod();

$test->badMethod(); // @phpstan-ignore-line
```
When ignoring errors in PHPStan's configuration file, they are ignored by writing a regex based on error messages:

file: `phpstan.neon`
```yaml
parameters:
    ignoreErrors:
        - '#Call to an undefined method .*badMethod\(\)#'
```
Run `analyse`
```sh
composer analyse
```

![analyse terminal logs](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e2iu9dby817gnuhup371.png)
 


## Further _(Optional)_

Try levelling up the stan level from 5 to 6 and fix the code

```yaml
# from
level: 5
# to
level: 6
```

Run `analyse`
```sh
composer analyse
```

Happy Coding!
H-Index
Tags: leetcode, dsa, theabbie
Published: 2022-06-16 22:00:47

Given an array of integers `citations` where `citations[i]` is the number of citations a researcher received for their `ith` paper, return compute the researcher's `h`**\-index**.

According to the [definition of h-index on Wikipedia](https://en.wikipedia.org/wiki/H-index): A scientist has an index `h` if `h` of their `n` papers have at least `h` citations each, and the other `n − h` papers have no more than `h` citations each.

If there are several possible values for `h`, the maximum one is taken as the `h`**\-index**.

**Example 1:**

**Input:** citations = \[3,0,6,1,5\]
**Output:** 3
**Explanation:** \[3,0,6,1,5\] means the researcher has 5 papers in total and each of them had received 3, 0, 6, 1, 5 citations respectively.
Since the researcher has 3 papers with at least 3 citations each and the remaining two with no more than 3 citations each, their h-index is 3.

**Example 2:**

**Input:** citations = \[1,3,1\]
**Output:** 1

**Constraints:**

*   `n == citations.length`
*   `1 <= n <= 5000`
*   `0 <= citations[i] <= 1000`

**SOLUTION:**

    import bisect
    
    class Solution:
        def hIndex(self, citations: List[int]) -> int:
            n = len(citations)
            citations.sort()
            for h in range(n, -1, -1):
                if h <= n - bisect.bisect_left(citations, h):
                    return h
Embeddable URLs Available
Tags: unrealengine, pixelstreaming, metaverse, gamedev
Published: 2022-06-16 21:34:49

---
title: Embeddable URLs Available
published: true
description: Embed Unreal Engine Projects into your own website.
tags: unrealengine, pixelstreaming, metaverse, gamedev
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xx6c23noe679l5dij2hw.jpeg
canonical_url: https://make.live/blog/embeddable-unreal-engine-project-urls
---
Hot on the heels of our new launcher being released we are continuing to improve and roll out new customisation features. We can now announce that we have released the ability to embed your projects into your own website, blog or even Unreal Engine community posts.

In order to embed your projects you can simply use the following snippet. All you need to do is set the **src** attribute to be your project url with the addition of the suffix **?embed=true**.

For ease of implementation here is a snippet that can be copy and pasted into your own HTML / web applications:

```html
<iframe
  width="960"
  height="540"
  src="https://launch.make.live/make-live/pirate-island?embed=true"
  title="Make Live Player"
  frameborder="0"
  allowfullscreen></iframe>
```

You can see an example of the above code in the [blog post on our website](https://make.live/blog/embeddable-unreal-engine-project-urls) as Dev.to doesn't support our `iframe` yet.

This gives you a fully playable embedded Make Live project that allows everyone to start showcasing Unreal Engine Pixel Streaming applications anywhere you like.

As we look to improve and roll out even more customisation options and toolkits to bridge communication from the browser to Unreal Engine we would love to hear your feedback.

You can always find us on Live Chat or Twitter over at [@MakeLiveHQ](https://twitter.com/makelivehq).
Check if Numbers Are Ascending in a Sentence
Tags: leetcode, dsa, theabbie
Published: 2022-06-16 21:30:38

A sentence is a list of **tokens** separated by a **single** space with no leading or trailing spaces. Every token is either a **positive number** consisting of digits `0-9` with no leading zeros, or a **word** consisting of lowercase English letters.

*   For example, `"a puppy has 2 eyes 4 legs"` is a sentence with seven tokens: `"2"` and `"4"` are numbers and the other tokens such as `"puppy"` are words.

Given a string `s` representing a sentence, you need to check if **all** the numbers in `s` are **strictly increasing** from left to right (i.e., other than the last number, **each** number is **strictly smaller** than the number on its **right** in `s`).

Return `true` _if so, or_ `false` _otherwise_.

**Example 1:**

![example-1](https://assets.leetcode.com/uploads/2021/09/30/example1.png)

**Input:** s = "1 box has 3 blue 4 red 6 green and 12 yellow marbles"
**Output:** true
**Explanation:** The numbers in s are: 1, 3, 4, 6, 12.
They are strictly increasing from left to right: 1 < 3 < 4 < 6 < 12.

**Example 2:**

**Input:** s = "hello world 5 x 5"
**Output:** false
**Explanation:** The numbers in s are: **5**, **5**. They are not strictly increasing.

**Example 3:**

![example-3](https://assets.leetcode.com/uploads/2021/09/30/example3.png)

**Input:** s = "sunset is at 7 51 pm overnight lows will be in the low 50 and 60 s"
**Output:** false
**Explanation:** The numbers in s are: 7, **51**, **50**, 60. They are not strictly increasing.

**Constraints:**

*   `3 <= s.length <= 200`
*   `s` consists of lowercase English letters, spaces, and digits from `0` to `9`, inclusive.
*   The number of tokens in `s` is between `2` and `100`, inclusive.
*   The tokens in `s` are separated by a single space.
*   There are at least **two** numbers in `s`.
*   Each number in `s` is a **positive** number **less** than `100`, with no leading zeros.
*   `s` contains no leading or trailing spaces.

**SOLUTION:**

    class Solution:
        def areNumbersAscending(self, s: str) -> bool:
            s += " "
            token = ""
            curr = None
            for c in s:
                if c == " ":
                    if token.isdigit():
                        if curr:
                            if int(token) <= curr:
                                return False
                        curr = int(token)
                    token = ""
                else:
                    token += c
            return True
dataTables percentage bar renderer plugin v1.1
Tags: codepen
Published: 2022-06-16 21:28:13

<p>Version 1.1 of my renderer plugin for dataTables that turns a percentage value into a percentage bar. Better styling applied and the text is always centered now. This renderer plugin is now released on the official datatables page. <a href="https://github.com/DataTables/Plugins/tree/master/dataRender" target="_blank">https://github.com/DataTables/Plugins/tree/master/dataRender</a></p>

{% codepen https://codepen.io/harunpehlivan/pen/OJQqZNV %}
Login page with Tailwind CSS
Tags: tailwindcss, webdev, html, css
Published: 2022-06-16 21:17:47

In this tutorial video tutorial we create a Login / Sign in page with Tailwind CSS. We use instagram colors. We create a very modern looking login page.

Subscribe please! :)

**_Youtube video_**

{% embed https://www.youtube.com/watch?v=gkYersNuoP8 %}
JavaScript, AI, IBM: Opemipo's journey
Tags: opensource, ai, contribute, togetherweopensource
Published: 2022-06-16 21:00:24

Thank you, Opemipo Disu (@coderoflagos) for an amazing session we have had today.

Opemipo is a 16 y.o. Developer • IBM Champion • Keynote speaker • JAMstack Lagos Lead • Developer Advocate 🥑. He does so many things :)

Well, even the best of us can benefit from a friend’s advice.

I started the mentorship session trying to understand what Opemipo really likes. 
Initially he said he likes Jamstack. However, the longer we talked, the more clear it became to me that Opemipo is really into IBM Watson.

Well, that is not a bad choice, not a bad choice at all! AI is a big thing, NOW.

So, how can we start? What can Opemipo do today to increase his chances of getting into AI part of IT, ideally in an IBM level company?

OpenSource to the rescue.

A quick google-ing showed us a repo called “IBM Watson APIs”. The repo has some forks, some stars and it is fresh. Of course, I would prefer to have thousands of forks and stars, but we are talking of a niche product. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8nje7w0x3dx5e6sfefjw.png)
 


As an alternative, we could have chosen the node-sdk project of IBM Watson APIs, but it does not look to be updated too often, however it still might be a good choice.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dqcorfpp05li766pbhdw.png)
 

What comes next? Of course, a contribution. 
As always, we started with a README.md :)

My autism probably helped me again to find a missing “.” symbol.
Well, whatever helps :)))
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/28g79qfiveiivsfzk2xa.png)
 


So now, I am a contributor to the “watson-developer-cloud”, really.

What is more important, now I have a better of understanding of how I can help people to get into the world of AI and OpenSource.

What’s next?

Well, next task for Opemipo would be to find 2-3 promising AI OpenSource projects from other companies.

Will it be enough?

Of course not.
But when Opemipo starts writing daily posts about the OpenSource projects he takes part in - the difference will be massive.

Remember, we are speaking about Opemipo, who has already achieved a lot in the world of IT.

Imagine, how much can a person from a non-IT background achieve.

Stars are no limit for OpenSource.
What should I visit in your country?
Tags: discuss
Published: 2022-06-16 20:58:29

Hey everyone! I'm a Software Engineer and I love to travel. For the last year I mostly traveled around my own country. I live in Belarus for all my life and I've visited all the major cities and I'd love to share some of my thoughts about what I'd recommend to visit.

In my opinion, the most beautiful city of my country is Hrodna, even though it's not the capital. It's so nice city, with cool old streets and amazing scenery. This city have a biggest shopping mall of the entire country. Right! Even the capital doesn't have something like this.

The next city will be a Brest and it's small city, but I feel pretty comfortable to be there from time to time, it has Fortress.

In the capital of the Belarus, Minsk, I think I've been to a lot of places, but the only place I love a lot is Lavka. It's a place where a lot of Car meets happen and as I love cars, it's so cool place for me.

Tell me something about your country and what should I visit?

P.S. Next month I'm moving to Poland and I'm going to learn this country as well 😍
Stop thinking about learning curve
Tags: beginners, programming, career, writing
Published: 2022-06-16 20:53:25

Why? Because it doesn't care.

You don't need to prepare to learn something. You need more practice and less overthinking. Learning is not linear, and you will not get expected results when you start something.

Read ["Study Backwards"](https://sibelius.substack.com/p/study-backwards). You should not start with the technology.

### What does Learning Curve mean?

Is a term to define a curve of learning based on what you know and don't know. Example: I want to learn ReactJS, but I don't have ANY knowledge about JS. My curve will be high.

But people lose more time than needed thinking about that. And I will explain why.

### What does "learning is not linear" mean?

At school, we learn how to learn wrongly. The system made you think that to know something you need to follow a step-by-step and that this is linear, like a movie or game. And this is not true.

In real life, you probably will need to learn something faster than you can and learn by demand. You won't know the "dependencies" of learning when getting some tasks at your work and don't have a teacher to guide you. At school, you know in advance the content that will be in your test, but this happens only at school.

Example: want to code smart contracts in Rust? Ok, try to start coding. If you slice, probably will think "to code a smart contract in Rust, first I need to learn and know a lot about Rust." And NO, this is wrong. This line of thought creates a snowball and makes you give up. Want to learn about smart contracts in Rust? Ok, code your smart contract, and you will know what you need of Rust to code your project.

In the real world, you shouldn't ever wait for linear things. Is chaotic.
គោលការណ៍មួយដែលធ្វើឲ្យកូដខ្ញុំប្រសើរឡើង
Published: 2022-06-16 20:43:20

---
title: គោលការណ៍មួយដែលធ្វើឲ្យកូដខ្ញុំប្រសើរឡើង
published: true
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

សួស្ដីទាំងអស់គ្នា!​ ថ្ងៃនេះខ្ញុំចង់លើករឿងមួយដែលខ្ញុំគិតថាវាបានជួយឲ្យជំនាញសរសេរកូដរបស់ខ្ញុំប្រសើរឡើង ហើយខ្ញុំគិតថាវាអាចនឹងជាប្រយោជន៍ដល់គ្នាយើងផងដែរ។

![បញ្ហាស្មុកស្មាញ](https://miro.medium.com/max/1400/1*BuXXmxkX_lyVRS8pc8UFIw.jpeg)

<div class="text-sm text-center  italic mb-6">រូបភាពពី <a href="https://pixabay.com/users/geralt-9301?utm_source=Daseveny&utm_medium=referral" target="_blank">Gerd Altmann</a> ក្នុង <a href="https://pixabay.com?utm_source=Daseveny&utm_medium=referral" target="_blank">Pixabay</a>.</div>

ទាំងអស់គ្នាដឹងហើយថាពេលសរសេរកូដ ជៀសមិនផុតទេយើងនឹងជួបបញ្ហាស្មុកស្មាញជាច្រើន។ ជាឧទាហរណ៍ពេលយើងធ្វើមុខងារមួយ យើងតែងតែប្រើ OSS ជាទម្រង់ Package ក្តី ឫជាកូដចម្លងមកដោយផ្ទាល់។ ជាទូទៅយើងជឿជាក់ថាវានឹងដំណើរការល្អដោយើងមិនចាំបាច់យល់លម្អិតពីវាទេ (Abstraction)។ បើសិនជាវាដើរ ល្អណាស់មុខងារហ្នឹងមួយហើយស្រេចមិនចាំបាច់ចំណាយពេលច្រើន ហើយមិនចាំបាច់សរសេរខ្លួងឯង។

ប៉ុន្តែវាមិនបែបហ្នឹងរហូតទេ វាអាចនឹងដើរហើយតែមិនទាន់ដូចអ្វីដែលយើងចង់បាននៅឡើយ ឬក៏យើងចង់កែវាដោយប្រើផ្នែកខ្លះប៉ុណ្ណោះដើម្បីឲ្យចេញមកដូចអ្វីដែលយើងចង់បាន។ ពេលហ្នឹងហើយដែលយើងជួបបញ្ហា។ កូដដែលចម្លងមក ឫ Package ដែលយើងប្រើភាគច្រើនសរសេរមកពិបាកយល់មែនទែន។ ដើម្បីអាចកែផ្នែកណាមួយបាន យើងត្រូវយល់ផ្នែកលម្អិតសិន។

ចំណុចនេះហើយដែលខ្ញុំតែងតែប្រើគោលការណ៍មួយគេហៅវាថា First Principles Reasoning។ ខ្ញុំបានលឺពីគោលការណ៍នេះដំបូងក្នុងកិច្ចសម្ភាសន៍រវាងលោក Chris Anderson និងលោក Elon Musk កាលពីឆ្នាំ 2013។

លោក Elon Musk បានពន្យល់ថា៖

> Well, I do think there is a good framework of thinking. It’s Physics. You know, the sort of first principles reasoning. Generally, there are — what I mean by that is — boil things down to their fundamental truths and reason up from there as opposed to reasoning by analogy. Through most of our life, we get through life by reasoning by analogy, which essentially means kinda copying what other people do with slight variations. And you have to do that. Otherwise, mentally, you won’t be able to get through the day. But when you want to do something new, you have to apply the Physics approach. Physics is really sort of figuring out how to discover new things that are counterintuitive, like quantum mechanics.

បើយើងពន្យល់បែបខ្លីៗ គាត់ចង់បានន័យថាបើរឿងហ្នឹងវាស្មុកស្មាញពិបាកយល់យើងត្រូវបំបែកវាជាផ្នែកតូចៗដែលយើងអាចយល់វាបាន ហើយចាប់ផ្តើមផ្គុំវាបញ្ចូលគ្នាឡើងវិញ នោះយើងនឹងយល់ ហើយអាចប្រើវាដើម្បីបង្កើតអ្វីថ្មីៗដែលយើងចង់ធ្វើបានហើយ។

នេះហើយជាគោលការណ៍ដែលខ្ញុំតែងតែយកមកប្រើ។ ខ្ញុំនឹងព្យាយាមយល់នៅផ្នែកតូចៗនៃកូដនោះ ពេលបានយល់ល្មមគួរសមហើយ ខ្ញុំនឹងបូកវាបញ្វូលគ្នាចេញមកជាកូដទាំងមូលវិញ ពេលនោះហើយដែលខ្ញុំអាចកែរវា ឫក៏ប្រើវាទៅតម្រូវការបាន។ ខ្ញុំគិតថាការគិតបែបនេះវាសំខាន់ ហើយវាបានជួយឲ្យខ្ញុំក្លាយជាវិស្វរករសូហ្វវែរ៍ល្អជាងមុនមួយកម្រិតទៀតជារឿយៗ។

---

មើលកិច្ចសម្ភាសន៍លោក Chris Anderson និងលោក Elon Musk នៅ TED Talks កាលពីឆ្នាំ 2013៖ https://www.youtube.com/embed/IgKWPdJWuBQ?start=1095