Life-time learner's blog

Category Archives: Having Fun

Symphony of Slang

Looking through the latest videos by Philochko on Youtube, I came across a couple of ones that I really liked and enjoyed watching. In the videos, he explains a lot of slang words and expressions that were used in a really amazing cartoon by Tex Avery – “Symphony in Slang“. It is really awesome!!!

According to Wikipedia, “Symphony in Slang” is a 1951 cartoon short directed by Tex Avery, written by Rich Hogan and released by MGM. Minimalist and abstract in style (many of the “gags” are created either with single, still frames or limited animation), it tells the story of a man John Brown, who finds himself at the Pearly Gates explaining the story of his life to a bewildered Saint Peter and Noah Webster using slang of that era. The majority of the short is made up of sight gags based on Peter and Webster’s imagined, literal understandings of such phrases as “I was born with a silver spoon in my mouth” and “Outside it was raining cats and dogs.”

If you like English, you must WATCH IT!

And here are the clarifications from Philochko.

Have fun! 🙂

I used to do …

Long time ago (on October, 26 to be precise) our teacher asked us to make a short story about ourselves. We have to use ‘used to’ and ‘would’ in order to describe our past habits and actions.

As for me, I don’t like this type of tasks. I have a lot to say about what I used to do when I was a child, but I don’t want to make it as a some kind of essay, in written form. Ask me anything – and I tell you about it. I can speak about myself a lot but I don’t want to write…

I have put off doing my homework for very long, so I ran out of excuses. There is one question before me, and one answer is required. The question is ‘What did I use to in my childhood?’. In this article I’m going to solve my problem with writing about myself and get rid of it once and for all! >> Read more of this post

The Magic of 42

Hi there!

It’s been quite a long time since I posted here (more than one month). Honestly, I was really busy and there were some problems with the Internet in my dorm.

The month was full of events!

Firstly, I got a position of software engineer (intern) in NetCracker in department Solution Delivery. Secondly, we almost finished with the first release of Reshaka.Ru which is currently being tested. In addition, we moved to another room at the dormitory. I changed my roommates – now they all programmers and my friends too. Some time I will tell you more about all these events. But now let’s get down to business!

Read more of this post

[Music] Check this out!

This is a cover on a famous song Little Wing… The cover was made by a friend of mine Vadim Minkin

What’s wrong with my PC?

Whats wrong with my PC?

The activity of my CPU cores are in antiphase…

Learn programming to solve real problems!

Cute Hacker Girl

Don’t learn to program.  Learn to program the sexy way.

View original post

[For fun] China++ xD

[For fun] China++ xD

Dynamic memory management in China++
It is pretty awesome!
More at:

Poll: Programming Language

All pros and cons, please, write in comments.

Anton Danshin


Недавно прочитал на борде прикольный топик по поводу плагина для Google Chrome.
Вот этот плагин (Jimmy Wales), например, в каждую страницу добавляет рекламу из Wikipedia, которая лично мне уже надоела.
Очень порадовал плагин Nothing, который ничего не делает. Удивительно, но на данный момент у него уже 7600 пользователей (или 7,600 означает 7 целых и 6 десятых?).  Зацените коммент одного из юзеров:

Ha, when you click install, a confirmation box appears asking "Install Nothing?", and then once you install it, it says "Nothing has been installed."


NetBeans 6.9: Java + Scala – How to compile

Scala Logo

Начнем сразу с проблемы:

Требуется скомпилить вот такой код в среде NetBeans 6.9:

package scala1

import java.awt._;
import java.util._;
import javax.imageio._;
import java.awt.image.BufferedImage;

class Complex(val x : Double, val y : Double) {
  def +(c : Complex) = new Complex(x + c.x, y + c.y)
  def -(c : Complex) = new Complex(x - c.x, y - c.y)
  def *(c : Complex) = new Complex(x * c.x - y * c.y, x * c.y + y * c.x)
  def mod2() = x*x + y*y
  override def toString() = x + "+i" + y

object Main {

  def steps(c : Complex, max : Int): Int = {
    var z = new Complex(0, 0)
    for (i <- 0 to max) {
      z = z*z + c
      if (z.mod2 > 4) {
	return i
    return 0

  def main(args: Array[String]) {
    val width = 1000
    val height = 600

    val img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    val g = img.getGraphics();

    val viewX = -0.2;
    val viewY = -1.0;
    val viewW = 0.5;
    val viewH = 0.25;
    val dx = 1.0/width; val dy = 1.0/height

    for (y <- 0 to height) {
      for (x <- 0 to width) {
	val p:Double = viewW * (dx*x) + viewX
	val q:Double = viewH * (dy*y) + viewY
	val c = new Complex(p,q)
	val s: Int = steps(c, 255)
	g.setColor(new Color(s/3, s/3, s))
    ImageIO.write(img, "png", new File("copmlex-graph.png"));


Для того чтобы NetBeans умела работать с языком Scala, нужно установить Scala Kit. К сожалению, в списке доступных плагинов Scala Kit отсутствует, поэтому будем ставить его вручную.

  1. Качаем плагин для NetBeans 6.9 тут:
  2. Распаковываем архив во временную папку.
  3. В NetBeans открываем Tools->Plugins и переходим на вкладку Downloaded
  4. Жмем кнопку Add Plugin… и выбираем все распакованные файлы
  5. Устанавливаем плагины
  6. Закрываем NetBeans
  7. Правим файл ~/.bash_profile в любом редакторе, добавляя в него код:
export SCALA_HOME=~/scala

Здесь SCALA_HOME – путь к папке, где установлена Scala. Я прописал переменную окружения в скрипте ~/.bash_profile, который стартует во время входа пользователя в систему. Поэтому, чтобы изменения вступили в силу, необходимо выйти из системы и зайти в нее снова.

Ну а теперь можно насладиться программированием на языке Scala в удобной среде NetBeans. 🙂

P.S. Программа в листинге рисует множество Мандельброта. Вот, что может быть результатом ее исполнения:

  Множество Мандельброта (красный)