Would you like to be notified for every new articles? Please click HERE to subscribe for newsletter.

Blog

Modify Entity Reference Autocomplete Result In Drupal 8

  • Posted on: 2 July 2017
  • By: admin

In some cases we might need to modify the autocomplete result in Drupal 8. For example, when editing a node, in content authoring section, there is an autocomplete textfield for entering the author for the content. By default, all users will be available in the autocomplete list, but there might be a case when we need to exclude the blocked user from the list. Fortunately, we are able to do that by using one hook function called hook_query_alter.

Tags: 

Installing Salix Package In Slackware Using slapt-get

  • Posted on: 29 January 2017
  • By: admin

Salix is a Linux distribution derived from Slackware. In its official website, it is said that "...Salix is also fully backwards compatible with Slackware, so Slackware users can benefit from Salix repositories, which they can use as an "extra" quality source of software for their favorite distribution...". Because of that statement, I'm interested to install some Salix packages into my Slackware 14.1 64 bit system.

Add Link To Node In Simplenews Newsletter

  • Posted on: 12 December 2016
  • By: admin

When we want to add newsletter feature to our Drupal website, we might end up finding the simplenews module as the solution. But, there is one problem that so many people asked about in the internet. By default, simplenews will send the whole node content in the body of the newsletter e-mail, not the teaser. Ideally, the newsletter e-mail will contain the teaser or trimmed version of the full content with the link to read it online to our website.

Tags: 

How Does PHP Session Work

  • Posted on: 5 December 2016
  • By: admin

The Hyper Text Transfer Protocol is a stateless protocol. That means server just forget about you when your request is served and the connection between server and client is immediately closed after that. For example, when you made a request for page a.html, the server send you the a.html. After that, you made second request for b.html. In that time, the server won't recognize that you are the one who previously request a.html.

Tags: 

Machine Learning: Classify Gender By Name using Django and NLTK

  • Posted on: 19 November 2016
  • By: admin

Machine learning is one of the current hot topics in the IT world. The huge growth of data and the increase of computing power may be the best supporting factors which lead to the current condition. Besides the good trend, machine learning is very interesting for me personally. So, I try to find some information about it and that leads me to Python and its NLTK (Natural Language Toolkit) library. The last time I use Python is about two years ago when I learn about Django, the web development framework for Python.

Pages