Control LIFX with NodeMCU and range sensor

Wed, 03/09/2016 - 15:30

LIFX bulbs are great, but when you just need to turn them on, off or just change brightness, it can be not very comfortable, to do this simple task by app. So I decided to create much simpler way to do this. And then I came across NodeMCU, small development board similar to Arduino with integrated Wi-Fi, with cost of about $5.

Remove jQuery timestamp from json requests to hit Drupal cache

Mon, 02/22/2016 - 10:33

Problem: When ajax request has cache off it always creates request with timestamp e.g. _=1456134256000, and as it is get parameter, views are called and Drupal cache is not hit. And when cache is on, request is made without timestamp, and browser returns data from it's cache, so it doesn't hit server. What I needed is that script gets past browser cache, but hits Drupal cache.