Tag Archives: python

“MagickWand shared library not found” on uwsgi

If you’re getting this error while deploying a Python app on uwsgi: MagickWand shared library not found. You probably had not installed ImageMagick library. Try to install: apt-get install libmagickwand-dev It may not be what it seems: Wand’s load_library() function … Continue reading

Posted in Solutions | 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 | 3 Comments

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

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

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

Run Python, Ruby, PHP, Bash scripts in Terminal without stealing focus from TextMate

I wrote a simple TextMate 1.5 bundle to run Python, Ruby, PHP, Bash scripts in Terminal without stealing focus from the TextMate window. It can easily be modified to run the language of your choice.

Posted in Releases | Tagged , , , , | 1 Comment