Setting Up a Private Google Drive Alternative Written on Golang

See the original posting on DZone Python

Following the previous articles about integrating ONLYOFFICE online editors, today we are bringing over another integration case where the Sync&Share service is written in the Go language.

We are going to illustrate it with Pydio Cells, an example of the open-source file-sharing platform for enterprises that follows microservices architecture and is hosted either on-premises or on the cloud of your own choice. The combination with ONLYOFFICE basically transforms Pydio Cells into the live private cloud alternative to Google Drive.

Working With Vuex in Your NativeScript-Vue Application (Now With Cats)!

See the original posting on DZone Python

In my previous article, I discussed how to use Vuex in your NativeScript application. Vuex is a pretty complex topic and I only covered a small part of it in the last demo, so this article will add a bit more detail and also correct the glaring mistake of not including any cats. I’m sorry — I honestly don’t know what I was thinking.

The App

Before we get into the code, let’s take a quick look at the application. This is a rather simple one-page application that simulates taking care of a cat. For those of you old enough to remember you can consider it a Tamagotchi for your phone. On opening the application, your cat is nice and happy.

Shadow Root DOM and Custom HTML Tags Automation Using Selenium

See the original posting on DZone Python

In this article, we will try to solve a multi-level shadow DOM automation problem using an open source GitHub project that will let you test multi-level shadow DOM elements in your Java Selenium project. We will use Chrome as the main browser for testing this feature since Chrome v53+ fully supports shadow DOM.

Now let’s talk about how this all started. I was working with a project that works on a workflow automation tool called Frevvo. In one of the improvements, we started using the Google Polymer framework that creates shadow DOM elements. As our automation framework was developed with Java Selenium, we were stuck, as the Selenium tool was not able to find elements under the shadow DOM.

Requesting a HERE Map Image With HTTP and Golang

See the original posting on DZone Python

At events, I often get asked about generating map images using server-side technologies, or basically any technology that isn’t client facing like JavaScript, Android, and iOS. For example, a common request is around providing criteria for a map to be generated as part of a script, report, or similar. Let me show you how.

HERE does have a REST API known as the HERE Map Image API and it is consumed through HTTP requests. This API can generate standard map images or map images that include map objects such as polylines, polygons, or similar. Essentially, if you can produce it with the JavaScript SDK on an interactive map, you can produce it on a map image.

Implementing OTP in PHP Using Twilio

See the original posting on DZone Python

Verifying a phone number using OTP (One Time Password) is a sure fire way to reduce spam coming to your website. In this article, we will discuss this topic in detail. We will be learning how we can set up our PHP code to send the OTP to mobile numbers and hence verify the user. We will be using Twilio as a third-party service to send the messages containing One Time Passwords (OTPs).

Table of Contents

  • 1. Prerequisites
  • 2. Configuring Twilio
  • 3. Workflow
  • 4. Actual Code
  • 5. Database Schema
  • 6. Code base and steps to run

Prerequisites:

Configuring Twilio

Actually, Twilio is a third-party tool which can be used to send text messages, IVR, and much more. There are many alternatives to Twilio but due to its seamless integration and a bit of my personal choice, we’ll be using Twilio here in our article. Although Twilio is a paid tool, we can use a "free version" of it which, of course, has certain limitations but will suffice for our purposes. 

Angular Tutorial: State Management With NgRx

See the original posting on DZone Python

Do we need state management in every Angular application? Maybe not always, so how do we implement state management elegantly for the applications in which we do need it? NgRx is one of the libraries used for application state management. It is a Redux implementation for Angular.

First, let’s look at the problem we are trying to solve, and then understand the concepts behind the NgRx, and, finally, we’ll jump into the coding.

Displaying an Interactive HERE Map With NativeScript and Angular

See the original posting on DZone Python

Over the past few months, I’ve written several pieces of content around developing web applications using Angular that included interactive HERE maps as well as tutorials around using HERE maps in progressive web applications using the Ionic Framework. In both these circumstances, the HERE JavaScript SDK was highlighted because we were essentially building web applications, regardless if they were bundled for mobile or not.

What if we wanted to change this and build a native Android or iOS application that made use of a cross-platform framework?

What You Need Know Before GDC 2019

See the original posting on DZone Python

For more than 30 years, the Game Developers Conference (GDC) has been one of the prominent events for displaying the most innovative video game technology to developers around the world. Each year, more than 28,000 developers gather for one week and learn about the advancements taking place in the video game industry and share the techniques and technologies shaping the future of gaming. This year, GDC will run from Monday, March 18 until Friday, March 22 in San Francisco, CA.

In this series, we will cover the significant updates from GDC 2019 each day of the week and recap the conference after its conclusion on Friday, March 22. Even if video games are not the reader’s specialty or not of particular interest, GDC 2019 will likely include many noteworthy announcements and innovations that will ripple far beyond video games. Regardless of background, it is essential to digest the wealth of information and transformative technologies that will emerge from San Francisco next week.

Python: __str__( ) vs. __repr__( )

See the original posting on DZone Python

Every time I find myself in front of an ambiguity in Python, the official documentation is there for me. It is very well written and, trust me, very explicit. So, let us start by discovering what it has to say about this subject.    

According to the official documentation,   __repr__() is used to compute an official string representation of an object which, and, if possible, can be used to recreate the object itself, however, __str__() is used to compute an informal string representation of that object.

Internet Photo Album, Circa 1990’s

See the original posting on DZone Python

You know what was absolutely adorable back in the 90s? Me. Just look at that bow, that flannel, that innocent glow that can only exist before adulting smacks it right off your face.  

Yep, there really isn’t anything else quite like perusing old pics to make you feel so absolutely past your prime – unless, of course, you’re the Internet. (Or Jeff Bezos, but that’s another matter entirely.)   

An Introduction to JavaScript/ES6 Arrow Functions

See the original posting on DZone Python

Arrow Functions help programmers to write declarative code with JavaScript. While everyone may have different feelings about this addition to Javascript/ES6, whatever camp you belong to you, you will have to deal with variations of Arrow Functions.

Why Do You Need to Know This?

Theoretically, you don’t need to learn to use arrow functions at all. You can do everything with good old "function" that you have been doing since you started writing JavaScript code. It could be advantageous in some cases, but you can get away without using them. But even if you don’t use it right now, you might end up using arrow functions in the future or you might have to maintain code that was written by someone who loved using arrow functions. 

Father of the World Wide Web Launches Campaign to Save the Internet From Itself

See the original posting on DZone Python

In honor of his brainchild’s 30th birthday, Sir Tim Berners-Lee has a bone to pick with the likes of Google, Facebook, Verizon, AT&T, and the FCC. Like any good parent, he’s not so sure these so-called friends have his World Wide Web’s best interests at heart, so he’s laying down some ground rules.

Introduced at last year’s Web Summit in Lisbon, but relaunched on this ever so joyous occasion, Berners-Lee’s Contract for the Web seeks to reverse the social, corporate, and governmental trends jeopardizing his creation’s future. 

Object Detection and Augmentation in Modern Web Development

See the original posting on DZone Python

I’ve been playing around a lot with the Shape Detection API in Chrome and I really like the potential it has. For example, a very simple QRCode detector I wrote a long time ago has a JS polyfill but uses new BarcodeDetector() API if it is available.

You can see some of the other demo’s I’ve built here: https://paul.kinlan.me/face-detection/https://paul.kinlan.me/barcode-detection/ and https://paul.kinlan.me/detecting-text-in-an-image/

1 2 3 148