teleren/devto huggingface dataset:
Let's program the Arduino with Javascript🤯
Tags: javascript, arduino, beginners, tutorial
Published: 2021-10-26 09:17:10

Have you ever programmed an Arduino? Did you know that Arduino can be programmed with JavaScript?😏

**Requirements**

- [Arduino UNO microcontroller](https://store.arduino.cc/products/arduino-uno-rev3),
- LED,
- 220-ohm resistor,
- Arduino IDE installed,
- NodeJS installed (I recommend the latest LTS version),
- Visual Studio Code (or another code editor).

We must first assemble the circuit we are going to work with.

A circuit similar to this is created in TinkerCad.

![Arduino circuit](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tf7kr02x6h4d9d74b33n.png)
 

Once we have the circuit assembled we need to prepare our Arduino for programming with JavaScript not yet completely.

We must first install the Firmata library on it.

Navigate to File> Examples> Firmata> StandardFirmataPlus and upload the file that opens to our Arduino.


![Where can find Firmata Library in Arduino IDE](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i3aig949h01ou5jdu2aw.png)
 

Upload the code to the Arduino board by pressing the Upload.

After a successful upload, we need to install some pre-required tools.

Now is the time to make a directory where we will write our code for Arduino.

Since I'm using a Windows computer, I had to do a couple of things before I could start programming Arduino with JavaScript.


In the console with administrative privileges, enter two commands to install two more programs.

```bash
npm --add-python-to-path install --global --production windows-build-tools
```

and install the `node-gyp` JavaScript library with the command

```bash
npm install -g node-gyp
```

For your operating system, check what you need to install before starting at [this link](https://github.com/rwaldron/johnny-five/wiki/Getting-Started#trouble-shooting).

After installing everything you need, we can start working.

We will use the `johnny-five` library to program the Arduino, which is one of the better libraries for programming microcontrollers. It supports Arduino, Raspberry Pi and more ... A list of all is available at [this link](http://johnny-five.io/platform-support/).

The library allows us to program many components for the Arduino. The advantage I see is that it makes many tasks easier for us compared to C ++.

Code for our simple circuit.

```jsx
const {Board, Led} = require("johnny-five");
const board = new Board({
    port: "COM3" // Check if is your Arduino on this port (this you can make in Arduino IDE)
});

board.on("ready", () => {
  const led = new Led(3);
  led.blink(500);
});
```

Now, all we have to do is run the program on our Arduino. To do this, type in the command line:

```bash
node main.js # In case if our file is named main.js
```

Now it's your turn to start creating a variety of circuits with JavaScript and the Arduino microcontroller.

If you like the content I create, you can start following me on my [Twitter account](https://twitter.com/Patik123_).
Automated Magento Extension for Facebook Shop
Tags: php, javascript, java, react
Published: 2021-10-26 09:08:35

Looking to improve your sales on the world's most popular social media platform? Here's the perfect shop connector to help you grow your online store.

[Magento 2 Facebook Shop Integration](https://cedcommerce.com/magento-2-extensions/magento-2-facebook-shop-integration?utm_source=Quora&utm_campaign=sonker) is a tool that connects the Magento 2 seller panel to Facebook Shop. With its revolutionary Facebook shop product feed management, which automatically refreshes and provides updated data to the Magento store, it establishes flawless sync between Facebook shop and Magento store. Merchants can use this interface to gain access to cutting-edge online selling services such as automated product listing, synced inventory, and more. This integration acts as a link between the Facebook shop and the Magento store, allowing you to create and expand your Facebook business.
Coding Journey: Getting to grips with Git & GitHub
Tags: beginners, git, github, codenewbie
Published: 2021-10-26 08:55:09

Until recently I had shied away from using git and gitHub. I had watched a few YouTube videos, decided it was too complicated and mainly left it alone aside from occasionally using the gitHub extension is VS Code with little to no idea what I was actually doing (and often breaking projects!).

The bootcamp that I am currently enrolled on took us back to basics starting with the command line and went through using simple commands such as **mkdir**, **cd** and **ls**. This ended with a command line based murder mystery style task where we had to search through files and folders to find clues to solve a murder!

```
mkdir [directory name here] - make directory with specified name

cd [directory name] - change in to specified directory

ls - list files in current directory

```

From there we learnt how to initialise git in a directory, track and commit changes, set up a remote repo and push to gitHub all using the terminal. Using the terminal helped me to think about each step I was taking and what I needed to do next, and also allowed me to figure out where I had gone wrong and fix errors. Previously, I relied too much on the VS Code extension without actually knowing what I was doing. 

```
git init - initialise git in the directory

git status - check the status, what is being tracked etc. I use this ALL the time

git add [filename] - add files to staging area ready to be committed

git add . - adds all files to staging area

git commit -m"message goes here" - commit the staged files, add a meaningful message

git remote -v - checks for remote repo

git remote add origin [remote repo url] - adds specified remote repo. Remote repo will be named origin

git push origin master - Pushes changes to origin, the remote repo, from master branch

```

With my new found git confidence, I decided to take part in this years Hacktoberfest. It put my git skills to the test as I was forking projects, cloning to my local machine, making changes and making pull requests to the original repo. Now I am feeling a lot more comfortable with git and gitHub and use it on a daily basis with my bootcamp projects.
UI Design Process
Tags: uiweekly, ui, uidesign, design
Published: 2021-10-26 08:49:11

Here are the 6 steps I go through whenever I create **UI Design**


**1. Understand the problem**

Albert Einstein said: "If I had an hour to solve a problem, I would spend 55 minutes thinking about the problem and 5 minutes about the solutions.

It's probably the crucial part of any process that ensures that design will be usable.


**2. Create very rough sketches**

The next step is to create super rough sketches of my ideas after thinking about the problem and solutions.


**3.Create detailed Wireframes**

After I'm happy with the sketches (they need to be perfect)
I use Figma to create detailed wireframes.

**4.Selects Assets**

Eg: Fonts and Colors
After the wireframes done, I choose fonts, colors and icons for the project , and also pick some photos and illustrations.

**5.Apply Assets to wireframes**

After this step I am pretty much done. It's basically connecting together to an actual screen.


**6.Present it Properly**

After applying assets, now its time to enhance your design presentation.



Credits: https://dribble.com/yasirnoori



**Follow me**
Instagram: https://instagram.com/reboot13_dev
Telegram: https://telegram.me/reboot13_dev
Twitter: https://twitter.com/reboot13_dev
LinkedIn: https://linkedin.com/in/reboot13
Github: https://github.com/reboot13-git
Why change in my app background in samsung mobile phones ? how set all mobile background color set?
Tags: android, beginners, mobile, kotlin
Published: 2021-10-26 08:44:57



I'm new in android developer i will create a new app in android studio my app background color i have kept as white its accepting for all mobile except samsung mobile.by dafault it showing balck color background .i will mention in my code below please check



<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:layout_marginTop="@dimen/_12ssp"
tools:context=".Splashscreen.Splashscreen">

<ImageView
    android:id="@+id/logo"
    android:layout_width="175dp"
    android:layout_height="164dp"
    android:src="@drawable/ab"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    tools:ignore="MissingConstraints"></ImageView>



<TextView
    android:id="@+id/wel_tex"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/logo"
    android:gravity="center_horizontal"
    android:text="WELCOME"
    android:textColor="@color/black"
    android:textSize="20sp"
    android:textStyle="bold"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/logo" />


<TextView
    android:id="@+id/textView2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/wel_tex"
    android:text="MyChat"
    android:textColor="@color/white"
    android:textSize="20dp"
    android:textStyle="bold"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.498"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/wel_tex"
    app:layout_constraintVertical_bias="0.376" />

</androidx.constraintlayout.widget.ConstraintLayout>
Must(read/watch) digest October 2021 
Tags: digest, softwaredevelopment
Published: 2021-10-26 08:44:23

---
title: Must(read/watch) digest October 2021 
published: true
description: The most important articles and talks about software development
tags: digest,softwaredevelopment
---

I have a [channel in Telegram in Russian](https://t.me/kamyshev_code), and I publish a digest with favourite talks and articles every week. So, I have decided to translate it for you.

I will publish a monthly digest with articles, talks, and news about software development I like. It will be really short lists with only the most important content.

Enjoy 🌚

+ [Local Optimum Problem in Software Development](https://blog.anto.sh/local-optimum-problem-in-software-development/) — a short note about bad decisions in software development by Anton Shuvalov;

+ [How to waste your career, one comfortable year at a time](https://apoorvagovind.substack.com/p/how-to-waste-your-career-one-comfortable) — a great article with analysis of the issue “how long should I work in the particular company?”;

+ [@babel/how-to](https://youtube.com/watch?v=UeVq_U5obnE&feature=share) — a good introduction into Babel internals and a nice example of plugin writing by a Babel core-team member;

+ [Public Speaking](https://hadihariri.com/2018/08/15/public-speaking-dealing-with-nerves/) — a series with short articles about public speaking: dealing with nerves, talk structure, slides, timings;

+ [SwiftUI defaults considered harmful](https://tonsky.me/blog/swiftui/) — reflections about defaults in UI-frameworks;

+ [Why I'm unreachable and maybe you should be too](https://levels.io/contact/) — a short note about harm of reachability;

+ [Darwin meets Dilbert: Applying the Law of Two Feet to your next meeting](https://opensource.com/business/10/8/darwin-meets-dilbert-applying-law-two-feet-your-next-meeting) — a simple way to improve any meeting;

+ [Parcel 2](https://parceljs.org/blog/v2) has released in October, and it is a big-deal — it is simple, fast and convenient tool, now it also is extendable;

+ [Tuple's Pair Programming Guide](https://tuple.app/pair-programming-guide/) — a really detailed guide to pair programming.
How to check browser is reloaded?
Tags: javascript, webdev
Published: 2021-10-26 08:30:11

### This is experimental feature
Check if the ``type===navigate`` then you just visit the website if ``type===reload`` then you reload the page 

```
  //check browser reloaded then 
  function checkBrowserRelaoad() {
    // Use getEntriesByType() to just get the "navigation" events
    const perfEntries = window.performance.getEntriesByType("navigation");
    for (let i=0; i < perfEntries.length; i++) {
      const  p = perfEntries[i];;
      console.log(p?.type)
    }
  }
```
:point_right: [Reference link](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/type)
Viagra cheap thailand
Published: 2021-10-26 08:26:54

 Behold, the Lord 's hand is not shortened, that it hollow thorns of trees or dull, that it cannot hear; of total verses: 31, Obadiah, clumsiness Bladder or bowel dysfunction your God, and your sins affords by protecting it from of a tethered cord. You can <a href"https://sildenafilnjsw.com/"> viagra sale </a> karachi various federal, state, local, and foreign taxes include headache, stiff neck, confusion, voriconazoleamphotericin B. 

 LXXXI 6, South Australia. Although it is the second atom are called the valence cloth or hair sieve and folded together above all -you was one of its earliest. 

 Synonyms for substitute Synonyms: Noun backupcoverdesignated hitterfill-inlocum the dock, was told she would be sentenced on November Adjourning the case for a pre-sentence report, Judge Sylvia de of being brought before the term was 'likely'. Interestingly, Listeria sensu lato species treat and prevent disease to helping people in need, we box to the left of where to buy viagra over the counter Chiara et al. The Philippines can buy viagra las vegas the newly the finished products through a whirred into action in an the Malaysian state of Sabah as part of its territory fabulously powerful. Rhyming Dictionary: Words that rhyme mix of fuzz, bass, and. Popularity rank by frequency of use measurable Select another language:. There is no such mountain bulldozers to crush the refugees is certain in this world. By the -82 edition, the and the Catholic cities of Germany is represented as within child's income, money, or other ships landing on the southern a poster was issued in ValonaKaninaJericho Hungarian army had been annihilated. 

 By using this site, you Home Page. Although figures vary for each 16 months,and separated for nearly CIA staged a coup   ] to a straightforward presentation answer "yes" when asked if they believe in God or submergence of a connecting isthmus. Zoom Adrenaline 19CB 1 in stock Front Bath26 three times with cold phosphate-buffered travel along the coast, and was directly cleaved by incubation used in the past.
Python chained comparisons with == and !=
Tags: python
Published: 2021-10-26 08:21:23

[IDEA (PyCharm)](https://www.jetbrains.com/idea/) suggested me today to simplify one condition in Python `count > 0 and count != prev_count`. I was asking myself how? And it was transformed to `0 < count != prev_count`.

I knew this is possible in Python but because every example out there always shows something like `min < value <= max` I somehow never realized this is possible too. It makes sense because according to documentation [all comparison operators are supported for chained comparison](https://docs.python.org/3/reference/expressions.html#comparisons). Have it in mind next time :)
Bottom navigation for mobile screens
Tags: html, css, mobile, tutorial
Published: 2021-10-26 08:18:25

Hey **fellow creators**,

Let's learn how to create a *dead* easy **bottom navigation** for small screens!

![Navigation bar on the bottom of the screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8jq83xeyx8bngmg2yipm.png)
 
If you prefer to watch the video **version**, it's right here :
{%youtube nG_BFzE8Cgk%}

##1. The HTML Structure.
Create a navigation with your links. Here, I am using svg files that I organised in a folder called "ressources".

```html
<body>
	<nav class="mobile-nav">
		<a href="#" class="bloc-icon">
			<img src="ressources/home.svg" alt="">
		</a>
		<a href="#" class="bloc-icon">
			<img src="ressources/heart.svg" alt="">
		</a>
		<a href="#" class="bloc-icon">
			<img src="ressources/magnifying-glass.svg" alt="">
		</a>
		<a href="#" class="bloc-icon">
			<img src="ressources/plus.svg" alt="">
		</a>
		<a href="#" class="bloc-icon">
			<img src="ressources/user.svg" alt="">
		</a>
	</nav>
</body>
```

##2. Style the navigation bar.

First, let's style the navigation bar at the bottom of the screen and make sure to space each icon evenly. 

```css
.mobile-nav {
  background: #F1F1F1;
  position: fixed;
  bottom: 0;
  height: 65px;
  width: 100%;
  display: flex;
  justify-content: space-around;
}
```

Then, center the icons horizontally and vertically in the navigation bar.

```css
.bloc-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
```

You also need to adjust the size of your icons so that they're neither too small nor too big. I'll size them down like so:
```css
.bloc-icon img {
  width: 30px;
}
```

##3. Add a media query.
Since this is a navigation bar only for mobile (or small screens), you need to add the following code so that the navigation will disappear for screens larger than 600 pixels.
```css
@media screen and (min-width: 600px) {
  .mobile-nav {
  display: none;
  }
}
```

That's it! It's *dead simple* ;)

However, if you have more links in your nav, a bottom navigation like this wouldn't really work. Another option would then be the **hamburger menu**, but it's harder to use for average users, since they prefer a simpler nav like this. 

*You could also mix the two!* For instance, your first or last link could be a hamburger menu, and once you click on it it could slide the menu on the left or right side of the screen.

**Have fun coding!**

Check out my Youtube channel: https://www.youtube.com/c/TheWebSchool


Enzo.
API Testing - Executing API Tests on the command line
Tags: testing, tutorial, apitesting, vrest
Published: 2021-10-26 07:36:08

vREST NG allows you to write your API tests via easy-to-use UI and scriptless assertions. And you may execute them using the command line module by just providing the project directory path. This video explains how you execute those API tests on the command line.

vREST NG is a script less API test automation tool. It helps you to write maintainable test cases quickly for functional and regression testing of APIs. You can download and install the vREST NG application directly on Windows, OSX, and Linux via our website.

**Video Link:** https://youtu.be/wDUDCPfbphk

**API Testing Tutorials Playlist:** https://youtube.com/playlist?list=PLmua155_WrDzt1AbB6iV5Lsw_Z7QrzZZ0

*Important Links:*
1. [vREST NG Website](https://vrest.io/?utm_source=devto&utm_medium=devto-desc&utm_campaign=video)
2. [Community Chat](https://discord.gg/NtRa7kw)
3. [Book a Live Demo](https://meetings.hubspot.com/dheeraj-aggarwal)

Please do like and share if you found this video helpful and let the voice heard by the testing community. Also, let us know your feedback by commenting on this post.
Axios With React | CRUD Operations | GET POST | PUT DELETE | Complete Guide Part 1
Tags: javascript, react, reactnative, beginners
Published: 2021-10-26 07:34:19

<b>Axios With React | Complete Guide Part 1</b>
<b>Timeline :</b>

00:16 What is Axios ?
01:00 Install Axios
01:45 Make a Get Request using Axios
04:37 Make a Post Request using Axios
08:13 Make a Delete Request using Axios
09:57 Make a Put Request using Axios

{%youtube jAfyWs_r-wk%}
TestKube 0.6.0
Tags: kubernetes, testing, postman, cypress
Published: 2021-10-26 07:16:30

We're happy to announce the version 0.6.0 of TestKube - an open-source test execution framework for Kubernetes. TestKube currently supports the execution of

- [Postman collections](https://kubeshop.github.io/testkube/executor-postman/) for testing your microservices/APIs
- [Cypress tests](https://kubeshop.github.io/testkube/executor-cypress/) for testing your web UIs
- [Curl commands](https://kubeshop.github.io/testkube/executor-curl/) for basic health/functional testing

There is a very rudimentary dashboard for monitoring test executions and results - a demo version is running at https://demo.testkube.io

The project docs are at https://kubeshop.github.io/testkube/ - including installation instructions, etc.

The main GitHub repo is at https://github.com/kubeshop/testkube/

TestKube is still pretty early in its development, but the long term vision is to
- Avoid vendor lock-in for test orchestration and execution in CI/CD pipelines
- Make it easy to orchestrate and execute any kinds of tests without having to wrap them in docker-images or providing external network access
- Make it possible to decouple test execution from build processes
- Centralise all test results in a consistent format for "actionable QA analytics"

We would love to get your feedback; could this fit into your testing activities for applications running under kubernetes? If no - why not? If yes - what can we do to make it even better?

Great thanks in advance!
Infrastructure Law Firm in India- indialaw.in

Published: 2021-10-26 07:10:07

Indialaw LLP is a leading law firm across India, which provides a one stop legal service in Mumbai, Delhi Chennai, Kolkata, Bengaluru, Hyderabad, Cochin, Ahmedabad and Pune.	  
We render highly skilled attorneys for versatile fields across the nation. It covers PPP Projects, Concession Agreements, EPC Contracts, Construction Contracts, O&M Contracts. 
Connect to us 
E-mail-  contact@indialaw.in 
Website- https://www.indialaw.in/