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

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

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. Continue reading

Posted in Solutions | Tagged | Leave a comment

Xcode 4.6 stalls at “Creating universal binary” in OS X 10.9

xcode-mavericks-creating-universal-binary

If you’ve just upgraded to OS X 10.9 “Mavericks”, but chose to stay with good ol’ Xcode 4.6.3, it may stall at “Creating universal binary” when building projects. Continue reading

Posted in Solutions | Tagged | 5 Comments

Paste text even when prohibited in macOS (password dialogs etc)

I wrote a tiny AppleScript application which pastes text into fields which do not allow Cmd+V pasting (like password prompts). This may come in handy when working through VNC/remote desktop or virtualization software (such as Apple Screen Sharing, Parallels Desktop etc). Personally I use it to type in my password into the login screen of the Windows virtual machine. Continue reading

Posted in Releases | Tagged | 81 Comments

Forcing ReadyNAS to update via SSH when all else fails

One of our ReadyNAS Pro 6 refused to update its firmware (called RAIDiator) to 4.2.24 (the latest as of writing) no matter how I tried. Neither local or automatic updates had any success; reinstalling the OS through the boot menu and updating, as suggested by someone on the forum, did not work either. Continue reading

Posted in Solutions | Tagged , | 1 Comment

HP on mdadm vs. hardware-based RAID

From HP Z230 manual:

<…> The Linux kernel, with built-in software RAID, provides excellent functionality and performance. It is a good alternative to hardware-based RAID.

It is not a news of course, but (1) I like the wording; (2) it comes from a major enterprise-class server vendor.

There are still a lot of RAID-card fetishists among systems administrators who bash Linux-based NASes (like ones produced by Synology or Netgear) for relying solely on mdadm.

Posted in Journal | Tagged , , | Leave a comment

Draw polylines on HTML5 canvas

jquery-polyline — a jQuery UI widget for drawing polylines. See it in action.

Written by Victor Novikov (@Forkest) for Cyberic. License: MIT license.

Posted in Releases | Tagged | Leave a comment

MODx Evolution: removing spam links

My friend’s MODx Evolution based website was hacked and he’s asked me to help him fix it. Every page of his website was “infected” with invisible links to viagra webshops. The code of those links was as follows:

<div style="position:absolute;left:-2311px;top:-2794px;"><a href="LINK">... viagra ...</a></div>

Continue reading

Posted in Solutions | Tagged | 10 Comments

Looking for a mouse acceleration programmer

The SmoothMouse dev team is looking for a pointer ballistics engineer person to work on pointer acceleration algorithms (and code). Continue reading

Posted in SmoothMouse | 2 Comments

Concisest guide to setting up Time Machine server on Ubuntu Server 12.04, 14.04 & Debian

“This worked much better than more recently published guides.”

How to quickly set up Time Machine server on Ubuntu Server 12.04/14.04/16.04 and Debian without using extra repositories, unnecessary packages and redundant configuration. Backing up tested on OS X 10.6 Snow Leopard, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, OS X 10.10 Yosemite, OS X 10.11 El Capitan. If you have a problem, you might be able to find a solution in the comments section below the article.

Update: if you try this in CentOS, replace apt-get with yum where necessary.

Continue reading

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