Accessing URL part in the action code triggered by VBO

Submitted by vadim on Mon, 01/28/2013 - 14:37

Working on one of the Drupal projects where CRM Core is used I found a bug, which wasn't noticed earlier. When custom action is performed by VBO module the code in the action was accessing URL part, however the given URL was like batch?op=start&id=3237, which were causing a bug. Such URL was caused by the Batch API which was handling action processing.

To solve this problem, following snippet was used. It successfully gets URL part whether Batch API is used for action execution or not.

  if ($batch = batch_get()) {

Your CMS can do more, even generate mobile app!

Submitted by vadim on Wed, 11/28/2012 - 00:18

Hey guys!

I would like to share with you my session that I have performed on multiple events: DrupalCon Munich 2012, UA Mobile 2012, Drupal Camp Kyiv 2012, Drupal Camp Lviv 2012, Drupal Cafe Donetsk #1.

Here is a video from DrupalCon Munich 2012 (English, with Fabian):

Infographics: good software design

Submitted by vadim on Sat, 09/15/2012 - 16:21
I think this infographics will be very helpful to the Drupal developers who want to have more contributions of modules and patches to drupal.org and have their projects done faster.

It is on Pinterest too: http://pinterest.com/pin/240661173808850601/.

Boosted LAMP for Drupal devs

Submitted by vadim on Wed, 07/11/2012 - 16:05

In one on my previous posts I wrote how to configure Drupal development environment in Ubuntu, in this post I am going to talk about performance on your localhost (PAE, APC and MySQL tuning). There is also another blog post about Tuning Drupal Performance for production which is a bit different thing.

My old laptop was broken last days so I quickly found a cheap replacement, which had a bit different insides: two AMD cores VS four Intell i3 cores and 4GB vs 3GB. I decided to try Linux Mint, which is said is better then Ubuntu. IMO for LAMP stack the name of the Linux distribution is not so important, because they are all working good now :) But you should decide which version of one to chose: 32 bit or 64 bit. In this post I found out that 64 bit Linux is better for development, but it could be not good enough for some applications, which could fail running on 64 bit Linux.

Memory utilization for 32 bit Linux

I decided to chose 32 bit version of Mint. But the first thing I noticed was 2.6GB of RAM was only available. That looked very weird and that was one of disadvantage of 32 bit system. When I was running full LAMP stack + IDE + Skype I saw almost almost all memory was used and some disk space were taken for swap. Fortunately good people wrote Physical Address Extension (PAE) which could be installed with the following command:

$ sudo apt-get install linux-generic-pae linux-headers-generic-pae

That worked good and then System Monitor showed 3.5 GB of RAM. Still not 4, but it could be a unit conversion issue. I am glad that swap is not being used and system is working faster now.

Configuring Alternative PHP Cache

A bit later I cloned a big project and I saw how hardly my machine was trying to handle requests, which used to slow down the system. So the way out was to install APC. Alternative PHP Cache is a free, open source framework that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory. In Mint or Ubuntu it could be installed with following command:

Session about Open Source inspired attendees of the DrupalForum ZP

Submitted by vadim on Sun, 02/19/2012 - 16:35

I held two sessions there. First one was about making Drupal distribution and second one was named "Open Source and You", which was presented by Yuriy Gerasimov and me together. We got much positive feedback right after this session, so I am pleased to show you the slides and hope it will help you to make first steps in the Open Source.

Заметки на коленке: Drupal и его круги

Submitted by vadim on Sat, 01/14/2012 - 16:45

Как вы думаете, о чем пойдет речь в этом блог посте? Да, вы совершенно правы, - о Drupal. Но не только, а также о его взаимодействии с бизнесом и образованием. Скорее, последнему уделен больший акцент, а Drupal является своеобразной точкой связи.

Начнем с образования. Почему классическое образование в информационных технологиях терпит неудачу? Дело в в том, что я в последнее время часто слышу от студентов и выпускников ВУЗов и компьютерных академий неудовлетворенность качеством преподавания и программой обучения.

Темная комната, все спят. Жена спит, сын спит. Но я не сплю, думаю... Думаю о том, что уже отошел от недавно проведенного DrupalCamp'а в Донецке, легко оправился. На душе ощущения пустоты, предвкушение скуки, ежедневной рутины, которая предстоит на этой неделе. Как всегда, много вопросов, которые надо решать. А где-то в глубине разума скрываются отрывки идей о драйве и о новых свершениях.

Сайты-сайты, пара лупов - песня о Drupal

Submitted by vadim on Tue, 12/06/2011 - 16:51

Автор текста: Вадим Миргород.
Поётся на музыку песни "Хали-гали, паратрупер" группы Леприконсы.

Помню было мне десять лет -
Собирался выйти в Интернет
Я жил лишь этою мечтой
Пока это раз не встретился с тобой

Ты меня обворожила
Початиться с тобою предложила
Я взял копилку и разбил
И себе поставил коасксил

Сайты-сайты пара лупов
Нам с тобою было Drupal
Drupal-сборка и сайты-сайты
Мы одевали Drupal майки

Когда мне было пятнадцать лет
Тусовал я на php.net
Я жил лишь этою мечтой
Пока это раз не встретился с тобой

Ты меня обворожила

DrupalCamp Donetsk 2011 was a great success!

Submitted by vadim on Mon, 12/05/2011 - 14:49

On 25-27th of November in Donetsk (Ukraine) there was DrupalCamp, an international event related to the content management system Drupal. The event gathered more the 170 people from Ukraine, Russia and Belarus. Venues of the DrupalCamp were conference-halls of Shachtar Plaza и Ramada hotels. While the conference there were 20 sessions, 5 BoFs, code-sprint and a party. Elloria rock band performed some Drupal songs, rock covers and their own themes. Slides and videos from the event will appear on the DrupalCamp website soon: http://donetsk.drupal.ua/.

Syndicate content