teleren/devto huggingface dataset:
About tiling window managers
Tags: linux, productivity, tiling, windowmanager
Published: 2019-11-28 05:55:12

I have been using tiling windows managers for a couple of years now and I love it!

## what?

Tiling windows managers (just) focus on the layout of windows on the screen making sure of two things:

- every window will use all the available space on screen
- if several windows open, all of them will be shown according to certain rules.

## why?

Because is simple, is less, is better (for me). Most of the implementations dont even decorate the windows. So, closing it depends on app specifics or a keyboard binding. 

## how?

There are many options. I have tried extensively:

- i3: the nicer one. Good defaults and also provides an status bar and desktop changer. Configuration is done by editing a file. It also have a locker and status monitor.

- bspwm: the lightest. No bar at all. Is up to you. Configuration is just a script that calls a program that handles the window manager. This event don't handle keyboard bindings. Normally you will use sxhkd for this.

- dwm: my current choice. It's a suckless.org project. So, you will be compiling C code to configure stuff. But it's not hard. It provides a good bar and the chance to have current active window title on top. In reminds me Unity experience. 

## important

- the layouts: most tiling provides different ways to organize the windows. The tiles, columns, rows, master and slave, master on the center, monocle, floating (sometimes is good)

- don't need to start from scratch: you can just setup the window manager for your current desktop environment. I'm currently using lxqt desktop environment with dwm as windows managers instead of openbox, This way I can use a regular graphical session with all the components wired in and also enjoy my favorite window manager in less than 5 minutes. Especially with lxqt that allows to change the window manager in the configuration as a very normal thing. 

You can also replace kwin in a KDE session of xfwm on XFCE and rely on  that DE setup instead of configuring everything from scratch. The methodnis different in each one, but is in general about this 2 steps:

- avoid the start or kill the default window manager
- start the tiling one.

## conclusion

I have learned a lot while playing with windows managers because they give you the chance to create your desktop environment from scratch and decide which pieces do you really need.

I'm open to questions!
New browser on the block!
Tags: browsers, discuss
Published: 2019-11-28 23:19:29

