teleren/devto huggingface dataset:
Lists in Python
Tags: python, datascience, machinelearning, beginners
Published: 2020-08-11 12:41:06

Lists

list.append(x)
Add an item to the end of the list. Equivalent to a[len(a):] = [x].

list.extend(iterable)
Extend the list by appending all the items from the iterable. Equivalent to a[len(a):] = iterable.

list.insert(i, x)
Insert an item at a given position. The first argument is the index of the element before which to insert, so a.insert(0, x) inserts at the front of the list, and a.insert(len(a), x) is equivalent to a.append(x).

list.remove(x)
Remove the first item from the list whose value is equal to x. It raises a ValueError if there is no such item.

list.pop([i])
Remove the item at the given position in the list, and return it. If no index is specified, a.pop() removes and returns the last item in the list. (The square brackets around the i in the method signature denote that the parameter is optional, not that you should type square brackets at that position. You will see this notation frequently in the Python Library Reference.)

list.clear()
Remove all items from the list. Equivalent to del a[:].

list.index(x[, start[, end]])
Return zero-based index in the list of the first item whose value is equal to x. Raises a ValueError if there is no such item.

The optional arguments start and end are interpreted as in the slice notation and are used to limit the search to a particular subsequence of the list. The returned index is computed relative to the beginning of the full sequence rather than the start argument.

list.count(x)
Return the number of times x appears in the list.

list.sort(key=None, reverse=False)
Sort the items of the list in place (the arguments can be used for sort customization, see sorted() for their explanation).

list.reverse()
Reverse the elements of the list in place.

list.copy()
Return a shallow copy of the list. Equivalent to a[:]

Share and Support t.me/python_codes
Python Zero to Hero - Ep.22 - Python os and subprocess
Tags: python, tutorial, beginners, io
Published: 2020-09-08 14:06:27

