arm1.ru

AllCafe app for Android

event Aug 31, 2012 at 15:33

AllCafe for Android

We’ve released a mobile AllCafe client for Android. Conformant to the guidelines, fragments and a few near-impossible things under the hood :-D Works on both phones and tablets.

How to use «Back to My Mac» via iCloud

event Aug 29, 2012 at 13:34

Back to My Mac iCloud

When I got the chance to play with the new iCloud features in OS X Lion, the only thing that left me puzzled was the feature called «Back to My Mac». Yesterday I finally figured out how it works, and today I gave it a proper try.

FCKEditor and the «Access Denied» error

event Aug 27, 2012 at 01:53

Updated Nginx and PHP on my server to the latest stable versions. PHP is currently 5.4.6.

After the update FCKEditor stopped working — instead of it I was getting an «Access Denied» message.

FCKEditor is rendered on the page through an iframe, and that’s where the message was hanging. I dug through the editor’s sources thinking maybe there was some PHP version check somewhere, but didn’t find anything special. The iframe loads fckeditor/editor/fckeditor.html. Opening that file directly produced the same error. I started suspecting Nginx, but it turned out to be neither Nginx nor the editor’s code — it was PHP itself (php-fpm).

Googling «Access Denied» wasn’t easy, but glancing into the error logs I spotted the keyword security.limit_extensions. From the name, this php-fpm.conf option controls which file extensions PHP code is allowed to execute in. Starting with PHP 5.3.9, for security reasons, if this option isn’t specified in the config, PHP only runs in .php files (I don’t know what it was before). FCKEditor wires itself up through PHP in some clever/messy way that ends up executing code in that very fckeditor.html file (even though there’s no PHP code inside — just a long framework setup). That’s why php-fpm was returning «Access Denied».

Fix: in php-fpm.conf, or better, in the pool .conf file (something like /etc/php-fpm/pulls/mysite.conf), add this line:

security.limit_extensions = .php .html

That’s the fix. Spent almost an hour and a half tracking it down — without knowing the editor’s code I couldn’t immediately figure out where to dig. So I’ll leave this here. Maybe it’ll save someone else the same trouble.

Berlin — Porto — Lisbon

event Aug 21, 2012 at 02:04

Video from my July holiday. The route was Saint Petersburg — Riga — Berlin — Barcelona — Porto — Lisbon — Barcelona — Saint Petersburg. Riga and Barcelona were just stopovers. In Lisbon there was the Optimus Alive festival. Music — Slugabed; performances in the video — Zola Jesus, Tricky, The Cure, Radiohead.

How to remove DRM from Amazon Kindle e-books

event Jun 30, 2012 at 22:52

Kindle

E-books bought from the Amazon store come with DRM, meaning the book can only be opened and read by whoever bought it, through a special app, after entering their Amazon login and password. But the protection can be stripped — and the book can even be converted to another format.

Google Glass demo at I/O 2012

event Jun 28, 2012 at 14:03

Probably the most memorable moment from yesterday’s Google I/O keynote livestream. They delivered Sergey Brin a package in pretty spectacular style.

local_offer google glass