Friday, December 6, 2013

Black Friday 2013 Russian Edition

Russian web-site blackfriday2013.ru supposed to be opened today went down in the first minutes of the day. Many greedy customers opened site in the same time, making DDoS.

This is what happens if marketing goes ahead of technology.


What is interesting, creators of the sale bored anyone with PR promising thousands of goods with sales up to 90%. Instead, most of the Internet shops involved in sale first raised prices and then take you sale. So, must of the products one can buy cheaper without the "sale".

In a certain sense it is work of karma that site goes down. Presumably, black Friday soon becomes black Saturday in the best case.

PS. As always, I happy to see your comments. Notes on bad English welcomes too.

Thursday, April 25, 2013

Speed up android emulator (Intel x86 Atom System Image)

Default settings for andoid emulator in adt (eclipse) makes it enormously slow. Someone says it is faster to load application to real device than wait for emulator loading. What is a much simple way to speed up emulator?

I use GNU/Linux and don't want to use proprietary things like Intel HAXM (it also improve emulator performance). For reaching out goal we need only two steps:

step 0. Install android developer tools (adt) or eclipse + ADT plugin, if you not have one.
step 1. Launch eclipse and Android SDK Manager, install Intel x86 Atom System Image for needed APIs:


step 2. Create android virtual device (AVD) with following (or similar) parameters:
*CPU/ABI: Intel Atom (x86) — needed for speed up
*Memory Options: 1024 Mb
*Use Host GPU


That's all! Run our application on created device and enjoy.

Post based on stackoverflow answer.

PS. Yes, I hear that Intel HAXM are cool. But, you know...
Also there is a post from Intel on this subject, but as I undersand it works on Ubuntu only.

Wednesday, April 24, 2013

Searching in large source tree

Just read this blog post and want to show how to do similar search.
Searching in source code is trivial in GNU/Linux terminal. Most used utility for this task is grep.
For recursively search in large source tree one can use follow command:

$ egrep -ir ';-\)' *

But I like ack utility more. For similar search with ack we can type:

$ ack-grep ';-\)'


So, let's take ack and try to find another smile in linux kernel — this one :-(
We most get linux sources, unpack it, navigate to its top directory and use ack.


Full output for last command you can find here (first command output from ack there).