teleren/devto huggingface dataset:
Why my side project might become more than that... Recruiters
Tags: sideprojects, webdev, rant, ambition
Published: 2020-05-15 21:31:06

### This was my response to another message I opened today:

> ".C'mon ... you made me download and read some document with nothing to explain even the company you are working for? Please consider my years of experience along with my current position before thinking it's okay to ask if I would send all my details and resume blindly. If this is some general template you spam to random people, that's just wrong. But so many call themselves "recruiters" but treat experienced professional developers the same as some junior who needs any job for the experience. I would never make you guess my skill set or value , please show the same kindness "

### I'm having a hard time understanding why it seems like the title of "recruiter" has any weight in our field (software engineering).

Before the pandemic, I was launching the *beta* for my app, "Blog-O-Matic", which I became obsessed with creating when my kids made it clear that the way anyone creates content today is "dated"....

But even before that project, I have been producing chapters for an e-book based on my interviewing experiences since my first attempt at working as a professional developer (so many years ago...). These blog articles told a story of how the process goes, what had changed over the years, and most importantly, understanding the value of the company contacting me via "talent acquisitionists" as opposed to emails from unknown recruitment agencies.

This "book" was more of a personal journey to understanding how to publish s professional book and piece together chapters that make sense. I now have been on the other side of an interview, and also have helped others obtain positions because of my experience. The outline from all of this has morphed into a utility I now use for a check list and guidance for the circles I'm involved with. 

