Posted on Sun, 10/16/2016 - 10:50 by zhilevan

Annotations are specially-formatted PHP docblock comments that are used for class discovery and metadata description. While it is technically possible to use annotations for other purposes, at the moment Drupal only uses them for the plugin system.

In this tutorial we'll look at:

  • What annotations are
  • The use-case for annotations
  • How to figure out what you can put into an annotation

By the end of this tutorial you should understand how annotations are used in Drupal and how to write them in your own code.

Read More

10 useful nmap Commands for life :D

Posted on Sun, 10/16/2016 - 10:29 by zhilevan

Recently I was compiling a list of Linux commands that every sysadmin should know. One of the first commands that came to mind was nmap.

nmap is a powerful network scanner used to identify systems and services. nmap was originally developed with network security in mind, it is a tool that was designed to find vulnerabilities within a network. nmap is more than just a simple port scanner though, you can use nmap to find specific versions of services, certain OS types, or even find that pesky printer someone put on your network without telling you.

Read More

Short trip on Entity API in Drupal 8

Posted on Tue, 10/11/2016 - 22:06 by zhilevan

There is a lot of literature about entities and their purpose in Drupal 7 context. Most of it has been adopted in Drupal 8 as well. In this post, I'll highlight the differences between D7 and D8 entities and how to use the entity API in 8.

Entities have their own classes in 8. Also, Drupal 8 introduces the concept of config entities. These are used to store user-created configuration if its more than a piece of text, boolean or integer. They differ from the usual entities in the following ways:

Read More

WooCommerce vs Magento: A Comparison

Posted on Sat, 10/08/2016 - 22:32 by zhilevan

Today, eCommerce is a booming field, as an increasing number of businesses move into the online retail space to reach a wider audience and unlock the potential to maximise their profits. This means the tools required to set up and run an online store are in high demand, and storeowners are often spoilt for choice.

Read More

Everything Is Entity or Entity is Everything in Drupal 8

Posted on Fri, 10/07/2016 - 14:57 by zhilevan

Much like previous versions of Drupal, version 8 of the CMS revolves around the concept of Entities. These are objects that have an ID, Language, Type, and Storage. Some optional properties are URLs, Bundles, and labels. They can be viewed, loaded, created, saved, and deleted, as well as have access permissions set for them. Most things in Drupal are entities, such as Users, Nodes, or Blocks.

Read More

Using R with Hadoop together

Posted on Fri, 10/07/2016 - 14:24 by zhilevan

R is a suite of software and programming language for the purpose of data visualization, statistical computations and analysis of data. It has strong graphical capabilities, and is highly extensible with object-oriented features.

Read More

GraphQL with PHP and the Symfony Framework

Posted on Tue, 10/04/2016 - 01:09 by zhilevan

GraphQL is a data query language developed by Facebook since 2012. In September 2015 Facebook released it to the public domain. GraphQL is essentially an alternative to REST and despite the name, it's not a Graph Database Query language like Cypher from the Neo4j project.

The origins of GraphQL stem from the needs that Facebook's mobile applications had (and continue to have). They needed a data-fetching API that was flexible enough to describe all the different kinds of data that the social network had available.

Read More

What is GraphQL

Posted on Mon, 10/03/2016 - 20:13 by zhilevan

GraphQL is an application layer query language that interprets a string by a server, which then returns the required data in a specified format. You may have heard that GraphQL was invented to assist or enable Relay. This is false. GraphQL was actually in play nearly three years before Relay.

Read More

How to deploy QUICKLY and SAFELY to the live site WITHOUT comprehensive testing

Posted on Mon, 10/03/2016 - 13:41 by zhilevan

On the one hand, you want to deploy changes to the live site QUICKLY (for, say, a Highly Critical security update).

On the other hand, you want make changes SAFELY, ie. you don't want it to break the site.

Testing is good. Automated testing is great.

But what if you simply didn't have the resources to comprehensively test the change (either manually or automatically)?

Read More