Category Archives: Technical

“Rational” IT related entries.

Run Django dev server with Gulp

This is basically an extract from this excellent article by Caktus Group’s Calvin Spealman.

Posted in How to’s | Tagged , , | Leave a comment

Django: add i18n template tag to built-ins

Django 1.9 allows you to load template tags globally, i.e. without having to include {% load %} statements at the top of each template. The new option is called builtins and you can set it in your settings.py like so … Continue reading

Posted in Programming | Tagged | Leave a comment

librsvg 2.40.11 breaks resizing in rsvg-convert

rsvg-convert 2.40.11 calculates SVG bounds incorrectly resulting in an empty or cropped image. (See my comment in Homebrew repository and the bug report). 

Posted in Bugs | Tagged | 1 Comment

Magnific Popup + HTML5 History API (demo)

A demo of Magnific Popup with unique URLs and browser Back/Forward button support, using HTML5 History API via History.js. GitHub.

Posted in Programming | Tagged | Leave a comment

Watermark images like a pro using Python + Wand + librsvg

This is a Python 2.7 code recipe for applying a semi-transparent vector (SVG) watermark with overlay blending like so: What’s special about it:

Posted in Programming | Tagged , | 4 Comments

Using Python’s urllib2 or Requests with a SOCKS5 proxy

Just a Python 2.7 code sample showing how to make requests using Python’s urllib2 or Requests through a SOCKS proxy.

Posted in Programming | Tagged | 2 Comments

Resuming link between Apogee Duet and keyboard volume controls

Oftentimes when I wake up my MBP from sleep mode or reconnect the Thunderbolt hub, Apogee Duet stops responding to keyboard sound volume controls. When it happens, I can still change Duet’s volume from Maestro or Audio MIDI Setup.app, just not using the keyboard … Continue reading

Posted in Solutions | Tagged , | 2 Comments

Add a printer via command-line in OS X

Goal: add a network printer via Remote Desktop’s command-line to numerous Macs.

Posted in How to’s | Tagged , | 8 Comments

Относительная дата по-русски в Python и Django

Под “относительной датой” я подразумеваю вывод даты следующим образом: 5 минут назад, вчера, 7 дней назад, завтра и т.д. (Не уверен, что это правильный термин, но ничего лучше в голову не приходит).

Posted in Programming, Посты на русском | Tagged , , | Leave a comment

Fix Color Picker in TextMate 2 under OS X Mavericks

To fix the Color Picker of TextMate 2 under OS X Mavericks (10.9), do the following: open ~/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/ui.rb, near lines 74-75 replace “AppleScript Runner” with “System Events”. That’s it.

Posted in Solutions | Tagged | 1 Comment