-rw-r--r-- 6.5K Nov 15, 2015 · 022402F · ~6 min

Impressions of Assassin's Creed II

assassin's creed игры

Assassin's Creed II

[↵] open page vpechatleniya-ot-assassin-s-creed-ii.md
-rw-r--r-- 433B Nov 8, 2015 · 44F1209 · ~1 min

MC Xander, live at Aurora on February 18, 2012, audio

mc xander аудио

MC Xander, live at Aurora on February 18, 2012, audio

I cut up an MC Xander concert from 3.5 years ago. Track list:

  1. Intro + Jam 1
  2. Jam 2
  3. Sick of the Lies
  4. Gnosis
  5. Jam 3
  6. Unknown track
  7. Spaceship Earth
  8. Fat Bud (Part 1) + Message In The Rose (Part 2)

There used to be a download link here, but it is dead now. Search VK Music for "MC Xander Aurora"

[↵] open page mc-xander-kontsert-v-avrore-18-fevralya-2012--audio.md
-rw-r--r-- 978B Nov 8, 2015 · 9E1C8F7 · ~1 min

I Drug Moy Gruzovik... live at Tsokol on April 13, 2012, audio

и друг мой грузовик аудио

I Drug Moy Gruzovik... live at Tsokol on April 13, 2012, audio

Finally got around to cutting up a bootleg from the I Drug Moy Gruzovik... show in St. Petersburg on April 13, 2012 at Tsokol. Track list:

  1. Приветствие
  2. Прививка
  3. Песня Марка
  4. Лень (кавер на Tequilajazzz)
  5. Валентины
  6. Рекордлейблплатит
  7. Судёнышко
  8. Внутренний Гринпис
  9. Удобен
  10. Молодёжи
  11. Папа играет на бас-гитаре
  12. Учительница
  13. Одноклассников
  14. Два тракториста
  15. Брюссельская капуста
  16. Помощник
  17. Соя
  18. (Я пью) минеральную воду
  19. Последняя
  20. Мяч для регби

There used to be a download link here, but it died. Search VK Music for "И друг мой грузовик цоколь 2012"

[↵] open page i-drug-moj-gruzovik-kontsert-v-tsokole-13-aprelya-2012-audio.md
-rw-r--r-- 8.0K Nov 7, 2015 · 7D3FC06 · ~7 min

Impressions of Assassin's Creed

assassin's creed игры

Assassin's Creed

[↵] open page vpechatleniya-ot-assassin-s-creed.md
-rw-r--r-- 1.2K Oct 14, 2015 · 1821E8C · ~1 min

Xcode 7 Bug with [NSLocalizableString length]

шпаргалки баги xcode

Xcode 7 has a localization bug where the app crashes while calling [NSLocalizableString length] over and over again. I hit it in my project because some of my xibs were outside the project folder itself, in the Base.lproj folder. As a result, every time something from those xibs was loaded in the app, it crashed for no obvious reason. In the latest Xcode 6 everything worked perfectly. I managed to fix it by renaming Base.lproj to en.lproj and adding the files from that folder to the project again.

There are a couple more solutions on Stack Overflow; the idea is the same, but for some people it was enough just to toggle the Use Base Localization checkbox on and off, or mark English for the Storyboard file. But that is more for people whose entire UI is drawn inside a Storyboard. There is also a thread on the Apple developer forums.

The bug seems to have been around in Xcode 7 for a while; I think it was present in the betas too. It is still there in the current 7.01 release. Hopefully they will fix it in the near future.

[↵] open page bag-xcode-7-s-nslocalizablestring-length-.md
-rw-r--r-- 1.6K Jul 23, 2015 · BB014D8 · ~2 min

A Few Words About Parse.com

parse.com javascript rest шпаргалки кодировка

