-rw-r--r-- 1.5K Mar 8, 2014 · 1B60B9B · ~2 min

New Version of Dolphin Fan Club

сайты dolphin fan club

Dolphin Fan Club

Hooray, I finally more or less finished the new version of the Dolphin fan site on a new engine. The old one was on an old Joomla version that got hacked, and I really did not want to clean all the spam out of it while also looking for the vulnerability.

The new version is custom-built. I decided to make it with CouchDB — lately I have really been liking this document-oriented database. In the end I had to do the design myself. I wanted some minimalism. I also decided not to have any registration on the site. You can simply sign in via social networks to post comments. I used Loginza for that. Still, I have a suspicion that the project started dying after Yandex bought it. Nobody answers on the forum about bugs, and now it has been killed completely. Apparently nobody is going to fix Twitter authorization either. That is Yandex for you. They laugh at Google for buying projects to shut them down, while buying projects that then wither away themselves. Take kinobaza.tv, for example.

I got distracted. The site will have a huge archive of materials. It turned out that even reworking and organizing all the old material takes a lot of time and effort. I hope I will gradually upload everything there little by little.

For now I am successfully sticking to my plan: release something at least once a month. January and February — done :)

And here is the link to the site: dolphinfanclub.net

[↵] open page novaya-versiya-dolphin-fan-club.md
-rw-r--r-- 1.4K Mar 6, 2014 · 7E6BD4A · ~2 min

This Day 2.0

этот день ios приложения

This Day 2.0

I released an update for the This Day app. I redesigned it for iOS 7 (which is roughly the same as removing almost all styling altogether). In my opinion it became nicer and more concise.

I used the standard UIActivityViewController for sharing via Facebook, Twitter, and other built-in options such as email, sms/iMessage, etc., and I also added Vkontakte-iOS-SDK for sharing to VK instead of the homemade thing that had been there before. True, there are not really any visual differences for the user, and by the time I finally got around to polishing everything, VK had already released an official iOS SDK, but I did not want to dig into it just to replace something that was already working.

At the same time I got rid of the now unnecessary SBJson for working with JSON, because you can safely use the NSJSONSerialization already built into iOS. I decided to add Yandex.Metrica Mobile to the app to count users properly and see, for example, who uses which iOS version and on what device. For now I am just watching the numbers; it is informative.

This is how the little hobby project continues. I will think about what else to build into it, and then I will write the next app. For now — download/update:

Download

[↵] open page etot-den-2-0.md
-rw-r--r-- 8.1K Feb 19, 2014 · F93C4AC · ~7 min

Differences Between CouchDB and Couchbase

couchdb couchbase переводы

Translation of an answer on stackoverflow.com to the question about the differences between CouchDB and Couchbase.

I think there are some essential differences between CouchDB and Couchbase Server that need to be pointed out.

I will not write about the advantages of switching from CouchDB to Couchbase Server because those are described pretty much everywhere (see The Future of CouchDB by Damien Katz or Couchbase vs. Apache CouchDB by Couchbase). Instead, I will try to enumerate features of CouchDB that you will not find in Couchbase Server.

[↵] open page otlichiya-couchdb-ot-couchbase.md
-rw-r--r-- 2.5K Jan 10, 2014 · 3CBBA5F · ~3 min

2013 Recap

новый год итоги жизнь концерты итоги года

I decided to write a recap, but before New Year there was somehow no time for it, and during the holidays there was no decent internet.

2013 was like a storm, tossing me back and forth.

On the pleasant side, there were three new countries over the year: Thailand, France, and Sweden. In France, though, I did not see anything besides Paris, and even there I only moved around the center, but I explored Thailand and Sweden quite closely and in several places.

As usual, I will illustrate the year.

[↵] open page itogi-goda-2013.md
-rw-r--r-- 2.8K Nov 20, 2013 · C7DE691 · ~3 min

Homebrew C++ App Compilation Issues on OS X 10.9 Mavericks

mac os x homebrew

There is a Homebrew issue on OS X 10.9 Mavericks: some packages do not compile from source. This affects programs written in C++. Yesterday I had to spend quite a bit of time solving it.

Judging by what I found on Google, the issue affects only those who upgraded from 10.8 to 10.9. For those who installed the system from scratch, everything seems to be fine.

Yesterday I got this:

 $ brew update
Updated Homebrew from f949b212 to 9d10c43e.
==> Updated Formulae
gfortran
$ brew install spidermonkey
==> Downloading http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/spidermonkey-1.8.5.tar.gz
==> ../js/src/configure --prefix=/usr/local/Cellar/spidermonkey/1.8.5 --enable-readline --enable-threadsafe --with-system-nspr --enable-macos-target=10.9
==> make
==> make install
Error: spidermonkey dependency readline was built with the following
C++ standard library: libstdc++ (from clang)

This is incompatible with the standard library being used
to build spidermonkey: libc++ (from clang)

Please reinstall readline using a compatible compiler.
hint: Check https://github.com/mxcl/homebrew/wiki/C++-Standard-Libraries

After some googling and poking around in GitHub issues, I followed the link that was in the last line of the console output. It said:


There are two standard C++ libraries supported by Apple's compilers.

By default, 10.8 and earlier used libstdc++, and it was supported by Apple GCC, GNU GCC, and clang.

In 10.9, libc++ is used by default; clang also uses it by default on older platforms when building C++11 code.

There are some incompatibilities between the different standard C++ libraries, so Homebrew rejects installing software if one of its dependencies was built with an incompatible C++ library. It recommends rebuilding the dependency tree with a compatible compiler.

If you upgraded to 10.9 from an earlier version, then because libc++ is now the default C++ library, you may be unable to build from source programs whose dependencies were built on 10.8 or earlier. If you are reading this because a compilation error sent you here, you can fix everything by reinstalling the dependencies of the package you are trying to build.

And that, in fact, is the solution to the problem. If you are installing some package (in this case spidermonkey) and you see an error like this:

Error: spidermonkey dependency readline was built with the following
C++ standard library: libstdc++ (from clang)

then you simply need to reinstall the dependency the compiler complains about. In this case, readline. Just run:

brew reinstall -v readline

After the dependency is rebuilt, the package itself will install.

I ran into this when I was trying to install a new version of CouchDB. It pulls in spidermonkey, which in turn pulls in readline. I simply had to reinstall both dependencies.

I hope this note saves someone some time.

[↵] open page problemy-kompilyatsii-c-prilozhenij-u-homebrew-v-os-x-10-9-mavericks.md
-rw-r--r-- 3.5K Oct 30, 2013 · 5822E4E · ~3 min

How to Upgrade a Hackintosh from Mac OS X Mountain Lion to Mavericks

хакинтош mac os x mountain lion mavericks шпаргалки

Hackintosh Mac OS X Mavericks

I upgraded my work Hackintosh to 10.9 today. Everything was rather strange, but doable.

Before that it was running 10.8.5 Mountain Lion. I downloaded the Mavericks update from the Mac App Store. I launched it, the installer asked for a reboot, and after the reboot nothing happened — Mountain Lion simply loaded again.

To install the update, you need the following:

[↵] open page kak-obnovit-hakintosh-s-mac-os-x-mountain-lion-do-mavericks.md
makoni@arm1:~/blog$ cd ../page-20/ // ← previous cd ./page-22/ // more posts →