DrupalCon Prague sessions about D8's REST/Serialization and Backbone.js

Submitted by vadim on Mon, 09/09/2013 - 23:30

There are going to be many interesting sessions about Backbone.js and REST on the DrupalCon Prague! Check them out!

Tuesday:

Wednesday:

That's going to be awesome!

Building Checklist.js library using HTML5 Local Storage and Backbone.js

Submitted by vadim on Fri, 09/06/2013 - 12:12
checklist.png

In this post I am going to describe how I created Checklist.js library, which turns HTML lists on your page into chekclists. It adds checkboxs to list items and stores data in the HTML5 Local Storage, so the user could to see his/her checklist(s) after reloading a page or restarting a browser.

It's continent isn't it? You can check out a live demo and a

Using Backbone.js with MongoDB

Submitted by vadim on Mon, 09/02/2013 - 22:44

MongoDB provides data in the Mongo DB Extended JSON format, which looks like following:

{
  _id: {
    "$oid": ""
  },
  first_name: 'Vadim',
  last_name: 'Mirgorod'
}

Everything is OK expect ID, which could not be processed by the Backbone.js out of the box. In this post we are going to learn a solution for solving this problem.

Working on final drafts of Bakcbone.js Cookbook

Submitted by vadim on Mon, 07/01/2013 - 22:48

I am happy to announce that I am finishing work on Backbone.js Cookbook, which is going to be published this month. I started to write the book in November 2012, while was working at Trellon. It was extremely hard to combine work and writing, but I feel like I almost complete this challenge and going to take a new round. But before going to celebrate book publication and to take some rest.

In this book you can find series of recipes that provide practical, step-by-step solutions to the problems that may occur during frontend application development using an MVC pattern. You will learn how to build Backbone applications utilizing the power of popular Backbone extensions and integrating your app with different third party libraries. You will also learn how to fulfill the requirements of the most challenging tasks.

Here is a link to the full book description.

Social Mobile Application updates

Submitted by vadim on Tue, 06/18/2013 - 23:14

Social Mobile App is an example application, which I described in this post about a year a go. It was an experimental project which I created to demonstrate Backbone.js and jQueryMobile capabilities, it communicates with a RESTful server over HTTP. You can find it's source code on it's GitHub project page.

You can also try live demo.

My session about Backbone.js at DrupalCon Portland

Submitted by vadim on Sun, 06/02/2013 - 00:02

Here are videos and slide of my session about Backbone.js, which I did at DrupalCon Portland.

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:

Building iOS/Android mobile app using Backbone.JS, jQUeryMobile and HTML

Submitted by vadim on Sat, 05/26/2012 - 21:37

There are interesting researches made by Cisco and Ericsson that predicts incredible mobile traffic increase during next few years and a share of it will reach a share of PCs traffic by 2016.

Nowadays almost any major website has a mobile version or responsive/adaptive design that helps to view website on any device. These approaches are quite different, but they work good for content display only. What if you desire to build a rich HTML5 and JavaScript application which interacts with a server and renders pages using theme similar to iPhone or Android one? What kind of technology stack would you use for that?

In this blog post I will answer on the questions above and demonstrate you simple mobile web application that allows to view and save textual posts. There is a Python backend, that stores information in the MongoDB and communicates with a front end using REST approach. Front end is built with the Backbone.js and jQueryMobile.

Below are screenshots of the application (click to view big image in a new window):