Web Mystery - Development Blog | Page 2
Hello, my name is Andrey, and this is my personal blog. At the very beginning of my career, I called "Web mysteries" things behaviour of which I couldn't explain. As it came with experience, everything happens for a reason - you just need to take more time on learning, debugging or googling the issue. This blog was initially meant to explain such "mysteries" and save time of the readers, but in fact contains general articles split into 3 categories: Front End, Drupal and Tools. Welcome!
-
Creating a dynamically resizing textarea and wrapping it in an Angular 1 directive
Posted on:Hello! For some reason I have very little content about JavaScript and Angular JS on my blog, even though most of the code I currently write is exactly in this language and framework. Today, I'll be trying to fix this and show you how to build and Angular directive that makes an HTML textarea dynamically change its height (increase or decrease) based on the size of content that's being typed in.
-
Drupal and Vtiger CRM integration modules
Posted on:The first version of the Vtiger CRM module for Drupal has been finally released. It contains basic integration features and currently supports one-side import (from Drupal to Vtiger). The module set is divided into several submodules that include separated pieces of functionality. So far, it is possible to set up transferring any fieldable Drupal entity into any Vtiger entity using Rules (a Rules action is provided), as well as specify field mapping for any Webform submission (Webform 4.x is required). Read further for installation and configuration details.
-
How to Build a RESTful API for a Front-end Framework with Drupal 7
Posted on:JavaScript frameworks gained big popularity during the last few years, and some people truly believe that server-generated front-end is no longer an option. Even if that might not be true, we have to admit that in most cases front-end frameworks provide much better user experience, reduce the server-side load (we can simply move a part of logic to the client) and generally make surfing feel much smoother and faster. Luckily, owners of Drupal-based websites can take advantage of this, as there are some exciting tools that may turn Drupal into a reliable RESTful back-end.
-
How to Run a Cordova Application and Bring to Foreground on a GCM Notification
Posted on:In the previous post, I tried to explain how to set up, receive and handle push notifications in a Cordova application. Back then, I believed that sending high priority notifications would make the app run immediately, even if it is not running at the moment. Unfortunately, it wasn't that easy. Here, I am going to describe my experience with editing Phonegap Push Plugin in order to achieve the needed behavior.
-
How to Make GCM Push Notifications in a Cordova Android Application
Posted on:I guess you know perfectly well how your smart-phone reacts to news emails, IMs or anything else that needs your attention. Typically, it's a sound notification followed by a message appearing on your phone's top bar (or even on lock screen on Android 5+ devices). This is exactly what a push notifications is. In this article, I will explain how to implement such push notifications in a Cordova application and describe all the benefits they may give.
-
How to switch between different Node.js versions on Linux
Posted on:Hi again. Few days ago, I tried to install a node.js framework and ended up with an error saying that my current node version did not fit the minimum requirements. Updating was not an option since it would break the compatibility with the project I'm currently working on. There must have been a solution for such issues, and I've made a small research and with to share the results. The issue sounds like quire typical and hope the following is going to be useful.
-
Moving from Windows 8.1. to Ubuntu. Picking Software Alternatives
Posted on:Hey, what's up? Sorry for my absence again, had many tasks to do again, but hope now I'll be post on my blog weekly.
A lot of things happened since I wrote here last time. I stumbled upon the Mr. Robot series, which was a really exciting thing. It had so much influence that I finally dared to try a Linux based system as my main operating system and get rid of Windows. The moving process went surprisingly smoothly, and it took for me a couple of days to adapt, pick and install needed software. I wouldn't say that I felt a very big difference so far, but surely I will. At least, now I can give arrogant looks at ignorant Windows users and feel special and chosen because of using Linux like all those cool hackers :)
In this posts, I will briefly describe how I moved to Ubuntu, and what software pieces I installed for my daily development use.
-
Sticky Headers with Pure JavaScript
Posted on:At the end of the last week, I had another exciting task–implementing sticky headers within a scrollable element. Headers had to change dynamically when a user scrolls over the data back and forth. All these bits of magic were required to work within and Angular app so I had to wrap the login in an Angular JS directive. However, in this article, we will not touch Angular and go through an example with pure JavaScript, without JqLite, jQuery or any other library.
-
How to Set up a Custom Drupal Commerce Payment Method and Restrict it for a Certain User Role
Posted on:Hello there! Sorry for not writing for so long, had been quite busy for the last couple of weeks. Yesterday I had a task to set up a sort of cashless payment method for a certain users and generate monthly reports for orders made with this payment method. Firstly, it seemed like a very specific task and I started thinking about writing a custom payment method from sketch, but fortunately, after quick googling of this matter, I achieved this goal not writing a single line of custom code at all. Here's a step-by-step guide.
-
Drupal Development with Vagrant and VDD on Windows: Getting Started
Posted on:For a long time, I was working with OpenServer, a WAMP stack, which is actually good for a beginner. As my understanding of development details grew, the limitations and incompatibilities of Windows were becoming more and more annoying. At some point, we all have to switch to Linux, and the sooner we dare the better.