Photo by [Jacalyn Beales](https://unsplash.com/@jacalynbeales?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/evergreen-tree?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

Well, it looks like the web browser ecosystem is getting another browser.

{%twitter 1200188106584023040 %}

This is healthy for the web assuming standards are followed. From the Tweets I've seen it appears to be fast, but it is early days and from what I can tell there is no preview version to download yet.

What are your thoughts on another browser entering into the browser ecosystem?

![Old school Netscape logo](https://media.giphy.com/media/anjRJ4nv9WJzO/giphy.gif)
What Is Wordpress? Create a profitable wordpress blog?
Tags: wordpressblog, wordpress
Published: 2019-11-28 08:36:45

Wordpress is best website for creating a blog website for own business.

Wordpress has more plugins. Which helps to us to get less effort.and also helpful to improve search engine result in quickly.

You can see this blog to step by step process. 

Read more: <a href="https://shiv1367.com/what-is-wordpress">Wordpress Blog</a>
List Comprehension and Creating lists from range function in Python🤙🤙
Tags: python, datastructures, list, productivity
Published: 2020-01-04 18:52:40

The list is the most versatile python data structure and stores an ordered sequence of elements, just like the to-do-list.In Python, Lists are **mutable**, meaning that the details can be altered, unlike tuples or even strings. These elements of a list are called items and can be any data type.

Now for understanding this article, we need to understand the range() function. 

```python
    my_list = list(range(0,10,2))  #my_list becomes [0, 2, 4, 6, 8]
```
So, the range() function creates a sequence of numbers. First parameter of range() function is the starting number, the second parameter is number to stop before it and the third parameter is steps between these numbers(By default it is 1).

Now, we are going to look at some awesome tricks we can do on the lists in python ...

So, let's create a list first.
```python
    my_list = list(range(1,10,2))  #creates my_list with the values of [1, 3, 5, 7, 9]
    print(my_list[2])  #prints the value at given index i.e. 5
```
Now, we know that we can get the desired value by index. Here comes the cool part, we can give a range in the [] brackets And get the values within that range. For example-
```python
    print(my_list[0:4])  #Prints [1, 3, 5, 7]
```
The first parameter 0 means the starting point. The second parameter means how many numbers you want to get. We can give the 3rd parameter to get the interval also. 

Now, coming back to list comprehension in python. First, let me tell you the problem list comprehension is trying to solve.

Suppose we have given a list of string.

names = ["react", "angular", "ember"]

and we need to use upper case on every string
```python
   upper_case_names = []
   
   for name in names:
       upper_case_word = name.upper()
       upper_case_names.append(upper_case_word)  #["REACT","ANGULAR","EMBER"]
```

What if we could do the above code in one line only! So, here comes the list comprehension.

```python
upper_case_names = [name.upper() for name in names]  #["REACT","ANGULAR","EMBER"]
```

And Done!

Explanation: We start with the empty list []. Then on the right-hand side, we put the iterator or conditional, and on the left side, we put statements that we need to execute. That's it.

You can do so many cool stuff with the list comprehension. 

And that's it for this article.

![](https://media.giphy.com/media/l1J3CbFgn5o7DGRuE/giphy.gif)
A Complete Autonomous Drone Study Plan
Tags: drones, ai, deeplearning, autonomous
Published: 2019-11-28 13:12:56

If you already know programming basics and want to understand how rotorcraft function, what they can do and how to make them do stuff, you are in the right place.


The drone industry is worth more than 130 billion dollars and is growing rapidly.

**Don’t feel you are not smart enough**

Successful software engineers are smart, but many have an insecurity that they aren’t smart enough.

I originally created this as a short to-do list of study topics for becoming a software engineer, I am publishing this list to share my 3 year list of topics that I studied on the side during the curriculum of a Computer Engineering and Informatics degree. This is a list of short and medium length study topics to obtain knowledge regarding autonomous rotorcraft. The items listed here will give you enough knowledge to be able to understand how they work, their limitations and effort required to make them fly. Happy studying!

[The complete list is published on Github. Click here to access it.](https://github.com/Zarkopafilis/awesome-dronecraft)

**Table of Contents**

- What is it?
- Why use it?
- How to use it
- Don’t feel you aren’t smart enough
- You can’t pick only one language
- Book List
- Before you Get Started
- What you Won’t See Covered
- Prerequisite Knowledge
- Optional Courses
- Simulation and Control
- Control Theory
- Sensors and State Estimation
- Simultaneous Localization and Mapping
- Path Planning
- Mechatronics
- Existing Drone Software
- Existing Drone Hardware
- The Flight Controller
- Building a Racing FPV Quadcopter
- Building Fully Autonomous Rotorcraft
- Once You’ve Finished
- Other Resources
- Drone Usage in Industry
- Other Kinds of Vehicles
- More Advanced Topics
- Other Interesting

## Simulation and Control

- This is the basis of rotorcraft that is going to get covered first. These few resources will make you understand what a drone needs to fly bad, good, with the help of extra autonomy engines or with the help of a pilot.
- After this part, the corks and screws of each subsystem is going to be investigated thoroughly.

- [ ] [Matlab Tech Talks - Understanding Control Systems](https://www.mathworks.com/videos/series/understanding-control-systems-123420.html)
- [ ] [Matlab Tech Talks - Drone Simulation and Control](https://www.mathworks.com/videos/drone-simulation-and-control-part-1-setting-up-the-control-problem-1539323440930.html)
- [ ] [Introduction to 6-DOF Simulation of Air Vehicles (pdf)](http://avionics.nau.edu.ua/files/doc/VisSim.doc/6dof.pdf)
- [ ] [Betaflight: PID Tuning Guide](https://www.youtube.com/watch?v=27lMKi2inpk)

__At this point, you might wonder: This is only for four rotors. Don't worry, the extra ones are only used to have resilience. In the future this is going to be populated with more types of rotorcraft like submarines, VTOL drones and wings.__

[Continue Studying at Github](https://github.com/Zarkopafilis/awesome-dronecraft)

#drones #ai #autonomous
Using Segment with Ember.js
Tags: javascript, ember, segment
Published: 2019-12-11 18:01:48

I've been working on [College Conductor](https://www.collegeconductor.com/) to help serve Independent Educational Consultants (like [this one](https://laymancollegeconsulting.com/) :) and high school guidance counselors.  To find product market fit, I'm using [Segment](https://segment.com/) which gets the data I need to decide how to improve the service.  In this post, **I'll describe how I connected Segment to College Conductor's [Ember.js](http://emberjs.com/) frontend.**

Working with Segment in Ember can be done with [ember-cli-segment](https://github.com/josemarluedke/ember-cli-segment), an Ember addon that provides an Ember [service](https://guides.emberjs.com/v2.1.0/applications/services/) to communicate with Segment.  The first thing I did was install the addon with:

```bash
$ ember install ember-cli-segment
```

`ember-cli-segment` has a solid README on their GitHub page that instructs users what to do at a very detailed level.  Before getting buried in details, I had two initial goals with this addon.

1. Connect to Segment to record basic analytics.
2. Utilize the [identify](https://segment.com/docs/sources/server/http/#identify) API to connect users to their actions.

Once these two goals were completed, I could monitor enough behavior to make data based decisions about what to improve in the product.

## Connect to Segment

Connecting the Ember app to Segment involved adding my Segment write key to the app's configuration. The result in my `environment.js` file was something like:

```javascript
ENV['segment'] = {
  WRITE_KEY: 'my_segment_write_key'
}
```

With that much configuration, data started flowing from College Conductor to Segment.  Exciting!

## Identifying users

My second goal of identifying users was done with an application route hook.  If you create a method named `identifyUser` in your application route, then `ember-cli-segment` will make the `identify` API call on your behalf.

I had to supply a user ID and whatever other information I wanted.  At this stage in my product development, including the account username is all the extra data I want.

My code in `app/application/route.js` looks like:

```javascript
identifyUser() {
  const user = this.get('currentUser.user');
  if (user) {
    this.get('segment').identifyUser(
      user.get('id'), {username: user.get('username')});
  }
}
```

This code grabs the authenticated user from the `currentUser` service that I created and identifies that user with Segment.

## Thankful

By the time I finished with this work, I was very grateful for `ember-cli-segment`.  The addon made my job much easier.  This is one of the things that I really like about the Ember community.  Ember CLI addons can take out some of the very heavy development work.  That means I can spend more time on College Conductor and less time on the nuts and bolts of service integration.

This article first appeared on [mattlayman.com](https://www.mattlayman.com/blog/2016/ember-segment/).
100+ Hottest Black Friday and Cyber Monday Deals For Dev.to Community.
Tags: webdev
Published: 2019-11-28 14:27:05

---
title: 100+ Hottest Black Friday and Cyber Monday Deals For Dev.to Community.
published: true
description: We have compiled the following list of great bargains on industry-leading themes, plugins extensions for WordPress, Magento, and Marketing tools.


tags: #webdev
---

We have compiled the following list of great bargains on industry-leading themes, plugins extensions for WordPress, Magento, and Marketing tools.

Plus Cloudways is giving 40% OFF for the next three months. 
Promo code BFCM40 . Valid till 4th December 2019 and for new users only.

<a href="https://www.cloudways.com/blog/thanksgiving-black-friday-cyber-monday-deal/">. 100+ Hottest Black Friday and Cyber Monday Deals For Dev.to Community</a>
PHP Comment System With Replies
Tags: php, comment, system
Published: 2019-11-28 16:23:55

I have code that is able to capture the initial comment and the 1st level of replies, but it doesn’t seem to capture the reply to a reply. I know that it requires an indefinite code using some form of recursion, but not quite sure how to properly implement it. Here's the code I'm using:

<?php
$conn = new mysqli('localhost', 'root', 'Jordan123', 'commentsystem2');

$sql1 = "SELECT * FROM comments WHERE r_to = 0";
$result1 = $conn->query($sql1);

   while($row1 = $result1->fetch_assoc()) {
       $c_id = $row1['id'];
       $c_name = $row1['name'];
       $c_comment = $row1['comment'];

       echo '
       <div class="comments" style="position:relative; margin:auto; width:25%;">
          <div>ID# '.$c_id.'</div>
          <div style="font-weight:bold;">'.$c_name.'</div>
          <div>'.$c_comment.'<br><br></div>
       </div>
       ';

       $sql2 = "SELECT * FROM comments WHERE r_to = $c_id";
       $result2 = $conn->query($sql2);
       
          while($row2 = $result2->fetch_assoc()) {
              $r_id = $row2['id'];
              $r_name = $row2['name'];
              $r_comment = $row2['comment'];
              $r_to = $row2['r_to'];
              echo '
              <div class="comments" style="position:relative; margin:auto; width:25%; padding-left:80px;">
                 <div>ID# '.$r_id.'</div>
                 <div style="font-weight:bold;">'.$r_name.' replied to '.$c_name.'</div>
                 <div>'.$r_comment.'<br><br></div>
              </div>
              ';
       
          }//end of 1st while loop that captures comments.


   }//end of 1st while loop that captures comments.

    
$conn->close();
?>

Notice how some of the replies to replies that are in the table, are missing on output.
Get a notification at the client when using the Firebase Cloud Messaging service on .NET
Tags: csharp, dotnet, firebase, fcm
Published: 2019-11-28 17:19:07

I am exploiting some APIs of mobile applications on Android operating system. In it they use Google's FCM service. After decompiling the source code using Apktool, I get a device_token string, and an API function to call the server to return a message (notification).

I want to use the exploited API functions to port to the desktop application as an automated tool. Unfortunately, Google's FCM does not support .NET (only on Android, iOS, Web platforms) I want every time I make a call API to their server, I call a function so they return OTP to confirm the transaction. This OTP is contained in the server's return notification.

In the Google FCM document, a google-service.json file is imported into Firebase's Android project and SDK, I'm programming a .NET application, so how can I get a notification like when calling the onMessageReceived () function in the Firebase SDK
5 ReactJS libraries to make life fun and easy
Tags: javascipt, react, webdev, frontend
Published: 2019-11-28 18:30:19

---
title:5 ReactJS libraries to make life fun and easy
published: true
description: Curated list of React Libraries
tags: #javascipt,#react,#webdev,#frontend
---

**If you are a React beginner or just looking for some good Libraries/Components to use in your app, I have curated a categorised collection of React Libraries and Components at http://applibslist.xyz/ which i keep updating and also send newsletter every week to notify about the cool libraries/components in React community.**

Here i curate a list of 5 libraries that you might find fun and easy to work with

#### 1. React Helmet :
[react-helmet](https://github.com/nfl/react-helmet) is a reusable component for html head. It allows you to set meta tags dynamically that will be read by search engines and social media crawlers.Which in turn helps your website's SEO. In SPA(single page apps), SEO is the hard part because we use same html page throughout the website. React Helmet lets us dynamically override the meta tags of its parent page from a leaf page.Good thing about it is, it takes plain HTML tags and outputs plain HTML tags and is dead simple.

#### 2.  Motion :
[Motion](https://www.framer.com/motion/) is a simple animation and gesture API from the Framer X team. It has a simple declarative API which makes it easy to create smooth animations and even complex animations can be created with minimal amount of code. It is so simple to animate using this library, you just need to set final css values on the animation prop and voila.

#### 3. React-Toastify :
[react-toastify](https://fkhadra.github.io/react-toastify/) makes you add notifications to your website so simple and easy that you barely need a minute to set it up and running. Cool thing about this library is you can go to their website, customise your notification toast visually and just take the code from it and plug it your app. Animation and transitions are so smooth and they are responsive as well

#### 4. React Credit Cards:
[react-credit-cards](https://ovvwzkzry9.codesandbox.io/) slick credit card component will make your website checkout look fun and cool.This component is very easy to setup and plug in your app.You will get a good looking card checkout in your app, which definitely will impress your users and gives them seamless experience on your app.

#### 5. React-Switch-Input :
[react-switch-input](https://erikaperugachi.github.io/react-switch-input/) is a simple switch component, which simulates the ios switch.Using this is as simple as adding `<Switch/>` to your component. It is a small library that you use to add this effect to your website/app form.



Well that's it from me folks. Hope you like the list.

These libraries and components can also be found on the website http://applibslist.xyz/
8th language release v19.08
Tags: eighth, forth, concatenative, crossplatform
Published: 2019-11-29 03:41:43

While I'm sharing news about programming languages I use, here's another which was [released](https://8th-dev.com/forum/index.php/topic,1939.0.html) earlier this month.
> 8th™ is an innovative, secure, cross-platform, robust, and fun
concatenative programming language for mobile, desktop, server, and
embedded application development.

8th is a [FORTH](https://en.wikipedia.org/wiki/Forth_(programming_language)). If you're comfortable with using [RPN (Reverse Polish Notation)](https://en.wikipedia.org/wiki/Reverse_Polish_notation) you're well on the way toward being able to do FORTH programming. And if cross-platform is your thing, 8th is well worth a look.

Disclaimer: I have no connection to Aaron High-Tech Ltd. I'm just a happy user of their product.
I still didn't receive a shipping notification e-mail from Hacktoberfest. 
Tags: hacktoberfest
Published: 2019-11-29 14:00:16

I completed Hacktoberfest 2019 successfully but I didn't even receive any shipping confirmation e-mail. I got in contact and mailed but I got a response which says shippings may delay. I already knew that but isn't it very late? Are such things normal? Did anyone encounter a kind of problem?
Friday Night Deploys: # 5 - Side Projects! (DMX Has A Net Worth Of Negative Ten Million Dollars)
Tags: jokes, webdev, podcast
Published: 2019-11-29 16:44:44

This week the DevPlebs talk about: The British Bulldog! Having babies! Hating episode 4! Doing things! High school nicknames! The regrets of starting a podcast! Ugh, anime! Chain-smoking! Peer pressure! Starting a cult! Shredding! Standing on the backs of better people! Gatekeeping! Sucking (listen to find out more)! Top Friends on Facebook! Wilson from Home Improvement! DMX's net worth! Side projects!

## Listen to The Full Episode!
{% spotify spotify:episode:2LpPeqDs3ZGE43Y7Qoxg8a %}

**We're also on...**
**Apple Podcasts:** https://apple.co/37JeyMF
**Google Music Podcasts:** https://bit.ly/35MX1kY

## New Stuff!
We also upload all of our podcast episodes onto YouTube if that's your thing. Keith has been putting extra special attention in the thumbnails and waiting for the painful upload times. He deserves a round of applause!👏👏👏👏

Because of this new episodes will usually appear on youtube a little later than Friday.

**Channel link:**  https://bit.ly/2R3FmRW

If YouTube is your thing then totes make sure you like, subscribe and ring the notification bell (YouTube media training right there), there could be some additional content one day! 😉

## Get In Touch With Us!
If you would like to share any side projects or want to tell us who your top facebook friends were @ or DM us on our twitter [@devplebs](https://twitter.com/DevPlebs?s=20).

## Follow Our Twitters... If You Want!
[DevPlebs](https://twitter.com/DevPlebs).
[Keith Brewster](https://twitter.com/brewsterbhg).
[Phil Tietjen](https://twitter.com/phizzard).

You can also ask questions or give us some feedback about the show!