---
title: Python Zero to Hero - Ep.22 - Python os and subprocess
published: true
description: Today we will explore the Python os and subprocess module and see how it could help us in reading and writing files. Also how you can use subprocess to spin up a docker container.
tags: python, tutorial, beginner, io
---
Today we will explore the Python os and subprocess module and see how it could help us in reading and writing files. Also how you can use subprocess to spin up a docker container. If you have any questions or any suggestions about which Python topics to cover, please leave your comment at my [Twitch channel](https://www.twitch.tv/cheukting_ho)

You can get the slide deck [here](https://slides.com/cheukting_ho) and the example code and homework form [GitHub here](https://github.com/Cheukting/python02hero). Ask questions at my [Twitch channel](https://www.twitch.tv/cheukting_ho)
Devart joins the Winners’ Circle of 2020 DBTA Readers’ Choice Awards
Tags: database, dotconnect, mysql, sql
Published: 2020-09-08 13:55:32

---
title: Devart joins the Winners’ Circle of 2020 DBTA Readers’ Choice Awards
published: true
description: Devart joins the Winners’ Circle of 2020 DBTA Readers’ Choice Awards as winners and finalists in multiple nominations.
tags: database, dotconnect, MySQL, SQL 
//cover_image: https://blog.devart.com/wp-content/uploads/2020/08/Banner_blog_DBTA-2020.png
---
*Devart has announced the release of a new tool, dbForge Schema Compare for PostgreSQL, which suits best for quick and efficient comparison of Amazon Redshift and PostgreSQL databases.*

Devart, a recognized vendor of professional database management software and world-class data connectivity solutions, joined the **Winners’ Circle of 2020 DBTA Readers’ Choice Awards**. This year the Czech company won a nomination with its dotConnect data providers.

[dotConnect](https://www.devart.com/dotconnect/) includes enhanced ORM-enabled ADO.NET data providers ensuring high-performance access to databases and clouds. The solution goes beyond ordinary providers and offers a visual ORM designer (the best one on the market), support for Entity Framework and Entity Framework Core, and advanced SQL support for clouds. Thus, it is not surprising that DBTA readers have chosen it as **the Best Data Integration Solution**.

Also, that wasn’t the only Devart solution to win the recognition. The vendor got four more finalists in the following nominations:

• Best Data Modeling Solution: [dbForge Studio for MySQL](https://www.devart.com/dbforge/mysql/studio/)
• Best Database Development Solution: [dbForge SQL Complete](https://www.devart.com/dbforge/sql/sqlcomplete/)
• Best Database Backup Solution: [dbForge for SQL Server](https://www.devart.com/dbforge/sql/studio/)
• Best DBA Solution: [dbForge SQL Complete](https://www.devart.com/dbforge/sql/sqlcomplete/)

The Devart team appreciates users for their support as it inspires and builds strong motivation to remain in the lead — https://blog.devart.com/devart-joins-the-winners-circle-of-2020-dbta-readers-choice-awards.html

**Database Trends and Applications (DBTA)** is a magazine covering data and information management, big data, and data science. The magazine delivers advanced trends analysis and case studies serving the IT and business stakeholders of complex data environments.

**About Devart**

Devart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration and backup solutions. The company also implements Web and Mobile development projects.
For additional information about Devart, please visit https://www.devart.com/
Low-Bandwidth Communication
Tags: watercooler, communication, remote, career
Published: 2020-09-08 13:46:43

---
title: Low-Bandwidth Communication
published: true
description: Recently, I have had several discussions with various organizations about remote communications. Here's I will condense some of the finer points.
series: Working Remote
tags: Watercooler, Communication, Remote, Career
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/eipwo8kvs5wcdrufywh7.png
---

Recently, I have had several discussions with various organizations about remote communications. I also have my own opinions on things. Here's I will condense some of the finer points.

## Working (and Communicating) Remotely

At the beginning of the Pandemic lock-down, we started putting out sidewalk chalk. For several months, we had glorious artwork put out by neighbors walking by.

Here are a few other things I learned ...

1. Embrace the Chaos (my son has been filling our bird feeders just to watch the different birds that come by).
2. Focus on the people rather than the location.
3. Camera ON. This raises the level of accountability, allows for clear non-verbal communication, and allows people to stay focused on the meeting.
4. Don't use a hammer for everything. Sometimes a richer medium of communication (Zoom) is better (than Slack).
5. Trust each other.
6. Respect downtime.
7. Be present, give input, and communicate.
8. Focus on team or organization goals, not differences.

> Working Remotely: From Isolation to Inclusion to Innovation with Craig Golightly (Pluralsight LIVE 2020)

Work with your organization to provide proper tooling. A recent client had their Outlook servers secured. We had to be connected via a VPN to get to our email. They have since moved this to Office365 and now I can get to my email and calendar without the VPN connection!

## Low Bandwidth Communication

1. Switch off video and audio: Have as many people as possible turn off their video and audio.
2. Close all other applications, unless they are needed for sharing.
3. When connecting from remote, rural areas, use cell-phones: with video off, the audio is generally solid.
4. Co-Hosts can record if the host is having bandwidth issues.
5. Make sure your hardware is working well. Check your router, modem, and computer to make sure they are working properly.
6. Fix your WiFi signal. Sometimes you can improve your WIFI signal simply by repositioning or tweaking your router.
7. Install an ad-blocker to block ads, animations, and videos that hog bandwidth. Alternately, look into a browser live Brave that blocks advertisements automatically.
8. Limit the number of devices connected to the Internet.
9. Change your browser settings. Most browsers allow users to switch off images, which can conserve bandwidth.

### Per **[Zoom Support](https://support.zoom.us/hc/en-us/articles/201362463-Wireless-WiFi-Connection-Issues)**

* Test bandwidth via speed test.
* Turn off VPN, if possible.
* Connecting WIRED versus WIFI.
* Place computer closer to the WIFI access point.
* Upgrade WIFI firmware.
* Use WIFI extender.
Visualizing happiness by region in a box plot [Tutorial/JS]
Tags: tutorial, beginners, javascript, datascience
Published: 2020-09-08 13:30:41

A [box plot](https://www.anychart.com/chartopedia/chart-type/box-chart), also widely called a box-and-whisker plot, is a data visualization technique used to visualize descriptive statistics of datasets. While this chart type is not as useful as a histogram at understanding a single datasets distribution, these visualizations do well at allowing a user to compare different datasets.

Box plots visualize the following summary statistics: The median, the first and third quartile (Q1 and Q3), the low and the high as well as the outliers. These are displayed as follows:
![Box plot scheme](https://dev-to-uploads.s3.amazonaws.com/i/dvyzwj9gb869hfj6w38h.jpeg)

There's a cool new tutorial covering how to build an interactive box plot using JavaScript and a charting library. Look at the basic steps and then finally see the technique in use, in a fun example to investigate the distribution of happiness between the different regions of the planet in an attempt to answer the question: ‘Where should you live to be happier?’.

Check out the [JS box plot tutorial on Towards Data Science](https://towardsdatascience.com/building-box-plots-using-javascript-visualizing-world-happiness-ab0dd1d370c5?source=friends_link&amp;sk=14b4762adad71f5c458352355532b475). All charts from the tutorial are available with the full code on CodePen.
List of free tier "as a service offerings"
Tags: devops, webdev, beginners
Published: 2020-09-08 13:13:11

https://free-for.dev/#/

Great project which provides a curated list of all services that provide a minimum of 1 year free tier or free tier. 

NOTE: This list is only for as-a-Service offerings, not for self-hosted software. For a service to be eligible it has to offer a free tier and not just a free trial. If the free tier is time-bucketed it has to be for at least a year. We also consider the free tier from a security perspective, so SSO is fine but I will not accept services that restrict TLS to paid-only tiers.
My 5 Practical CSS Tips
Tags: webdev, css
Published: 2020-09-08 13:11:13

This is going to be a short post with my best CSS tips. I'll do my best to share references for every tip so you can read more and get a better understanding.

# rem

When you use pixels, you ignore the user's browser settings and break your website accessibility. If the user chooses to change its default font-size, by using pixels you override this setting. Enter rem! rem is a CSS unit to set an property relative to the HTML root font-size (16px by default). Using rem makes your site responsive to font-size changes and aligned to the user's settings.

{% twitter 1300690100741967877 %}

References:
https://engageinteractive.co.uk/blog/em-vs-rem-vs-px
https://css-tricks.com/is-it-better-to-use-ems-rems-than-px-for-font-size/

# Nesting

Nesting is still not an official CSS feature (it's in discussion) but already very common. It's available in frameworks such as PostCSS, and Sass.
By utilizing nested selectors, you improve the readability and maintainability of your CSS code. It eliminates the need to duplicate classes, ids, and selectors all around.

References:
https://github.com/postcss/postcss-nested
https://drafts.csswg.org/css-nesting/#:~:text=3.1.-,Direct%20Nesting,compound%20selector%20of%20the%20selector.


# content-visibility

content-visibility is a new CSS property that boosts your rendering performance. You can tell your browser to lazy render an element. The browser will skip the rendering which includes both layout and painting until it's necessary. You can set `content-visibility: auto` on any below the fold elements for an immediate performance boost.

References:
https://web.dev/content-visibility/


# Using padding-top to keep aspect ratio

It might be surprising by padding in percentages is calculated based on the parent element's width. Yes, yes, even padding-top and padding-bottom. This is super weird by it's handy if you want to keep an aspect ratio. Why? For example when using images. It's a best practice to set the size of an element that is dependent on a large payload, such as an image. It prevents annoying changes in layout and makes it easier to design responsive components.

References:
https://css-tricks.com/aspect-ratio-boxes/

# Use a framework

PostCSS (my favorite), Sass, no matter what just use one. They usually have a built-in prefixer to add browser compatibility at build-time. And they have plugins that will make CSS development a bit easier.

References:
https://postcss.org/
https://sass-lang.com/

<hr/>

_[Daily](https://r.daily.dev/get?r=devto) delivers the best programming news every new tab. We will rank hundreds of qualified sources for you so that you can hack the future._

[![Daily Poster](https://dev-to-uploads.s3.amazonaws.com/i/b996k4sm4efhietrzups.png)](https://r.daily.dev/get?r=devto)
Should I Go For Node or Golang
Tags: webdev, go, node, javascript
Published: 2020-09-08 07:52:16


![Title](https://res.cloudinary.com/practicaldev/image/fetch/s--EoZx6u6Y--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/i/jcsacwi94as8hu7mo3ow.jpg)

# So Should I Learn Golang or Node js

## The short Answer is "you should go for Node js" let me explain ..

# So The Learning Path ??

## When It comes to golang its dedicated for web dev but node js is the best because it uses js. js is being used every where. js is a mature language on the other hand go lang still developing and it can be used only for backend. Mostly Both Language is made for web dev. Most Developers preffer using node js.Go Lang has a steep learning curve.\
# Conclusion


# Keep Coding !!!


# 🙏  Share with your friends on  [Twitter](https://twitter.com/intent/tweet?text=%20Should I Go For Node Js Or Golang ?? %20%20https://dev.to/alestor123/so-should-i-go-for-node-js-or-golang-1l4b"Share It" )
 
 
<h2 align=center> 👇  Find more posts on the following topics </h2>
Branching workflows for Git
Tags: git, productivity, android, management
Published: 2020-09-08 13:00:16

Hello, I am an android developer, working in a startup.

I have made a few changes in the git branching workflow for better development and testing management.

Branch name and functionalities:

__*alpha*__ 
Merge all the features and bugfixes from all developers. 
Build made from this branch will be unstable under development. 
At any point in time, in case of unresolvable conflicts, this branch can be made the same copy as the development branch and devs can again merge their work from features and bugfixes branches.

__*development*__
Merge all the features and bugfixes from all developers after it is been tested from the developers end. Pull request should be generated before merging.
Build made from this branch will be stable under development and can be given to tester for testing.

__*master*__
Merge development branch after tester gives stable signoff to the app. Pull request should be generated before merging.
Build made from this branch will be release app that will be uploaded to the play store.

__*features/feature-title*__
Feature branches are used when developing a new feature or enhancement which has the potential of a development lifespan longer than a single deployment.
This branch is extracted from the development branch merged to alpha for testing and finally pull request is created to merge  with the development branch and the branch is closed after merging to development

__*bugfix/bug-short-title*__
Bug branches will be created when there is a bug on the live site that should be fixed and merged into the next deployment.
Same as a feature branch, this branch is extracted from the development branch merged to alpha for testing, and finally pull request is created to merge with the development branch, and the branch is closed after merging to development.


*Android Developers can name there builds, for uploading it to firebase app distribution(App Tester), as:*

**alpha-1.0.0** > Unstable under development > Git branch: alpha

**beta-1.0.0** > Stable under development > Git branch: development

**rc-1.0.0** > Released app(uploaded to play store) > Git branch: master


**Thanks for Reading**
I thought to share my experience with you all. I will appreciate your thoughts on this workflow.

Stay Health.
Keep Coding.
My 100 days of code journey
Tags: 100daysofcode, javascript, github, node
Published: 2020-09-08 12:58:53

Hi Everyone,
I have completed my 100 days of code journey and consolidated my experience through a blog post. You can find it here: https://ps011.github.io/#/blog/5f53714dc0889f0017ea2011
Do read it whenever you have time and let me know how was it.
multi-thread —— handler
Tags: android
Published: 2020-09-08 12:56:04

when it come to handler,we will think of handler, looper, message.
**handler**:the processor of message,communicate with looper,push the new message into the MessageQueue or receive message send by Looper from MessageQueue
**Looper**:the processor or circulator of MessageQueue,a thread can product a Looper object,it manages the MessageQueue of this thread
**MessageQueue**:as the name suggest,it used to store the message witch put in by the thread.it follow the first in and first out principle
**message**:linked list data structure.it can be reused,in order to avoid wasting memory by creating a large of object

#the function of handler#
1) schedule message or runnable,receive message,hand out and process message
2) Executing tasks in different threads("to enqueue an action to be performed on a different thread than your own")
#how to use
in development,we can't update UI in child thread,so we send the UI message that need to be updated to the handler,and overrid handleMessage() to deal with the UI operations.Message and handler two classes will be used,Message is responsible for loading message,marking messages with target and storing contents with obj;Handler is responsible for the hand out and processing of messages
to avoid memory leaks,we'd better do 2 things:
1) Call removeCallbacksAndMessages(null) in the onDestroy()
2) Set static inner class and weakreference
*tips:
a:one thead can only bind one looper,but can have several handler
b:one looper can bind more than one handler
c:one handler can onely bind one looper*
#workflow of handler#
The workflow of handler is executed in the order of message > message queen > loop > handler.
In general, create a handler in the main thread, will directly create the Loop, MessageQueue, and Handler objects in the main thread. The loop object is usually created through the prepare() method.when the looper object is created MessageQueue will be automatically created at the same time.In the worker thread, the handler sends the message through sendmessage() or post(), and in the send() method, enqueuemessage() is used to transmit the message to the message queue,Then looper will take out the message in the MessageQueue through the next () , and send message to the handler through dispatchmessage(). The handler will start processing the message after receiving the message. If the message is not available, the thread will be blocked until there is a message in the message queue.
Version Control Basics
Tags: git, github, beginners, discuss
Published: 2020-09-08 12:33:15

Hi everyone, Sharing some useful git commands to use,
```
$ git init
Turn an existing directory into a git repository
```
```
$ git status
Tells what's going on
```
```
$ git add <filename>
adds files to staging area
```
```
$ git commit
Creates a new commit
- Write good commit messages!
```
```
$ git clone [url]
Clone (download) a repository that already exists on Github
```
```
$ git pull
Updates your current local working branch with all new commits from the remote branch
It is a combination of git fetch and git merge
```
```
$ git log
Shows a flattened log of history
```
```
$ git log - - all - - graph - - decorate
Visualize history as a DAG(Directed acyclic graph)
```
What commands would you add?
⭐ this GitHub repository for Array pseudo-codes! 🎉
Tags: java, datastructures, algorithms, github
Published: 2020-09-08 12:28:45

I have been learning data structures and algorithms for a while and have been learning using various resources online.

I started with the simplest data-structure, **Arrays**.

As a part of this, I maintained a **Github repository** to save all the pseudo-codes so that it becomes easy for future reference.

{% github rakshakannu/Datastructures-arrays %}

Most of the code is in JAVA, but since they are pseudo-codes, you shouldn’t have any difficulties understanding it even if you are using other languages. 😊

If you are learning Datastructures and algorithms, you can **star ⭐️ or fork** this repository, I'm sure it will help you in the ***last minute revision!***

Since there are a lot of people preparing I thought sharing this will help many aspirants like me who are preparing for interviews or want to improve their DSA skills!

Will be sharing more, as and when I progress.

Keep coding! keep learning! keep growing! 💖