Best way to daemonize node.js process in 2021: forever, pm2, nodemon, docker, supervisor, systemd and what to choose During my development career I used a lot of different solutions to daemonize processes (mostly, node.js scripts), and I decided to do a quick writeup with very short description of each approach
Scraping Instagram in 2021: avoiding 302 and 429 errors Instagram is a tough target for scraping. For one of my side projects, I needed to get information from several public accounts, on a daily basis – for example, their followers counts, and their
esbuild Frontend development in Docker is pain in 2020. But it gets better I've just started building a dashboard for my new project, which is an opionated Node.js API gateway (still in its infancy), with Clickhouse for logging: https://github.com/restyler/api-gateway. Here is
Clickhouse as a replacement for ELK, Big Query and TimescaleDB Clickhouse is an open source column-oriented database management system built by Yandex. Clickhouse is used by Yandex, CloudFlare, VK.com, Badoo and other teams across the world, for really big amounts of data
Good thing in PHP nobody talks about Do you know what I like about PHP?It is designed to die after execution.You should not fear code duplication, or bad formatting of code, of bad variables naming - mentioned artefacts
vuejs Vue.js vs React in 2017: state of art One year ago I've published a post about reasons why our team chose Vue.js over React for our qwintry.com project rewrite. I've made some predictions back then:I expect Vue to
vuejs Why we chose Vue.js over React Qwintry team recently started active migration to Vue.js as a frontend framework in all our legacy and new projects:in legacy Drupal system (qwintry.com)in our new, completely rewritten qwintry.com
Rotating original file for image field in Drupal 7 and dealing with browser cache While working on new Qwintry.com tasks we needed to provide our operators the interface to rotate uploaded images (and I wanted to rotate the original image file). Surprisingly, I could not find
Building scalable IT system for delivery from US to Russia: Drupal, Symfony2 and Yii2 compared I was not posting to the blog for a long time, and finally it’s time to share my experience with new project. This post will also cover some badly structured thoughts about
Packt Publishing book - Premium Drupal themes In 2013 I was invited by Packt Publishing to play a role of technical reviewer in one of their books.Just got my sample of the book Premium Drupal Themes by mail.It
Drupal 7 vs Symfony 2: overview after 1 year of Symfony development We've decided to switch to Symfony2 development in July 2012, if I'm not mistaken - after 7 years of (mostly) Drupal development. There were reasons to do that:1. Not-too-great experience with high
Storing monetary amounts in db? Use decimals, not floats! Lot's of people will be surprised (or shocked, when it happens in production) when they see that mysql can work like this:Query: SELECT transaction_id, amount FROM transactions WHERE amount>20.
Rules won't work properly when run during cron, if you use node access restrictions I've recently created USPS tracking module for Drupal, so Qwintry.com users could get notifications when their international packages change state. I've used queue operations to build requests to USPS API by cron,
Image title as text description for colorbox image formatter (Drupal 7) When you have core "image" field on your node type and you want to output "title" (or "alt") of this image just under the image thumbnail as text - you can use imagecaptionformatter
Be careful with drupal_get_form() in theme layer When you create Drupal code for 7 years, it's easy to mistakenly assume that you know everything regarding such basic things as theme_preprocess_node() and drupal_get_form() functions. And that is
Improving user experience: using Dialogs for profile edit in modal forms We are now developing big Drupal 7 project where users have profiles with lots of fields. They also have a node tied to them ("My story") which is created during registration.Initially, these
Using Ubercart to sell files: ui improvements and creating file feature programmatically uc_file module that allows selling files in Ubercart is definitely not perfect in terms of API, but it is a nice piece of functionality. We've just finished creating one e-book store which
Calendar with highlighted dates In Drupal 7, it's easy to show calendar (ui.datepicker) date selector to user. (it's not hard in Drupal 6, too - but in d6 you need to enable http://drupal.org/project/
Writing robust code that uses fields, in Drupal 7 In Drupal 7, the direct access to entity fields (CCK in d6) is different. In Drupal 6 you write:<?php $field_val = $node->field_yourfield[0]['value']; ?> in Drupal 7
Commerce Product Constructor Today I've made another decision to postpone using Commerce in our project where customer needed simple e-shop. I've actually made such decisions several times already, and that makes me feel unhappy. I would
Additional CCK powered price for product in Ubercart I was not updating my blog for a while - it's summer here :) I've just returned back from my business trip to US, Alaska, where I helped guys from shipito.com killer to
CSRF: Avoid security holes in your Drupal forms. While everyone is now aware of SQL injections and 99% of Drupal developers now use placeholders in their db queries, some of other important security aspects are often forgotten.Today I've encountered another
New UI in Views It's so exciting to see how such huge improvements happen. I've just updated one of my 7.x websites to latest dev of views and ctools, and noticed that Views UI got major
Be careful with Views Custom Field I was tearing my hair out over mysterious bugs in my recent Drupal project. Our complex views pages, which used Views custom field extensively, were constantly breaking. The php field output could break