In previous article (Keeping Tizen wearable device application running in background mode) I wrote about how to keep Tizen wearable application running in background mode, e.g. for long-running sensor data monitoring. It this note let’s find out how to bring wearable application back in active state after device screen has been turned off.
Continue reading “Returning Tizen wearable application to active mode on screen activation”Keeping Tizen wearable device application running in background mode
Long-running application can be interrupted by falling asleep on Samsung Wearable device in a timeout. In this article you will find the way I could find to keep application working in background mode in any amount of time.
The way is fair for C# applications running on Samsung Galaxy Watches Active 2 with Tizen Wearable 4.0 SDK.
Continue reading “Keeping Tizen wearable device application running in background mode”ReactJS Authorization with Django API
User authorization is very basic requirement for most modern web applications. This article describes my experience in building my first live ReactJS application based on Django REST Api.
Continue reading “ReactJS Authorization with Django API”Starting with Lua on Windows 10
Lua is a light script programming language. Mostly it’s used as embedded language in different areas: game dev, stock trading, etc.
In this article you will find how to install your Lua development environment on Windows 10.
Continue reading “Starting with Lua on Windows 10”Easy ReactJS config management
For config management in ReactJS project I recommend using react-global-configuration NPM module. Three short steps for using it:
Install
npm install react-global-configuration --save
Create config
Create config.js file in any place you like. I prefer storing it in the root of a project:
import config from 'react-global-configuration'; config.set({ someApiUrl: 'http://some-service.com/api' }); export default config;
Use it
Now you are ready to use the config file in any React component:
import config from '../config'; return fetch(`${config.get('someApiUrl')}/users/authenticate`, requestOptions)
Debug PHP like Pro: Intellij Idea + VirtualBox + XDebug
VirtualBox + XDebug overview
For a long time I used to use built-in PHP debugging function like var_dump, debug_backtrace, spl_object_hash etc. That tools are very useful but there is one tool combining all of them. I’m talking about XDebug PHP module. With XDebug you can stop code execution in any place you need and get all information about objects, variables and call stack in one window.
Continue reading “Debug PHP like Pro: Intellij Idea + VirtualBox + XDebug”
How to obtain cheap USA IP address just for $5/month with VPS and PPTP
Living in Russia I need USA IP address for my work. VPN provider I used to use offer USA address for $20/month, that is too much. To save my money bought a small Ubuntu VPS and installed a private VPN server. In fact, you are not limited geografically – look aroud to find VPS provider in the area you need and follow this article VPN section instructions.
Step 1: Buy a VPS
First of all find a cheap VPS provider (e.g. Linode, Digital Ocean, etc.). Most of them offer free trial period (usually about a week) so if you need foreign access just for once you can get it for free.
Continue reading “How to obtain cheap USA IP address just for $5/month with VPS and PPTP”
CKEditor filemanager in Bootstrap modal
By default CKEditor shows filemanager in a popup window. That may cause problems if a browser blocks popups. The solution is to show filemanager in modal. This article is about how to use Bootstrap modal to show filemanager.
How to install PHP 5.3 on Ubuntu 14.04
Installing old versions of PHP in modern OS can be tricky. Here is my instruction about how to install PHP 5.3 on Ubuntu 14.04. Continue reading “How to install PHP 5.3 on Ubuntu 14.04”
Configuring Grunt
Configuring Grunt
Check this post to know how to install Grunt. Grunt has main script file called Gruntfile.js. It is a nodejs module – means that you are free to use all power of nodejs there.
The module is wrapped up with this construction:
module.exports = function(grunt) { ..... some code here ..... }
We pass grunt object inside the module for further usage.
Let’s look closer how to use it.