Modern Technologies

Software & Tech Development for the Future

Discover
MOBILE

REACT NATIVE: NETWORK REQUEST FAILED FIX

In this post we will fix the Network request failed error in iOS simulator that is common for many React Native new-comers.   NOTE: this article is related to environment issue, but request may also fail because of badly configured ajax call. A lot of people that dives into React Native get stuck when trying to make a simple […]

thaiphan 
MOBILE

REACT NATIVE REMOVE ITEM FROM LISTVIEW.DATASOURCE

I must say, I spent a lot of time trying to understand how to properly remove an element from React Native ListView. But finally I figured out how.   The main problem was that after removing an item from datablob array I updated a dataSource object in component’s state and it behaved strange. It deleted the last item from […]

thaiphan 
MOBILE

REACT NATIVE HTTP GET JSON

In this section we will send HTTP GET-request in React Native application using fetch API and date.jsontest.com web-service.   React Native has an embedded fetch API that is a high-level wrapper for working with HTTP requests. It’s pretty straightforward and easy to use. Let’s look into example of getting JSON data with fetch() function. GET JSON DATA FROM HTTP IN […]

thaiphan 
MOBILE

REACT NATIVE SIMPLE NAVIGATION EXAMPLE

In this article we will take a look on React Native navigation handling example using Navigator component. A lot of code would be shown here, but I’ll try to make it all clear.   So, to make navigation work in React Native we will use the Navigator component. We also need to create 3 classes: the […]

thaiphan 
BASICS

QUICKSORT JAVA CODE EXAMPLE

In this post we will take a look on a working Java code example of QuickSort algorithm. We will also clarify the Quicksort by itself, describing the main steps of implementing it in Java language.   ABOUT QUICKSORT QuickSort is a very popular algorithm for sorting. In most cases it is quicker than Insertion sort […]

thaiphan 
BASICS

JAVA INSERTION SORT SIMPLE EXAMPLE

Insertion Sort is a sorting algorithm with complexity of O(n2). In this example we will implement it using Java.   It’s not hard at all to understand the Insertion Sort. We have an integer array. All we do is creating the sorted array step by step: iterate through the array on each iteration we place […]

thaiphan 
BASICS

WHAT DOES ‘LET’ STANDS FOR IN ES6 AND OTHER PROGRAMMING LANGUAGES

A lot of people are confused with some programming languages syntax because of let keyword. Because previously we all met a very popular and straightforward word var that comes from ‘variable’. So what does ‘let’ stands for?   let myVariable = ‘some text’; The answer is – let keyword is used in the English verb “let” (letting something to happen). Let’s look […]

thaiphan 
BASICS

HOW TO SET ‘CURSOR:POINTER’ TO HTML FILE UPLOAD INPUT

It is not an easy job to customize standard HTML elements, such as file-upload. The problem of <input type=”file”> is a complicated way of setting the cursor style (pointer, etc.)   APPLY THE POINTER CURSOR TO FILE UPLOAD The file-upload customization goes like this: make standard imput element invisible create the custom dummy-button place the imput above the […]

thaiphan 
BASICS

CREATE A SIMPLE COMPONENT WITH REACT.JS

React.js is a JavaScript library for implementing user interfaces. In this short chapter we will learn the basics of creating a React.js component.   REACT.JS BASICS React.js is all about creating components that produces some html. All components are nested inside the container element. Steps to create a component: create a js file for a […]

thaiphan 
BASICS

XPATH ESSENTIALS

Xpath is a language for querying elements from XML-documents. It is used widely used in automated testing as a selector for web-pages elements. It has a pretty simple syntax but provides a good level of agility. XPATH SYNTAX BASICS Xpath operates with node names. /node1/node2/node3 This is an expression to select the node called node3 […]

thaiphan