MiBand 3 and React Native (Part One)

See the original posting on DZone Python

Recently, I decided to test an idea in practice where Xiaomi MiBand 3 can be used by a simple mobile application based on a React-Native framework. My task was simple: teach a mobile app to communicate with MiBand 3 and make it get data, such as heart rate and connection-bond level, from MiBand 3.

This article describes the dev environment setup for Android. I am not going to forget about iOS and will share my findings later in the next article. If you want to try a solution in practice, please check here.

Top 11 Challenges in Automation Testing Using Selenium

See the original posting on DZone Python

“Automation Testing using Selenium” – If you are a tester, developer, or even a part of a QA team, you might be well versed with this term, but if you have never used or implemented automation testing with Selenium in your career, then you might not know about the difficulties that it brings to a QA team.

No doubt Selenium makes it easier for users to test web applications and websites, but there are some challenges that developers and testers encounter while using it. Here, we are going to talk about the most common challenges faced by testing teams during Selenium automation testing.

Essential JS 2: Copy and Paste Excel Data to Grid

See the original posting on DZone Python

Copy and paste are some of the most frequently used actions in applications. One important action associated with copying and pasting is copying data from Excel and pasting it to a grid in a web browser. However, doing this can be very tricky because browsers prevent pasting from the clipboard for security reasons.

Here, we are going to guide you through giving users the ability to copy and paste Excel sheet data to an ASP.NET MVC Grid. If you are new to ASP.NET MVC Essential JS 2 Grid, then please refer the getting started of grid control.

How PVS-Studio Found an Error in the Library Used in PVS-Studio

See the original posting on DZone Python

This is a short story about how PVS-Studio helped us find an error in the source code of the library used in PVS-Studio. And it was not a theoretical error but an actual one — the error appeared in practice when using the library in the analyzer.

In PVS-Studio_Cmd (as well as some other utilities), we use a special library for parsing command line arguments: CommandLine.

Learn How to Use SQL Server With Node.js

See the original posting on DZone Python

I have a passion for relational databases, particularly SQL server. Throughout my career, I’ve got drawn to various aspects of databases, such as design, deployments, migrations, carefully crafting stored procedures, triggers, and views. 

I recently started building Node.js apps with SQL Server. Today, I’m going to show you how to do it in this step-by-step tutorial by creating a simple calendar application. 

Android Internals 101: ART vs. DVM Deep Dive

See the original posting on DZone Python

In the previous article on Android Internals, we learned how Android OS Starts an application. We discussed Bootloader, Kernel, the init process, Zygote, DVM and System server.

In this post, we’ll take a look at the runtime environment in Android and how it has changed over the years. More specifically, we’ll compare ART vs DVM based on installation time, runtime performance, and other optimizations such as app size.

To understand this, let’s first start with some basics.

Creating vCard in ASP.NET Core

See the original posting on DZone Python

It’s time to get back to the old era of this blog and bring my vCard action result to today’s ASP.NET Core world. There’s support for images, so we can provide really good looking vCards from ASP.NET Core applications. This blog post gives a good base for custom vCard solutions in ASP.NET Core.

vCard Class

Previously, I built a vCard class to be a simple DTO-style class with a ToString() method that builds up a string output of vCard.

Converting a Big Project to .NET Standard Without a Big Bang

See the original posting on DZone Python

When you have a big project in .NET full framework and you want to convert to .NET Standard/Core, usually MultiTargeting can be a viable solution to avoid a Big Bang conversion. You start with the very first assembly in the chain of dependency, the one that does not depend on any other assembly in the project. Then, you can check compatibility with .NET standard for all referenced NuGet Packages. Once the first project is done, you can proceed with the remaining steps in the process.

The very first step is converting all project files to new project format, leave all project to target full framework, then you can use a nice technique called MultiTargeting starting with the aforementioned first assembly of the chain. 

Using Twitter With Python and Tweepy

See the original posting on DZone Python

Python has several packages that you can use to interact with Twitter. These packages can be useful for creating Twitter bots or for downloading large amounts of data for offline analysis. One of the more popular Python Twitter packages is called Tweepy. You will learn how to use Tweepy with Twitter in this article.

Tweepy gives you access to Twitter’s API, which exposes the following (plus lots more!):

How to Check for Anagrams Using Python

See the original posting on DZone Python

In this journey to become a somewhat competent and capable Python programmer, I’ve come to realize that we don’t know what we don’t know. There is and will always be a better way of doing things. But as budding programmers, it’s important that we don’t get discouraged when a problem seems too difficult because most of the time, the solution is staring us right in the face. When that happens, just take a breath and step away from your computer, rest your eyes, and maybe have some of your favorite brain tea. Then get back to it because the problem won’t solve itself, and the world needs people like you to make a difference.

Okay, I’m done with my rant.

Enums With Class Features

See the original posting on DZone Python

Enums are great for storing constants, but they lack strong-typing because you can’t create an instance of them. I want the best of both worlds. I want my switch statements to work off constants like enums. I want to pass these constants in a strongly-typed container.

While switch statements are often seen as a code smell, there are still plenty of situations where they make sense. Other enum alternatives have been posted by Steve Smith (Ardalis) and Jimmy Bogard (Los Techies) that are coming to a similar solution.

Five Best Practices for GoLang CI/CD

See the original posting on DZone Python

±For developers programming in long-established languages like Java, JavaScript, or Python, the best way to build continuous integration and delivery (CI/CD) workflows with Artifactory is pretty familiar. A mature set of dependency management systems for those languages and container solutions, such as Docker, provide a clear roadmap.

But if you’re programming your applications in GoLang, how hard is it to practice CI/CD with the same kind of efficiency?

Developing WordPress Sites With Docker

See the original posting on DZone Python

I recently set up a new WordPress-based website and local Docker-based development environment. This post documents what I did so that I can do it again next time! As I’m not in the WordPress world, many things are strange to me and I’m indebted to Jenny Wong for pointing me in the right direction on numerous occasions and being very patient with my questions! Thanks Jenny!

Project Organization

There’s always ancillary files and directories in a project that aren’t part of the actual website, so I have put the WordPress site in a subdirectory called app and then I have room for other stuff. My project’s root directory looks like this:

A Quick Intro to Vuex ORM

See the original posting on DZone Python

If you’re looking to make a scalable Vue or Nuxt app, you might consider using Vuex ORM. I’ve recently used it in a project, and in this article, I’ll share with you how it works and why I think you’ll like it, too.

What Is Vuex ORM?

Vuex introduces some powerful concepts for managing your application state including the store, mutations, actions, and so on.

How to Customize Dark Mode in iOS Apps With iOS 13

See the original posting on DZone Python

What You Will Learn in This Tutorial

  1. What is iOS Dark Mode and what it does.
  2. Benefits of using Dark Mode in iOS.
  3. Key considerations while implementing Dark Mode in an iPhone app.

Before we step ahead with the tutorial, let’s check some basic information about the dark mode in iOS 13.

Dark Mode

Dark Mode is a dark system-wide appearance that uses a darker color palette for all screens, menus, and controls. Similar to Android Dark Mode, it changes a bright theme to a darker one. It also maintains vibrancy and contrast to make foreground content stand out against the darker background.

1 2 3 4 166