Tuesday, October 15, 2013

Free moves of pawns

Don't move your pawns without a plan! It could end badly.

Thursday, September 26, 2013

South Park. New, 17th season.


Wow! Yesterday has started a new, 17th, season of the South Park. Thank you Trey Parker, thank you Matt Stone, thank you Comedy Central. But, too many words. Original movie is available here, and in russian here. Enjoy!

Musical life in Kiev: Ludovico Einaudi, Brit Floyd (Pink Floyd tribute band) and hits of the 20th century, at the Philharmonic.

The last days have been very saturated in the musical life of Kiev.
22/09 - Ludovico Einaudi - The best
24/09 - Brit Floyd - The best from Pink Floyd.
25/09 - National Academic Brass Band of Ukraine - "The hits of 20th century".
Now some more detail about all of these events.

Friday, September 13, 2013

Happy programmers day!

++++++++++[>+>+++>+++++++>++++++++++>+++++++++++>++++++++++++<<<<<<-]>++>++>++.>---.>++..>+.<<<<.>>>.++.---.<++++++.>+++.<------.>-----..<++++.>+++++.+.<<<.>>-.---.>>.<<<<+.<.
Congratulations to all developers! Let your code will be clean and fast!

Thursday, September 12, 2013

SVG in HTML 5 canvas: tainted canvas

Introduction

I had a task to create a JS component which will build the halls scheme. I decide to use HTML5 canvas and SVG as an image for chairs. Canvas - because he is a fast. SVG - for easy scaling.
"Ghost" canvas for medium hall
Simple example
I also need to understand, which the place are chosen by user when he clicked on it. The main highlight is that the seat may be of any arbitrary shape and be rotated to any angle. Specially for this I draw an invisible canvas with chairs where each chair painted in unique color. 

Once I have a copy hall scheme on invisible layer I can find a chair what user clicked by picking color of the invisible chair on mouse hover (don't confuse it with JS onmouseover event). But here is waiting for us a little surprise. I can draw SVG on canvas, but I can't call such methods: context.getImageData and canvas.toDataUrl! What's the matter?

Wednesday, September 11, 2013

Greeting

Hello, gentle reader.
I created this blog to meet new people, share news, and improve my knowledge of English. Therefore, if you, dear reader, have comments about my ignorance - please do not forget to leave they under the post.

A few words about me. 
I live in Ukraine, Kyiv (Kiev) and this is not a part of Russian as many of you may think. I was brought up in the theater, because my parents worked there. My profession is a Web-developer, but sometimes I work as a sound-engineer or as a session musician.  I have a wide range of interests, but the main hobbies is a music and literature.

Thanks for your attention.