When I make a decision to set time aside (time is anyone's most valuable commodity and should be handled like money), I announce it on a public forum. Not to gain a following or hope for masses to be interested. It's a move to mark the occasion, but also so if someone who knows me reads these articles... I get reenforce my work ethic and dedication, or have no effort to back up these ideas and feel like a fool with s big mouth.

So this article will begin documenting a couple projects starting this weekend. If you are still reading this, and like the idea of a platform/service that focuses on recruiting for the DEVELOPER's needs instead the companies, shoot me a message.

Thanks.
Yet Another i3status replacement written in Go
Tags: i3wm, i3, i3status, i3bar
Published: 2020-05-15 21:03:14

# YaGoStatus

## Features
- Instant and independent updating of widgets.
- Handling click events.
- Shell scripting widgets and events handlers.
- Wrapping other status programs (i3status, py3status, conky, etc.).
- Different widgets on different workspaces.
- [Snippets](https://github.com/burik666/ygs-snippets).
- Templates for widgets outputs.
- Update widget via http/websocket requests.
- Update widget by POSIX Real-Time Signals (SIGRTMIN-SIGRTMAX).

## Configuration

Yagostatus uses a configuration file in the yaml format.

Example:
```yml
widgets:
  - widget: static
    blocks: >
        [
            {
                "full_text": "YaGoStatus",
                "color": "#2e9ef4"
            }
        ]
    events:
      - button: 1
        command: xdg-open https://github.com/burik666/yagostatus/

  - widget: wrapper
    command: /usr/bin/i3status

  - widget: clock
    format: Jan _2 Mon 15:04:05 # https://golang.org/pkg/time/#Time.Format
    templates: >
        [{
            "color": "#ffffff",
            "separator": true,
            "separator_block_width": 21
        }]
```

https://github.com/burik666/yagostatus

## License

YaGoStatus is licensed under the GNU GPLv3 License.
Azure DevOps, GitHub, React Deployment - Deployment Center in Azure App Service
 (Video) 
Tags: devops, azure, beginners, cicd
Published: 2020-05-15 20:52:56

Azure DevOps helps you deploy more reliably by providing you with a platform to complete CI/CD tasks.  Azure DevOps is ready for any language or platform to deploy to.  
{% youtube EzdOp1jlN0A %}

This YouTube video will provide you with a run-through of deploying a stateless app to Azure Web App Service using the Deployment Center.  The deployment center will create the CI/CD pipelines we expect for delivery.  Azure DevOps triggers will ensure that whenever we push a new commit to the `master` branch, our code builds and deploys.  

### Here are some links to help you on your journey into DevOps, pipelines, and Azure.

* Microsoft Learn: [Azure DevOps](https://docs.microsoft.com/learn/modules/get-started-with-devops/?WT.mc_id=blog-devto-jagord) 
* Microsoft Learn: [Azure Fundamentals](https://docs.microsoft.com/learn/paths/azure-fundamentals/?WT.mc_id=blog-devto-jagord)
* Microsoft Learn: [Host a web application with Azure App service](https://docs.microsoft.com/learn/modules/host-a-web-app-with-azure-app-service/?WT.mc_id=blog-devto-jagord)
* Microsoft Docs: [App Service Documentation](https://docs.microsoft.com/azure/app-service/?WT.mc_id=blog-devto-jagord)
* Microsoft Docs: [Azure Pipelines Documentation](https://docs.microsoft.com/azure/devops/pipelines/?view=azure-devops&WT.mc_id=blog-devto-jagord)
* [Azure DevOps](https://dev.azure.com/?WT.mc_id=blog-devto-jagord)
* [react-clock-basic demo app](https://github.com/jaydestro/react-clock-basic/)
* [Get 12 Months of free service and $200 for Microsoft Azure](https://azure.microsoft.com/free/?WT.mc_id=blog-devto-jagord)

{% youtube _gURf7CW1lg%}
Where can I find Intermediate Python materials?
Tags: python, intermediate
Published: 2020-05-15 20:46:30

I'm in the middle of learning intermediate python, but can't really find any materials. Because of this, I've doing a lot of edabit.com sample codes, levels between hard and harder. So, my question is, is this a good way or preferred method of learning. Any input will be greatly appreciated. Thank you.
What is a Python docstring?
Tags: python, beginners, documentation, docstring
Published: 2020-05-15 20:30:02

---
title: What is a Python docstring?
published: true
description: A brief introduction to Python docstrings
tags: Python, beginner, documentation, docstring
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/2ekljddyz880xvocci4x.jpg
---
Code documentation is an integral part of Python development experience. Sometimes there may be more documentation in the source than code itself. It helps you understand what a function or class does, what arguments it accepts, and what it returns.

Python provides a handy way to add documentation. Documentation string or docstring is a string literal, and it is used in classes, modules, functions, or method definitions. The docstring is very similar to a comment but is represented with the triple-double quote (""") .

Docstrings are accessible by `__doc__` attribute of the objects and also with the built-in `help()` function. 

Docstring example:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/265qjt7ekw21lblrokz5.jpg)

In this example, we have defined a cat function that returns meow. We have declared a docstring that explains what the function does. To get the docstring of a function, we need to display the doc attribute (`print(cat.__doc__)`)

There are a couple of ways to write docstring, i.e., one-line docstring and multi-line docstring.

**One-line Docstrings**

Depending on the complexity of the function, method, or class, a one-line docstring may be perfectly appropriate. 

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

The closing quotes are on the same line as the opening quotes. You can use one of the quotes, i.e., triple single or triple-double quotes. There's no blank line either before or after the docstring. 

**Multi-line Docstrings**

In more complex cases, it is a better idea to give additional information about the code. Multi-line docstrings consist of a summary line like a one-line docstring, followed by a single blank line with the descriptive text. 

The general format for writing a multi-line docstring is:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/mtcfjvotrm7jyjyicsgz.png)

As you can see, docstring improves usability and code readability. It will be easy for a programmer who didn't write the code to understand what this or that function does. The most important thing to remember when working with docstrings is that you write the docstring for people who will use your code.

Yet, docstrings is a very vast topic, and If you would like to learn more, then check out the Python DocStrings [PEP257](https://www.python.org/dev/peps/pep-0257/).
Let docker flutter for you
Tags: flutter, android, docker, linux
Published: 2020-05-15 20:21:11

---
title: Let docker flutter for you
published: true
description: Using flutter without local installation.
tags: flutter, android, docker, linux
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/afak40p3mj2zcu3wz7hm.jpg
---

After installing the Flutter and Android SDK several times on different machines I always ended up with a broken setup where some part of the puzzle was not working anymore.

I decided to improve this situation but wanted no limitations compared to a local installation. So the image must be able to execute Flutter in my current host directory, start an emulator and hot reload the app and let me test Flutter for Web. 

This is what I've come up with:

{% github matsp/docker-flutter no-readme %}

and support the following features:

* Use Flutter commandline tool
* Start an emulator and hot reload the app on it (with hardware accerlation)
* Serve Flutter app as Web app

On my machines I setup some aliases to transparently map a `docker run` command. Executing Flutter in the image feels just as executing it locally.

For me the best feature is a predictable behavior on all my machines with no traces. With two commands you will have the flutter example app up and running.

```shell
docker run --rm -e UID=$(id -u) -e GID=$(id -g) --workdir /project -v "$PWD":/project matspfeiffer/flutter create .

xhost local:$USER && docker run --rm -ti -e UID=$(id -u) -e GID=$(id -g) -p 42000:42000 --workdir /project --device /dev/kvm --device /dev/dri:/dev/dri -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY -v "$PWD":/project --entrypoint flutter-android-emulator  matspfeiffer/flutter
```

I agree - the commands are not looking very friendly - but mapped with an alias it's just like:

```shell
flutter create .
flutter-start-emulator
```

![Emulator run in docker](https://dev-to-uploads.s3.amazonaws.com/i/7c280xz2vefalbwb1g7j.png)

I am using Linux as my operating system which could mean that there are bugs for MacOS and Windows. Especially forwarding the X system and qemu accerlation could be an interesting task under Windows and MacOS. I already read that it is possible but I could need help with testing it. A

If your are interested feel free to test the image and issue bugs. I would really appreciate any support to make this image usable for everyone who want's to start with Flutter.

So hopefully we hear again in the comments or at Github!

UPDATE:

Checkout the [README](https://github.com/matsp/docker-flutter) to read about solutions for Windows and MacOS users as well!
7 ways of spending your quarantine
Published: 2020-05-15 20:06:20

Here are some 7 ways of spending your Quarantine;

Step 1) Playing Battle Royale Games such as ;

-Player Unknown Battlegrounds;

-Call Of Duty;

-Apex Legends;

-Fortnite;

-Fireflies etc;

Step 2) You can learn coding via the following ways;

-FreeCodeCamp

-CourseEra

-TheMkYNewtork

-Udemy etc

Step 3) Learning new stuffs via Youtube;

Youtube offers varieties of tutorials for anything you want to learn such as;

-Coding;

-Learning how to cook new recipes;

-Learning more about technology etc

Step 4) Creating a Blog via Coding or CMS;

Content Management System (CMS) are website already created with web templates waiting for you just to pick one and customised. Such platform are ;

-WordPress

-Wix.Com

-Blogger etc.

Step 5) Playing Indoor Games;

Playing indoor games such as

-Scrabble

-Ludo

-Monopoly

-Whot etc

This tends improve family bond.

Step 6) Watching Movies;

You can download movies via;

-Netnaija

-FztvMovies.net

-9jarock etc

Step 7) TitToking;

Trying trends and challenges on TikTok such as;

-MiCasa SuCasa Challenge

-Know You Challenge

and lots more
Share your Google Season of Docs Experience 
Tags: watercooler, discuss, help
Published: 2020-05-15 20:05:03

We've just hit the 'Technical writer exploration' milestone in the annual [Google's Season of Docs](https://developers.google.com/season-of-docs/docs). I am interested in participating but before that I want to know what I am getting myself into.

Anyone who was previously selected for GSOD, can you share your experience? Here are some focus points:
* How much time did you end up spending in a week?
* Did it open further networking opportunities for you?
* How long did the project last for you?
* What were the low points during your gsod journey?
Progress: rethinking the implementation
Tags: gftwhackathon
Published: 2020-05-15 19:35:29

Initially, I wanted to have python (somehow) directly manipulate the DOM based on the state of `document.monetization.state`. I didn't know if it was possible but I figured there must be a way because, well, it's python.

After trying out a couple of ways, I realized it's just not as simple as I thought to access `document` from python and still keep the project free from a whole bunch of dependencies. As a solution, I think I have to include a small js script to provide an interface between what's going on in the browser and the backend.

I've been a bit hesitant to take this approach because I wanted to keep it all python, but this seems like the best thing to do for now. 

While this whole thing can be done much easier in Javascript, I still feel like it's worth providing a python implementation for people who would like to include monetization to their flask/django projects without having to write the javascript themselves.

So, the idea remains the same. I still want to be able to do

```py
from monetize import check_state

@app.route('/monetized')
def monetized_page():
    state = check_state()
    if state == 'started':
        # implement logic to offer monetized content
    else:
        # do something else
```

It's just how to achieve it that's changing.
inputs type=switch
Tags: html, css, webdev, tutorial
Published: 2020-05-15 19:14:48

---
title: inputs type=switch
published: true
description: Using 15 lines of CSS
tags: html,css,webdev,tutorial
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/u038l851ltjmljie8z09.gif
---

If you are looking for a Javascript+Jquery+JqueryUI+Grunt way to create a switch: https://naeka.github.io/jquery-switchbutton/

If you're not : you're in the right place.

# What's the trick doc ?

We're simply going to disable the `<input>` appearance, then use a `radial-background` to display a white toggle on green-or-grey background.

{% codepen https://codepen.io/yne/pen/GRpYKwL default-tab=css,result %}

# Can I haz animation ?

I don't know, can you [animate a radial background](https://stackoverflow.com/a/6542623/11782142) ?

(no)
3-Letter Months with ACF and PHP
Tags: php, wordpress, acf
Published: 2020-05-15 19:14:15

I only have a few months of experience working with Wordpress, so there are a lot of small victories, and I'm learning more each day. I have at least one AH-HA! moment each week from solving something with code, which is so rewarding. 

This week my moment came from learning how to truncate dates in PHP for a Wordpress site. The design called for showing event dates, but only including the first three letters of the month. That way the month would always fit within its container. One way to do this could be having the client just manually type the first three letters into a text field for the event date. Though a more elegant solution is to offer them a calendar for picking the date, and adding a function to reduce the month name to three letters, so there's less room for error on the client's end, and it all happens behind the scenes. Here's how I did it:

First I built custom fields for the event date and event time using Advanced Custom Fields.

![Advanced Custom Fields for Event Date Example](https://i.imgur.com/EcEKw52h.png)

I use a custom option to return just the month and the day (F j). We will refer to the F for formatting it before karate chopping it into its first three letters later on. 

![Advanced Custom Field for Event custom date return](https://i.imgur.com/T4EZoZj.png)

I also made a custom post type for Events which is why you will see `$posts = get_field('events');` in the complete code below. 

After creating a few events and relating them to the Events page, I loop through all of the event posts, getting the date with [`DateTime`](https://www.php.net/manual/en/datetime.format.php) and setting it to a variable in the events page. Then I use PHP's [`substr`](https://www.php.net/manual/en/function.substr.php) function to only display the first three letters of the month, and [`format`](https://www.php.net/manual/en/datetime.format.php) to return the day. The `substr` function takes three arguments: a string, an integer for the start location, and an integer for the the end of the desired truncated string. Since I want to display 3 letters, the start is 0 and the end is 3. That's it! Here is the whole loop. 

{% gist https://gist.github.com/aellonk/bc7159b0b58b2ad86f52af9f7cd30a71.js %}
Feature Flags vs Branching
Tags: webdev, git, testing, javascript
Published: 2020-05-15 19:09:46

---
title: Feature Flags vs Branching
published: true
description: Feature branching allows developers to effectively collaborate around a central code base by keeping all changes to a specific feature in its own branch.
cover_image: https://i.imgur.com/ODLLYJY.png
tags: webdev, git, testing, javascript
---

Feature branching allows developers to effectively collaborate around a central code base by keeping all changes to a specific feature in its own branch. With the addition of feature flags, feature branching becomes even more powerful and faster by separating feature release management from code deployment.

Feature flagging allows developers to take full control of their feature lifecycles without depending on code deployments. When you merge a feature branch into master (production), it is already wrapped in a feature flag. This allows you to deploy the feature “off” and then gradually roll it out to users. It also allows you to quickly “kill” the feature if it is not working well, without having to redeploy.

Therefore, feature flagging does not replace branching, it is complementary and makes it more powerful. Feature branching provides the flexibility to decide when and what to release, while feature flagging lets you take full control of the release itself. Together, branching and flagging help you maintain and integrate short-lived branches faster and with less risk.

This allows many small incremental versions of software to be delivered without the cost of constant branching and merging.

### [What is UpStamps?](https://www.upstamps.com)

[UpStamps](https://www.upstamps.com) is a Feature Flag Management Platform to separate code from different environments and projects. 

UpStamps helps teams manage their projects using feature management with a **Central control** to progressively deliver features to users with confidence.

[Sign Up for Free](https://app.upstamps.com)

🛳 Ship when you're ready 
🚀 Accelerate feature release 
🙈 Hide unfinished features

![UpStamps Control Center](https://i.imgur.com/FQEqNbP.png)

Useful links about UpStamps:

- [About](https://www.upstamps.com)
- [Documentation](https://docs.upstamps.com)
- [Start Testing in Production](https://app.upstamps.com)

Useful links about Feature Flags:

- [Feature Toggle by Martin Fowler](https://martinfowler.com/articles/feature-toggles.html)
- [The Hub for Feature Flag Driven Development](https://featureflags.io/)
- [Feature Toggle by Wikipedia](https://en.wikipedia.org/wiki/Feature_toggle)
Implement Fuzzy Text Search with Mongoose
Tags: mongodb, mongoose, node
Published: 2020-05-15 19:03:17

---
title: Implement Fuzzy Text Search with Mongoose
published: true
description: Add simple fuzzy text search to your Mongoose model
tags: mongodb, mongoose, node
---

There are a bunch of great services that make search really simple, but adding simple fuzzy text search to a Mongoose model is a quick & easy win for when those services are overkill.

## Prerequisites

You'll need a Node project up and running with Mongoose installed and at least one Mongoose model.

## A Little Bit About Fuzzy Search

Fuzzy search is a standard in search implementations. Users expect it and we should deliver as advocates of our users. A simple text search needs to allow for a small typo, a missing space, and other errors.

Text search in MongoDB is fairly straight-forward. The `$regex` operator allows for partial-text search and the `$text` operator makes a full-text search possible, but enabling fuzzy search is a little more complicated.

### Indexing & n-grams

In order to match something like "uzz" to "fuzzy" we need to break "fuzzy" up into smaller pieces and index it. `mongoose-fuzzy-searching` is a simple package that helps us index text fields on our documents with n-grams, allowing us to match smaller text samples to potential matches in our collections – aka fuzzy search.

## Implementation

Let's get started by installing the necessary package: `npm i mongoose-fuzzy-searching`.

With our package installed, we can add it as a plugin to our `schema`:

```js
import mongoose, { Schema } from 'mongoose'
import mongooseFuzzySearching from 'mongoose-fuzzy-searching'

const user = new Schema({
  firstName: String
})

user.plugin(mongooseFuzzySearching, { fields: ['firstName'] })

export default mongoose.model('User', user)
```

Now that we have the plugin added, any new documents added to our `User` collection will have the appropriate text index! In order to use our newly-implemented plugin, all we need to do is call the `fuzzySearch` method on our collection instead of `find`:

```js
import User from '../models/User'

const users = await User.fuzzySearch('query')
```

Given an empty query, our `fuzzySearch` method will act just like a `find` call, returning all relavent results.

## Further Reading

To learn more about how to use `mongoose-fuzzy-searching` with existing data, it's various options, or with more complex `find()` calls, check out the [readme on NPM](https://www.npmjs.com/package/mongoose-fuzzy-searching).

---

Need some help? Feel free to [reach out](https://twitter.com/briansw).
Automating GET & POST API Request using REST Assured | 30 Days of API Testing | Day 15
Tags: testing, tutorial, webdev, beginners
Published: 2020-05-15 18:49:30

🚀Mastering API Testing(Full Course) -  https://www.learnapitesting.com

In this video of 30 Days of API Testing Challenge, We are going to discuss REST Assured Tutorial | Automating GET & POST API Request.

🚀 Day 15 Task: Find, use, and share your thoughts on a new API testing tool.

🚀 Task 15. :  https://scrolltest.com/api/day15

🚀 All Task List: https://scrolltest.com/api/task

[![30 Days of API Testing](https://i.imgur.com/6GKX4S5.png)](https://youtu.be/MdyaU1rl_QU "30 Days of API Testing")


REST Assured is a Java library that provides a domain-specific language (DSL) for writing powerful, maintainable tests for RESTful APIs

> Source. - https://techbeacon.com/app-dev-testing/how-perform-api-testing-rest-assured

🚀 Maven - https://mvnrepository.com/artifact/io.rest-assured/rest-assured/4.3.0

--
Be sure to subscribe for more videos like this!

[![ TheTestingAcademy](https://dev-to-uploads.s3.amazonaws.com/i/r7vcy6wbvyjbk1y1uu0o.png
)](https://www.youtube.com/TheTestingAcademy?sub_confirmation=1 "TheTestingAcademy")