arm1.ru

Est Est Est at the Kitaysky Lyotchik Jao Da club on March 31, 2012, audio

event Apr 2, 2012 at 15:25

On Saturday we went to an Est Est Est concert at the Kitaysky Lyotchik Jao Da club. I recorded the whole concert on a Zoom, putting it on the sound engineer’s table at the last moment. It turned out better than what we could hear ourselves. Several new songs. I want to try recording bootlegs at concerts. A first attempt.

Есть Есть Есть в клубе Китайский лётчик Джао Да 31 марта 2012

Tracklist:

  1. Reflection
  2. Pasta
  3. Olympiad
  4. Winter
  5. Lisbon
  6. Palette
  7. Painter Duck
  8. Résumé
  9. Spring
  10. Autumn
  11. Fantastika (without trumpet)
  12. Squirrel Island
  13. Parfyonovtsy
  14. Victory Day
  15. Udelochnaya
  16. Fantastika (with trumpet)

Download (mp3, 320 kbps, 206 MB)

Melnitsa at Aurora Concert Hall on January 14, 2012, video

event Mar 31, 2012 at 02:45

I am not going to record sound near the stage anymore. Especially when there are live drums. I tweaked it as best I could, but I still do not like how the sound turned out.

Script for pinning a block while scrolling

event Mar 28, 2012 at 14:03

I had wanted to make something like this for a long time, so that when the page is scrolled some block would scroll together with the page up to a certain point and then stick. Today I found a plugin called jQuery Sticky Scroller

You can download it here.

It is connected quite simply:

var scroller = new StickyScroller("#menu",
{
    start: 270,
    end: 50800,
    interval: 200,
    range: 100,
    margin: 0
});

As the parameter name suggests, when scrolling goes more than 270 pixels past the top edge of the page, the #menu element is fixed on the page, that is, it gets the CSS property position: fixed;. The end parameter is responsible for the lower bound of scroll tracking, in case the fixed element should not stay fixed all the time. The margin parameter defines how far from the top edge of the browser window the element will be positioned.

The plugin also has several public methods; I do not see much point in describing them here, the description is available on the plugin page.

This Day for iPad 1.1

event Mar 27, 2012 at 22:20

Этот день

Version 1.1 of This Day for iPad has been released. At first I wanted to add swipe navigation for events and fix a few small things, but somehow it dragged on. When I finally coded it, I had to reject the app from the App Store 2 or 3 times because I kept finding nasty bugs that made it crash or display incorrectly. By the time I had fixed everything critical, the new iPad had come out, so I added graphics for it right after that. And at the very end I discovered that sharing to VK requires a captcha, so I had to google it and implement its handling.

So in the end, what started as small changes turned into a pretty substantial changelog for such an app:

  • support for iPad with Retina display;
  • events can now be swiped with a finger;
  • when publishing an event to Facebook or VKontakte, the app now shows a notification that the publication succeeded;
  • when publishing events to Facebook or VKontakte, they are now posted in a more understandable form with the full date;
  • captcha handling for posting to VKontakte added;
  • fixed a bug that prevented long events from being published;
  • minor improvements and bug fixes.

AllCafe for iPhone 2.0

event Mar 22, 2012 at 14:24

AllCafe для iPhone

AllCafe for iPhone 2.0 has been released.

What is new in version 2.0

  • New restaurant info layout;
  • viewing restaurant photos;
  • new restaurant news layout;
  • viewing photos attached to news items;
  • new restaurant review layout;
  • viewing photos in a review and all photos from all visitor reviews;
  • restaurant magazines added;
  • various fixes and additions.

How to detect a Retina Display on iPad/iPhone

event Mar 20, 2012 at 00:41

Note! If you just need to figure out what kind of screen your iPad, iPhone, or iPod has, simply follow this link: https://arm1.ru/retina/

While trying to figure out how to detect the presence of a Retina display on a device in Objective-C, I had to do some googling. I found this solution and am writing it down here as a cheat sheet.

Get the screen bounds:

CGRect screenBounds = [[UIScreen mainScreen] bounds];

It returns the screen size, usually 320x480; even on iPhone 4, iPhone 4S, and iPod Touch it will still return 320x480 (apparently because old apps would otherwise crash). For iPad it returns 768x1024 — both on iPad/iPad 2 and on the new iPad with Retina Display.

Get the screen scale:

CGFloat screenScale = [[UIScreen mainScreen] scale];

It returns 1.0f for all non-Retina screens. It returns 2.0f for Retina screens. This applies to all iOS devices.

So, having screen dimensions characteristic of the form factor (phone/iPod or tablet) and knowing the scale, we can calculate the device’s actual screen size:

CGSize screenSize = CGSizeMake(screenBounds.size.width * screenScale, screenBounds.size.height * screenScale);

If you run code like this:

CGRect screenBounds = [[UIScreen mainScreen] bounds];
NSLog(@"%f x %f", screenBounds.size.width, screenBounds.size.height);
    
CGFloat screenScale = [[UIScreen mainScreen] scale];
NSLog(@"%f", screenScale);
    
CGSize screenSize = CGSizeMake(screenBounds.size.width * screenScale, screenBounds.size.height * screenScale);
NSLog(@"%f x %f", screenSize.width, screenSize.height);

then you will see all dimensions in the console. In this case, I ran it on the iPad Retina simulator:

Как определить Retina Display на iPad/iPhone

And then, by checking the dimensions/device type, you can substitute the required graphics at the required sizes. Profit.

P.S. As for images, you only need to create 2 files: for example, "image.png" and the same image at double size named "image@2x.png", and then use only the first one. For example:

[UIImage imageNamed:@"image.png"];

If the device has Retina, the app will automatically pick up the higher-resolution file (image@2x.png).

Rocky Leon concert at Orlandina on March 16, 2012, video

event Mar 19, 2012 at 12:03

An insanely awesome concert, tons of positive energy, a very cool musician :)