teleren/devto huggingface dataset:
Interview with Kenneth Reitz, Pipenv & Requests libraries author
Tags: python, writing, webdev, programming
Published: 2021-01-15 16:08:22

Kenneth Reitz is a well-known software engineer, international keynote speaker, open-source advocate, who also focuses on photography and music production. He is well known for his many open-source projects, specifically Requests “simple, yet elegant HTTP library” and Pipenv Python Development Workflow for Humans. We are excited to have interviewed Kenneth!

[Read the full interview with Kenneth](https://evrone.com/kenneth-reitz-interview) where he talks about the top issues Python developers face while scaling applications, shares his thoughts on async / await paradigm in Python, speaks about his project PyTheory, and the “natural affinity” for software development.
Day 15 - Get Maximum in Generated Array
Tags: leetcode, python, challenge
Published: 2021-01-15 16:05:24

## The Problem

>You are given an integer `n`. An array `nums` of length `n + 1` is generated in the following way:

* `nums[0] = 0`
* `nums[1] = 1`
* `nums[2 * i] = nums[I]` when `2 <= 2 * i <= n`
* `nums[2 * i + 1] = nums[i] + nums[i + 1]` when `2 <= 2 * i + 1 <= n`

Return the maximum integer in the array `nums`​​​.

__Example 1:__

```
Input: n = 7
Output: 3
Explanation: According to the given rules:
  nums[0] = 0
  nums[1] = 1
  nums[(1 * 2) = 2] = nums[1] = 1
  nums[(1 * 2) + 1 = 3] = nums[1] + nums[2] = 1 + 1 = 2
  nums[(2 * 2) = 4] = nums[2] = 1
  nums[(2 * 2) + 1 = 5] = nums[2] + nums[3] = 1 + 2 = 3
  nums[(3 * 2) = 6] = nums[3] = 2
  nums[(3 * 2) + 1 = 7] = nums[3] + nums[4] = 2 + 1 = 3
Hence, nums = [0,1,1,2,1,3,2,3], and the maximum is 3.
```

__Example 2:__

```
Input: n = 2
Output: 1
Explanation: According to the given rules, the maximum between nums[0], nums[1], and nums[2] is 1.
```

__Example 3:__

```
Input: n = 3
Output: 2
Explanation: According to the given rules, the maximum between nums[0], nums[1], nums[2], and nums[3] is 2.
```

__Constraints:__

* `0 <= n <= 100`


## My Tests

```python
import pytest
from .Day14_GetMaximumInGeneratedArray import Solution

s = Solution()


@pytest.mark.parametrize(
    "n,expected",
    [
        (7, 3),
        (2, 1),
        (3, 2),
        (0, 0),
    ],
)
def test_get_maximum_generated(n, expected):
    assert s.getMaximumGenerated(n) == expected
```

## My Solution

```python
class Solution:
    def getMaximumGenerated(self, n: int) -> int:
        l = n + 1
        if n == 0:
            return 0
        nums = [0] * l
        nums[1] = 1
        current_max = 1

        for i in range(1, l):
            x = 2 * i
            if x > 1 and x <= n:
                nums[x] = nums[i]
            if x + 1 > 1 and x + 1 <= n:
                nums[x + 1] = nums[i] + nums[i + 1]
            current_max = max(current_max, nums[i])

        return current_max
```

## Analysis

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zr2gj4ye8ypdj3rw7f8z.png)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/7tgci6qrpn1elro1iv68.png)

## My Commentary

This one was probably the easiest yet. I just followed the instructions in the description. I am sure there's a lot of optimisation I could have done but leaving this one here for today.
Understanding Conditional Statements in JavaScript
Tags: codenewbie, javascript
Published: 2021-01-15 16:04:48

Conditional statements execute specific actions from a code depending on whether the result of the code is true or false.

This means if a condition is true, a specific code runs and if false, another code runs.

## If statement

The 'if' statement runs a specified code segment if the given result is ''true.''

This implies that the code block will be ignored in the case of a false result, and the code will move on to the next section.

```
let location = "outside";

if (location === "outside") {
  console.log("Wear your nose mask! 😷");
} 

//Output: Wear your nose mask! 😷
```

## Else statement

The 'else' statement is written after the if statement and executes the code if the result of the given condition is 'false'.

```
let location = "inside";

if (location === "outside") {
  console.log("Wear your nose mask! 😷");
} else {
  console.log("I don't need a nose mask 😃");
}

//Output: I don't need a nose mask 😃
```

## Else if statement

