teleren/devto huggingface dataset:
The Perl and Raku Conference 2021
Tags: perl, yapcna, tprcic, conference
Published: 2021-06-07 06:55:28

## General
It's once again this time of the year! :smile: 

[The Perl and Raku Conference (in the Cloud)](https://perlconference.us/tprc-2021-cloud/) is back!

It's happening tomorrow and you will be able to follow the talks on [YouTube](https://www.youtube.com/yapcna) but if you really want to join the fest, you have to pay [a small fee of 10$](https://tprc2021cic.sched.com/tickets?iframe=no) to receive the precious password to join the conference (I recommend to to this).

You will then be able to join thanks to [zoom](https://zoom.us/download)

## Links
- [Main page](https://perlconference.us/tprc-2021-cloud/): start page that contains all the links 
- [Schedule](https://perlconference.us/tprc-2021-cloud/schedule/): to see all talks and their descriptions
- [Wiki](https://github.com/perlconference/tprc-2021-cloud/wiki): where you can find infos about BOFs and more 

## Last year
Last year I enjoyed a lot the conference and wrote [this review](https://dev.to/thibaultduponchelle/my-tprcic-2020-review-1187), read it if you haven't already :grinning:

For the record, last year was announced **Perl 7** :tada:

## My talks
This year, I took a step to become a speaker :sunglasses:
 
I prepared 2 talks, first one will be a lightning talk that I called [**"My big year of GitHub actions"**](https://tprc2021cic.sched.com/event/jM3n/lightning-talks-day-1?iframe=no): I made so much GitHub workflows this year that I know a bit the limits (I used and abused a bit from this service). I came to know even some corner cases (or was pushed a little bit into them). I will tell you them, chronologically.

My second talk is called [**"Answering questions about CPAN that nobody asked"**](https://tprc2021cic.sched.com/event/jqLE/answering-questions-about-cpan-that-nobody-asked?iframe=no) and is about experiments around package managers, CPAN/PAUSE, EUMM/MB, dependencies and versioning. I will guide you through my tests and I assure it will be entertaining and lightweight :+1:
This one is longer and will also discuss a bit "general engineering practices" (applied to Perl ecosystem).

See you there (maybe?) :smiley:
What is .this?
Tags: javascript
Published: 2021-06-07 06:37:16

# Intro
I was quite interested in the keyword .this in javascript, through the weekend doing some research helped me understand why 

`.this`

is more than what it seems.

##What is .this

`.this`

Is a keyword that references another value most likely an object that represents the current 

`current execution context`

You might ask what is *current execution context*. Well, the current execution context means that .this inside a function references the object function at a given time. If you'd like to give it a try, go into your DEV tools and try out

`console.log(this)`

Now you should be able to see something like this,

`Window {window: Window, self: Window, document: document, name: "", location: Location, …}`.

What .this means here is the global object of the browser.

##.this in functions

Now things get super interesting when we create a function and repeat what we did in the browser with *console.log* but now inside the function, let's create a function to demonstrate.

```
function testingThis(){
 console.log(this)
}
testingThis();
```

Now you see we get the same thing, that's because our global context is still executed in the function. Now let's take the same function and use it as a property on an object.

```
function testingThis(){
 console.log(this)
}

const chromeBoi = {
 status: "cool",
    testingThis,
}

chromeBoi.testingThis();
```

Now this will give you the object of chrome boy In the calling of it. 

##This and classes 

Now the biggest question I had after going through all the documentation is how does .this work with classes? how does javascript know what *this* is and how to assign it. Now with classes, it a different story the way to understand how .this works with classes is to understand that every time we instantiate a new instance of the class, let's name our class *ChromeRules* when we instantiate it as so, 

```
c = new ChromeRules(someObject)

```

What we're doing here is we're creating a new object which in general will let us understand what this would be which is the object of the new instance of ChromeRules so if we had a function inside the class ChromeRules .this in this sense will be the object being passed in and will be called on the function being called on for example,

```
c.listName();

```

##Conclusion 

this search was a really good refresher going into a different language *react*, And knowing this is a big advantage.
Angular : How to add lightbox in your angular project just in 10 minutes?
Tags: angular, typescript, npm, webdev
Published: 2021-06-07 06:49:51


Demo -   
 ![Image](https://developersdiscussion.com/ext/dmzx/imageupload/files/951e8cfa730d10bcfe39262dc58328cb.png)  
  
**Step 1 - Install lightobox**  
Open your terminal and run below command -
```javascript
npm install --save ngx-lightbox
```

**Step 2 - Update your angular.json**
```javascript
{ "styles": ["./node_modules/ngx-lightbox/lightbox.css", ...],}
```

**Step 3 - Add Lightbox Module to your app.module.ts**  
```javascript
import { LightboxModule } from 'ngx-lightbox'; @NgModule({ imports: [LightboxModule]})
```

You can do the next steps in your choice of components but I am assuming I need to make lightbox in app.component.html  
  
**Step 4 - Add markup to html of your component**  
app.component.html
```javascript
<div *ngFor="let image of _albums; let i=index"> <img [src]="image.thumb" (click)="open(i)" /></div>
```

Step 5 - Add lightbox code to your component's ts file,  
app.component.ts

```javascript
import { Lightbox } from 'ngx-lightbox'; 

export class AppComponent { 
private _album: Array = []; 

constructor(private _lightbox: Lightbox) {
 for (let i = 1; i <= 4; i++) {
 const src = 'demo/img/image' + i + '.jpg'; const caption = 'Image ' + i + ' caption here'; 
 const thumb = 'demo/img/image' + i + '-thumb.jpg'; 
 const album = { src: src, caption: caption, thumb: thumb }; 
this._albums.push(album); 
} 
} 

open(index: number): void { // open lightbox 
this._lightbox.open(this._albums, index); 
} 

close(): void { // close lightbox programmatically 
this._lightbox.close(); 
}} 
```

<a href="https://www.buymeacoffee.com/rkycom" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>

With all that being said, I highly recommend you keep learning!

Thank you for reading this article. Please feel free to connect with me on [LinkedIn](https://www.linkedin.com/in/www-rajeshkumaryadav-com/) and [Twitter](https://twitter.com/rky_com).
F-strings in Python
Tags: python
Published: 2021-06-07 06:47:04

The other day I wrote an article about [Formatting strings in Python](https://daily-dev-tips.com/posts/formatting-strings-in-python/), and I got a couple of responses saying I should look into f-strings in Python.

F-strings are a more readable way to format strings.
And, they are faster!

## Using f-strings in Python

Although the format option we discussed in the previous article is not a bad way or not working way, it's just not the optimal way. It's easy to make mistakes and can be hard to read with multiple variables.

F-strings can help us with that.
To use an f-string, we must prefix an f to a string.

```python
f"yourstring"
```

I hear you think, why not just use a string, and yes, you would be right in this use case.

However, let's see how to pass variables to them and see the true power.

```python
name = "Chris"
age = 32
print(f"{name} is {age} years old")
# Chris is 32 years old
```

Way more accessible, since we already have the variables, to me, it's super clear what's happening and how we are using them.

Similar to variables, we can even invoke expressions.

```python
print(f"What is 5 x 5? {5 * 5}")
# What is 5 x 5? 25
```

Besides that, we could try to pass in a function even.

```python
def greet(name):
    return f"Hi there {name}"

name = "Chris"
print(f"{greet(name)}")
# Hi there Chris
```

With this, I want to thank everyone for introducing f-strings to me, and they will be my string formatting tool in the future 👍.

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Python Project: Create Snake Game Using Python
Tags: programming, python, productivity, beginners
Published: 2021-06-07 06:30:12

If you want to do a **python project** it can be anything. But **creating a snake game using python**, Then it will soo interesting as a python project.
We all have played this snake game on older mobile phones. Now we will **build this snake game using python completely from scratch**.

The **snake** in the **Snake game** is controlled using the four direction buttons relative to the direction it is headed in. 

Hi there 👋,

### Check out my recently made python projects here.
{% post https://dev.to/fahimkabir/15-python-projects-for-beginners-4j4f %}

For creating this snake game in python. I'm using the Tkinter library & turtle module for creating the game UI interface. Here I'm,
Importing Python Libraries - Starting To Code, 
Creating User Interface, 
Creating The Border(Danger Zone For the game), 
Creating Scoring System, 
Creating Snake, 
Creating Food, 
Creating Final Score, 
Defining Snake Movements, 
Binding Keyboard Shortcuts, 
Creating Main Loop / Functionalities, 
Solving Errors.

For this project, I have used these libraries,
▶️ Python 3.8
▶️ Pycharm (Code editor)
▶️ Tkinter Package
▶️ Turtle Package

### Python Projects | Create Snake Game Step By Step In Python For Beginners
{% youtube bzWzlXiavXs %}


You can use this to learn or for your portfolio.

**Feel free to visit my YouTube channel:
[@Tech2etc](www.youtube.com/tech2etc)**

**Follow me on Instagram where I'm sharing lots of useful resources!
[@fahimulkabir.chowdhury](https://www.instagram.com/fahimulkabir.chowdhury/) 😉**
Release 0.7.0 feels like 007
Tags: dokku, ledokku, heroku, javascript
Published: 2021-06-07 06:19:04

---
title: Release 0.7.0 feels like 007
author: Arturs Kirtovskis
published: true
author_title: Team Ledokku
author_url: https://twitter.com/Akirtovskis
author_image_url: https://avatars.githubusercontent.com/u/25903618?s=460&u=b6e76e88e2ae95040720e229a53fbdbbc22289c8&v=4
tags:
  [
    dokku,
    ledokku,
    heroku,
    javascript,
  ]
description: Meet Ledokku, amazing deployment UI built on top of Dokku
image: https://www.ledokku.com/img/twitterCardImage.png
hide_table_of_contents: false
canonical_url: https://www.ledokku.com/blog/2021/06/06/james-bond-release
---

![Ledokku-Repo-Setup](https://www.ledokku.com/img/githubRepoSetup.png)

### Release 0.7.0 feels like 007

The looks of the release name and the content seem to fit with the image of the well-known spy character. The New Ledokku version allows you to deploy apps in most programming languages straight from your Github repositories. Both private and public. It's a massive step forward for us and for all of you who were waiting for a smooth, cheap and self-hosted deployment platform with a beautiful UI.

<!--truncate-->

### Almost no manual configuration

With the help of Github apps, we have significantly reduced the amount and time that you have to spend doing all sorts of manual configuration. Now installation is just a single script that you need to run on your server and the rest of the functionality you can handle from Ledokku UI.
Apart from that, automatic redeployments for your Github projects will work out of the box, and you won't need to set up anything additional. Once you push changes to your main branch, the app will automatically be redeployed with 0 downtime.

### Revamped settings look

Just like James Bond liked slick cars and suits, we love to strive for the best UI possible. With the new release, you will see that we significantly improved the looks of the app settings section. Instead of previously clustered and overwhelming bloat of options in a single view, now we have three sub-sections: Port management, Domains, and Advanced.

### New landing page

Outside of all the massive addition of new app features, we have redesigned our landing page more minimalistic and straightforward. Just by visiting the landing page, it's almost immediately clear what we are doing, and it also means it has never been easier to share Ledokku with your developer friends.

### Shaping the future of deployments

We are here to stay and this, while big step, is just a beginning.

Take part in shaping the future and follow us on [**Twitter**](https://twitter.com/ledokku), join our [**Discord**](https://discord.gg/v76vY2YaKp) or open an issue on our [**Github**](https://github.com/ledokku/ledokku) repo. Any and all of the feedback will be highly appreciated.

Stay tuned and happy deployments.
21 Open Source Programs & Paid Virtual Internships You Can Apply to!! 💯
Tags: opensource, github, productivity, sideprojects
Published: 2021-06-07 06:12:22

1 Google Summer of Code (GSoC)
2 MLH Fellowship
3 Open Source Track Explorer
4 Educational Externship Track 
5 Google Season of Docs 
6 Outreachy
7 Season of KDE
8 Linux Foundation (LFN) Mentorship Program 
9 Community Bridge Mentorship Program (CNCF)
10 Open Mainframe Project 
11 Hacktober Fest by Digital Ocean
12 Foss Asia Codeheat 
13 Linux Kernel Mentorship Program 
14 Redox Summer of Code
15 Hyperledger Mentorship Program
16 Foss Asia Internship Program 
17 Open Summer of Code (OSoC) for Students
18 Alibaba Summer of Code
19 Free Software Foundation (FSF) Internship Program
20 Google Summer of Earth Engine (SoEE)
21 The Processing Foundation Fellowships  


#### Let's connect :
<ul class="social-links list-unstyled mt-4">
                                    
                                    <li><a href="https://github.com/keshavgbpecdelhi">GITHUB
                                            <ion-icon name="logo-github"></ion-icon>
                                        </a></li>
                                    <li><a href="https://www.linkedin.com/in/keshav-raturi/">Linkedin
                                            <ion-icon name="logo-linkedin"></ion-icon>
                                        </a></li>
                                    <li><a href="https://www.facebook.com/keshav.r.37454">Facebook
                                        <ion-icon name="logo-facebook"></ion-icon>
                                    </a></li>
                                    <li><a href="https://twitter.com/Keshav44483499">Twitter
                                            <ion-icon name="logo-twitter"></ion-icon>
                                        </a></li>
                                    <li><a href="https://www.instagram.com/Keshav44483499/">Instagram
                                        <ion-icon name="logo-instagram"></ion-icon>
                                        </a></li>
                                    <li><a href="https://dev.to/keshav44483499">Blogs
                                        <ion-icon name="logo-medium"></ion-icon>
                                        </a></li>
                                    <li><a href="https://www.youtube.com/channel/UCmcq3sQAsw8SCHSjuzkYkfw">Youtube
                                        <ion-icon name="logo-youtube"></ion-icon>
                                        </a></li>
                                </ul>
KQL
Published: 2021-06-07 06:10:52

**Get Computer Names & Agent Version**
Heartbeat | where tolower(Computer) matches regex "new-ser|lon-ser|ind-ser|ban-ser" 
| where TimeGenerated > now() - 2min 
| distinct Computer,Version
| sort by Computer asc
**Active Directory Group Audit(Global Security Group)**
SecurityEvent
| where EventID in (4728)
| where TargetAccount contains "Actual_Group_Name"
| project TimeGenerated, Modifier = Account, ModifiedObject = MemberName, GroupName = TargetAccount, Activity
**Get Heartbeats from a Server**
Heartbeat
| where Computer == "Actual_Server_FQDN"
**Get Failed Logon**
SecurityEvent
| where EventID == 4625
| where AccountType == 'User'
| where TimeGenerated > now() - 24hrs
| project TimeGenerated, Account, DomainController=Computer, IpAddress, LogonType, ClientHostName=WorkstationName, Activity, SubStatus
**Get Failed Logon for specific SAMID**
SecurityEvent
| where EventID == 4625
| where AccountType == 'User'
| where Account has 'bshwjt'
| where TimeGenerated > now() - 24hrs
| project TimeGenerated, Account, DomainController=Computer, IpAddress, LogonType, ClientHostName=WorkstationName, Activity, SubStatus
Understanding Kubernetes: part 43 – Init Containers
Tags: kubernetes, devops, docker, beginners
Published: 2021-06-07 06:04:17

---
title: Understanding Kubernetes: part 43 – Init Containers
published: true
description: Serie of sketchnotes about Kubernetes. Explaining in a visual way Kubernetes principles.
tags: Kubernetes, DevOps, Docker, beginners
series: Understanding Kubernetes in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wpb3lagwygjmn2g2yosr.jpg
---

Understanding Kubernetes can be difficult or time-consuming. In order to spread knowledges about Cloud technologies I started to create sketchnotes about Kubernetes. I think it could be a good way, more visual, to explain Kubernetes (and others technologies).

We continue the serie of Sketchnotes about Kubernetes, with an explanation about Init Containers.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wpb3lagwygjmn2g2yosr.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u8uchn6r14dxmkjew8vq.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d005gzlctxvx0c3syp7o.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/09w61wf29ptp2ksimekg.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jphuwxw5ywjf7q9yarns.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cox70kwcbwj89nc04ka4.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmie2gldhxzryycbdor9.jpg)

If you are interested, I published all the sketchnotes on Kubernetes (and new ones!) to make a "book" of 165 pages: ["Understanding Kubernetes in a visual way"](https://gumroad.com/aurelievache#uCxcr).

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).
Raw SQL vs Rails Queries
Tags: rails, ruby, sql, performance
Published: 2021-06-07 05:49:34

The key difference is that **ActiveRecord** lets you be more productive by using a **higher-level abstraction** which lets you write **less code**.

This abstraction comes at a cost and can lead to performance problems if you don't pay attention to the queries that ActiveRecord generates. **N + 1** queries can be a major problem here.

My Observation is if you don't know how to perform an operation with ActiveRecord it is often better to write a bit of SQL with a test backing it and go back and refactor later.

Alright, Let's make our hands dirty.

Here is the schema of our DB which comes handy in wrinting SQL queries as well as rails queries.
![Blog Schema](https://user-images.githubusercontent.com/40859181/120958657-ced37e00-c775-11eb-902c-75d9bde2b275.png)

**Example 1: A simple inner join.**

**RAW SQL:** 
``` select * from customers inner join votes on votes.customer_id = customers.id 
where customers.active = 1  ```

**Active Record:**
``` Customer.joins(:votes).where(active: true)  ```

**Example 2: Inner join with two tables**
**RAW SQL:**
 
``` select * from customers inner join posts on posts.customer_id = customers.id inner join comments on comments.post_id = posts.id where customers.active = 1 ```


**Active Record:**

``` Customer.joins(posts: :comments).where(customers: { active: true }) ```

Explanation: The amount of code written has been drastically reduced in case of active record.


**Example 3: Inner join with three tables.**

**RAW SQL:**
```select * from customers cst inner join posts pst on pst.customer_id = cst.id inner join comments cmt on cmt.post_id = pst.id inner join  votes v on v.comment_id = cmt.id where cst.active = 1 ```

**Active Record:**
 ``` Customer.joins(posts: [comments: :votes]).where(customers: {active: true}) ```

PS: if you want to get the schema or the rails code you can find the repository [here](https://github.com/SamalaSumanth0262/SQL_vs_Rails)
	
Hope this read gives you little idea of where to use SQL and rails queries. Please feel free add your thoughts or suggestions :D
Manual de Dicas SAP 
Tags: sap, dicas, fico, financas
Published: 2021-06-07 05:27:31

Segue o link do meu manual com dicas SAP. São quase 14 anos de anotações. Tem bastante coisa de Finanças mas tem de outros módulos também. 
Em português!!! 

https://github.com/arcturus25/Dicas_SAP_ECC_PT
What is a proper way to create a type for Vue props
Tags: typescript, types, vue, props
Published: 2021-06-07 05:26:48

I'm trying to create a custom type for my prop in Vue js, I've created a types folder and added it in the tsconfig.typeRoots the IntelliSense and all the other things work correctly, no issues at compile time but when I visit that component, I get an error that Car is not defined but I have already defined it and it works at other places but after checking official documentation I got to know that prop expects a constructor so I redefined the type to declare class Car and added a constructor prototype but again the same issue.

Here are the files: **car component**
```
<script lang="ts">
import Vue from "vue";

export default Vue.extend({
  name: "the-car",
  props: {
    car: {
      required: true,
      type: Car,
    },
  },
});
</script>
```
the **`types/common/index.d.ts`** declaration file:
```
declare class Car {
    name: String;
    image: String;
    kms: Number;
    gears: String;
    desc: String;
    fuel: String;
    engine: String;
    price: Number;
    constructor(name: String, image: String, kms: Number, gears: String, desc: String, fuel: String, engine: String, price: Number);
}
```

{% stackoverflow 67865654 %}
An Introduction to Sorting Algorithms in JavaScript
Tags: quicksort, datastructures, algorithms, sortingalgorithms
Published: 2021-07-10 20:10:28

---
title: An Introduction to Sorting Algorithms in JavaScript
published: true
date: 2021-06-07 04:57:52 UTC
tags: quicksort,datastructures,algorithms,sortingalgorithms
canonical_url: https://medium.com/devtechtoday/an-introduction-to-sorting-algorithms-in-javascript-a026ad84371f
---

[![](https://cdn-images-1.medium.com/max/2600/0*oSREOh6Sv4FV07FK)](https://medium.com/devtechtoday/an-introduction-to-sorting-algorithms-in-javascript-a026ad84371f?source=rss-be00f566a88f------2)

A quick overview of some sorting algorithms, their implementations, and some of their trade-offs to better prepare you for interviews.

[Continue reading on DevTechToday »](https://medium.com/devtechtoday/an-introduction-to-sorting-algorithms-in-javascript-a026ad84371f?source=rss-be00f566a88f------2)
모의해킹, 취약점점검은 THEN00N
Tags: hacking
Published: 2021-06-07 04:34:55

모의해킹, 취약점점검, 해킹사고 대응 전문기업
화이트해커가 직접 모의해킹을 진행하여 보안사고 사전에 차단

https://blog.naver.com/thenoon24
https://blog.naver.com/then00n
https://blog.naver.com/then00n
https://then00n.wixsite.com/website
How To Get IMDB ID Of Movies Using Python
Published: 2021-06-07 04:20:22

How To Make a Python Script That Give Us IMDB ID Using Python 

The Module We are  Going To Use Is IMDbPY

pip install IMDbPY

use it in CMD or Shell 

Document Of IMDbPY -https://imdbpy.readthedocs.io/en/latest/

The github is - https://github.com/prempatel9224/Get-Moives-IMDB-ID-using-python


  
import imdb
name = 'Go Goa Gone'
ia = imdb.IMDb()
search = ia.search_movie(name)
s = search
open('info.txt', 'w').write(str(search))
text = open('info.txt', 'r')
idn = text.read()
id = idn[11:18]
print(id)