teleren/devto huggingface dataset:
Dev's life - its time to reduce the noise 
Tags: productivity, career, agile, discuss
Published: 2021-12-16 10:30:35

{% youtube OuGQwQNeJS4&t=1s %}
Developers are the most valuable asset to any organization, and time and productivity are the most valuable assets to developers.  

The cognitive overload that developers are facing is eating into these assets, and it’s hidden in the small moments, constantly, throughout the day.

Zigi’s here to change that! 
Join Zigi’s beta today and be a part of our mission to #reducethenoise.

👉 https://www.zigi.ai/
MathRenderer for Android
Tags: android, kotlin, mathview, androidlatex
Published: 2021-12-16 10:28:40

## What is MathRenderer ?
[MathRenderer](https://github.com/quantaDot/MathRenderer) is a simple and easy to use kotlin library for rendering mathematical equations or formulas in your android application. It is based on the [MathJax](https://www.mathjax.org/) javascript library. It renders all the equations or formulas in a WebView as `MathRendererView`.

## How it works ?
MathRenderer library uses the MathJax cdn javascript file to render the formulas or equations in a browser, so the app works when it is only connected with internet. Basically this library generate a html Base64 string and load it via WebKit WebView.

## Customization
This library still now offers only four types of customization - 

- text
- textColor
- textAlignment
- mathBackgroundColor

### text
You need to give the LaTex or TeX string with proper syntax to the `text` field.
### textColor
You need to pass the hex color code as a string here to change the colour of text.
### textAlignment
You need to just set the proper `TextAlign`. There are three types of `TextAlign` - `TextAlign.CENTER` `TextAlign.START` `TextAlign.END`
### mathBackgroundColor
You need to pass the colour code as a string to change the whole background colour of the `MathRendererView`.
### A demo code
```kotlin
	binding.mathRenderView.apply {
                text = "This is an equation \\(x^2+6x-9\\)"
                textAlignment = TextAlign.CENTER
                textColor = "#FFFFFF"
                mathBackgroundColor = "#000000"
            }
```

## Installation
Add below lines to app's build.gradle

```groovy
repositories {
	maven { url 'https://jitpack.io' }
}
```
```groovy
dependencies {
	implementation 'com.github.quantaDot:MathRenderer:1.0.3'
}
```
And don't forget to add Internet permission in your app's `AndroidManifest.xml` file
```xml
	<uses-permission android:name="android.permission.INTERNET"/>
```
Sending Web Analytics the better way!!
Tags: javascript, webdev, discuss, tutorial
Published: 2021-12-16 10:23:17

Most of the big companies have there own analytics rather than using third party services like Google Analytics.

I have seen many of the sites using **fetch API** or **XHRHttpReq** for sending analytics event.

### What's the issue in using that fetch API/XHR for sending analytics event?

1. Even if its async, we are using our main thread to send the events.
2. When the send analytics request is queued and user closes the page, your analytics is lost.
3. Poor UX due to slow HTTP Requests, if we put analytics send req on document ```unload``` event

[Read More](https://www.smashingmagazine.com/2018/07/logging-activity-web-beacon-api/#can-t-we-already-do-this)

### What should we do?

Almost all browser's (except IE) gives an API for this use case.

#### Beacon API
> The Beacon API is used to send an asynchronous and non-blocking request to a web server. The request does not expect a response. Unlike requests made using XMLHttpRequest or the Fetch API, the browser guarantees to initiate beacon requests before the page is unloaded and to run them to completion. - [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Beacon_API)

### Why is Beacon API good for sending analytics event?

1. It doesn't block your thread.
2. Browser queues it and takes care to sending the request.
3. Even after queuing the page is closed, the request will be sent.
4. It doesn't takes response from server, sends and forgets.
5. Supported by most of the browsers.

[Browser Compatability](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon#browser_compatibility)

### Caveats

1. It only sends POST request.
2. We can't check if request is received by server.

Connect Me @ [Linkedin](https://www.linkedin.com/in/abhishekraj272/), [Github](https://github.com/abhishekraj272), [Twitter](https://twitter.com/abhishekraj272) 😃
Why should Python programming to students be taught through lectures/education websites?
Tags: python, programming
Published: 2021-12-16 10:08:48

Whenever we talk about programming, we usually think of the back-end aspect of programming. The codes, the working, the development, and the database. We forget that learning and teaching Python can be an alternative career option after studying python. Python is a language with easy syntax making it easier for beginners to learn to code. Students can learn Python at the school level. This will give them sufficient time to learn and imbibe the concepts of Python. Understanding coding at such a young age will also build the logical skills of the students. Python is taught not just in schools but some Universities have included Python in their curriculum. Python programming is popular among developers because by changing the code base, one can experiment with the program. Freelancing is not only offered at the corporate level but also at an educational level. You can join various companies as a Python coding instructor helping the students learn the concepts of Python programming. Online lectures, developing sample programs, and databases and providing resource material would be your tasks. One of the best freelancing options after studying Python is working as a member of various websites solving the queries of the people. Here, the Python community ranges from beginners to experts. There will be timely help in the work of some user that plays a major role in working on his desired project. If this did not exist, one would have stuck on a particular problem for many days. Thus Python is in high demand nowadays. Eliana is a freelancing website and the content it writes is related to their industries. It brings the companies and the freelancers face to face. The freelancers are exposed to the company they can work for and the company also is provided with a workforce. Eliana provides an opportunity for freelancers to work, gain experience and earn. If you are looking for a company to work for, Eliana is perfect for you.
Java 的迴圈控制
Tags: java, loop
Published: 2021-12-16 10:05:22

## Break

`break` 用來中斷整個迴圈：

```java
for (int i = 0, i < 10, i++) {
    if (i = 2) {
        break; // i = 2 就中斷整個迴圈
    } else {
        System.out.println(i);
    }
}
```

輸出：

```
0
1
```

## Continue

`continue` 用來略過某次迴圈：

```java
for (int i = 0, i < 5, i++) {
    if (i = 2) {
        continue; // 跳過 i = 2 的迴圈
    } else {
        System.out.println(i);
    }
}
```

輸出：

```
0
1
3
4
```

## Label

如果是巢狀迴圈的話勒？

Java 的迴圈是可以命名的，稱為 label，可以指定要 `break` 或 `continue` 的是哪一層的迴圈：

```java
labelA: while (i > 0) {
    labelB: while (j > 0) {
        if (j = 2) {
            break labelA; // 會中斷整個 labelA
        }
    }
}
```

帥吧！
Xe nâng kẹp thùng phi 
Tags: xenang
Published: 2021-12-16 09:36:46

## Xe nâng kẹp thùng phi lật đổ

**Xe nâng kẹp thùng phi** có chức năng lật đổ, sử dụng trong ngàng hoá chất, thực phẩm có hoá chất dạng lỏng giúp thuận tiện hơn trong việc xử dụng. Người bình thường khó có thế nhấc thùng nhựa khoảng 70 – 80 kg

## Đặc tính nổi bật  trưng:


- Tất cả được làm bằng thép xây dựng 
- Tương thích với thép và nhựa trống
- Dễ dàng gắn vào xe nâng hiện có của bạn
- Sơn tĩnh điện màu vàng cho khả năng hiển thị cao và bảo vệ khỏi hao mòn
Bạn có thể kiểm soát quá trình đổ phuy thông qua dây xích kéo, có nghĩa là bạn không cần phải rời khỏi xe nâng để đổ.
Phần đính kèm phuy có thể dễ dàng gắn vào dụng cụ hỗ trợ nâng của bạn bằng hai kẹp để cố định nó vào nĩa, nó có móc mắt cho phép tạo dây xích an toàn và thùng / phuy được giữ chặt bằng chốt đôi.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7h59scg0a1d2nqwqt80f.jpg)
Xem thêm tại đây : [ Xe nâng kẹp thung phi](https://hangchavina.com/shop/xe-nang-kep-thung-phuy-drum-clamp/)
Be who you are - Sri Ramana Maharishi's Teachings
Published: 2021-12-16 09:41:20

_** ****Sri [Ramana Maharshi](https://johndavidsatsang.international/ramana-maharshi)] spoke relatively little, therefore his **teachings **were passed down in an unorthodox manner. Rather than giving verbal directions, he continually emitted a silent energy or power that calmed the minds of people who were sensitive to it and occasionally even provided them a firsthand experience of the state in which he was perpetually immersed. Later in life, he grew more eager to give out spoken teachings, but the silent teachings were always available to those who could benefit from them. **[Sri Ramana Maharshi](https://johndavidsatsang.international/ramana-maharshi)** **insisted throughout his life that this silent flow of power reflected his **teachings** in their purest and most concentrated form. His numerous utterances to this effect show how important he thought it was.****_

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a0uztvla6906toex1gq7.jpg)
**
**Sri** [Ramana Maharshi](https://johndavidsatsang.international/ramana-maharshi)  **was advising them to abandon their belief that the truth about awareness could only be revealed to them after they had engaged in extensive spiritual practise. **Sri [Ramana Maharshi](https://johndavidsatsang.international/ramana-maharshi)  **advised a novel approach of self-attention he named **self-enquiry **to satisfy such persons.****
****
Enable smooth typing and cursor animation in VSCode
Tags: vscode, programming, productivity, beginners
Published: 2021-12-16 09:36:49

Not sure how many are aware of this, but i believe this kinda motivates you towards typing your codes all day long. Watching those lines of codes flow like butter along with your cursor is just another satisfying thing to watch for any programmer like the satisfying sounds of their mechanical keyboards. :relieved:

So in this article, I am just dropping a screenshot of my Cursor settings from VScode which you can apply and play around to see what suits you best.

Can be accessed by using 

- Ctrl/Cmd + P 
- Type "> User Settings"
- Search for "cursor"
![Cursor settings screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u3nuljedeg3nx41s69hf.png)

Happy coding! :smile:
Top 3 Reasons to Create a Mobile App for Your Business
Published: 2021-12-16 09:33:46


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tr4l46zbqo3tyuddnv5z.png)
You are a commercial enterprise owner, and also you need to discover new clients and maintain present clients. You're in all likelihood trying to make your commercial enterprise greater applicable withinside the twenty-first Century through leveraging the modern-day era trends. A cell app is fantastic to reinforce your company's photograph and appeal to more significant clients. 

We could be discussing the Top three Reasons to Create a Mobile Application for Your Business.

## Direct Advertising Method for Cheap
What amount of money does your company spend on direct marketing to reach your target audience? Imagine being able to send promotions and advertisements to your target audience for a small one-time fee.

 [A mobile app for your company](https://www.nogatechsolutions.com/mobile-app-development) allows you to instantly notify your audience about new promotions, offers, and announcements. Push notifications from mobile apps will get you a better ROI than TV and internet ads.

 It's possible to create mobile apps for a reasonable price, and you can use the app as a platform for unlimited advertising.

## Make Your Business Online Presentable
A mobile app is the best way to get your business online. A mobile app can offer many of the same features as a website and more functionality that will increase brand awareness and value. 

Mobile apps are easier to maintain, usually don't cost as much upfront, and your customers will love being able to interact directly with your business from their mobile devices.

## Better Customer Interaction
Good customer relationships are essential for all businesses. If you're a new or hooked up business, you'll possibly request remarks from customers. You may also offer support to customers from time to time. 

A mobile app is a great way to gather feedback from customers. People love their smartphones and will complete small surveys through them.
Support can be as simple as a mobile app that allows customers to communicate with you via text message.

 Customers can access your mobile app from their smartphones to get support and service requests.

## A mobile app is a solid investment.
Every business dealing with customers should have a [mobile application](https://www.nogatechsolutions.com/android-app-development-company). Businesses of all sizes can enjoy the ease of a mobile app. A mobile app can advertise, improve customer interaction, and provide a cost-effective channel for direct advertising. A mobile app could make your commercial enterprise stick out from the rest.
VSCode, pipenv, python
Tags: python, vscode, pipenv
Published: 2021-12-16 09:32:31

---
title: VSCode, pipenv, python
published: true
description: How to ensure that the pipenv virtual environment is used in VSCode
tags: [ "python", "vscode", "pipenv" ]
cover_image: 
---

# Python squeezes until the pipenv squeeks

## The problem I have
I don't use python a lot and although I have all the VSCode plugins for python installed, when I load a project up, there are lots of "Problems" about missing python libraries.  "unable to import"
![..and the problem is](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q0y9l2etseougcs2uu3y.png)
The project works fine in the shell, I can run tests and all the things.  All of the projects use pipenv

## What I'd like
I want the missing python library warnings to disappear so I can use the "Problems" pane to find...er...real problems with the code

## Problem with some online info
It seems (and I vaguely remember doing this in the past) it used to be the case that setting the pythonpath in the settings would fix this issue to a great extent.  But now this does not work and the setting is marked as "deprecated"

## VSCode official docs
The official docs for ["Using Python environments in VS Code"](https://code.visualstudio.com/docs/python/environments) are pretty good but they don't give an exact method for using pipenv.  There are some good clues however.  It seems that the key is to make a venv in the file folder .venv in the Project.

## pipenv work around
This work around is good for Linux or a Mac.
 - go to the project directory in a shell.  This can be any shell on the host, including the vscode terminal
 - ensure that no virtual environment is in effect.  The ``deactivate`` command can stop a virtual environment
 - ``PIPENV_VENV_IN_PROJECT=1 pipenv shell``
 - say yes when VSCode asks "add this environment?"
 ![We noticed a new virtual environment...](https://code.visualstudio.com/assets/docs/python/environments/python-environment-prompt.png)
 - probably at this point you need to do ``pipenv update``  For projects with lots of dependencies, this will take a while
 - do a ⇧ ⌘ P "Developer: Reload Window"

## If you still have missing libraries....
 I found that the project - as well as having a Pipfile - had a library in a "vendor" folder!  To fix this make a file in the project directory called .env with the contents ``PYTHONPATH=vendor``

If the folder has a different name to "vendor" set that in pythonpath
Nervogen Pro Reviews – What is Nervogen Pro? | Is Nervogen Pro safe to take?
Published: 2021-12-16 09:30:18

[Nervogen Pro](https://nervogenprous.wixsite.com/nervogenpro) It is made with a mix of nutrients, plants, and spices, consolidated in the right extents to guarantee it viably addresses neuropathic torment. The Nervogen Pro supplement resolves the primary issue that causes nerve torment. It guarantees that the two issues have been annihilated without deteriorating the condition.

https://nervogenprous.wixsite.com/nervogenpro
https://nervogenpro.jimdosite.com/
https://nervogenpro.godaddysites.com/
https://promosimple.com/giveaways/nervogen-pro-reviews-what-is-nervogen-pro-is-nervogen-pro-safe-to-take/
https://promosimple.com/ps/1876b/nervogen-pro
https://sites.google.com/view/nervogen-pro-us/home
https://sites.google.com/view/nervogenprous/home
https://fetchbinarydog.com/nervogen-pro/
https://www.provenexpert.com/nervogen-pro/
https://nervogen-pro.footeo.com/news/2021/12/16/nervogen-pro-reviews-what-is-nervogen-pro-is-nervogen-pro-safe-
https://nervogenpropill.clubeo.com/news/2021/12/16/nervogen-pro-reviews-what-is-nervogen-pro-is-nervogen-pro-safe-
https://caramellaapp.com/nervogenpro/lF5Gz0zzX/nervogen-pro-reviews-what-is-nervogen-pro
https://caramel.la/nervogenpro/lF5Gz0zzX/nervogen-pro-reviews-what-is-nervogen-pro
https://mymediads.com/articles/90267
https://telescope.ac/nervogenpro
https://en.gravatar.com/nervogenpropill
https://www.beatstars.com/nervogenpro/about
https://linktr.ee/nervogenpro
Learn web designing training with A2n Academy
Tags: webdesigningtraining, webdesigningcourse
Published: 2021-12-16 09:27:06

The **[web designing training](https://www.a2nacademy.com/course/web-design-course)** is the solution to all web development problem. The course will teach you all the skills and techniques required to become a professional web designer and an expert in this field.
The web designing training online also has a huge advantage over its offline counterpart because it can be completed at your own pace and time. You can learn at your own convenience without any pressure of deadlines or assignments.
Web designing is an essential tool for individuals who wish to create interactive, eye-catching websites.
The course will equip you with skills that can be used in a variety of job roles including web designer, graphic designer, and a web developer. It also helps an individual improve their chances of being hired by a company.
Before designing a website, you have to have a clear understanding of the design principles. Without this understanding, it would be difficult to create a website that is well-organized and attractive.
A **[web designing course](https://www.a2nacademy.com/course/web-design-course)** can teach you all these principles and more in detail. You can learn basic HTML and CSS language, which will help you to create websites from scratch. This course will also teach you about graphic design such as typography and color theory, usability techniques for web pages, responsive layouts and more.
FastWSGI: An ultra-fast WSGI server for Python
Tags: python, performance, webdev, programming
Published: 2021-12-16 09:01:57

## FastWSGI

I've been developing a Python extension, written in C, that provides users with an ultra-fast WSGI server that they can run their WSGI applications on (Flask, Django and other WSGI apps).

I have also recently managed to get it working on multiple platforms (Linux, MacOS and Windows).

If you want to significantly speed up your WSGI based applications, check it out!

It is still in early development at the moment. Any feedback would be greatly appreciated!

## Links

- [Github](https://github.com/jamesroberts/fastwsgi)
- [Pypi](https://pypi.org/project/fastwsgi/)
- [Performance benchmarks](https://github.com/jamesroberts/fastwsgi/blob/main/performance_benchmarks/PERFORMANCE.md)
How to easily switch between different versions of Nodejs on your system.

Tags: node, javascript, webdev, tutorial
Published: 2021-12-16 09:01:18

## Introduction

> Easily switch between different versions of Nodejs on your system.


In this blog article we'll learn how to switch to a default version when using `nvm`

NVM is a tool that handles what versions of Nodejs you can use. Let’s say one’s working on a cutting edge library that requires the latest version, they would switch/install a version of Nodejs that is compatible with the library.

Scenario two, one is working on a project that requires an older version of Nodejs, let's say `version 8.0.0.` Installing and reinstalling Nodejs becomes hectic and cumbersome. 

`nvm` makes handling versions of Nodejs rather painless.

NVM, (Node Version Manager) enables one to:
1. Install different versions of Nodejs
2. Switch to different versions of Nodejs
3. Set a default Nodejs version from the installed versions
4. Remove installed versions of Nodejs

### Install nvm
This assumes that `nvm` installed already, if not, install `nvm` by:
```bash
# install script for nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
```
Note: Curl installation on your system is also required. Curl enables one to make http request from the commandline.

After downloading and running the `bash` script, set your profile file `~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc` so that nvm is available system-wide.

```bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
```
Check if `nvm` installed correctly by running:

```bash
nvm -v
# prints nvm help menu for various options
```

![terminal screenshot showing nvm](/static/img/default-node-version.png)

### Install a different version of nodejs
To install a different node version using nvm:

```bash
nvm install 14.0.0
```
NVM handles the installation of the Nodejs version for you, afterwards , you may use this version when needed or as needed:

To use the Nodejs version from above:
```bash
nvm use 14.0.0
```
This command tells NVM to switch Nodejs to this version, the changes apply system-wide which is kinda cool, isn't it?

#### Set a default version of Nodejs using NVM

To set a default version of Nodejs using nvm, use this syntax:

```bash
nvm alias defaut <your_nodejs_default_version>
```

To switch to version we installed above `14.0.0`, run:

```bash
nvm alias default 14.0.0
node -v # prints 14.0.0
```

***
NVM makes handling nodejs versions on your system rather painless and easy especially if you heavily use Nodejs as a tooling for your frontend work flow.

NVM offers more options such as:
- uninstall a Nodejs version
- Switch to a Nodejs version, `nvm use <nodejs_version>`

Further refference:
[https://github.com/nvm-sh/nvm](https://github.com/nvm-sh/nvm)
counter web app
Tags: codepen, counter, counterapp, numberapp
Published: 2021-12-16 08:54:30

<p>counter web app using html, css, js. when you click on the button then the heading content changes as per instrutions.</p>

## CODEPEN LINK:
{% codepen https://codepen.io/Abhi7raj/pen/dyVvgJy %}

for any doubt comment guys.