The 'else if' specifies another condition if the first condition is not true. They are used to add more conditions to an if/else statement.

```
let location = "inside";


if (location === "outside") {
  console.log("Wear your nose mask! 😷");
} else if (location === "inside") {
  console.log("I don't need a nose mask 😃");
} else {
  console.log("Always protect yourself");
}

//Output: I don't need a nose mask 😃
```

## Switch-case statement

This is a really cool way to execute different sets of statements based on the value of a variable. It is a neater version of multiple If-Else-If blocks.

A break is used between the cases & the default case gets evaluated when none of the cases are true

```
let location = "my room";


switch (location) {
  case "outside":
    console.log("Wear your nose mask!");
    break;
  case "my room":
    console.log("Yaay, I can relax 💆");
    break;
  default:
    console.log("Always protect yourself!");
}


//Output: Yaay, I can relax 💆
```

## Ternary Operator

The ternary operator is a shorthand syntax for an if/else statement.

The first expression after the `?` executes when the condition evaluates to true, and the second expression after `:` executes when the condition evaluates to false.

```
const location = "outside";

location === "outside"
  ? console.log("Wear your nose mask! 😷")
  : console.log("Always protect yourself!");

Output: Wear your nose mask! 😷
```


### Thanks for reading. I hope you learned a thing or two. Which of these conditionals do you use?
Enough JavaScript to get you Started : #9 Array
Tags: javascript, 100daysofcode, webdev, beginners
Published: 2021-01-15 16:04:45

### The definition resides in usage of Array
👉 imagine someone gave you a definition which says store all the fruits and display them

👉 **Idea 1 (foolish way to manage things)** : try to create 30 to 40 variables

👉 **Idea 2 (smarter way to manage things)** : creating a Array named fruits

### What is Array anyway?

👉 Arrays are just collection of data types

👉 I'm sure if you are beginner the line i written above will not make any sense to you

👉 Imagine creating a one big variable or container which can hold multiple small variables ,so it's easy to access

👉 **Real life example :** box of chocolates 🍫🍫🍫🍫🍫 which can hold 100s of chocolates , now imagine managing 100 chocolates without box (pretty messed up right ? 🤣)

### Graphical Representation of Array 

![Artboard – 7.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1610013264802/Q3G1mQDAR.png)

👉 Array holds multiple values, whereas an ordinary variable hold a single value

👉 Array values must be inside Square braces **[ ]**

👉 Arrays are index based and index starts from `0`

👉 In simple words if you want to access "Apple", you need to write

```
fruits = ["apple","banana","grapes,"cherry"]

console.log(fruits[1]); ❌

console.log(fruits[0]); ✅
// logs "apple"

```
👉 Printing Whole Array
```
fruits = ["apple","banana","grapes,"cherry"];

console.logs(fruits);

//logs ["apple","banana","grapes,"cherry"]
```
👉 Iterating over individual elements of array

```
fruits = ["apple","banana","grapes,"cherry"];

// for of generally used for arrays

for (var fruit of fruits)
{
      console.log(fruit);
}
```

<p>Let me know in comment section if you have any doubt or feedback. it's always worth to give time to thriving developer community :) <br>
<br>
Keep Coding ❤
</p>