I was tinkering with something on Parse. In short: the thing is very cool, there are great SDKs for different platforms, and you can even use them in Javascript on both the frontend and the backend. You can even write the backend right there in their cloud with node.js, and you can connect Express if you need it. But there are two caveats:

  1. When you create a scheduled push notification, you specify the send time. Through the Javascript SDK, however, it sets it in GMT and that's it. Everyone gets the push according to GMT regardless of their time zone. You cannot specify in the Javascript SDK that you want to send a push to everyone, for example, at 19:00 local time, so that a client in any time zone receives the message at their own 19:00. This bug is already 2 years old. Instead, they suggest using their REST API from Javascript (sic!).
  2. Okay, so you use the REST API; fortunately this can be done conveniently from the same Javascript SDK, and everything works as it should, pushes get scheduled for local time, but... all Russian letters are stripped out of the message title text. All the examples in the REST API documentation ask you to specify the request header "Content-Type: application/json", but that is not enough to keep Cyrillic and other non-Latin characters from being stripped. It turns out you need to specify the encoding in the header: "Content-Type: application/json; charset=utf-8". God knows what encoding they expect by default for data in an international service, but there it is.

Other than that, of course, the service is very cool.

[↵] open page para-slov-pro-parse-com.md
-rw-r--r-- 2.2K Jul 10, 2015 · 02CABEA · ~2 min

Building an iOS Project from the Console with xcodebuild

ios xcodebuild шпаргалки

I'll leave myself a cheat sheet on how to make a bash script that builds your project into an ipa file.

In the iOS project source folder, create a folder, for example, scripts, and inside it create the file build.sh

mkdir scripts
touch build.sh
chmod +x build.sh

Put your provisioning profile into that folder. Say it is called arm1.ru.mobileprovision. After that, put this code inside build.sh:

#!/bin/bash

# go to the script directory
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${CURRENT_DIR}"

# use the same name that is selected in the project settings under Build Settings > Code Signing Identity
CODE_SIGN_IDENTITY="iPhone Distribution: Your Code Signing Identity"

# name of the provisioning profile stored here
PROVISION="$PWD/arm1.ru.mobileprovision"

# name of the scheme we are building
SCHEME="appScheme"
WORKSPACE="$PWD/../your-app.xcworkspace"

echo "Building..."

BUILDDIR="$PWD/build"
DSYMDIR="$PWD/dSYM"

if [ ! -d "$BUILDDIR" ]; then
    mkdir -p "$BUILDDIR"
fi

if [ ! -d "$DSYMDIR" ]; then
    mkdir -p "$DSYMDIR"
fi

# find the UUID in the provisioning profile
UUID=`grep UUID -A1 -a "${PROVISION}" | grep -io "[-A-Z0-9]\{36\}"`


xcodebuild     -workspace "${WORKSPACE}"     -scheme "${SCHEME}"     -sdk iphoneos     -configuration Release     CODE_SIGN_IDENTITY="${CODE_SIGN_IDENTITY}"     PROVISIONING_PROFILE="${UUID}"     OBJROOT=$BUILDDIR     SYMROOT=$BUILDDIR

if [ $? != 0 ]; then
    echo "Build failed"
    exit 1
fi

echo "Packaging..."

NOW=$(date +"%d_%m_%Y_%H_%M_%S")

xcrun -sdk iphoneos PackageApplication -v "${BUILDDIR}/Release-iphoneos/${SCHEME}.app" -o "$PWD/${SCHEME}_${NOW}.ipa"
if [ $? != 0 ]; then
    echo "Packaging failed"
    exit 2
fi

mv "${BUILDDIR}/Release-iphoneos/${SCHEME}.app.dSYM" "${DSYMDIR}/${SCHEME}_${NOW}.app.dSYM"

echo "Build succeeded."

Voilà, in the folder with the script you now have appScheme.ipa - the built project. The dSYM folder contains the dSYM files. You can add something else at the end of the script. In one of my projects, the end uploads the build to our homemade Testflight and sends the install link to everyone who needs it. Convenient: double-click the sh file and everything gets built and sent.

[↵] open page sborka-ios-proekta-iz-konsoli-cherez-xcodebuild.md
makoni@arm1:~/blog$ cd ../page-14/ // ← previous cd ./page-16/ // more posts →