#### Hey , Let' Connect👋
 [Twitter](https://twitter.com/codarsh) / [Github](https://github.com/WhoAdarshPandya/)
The Agile Fluency Model and eCommerce
Tags: solidus, ecommerce, ruby, rails
Published: 2021-01-15 16:02:22

{% youtube 9M0h2D4IvkE %}

Jared Norman of Super Good Software gives a great talk on agile processes at SolidusConf 2020.

Many Agile organizations are just going through the motions of their chosen process. Jared walks us through how the Agile Fluency Model applies to eCommerce businesses and how they can use it to discover where they should focus to reap the real benefits of Agile methodologies.
✅Let me tell you the difference between YFX and INJ's trading mechanism in DEX
Published: 2021-01-15 15:46:32

The DeFi field has amazing upside potential. Whether it is relative to the entire crypto market, or especially relative to the traditional derivatives market, the total value of DeFi is negligible. New users entering the field will bring liquidity and promote the exponential growth of the DeFi derivatives market.

Compared with the products launched by CEX, the transaction of various products in DEX is still not much, but the decentralization features such as permissionless and non-custodial insisted by DEX are becoming more attractive to the crypto world, coupled with a large number of professional flow which has solved the liquidity problem that DEX has been facing.  We are looking forward to the breakthrough development of DEX market share.

Among the few DEXs, INJ and YFX are mainly based on decentralized derivatives contract transactions in terms of products. Let's take a look at the differences between the two DEXs in terms of trading mechanisms.

In terms of market making mechanism:

✅ YFX applies the QIC-AMM market maker pool trading method to provide users with extremely high liquidity and extremely low trading slippage. Traders directly trade with QIC-AMM to open and close their position. The depth is a function of the available balance of the LP pool, there is no impermanence loss in the LP pool.

✅ Instead of the AMM mechanism, INJ only uses the Layer 2 side chain to achieve efficient transaction efficiency, and makes it possible to trade cross-chain assets by basing on the Cosmos-Tendermint underlying protocol.

In terms of transaction mechanism:

✅ YFX adopts the market maker fund pool trading mechanism, each trading pair corresponds to a market maker fund pool.  All user orders will be traded with the market maker fund pool and the user's profit and loss will eventually be directly conducted with the market maker fund pool  settlement. In the process of market making, market makers only need to invest in one currency to participate in market making. 

✅ If the net value at the time of redemption is higher than the net value at the time of purchase, it can make a profit.
INJ is temporarily in the testnet stage and has not publicly disclosed its trading mechanism.
My experience at Local Hack Day: Build
Tags: localhackday, majorleaguehacking, mlh
Published: 2021-01-15 15:36:10

## How I started
I entered Local Hack Day as my first hackathon not really knowing much about hackathons - or any of the people from MLH. APIs scared me and I had no idea what Node, Flask, JSON or ZEN was. All I had was my passion to learn and meet new people.

## What happened over the week
As the week started I was active on all the socials about MLH and watched the majority of the Twitch streams, being active in the comments and on the Discord. Over this time I have met new contacts and continue to recognise the same names in the chat over multiple streams, and have also taken every opportunity to show off my skills or projects using Twitch, StreamYard (in with the presenters) and YouTube.

## The Addiction to Chrome Dino
Since the stream from Jacklyn on Day 2, I have made it my mission to get as many of the MLHers to undertake a live on-stream Chrome Dino game attempt. So far I have had Jack, Chris B and Mara attempt it, each getting scores of 583, 3337 and 469 respectively. I plan to continue this for the rest of the event.

##### How my Love for BLAHAJ has Developed Over the Week
At the start of the week I had never met BLAHAJ or any of the counterparts. I now know and have lots of love for BLAHAJ and really want one of my own... LHD: Build really leaves a lasting impact.

## What I am leaving Local Hack Day: Build with
I am leaving this hackathon with a plethora of new skills and connections. Whilst I still may be scared of APIs, I do at least feel like I know a little bit more about them. My main takeaway from LHD: Build is that I now know how to use GitHub! I feel like I have really learned something with this, and that is quite down to Will's stream on Day 3. Furthermore, I sort of know how to use React and Bootstrap applications thanks to Jack's stream on Day 4.
DPS911: Looking into the future
Tags: opensource
Published: 2021-01-15 15:34:34

I blog so much, I may end up DDoSing the telescope servers with all my blogs :D

Short update blog here. It would appear as my speculations about how the course would be ran were 95% right. There's a technical contributions portion that's worth more marks which we can do for any project of our choice. I think the cover photo should make the answer pretty obvious, but I've decided to focus on Telescope for this semester.

My reasoning for doing so is pretty simple. Telescope is a very complex code base with many different technologies being used. From Docker and BASH, to Gatsby and Jest, with all the environment settings and config files. All to run the website. There's issues for both the front-end and back-end. These are areas that I'd like to really focus on improving. The NextJS migration will allow me to get more experience with both Next and Typescript. The experience will be nice to put on my resume and make me more attractable for coop, but more than ever, it's the learning experience that I'm interested in.

That should just about do it. As for what Telescope 2.0 goals are, my professor actually blogged about that. You can find that [here](https://blog.humphd.org/toward-telescope-2-0/). The main thing that caught my eye was making Telescope a PWA. I know these things are very hot in the scene now so it'll be interesting to see how these things progress. Next time, who knows? I may end up blogging my progress for Telescope version 1.5. Until then, stay tuned!
Package Javascript, CSS Rules, and HTML Fragments as Reusable, Autonomous Components
Tags: css, javascript, html, webdev
Published: 2021-01-15 15:28:37

Today's web developers share CSS rules, javascript, and HTML pages as separated files,  What if we can share them as objects at finer granularity?

Imaging using a div to wrap only the video, audio, images, 2D drawings, 3D objects, shaders, animations, poses, Sqlite database, WebSocket, WebRTC, Webassembly, HTML fragments, CSS rules, and javascripts that it needs to create a smart and autonomous software objects... And building web apps is transformed to merely assembling selected few from a repository of said software objects.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/aufjfuv41ssq6bf9qwgo.png)

Such architecture allows web semantics to be included with objects...along with its graphical user interface which often consumes the most Internet bandwidth.  When combined with a Content Distribution Network (CDN), these objects can live on the EDGE and sent to the consumers at moment's notice and save enormous amount of server bandwidth.

Using AI, these objects can also serve as a foundation for smart software agents - software that are automatically generated to complete a specific task.

Watch a tutorial to see the tip of iceberg of what's possible.

{% youtube U0lqIO9e19k %}
 
[Test drive our editor here](https://www.otakhi.com/petridish)

[View our complete video showcases here](https://www.otakhi.com/showcase)

[Learn about AtomDrive](https://www.otakhi.com/atomdrive)
İnsragram Reklamları ve Önemi
Tags: instagram, reklam, webtasarim, seo
Published: 2021-01-15 07:50:17

İnstagram reklamlarının önemi ve faydası, Artık görsel bir çağdayız ve bir resim bin kelimeye bedeldir. Videolar, animasyonlar ve görseller daha az zamanda daha çok tüketmek isteyen tüketiciler tarafından en çok talep gören içeriklerdir.

Instagram görseldir. Bu nedenle bir tüketicinin dikkatini göz alıcı bir resim çekmek çok fazla miktarda metin yerine çok daha kolaydır. Bu sayede ağ 800 milyondan fazla kullanıcı ekledi. instagram reklamlarının önemi , düzgün bir çevrimiçi varlık elde etmek için sahip olunması gereken bir şeydir.

İnstagram reklamları ve önemi
İnstagram reklamları ve önemi
Onlarla iletişim kurmak ve onlara ürün hizmetlerimizi sunmak istiyorsak halkın olduğu yere gitmeliyiz. Sosyal ağlar kendi reklamcılık ekosistemlerini yarattı. İnstagram reklamlarının önemi Böylece topluluk yöneticisi yüksek talep gören ve tam potansiyelinden yararlanmak için sosyal ağların mantığını anlaması gereken bir profesyonel olarak ortaya çıktı.

Bu yeni dijital pazarlama alanı, aynı derecede şaşırtıcı sonuçlarla pazardaki en büyük yatırımlardan bazılarının yapıldığı yerdir. Girişimciler, işlerini kurarken ve ilk adımlarını atarken aynı zamanda bu pazarlamadan da yararlanmaya çalışırlar. Bu nedenle en iyi sonuçları elde etmek için Instagram reklamlarının önemli ipuçlarını da bilmek gerekmektedir.

İyi hazırlanmış bir profil
Instagram hikayeleri
Hastag’ler
Her gönderide bir başlık
Yayınlanan içerik türü ve sıklıklarındaki tutarlık
Temalı görsel resim
internet reklamcılığı
instagram reklamı nasıl verilir?
instagram reklamı nasıl verilir?
Web geliştirme şirketi | internet uygulamaları
İnternet Uygulamaları
App Design, çalışmaları konusunda tutkulu web uygulaması geliştirici ajansıdır

Web Geliştirme
Kullanıcılara uyarlanmış ve herhangi bir programlama dilinde optimize edilmiş yüksek kaliteli web siteleri geliştiriyoruz

Yazılım Geliştirme
Yazılım çözümleri sağlıyoruz ve bunları kapsamlı destek ve bakımla destekliyoruz.

Web uygulamaları oluşturmak için en iyi şirket
Dil okulları için eğitim platformları yapıyoruz. Intranet sistemleri, e-ticaret platformları, proje yöneticisi, insan kaynakları yönetimi, pazar yeri, ERP, CRM, çevrimiçi kurslar ve iş rehberleri, restoranlar için yönetim sistemlerinin geliştirilmesi.

Laravel: Laravel ile  platform geliştiricileriyiz .
Codeigniter: Codeigniter ile arka uç sistemler oluşturuyoruz.
Angular JS – harika görünen web uygulamaları.
Zend
CakePHP
Java
PHP ile geliştirme
Tüm sektörler için web uygulaması geliştirme işleri
Her sektör için mobil uygulamalar geliştiriyoruz. Özel uygulamalar yaratıyoruz. Android ve iOS için mobil uygulama geliştirmede en son teknolojiyi kullanıyoruz.

Diğer bir sosyal medya devi olan Facebook reklamları hakkındaki yazımızı okumak için bağlantıya tıklayabilirsiniz. Daha fazlası bana lazım derseniz o zaman sitemiz sizin için en uygun mekan.

Kaynak: <a href="https://www.cengizasikoglu.com.tr/cerkezkoy-web-tasarim/" title="Çerkezköy Web Tasarım">Çerkezköy Web Tasarım</a>
Faster .NET CI/CD pipelines with test filters
Tags: dotnet, bloggolf, cicd, testing
Published: 2021-01-15 15:26:08

Sluggish integration and delivery pipelines leave developers vulnerable to distraction.  If your unit and integration tests live in one `.csproj` and run in both CI and CD, tune your pipeline stages to run only relevant tests.

#### The Tests
```csharp
[Fact]
[Trait("Category","Unit")]
public async Task ThisTest_ShouldBeAUnitTest() 
{
   // Useful unit test
} 

[Fact]
[Trait("Category","Integration")]
public async Task WhenThisThingDoesX_ThatThingShouldDoY() 
{
   // Useful integration test
} 
```

#### Tuning the Pipelines

To run only unit tests in CI:
`dotnet test --filter Category=Unit`

To run only integration tests in CD:
`dotnet test --filter Category=Integration`

---
Photo credit: [Andrew Parnell](https://www.flickr.com/photos/andrewparnell/2738598951/in/photolist-5b134i-8BnKfE-8BjGfx-8BnKBq-8BnK8u-8BnLWo-8BnKqm-8NE8Ac-ry4zJx-2hcjGDn-bsM6Ux-bpe3u2-bvf1tF-bped7T-bveZb2-bveZNX-bveSMD-bsLYKt-adbMBJ-6kN7G-5UnKjd-5VCYtc-AEJUs-gQJMj-bk1bNK-udPXub-AEJkJ-vaQKS2-AEK23-uTgm7G-AEJvf-v8wAgs-bmNiUT-uToGzc-vakqGU-vak6Xj-vb3LXa-UutpCt-6pSjdF-bpe8JT-U9zyQn-5fq7Qu-28Kj4-5fkJXp-28KgA-kTdV5-6dLnTT-5fq8b3-6dLotz-5fq7ES)
Turned my PAID CSS Course into FREE?
Published: 2021-01-15 15:12:38

Few months back, I published a course called **Write CSS With Confidence by Building a complete project** at Udemy. Which was successful and got 4.6+ rating. 

Now, I have just turned it into YouTube Playlist.


Today, you can get it for FREE from: [Coder Champ](https://www.coderchamp.com)


Enjoy!

Happy Learning
Keeping the streak alive
Tags: devjournal, 100daysofcode, codewithpurpose
Published: 2021-01-15 15:05:26

# My power went out

I had no power for the better half Wednesday so naturally I didn't manage to get in any sort of significant coding done. So does that mean I have to start the 100daysOfCode all over? Who makes the rules anyway. I ended up deciding not to count Wednesday and keeping the streak going. 

### The Front-end :man_artist:

I wonder why the body of a website doesn't start in the corner of the page. I got around it by setting the margin of the body to 0 but I just don't understand why it wouldn't be in the corner by default.

I've done a lot of thinking about whether I should use a CSS framework to speed up the development of the photography website that I'm building. One the one hand I really enjoy making custom CSS. On the other, what takes me about an hour to make a hamburger menu icon with pure CSS takes 2 lines of code with semantic UI. One line for importing the CDN and the other is the HTML element with a classname corresponding to the name of the icon. I think the best decision right now is to use the frameworks for icons and the animations, layouts and media queries using pure CSS. I know how they work but I always forget their syntax so I want to get in the habit of using them without having to look up the syntax.

### The Back-end :man_technologist:

How cool is it that I have a back-end section. I'm just geeking out. I'm so excited to learn NodeJs. The course that I'm doing has challenges at the end of each videos and I've been crushing them. Its not my first time learning NodeJs though. 

### Review of 100daysOfCodes

What I love about this challenge is the support you get from the community. The automatic retweets, the high levels of engagements, the random strangers rooting for you to finish :joy: It's pretty hard not to love this community. If I had known this earlier I would have done the #100daysofCodes challenge ages ago. I think the best part of the challenge is seeing other people learning and being able to relate and connect with them on the challenges that the typical newbie goes through. Its nice to know someone else has gone through this and my frustrations is normal. 

The past week has honestly been one of my better ones. Could have done more, could have done less but I'm just happy with being consistent. As always, thanks for the read and Happy Coding:computer:!